摘要: 遇到个分区表数据量超大的case,磁盘空间不够,所以考虑使用数据泵分批导数据,测试如下:source : oracle windows 32bit 10.2.0.1target : oracle windows 64bit 11.2.0.1使用系统自带sh用户下的sales分区表:expdp:exp 阅读全文
posted @ 2017-11-10 11:25 ClarkYu 阅读(825) 评论(0) 推荐(0)
摘要: 文本文件如下,注意文件名必须有后缀,文本行首也需要|分隔符:[oracle@ycr test]$ more person.txt|aaa|123|m|aaa|123|m|aaa|123|m|aaa|123|m|aaa|123|m|aaa|123|m|aaa|123|m|aaa|123|m|aaa|1 阅读全文
posted @ 2017-11-10 11:24 ClarkYu 阅读(488) 评论(0) 推荐(0)
摘要: Multitenant : Hot Clone a Remote PDB or Non-CDB in Oracle Database 12c Release 2 (12.2)https://oracle-base.com/articles/12c/multitenant-hot-clone-remo 阅读全文
posted @ 2017-11-10 11:24 ClarkYu 阅读(1570) 评论(0) 推荐(0)
摘要: 数据迁移后性能受到影响,需要将老数据库中keep到内存中的表在新库中keep到内存中,使用如下方法。新库设置db_keep_cache_size为适当值,这个值的大小不能小于需要keep的表的大小。查看老库中需要keep的表信息:select s.owner, s.segment_name, s.p 阅读全文
posted @ 2017-11-10 11:23 ClarkYu 阅读(3146) 评论(0) 推荐(0)
摘要: expdp 'userid="/ as sysdba"' directory=DATA_PUMP_DIR full=y logfile=fullexp.log estimate_only=yes;expdp \'/ as sysdba\' directory=DATA_PUMP_DIR full=y 阅读全文
posted @ 2017-11-10 11:23 ClarkYu 阅读(6331) 评论(0) 推荐(0)
摘要: 参考MOS:How To Remove Standby Database And Convert It to Standalone Database (文档 ID 2074686.1)How to remove a Data Guard Configuration from Primary Data 阅读全文
posted @ 2017-11-10 11:22 ClarkYu 阅读(757) 评论(0) 推荐(0)
摘要: RAC修改spfile位置 [root@rac1 ~]# su - oracle [oracle@rac1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Wed Jan 8 22:36:39 2014 Copyr 阅读全文
posted @ 2017-11-10 11:21 ClarkYu 阅读(778) 评论(0) 推荐(0)
摘要: Oracle数据库克隆后temp文件因路径变化无法找到出现如下报错Errors in filexxxx.trc:ORA-01157: cannot identify/lock data file xxx - see DBWR trace fileORA-01110: data file 201: ' 阅读全文
posted @ 2017-11-10 11:19 ClarkYu 阅读(877) 评论(0) 推荐(0)
摘要: SQL> create table ycrtest2 (name varchar2(50));Table created.SQL> insert into ycrtest2 values('ABC @@');1 row created.SQL> insert into ycrtest2 values 阅读全文
posted @ 2017-11-10 11:12 ClarkYu 阅读(705) 评论(0) 推荐(0)
摘要: 有时出于测试需求,需要暂停oracle的某些后台进程,此时以暂停lgwr进程为例使用sysdba连接到数据库查询到LGWR进程的PID:SQL> select prc.pid from v$bgprocess bgp ,v$process prc where bgp.name='LGWR' and 阅读全文
posted @ 2017-11-10 11:12 ClarkYu 阅读(323) 评论(0) 推荐(0)