impdp导致主键索引的变化
在使用数据泵导入数据时,有时需要禁用掉主键约束。这样做在特定情况下会存在导入数据后朱建索引丢失和主键对应的索引变化的问题。官方支持如下。禁用约束,删除索引:Oracle? Database Administrator's Guide 11g Release 2 (11.2)--》Managing Integrity ConstraintsYou can use the ALTER TABLE statement to enab...
Oracle官方推荐的数据迁移方式评估
Oracle Database - Enterprise Edition - Version 8.1.7.4 and laterInformation in this document applies to any platform.For details please refer to the appropriate migration manual or Changing platforms requires the database be re-built and / or the data moved using one of the following&...
Oracle数据库克隆后temp文件因路径变化无法找到问题
Oracle数据库克隆后temp文件因路径变化无法找到出现如下报错Errors in filexxxx.trc:ORA-01157: cannot identify/lock data file xxx - see DBWR trace fileORA-01110: data file 201: 'xxx/temp01.dbf'部分trace文件: DDE: Problem Key 'ORA 1110' was flood controlled (0x5) (no incident)ORA-01110: data...
如何安全移除dataguard和如何安全移除备库并把备库变成一个单独的数据库
参考MOS:How To Remove Standby Database And Convert It to Standalone Database (文档 ID 2074686.1)How to remove a Data Guard Configuration from Primary Database (文档 ID 733794.1)
Oracle调优-常用表KEEP到内存中
数据迁移后性能受到影响,需要将老数据库中keep到内存中的表在新库中keep到内存中,使用如下方法。新库设置db_keep_cache_size为适当值,这个值的大小不能小于需要keep的表的大小。查看老库中需要keep的表信息:select s.owner, s.segment_name, s.partition_n...
expdp/impdp使用sysdba权限迁移数据
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 logfile=fullexp.log estimate_only=yes;
oracle 12c使用dblink克隆pdb
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-remote-pdb-or-non-cdb-12cr2Multitenant : Clone a Remote PDB or Non-CDB in Oracle Database 12c (12.1.0.2)https://oracle-base.com/articles/12c/multiten...
Run Out Of Space On UNDO Tablespace Using DataPump Import/Export
参考文档:Run Out Of Space On UNDO Tablespace Using DataPump Import/Export (文档 ID 735366.1)使用datapump数据迁移时,若目标库中表已经存在切有索引或者主键约束,则在插入每一行都会产生undo,从而出现undo表空间不够的报错。在alert日志中有如下内容statment in resumable session 'XXXXXX' was suspended due...
使用sqlloader向oracle导入文本数据
文本文件如下,注意文件名必须有后缀,文本行首也需要|分隔符:[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|123|m|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|123|m|aaa|123...
分区表分批迁移
遇到个分区表数据量超大的case,磁盘空间不够,所以考虑使用数据泵分批导数据,测试如下:source:oracle windows 32bit 10.2.0.1target : oracle windows 64bit 11.2.0.1使用系统自带sh用户下的sales分区表:expdp:expdp sh/sh dumpfile=sales_p.dmp directory=dump logfile=sales.log tables=sales:SALES...
11.1.0.6 导入导出bug
实验环境:11.1.0.6.0对ANONYMOUSUSER_ALL表中分区进行备份SQL> select TABLE_NAME,PARTITION_NAME,HIGH_VALUE,PARTITION_POSITION,TABLESPACE_NAME from user_tab_partitions where TABLE_NAME='ANONYMOUSUSER_ALL';TABLE_NAME PARTITION_NAM HIGH_VALU...