一、 Chang sys password neet attention
在生产环境中SYS用户的密码最好不要随意的修改,因为他会涉及带库在rman备份中,隐含sys密码的变更,另外如果生产环境中进行了DG的配置,那么修改primary db sys password 会导致与从库之间传递redo的错误,所以如果要修改主库的sys密码,必须在主库和从库2个节点中重新生成ORAPWD密码文件。
Its advisable to follow the steps below when you are planning to change the SYS password in PRIMARY
Step 1: Defer the remote archival destination (log_archive_dest_state_n) parameter in primary
Step 2: change the password in primary
Step 3: Recreate or copy the password file in standby
Step 4: Enable the remote archival destination (log_archive_dest_state_n) parameter in primary
For 10g database
a) Every database in a Data Guard configuration must use a password file, and the password for the SYS user must be identical on every system for redo data transmission to succeed.
b) REMOTE_LOGIN_PASSWORDFILE parameter setting should be either EXCLUSIVE or SHARED.
1. primary alert日志info:
Fri Apr 23 23:53:24 2010
Thread 1 advanced to log sequence 9420 (LGWR switch)
Current log# 1 seq# 9420 mem# 0: /dev/vgleidata/rlvleiredo1_1
Current log# 1 seq# 9420 mem# 1: /dev/vgleidata/rlvleiredo1_2
Fri Apr 23 23:53:24 2010
******************************************************************
LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
******************************************************************
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
------------------------------------------------------------
LGWR: Error 16191 creating archivelog file 'STCPF'
Fri Apr 23 23:53:24 2010
Errors in file /oracle/admin/bosdb/bdump/leiz1_lns1_6050.trc:
ORA-16191: Primary log shipping client not logged on standby
LNS: Failed to archive log 1 thread 1 sequence 9420 (16191)
Fri Apr 23 23:53:29 2010
Error 1017 received logging on to the standby
2.Reproduction orapwd file in parimary db and standby db.
leizdb: Primary db: orapwd file=/oracle/product/10.2/db/dbs/orapwleizdb1 password=new password force=y standby db(attention orapwd file path) orapwd file=/oracle/product/10.2.0/db/dbs/orapwleizdb1 password=new password force=y |
参考文献:Changing SYS password of PRIMARY database when STANDBY in place to avoid ORA-16191 [ID 806703.1]
二、修改完standby db os timezone参数,为什么查询没有生效?
1. 修改完standby db /etc/TIMEZONE参数,发现主库和从库的dbtomezone参数仍然不一致。
You can get a correct value if you cancel the recovery & open in read only mode.
********* Primary *************
---------------- ------------------------------ ----------
PRIMARY chicago READ WRITE
------
+05:30
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
---------------- ------------------------------ ----------
PHYSICAL STANDBY boston MOUNTED
------
+00:00
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
DGMGRL for 32-bit Windows: Version 10.2.0.4.0 - Production
Connected.
DGMGRL> show configuration;
Name: DRSolution
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
chicago - Primary database
boston - Physical standby database
SUCCESS
Succeeded.
DGMGRL> exit
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
---------------- ------------------------------ ----------
PHYSICAL STANDBY boston READ ONLY
------
+05:30
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9252210/viewspace-660897/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9252210/viewspace-660897/