Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> weird standby database problem
Hello world,
I'm trying to set up a standby database.
I did the following on master:
1) alter system archive log current; 2) alter database create standby controlfile as 'c:\tmp\stby.ctl' 3) shutdown master; standby is also down. 4) copy init.ora from master to standby 5) add the statement standby_archive_dest = 'c:\oracle\archive\von_rot'to standby init.ora
log_archive_dest_2 = 'SERVICE=rotstby.dialogika.de'
to the master init.ora
7) copy all *.dbf *.log files from master to standby
(filesystem structure is identical)
8) copy c:\tmp\stby.ctl to standby as control01.ctl, control02.ctl,
control03.ctl
9) I'm starting the standby database (restart W2K service) and connect
with sqlplus to it
connect sys as sysdba startup nomount lter database mount standby database lter database recover managed standby database10) restart master db.
What happens: at any log switch the archived redo logs get transferred neatly to the standby site. The standby db receives the logs but does not apply them because it thinks it needs seq #1 (which should be nonsense).
See:
SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM
V$MANAGED_STANDBY;
PROCESS STATUS THREAD# SEQUENCE# BLOCK# BLOCKS
------- ------------ ---------- ---------- ---------- ----------
ARCH CONNECTED 0 0 0 0 ARCH CONNECTED 0 0 0 0 MR(fg) WAIT_FOR_LOG 6918 1 0 0 RFS RECEIVING 0 0 0 0 RFS RECEIVING 1 25 350 350
This is also reflected in the standby alert log: Starting up ORACLE RDBMS Version: 9.2.0.1.0. System parameters with non-default values:
processes = 150 timed_statistics = TRUE shared_pool_size = 33554432 large_pool_size = 8388608 java_pool_size = 33554432 control_files = C:\ORACLE\ORADATA\BLAUDB\CONTROL01.CTL,C:\ORACLE\ORADATA\BLAUDB\CONTROL02.CTL,
db_block_size = 8192 db_cache_size = 20971520 compatible = 9.2.0.0.0 log_archive_start = TRUE log_archive_dest_1 = LOCATION=c:\oracle\archive standby_archive_dest = c:\oracle\archive\von_rot log_archive_format = rotdb_%S.arcdb_file_multiblock_read_count= 16
fast_start_mttr_target = 300 undo_management = AUTO undo_tablespace = UNDOTBS1 undo_retention = 10800 remote_login_passwordfile= EXCLUSIVE db_domain = dialogika.de global_names = TRUE instance_name = rotdb dispatchers = (PROTOCOL=TCP) (SERVICE=blaudbXDB) job_queue_processes = 10 hash_join_enabled = TRUE background_dump_dest = C:\oracle\admin\blaudb\bdump user_dump_dest = C:\oracle\admin\blaudb\udump core_dump_dest = C:\oracle\admin\blaudb\cdump sort_area_size = 524288 db_name = rotdb open_cursors = 300
query_rewrite_enabled = FALSE pga_aggregate_target = 18874368 aq_tm_processes = 1 PMON started with pid=2 DBW0 started with pid=3 LGWR started with pid=4 CKPT started with pid=5 SMON started with pid=6 RECO started with pid=7
What might be wrong? Why is it waiting for log seq# 1?
Thanks for help
Carsten.
--- I want to die peacefully in sleep like my grandfather. Not screaming in terror like his passengers!Received on Fri Feb 14 2003 - 07:50:12 CST