Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ora-1666 on standby database

user10724679Jan 25 2012 — edited Jan 28 2012
Hi All,

I have configured data guard on windows server 2003 platform with primary on 1 server and standby on another server. Oracle is of version 9i with exact release 9.2.0.6.0. I have enabled archived log on primary, modified init file with log_destinations, created password file, created control file and copied all these dbf files, redo log files, archived log files, control file, password files to standby server while the primary db is down. After copying all the required files on standby i tried to mount the standby but getting an error as ORA-01666: controlfile is for a standby database on the standby.

Where as in the primary db alert log file an error is logged as Errors in file d:\oracle\admin\primary\bdump\primary_arc0_4240.trc: ORA-12500: TNS:listener failed to start a dedicated server process but i can do tnsping successfully from primary to standby and vice-versa and on standby ORA-1666 signalled during: ALTER DATABASE MOUNT...

The things I suspect are Standby redo logs, Instance_name. I haven't created any standby logs on primary and i doubt whether it's mandatory to create on primary and standby db's or only in primary db pls let me know, i am confused of the standby logs because of these lines in document +(CREATE STANDBY REDO LOG FILES, IF NECESSARY (PRI+SEC)
In this customer’s case, the customer chose not to use standby redo logs (SRLs), which are not required in Maximum Performance mode. However, if you decide to use SRLs, you would create them on both sites. You cannot create them on the primary database prior to the backup used to create the standby database because the SRLs on the standby must be empty of primary database redo data.)+.

Instance_name parameter: we don't have this parameter in oracle10g where db_name and db_unique_name plays the role. Here in oracle9i is this Instance_name needs to be same on both primary and standby db's (i.e. primary on both db's or primary for primary and standby for standby?)

Earlier i have configured this dataguard setup in solaris platform of oracle version 10g where i have created standby logs on primary db alone and logs are applying on standby and it's working fine.

* please review the below parameters and let me know if i am missing something*

tnsping from primary

C:\Documents and Settings\Administrator>tnsping standby

TNS Ping Utility for 32-bit Windows: Version 9.2.0.6.0 - Production on 25-JAN-20
12 20:15:48

Copyright (c) 1997 Oracle Corporation. All rights reserved.

Used parameter files:
D:\oracle\ora92\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = standbyIP )(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = standby)))
OK (110 msec)
-----------------------------------
tnsping from standby
C:\Documents and Settings\Administrator>tnsping primary

TNS Ping Utility for 32-bit Windows: Version 9.2.0.6.0 - Production on 25-JAN-20
12 20:17:17

Copyright (c) 1997 Oracle Corporation. All rights reserved.

Used parameter files:
D:\oracle\ora92\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = primaryIP )(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = primary)))
OK (110 msec)
-------------------------
Primary init file
*.aq_tm_processes=0
*.background_dump_dest='D:\oracle\admin\primary\bdump'
*.compatible='9.2.0.0.0'
*.control_files='D:\oracle\oradata\primary\control01.ctl','D:\oracle\oradata\primary\control02.ctl','D:\oracle\oradata\primary\control03.ctl'
*.core_dump_dest='D:\oracle\admin\primary\cdump'
*.db_block_size=16384
*.db_cache_size=83886080
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=96
*.db_name='primary'
*.dg_broker_start=TRUE
*.enqueue_resources=2000
*.fal_client='primary'
*.fal_server='standby'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='primary'
*.java_pool_size=115343360
*.job_queue_processes=10
*.large_pool_size=0
*.log_archive_dest_1='LOCATION=D:\oracle\archive-logs\primary\archivelog'
*.log_archive_dest_2='SERVICE=standby LGWR ASYNC'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='log_%t_%s.arc'
*.max_enabled_roles=128
*.nls_date_format='DD-MON-RRRR'
*.nls_date_language='AMERICAN'
*.nls_language='AMERICAN'
*.nls_numeric_characters='.,'
*.open_cursors=200
*.optimizer_mode='CHOOSE'
*.os_authent_prefix='OPS$'
*.pga_aggregate_target=25165824
*.processes=150
*.query_rewrite_enabled='FALSE'
*.remote_login_passwordfile='EXCLUSIVE'
*.remote_os_authent=TRUE
*.shared_pool_size=115343360
*.sort_area_size=3000000
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\admin\primary\udump'
*.utl_file_dir='*'
-------------------------
* standby init file*
*.aq_tm_processes=0
*.background_dump_dest='D:\oracle\admin\standby\bdump'
*.compatible='9.2.0.0.0'
*.control_files='D:\oracle\oradata\standby\standby.ctl'
*.core_dump_dest='D:\oracle\admin\standby\cdump'
*.db_block_size=16384
*.db_cache_size=83886080
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=96
*.db_name='primary'
*.dg_broker_start=TRUE
*.enqueue_resources=2000
*.fal_client='standby'
*.fal_server='primary'
*.fast_start_mttr_target=300
*.hash_join_enabled=TRUE
*.instance_name='standby'
*.java_pool_size=115343360
*.job_queue_processes=10
*.large_pool_size=0
*.log_archive_dest_1='LOCATION=D:\oracle\archive-logs\standby\archivelog'
*.log_archive_dest_2='SERVICE=primary LGWR ASYNC'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='DEFER'
*.log_archive_format='log_%t_%s.arc'
*.max_enabled_roles=128
*.nls_date_format='DD-MON-RRRR'
*.nls_date_language='AMERICAN'
*.nls_language='AMERICAN'
*.nls_numeric_characters='.,'
*.open_cursors=200
*.optimizer_mode='CHOOSE'
*.os_authent_prefix='OPS$'
*.pga_aggregate_target=25165824
*.processes=150
*.query_rewrite_enabled='FALSE'
*.remote_login_passwordfile='EXCLUSIVE'
*.remote_os_authent=TRUE
*.shared_pool_size=115343360
*.sort_area_size=3000000
*.star_transformation_enabled='FALSE'
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=10800
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\admin\standby\udump'
*.utl_file_dir='*'
--------------------

Regards
Hari
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2012
Added on Jan 25 2012
19 comments
2,958 views