Standby dtabase archivelog status
I have noticed that archived log status (applied or not) and PROTECTION_MODE,PROTECTION_LEVEL (both form V$ views) are different on standby database and on primary database what is the reason and what is the impact to the system of tease differences ???
Is it possible to correct this
I have physical standby database on RHEL4 with 10gR2
Hear will bee results from selects where you can see differences:
select SEQUENCE#,STANDBY_DEST,APPLIED,ARCHIVED,DELETED,CREATOR,REGISTRAR,STATUS from v$archived_log;
standby db returns
53 NO YES YES NO ARCH RFS A
54 NO YES YES YES FGRD FGRD D
54 NO YES YES NO ARCH RFS A
55 NO YES YES NO ARCH RFS A
56 NO YES YES NO ARCH RFS A
57 NO YES YES NO ARCH RFS A
but primary
53 NO NO YES NO FGRD FGRD A
53 YES YES YES NO ARCH ARCH A
54 NO NO YES NO ARCH ARCH A
55 NO NO YES NO ARCH ARCH A
56 NO NO YES NO ARCH ARCH A
54 YES NO YES NO ARCH ARCH A
55 YES NO YES NO ARCH ARCH A
56 YES YES YES NO ARCH ARCH A
57 NO NO YES NO ARCH ARCH A
57 YES YES YES NO ARCH ARCH A
what can bee the reason of such differences in applied or not if
redo shipping is done automatically by ARCH, mode ASYNC
protection mode: maximum performance
there where no problems with network,both instances are running on the same machine
when the archlog's was created a script was running who inserted data into some table
to make natural redo grow and redo switch.
PS. I have red the b14239.pdf carefully and understood it well.
Similar Messages
-
Can anyone explain what the status of clearing means when viewing standby redo log status?
SQL> select status from v$log;
STATUS
CLEARING
CLEARING
CURRENT
This is a bit different to what we'd see on an open database.Hello;
Log is being re-created as an empty log.
In a Standby database the regular redo are not used ( when not in PRIMARY MODE) only the standby redo logs are used. Sometimes as buffers for the redo coming from the primary.
You should be able to change the status by doing a ALTER SYSTEM SWITCH LOGFILE on your primary.
This note may help:
Online Redo Logs on Physical Standby [ID 740675.1]
Also
Take a look at v$standby_log too.
http://docs.oracle.com/cd/B28359_01/server.111/b28320/dynviews_3068.htm
Best Regards
mseberg -
Logical standby instantiate table status
Oracle 10.2.0.4
Hello All,
I am instantiating a table in a logical standby, execute dbms_logstdby.instantiate_table ('schema','table','db_link'). The table contains 18 million records and has been running for about 1 hour. Is there any way I can check the status of this instantiation as far as how much data has been processed or time remaining.
Any help would be greatly appreciated!
Thank you,
Daveuser13129655 wrote:
Oracle 10.2.0.4
Hello All,
I am instantiating a table in a logical standby, execute dbms_logstdby.instantiate_table ('schema','table','db_link'). The table contains 18 million records and has been running for about 1 hour. Is there any way I can check the status of this instantiation as far as how much data has been processed or time remaining.
Any help would be greatly appreciated!
Thank you,
Davesince other session can not see uncommitted data, you can not do so directly.
query v$sess_io repeatedly to see that I/O is occurring. -
Can't switch standby logfiles to status=active
Hi DBA's
I'm trying to create logical standby on 10.2 on fedora 6 on manual http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#g88234
I can't create proper working standby redo logs.
ALTER DATABASE ADD STANDBY LOGFILE GROUP 4
('/u01/app/oracle/oradata/ORCL/onlinelog/log4a.log',
'/u01/app/oracle/flash_recovery_area/ORCL/onlinelog/log4b.log') SIZE 50M;
then create the rest of standby redos and switch logfile:
ALTER SYSTEM SWITCH LOGFILE;
when:
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM V$STANDBY_LOG;
GROUP# THREAD# SEQUENCE# ARC STATUS
4 0 0 YES UNASSIGNED
5 0 0 YES UNASSIGNED
6 0 0 YES UNASSIGNED
What to do?
Edited by: val75 on Jun 21, 2009 11:08 PMtry switch log at primay
please try to run this Command and then open the primary database.
alter database set standby database to maximize performance;
alter database open; -
Hi, I see following status from my standby redo logs
SQL> select GROUP#, status from V$STANDBY_LOG;
GROUP# STATUS
5 UNASSIGNED
6 UNASSIGNED
7 UNASSIGNED
8 UNASSIGNED
What could be reason for this.Log file which are unassigned mean the Online redo log has never been written to. This is the state of a redo log that was just added, or just after a RESETLOGS when it is not the current redo log
http://www.mcs.csueastbay.edu/support/oracle/doc/10.2/server.102/b14237/dynviews_2134.htm -
Standby Applied Archivelog Automatic Deletion
Dear OTN Community,
My Oracle version is 10gR2 and OS is HP-UX v11.31
My question here is i have configured the archivelog deletion policy from none to APPLIED ON STANDBY on the standby database since we are taking backups on the primary database. I left the archivelog deletion policy as none on the primary database.
I have also set the retention period from redundancy 1 to recovery window of 2 days on the primary database. So the archivelogs, backups etc. are older than 2 days should be tagged as expired.
Now should the Oracle delete the expired and applied archivelogs of primary database on the standby archive destination of the standby database, am i right?
The other question is, how can we delete applied archivelogs from the standby archive destination on the standby unix box automatically? Let's say, i do not want to delete them using a unix deletion script or taking a backup of the archivelogs on primary database. Is it possible on realtime with an Oracle parameter or not?
Thank you in anticipating,
OganHi Ogan,
It's better to set the parameter applied on standby on the standby AND on the primary side, anyvay one of the side will not do anything but after a switchover like this all is already set.
Then yes Oracle will delete expired backup, archivelog on the primary destination and delete the applied log on the standby destination.
For your other question, put the applied on standby also on the primary side.
Loïc -
Hi,
Can you please explain me Standby database and applying archivelog?
And once I transfer archivelog from primary db to standby db, how the logs get applied to standby db?
Thanks in advance
KSG
Edited by: KSG on Dec 30, 2009 5:04 PMPlease do'nt feel bad or anything else, but having "Outline" knowledge may be cause of "OutofEmploymentDoor". Try to get the knowledge from documentation (the link Asif has given).... read it, remember it and implement it... It counts.. and only it will give you the "MARKS".
Do'nt go for outline knoweldge please.....!
Regards
Girish Sharma -
Logical Standby Creation Problems "Create STatus Unknown"
We are using Grid Control 10.2.0.3 on Oracle 10.2..0.3 databases, Windows 2003 sp2 machines.
We have a primary and fsfo physical standby working properly. We went to create a logical standby on a separate server and had problems. it turned out that the listener on the server was not discovered on the target. we fixed that problem and finished the creation of the logical standby and it seems to be functioning properly now.
However, the status on the data guard page for the logical standby shows Create Status Unknown and we are unable to proceed on to create an additional standby database for other purposes. We have tried removing the logical standby target and re-discovering it but status still shows Create Status Unknown.
Is there any way to clear this status without having to drop the logical standby and completely recreate it.The status on the agent shows it uploading successfully.
We resolved the issue by removing the logical standby from the configuration and selecting to retain the log apply. We then re-added the standby selecting to manage an existing standby database and the status went to normal. -
How to automate the purging of archivelogs on primary when backing up from physical standby?
Hi,
When configuring archivelog backups to run from my Active Standby database (11.2.0.3) I am running into an issue where the archivelogs on the primary database are not getting purged. This is resulting in the archiver hanging on the primary.
run {
allocate channel ch1 type 'sbt_tape'
TRACE 0;
setlimit channel ch1 maxopenfiles 8;
backup
filesperset = 32
(archivelog all delete input );
backup current controlfile spfile ;
My archivelog deletion policy is set as follows on both the primary and standby
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
When I run REPORT OBSOLETE from RMAN however, the primary database seems to have outdated information in it.
I have also observed the following in the RMAN backup log:
RMAN-08120: WARNING: archived log not deleted, not yet applied by standby.
Do I need to perform additional configuration to automate the purging of archivelogs on the primary database or is there an issue with the backup options and / or deletion policy specified?
Many thanks,
Gary Allen
DBAThe primary and standby databases are in sync and have been for over a week now.
Primary:
SQL> select max(sequence#), applied from v$archived_log group by applied;
MAX(SEQUENCE#) APPLIED
268 NO
267 YES
Standby:
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
268
For some reason though, the primary controlfile is not being updated properly and when I run the RMAN REPORT OBSOLETE command the data is nearly a week old yet on the standby the same command retrieves up to date information:
Primary:
RMAN> report obsolete
Backup Set 136 06-AUG-13
Backup Piece 136 06-AUG-13 48ogk9ik_1_1
Backup Set 138 06-AUG-13
Backup Piece 138 06-AUG-13 4aogkqbm_1_1
Backup Set 142 06-AUG-13
Backup Piece 142 06-AUG-13 4eogl5i6_1_1
Backup Set 144 07-AUG-13
Backup Piece 144 07-AUG-13 4gogmc0a_1_1
RMAN> report obsolete
Standby:
Backup Set 156 13-AUG-13
Backup Piece 156 13-AUG-13 4uoh65o7_1_1
Backup Set 159 13-AUG-13
Backup Piece 159 13-AUG-13 51oh6d0r_1_1
Backup Set 162 13-AUG-13
Backup Piece 162 13-AUG-13 54oh6n8a_1_1
Backup Set 165 13-AUG-13
Backup Piece 165 13-AUG-13 57oh78qr_1_1 -
Switchover_status in standby database showing NOT ALLOWED
Hi All,
My oracle database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit on windows platform.
I need to perform switchover activity with dg_broker=TRUE.
When I checked the status of DR database I found that switchover_status is NOT ALLOWED rather than SESSION ACTIVE or TO PRIMARY.I have doubt whether switchover can be done successfully or not with this configuration?
*Parameters from spfile in production database
=======================================
maxprod.__db_cache_size=2046820352
maxprod.__java_pool_size=16777216
maxprod.__large_pool_size=16777216
maxprod.__shared_pool_size=352321536
maxprod.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0\admin\maxprod\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\bdump'
*.compatible='10.2.0.1.0'
*.control_files='D:\MaximoData\oradata\maxprod\CONTROL01.CTL','D:\MaximoData\oradata\maxprod\CONTROL02.CTL','D:\MaximoData\oradata\maxprod\CONTROL03.CTL'
*.core_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\cdump'
*.cursor_sharing='EXACT'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='maxprod'
*.db_recovery_file_dest='D:\MaximoData\flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dg_broker_start=TRUE
*.dispatchers='(PROTOCOL=TCP) (SERVICE=maxprodXDB)'
*.fal_client='MAXPROD'
*.fal_server='EAMDR'
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(MAXPROD,EAMDR)'
*.log_archive_dest_1='location=D:\MaximoData\Archive_Log valid_for=(all_logfiles,all_roles)'
*.log_archive_dest_2='SERVICE=EAMDR VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=EAMDR'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_max_processes=30
*.log_archive_start=true
*.log_buffer=100000000
*.nls_language='AMERICAN'
*.open_cursors=8000
*.pga_aggregate_target=848297984
*.processes=300
*.remote_login_passwordfile='EXCLUSIVE'
*.session_cached_cursors=20
*.sga_max_size=4294967296
*.sga_target=2550136832
*.sql92_security=TRUE
*.standby_archive_dest='D:\MaximoData\Archive_Log\standby'
*.standby_file_management='auto'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0\admin\maxprod\udump'*
*Parameters from spfile in DR database
============================
maxprod.__db_cache_size=3187671040
eamdr.__db_cache_size=1073741824
maxprod.__java_pool_size=16777216
eamdr.__java_pool_size=16777216
maxprod.__large_pool_size=16777216
eamdr.__large_pool_size=16777216
maxprod.__shared_pool_size=1056964608
eamdr.__shared_pool_size=486539264
maxprod.__streams_pool_size=0
eamdr.__streams_pool_size=0
*.audit_file_dest='C:\oracle\product\10.2.0\admin\EAMDR\adump'
*.background_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\bdump'
*.compatible='10.2.0.1.0'
*.control_files='D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL01.CTL','D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL02.CTL','D:\MAXIMODATA\ORADATA\MAXPROD\CONTROL03.CTL'#Restore Controlfile
*.core_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='maxprod'
*.db_recovery_file_dest_size=10737418240
*.db_recovery_file_dest='D:\MaximoData\flash_recovery_area'
*.DB_UNIQUE_NAME='EAMDR'
*.dg_broker_start=TRUE
*.dispatchers='(PROTOCOL=TCP) (SERVICE=maxprodXDB)'
*.fal_client='EAMDR'
*.fal_server='MAXPROD'
*.job_queue_processes=10
*.log_archive_config='DG_CONFIG=(MAXPROD,EAMDR)'
*.log_archive_dest_1='LOCATION=D:\MaximoData\Archive_Log VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=EAMDR'
*.log_archive_dest_2='service=maxprod valid_for=(online_logfiles,primary_role) db_unique_name=MAXPROD'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_max_processes=30
*.nls_language='AMERICAN'
*.open_cursors=8000
*.pga_aggregate_target=194967296
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=4294967296
*.sga_target=1594967296
*.standby_archive_dest='D:\MaximoData\Archive_Log\standby'
*.standby_file_management='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='C:\oracle\product\10.2.0\admin\EAMDR\udump'*
I didn't find any DG_BROKER_CONFIG_FILE1, DG_BROKER_CONFIG_FILE2 parameters from spfile in both production and DR db?
Is anything missing in spfile?
When I am trying to connect with dgmgrl
DGMGRL>connect sys;
connected
DGMGRL>show configuration;
Error: ORA-16532: Data Guard broker configuration does not exist
what does it mean when dgmgrl is set to true?
I have attached PRODUCTION and DR queries outputs for better understanding.
IN PRIMARY DATABASE
SQL>select database_role from v$database;
DATABASE_ROLE
PRIMARY
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
SESSIONS ACTIVE
SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
maxprod PRIMARY READ WRITE ARCHIVELOG MAXIMUM PERFORMANCE
SQL> select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CLOSING ARCH 7820
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7821
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7793
ARCH CLOSING ARCH 7823
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7834
ARCH CLOSING ARCH 7834
30 rows selected.
SQL> sho parameter log_archive_config
NAME TYPE VALUE
log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
SQL> spool off
IN SECONDARY DATABASE
SQL> select database_role from v$database;
DATABASE_ROLE
PHYSICAL STANDBY
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS --------------------
NOT ALLOWED
SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
EAMDR PHYSICAL STANDBY MOUNTED ARCHIVELOG MAXIMUM PERFORMANCE
SQL> select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CLOSING ARCH 7809
ARCH CLOSING ARCH 7810
ARCH CLOSING ARCH 7812
ARCH CLOSING ARCH 7813
ARCH CLOSING ARCH 7814
ARCH CLOSING ARCH 7815
ARCH CLOSING ARCH 7816
ARCH CLOSING ARCH 7817
ARCH CLOSING ARCH 7818
ARCH CLOSING ARCH 7819
ARCH CLOSING ARCH 7820
ARCH CLOSING ARCH 7821
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7823
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7804
ARCH CLOSING ARCH 7805
ARCH CLOSING ARCH 7806
ARCH CLOSING ARCH 7807
ARCH CLOSING ARCH 7808
MRP0 WAIT_FOR_LOG N/A 7836
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLEMeenakshy singh wrote:
Hi All,
My oracle database version is Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit on windows platform.
I need to perform switchover activity.When I checked the status of DR database I found that switchover_status is NOT ALLOWED rather than SESSION ACTIVE or TO PRIMARY.I have doubt whether switchover can be done successfully or not?
I have attached PRODUCTION and DR queries outputs for better understanding.
IN PRIMARY DATABASE
SQL>select database_role from v$database;
DATABASE_ROLE
PRIMARY
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
SESSIONS ACTIVE
SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
maxprod PRIMARY READ WRITE ARCHIVELOG MAXIMUM PERFORMANCE
SQL> select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CLOSING ARCH 7820
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7821
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7793
ARCH CLOSING ARCH 7823
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7834
ARCH CLOSING ARCH 7834
30 rows selected.
SQL> sho parameter log_archive_config
NAME TYPE VALUE
log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
SQL> spool off
IN SECONDARY DATABASE
SQL> select database_role from v$database;
DATABASE_ROLE
PHYSICAL STANDBY
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS --------------------
NOT ALLOWED
SQL> select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
EAMDR PHYSICAL STANDBY MOUNTED ARCHIVELOG MAXIMUM PERFORMANCE
SQL> select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CLOSING ARCH 7809
ARCH CLOSING ARCH 7810
ARCH CLOSING ARCH 7812
ARCH CLOSING ARCH 7813
ARCH CLOSING ARCH 7814
ARCH CLOSING ARCH 7815
ARCH CLOSING ARCH 7816
ARCH CLOSING ARCH 7817
ARCH CLOSING ARCH 7818
ARCH CLOSING ARCH 7819
ARCH CLOSING ARCH 7820
ARCH CLOSING ARCH 7821
ARCH CLOSING ARCH 7822
ARCH CLOSING ARCH 7823
ARCH CLOSING ARCH 7824
ARCH CLOSING ARCH 7825
ARCH CLOSING ARCH 7826
ARCH CLOSING ARCH 7827
ARCH CLOSING ARCH 7828
ARCH CLOSING ARCH 7829
ARCH CLOSING ARCH 7830
ARCH CLOSING ARCH 7831
ARCH CLOSING ARCH 7832
ARCH CLOSING ARCH 7833
ARCH CLOSING ARCH 7835
ARCH CLOSING ARCH 7804
ARCH CLOSING ARCH 7805
ARCH CLOSING ARCH 7806
ARCH CLOSING ARCH 7807
ARCH CLOSING ARCH 7808
MRP0 WAIT_FOR_LOG N/A 7836
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
RFS IDLE UNKNOWN 0
56 rows selected.
SQL> sho parameter log_archive_config
NAME TYPE VALUE
log_archive_config string DG_CONFIG=(MAXPROD,EAMDR)
SQL> spool off
1.In this case,is switchover is possible?No
2.If not possible then what will be the next step?If the value in the SWITCHOVER_STATUS column is SESSIONS ACTIVE, identify and terminate active user or SQL sessions that might prevent a switchover from being processed.
If, after performing these steps, the SWITCHOVER_STATUS column still displays SESSIONS ACTIVE, you can successfully perform a switchover by appending the WITH SESSION SHUTDOWN clause to the
ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY statement.
3.Is this will impact to our production database when switchover is not successfully perform?
4.In DR RFS is idle,why?Can you paste here log_archive_dest_n paramete which is you are using for transport?
Did you using DELAY attribute in log_archive_dest_n parameter?
Mahir -
Manual\DGMGRL Switchover Standby ora-01033 error
I have created a standby server for my SAP application as a part of test Disaster Recovery scenario. I can see the redo logs getting applied from primary to standby. However when I manually switchover the roles i encounters ORA -01033 error at NEW PRIMARY server and logs are also not getting applied in this scenario.
When i again changes the roles it works fine. I am not sure what is cause of ORA -01033 error. Here are the detailed tnsnames.ora of both sites.
Primary Server
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_STANDBY.WORLD)
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_PRIMARY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
Standby Site
TO_PRIMARY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_PRIMARY.WORLD)
P11.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.104)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = P11.WORLD)
TO_STANDBY.WORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = SAP.WORLD)
(PROTOCOL = TCP)
(HOST = 10.0.1.102)
(PORT = 1527)
(CONNECT_DATA =
(SID = P11)
(GLOBAL_NAME = TO_STANDBY.WORLD)
LISTENER_P11.WORLD=(address=(protocol= tcp)(host=10.0.1.104)(port= 1527))
Now , when i enable the DGMGRL configuration and add standby database at primary the " log_archive_dest_2=''" goes empty . Here is the pfile of primary after enable of the DGMGRL.
pfile of Primary
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.archive_lag_target=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\cntrlP11.dbf','D:\oracle\P11\origlogB\cntrl\cntrlP11.dbf','D:\oracle\P11\sapdata1\cntrl\cntrlP11.dbf'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=260938137
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_primary'
*.dg_broker_start=TRUE
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_primary'
*.FAL_Server='to_standby'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_archive_config='nodg_config'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_primary'
p11.log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)'
*.log_archive_dest_2=''
*.log_archive_dest_state_1='enable'
p11.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
p11.log_archive_format='ARC%S_%R.%T'
*.log_archive_max_processes=10
*.log_archive_min_succeed_dest=1
p11.log_archive_trace=0
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=347917516
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=521876275
*.shared_pool_reserved_size=26093813
*.shared_pool_size=300938137
*.sort_area_retained_size=0
*.sort_area_size=2097152
p11.standby_archive_dest=''
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
pfile of standy DB
*._B_TREE_BITMAP_PLANS=FALSE
*._IN_MEMORY_UNDO=FALSE
*._INDEX_JOIN_ENABLED=FALSE
*._OPTIM_PEEK_USER_BINDS=FALSE
*._OPTIMIZER_MJC_ENABLED=FALSE
*._SORT_ELIMINATION_COST_RATIO=10
*._TABLE_LOOKUP_PREFETCH_SIZE=0
*.background_dump_dest='D:\oracle\P11\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='D:\oracle\P11\origlogA\cntrl\control01.ctl','D:\oracle\P11\origlogB\cntrl\control02.ctl','D:\oracle\P11\sapdata1\cntrl\control03.ctl'
*.core_dump_dest='D:\oracle\P11\saptrace\background'
*.db_block_size=8192
*.db_cache_size=155870822
*.db_files=254
*.db_name='P11'
*.db_unique_name='P11_disaster'
*.dg_broker_start=TRUE
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FAL_Client='to_standby'
*.FAL_Server='to_primary'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_archive_config='DG_CONFIG= (P11_primary, P11_disaster)'
*.log_archive_dest_1='LOCATION=C:\oracle\P11\oraarch\P11arch VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=P11_disaster'
*.log_archive_dest_2='SERVICE=to_primary LGWR ASYNC DELAY=5 VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=P11_primary'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_max_processes=10
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.parallel_execution_message_size=16384
*.pga_aggregate_target=207827763
*.processes=80
*.query_rewrite_enabled='false'
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.replication_dependency_tracking=false
*.sessions=96
*.sga_max_size=311741644
*.shared_pool_reserved_size=15587082
*.shared_pool_size=300870822
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.standby_file_management='AUTO'
*.star_transformation_enabled='true'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='D:\oracle\P11\saptrace\usertrace'
Here are the alert logs of primary DB.
LTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_trace=0 SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_format='ARC%S_%R.%T' SCOPE=SPFILE SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET standby_archive_dest='' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:22 2011
ALTER SYSTEM SET log_archive_dest_1='location="C:\oracle\P11\oraarch\P11arch"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_dest_state_1='ENABLE' SCOPE=BOTH SID='p11';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_max_processes=10 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:23 2011
ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH SID='*';
Sat Jul 02 16:29:27 2011
Beginning log switch checkpoint up to RBA [0x3b7.2.10], SCN: 7939485
Thread 1 advanced to log sequence 951
Current log# 4 seq# 951 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
Current log# 4 seq# 951 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G14M2.DBF
Sat Jul 02 16:29:28 2011
ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=p11_disaster_XPT)(INSTANCE_NAME=p11)(SERVER=dedicated)))"',' ARCH SYNC NOAFFIRM delay=5 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="p11_disaster" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
Sat Jul 02 16:29:28 2011
ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
Beginning log switch checkpoint up to RBA [0x3b8.2.10], SCN: 7939487
Thread 1 advanced to log sequence 952
Current log# 2 seq# 952 mem# 0: D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
Current log# 2 seq# 952 mem# 1: C:\ORACLE\P11\MIRRLOGB\LOG_G12M2.DBF
Sat Jul 02 16:29:29 2011
Error 12541 received logging on to the standby
Check whether the listener is up and running.
Sat Jul 02 16:29:29 2011
Errors in file d:\oracle\p11\saptrace\background\p11_arc1_2396.trc:
ORA-12541: TNS:no listener
FAL[server, ARC1]: Error 12541 creating remote archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=PROD102)(PORT=1521)))(CONNECT_DATA=
Here is the Alert log of standby
RFS[2]: Identified database type as 'physical standby'
Sat Jul 02 16:21:00 2011
RFS[3]: Assigned to RFS process 1620
RFS[3]: Identified database type as 'physical standby'
Sat Jul 02 16:21:00 2011
RFS[2]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001'
Sat Jul 02 16:21:00 2011
RFS[3]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001'
Sat Jul 02 16:21:00 2011
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00947_0755040789.001
Identified End-Of-Redo for thread 1 sequence 947
Sat Jul 02 16:21:01 2011
Media Recovery End-Of-Redo indicator encountered
Sat Jul 02 16:21:01 2011
Media Recovery Applied until change 7934481
Media Recovery archivelogs detected beyond End-Of-REDO
Resetting standby activation ID 1369083708 (0x519a8f3c)
Completed: Alter Database Recover Managed Standby Database
Sat Jul 02 16:21:29 2011
Alter Database Recover Managed Standby Database Disconnect
MRP0 started with pid=28, OS id=996
Managed Standby Recovery not using Real Time Apply
parallel recovery started with 2 processes
Clearing online redo logfile 1 D:\ORACLE\P11\ORIGLOGA\LOG_G11M1.DBF
Clearing online log 1 of thread 1 sequence number 949
Sat Jul 02 16:21:36 2011
Completed: Alter Database Recover Managed Standby Database Disconnect
Sat Jul 02 16:21:37 2011
Clearing online redo logfile 1 complete
Clearing online redo logfile 2 D:\ORACLE\P11\ORIGLOGB\LOG_G12M1.DBF
Clearing online log 2 of thread 1 sequence number 946
Clearing online redo logfile 2 complete
Clearing online redo logfile 3 D:\ORACLE\P11\ORIGLOGA\LOG_G13M1.DBF
Clearing online log 3 of thread 1 sequence number 944
Clearing online redo logfile 3 complete
Clearing online redo logfile 4 D:\ORACLE\P11\ORIGLOGB\LOG_G14M1.DBF
Clearing online log 4 of thread 1 sequence number 945
Clearing online redo logfile 4 complete
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00948_0755040789.001
Media Recovery Waiting for thread 1 sequence 949
Sat Jul 02 16:22:37 2011
RFS[1]: No standby redo logfiles created
RFS[1]: Archived Log: 'C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001'
Sat Jul 02 16:22:37 2011
RFS[1]: Archive log thread 1 sequence 949 available in 5 minute(s)
Sat Jul 02 16:22:37 2011
Redo Shipping Client Connected as PUBLIC
-- Connected User is Valid
RFS[4]: Assigned to RFS process 2200
RFS[4]: Identified database type as 'physical standby'
Primary database is in MAXIMUM PERFORMANCE mode
Primary database is in MAXIMUM PERFORMANCE mode
RFS[4]: No standby redo logfiles created
Sat Jul 02 16:22:38 2011
Media Recovery Delayed for 5 minute(s) (thread 1 sequence 949)
Sat Jul 02 16:27:38 2011
Media Recovery Log C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00949_0755040789.001
Media Recovery Waiting for thread 1 sequence 950 (in transit)
Sat Jul 02 16:29:42 2011
RFS[4]: Possible network disconnect with primary database
Aborting archivelog file creation: C:\ORACLE\P11\ORAARCH\P11ARCH\ARC00950_0755040789.001
If this a network disconnect, then this archivelog will be fetched again
by GAP resolution mechanism.
Please advice as i am not sure of i have created something in listener file for DGMGRL configuration..
RegardsDGMGRL> show configuration
Configuration
Name: my_dg
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
P11_primary - Primary database
P11_disaster - Physical standby database
Current status for "my_dg":
Warning: ORA-16607: one or more databases have failed
DGMGRL> SHOW DATABASE 'P11_primary' 'StatusReport';
STATUS REPORT
INSTANCE_NAME SEVERITY ERROR_TEXT
p11 ERROR ORA-16737: the redo transport service for standby database "P11_disaster" has an error
p11 WARNING ORA-16715: redo transport-related property LogXptMode of standby database "P11_disaster" is inconsistent
DGMGRL> SHOW DATABASE 'P11_primary' 'LogXptStatus';
LOG TRANSPORT STATUS
PRIMARY_INSTANCE_NAME STANDBY_DATABASE_NAME STATUS
p11 P11_disaster ORA-12541: TNS:no listener
After this when i check the status of listener at P11_disaster site it was up . I restarted the listener and found following message in listener log at standby ( p11_primary) . These are the last lines of listener log.
03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2244)) * establish * P11 * 0
03-JUL-2011 13:36:40 * (CONNECT_DATA=(SID=P11)(GLOBAL_NAME=TO_STANDBY.WORLD)(CID=(PROGRAM=d:\oracle\p11\102\bin\ORACLE.EXE)(HOST=PROD104)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.104)(PORT=2245)) * establish * P11 * 0
03-JUL-2011 13:45:25 * ping * 0
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
Listener completed notification to CRS on stop
03-JUL-2011 13:45:34 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=stop)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * stop * 0
TNSLSNR for 64-bit Windows: Version 10.2.0.2.0 - Production on 03-JUL-2011 13:45:42
Copyright (c) 1991, 2005, Oracle. All rights reserved.
System parameter file is D:\oracle\P11\102\network\admin\listener.ora
Log messages written to D:\oracle\P11\102\network\log\listener.log
Trace information written to D:\oracle\P11\102\network\trace\listener.trc
Trace level is currently 0
Started with pid=624
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11.WORLDipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\P11ipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.1.102)(PORT=1527)))
Listener completed notification to CRS on start
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
03-JUL-2011 13:45:46 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=p11adm))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869824)) * status * 0
I am sure this is some configuration issue , however does not have clue :( -
Standby db-EE edition and Standard edition
Dear friends,
10g on solaris 10.
What are the differences in standby db when using a enterprise edition and standard edition ?..
Any input will be of great help
KaiNiall and team
I have read your presentation - "You Probably Don't need dataguard" and I tried it out on test database. I setup a manual standby database, archivelog is manually copied to standby db.
Maybe you have an idea on regarding SCN or archivelog that is not present but Oracle is asking/suggestion during recovery procedure..
environment:
2 virtual box - Solaris 10 Virtual Machine host on Windows XP
Oracle 10.2.0 Standard Edition
Primary DB host name: SE
Standby DB host name: SE2
archive dest = /export/home/oracle/archive (same on both machine)
db file = /export/home/oracle/oradata/se , /export/home/oracle/oradata/se2 --> so I used db_file convert parameter in init.ora
Steps:
On the newly created database, create a test table and insert values.
SQL> create table test(a number) tablespace users;
Table created.
SQL> insert into test values(&a);
Enter value for a: 1
old 1: insert into test values(&a)
new 1: insert into test values(1)
1 row created.
SQL> /
Enter value for a: 21
old 1: insert into test values(&a)
new 1: insert into test values(21)
1 row created.
SQL> /
Enter value for a: 31
old 1: insert into test values(&a)
new 1: insert into test values(31)
1 row created.
SQL> /
Enter value for a: 41
old 1: insert into test values(&a)
new 1: insert into test values(41)
1 row created.
SQL> commit;
Commit complete.
SQL> alter system archive log current;
System altered.
SQL>
$ ls -lrt
total 41808
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
$
Again, insert some values to test table,
SQL> insert into test values(&a);
Enter value for a: 33
old 1: insert into test values(&a)
new 1: insert into test values(33)
1 row created.
SQL> /
Enter value for a: 44
old 1: insert into test values(&a)
new 1: insert into test values(44)
1 row created.
SQL> /
Enter value for a: 55
old 1: insert into test values(&a)
new 1: insert into test values(55)
1 row created.
SQL> /
Enter value for a: 11
old 1: insert into test values(&a)
new 1: insert into test values(11)
1 row created.
SQL> commit;
Commit complete.
SQL> alter system archive log current;
System altered.
SQL> select * from test;
A
1
21
31
41
33
44
55
11
8 rows selected.
check archivelog dir,
$ ls -lrt
total 41816
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
$
Then,
1. shutdown immediate (primary)
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
2. copy datafile, redo, archive log to SE2 node.
$ pwd
/export/home/oracle/oradata/se
$ ls
control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf users01.dbf
control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf
$ scp * [email protected]:/export/home/oracle/oradata/se2
Password:
control01.ctl 100% |******************************************************| 6896 KB 00:01
control02.ctl 100% |******************************************************| 6896 KB 00:01
control03.ctl 100% |******************************************************| 6896 KB 00:00
redo01.log 100% |******************************************************| 51200 KB 00:09
redo02.log 100% |******************************************************| 51200 KB 00:11
redo03.log 100% |******************************************************| 51200 KB 00:08
sysaux01.dbf 100% |******************************************************| 240 MB 00:54
system01.dbf 100% |******************************************************| 480 MB 01:35
temp01.dbf 100% |******************************************************| 20488 KB 00:04
undotbs01.dbf 100% |******************************************************| 25608 KB 00:05
users01.dbf 100% |******************************************************| 5128 KB 00:01
$
$ ls -lrt
total 41816
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
$ scp 1_2_711819574.dbf [email protected]:/export/home/oracle/archive
Password:
1_2_711819574.dbf 100% |******************************************************| 20877 KB 00:04
$
3. startup (primary)
4. create standby control file
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1279120 bytes
Variable Size 62917488 bytes
Database Buffers 100663296 bytes
Redo Buffers 2912256 bytes
Database mounted.
Database opened.
SQL> alter database create standby controlfile as '/export/home/oracle/standby.ctl';
Database altered.
5. copy standby control file to SE2
$ pwd
/export/home/oracle
$ scp standby.ctl [email protected]:/export/home/oracle
Password:
standby.ctl 100% |******************************************************| 6896 KB 00:01
$
6. edit init.ora, specify location of control file - use standby control file
*.control_files='/export/home/oracle/standby.ctl'
7. SE2,
SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1279120 bytes
Variable Size 62917488 bytes
Database Buffers 100663296 bytes
Redo Buffers 2912256 bytes
8. alter database mount standby database;
SQL> alter database mount standby database;
Database altered.
SQL>
9. we'll try to open as read only without recovery,
SQL> alter database open read only;
alter database open read only
ERROR at line 1:
ORA-16004: backup database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
10. then, we recover by - recover standby database;
SQL> recover standby database;
ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
ORA-00280: change 540274 for thread 1 is in sequence #4
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_4_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_4_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
<observation> notice that archive log 4 is not yet present in Primary DB and STBY DB.
Question: Why Oracle is asking archivelog that does not exist? I noticed in other exercise that you can use the redo log instead of archive log that does not exist. Is this because when we create the standby control file, the SCN is in sync with redo log.
10. Now, we will copy archive log 3 to STDB,
$ cd archive
$ ls
1_2_711819574.dbf 1_3_711819574.dbf
$ scp 1_3_*711819574.dbf [email protected]:/export/home/oracle/archive
Password:
1_3_711819574.dbf 100% |******************************************************| 4096 00:00
$
11. on SE2, recover
SQL> recover automatic standby database until cancel;
ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
ORA-00280: change 540274 for thread 1 is in sequence #4
ORA-00278: log file '/export/home/oracle/archive/1_4_711819574.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_4_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
ORA-01112: media recovery not started
12. Now, to generate the archivelog 4 and get the SCN that is indicated above, from one of our redo log. we will go to PRIMARY DB, and insert some rows to TEST TABLE and switch log file.
SQL>
SQL> insert into test values(&a);
Enter value for a: 99
old 1: insert into test values(&a)
new 1: insert into test values(99)
1 row created.
SQL> /
Enter value for a: 100
old 1: insert into test values(&a)
new 1: insert into test values(100)
1 row created.
SQL> /
Enter value for a: 101
old 1: insert into test values(&a)
new 1: insert into test values(101)
1 row created.
SQL> commit;
Commit complete.
SQL> alter system switch logfile;
System altered.
$ ls -lrt
total 42568
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
-rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
13. We will again, switch logfile, to generate archive 5, before we copied archive 4 to STBY, we are sure that arch 5 is the active archivelog.
SQL> alter system switch logfile;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
$ ls -lrt
total 42570
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
-rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
$
14. copy archive log 4 to STBY (SE2)
$ scp 1_4_711819574.dbf [email protected]:/export/home/oracle/archive
Password:
1_4_711819574.dbf 100% |********************************************| 368 KB 00:00
$
15. In SE2, recover
SQL> recover automatic standby database until cancel;
ORA-00279: change 540985 generated at 02/24/2010 16:28:36 needed for thread 1
ORA-00289: suggestion : /export/home/oracle/archive/1_5_711819574.dbf
ORA-00280: change 540985 for thread 1 is in sequence #5
ORA-00278: log file '/export/home/oracle/archive/1_5_711819574.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_5_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
15. Now let's see if we can open as read only and check test table.
SQL> alter database open read only;
Database altered.
SQL> select * from test;
A
1
21
31
41
33
44
55
11
99
100
101
11 rows selected.
16. Now shutdown STBY database,
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
17. On SE (PRIMARY), insert some records to TEST table, please take note that current archivelog is no. 5. We want to generate archivelog 6 and archivelog 7. Then only archivelog 5 and 6 will be copied to STBY.
SQL> insert into test values(&a);
Enter value for a: 1000
old 1: insert into test values(&a)
new 1: insert into test values(1000)
1 row created.
SQL> /
Enter value for a: 1001
old 1: insert into test values(&a)
new 1: insert into test values(1001)
1 row created.
SQL> /
Enter value for a: 1002
old 1: insert into test values(&a)
new 1: insert into test values(1002)
1 row created.
SQL> commit;
Commit complete.
SQL> alter system archive log current;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
$ ls -lrt
total 42632
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
-rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
-rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
we will do, log switch to create archive log 7,
SQL> alter system switch logfile;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
$ ls -lrt
total 42634
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
-rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
-rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
Then copy, arc 5 and arc 6 to SE2 (STBY)
$ scp 1_5_711819574.dbf 1_6_711819574.dbf [email protected]:/export/home/oracle/archive
Password:
1_5_711819574.dbf 100% |*********************************************************| 1024 00:00
1_6_711819574.dbf 100% |*********************************************************| 31744 00:00
$
17. in SE2, recover
SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1279120 bytes
Variable Size 62917488 bytes
Database Buffers 100663296 bytes
Redo Buffers 2912256 bytes
SQL> alter database mount standby database;
Database altered.
SQL> recover automatic standby database until cancel;
ORA-00279: change 541270 generated at 02/24/2010 16:41:26 needed for thread 1
ORA-00289: suggestion : /export/home/oracle/archive/1_7_711819574.dbf
ORA-00280: change 541270 for thread 1 is in sequence #7
ORA-00278: log file '/export/home/oracle/archive/1_7_711819574.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_7_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
18. open as read only, to check if the newly inserted records can be view,
SQL> alter database open read only;
Database altered.
SQL> select * from test;
A
1
21
31
41
33
44
55
11
99
100
101
A
1000
1001
1002
14 rows selected.
OK, that means that archive log 5 and archivelog 6 are applied to STBY database.
Question. Why Oracle is asking the arc 7 , is it correct to say that last SCN is based on arc 5 and arc 6. Or is it Oracle behavior to ask the "next" SCN, after the arc 6. when performing recovery? ... that's why we have CANCEL.
Appreciate your response on this..
Thanks..
19. For the sake of curiosity, lets try if we can use - recover managed standby database; (archivelog is still manually copied)
on SE2, we will put it on "recovery mode"
shutdown immediate,
startup nomount pfile =
alter database mount standby database
recover managed standby database; (though the archivelogs are still copied manually )
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1279120 bytes
Variable Size 62917488 bytes
Database Buffers 100663296 bytes
Redo Buffers 2912256 bytes
SQL> alter database mount standby database;
Database altered.
SQL> recover managed standby database; (it will "hang", if you need to CANCEL open new session and use - recover managed standby database cancel)
our current arch is 7, we will insert records to test table, and generate arch 8 and arch 9, then we will transfer arch 7 and arch 8 to SE2,
on SE,
Connected to:
Oracle Database 10g Release 10.2.0.2.0 - Production
SQL> insert into test values(&a);
Enter value for a: 2000
old 1: insert into test values(&a)
new 1: insert into test values(2000)
1 row created.
SQL> /
Enter value for a: 2001
old 1: insert into test values(&a)
new 1: insert into test values(2001)
1 row created.
SQL> /
Enter value for a: 2003
old 1: insert into test values(&a)
new 1: insert into test values(2003)
1 row created.
SQL> commit;
Commit complete.
SQL> alter system archive log current;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
$ pwd
/export/home/oracle/archive
$ ls -lrt
total 45758
-rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
-rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
-rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
-rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
-rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
-rw-r----- 1 oracle oinstall 1584640 Feb 24 17:02 1_8_711819574.dbf
-rw-r----- 1 oracle oinstall 2048 Feb 24 17:02 1_9_711819574.dbf
$
$ scp 1_7_711819574.dbf 1_8_711819574.dbf [email protected]:/export/home/oracle/archive
Password:
1_7_711819574.dbf 100% |*********************************************************| 1024 00:00
1_8_711819574.dbf 100% |*********************************************************| 1547 KB 00:00
$
Please take note that in SE2 initse.ora file, we also set standby_control_file = /export/home/oracle/archive parameter.
19. On SE2, open new session, and cancel recovery,
session 2,
SQL> recover managed standby database cancel;
Media recovery complete.
SQL>
session 1,
SQL> recover managed standby database;
ORA-16043: managed recovery session canceled
ORA-16037: user requested cancel of managed recovery operation
Lets check if archivelog is applied, by checking test table,
SQL> alter database open read only;
Database altered.
SQL> select * from test;
A
1
21
31
41
33
44
55
11
99
100
101
A
1000
1001
1002
14 rows selected.
Notice that 2000, 2001, 2002 are not added in TEST table.
Lets do manual recovery,
SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1279120 bytes
Variable Size 62917488 bytes
Database Buffers 100663296 bytes
Redo Buffers 2912256 bytes
SQL> alter database mount standby database;
Database altered.
SQL> recover automatic standby database until cancel;
ORA-00279: change 541804 generated at 02/24/2010 17:02:34 needed for thread 1
ORA-00289: suggestion : /export/home/oracle/archive/1_9_711819574.dbf
ORA-00280: change 541804 for thread 1 is in sequence #9
ORA-00278: log file '/export/home/oracle/archive/1_9_711819574.dbf' no longer
needed for this recovery
ORA-00308: cannot open archived log
'/export/home/oracle/archive/1_9_711819574.dbf'
ORA-27037: unable to obtain file status
Intel SVR4 UNIX Error: 2: No such file or directory
Additional information: 3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
SQL> select * from test;
select * from test
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only
SQL> alter database open read only;
Database altered.
SQL> select * from test;
A
1
21
31
41
33
44
55
11
99
100
101
A
1000
1001
1002
2000
2001
2003
17 rows selected. -
Standby database SWITCHOVER_STATUS field is always NOT ALLOWED
standby database:
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
NOT ALLOWED
select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
omu0 PHYSICAL STANDBY MOUNTED ARCHIVELOG MAXIMUM AVAILABILITY
select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CLOSING ARCH 539
ARCH CONNECTED ARCH 0
ARCH CLOSING ARCH 540
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
MRP0 APPLYING_LOG N/A 541
RFS IDLE LGWR 541
RFS IDLE ARCH 0
RFS IDLE N/A 0primary datase:
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
SESSIONS ACTIVE
select db_unique_name,database_role,open_mode,log_mode,protection_mode from v$database;
DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE LOG_MODE PROTECTION_MODE
omu2 PRIMARY READ WRITE ARCHIVELOG MAXIMUM AVAILABILITY
select process,status,client_process,sequence# from v$managed_standby;
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CLOSING ARCH 541
ARCH CLOSING ARCH 542
ARCH CLOSING ARCH 543
ARCH CLOSING ARCH 544
ARCH CLOSING ARCH 545
ARCH CLOSING ARCH 546
ARCH CLOSING ARCH 547
ARCH CLOSING ARCH 548
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CLOSING ARCH 540
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
LGWR WRITING LGWR 549
31 rows selected. -
Standby MRP0 process- Wait for Log
Hi ,
I have standby Oracle 11.2.0.3 DB on AIx server .
After configuring Dataguard Log apply service fails on standby DB ..Following is resulf from my standy and primary DB .
On Primary
select process, status, sequence#, block# from v$managed_standby;
PROCESS STATUS SEQUENCE# BLOCK#
ARCH CLOSING 52 1
ARCH CLOSING 51 1
ARCH WRITING 2 38913
ARCH CLOSING 52 1
LNS WRITING 54 1003
On Standby
select process, status, sequence#, block# from v$managed_standby;
PROCESS STATUS SEQUENCE# BLOCK#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
RFS RECEIVING 2 6145
RFS IDLE 54 1025
RFS IDLE 0 0
MRP0 WAIT_FOR_LOG 2 0
On primaray Datagaurd status shows below output
select message from V$DATAGUARD_STATUS order by TIMESTAMP;
ARCH: Completed archiving thread 1 sequence 53 (1093671-1094088)
ARCH: Beginning to archive thread 1 sequence 53 (1093671-1094088)
LNS: Beginning to archive log 3 thread 1 sequence 54
MESSAGE
LNS: Completed archiving log 2 thread 1 sequence 53
On Standby DB
select message from V$DATAGUARD_STATUS order by TIMESTAMP;
MESSAGE
RFS[2]: Assigned to RFS process 659510
RFS[2]: No standby redo logfiles available for thread 1
RFS[3]: Assigned to RFS process 1110268
RFS[3]: No standby redo logfiles available for thread 1
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply
Media Recovery Waiting for thread 1 sequence 2 (in transit)
Please let me know what needs ti change for start log apply on physical standby .
Thanks .
Vaishali.Hi Shivananda,
Please find below output ..
I can tnsping both the database as well as when i try to connect from sqlplus to DB ..it was sucessful from both the side ...
SQL> select severity,error_code,message from v$dataguard_status where dest_id=2;
SEVERITY ERROR_CODE
MESSAGE
Error 1034
PING[ARC2]: Heartbeat failed to connect to standby 'IHISDR'. Error is 1034.
Error 1034
FAL[server, ARC2]: Error 1034 creating remote archivelog file 'IHISDR'
Error 1089
FAL[server, ARC2]: FAL archival, error 1089 closing archivelog file 'IHISDR'
SEVERITY ERROR_CODE
MESSAGE
Warning 1089
LNS: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (1089)
Warning 1089
LNS: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
Error 1089
Error 1089 for archive log file 1 to 'IHISDR'
SEVERITY ERROR_CODE
MESSAGE
Error 1089
FAL[server, ARC0]: FAL archival, error 1089 closing archivelog file 'IHISDR'
7 rows selected.
Thanks . -
Create logical standby.
Hi.
I've created physical standby database on the same machine.
Standby apply archivelogs.
I strugle with convert physical standby into logical one.
When I try create controlfile for logical get:
SYS@stb>ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl';
ALTER DATABASE CREATE LOGICAL STANDBY CONTROLFILE AS '/tmp/stbl.ctl'
ERROR at line 1:
ORA-06550: line 1, column 36:
PLS-00201: identifier 'DBMS_LOGMNR_D.STORE_IN_REDO_LOGS' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
plsFEDORA 6 & ORACLE 10.2.0
alert_stb.log:
alter database start logical standby apply
Wed Jun 17 22:46:58 2009
ALTER DATABASE START LOGICAL STANDBY APPLY (stb)
Wed Jun 17 22:46:58 2009
No optional part
Attempt to start background Logical Standby process
LSP0 started with pid=22, OS id=4156
Wed Jun 17 22:46:59 2009
Completed: alter database start logical standby apply
Wed Jun 17 22:47:01 2009
LOGSTDBY status: ORA-16111: log mining and apply setting up
Wed Jun 17 22:47:01 2009
LOGMINER: Parameters summary for session# = 1
LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
LOGMINER: Memory Size = 30M, Checkpoint interval = 150M
LOGMINER: session# = 1, reader process P000 started with pid=23 OS id=4158
LOGMINER: session# = 1, builder process P001 started with pid=24 OS id=4160
LOGMINER: session# = 1, preparer process P002 started with pid=25 OS id=4162
Wed Jun 17 22:47:02 2009
LOGMINER: Begin mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
Wed Jun 17 22:47:02 2009
LOGMINER: Turning ON Log Auto Delete
Wed Jun 17 22:47:02 2009
LOGMINER: End mining logfile: /u01/app/oracle/flash_recovery_area/STB/archivelog_3/1_3_689731882.arc
LOGSTDBY Analyzer process P003 started with pid=26 OS id=4164
LOGSTDBY Apply process P008 started with pid=31 OS id=4174
LOGSTDBY Apply process P007 started with pid=30 OS id=4172
LOGSTDBY Apply process P004 started with pid=27 OS id=4166
LOGSTDBY Apply process P006 started with pid=29 OS id=4170
LOGSTDBY Apply process P005 started with pid=28 OS id=4168
Maybe you are looking for
-
Viewing a pdf file in Flex 4?
I've been searching on the Inernet to find out whether or not it is possible to view a PDF file (which will be stored in the server itself) on the client side... In the flex AIR they've a built in support to view a pdf file..but I'm not able to find
-
My beloved MacBook is getting on in age. I'm finding that my screen blacks out unexpectedly. Moving the screen around restores the image, but it's happening more and more frequently, and getting a little harder to get my screen back. I'm thinking
-
I cannot drag and drop for Photos in 10.10.3
I seem to be unable to drag and drop from the new Photos application in Yosemite 10.10.3. I have tried this with two different applications including Adobe's Photoshop Elements 13. It seems to work fine with other apple applications. (can drag and
-
ITEM CATEGORY GROUP VS GENERAL ITEM CATEGORY GROUP
Hi Gurus, In material master,there are two fields, General Item categary group and Item categary group, what is the significant usage of these two fields, In F1 I'm getting same description, With Regards, J.SRUTHI
-
Hi, I have downloaded an AVI file, using Lion, but can't open it. Any tips?? Thanks, RB