Author: mac

  • How to create a GoldenGate uni-directional target database in a production database zero downtime

    Problem Description: W2 have a production database and need to configure a GoldenGate uni-directional replication in real time without downtime. Is there a best practice, white paper, knowledge document would help us in desiging the transition? We can start with a pair of database which is Data Guard Physical replication, or start with a brande…

  • 11g新特性:Note raised when explain plan for create index

    这是一个挺实用的小特性,在11g r2中使用explain plan for create index时Oracle会提示评估的索引大小(estimated index size)了: SQL> set linesize 200 pagesize 1400; SQL> explain plan for create index ind_t23 on maclean(t2,t3); Explained. SQL> select * from table(dbms_xplan.display()); PLAN_TABLE_OUTPUT ———————————————————————————- Plan hash value: 2510282917 ———————————————————————————- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ———————————————————————————- | 0 |…

  • Goldengate各build与Oracle数据库版本间的兼容性

    因为在Edelivery.oracle.com上找不到Goldengate for Oracle 8i的build,所以一度猜想是不是能用GG for Oracle 9i对8i做extract。之后在metalink上发现了这个文档《Compatibility between OGG builds and Oracle database Versions》,明确介绍了ogg的build需要与数据库版本一致,即: 针对extract来说,Oracle数据库版本应与Oracle Golden Gate的build信息完全一致 举例而言 OGG 10g build(如Oracle GoldenGate V11.1.1.0.0 for Oracle 10g):该build可以在Oracle 10.1或10.2版本的数据库上做extract OGG oracle 10.1 build:该build仅可以为Oracle 10.1版本的数据库做extract,其他版本均不可以 OGG oracle 10.2 build:该build仅可以为Oracle 10.2版本的数据库做extract,其他版本均不可以 针对replicat来说,数据库主版本号(major database version)应与OGG的build一致 举例而言 OGG 10g build:可以针对Oracle 10.1和10.2版本的数据库做replicat操作,其他版本均不可以 OGG oracle 10.1 build:可以针对Oracle 10.1和10.2版本的数据库做replicat操作,其他版本均不可以 OGG oracle 10.2 build:可以针对Oracle 10.1和10.2版本的数据库做replicat操作,其他版本均不可以…

  • ORA-00600:[kclchkinteg_2]及[kjmsm_epc]内部错误一例

    一套AIX上的9.2.0.6 RAC系统,alert日志中最初报LMS进程(Lock Manager Server process,即锁服务管理进程,仅出现在RAC系统中)遭遇ORA-00600[kclchkinteg_2],继而出现ORA-00600[[kjmsm_epc]内部错误导致实例crash(instance crashed)。相关日志如下: Tue Dec 1 01:20:25 2009 Errors in file /oracle/admin/crmdb/bdump/crmdb1_lms7_2143190.trc: ORA-00600: internal error code, arguments: [kclchkinteg_2], [], [], [], [], [], [], [] Tue Dec 1 01:20:25 2009 Errors in file /oracle/admin/crmdb/bdump/crmdb1_lms7_2143190.trc: ORA-00600: internal error code, arguments: [kclchkinteg_2], [], [], [], [], [], [], [] Tue Dec 1 01:20:26 2009…

  • 配置GoldenGate同步DDL语句(1)

    在配置Goldengate同步DDL语句前,要求在数据库内完成一系列的预安装先题步骤;其中包括建立合适的Goldengate用户,如: create user maclean identified by maclean; grant dba to maclean; /* 之后maclean用户将用以配置extract和pump */ 之后我们需要执行一系列同步DLL语句要用到的GoldenGate脚本,这些脚本存放在GG的安装目录下: [maclean@rh2 gg]$ pwd /home/maclean/gg [maclean@rh2 gg]$ ls -l dd*.sql -r–r–r– 1 maclean oinstall 1059 2010-03-12 ddl_cleartrace.sql -r–r–r– 1 maclean oinstall 4189 2010-03-12 ddl_ddl2file.sql -r–r–r– 1 maclean oinstall 746 2010-03-12 ddl_disable.sql -r–r–r– 1 maclean oinstall 692 2010-03-12 ddl_enable.sql -r–r–r– 1 maclean…

  • TSM配置导致RMAN备份expired

    下午协助客户做异机备份恢复测试,平台是AIX 5.3使用tsm备份。在源生产机上备份了数据库和控制文件,准备从磁带库上恢复到测试机时RMAN报找到不备份的控制文件,之后crosscheck了一把:

  • Dropping Very Large Table In Oracle

    这是一张550G的大表,表上还包括了CLOB和BLOB对象;我们来观察下Oracle drop这样一个大表时的具体表现: SQL> select * from v$version; BANNER —————————————————————- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bi PL/SQL Release 10.2.0.4.0 – Production CORE 10.2.0.4.0 Production TNS for Linux: Version 10.2.0.4.0 – Production NLSRTL Version 10.2.0.4.0 – Production SQL> show parameter recyclebin NAME TYPE VALUE ———————————— ———– —————————— recyclebin string OFF /* 为了避免被flashback table骚扰,关闭了recyclebin回收站功能 */…

  • Oracle等待事件:Data file init write

    在给某一个大表加有default值的clob列时出现了Data file init write等待事件,这个等待事件是10gR2中新加入的,恰恰10gr2的文档(乃至11g的文档)都没有列出该等待事件。该等待事件一般在Oracle自动扩展数据文件(auto extend datafile)并串行地格式化数据文件的新创建的空间时作为前台(foreground)等待事件出现: SQL> select * from v$version; BANNER —————————————————————- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bi PL/SQL Release 10.2.0.4.0 – Production CORE 10.2.0.4.0 Production TNS for Linux: Version 10.2.0.4.0 – Production NLSRTL Version 10.2.0.4.0 – Production SQL> show parameter compatible NAME TYPE VALUE ———————————— ———– —————————— compatible string 10.2.0.3…

  • Goldengate一个令人郁闷的小细节

    晚上有兴趣测试了下Goldengate的initial load功能,通过initial load+change sync可以很容易做到数据迁移data migration;不过发现一个令人很郁闷的细节,就是replicat的params中定义map参数时TARGET到前面一个逗号间要留一个空格space: MAP table spec, TARGET table spec /*TARGET到前面一个逗号间要留一个空格space*/ [, DEF ] [, TARGETDEF ] [, COLMAP ()] [, EVENTACTIONS ()] [, EXCEPTIONSONLY] [, EXITPARAM “”] [, FILTER ()] [, HANDLECOLLISIONS | NOHANDLECOLLISIONS] [, INSERTALLRECORDS] [, INSERTAPPEND | NOINSERTAPPEND] [, KEYCOLS ()] [, REPERROR ( , )] [, SQLEXEC ()] [, TRIMSPACES…

  • ora-00600[kkocxj:pjpCtx]内部错误一例

    一套HP-UX上的10.2.0.4系统在运行某条 select查询语句时出现ORA-00600[kkocxj:pjpCtx]内部错误,TRACE文件信息如下: FILE VERSION —————— Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORACLE_HOME = /oracle/app/oracle/product/10.2 System name: HP-UX Node name: crmdb1 Release: B.11.31 Version: U Machine: ia64 Instance name: cbssnm Redo thread mounted by this instance: 1 TRACE FILE ————— Filename…