###sample 0session
緣由未知:ide
解決辦法,重建密碼文件io
primary db :
alter system set log_archive_dest_state_2=defer sid='*' scope=both;file
standby db密碼
db:
su - dbim
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;db
in primaryword
mv orapwdb1 orapwdb1.bak
orapwd file=orapwdb1 password=manager entries=100 ignorecase=Yscope
mv orapwdb2 orapwdb2.bak
orapwd file=orapwdb2 password=manager entries=100 ignorecase=Ytab
SQL> alter user sys identified by manager;
in standby
mv orapwdb1 orapwdb1.bak
orapwd file=orapwdb1 password=manager entries=100 ignorecase=Y
mv orapwdb2 orapwdb2.bak
orapwd file=orapwdb2 password=manager entries=100 ignorecase=Y
db:
alter database recover managed standby database using current logfile disconnect from session;
primary db :alter system set log_archive_dest_state_2=ENABLE sid='*' scope=both;