Thanks actonwang for quick response.
so that means there is only one listener.ora file,we just need to add entry for standby database and it can be called configuration at standby site?
Thanks in advance.
Main Topics
Browse All TopicsHi
for test purpose, 1) if I configure standby database with this dir structure.
Primary---/oracle/oradata/
Standby ---/oracle/oradata/newstan
I am wondering that is this a same dir structure or same host because ip address is same?
2) if its same then in doc it says regarding tnsname.ora and listener.ora file do some configuration on primary site and some on standby site , but than these files are on Oracle-network-admin then how can I seperate them for both site?
Any help would be appreciated to solve this problem, because I am little bit confused about primary site and standby site.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
yes. for example, in your listaner.ora, you could have the following (change values according to your actual settings):
...........
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = primary)
(ORACLE_HOME = C:\database\oracle\ora92)
(SID_NAME = primary)
)
(SID_DESC =
(GLOBAL_DBNAME = standby)
(ORACLE_HOME = C:\database\oracle\ora92)
(SID_NAME = standby)
)
...
)
Thanks actonwang.
Yes, I have that link ,but still I got confused that's why I want to understand this, but now this is clear to me about listener.ora file.
I configured standby database on same host for test purpose, I am able to mount it but not to open, If I tried to open it ,getting message that its only restricted to read only. and if I issued these command getting these messages--
SQL*Plus: Release 9.2.0.1.0 - Production on Wed Aug 2 10:06:33 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 126950220 bytes
Fixed Size 453452 bytes
Variable Size 109051904 bytes
Database Buffers 16777216 bytes
Redo Buffers 667648 bytes
SQL> alter database mount standby database;
Database altered.
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: 'C:\ORACLE\ORADATA\STANDBY
SQL> recover standby database;
ORA-00279: change 6333534 generated at 07/27/2006 10:17:22 needed for thread
20951
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAN
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
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: 'C:\ORACLE\ORADATA\STANDBY
Thanks in advance
Thanks actonwang
but when I issued this command on cmd prompt ---
C:\Documents and Settings\Lisa>lsnrctl
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 02-AUG-2006 10:35:
50
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PRO
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
tion
Start Date 31-JUL-2006 16:32:23
Uptime 1 days 18 hr. 3 min. 30 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\MATRIX10\listener.ora
Listener Log File C:\oracle\ora92\network\lo
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
TTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PRO
TP)(Session=RAW))
Services Summary...
Service "MX10TESTXDB" has 1 instance(s).
Instance "MX10TEST", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "mx10test" has 2 instance(s).
Instance "MX10TEST", status UNKNOWN, has 1 handler(s) for this service...
Instance "MX10TEST", status READY, has 1 handler(s) for this service...
Service "newstand" has 1 instance(s).
Instance "newstand", status UNKNOWN, has 1 handler(s) for this service...
Service "standby" has 2 instance(s).
Instance "NEWSTAND", status READY, has 1 handler(s) for this service...
Instance "standby", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
here services newstand has one instance and status is unknown and service standby has 2 instance and status for standby is unknown ,
I did not understand this because I am able to login primary database(standby) then why status is unknown.
Thanks in advance
>>Instance "newstand", status UNKNOWN, has 1 handler(s) for this service...
>>Service "standby" has 2 instance(s).
>> Instance "NEWSTAND", status READY, has 1 handler(s) for this service...
that is because oracle instance registers itself automatically with local listener (dynamic registration). you can possibly remove entries in listener.ora and instance will still be registered with listener.
refer to this doc ( i think i already showed you before). It should give you all you want:
http://download-west.oracl
Thanks actonwang for providing me link again.
As per doc.
3.2.9 Enable Dead Connection Detection on the Standby System
Enable dead connection detection by setting the SQLNET.EXPIRE_TIME parameter to 2 in the SQLNET.ORA parameter file on the standby system. For example:
SQLNET.EXPIRE_TIME=2
Here I have primary and standby database at a same system and it says enable this on the Standby System
and I have only one sqlnet.ora file , can I use only that file or use dynamically set up using alter system?
Thanks in advance
Thanks actonwang for your help and support .
Now I am trying to resolve this ora error--
ORA-00279: change 6333534 generated at 07/27/2006 10:17:22 needed for thread
20951
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAN
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
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: 'C:\ORACLE\ORADATA\STANDBY
Thnaks in advance
look at this for enable archiving to standby db:
http://download-west.oracl
Thanks actonwang.
I set these parameter in init.ora(primary) file
*.log_archive_dest_1='loca
*.log_archive_dest_2='SERV
*.log_archive_dest_state_1
*.log_archive_dest_state_2
*.log_archive_format=log%t
*.log_archive_start=TRUE
Thanks in advance
Thanks actonwang.
at primary database when I issued this command
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
System altered.
but when I issued this on both its different on standby and primary
Primary database
1 SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
2* FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
SQL> /
SEQUENCE# FIRST_TIME NEXT_TIME
---------- --------------- ---------------
24 21-JUL-06 21-JUL-06
25 21-JUL-06 21-JUL-06
26 21-JUL-06 22-JUL-06
30 24-JUL-06 25-JUL-06
31 25-JUL-06 25-JUL-06
32 25-JUL-06 26-JUL-06
33 26-JUL-06 27-JUL-06
34 27-JUL-06 28-JUL-06
35 28-JUL-06 30-JUL-06
36 30-JUL-06 31-JUL-06
37 31-JUL-06 31-JUL-06
SEQUENCE# FIRST_TIME NEXT_TIME
---------- --------------- ---------------
38 31-JUL-06 02-AUG-06
39 02-AUG-06 02-AUG-06
13 rows selected.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination c:/oracle/oradata/standby
Oldest online log sequence 38
Next log sequence to archive 40
Current log sequence 40
Standby database;
SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
2 FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
no rows selected
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination c:/oracle/oradata/NEWSTAND
Oldest online log sequence 32
Next log sequence to archive 34
Current log sequence 34
Thanks in advance.
and now this command again says this
primary database
1 SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
2* FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
SQL> /
SEQUENCE# FIRST_TIME NEXT_TIME
---------- --------------- ---------------
33 26-JUL-06 27-JUL-06
33 26-JUL-06 27-JUL-06
34 27-JUL-06 28-JUL-06
34 27-JUL-06 28-JUL-06
35 28-JUL-06 30-JUL-06
35 28-JUL-06 30-JUL-06
36 30-JUL-06 31-JUL-06
37 31-JUL-06 31-JUL-06
37 31-JUL-06 31-JUL-06
38 31-JUL-06 02-AUG-06
39 02-AUG-06 02-AUG-06
SEQUENCE# FIRST_TIME NEXT_TIME
---------- --------------- ---------------
39 02-AUG-06 02-AUG-06
40 02-AUG-06 02-AUG-06
40 02-AUG-06 02-AUG-06
14 rows selected.
Standby database;
SQL> SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME
2 FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
3 /
SEQUENCE# FIRST_TIME NEXT_TIME
---------- --------------- ---------------
33 26-JUL-06 27-JUL-06
34 27-JUL-06 28-JUL-06
35 28-JUL-06 30-JUL-06
37 31-JUL-06 31-JUL-06
39 02-AUG-06 02-AUG-06
40 02-AUG-06 02-AUG-06
6 rows selected.
Thanks in advance
Thanks actonwang.
That means I created physical standby database successfull?
but if I want to see datafile using V$datafile query not able to see standby database file why?
here is output
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL> select name from v$datafile;
NAME
--------------------------
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
11 rows selected.
SQL> select * from v$controlfile;
STATUS
---------------------
NAME
--------------------------
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
SQL> select member from v$logfile;
MEMBER
--------------------------
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
C:\ORACLE\ORADATA\STANDBY\
here controlfile I can see for standby(newstand) database, but data file and redologs are still primary(standby) database.
Thanks in advance.
Thanks actonwang.
I created control file after hot backup for all datafile, copy of online and archived redo logs and backup of controlfile to trace, then I issued this command to create standby controlfile;
alter database create standby controlfile as ' C:\ORACLE\ORADATA\NEWSTAND
Thanks in advance.
Thanks actonwang.
here I tried to rename all file manually .here is output
SQL> select name from v$datafile;
NAME
--------------------------
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
C:\ORACLE\ORADATA\NEWSTAND
11 rows selected.
but when I tried to issue this command
SQL> RECOVER STANDBY DATABASE;
ORA-00279: change 6327698 generated at 07/27/2006 09:39:35 needed for thread 1
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
ORA-00280: change 6327698 for thread 1 is in sequence #33
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
AUTO
ORA-00279: change 6332002 generated at 07/27/2006 10:07:13 needed for thread 1
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
ORA-00280: change 6332002 for thread 1 is in sequence #34
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAN
for this recovery
ORA-00279: change 6610681 generated at 07/28/2006 20:12:27 needed for thread 1
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
ORA-00280: change 6610681 for thread 1 is in sequence #35
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAN
for this recovery
ORA-00279: change 6891113 generated at 07/30/2006 02:27:34 needed for thread 1
ORA-00289: suggestion : C:\ORACLE\ORADATA\NEWSTAND
ORA-00280: change 6891113 for thread 1 is in sequence #36
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAN
for this recovery
ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAN
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified
Thanks in advance.
Thanks actonwang
I used db_file_name_convert parameter,but some how it didn't rename all datafile ,so I performed this---
SQL> alter system set standby_file_management=ma
System altered.
SQL> alter database rename file 'C:\ORACLE\ORADATA\STANDBY
2 'C:\ORACLE\ORADATA\NEWSTAN
Database altered.
And I renamed all datafile manually and then issued --
recover standby database;
alter database open read only;
Now I am able to open standby database read only
Now I am wondering if I try to configure another standby database on remote server, do I need to install oracle on that server or just create dir structure there?
Thanks in advance.
Business Accounts
Answer for Membership
by: actonwangPosted on 2006-08-01 at 12:14:47ID: 17227101
>>I am wondering that is this a same dir structure or same host because ip address is same?
standby is different from primary because it has own instance and database files. standby database is just a type of database which happens to replicate primary database. there is nothing to do with same host or ip address etc.
>>if its same then in doc it says regarding tnsname.ora and listener.ora file do some configuration on primary site...
each database has its own instance or service name, so you configure listener to seperate them. You configure standby as if you configure for other database in same host.
It should be no confustion.