- 最后登录
- 2018-8-16
- 在线时间
- 100 小时
- 威望
- 45
- 金钱
- 292
- 注册时间
- 2012-4-24
- 阅读权限
- 10
- 帖子
- 53
- 精华
- 0
- 积分
- 45
- UID
- 385
|
1#
发表于 2012-5-23 15:31:57
|
查看: 7084 |
回复: 6
Hi, 各位
有两个关于DG的问题想请教各位:
1. 环境:
OS: OEL 5.4 64 bit
Oracle Version: Oracle Enterprise Edition 10.2.0.1 64bit , 之后升级到 10.2.0.4 64bit
2. 问题描述:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
问题1:有两台机器做成了物理standby的dg环境(dga 为 Primary, dgb为 physical standby),昨天在vbox上做了个升级的测试。
主要想测试目的是:在主库做了升级后,备库在应用主库升级过程中的日志,备库在直接升级oracle软件,能否正常完成升级过程。
步骤大致如下:
-1. primary 升级oracle软件,升级库
-2. standby(10.2.0.1)先进行主库升级过程中的日志应用,再进行oracle软件升级。
-3. 尝试打开standby的库,查看是否能正常打开(open readonly)。
在这个过程中出现了意外情况,在升级Primary过程中(使用手工升级),不断有包shared pool和java pool的不足的报错(最糟糕的情况是写了500m的trace),
因为是虚拟环境,内存不太足够。之后,把primary的sga_target,sga_max_size 从160M,调整至180M,并相应调高share pool和java pool的最小值。再重跑@?/rdbms/admin/catupgrd.sql
。
升级过程中还是报出了少量报错。
报错如下:
- Tue May 22 19:28:44 2012
- Errors in file /opt/oracle/admin/dgb/bdump/dgb_mmon_344.trc:
- ORA-00604: error occurred at recursive SQL level 2
- ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select name,password,datats#...","Typecheck","kgghteInit")
复制代码
但是最后,都过去了。
通过查询dba_registry,发现有个em组件为upgrading的状态。
- SQL> set linesize 200;
- SQL> r
- 1* select comp_name, version, status from dba_registry
- COMP_NAME VERSION STATUS
- ---------------------------------------- ------------------------------ -----------
- Oracle Database Catalog Views 10.2.0.4.0 VALID
- Oracle Database Packages and Types 10.2.0.4.0 VALID
- Oracle Workspace Manager 10.2.0.4.3 VALID
- JServer JAVA Virtual Machine 10.2.0.4.0 VALID
- Oracle XDK 10.2.0.4.0 VALID
- Oracle Database Java Packages 10.2.0.4.0 VALID
- Oracle Expression Filter 10.2.0.4.0 VALID
- Oracle Data Mining 10.2.0.4.0 VALID
- Oracle Text 10.2.0.4.0 VALID
- Oracle XML Database 10.2.0.4.0 VALID
- Oracle Rules Manager 10.2.0.1.0 VALID
- COMP_NAME VERSION STATUS
- ---------------------------------------- ------------------------------ -----------
- Oracle interMedia 10.2.0.4.0 VALID
- OLAP Analytic Workspace 10.2.0.4.0 VALID
- Oracle OLAP API 10.2.0.4.0 VALID
- OLAP Catalog 10.2.0.4.0 VALID
- Spatial 10.2.0.4.0 VALID
- Oracle Enterprise Manager 10.2.0.1.0 UPGRADING
- 17 rows selected.
复制代码
感觉应该可以忽略掉,但是,还是想解决掉。 通过mos里的How To Diagnose Components With NON VALID Status In DBA_REGISTRY After an Upgrade [ID 753041.1]
采集了脚本中的信息,但是,发现其中有几个对象有问题。
- ================================
- List of Invalid Database Objects
- ================================
- Number of Invalid Objects
- ------------------------------------------------------------------
- There are 3 Invalid objects
- DOC>################################################################
- DOC>
- DOC> If there are no Invalid objects below will result in zero rows.
- DOC>
- DOC>################################################################
- DOC>#
- OWNER OBJECT_NAME OBJECT_TYPE
- ------------ ---------------------------------------- ----------------------------------------
- SYSMAN EM_PING PACKAGE BODY
- SYSMAN MGMT_TIME_SYNC PACKAGE BODY
- SYSMAN MGMT$DB_INIT_PARAMS VIEW
- 3 rows selected.
- ======================================================
- Count of Invalids by Schema
- ======================================================
- OWNER OBJECT_TYPE COUNT(*)
- ------------ ---------------------------------------- ----------
- PUBLIC SYNONYM 1
- SYSMAN PACKAGE BODY 2
- SYSMAN VIEW 1
- ==============================================================
- Identifying whether a database was created as 32-bit or 64-bit
- ==============================================================
- DOC>###########################################################################
- DOC>
- DOC> Result referencing the string 'B023' ==> Database was created as 32-bit
- DOC> Result referencing the string 'B047' ==> Database was created as 64-bit
- DOC> When String results in 'B023' and when upgrading database to 10.2.0.3.0
- DOC> (64-bit) , For known issue refer below articles
- DOC>
- DOC> Note 412271.1 ORA-600 [22635] and ORA-600 [KOKEIIX1] Reported While
- DOC> Upgrading Or Patching Databases To 10.2.0.3
- DOC> Note 579523.1 ORA-600 [22635], ORA-600 [KOKEIIX1], ORA-7445 [KOPESIZ] and
- DOC> OCI-21500 [KOXSIHREAD1] Reported While Upgrading To 11.1.0.6
- DOC>
- DOC>###########################################################################
- DOC>#
- Metadata Initial DB Creation Info
- -------- -----------------------------------
- B047 Database was created as 64-bit
- ===================================================
- Number of Duplicate Objects Owned by SYS and SYSTEM
- ===================================================
- Counting duplicate objects ....
- COUNT(1)
- ----------
- 4
复制代码
请问,我应该如何解决这个问题,@?/rdbms/admin/utlrp.sql这个已经跑了好几遍都没有把这几个有问题的对象编译完整。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
问题2:
因为,在做的途中遇到了意外,想问下,大伙有没这么做过升级的,也就是standby直接recover primary库在升级过程中的redo?
这样做会有什么风险吗?一般会怎么去做呢,谢谢。 |
|