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,如需转载请自行联系原作者
相关文章
|
Oracle 关系型数据库 数据库
实时计算 Flink版产品使用合集之用于实时同步整个数据库时,该如何配置DB2
实时计算Flink版作为一种强大的流处理和批处理统一的计算框架,广泛应用于各种需要实时数据处理和分析的场景。实时计算Flink版通常结合SQL接口、DataStream API、以及与上下游数据源和存储系统的丰富连接器,提供了一套全面的解决方案,以应对各种实时计算需求。其低延迟、高吞吐、容错性强的特点,使其成为众多企业和组织实时数据处理首选的技术平台。以下是实时计算Flink版的一些典型使用合集。
347 5
|
C# 开发工具 C++
code runner 运行C#项目
本文介绍了如何修改Code Runner设置使 Visual Studio Code (VS Code) 能直接运行完整的 C# 项目。传统方式依赖 cscript 工具,仅支持 .csx 文件,功能受限且已停止维护。新配置使用 `dotnet run` 命令,结合一系列炫酷的cmd指令,将指令定位到具体的csproj文件上进行运行。
1506 38
|
JavaScript Shell C#
多种脚本批量下载 Docker 镜像:Shell、PowerShell、Node.js 和 C#
本项目提供多种脚本(Shell、PowerShell、Node.js 和 C#)用于批量下载 Docker 镜像。配置文件 `docker-images.txt` 列出需要下载的镜像及其标签。各脚本首先检查 Docker 是否安装,接着读取配置文件并逐行处理,跳过空行和注释行,提取镜像名称和标签,调用 `docker pull` 命令下载镜像,并输出下载结果。使用时需创建配置文件并运行相应脚本。C# 版本需安装 .NET 8 runtime。
1308 3
|
Linux C# iOS开发
开源GTKSystem.Windows.Forms框架让C# Winform支持跨平台运行
开源GTKSystem.Windows.Forms框架让C# Winform支持跨平台运行
550 12
|
安全 Java C#
Unreal Engine C# 脚本编写浅谈
本文介绍了在 Unreal Engine 中使用 C# 编写脚本的方法,涵盖环境搭建、基础概念、常见问题及代码案例。从安装插件到处理输入事件和加载蓝图,详细讲解了如何在 Unreal Engine 中高效利用 C# 进行开发。
770 3
|
存储 Oracle 关系型数据库
【数据库-DB2】深入了解DB2 reorg
本文介绍了DB2数据库中reorg操作的重要性,旨在通过重组表数据来消除数据碎片、压缩信息并提高数据访问速度。reorg操作能够根据索引关键字重新排序数据,减少查询I/O次数,提升查询性能。文章详细讲解了reorg的操作步骤、适用场景及注意事项,强调了在执行reorg前后更新统计信息的必要性。
1324 2
|
关系型数据库 数据库
数据库漫谈-DB2
DB2是IBM的产品,也是曾经辉煌过
|
图形学 C# 开发者
全面掌握Unity游戏开发核心技术:C#脚本编程从入门到精通——详解生命周期方法、事件处理与面向对象设计,助你打造高效稳定的互动娱乐体验
【8月更文挑战第31天】Unity 是一款强大的游戏开发平台,支持多种编程语言,其中 C# 最为常用。本文介绍 C# 在 Unity 中的应用,涵盖脚本生命周期、常用函数、事件处理及面向对象编程等核心概念。通过具体示例,展示如何编写有效的 C# 脚本,包括 Start、Update 和 LateUpdate 等生命周期方法,以及碰撞检测和类继承等高级技巧,帮助开发者掌握 Unity 脚本编程基础,提升游戏开发效率。
1049 0
|
Linux C#
【Azure App Service】C#下制作的网站,所有网页本地测试运行无误,发布至Azure之后,包含CHART(图表)的网页打开报错,错误消息为 Runtime Error: Server Error in '/' Application
【Azure App Service】C#下制作的网站,所有网页本地测试运行无误,发布至Azure之后,包含CHART(图表)的网页打开报错,错误消息为 Runtime Error: Server Error in '/' Application
282 0
|
SQL 存储 Oracle
C#利用IDbCommand实现通用数据库脚本执行程序
C#利用IDbCommand实现通用数据库脚本执行程序