C#.NET通用权限管理在DB2数据库上运行的脚本参考 - 序列创建脚本参考

简介:

C#.NET通用权限管理DB2数据库上运行时,需要创建一些序列,脚本如下:

若您用到了DB2数据库直接运行这个脚本就可以了,不用每个都自己创建了。

create sequence SEQ_BASE_TABLECOLUMNS  as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_SEQUENCE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_LOG 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_EXCEPTION 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_FILE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_FOLDER 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_ITEMS 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_MESSAGE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_MODULE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_ORGANIZE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_PARAMETER 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_PERMISSIONITEM 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_PERMISSIONSCOPE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_PERMISSION 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_ROLE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_STAFF 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_USERADDRESS 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_USERORGANIZE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_USERROLE 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_USER 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_WORKFLOWACTIVITY 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_WORKFLOWCURRENT 
as  bigint start with  1000000  increment by  1  minvalue  10000 maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_WORKFLOWHISTORY 
as  bigint start with  1000000  increment by  1  minvalue  10000  maxvalue  99999999999999999  cycle cache  20  order;
create sequence SEQ_BASE_WORKFLOWPROCESS 
as  bigint start with  1000000  increment by  1  minvalue  10000 maxvalue  99999999999999999  cycle cache  20  order;




本文转自 jirigala 51CTO博客,原文链接:http://blog.51cto.com/2347979/1197385,如需转载请自行联系原作者
相关文章
|
11月前
|
API C++ Windows
Visual C++运行库、.NET Framework和DirectX运行库的作用及常见问题解决方案,涵盖MSVCP140.dll丢失、0xc000007b错误等典型故障的修复方法
本文介绍Visual C++运行库、.NET Framework和DirectX运行库的作用及常见问题解决方案,涵盖MSVCP140.dll丢失、0xc000007b错误等典型故障的修复方法,提供官方下载链接与系统修复工具使用指南。
2221 2
|
11月前
|
SQL 关系型数据库 MySQL
阿里云RDS云数据库全解析:产品功能、收费标准与活动参考
与云服务器ECS一样,关系型数据库RDS也是很多用户上云必买的热门云产品之一,阿里云的云数据库RDS主要包含RDS MySQL、RDS SQL Server、RDS PostgreSQL、RDS MariaDB等几个关系型数据库,并且提供了容灾、备份、恢复、监控、迁移等方面的全套解决方案,帮助您解决数据库运维的烦恼。本文为大家介绍阿里云的云数据库 RDS主要产品及计费方式、收费标准以及活动等相关情况,以供参考。
|
存储 缓存 监控
【YashanDB数据库】数据库运行正常,日志出现大量错误metadata changed
数据库运行正常,日志出现大量错误metadata changed
|
SQL 数据库 Docker
【赵渝强老师】在Docker中运行达梦数据库
本文介绍了在Docker容器中部署达梦数据库(DM 8)的具体步骤,包括创建文件夹、下载安装包、导入镜像、启动容器、登录数据库及查看状态等操作。同时,通过视频讲解辅助理解。文中还分析了将数据库服务容器化的潜在问题,如数据安全性、硬件资源争用、网络带宽占用和额外隔离带来的挑战,指出数据库服务在生产环境中可能不适合容器化的原因。
2315 4
【赵渝强老师】在Docker中运行达梦数据库
|
SQL 小程序 API
如何运用C#.NET技术快速开发一套掌上医院系统?
本方案基于C#.NET技术快速构建掌上医院系统,结合模块化开发理念与医院信息化需求。核心功能涵盖用户端的预约挂号、在线问诊、报告查询等,以及管理端的排班管理和数据统计。采用.NET Core Web API与uni-app实现前后端分离,支持跨平台小程序开发。数据库选用SQL Server 2012,并通过读写分离与索引优化提升性能。部署方案包括Windows Server与负载均衡设计,确保高可用性。同时针对API差异、数据库老化及高并发等问题制定应对措施,保障系统稳定运行。推荐使用Postman、Redgate等工具辅助开发,提升效率与质量。
719 0
|
开发框架 人工智能 .NET
C#/.NET/.NET Core拾遗补漏合集(24年12月更新)
C#/.NET/.NET Core拾遗补漏合集(24年12月更新)
350 6
|
开发框架 算法 .NET
C#/.NET/.NET Core技术前沿周刊 | 第 15 期(2024年11.25-11.30)
C#/.NET/.NET Core技术前沿周刊 | 第 15 期(2024年11.25-11.30)
362 6
|
开发框架 Cloud Native .NET
C#/.NET/.NET Core技术前沿周刊 | 第 16 期(2024年12.01-12.08)
C#/.NET/.NET Core技术前沿周刊 | 第 16 期(2024年12.01-12.08)
412 6
|
12月前
|
XML 前端开发 C#
C#编程实践:解析HTML文档并执行元素匹配
通过上述步骤,可以在C#中有效地解析HTML文档并执行元素匹配。HtmlAgilityPack提供了一个强大而灵活的工具集,可以处理各种HTML解析任务。
474 19
|
C# 开发者
C# 一分钟浅谈:Code Contracts 与契约编程
【10月更文挑战第26天】本文介绍了 C# 中的 Code Contracts,这是一个强大的工具,用于通过契约编程增强代码的健壮性和可维护性。文章从基本概念入手,详细讲解了前置条件、后置条件和对象不变量的使用方法,并通过具体代码示例进行了说明。同时,文章还探讨了常见的问题和易错点,如忘记启用静态检查、过度依赖契约和性能影响,并提供了相应的解决建议。希望读者能通过本文更好地理解和应用 Code Contracts。
510 3