流易

日日行,不怕千万里;常常做,不怕千万事。(https://github.com/poazy)

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Oracle

摘要:select 'alter table ' || t.table_name || ' disable constraint ' || t.constraint_name || ';' from DBA_CONSTRAINTS t WHERE t.CONSTRAINT_TYPE = 'R' and OWNER = 'SWT_ZCPT' order by t.TABLE_NAME; 阅读全文
posted @ 2017-09-20 14:00 流易 阅读(284) 评论(0) 推荐(0)

摘要:执行生成的语句。 阅读全文
posted @ 2017-09-20 13:51 流易 阅读(294) 评论(0) 推荐(0)

摘要:函数唯一索引 create unique index UK_XXXXX on AAYYJTEST (CASE DELETE_FLAG WHEN '0' THEN XKZ END); 忽略大小写,函数唯一索引,不建议使用,最好在保存数据时统一转换成大写 create unique index UK_X 阅读全文
posted @ 2017-09-12 15:35 流易 阅读(200) 评论(0) 推荐(0)

摘要:set NLS_LANG=AMERICAN_AMERICA.AL32UTF8 exp jjhd_test/11111111@a_syj file="d:\jjhd_test.dmp" log="d:\jjhd_test.elog" STATISTICS=none tables=(a,b,c,d) imp jjdh/11111111@a_syj file="d:\jjhd_te... 阅读全文
posted @ 2017-08-04 16:22 流易 阅读(221) 评论(0) 推荐(0)

摘要:Linux系统启动Oracle命令 su - oracle sqlplus /nolog conn / as sysdba startup exit lsnrctl start exit Linux系统关闭Oracle命令 su - oracle sqlplus /nolog conn / as s 阅读全文
posted @ 2017-07-03 09:47 流易 阅读(997) 评论(0) 推荐(0)

摘要:select table_name from user_tables where NUM_ROWS=0;select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0; 阅读全文
posted @ 2013-03-31 23:43 流易 阅读(382) 评论(0) 推荐(1)

摘要: 阅读全文
posted @ 2013-03-31 23:40 流易 阅读(318) 评论(0) 推荐(0)