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

随笔分类 -  Oracle

摘要:如果有空表都需要导出执行 select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 后将查询出的语句全部执行 重新执行导出dmp exp *****/*****@**.*.*.*/ 阅读全文

posted @ 2018-11-23 14:01 咸鱼传说 阅读(145) 评论(0) 推荐(0)

摘要:知道表空间名,显示该表空间包括的所有表。select * from all_tables where tablespace_name='表空间名'知道表名,查看该表属于那个表空间select tablespace_name,table_name from user_tables where tabl 阅读全文

posted @ 2018-11-16 13:44 咸鱼传说 阅读(166) 评论(0) 推荐(0)

摘要:-- 查询用户各进程相对应的 sid、serial#。 -- 注意: username 必须大写 SELECT sid,serial#,username FROM v$session WHERE username = 'AAA';-- 根据上面的查询结果,将用户占用的所有进程杀掉。 --注意: si 阅读全文

posted @ 2018-11-06 15:40 咸鱼传说 阅读(197) 评论(0) 推荐(0)

摘要:select to_date('19930411','yyyymmdd')-to_date('19890507','yyyymmdd') from dual; 求日期差值 ROUND(NUMBER,digits) number,要四舍五入的数,digits是要小数点后保留的位数 如果 digits 阅读全文

posted @ 2018-11-01 15:30 咸鱼传说 阅读(106) 评论(0) 推荐(0)

摘要:剩余 gcc-c++-3.4.6-3.1.x86_64.rpm elfutils-libelf-devel-0.97-5.x86_64.rpm glibc-2.3.4-2.41.x86_64.rpm gcc-3.4.6-3.1.x86_64.rpm glibc-devel-2.3.4-2.x86_6 阅读全文

posted @ 2018-10-29 15:09 咸鱼传说 阅读(209) 评论(0) 推荐(0)

摘要:修改为16GBK: 1,用sys登录 sqlplus / as sysdba 2,shutdown immediate; 3,startup mount; 4,alter system enable restricted session; 5,alter system set job_queue_p 阅读全文

posted @ 2018-10-29 10:22 咸鱼传说 阅读(203) 评论(0) 推荐(0)