- 浏览: 394742 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (760)
- 股票日志 (26)
- Selenium (0)
- selenium 2 环境的搭建 (1)
- 并发 (7)
- 框架开发 (1)
- 动态代理 (2)
- Struts2 (2)
- POI (2)
- jdk (3)
- maven (31)
- spring (35)
- mysql (31)
- 工作机会 (3)
- xtream (1)
- oracle dbms_metadata GET_DDL (0)
- SSI (1)
- DB (61)
- powermock (4)
- java 基础 (25)
- 多线程 (11)
- 高手 (2)
- java 底层 (2)
- 专业网站 (1)
- 开发联想 (1)
- 开发联想 (1)
- bat文件 (2)
- 清queue 语句 (1)
- 清queue 语句 (1)
- jquery (7)
- html5 (1)
- Jenkins (10)
- Linux (17)
- 工作issue (2)
- tomcat log (3)
- jvm (23)
- 项目细节 (0)
- oracle (41)
- 泛型 (3)
- 新知识点 (1)
- 数据库ddl 语句 (0)
- AQ (2)
- jms (0)
- 网络资源 (6)
- github (6)
- Easymock (1)
- Dom 解析XML (1)
- windows命令 (2)
- java (7)
- 正则表达式 (5)
- sequence (1)
- oracle 表meta信息 (1)
- 小工具技巧 (1)
- 辅助工具 (1)
- Junit (1)
- 泛型 generic (2)
- Java程序设计 (1)
- cglib (2)
- 架构师之路 (1)
- 数据库连接池 (5)
- c3p0 (1)
- eclipse使用 (1)
- oracle sql plus (1)
- 码农人生 (3)
- SVN (15)
- sqlplus (2)
- jsoup (1)
- 网络爬虫 (2)
- 新技能 (1)
- zookeeper (4)
- hadoop (1)
- SVNKIT (1)
- 从工具到知识点的整理 (1)
- log4j (13)
- 读文件 (0)
- 转义字符 (1)
- command (1)
- web service (3)
- 锁 (1)
- shell 脚本 (1)
- 遇到的错误 (2)
- tomcat (14)
- 房产 (5)
- bootstrap jquery ui (1)
- easyui (2)
- 个人征信 (1)
- 读写分离 (1)
- 备份 (1)
- rmi (6)
- webservice (1)
- JMX (4)
- 内存管理 (3)
- java设计 (1)
- timer (1)
- lock (2)
- concurrent (2)
- collection (1)
- tns (1)
- java基础 (15)
- File (1)
- 本机资源 (1)
- bat (1)
- windows (4)
- 数据结构 (3)
- 代码安全 (1)
- 作用域 (1)
- 图 (2)
- jvm内存结构 (1)
- 计算机思想 (1)
- quartz (6)
- Mongo DB (2)
- Nosql (4)
- sql (5)
- 第三方Java 工具 jar 项目 (2)
- drools (1)
- java swing (2)
- 调用console (1)
- runtime (1)
- process (1)
- swing (2)
- grouplayout (1)
- dubbo (0)
- bootstrap (0)
- nodejs (2)
- SVN hooks (1)
- jdbc (3)
- jdbc error (1)
- precedure (1)
- partition_key (1)
- active mq (1)
- blob (2)
- Eclipse (6)
- web server (1)
- bootstrapt (2)
- struts (1)
- ajax (1)
- js call back (1)
- 思想境界拓展 (1)
- JIRA (1)
- log (1)
- jaxb (3)
- xml java互相转换 (1)
- 装修 (2)
- 互联网 (2)
- threadlocal (3)
- mybatis (22)
- xstream (1)
- 排序 (1)
- 股票资源 (1)
- RPC (2)
- NIO (3)
- http client (6)
- 他人博客 (1)
- 代理服务器 (1)
- 网络 (2)
- web (1)
- 股票 (5)
- deadlock (1)
- JConsole (2)
- activemq (3)
- oralce (1)
- 游标 (1)
- 12月13日道富内部培训 (0)
- grant (1)
- 速查 (2)
- classloader (4)
- netty (4)
- 设计模式 (2)
- 缓存 (2)
- ehcache (2)
- framework (1)
- 内存分析 (2)
- dump (1)
- memory (2)
- 多高线程,并发 (1)
- hbase (2)
- 分布式系统 (1)
- socket (3)
- socket (1)
- 面试问题 (1)
- jetty (2)
- http (2)
- 源码 (1)
- 日志 (2)
- jni (1)
- 编码约定 (1)
- memorycache (1)
- redis (13)
- 杂谈 (1)
- drool (1)
- blockingqueue (1)
- ScheduledExecutorService (1)
- 网页爬虫 (1)
- httpclient (4)
- httpparser (1)
- map (1)
- 单例 (1)
- synchronized (2)
- thread (1)
- job (1)
- hashcode (1)
- copyonwriteArrayList (2)
- 录制声音 (1)
- java 标准 (2)
- SSL/TLS (1)
- itext (1)
- pdf (1)
- 钻石 (2)
- sonar (1)
- unicode (1)
- 编码 (4)
- html (1)
- SecurityManager (1)
- 坑 (1)
- Restful (2)
- svn hook (1)
- concurrentHashMap (1)
- 垃圾回收 (1)
- vbs (8)
- visual svn (2)
- power shell (1)
- wmi (3)
- mof (2)
- c# (1)
- concurrency (1)
- 劳动法 (1)
- 三国志游戏 (2)
- 三国 (1)
- 洪榕 (2)
- 金融投资知识 (1)
- motan (1)
- tkmybatis mapper (1)
- 工商注册信息查询 (1)
- consul (1)
- 支付业务知识 (2)
- 数据库备份 (1)
- 字段设计 (1)
- 字段 (1)
- dba (1)
- 插件 (2)
- PropEdit插件 (1)
- web工程 (1)
- 银行业知识 (2)
- 国内托管银行 (1)
- 数据库 (1)
- 事务 (2)
- git (18)
- component-scan (1)
- 私人 (0)
- db2 (14)
- alias (1)
- 住房 (1)
- 户口 (1)
- fastjson (1)
- test (6)
- RSA (2)
- 密钥 (1)
- putty (1)
- sftp (1)
- 加密 (1)
- 公钥私钥 (3)
- markdown (1)
- sweet (1)
- sourcetree (1)
- 好工具 (1)
- cmd (1)
- scp (1)
- notepad++ (1)
- ssh免密登录 (1)
- https (1)
- ssl (2)
- js (2)
- h2 (1)
- 内存 (2)
- 浏览器 (1)
- js特效 (1)
- io (1)
- 乱码 (1)
- 小工具 (1)
- 每周技术任务 (1)
- mongodb (7)
- 内存泄漏 (1)
- 码云 (2)
- 如何搭建java 视频服务器 tomcat (1)
- 资源 (1)
- 书 (1)
- 四色建模法 (1)
- 建模 (1)
- 配置 (1)
- 职位 (1)
- nginx (1)
- excel (1)
- log4j2 (2)
- 做菜 (1)
- jmap (1)
- jspwiki (1)
- activiti (1)
- 工作流引擎 (1)
- 安卓 (1)
- acitviti 例子 (1)
- 二维码 (1)
- 工作流 (1)
- powerdesign (2)
- 软件设计 (1)
- 乐观锁 (1)
- 王者荣耀 (1)
- session (2)
- token (5)
- cookie (4)
- springboot (24)
- jwt (2)
- 项目路径 (1)
- magicbook (1)
- requestType (1)
- json (2)
- swagger (1)
- eolinker (1)
- springdata (1)
- springmvc (1)
- controlleradvice (1)
- profile (1)
- 银行四要素 (1)
- 支付人员资源 (1)
- 支付渠道 (1)
- yaml (1)
- 中文编码 (1)
- mongo (2)
- serializable (1)
- 序列化 (1)
- zyd (1)
- unittest (1)
- 工具 (1)
- Something (1)
- 通达信 (1)
- protobuf (1)
- 算法 (1)
- springcloud (2)
- hikari (1)
- rocketmq (7)
- cachecloud (1)
- serfj (1)
- axure (1)
- lombok (1)
- 分布式锁 (1)
- 线程 (2)
- 同步代码块 (1)
- cobar (1)
- mq (1)
- rabbitmq (1)
- 定时执行 (1)
- 支付系统 (3)
- 唱歌 (1)
- elasticjob (1)
- 定时任务 (1)
- 界面 (1)
- flink (2)
- 大数据 (1)
- 接私活 (0)
- 内部培训 (2)
最新评论
-
dannyhz:
做股票从短线 试水,然后 慢慢发现 波段和 中期的故事可挖, ...
搭台唱戏 -
dannyhz:
http://developer.51cto.com/art/ ...
如何自己开发框架 它的注意点是什么
GRANT ALL ON ZX_2.TRANSACTION TO ZX_1
GRANT ALL ON ZX_1.DATA_SOURCE TO ZX_2
--------------------------------------------------------
-- DDL for Table USE_CASE
--------------------------------------------------------
CREATE TABLE "ZX_1"."DATA_SOURCE"
( "SOURCE_ID" NUMBER,
"SOURCE_NM" VARCHAR2(16 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index DATA_SOURCE_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."DATA_SOURCE_PK" ON "ZX_1"."DATA_SOURCE" ("SOURCE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table DATA_SOURCE
--------------------------------------------------------
ALTER TABLE "ZX_1"."DATA_SOURCE" ADD CONSTRAINT "DATA_SOURCE_PK" PRIMARY KEY ("SOURCE_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."DATA_SOURCE" MODIFY ("SOURCE_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- DDL for Table USE_CASE
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE"
( "USE_CASE_ID" NUMBER,
"NAME" VARCHAR2(16 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_PK" ON "ZX_1"."USE_CASE" ("USE_CASE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE" ADD CONSTRAINT "USE_CASE_PK" PRIMARY KEY ("USE_CASE_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE" MODIFY ("USE_CASE_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- DDL for Table USE_CASE_SCENARIO
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE_SCENARIO"
( "SCENARIO_ID" NUMBER,
"USE_CASE_ID" NUMBER,
"NAME" VARCHAR2(20 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_SCENARIO_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_SCENARIO_PK" ON "ZX_1"."USE_CASE_SCENARIO" ("SCENARIO_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE_SCENARIO
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" ADD CONSTRAINT "USE_CASE_SCENARIO_PK" PRIMARY KEY ("SCENARIO_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" MODIFY ("SCENARIO_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table USE_CASE_SCENARIO
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" ADD CONSTRAINT "USE_CASE_SCENARIO_FK1" FOREIGN KEY ("USE_CASE_ID")
REFERENCES "ZX_1"."USE_CASE" ("USE_CASE_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table TRANSACTION
--------------------------------------------------------
CREATE TABLE "ZX_2"."TRANSACTION"
( "GC_GUID" RAW(20),
"SOURCE_ID" NUMBER(10,0),
"TRANS_AMT" NUMBER(23,6)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index TRANSACTION_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_2"."TRANSACTION_PK" ON "ZX_2"."TRANSACTION" ("GC_GUID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_2"."TRANSACTION" ADD CONSTRAINT "TRANSACTION_PK" PRIMARY KEY ("GC_GUID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_2"."TRANSACTION" MODIFY ("GC_GUID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_2"."TRANSACTION" ADD CONSTRAINT "TRANSACTION_FK1" FOREIGN KEY ("SOURCE_ID")
REFERENCES "ZX_1"."DATA_SOURCE" ("SOURCE_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table EXECUTION_TASK
--------------------------------------------------------
CREATE TABLE "ZX_1"."EXECUTION_TASK"
( "TASK_ID" NUMBER,
"UC_TXN_ID" NUMBER,
"SCENARIO_ID" NUMBER,
"SCENARIO_STATUS" VARCHAR2(32 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index EXECUTION_TASK_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."EXECUTION_TASK_PK" ON "ZX_1"."EXECUTION_TASK" ("TASK_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table EXECUTION_TASK
--------------------------------------------------------
ALTER TABLE "ZX_1"."EXECUTION_TASK" ADD CONSTRAINT "EXECUTION_TASK_PK" PRIMARY KEY ("TASK_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."EXECUTION_TASK" MODIFY ("TASK_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table EXECUTION_TASK
--------------------------------------------------------
ALTER TABLE "ZX_1"."EXECUTION_TASK" ADD CONSTRAINT "EXECUTION_TASK_FK1" FOREIGN KEY ("UC_TXN_ID")
REFERENCES "ZX_1"."USE_CASE_TRANSACTION" ("UC_TXN_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table USE_CASE_TRANSACTION
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE_TRANSACTION"
( "UC_TXN_ID" NUMBER,
"SCENARIO_ID" NUMBER,
"GC_GUID" RAW(20),
"SOURCE_ID" NUMBER(10,0)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_TRANSACTION_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_TRANSACTION_PK" ON "ZX_1"."USE_CASE_TRANSACTION" ("UC_TXN_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE_TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_PK" PRIMARY KEY ("UC_TXN_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" MODIFY ("UC_TXN_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table USE_CASE_TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_FK1" FOREIGN KEY ("SCENARIO_ID")
REFERENCES "ZX_1"."USE_CASE_SCENARIO" ("SCENARIO_ID") ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_TRAN_FK1" FOREIGN KEY ("GC_GUID")
REFERENCES "ZX_2"."TRANSACTION" ("GC_GUID") ENABLE;
------------------------------------------------------------
GRANT ALL ON DANNY_2.TRANSACTION TO DANNY_1
ALTER TABLE DANNY_1.USE_CASE_TRANSACTION
ADD CONSTRAINT USE_CASE_TRANSACTION_TRAN_FK1 FOREIGN KEY
(
GC_GUID
)
REFERENCES DANNY_2.TRANSACTION
(
GC_GUID
)
ENABLE
ALTER TABLE DANNY_1.USE_CASE_SCENARIO
ADD CONSTRAINT USE_CASE_SCENARIO_FK1 FOREIGN KEY
(
USE_CASE_ID
)
REFERENCES DANNY_1.USE_CASE
(
USE_CASE_ID
)
ENABLE
ALTER TABLE DANNY_1.EXECUTION_TASK
ADD CONSTRAINT EXECUTION_TASK_FK1 FOREIGN KEY
(
UC_TXN_ID
)
REFERENCES DANNY_1.USE_CASE_TRANSACTION
(
UC_TXN_ID
)
ENABLE
ALTER TABLE DANNY_1.USE_CASE_TRANSACTION
ADD CONSTRAINT USE_CASE_TRANSACTION_FK1 FOREIGN KEY
(
SCENARIO_ID
)
REFERENCES DANNY_1.USE_CASE_SCENARIO
(
SCENARIO_ID
)
ENABLE
GRANT ALL ON DANNY_1.DATA_SOURCE TO DANNY_2
ALTER TABLE DANNY_2.TRANSACTION
ADD CONSTRAINT TRANSACTION_FK1 FOREIGN KEY
(
SOURCE_ID
)
REFERENCES DANNY_1.DATA_SOURCE
(
SOURCE_ID
)
ENABLE
GRANT ALL ON ZX_1.DATA_SOURCE TO ZX_2
--------------------------------------------------------
-- DDL for Table USE_CASE
--------------------------------------------------------
CREATE TABLE "ZX_1"."DATA_SOURCE"
( "SOURCE_ID" NUMBER,
"SOURCE_NM" VARCHAR2(16 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index DATA_SOURCE_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."DATA_SOURCE_PK" ON "ZX_1"."DATA_SOURCE" ("SOURCE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table DATA_SOURCE
--------------------------------------------------------
ALTER TABLE "ZX_1"."DATA_SOURCE" ADD CONSTRAINT "DATA_SOURCE_PK" PRIMARY KEY ("SOURCE_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."DATA_SOURCE" MODIFY ("SOURCE_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- DDL for Table USE_CASE
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE"
( "USE_CASE_ID" NUMBER,
"NAME" VARCHAR2(16 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_PK" ON "ZX_1"."USE_CASE" ("USE_CASE_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE" ADD CONSTRAINT "USE_CASE_PK" PRIMARY KEY ("USE_CASE_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE" MODIFY ("USE_CASE_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- DDL for Table USE_CASE_SCENARIO
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE_SCENARIO"
( "SCENARIO_ID" NUMBER,
"USE_CASE_ID" NUMBER,
"NAME" VARCHAR2(20 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_SCENARIO_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_SCENARIO_PK" ON "ZX_1"."USE_CASE_SCENARIO" ("SCENARIO_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE_SCENARIO
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" ADD CONSTRAINT "USE_CASE_SCENARIO_PK" PRIMARY KEY ("SCENARIO_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" MODIFY ("SCENARIO_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table USE_CASE_SCENARIO
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_SCENARIO" ADD CONSTRAINT "USE_CASE_SCENARIO_FK1" FOREIGN KEY ("USE_CASE_ID")
REFERENCES "ZX_1"."USE_CASE" ("USE_CASE_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table TRANSACTION
--------------------------------------------------------
CREATE TABLE "ZX_2"."TRANSACTION"
( "GC_GUID" RAW(20),
"SOURCE_ID" NUMBER(10,0),
"TRANS_AMT" NUMBER(23,6)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index TRANSACTION_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_2"."TRANSACTION_PK" ON "ZX_2"."TRANSACTION" ("GC_GUID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_2"."TRANSACTION" ADD CONSTRAINT "TRANSACTION_PK" PRIMARY KEY ("GC_GUID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_2"."TRANSACTION" MODIFY ("GC_GUID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_2"."TRANSACTION" ADD CONSTRAINT "TRANSACTION_FK1" FOREIGN KEY ("SOURCE_ID")
REFERENCES "ZX_1"."DATA_SOURCE" ("SOURCE_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table EXECUTION_TASK
--------------------------------------------------------
CREATE TABLE "ZX_1"."EXECUTION_TASK"
( "TASK_ID" NUMBER,
"UC_TXN_ID" NUMBER,
"SCENARIO_ID" NUMBER,
"SCENARIO_STATUS" VARCHAR2(32 BYTE)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index EXECUTION_TASK_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."EXECUTION_TASK_PK" ON "ZX_1"."EXECUTION_TASK" ("TASK_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table EXECUTION_TASK
--------------------------------------------------------
ALTER TABLE "ZX_1"."EXECUTION_TASK" ADD CONSTRAINT "EXECUTION_TASK_PK" PRIMARY KEY ("TASK_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."EXECUTION_TASK" MODIFY ("TASK_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table EXECUTION_TASK
--------------------------------------------------------
ALTER TABLE "ZX_1"."EXECUTION_TASK" ADD CONSTRAINT "EXECUTION_TASK_FK1" FOREIGN KEY ("UC_TXN_ID")
REFERENCES "ZX_1"."USE_CASE_TRANSACTION" ("UC_TXN_ID") ENABLE;
--------------------------------------------------------
-- DDL for Table USE_CASE_TRANSACTION
--------------------------------------------------------
CREATE TABLE "ZX_1"."USE_CASE_TRANSACTION"
( "UC_TXN_ID" NUMBER,
"SCENARIO_ID" NUMBER,
"GC_GUID" RAW(20),
"SOURCE_ID" NUMBER(10,0)
) SEGMENT CREATION DEFERRED
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
TABLESPACE "USERS" ;
--------------------------------------------------------
-- DDL for Index USE_CASE_TRANSACTION_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "ZX_1"."USE_CASE_TRANSACTION_PK" ON "ZX_1"."USE_CASE_TRANSACTION" ("UC_TXN_ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ;
--------------------------------------------------------
-- Constraints for Table USE_CASE_TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_PK" PRIMARY KEY ("UC_TXN_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
TABLESPACE "USERS" ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" MODIFY ("UC_TXN_ID" NOT NULL ENABLE);
--------------------------------------------------------
-- Ref Constraints for Table USE_CASE_TRANSACTION
--------------------------------------------------------
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_FK1" FOREIGN KEY ("SCENARIO_ID")
REFERENCES "ZX_1"."USE_CASE_SCENARIO" ("SCENARIO_ID") ENABLE;
ALTER TABLE "ZX_1"."USE_CASE_TRANSACTION" ADD CONSTRAINT "USE_CASE_TRANSACTION_TRAN_FK1" FOREIGN KEY ("GC_GUID")
REFERENCES "ZX_2"."TRANSACTION" ("GC_GUID") ENABLE;
------------------------------------------------------------
GRANT ALL ON DANNY_2.TRANSACTION TO DANNY_1
ALTER TABLE DANNY_1.USE_CASE_TRANSACTION
ADD CONSTRAINT USE_CASE_TRANSACTION_TRAN_FK1 FOREIGN KEY
(
GC_GUID
)
REFERENCES DANNY_2.TRANSACTION
(
GC_GUID
)
ENABLE
ALTER TABLE DANNY_1.USE_CASE_SCENARIO
ADD CONSTRAINT USE_CASE_SCENARIO_FK1 FOREIGN KEY
(
USE_CASE_ID
)
REFERENCES DANNY_1.USE_CASE
(
USE_CASE_ID
)
ENABLE
ALTER TABLE DANNY_1.EXECUTION_TASK
ADD CONSTRAINT EXECUTION_TASK_FK1 FOREIGN KEY
(
UC_TXN_ID
)
REFERENCES DANNY_1.USE_CASE_TRANSACTION
(
UC_TXN_ID
)
ENABLE
ALTER TABLE DANNY_1.USE_CASE_TRANSACTION
ADD CONSTRAINT USE_CASE_TRANSACTION_FK1 FOREIGN KEY
(
SCENARIO_ID
)
REFERENCES DANNY_1.USE_CASE_SCENARIO
(
SCENARIO_ID
)
ENABLE
GRANT ALL ON DANNY_1.DATA_SOURCE TO DANNY_2
ALTER TABLE DANNY_2.TRANSACTION
ADD CONSTRAINT TRANSACTION_FK1 FOREIGN KEY
(
SOURCE_ID
)
REFERENCES DANNY_1.DATA_SOURCE
(
SOURCE_ID
)
ENABLE
发表评论
-
存储过程的优点 并不一定完全只用sql来一条条执行
2017-02-08 15:26 375引用 存储过程天天用,关于使用存储过程的sql语句的争论也一直 ... -
oracle blob 字段的解析
2017-02-06 10:48 740oracle.sql.BLOB data = (oracle. ... -
查询执行过的sql语句的方法
2017-01-20 13:25 601select * from v$sql where lower ... -
检查一个对象的权限
2017-01-13 10:47 351先看这个对象在对象库里是否存在 select * from ... -
竖变横 oracle group by 方式
2017-01-10 11:43 722SELECT DCC.CONSTRAINT_NAME ... -
参考写queue赋权限
2016-12-22 22:08 340引用 DBMS_AQADM.CREATE_QUEUE_TA ... -
oracle plsql 游标的使用
2016-12-07 18:19 489set serveroutput on; DECLA ... -
oracle replace 语句使用 ,另外还有句 regexp_replace
2016-12-06 16:36 719update buat_meta.gcal_data_sour ... -
如何让本schema 来执行其它schema 的sql,而不需要加schema
2016-11-03 16:55 543CREATE OR REPLACE SYNONYM " ... -
关于oracle的死锁
2016-10-25 16:26 403http://beijishiqidu.iteye.com/b ... -
oracle compress 表需要 move uncompress 在add column
2016-10-08 16:59 9081.普通表(未分区) 1.SQL> Alter Ta ... -
oracle 权限设置 和 详解
2017-05-25 03:18 857http://www.xuebuyuan.com/762024 ... -
查询是否需要别名
2016-08-09 12:39 366select * from dba_objects where ... -
关于 oracle 权限的问题 要查的几张表
2016-07-28 15:47 651select * from dba_objects where ... -
一个order by count(1) 在group之后的sql
2016-07-22 14:01 566select trans_class_cd, count(1 ... -
patition key 的解除 比如created_at
2016-07-22 10:51 427alter table gce_meta.GCAL_USE_C ... -
kill machine function
2016-07-20 20:40 503create or replace PROCEDURE ... -
Oracle 关于数据库jdbc错误的解释的地方
2016-07-19 12:59 460https://docs.oracle.com/cd/B193 ... -
Oracle 几个正则方法regexp_like regexp_replace regexp_instr regexp_substr
2017-05-25 03:23 568http://www.2cto.com/database/20 ... -
使用集函数 和 一般查询 的比较
2016-07-13 15:36 467两者都能看到 NSA01_DELAY 的count 条数 s ...
相关推荐
"Oracle数据库用户和Schema概念详解" Oracle数据库中,用户(User)和模式(Schema)是两个紧密相关却又鲜明不同的概念。用户是指拥有数据库权限和资源的实体,而模式则是指一组数据库对象的集合,包括表、视图、...
与其他数据库系统不同,Oracle数据库中的“数据库”这一概念实际上指的是所有数据文件、控制文件、联机重做日志文件以及参数文件等物理组件的集合。这些物理组件共同构成了一个完整的数据库环境。 #### 二、实例...
Oracle数据库是目前最流行的关系数据库管理系统之一,连接到Oracle数据库可以帮助开发者更好地进行数据存储和检索。本文将详细介绍如何在MyEclipse中设置连接Oracle数据库。 首先,需要在MyEclipse中选择Window→...
Oracle数据库是一种广泛使用的大型关系型数据库管理系统,尤其在企业级应用中占据主导地位。"OT_oracle数据库"是一个示例数据库,专为学习Oracle数据库设计和管理而创建。这个压缩包包含了一些关键文件,帮助用户...
"Oracle数据库迁移到SQL Server" 本文将详细讲解如何使用Microsoft SQL Server Migration Assistant for Oracle.exe(微软数据库迁移工具)将Oracle数据库迁移到SQL Server。该工具可以帮助用户快速、安全地将...
我们都知道在9i之前,要想获得建表和索引的语句是一件很麻烦的事。我们可以通过 export with rows=no来得到,但它的输出因为格式的问题并不能直接拿来用。而另一种方法就是写复杂的脚本来查询数据字典,但这对于一...
### Oracle数据库巡检报告知识点详解 #### 一、操作系统参数检查 ##### 1.1 检查数据库CPU、I/O、内存性能 - **CPU性能检查**:通过监控工具或命令行工具(如`top`、`vmstat`、`iostat`等),检查服务器的CPU使用...
同时,许多数据库管理工具,如MySQL Workbench、pgAdmin(针对PostgreSQL)、Oracle SQL Developer等,都提供了直观的界面来查看和操作Catalog和Schema,使得数据库管理员和开发人员能够更加便捷地进行数据库设计和...
在Oracle数据库中,Schema是一个非常重要的概念,它代表了数据库对象的集合,这些对象包括但不限于表格、视图、序列、存储过程、同义词、索引、簇和数据库链接等。Schema是逻辑结构,直接与数据库的数据相关,帮助...
在实际的企业级应用中,Nacos经常需要与各种数据库进行集成,包括Oracle这样的大型企业级关系型数据库。本教程将详细介绍如何在Nacos中适配Oracle 11g,并提供亲测可用的Oracle脚本。 首先,我们需要了解Nacos对...
### Oracle数据库备份与恢复的关键知识点 #### 一、Oracle数据库备份流程详解 ##### 1. 创建备份目录 在进行Oracle数据库备份之前,首先需要在服务器上创建一个专门用于存放备份文件的目录。例如,在示例中,以`...
Java作为一种广泛应用的编程语言,能够帮助我们实现与数据库的交互,完成各种自动化操作,包括生成控制文件(CTL)、SELECT SQL语句以及建表DDL语句。本篇将详细讲解如何使用Java连接Oracle数据库,按需生成这些关键...
Oracle数据库DBA(Database Administrator)是负责Oracle数据库系统运行管理的专业技术人员。在准备面试Oracle数据库管理员岗位时,掌握相关的技术知识和处理问题的能力是非常重要的。以下是针对给定的Oracle数据库...
Oracle数据库中的对象集合Schema是数据库管理系统中的核心概念之一,它在数据库设计和管理中起着至关重要的作用。Schema可以理解为一个命名空间或容器,它包含了一系列相关的数据库对象,如表、视图、索引、存储过程...
"快速实现Oracle数据库大数据迁移方案" 通过本教程,我们可以学习如何快速迁移 Oracle 数据库,以实现稳定快速的大数据量迁移。以下是本教程中所涵盖的知识点: 1. 了解 Oracle 数据库迁移中的挑战:在迁移 Oracle...
在`pom.xml`文件中,你需要引入SpringBoot的Web和JPA依赖,以及Oracle JDBC驱动: ```xml <groupId>org.springframework.boot <artifactId>spring-boot-starter-web <groupId>org.springframework.boot ...
Oracle数据库是一个关系型数据库管理系统,广泛应用于各种行业和领域。Oracle数据库具有高性能、高安全性和高可扩展性等特点,适用于大型数据库应用系统。 知识点二:Oracle数据库安装和配置 Oracle数据库的安装和...