Question

standby database

Asked by: Smruti1

Hi
for test purpose,   1) if I configure standby database with this dir structure.
Primary---/oracle/oradata/standby
Standby ---/oracle/oradata/newstand
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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-08-01 at 11:17:33ID21939499
Tags

standby

,

database

,

oracle

Topic

Oracle Database

Participating Experts
3
Points
500
Comments
52

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Creating a standby Database
    I want to create a standby database for a Oracle 8.0.4 on NT4 database. Does anyone have a detailed step by step document on how to do this. I can be reached at john.hagen@netshepherd.com
  2. Automated Standby Database...
    Has anyone out their successfully implemented an Oracle 8 Standby Database in production as a Disaster Recovery Solution ON NT !! I've heard that 8i has an "Automated Standby Database" feature which will actually send the archive log files to the remote site...
  3. Standby Database - Configuring TNSNAMES.ORA & LIST…
    I am using 32-bit Oracle 8.1.6.2.0 for both the Primary and Standby databases and each database is on a separate host/server. Both hosts are running the same version of the operating system. After following Chapter 5 "Oracle8i Standby Database Concepts and Administra...
  4. Oracle 9  Standby Database
    Is it possible to have a database on an NT2000 Server called db1 and have another database on the same server which is a standby of db1. How do you get around the db_names, .etc. Any setup instructions. I am familar with standby across servers.
  5. Problem in standby databse when tried to open or recover
    Hi there: 1. I created a standby databas called BYSTAND using PRACTICE as a base database. 2. I mounted it successfully. SQL> Alter database mount standby database; 3. When I tried to recover: SQL> recover standby database; I got the following: O...
  6. standby database
    Hi I am testing steps to create standby database. I prepared primary database using this syntax ALTER DATABASE FORCE LOGGING; ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='LOCATION=/ORACLE/ORADATA/STANDBY MANDATORY' SCOPE=BOTH; Then I copied datafiles from primary database to st...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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.
     

 

by: Smruti1Posted on 2006-08-01 at 12:56:49ID: 17227536

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.

 

by: schwertnerPosted on 2006-08-02 at 01:42:46ID: 17231215

This is not the same directory structure because the data files will reside in different named directories.
So you have to use rename option.

Because these are different DBs (but on the sme computer) they have to have different entries in the common Listener
directories.

 

by: actonwangPosted on 2006-08-02 at 06:30:05ID: 17233054

>>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?
     YES. standby db is no different from other database in a sense.

 

by: Smruti1Posted on 2006-08-02 at 06:43:28ID: 17233170

Thanks schwertner.
here I can use manually rename or db_file_name_convert parameter? but if I want to configure standby database at remote site, with same or different dir structure, do I need to install oracle on each and everey server or only net 8 configuration is sufficient?
Thanks in advance

 

by: Smruti1Posted on 2006-08-02 at 06:52:41ID: 17233261

Thanks actonwang.
so same site we can use only one configuration file(listener.ora).
Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 06:56:04ID: 17233297

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)
    )  
    ...
  )

 

by: actonwangPosted on 2006-08-02 at 06:56:42ID: 17233303

I believe this is mentioned in the steps for standby server and I already showed the link for you in some other post.

 

by: Smruti1Posted on 2006-08-02 at 06:58:07ID: 17233321

and if   I use this ---
Primary---/oracle/oradata/standby
Standby ---/oracle/oradata/standby/newstand

It will call same dir structure or not?
Thanks in advance.

 

by: Smruti1Posted on 2006-08-02 at 07:10:28ID: 17233443

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\SYSTEM01.DBF'


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\LOG20951_0.ARC


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAND\LOG20951_0.ARC'
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\SYSTEM01.DBF'

Thanks in advance

 

by: Smruti1Posted on 2006-08-02 at 07:17:34ID: 17233508


As per my understanding this is different dir structure because datafiles resides in different dir.
and if   I use this ---
Primary---/oracle/oradata/standby
Standby ---/oracle/oradata/standby/newstand

Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 07:20:26ID: 17233532

I don't see that it has sth to do with your configuratin with listener. you generally do:

1. set up database and instance for it
2. set up listener to link to the instance.

how you choose the directory for each database is only relevant to step 1.

 

