PRIMARY WIN-PRYORA01
STANDBY WIN-SECORA01
OBSERVER WIN-OBSORA01
On
WIN-OBSORA01 (Check
Oracle Wallet)
C:\Users\oracle>mkstore
-wrl "E:\app\oracle\product\11.2.0\dbhome_1\BIN\owm\wallets\oracle"
-listCredential
Oracle Secret Store Tool :
Version 11.2.0.4.0 - Production
Copyright (c) 2004, 2013,
Oracle and/or its affiliates. All rights reserved.
Enter wallet password:
List credential (index:
connect_string username)
2: testaic2 sys
1: testaic sys
C:\Users\oracle>
On WIN-OBSORA01 (Check
observer status)
C:\Users\oracle>dgmgrl
/@testaic
DGMGRL for 64-bit Windows:
Version 11.2.0.4.0 - 64bit Production
Copyright (c) 2000, 2009,
Oracle. All rights reserved.
Welcome to DGMGRL, type "help"
for information.
Connected.
DGMGRL> show configuration
verbose
Configuration - testaic
Protection Mode:
MaxAvailability
Databases:
testaic - Primary
database
testaic2 - (*) Physical
standby database
(*) Fast-Start Failover
target
Properties:
FastStartFailoverThreshold
= '30'
OperationTimeout
= '30'
FastStartFailoverLagLimit
= '30'
CommunicationTimeout
= '180'
ObserverReconnect
= '0'
FastStartFailoverAutoReinstate
= 'TRUE'
FastStartFailoverPmyShutdown
= 'TRUE'
BystandersFollowRoleChange
= 'ALL'
ObserverOverride
= 'FALSE'
ExternalDestination1
= ''
ExternalDestination2
= ''
PrimaryLostWriteAction
= 'CONTINUE'
Fast-Start Failover: ENABLED
Threshold: 30
seconds
Target: testaic2
Observer:
WIN-OBSORA01
Lag Limit: 30
seconds (not in use)
Shutdown Primary: TRUE
Auto-reinstate: TRUE
Observer Reconnect: (none)
Observer Override: FALSE
Configuration Status:
SUCCESS
C:\Users\oracle>dgmgrl
/@testaic
DGMGRL for 64-bit Windows:
Version 11.2.0.4.0 - 64bit Production
Copyright (c) 2000, 2009,
Oracle. All rights reserved.
Welcome to DGMGRL, type "help"
for information.
Connected.
DGMGRL> disable fast_start
failover;
Disabled.
DGMGRL> exit
On WIN-PRYORA01 (Disable
log transport)
SQL> alter system set
log_archive_dest_state_2=defer;
System altered.
SQL> alter system switch
logfile;
System altered.
SQL> alter user sys
identified by "NewPassword";
User altered.
Copy PWDtestaic.ORA to
WIN-SECORA01, and rename it to PWDtestaic2.ORA
SQL> alter system set
log_archive_dest_state_2=enable;
System altered.
SQL> alter system switch
logfile;
System altered.
SQL>
On WIN-OBSORA01 (Enable
fast_start failover)
C:\Users\oracle>dgmgrl
sys/NewPassword@testaic
DGMGRL for 64-bit Windows:
Version 11.2.0.4.0 - 64bit Production
Copyright (c) 2000, 2009,
Oracle. All rights reserved.
Welcome to DGMGRL, type "help"
for information.
Connected.
DGMGRL> enable fast_start
failover;
Enabled.
DGMGRL> exit
!!!!! The observer still
connects with old SYS password (no password set for password file).
C:\Users\oracle>dgmgrl
/@testaic2
DGMGRL for 64-bit Windows:
Version 11.2.0.4.0 - 64bit Production
Copyright (c) 2000, 2009,
Oracle. All rights reserved.
Welcome to DGMGRL, type "help"
for information.
Connected.
DGMGRL>
On WIN-OBSORA01
(Reconfigure users in wallet)
C:\Users\oracle>mkstore
-wrl "E:\app\oracle\product\11.2.0\dbhome_1\BIN\owm\wallets\oracle"
-deleteCredential testaic
Oracle Secret Store Tool :
Version 11.2.0.4.0 - Production
Copyright (c) 2004, 2013,
Oracle and/or its affiliates. All rights reserved.
Enter wallet password:
Delete credential
Delete 1
C:\Users\oracle>mkstore
-wrl "E:\app\oracle\product\11.2.0\dbhome_1\BIN\owm\wallets\oracle"
-createCredential testaic sys NewPassword
Oracle Secret Store Tool :
Version 11.2.0.4.0 - Production
Copyright (c) 2004, 2013,
Oracle and/or its affiliates. All rights reserved.
Enter wallet password:
Create credential
oracle.security.client.connect_string1
Same steps for testaic2
Changing password for
SYSTEM user
On WIN-PRYORA01 (Disable
log transport)
SQL> alter user system
identified by "NewPassword";
User altered.
SQL> conn
system/1qazxsw2@testaic
Connected.
SQL> conn
system/1qazxsw2@testaic2
ERROR:
ORA-01033: ORACLE
initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0
Warning: You are no longer
connected to ORACLE.
Testing new password on
secondary
On WIN-OBSORA01 (only for
test)
C:\Users\oracle>dgmgrl
/@testaic
DGMGRL for 64-bit Windows:
Version 11.2.0.4.0 - 64bit Production
Copyright (c) 2000, 2009,
Oracle. All rights reserved.
Welcome to DGMGRL, type "help"
for information.
Connected.
DGMGRL> switchover to
testaic2
Performing switchover NOW,
please wait...
Operation requires a
connection to instance "testaic2" on database "testaic2"
Connecting to instance
"testaic2"...
Connected.
New primary database
"testaic2" is opening...
Operation requires startup of
instance "testaic" on database "testaic"
Starting instance "testaic"...
ORACLE instance started.
Database mounted.
Switchover succeeded, new
primary is "testaic2"
DGMGRL>
C:\Users\oracle>sqlplus
system/NewPassword@testaic2
SQL*Plus: Release 11.2.0.4.0
Production on Fri Aug 5 11:29:51 2016
Copyright (c) 1982, 2013,
Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise
Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Data
Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle
Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Data
Mining and Real Application Testing options
C:\Users\oracle>sqlplus
system/NewPassword@testaic
SQL*Plus: Release 11.2.0.4.0
Production on Fri Aug 5 11:29:58 2016
Copyright (c) 1982, 2013,
Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE
initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
C:\Users\oracle>
No comments:
Post a Comment