摘要:如果有空表都需要导出执行 select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 后将查询出的语句全部执行 重新执行导出dmp exp *****/*****@**.*.*.*/
阅读全文
posted @ 2018-11-23 14:01
随笔分类 - Oracle
摘要:如果有空表都需要导出执行 select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 后将查询出的语句全部执行 重新执行导出dmp exp *****/*****@**.*.*.*/
阅读全文
posted @ 2018-11-23 14:01
摘要:知道表空间名,显示该表空间包括的所有表。select * from all_tables where tablespace_name='表空间名'知道表名,查看该表属于那个表空间select tablespace_name,table_name from user_tables where tabl
阅读全文
posted @ 2018-11-16 13:44
摘要:-- 查询用户各进程相对应的 sid、serial#。 -- 注意: username 必须大写 SELECT sid,serial#,username FROM v$session WHERE username = 'AAA';-- 根据上面的查询结果,将用户占用的所有进程杀掉。 --注意: si
阅读全文
posted @ 2018-11-06 15:40
摘要:select to_date('19930411','yyyymmdd')-to_date('19890507','yyyymmdd') from dual; 求日期差值 ROUND(NUMBER,digits) number,要四舍五入的数,digits是要小数点后保留的位数 如果 digits
阅读全文
posted @ 2018-11-01 15:30
摘要:剩余 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
摘要:修改为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
|
||