by: Smruti1Posted on 2006-08-02 at 07:41:26ID: 17233723

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=(PROTOCOL=IPC)(KEY=EXTPROC0)))
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\log\listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MX10TEST)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MX10TEST)(PORT=8080))(Presentation=H
TTP)(Session=RAW))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=MX10TEST)(PORT=2100))(Presentation=F
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

 

by: actonwangPosted on 2006-08-02 at 07:50:10ID: 17233816

>>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.

 

by: schwertnerPosted on 2006-08-02 at 07:53:52ID: 17233867

Status UNKNOWN is not an error. This means that it is static registered and
that the listener has not checked the status (this is not bad).

 

by: schwertnerPosted on 2006-08-02 at 07:54:40ID: 17233876

Use automatic renaming of the files to solve the problems with the differences in the directories.

 

by: actonwangPosted on 2006-08-02 at 08:04:35ID: 17233988

refer to this doc ( i think i already showed you before). It should give you all you want:

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96653/create_ps.htm#58021

 

by: Smruti1Posted on 2006-08-02 at 08:13:27ID: 17234077

Thanks actonwang.
If I remove entry from listener.ora then I am not able to login at standby database using sql*plus
and
Is there any way can  I make status ready for Service "newstand" has 1 instance(s).
  Instance "newstand", status UNKNOWN, has 1 handler(s) for this service...

Thanks in advance

 

by: Smruti1Posted on 2006-08-02 at 08:16:24ID: 17234111

Thanks schwertner
I used db_file_name_convert parameter in my initnewstand.ora file
Thanks in advance

 

by: Smruti1Posted on 2006-08-02 at 08:21:51ID: 17234158


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

 

by: actonwangPosted on 2006-08-02 at 08:23:59ID: 17234185

>>If I remove entry from listener.ora then I am not able to login at standby database using sql*plus
    you don't need to remove it.

 

by: actonwangPosted on 2006-08-02 at 08:34:24ID: 17234316

>>SQLNET.EXPIRE_TIME=2
     It should apply to both databases.  I can not think of a way to dynamically set it up for each db.
     

 

by: Smruti1Posted on 2006-08-02 at 08:37:49ID: 17234353

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\LOG20951_0.ARC


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAND\LOG20951_0.ARC'
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\SYSTEM01.DBF'

Thnaks in advance

 

by: actonwangPosted on 2006-08-02 at 08:44:57ID: 17234437

what is your setting for  standby_archive_dest ? is it C:\ORACLE\ORADATA\NEWSTAND?

do you have C:\ORACLE\ORADATA\NEWSTAND\LOG20951_0.ARC?

 

by: Smruti1Posted on 2006-08-02 at 09:00:51ID: 17234605

Thanks actonwang.
Yes my setting for standby_archive_dest is it C:\ORACLE\ORADATA\NEWSTAND
but I am unable to locate LOG20951_0.ARC log in C:\ORACLE\ORADATA\NEWSTAND

Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 09:04:01ID: 17234640

how do you transfer archived log files from primary to standby?

 

by: actonwangPosted on 2006-08-02 at 09:08:10ID: 17234677

 

by: Smruti1Posted on 2006-08-02 at 09:09:12ID: 17234686

Thanks actonwang.
I set these parameter in init.ora(primary) file

*.log_archive_dest_1='location=c:/oracle/oradata/standby mandatory'
*.log_archive_dest_2='SERVICE=newstand reopen=60'
*.log_archive_dest_state_1=enable
*.log_archive_dest_state_2=enable
*.log_archive_format=log%t_%s.arc
*.log_archive_start=TRUE

Thanks in advance

 

by: actonwangPosted on 2006-08-02 at 09:15:30ID: 17234740

issue:

ALTER SYSTEM ARCHIVE LOG CURRENT;

to if archive file is copied.  refer to the doc for verification.

 

by: Smruti1Posted on 2006-08-02 at 09:38:01ID: 17234920

Thanks actonwang.
I got this message after issuing this--
SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
ALTER SYSTEM ARCHIVE LOG CURRENT
*
ERROR at line 1:
ORA-01109: database not open;

 

by: actonwangPosted on 2006-08-02 at 09:41:44ID: 17234948

issue it in primary database. make sure your primary is running ok.

 

by: Smruti1Posted on 2006-08-02 at 10:42:04ID: 17235502

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.

 

by: actonwangPosted on 2006-08-02 at 10:45:14ID: 17235539

since both are in the same server, set one of your archive dest directly on  c:/oracle/oradata/NEWSTAND/

 

by: Smruti1Posted on 2006-08-02 at 10:46:48ID: 17235559

and if I ltried to locate it in newstand dir
it is there but it says UltimateZip file
what does that mean?
Thanks in advance

 

by: Smruti1Posted on 2006-08-02 at 11:01:52ID: 17235711

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

 

by: actonwangPosted on 2006-08-02 at 11:39:17ID: 17236024

>> UltimateZip file
     it might be the format of archive file.

     it seems working. The archive files now are in standby.

 

by: Smruti1Posted on 2006-08-02 at 11:42:54ID: 17236051

Thanks actonwang.
but still I am unable to open standby database ,only able to mount it.
Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 11:52:23ID: 17236137

standby database is meant to be in mount status for continuous recovery from primary database. You are NOT supposed to open it.

 

by: Smruti1Posted on 2006-08-02 at 11:54:25ID: 17236163

Thanks actonwang.
But if I want to open it read only for reporting purpose?
Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 12:02:44ID: 17236232

then you need "logical standby database" instead of "physical standby database".

 

by: Smruti1Posted on 2006-08-02 at 12:23:34ID: 17236393

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\SYSTEM01.DBF
C:\ORACLE\ORADATA\STANDBY\UNDOTBS01.DBF
C:\ORACLE\ORADATA\STANDBY\CWMLITE01.DBF
C:\ORACLE\ORADATA\STANDBY\DRSYS01.DBF
C:\ORACLE\ORADATA\STANDBY\EXAMPLE01.DBF
C:\ORACLE\ORADATA\STANDBY\INDX01.DBF
C:\ORACLE\ORADATA\STANDBY\ODM01.DBF
C:\ORACLE\ORADATA\STANDBY\TOOLS01.DBF
C:\ORACLE\ORADATA\STANDBY\USERS01.DBF
C:\ORACLE\ORADATA\STANDBY\XDB01.DBF
C:\ORACLE\ORADATA\STANDBY\OEM_REPOSITORY.DBF

11 rows selected.

SQL> select * from v$controlfile;

STATUS
---------------------
NAME
------------------------------------------------------

C:\ORACLE\ORADATA\NEWSTAND\NEWCONTROL01.CTL


C:\ORACLE\ORADATA\NEWSTAND\NEWCONTROL02.CTL


C:\ORACLE\ORADATA\NEWSTAND\NEWCONTROL03.CTL


SQL> select member from v$logfile;

MEMBER
------------------------------------------------------
C:\ORACLE\ORADATA\STANDBY\REDO03.LOG
C:\ORACLE\ORADATA\STANDBY\REDO02.LOG
C:\ORACLE\ORADATA\STANDBY\REDO01.LOG


here controlfile I can see for standby(newstand) database, but data file and redologs are still primary(standby) database.

Thanks in advance.

 

by: actonwangPosted on 2006-08-02 at 12:31:36ID: 17236444

not sure what happened. revist steps to make sure you create your control file correctly.

 

by: Smruti1Posted on 2006-08-02 at 12:58:47ID: 17236600

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\NEWCONTROL01.CTL';
Thanks in advance.

 

by: Smruti1Posted on 2006-08-02 at 13:46:23ID: 17236981

Thanks actonwang.
here I tried to rename all file manually .here is output
SQL> select name from v$datafile;

NAME
----------------------------------------------------
C:\ORACLE\ORADATA\NEWSTAND\SYSTEM01.DBF
C:\ORACLE\ORADATA\NEWSTAND\UNDOTBS01.DBF
C:\ORACLE\ORADATA\NEWSTAND\CWMLITE01.DBF
C:\ORACLE\ORADATA\NEWSTAND\DRSYS01.DBF
C:\ORACLE\ORADATA\NEWSTAND\EXAMPLE01.DBF
C:\ORACLE\ORADATA\NEWSTAND\INDX01.DBF
C:\ORACLE\ORADATA\NEWSTAND\ODM01.DBF
C:\ORACLE\ORADATA\NEWSTAND\TOOLS01.DBF
C:\ORACLE\ORADATA\NEWSTAND\USERS01.DBF
C:\ORACLE\ORADATA\NEWSTAND\XDB01.DBF
C:\ORACLE\ORADATA\NEWSTAND\OEM_REPOSITORY.DBF

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\LOG1_33.ARC
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\LOG1_34.ARC
ORA-00280: change 6332002 for thread 1 is in sequence #34
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAND\LOG1_33.ARC' no longer needed
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\LOG1_35.ARC
ORA-00280: change 6610681 for thread 1 is in sequence #35
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAND\LOG1_34.ARC' no longer needed
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\LOG1_36.ARC
ORA-00280: change 6891113 for thread 1 is in sequence #36
ORA-00278: log file 'C:\ORACLE\ORADATA\NEWSTAND\LOG1_35.ARC' no longer needed
for this recovery


ORA-00308: cannot open archived log 'C:\ORACLE\ORADATA\NEWSTAND\LOG1_36.ARC'
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.

 

by: Smruti1Posted on 2006-08-02 at 13:54:42ID: 17237071

Thanks actonwang for all your support and explanation regarging standby database;
After renaming all datafile i am able to open standby database read only mode;
Thank you very much.
I don't know about the procedure for  points that how you can get it?

Thanks in advance

 

by: actonwangPosted on 2006-08-02 at 14:45:22ID: 17237453

not sure how you did . db_file_name_convert should take care of it automatically. But it is great that you make it work :)

 

by: Smruti1Posted on 2006-08-03 at 06:38:35ID: 17241551

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=manual;

System altered.

SQL> alter database rename file 'C:\ORACLE\ORADATA\STANDBY\SYSTEM01.DBF' to
  2  'C:\ORACLE\ORADATA\NEWSTAND\SYSTEM01.DBF';

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.

 

by: actonwangPosted on 2006-08-03 at 08:23:01ID: 17242492

you have to create a standby database and instance as you do in the local. You'd have a oracle installed there because a listener is also required.

 

by: Smruti1Posted on 2006-08-03 at 08:50:45ID: 17242759

Thanks actonwang.
I appreciate all your help and support.

 

by: actonwangPosted on 2006-08-03 at 08:54:14ID: 17242801

no problem. you basically figured out all the stuff by yourself :)

 

by: Computer101Posted on 2007-11-15 at 17:59:53ID: 20295095

Forced accept.

Computer101
EE Admin

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...