Question-Recovering tablespace in physical Standby...Oracle 10g?

Hello:
I have an interesting issue. I thought I will ask the group.
I have a physical standby database in 10g. Once of the datafile is in inconsistent state due to a crashed DB during recovery from the last time around.
I do not have any archivelogs, either on standby or primary .. Unfortunately.
However, the primary database is alive and well.
How do I recover my datafile selectively? Is a complete restore/recreation of the standby is the only option?
Any ideas?
Thanks in advance.
Ganesh

read that link
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#CIHIAADCKhurram

Similar Messages

  • Switchover to 1 of 3 Physical Standby (oracle 10g R2)

    Hi all,
    Previously I already had done switchover primary to standby (only 1 Physical standby was in the configuration)
    now i have some additional physical standbys (3 Physical standbys)
    stby1
    stby2
    stby3
    i want to switch to stby1 ,what needs to be done at stby2,stby3 to make them capable of identifying stby1 as their new primary.
    Kindly suggest!
    Best Regards,
    Muhammad Shakeel Azeem

    921542 wrote:
    Hi all,
    Previously I already had done switchover primary to standby (only 1 Physical standby was in the configuration)
    now i have some additional physical standbys (3 Physical standbys)
    stby1
    stby2
    stby3
    i want to switch to stby1 ,what needs to be done at stby2,stby3 to make them capable of identifying stby1 as their new primary.
    Kindly suggest!
    Best Regards,
    Muhammad Shakeel AzeemAzeem,
    Welcome to OTN,
    Once you performed switchover, You need to perform changes with some parameters from standby FAL_SERVER
    Earlier this parameter points to old primary, Now after switchover you have to put service name of new primary database service.
    Also Make changes with remote destinations log_archive_dest_n with correct service names.
    Refer this manual to work with multiple standby databases.
    http://www.oracle.com/technetwork/database/features/availability/maa10gr2multiplestandbybp-1-131937.pdf

  • Transport Tablespace from Physical Standby in Oracle 10gr2 - 64 Bit

    Hi,
    How to Export Transport Tablespaces from Physical Standby Server - Oracle 10gr2 EE in Windows 2003 EE, Since Production Servers are in 24*7 Support to avoid make Read Only Tablespaces.
    Regards
    Harish

    Open your Physical Standby in read only mode and do your export. Then mount it back in managed recovery mode.

  • Question regarding removal of physical standby database?

    We are running a 2 node rac cluster on linux itanium and we have setup one physical standby server. We did not use the data guard broker to setup the standby database we simply set 2 parameters log_archive_config and log_archive_dest_2.
    We now are looking to remove the physical standby server and I see that the 2 parameters are dynamic so I was trying to find out if it is as simple as running the alter system comands to reove the 2 parameters?
    I gues my real question is more about the syntax of removing the parameters?
    Would this syntax be correct?
    alter system set log_archive_config='' scope=both sid='*';
    alter system set log_archive_dest_2='' scope=both sid='*';
    and does it make a difference which parameter is removed first?
    Thanks I appreciate any help.

    the standby system is also a 2 node cluster but only one of the nodes has the instance up in a mount state running in recover mode and the other instance is simply shutdown.
    Thanks.

  • Questions regarding creating a physical standby database in 10gR2

    I'm setting up a physical standby database in a test environment using two windows 2003 servers. I was wondering if someone could answer a few questions I'm not too clear on. I've been thru the data guard manual and as much online information as i can find. I may have it working but wanted to post some things I'm not sure I did quite right.
    My tnsnames.ora files.
    On my primary database server:
    # tnsnames.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    PRIMARY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVER1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PRIMARY.MYDOMAIN.com)
    STANDBY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVER2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STANDBY.MYDOMAIN.com)
    On my physical standby database server:
    # tnsnames.ora Network Configuration File: f:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    STANDBY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVER2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STANDBY.MYDOMAIN.com)
    PRIMARY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVER1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PRIMARY.MYDOMAIN.com)
    My Listener.ora files:
    On my primary database server:
    # listener.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = PRIMARY.MYDOMAIN.com)
    (ORACLE_HOME = f:\oracle\product\10.2.0\db_1)
    (SID_NAME = primary)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server1.mydomain.com)(PORT = 1521))
    On my physical standby database server:
    # listener.ora Network Configuration File: f:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = standby.mydomain.com)
    (ORACLE_HOME = f:\oracle\product\10.2.0\db_1)
    (SID_NAME = standby)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sever2.mydomain.com)(PORT = 1521))
    The next item I'm not sure about is after creating the control file for standby use.
    One the primary server I created it using:
    alter database create standby controlfile as 'sbcontrol01.ctl';
    I copied the primary database pfile I had created earlier to the standby server, renamed it and edited it.
    Initially I left the CONTROL_FILES= parameter pointing to the control01.ctl, control02.ctl and control03.ctl that I restored. But I was getting the error ORA-01665: control file is not a standby control file
    So I copied the sbcontrol01.ctl to sbcontrol02 and sbcontrol03.ctl and pointed the CONTROL_FILES= parameter at them.
    The error went away and the database came up. I still need to test it some more but wanted to see if what i did was correct or a fluke.
    Edited by: tjohnson on Mar 23, 2009 2:26 PM

    If in the primary I had control files named control01, control02 and control03 would I have been able to create a standby controlfile called control01.ctl or would I have had to name it something else like I did (sbcontrol01.ctl) and rename it to control01.ctl once I got it over to the standby database server?Suppose you have the primary database control file in C:\oracle\primary\control location with names control01.ctl and control02.ctl. Then also you can create a standby controlfile with control01.ctl and control02.ctl , but then the location to be created must be different.You can create it in C:\oracle\primary location and then transfer to the specified location mentioed in the pfile of the standby database and mount the standby database.
    But saying this i would suggested to keep the name different from control01.ctl as far as naming conventions are followed.It might confuse someoe whether its a primary database controlfe or a standby database controlfile.Usally primary database controlfile are named control01.ctl , coltrol02.ctl etc and for standby many do prefer keeping standby01.ctl, standby02.ctl.Thats just for for understanding.
    HTH
    Anand

  • General question on SQL Server 2000 to Oracle 10g

    Hello all,
    I just have a general question on migration from SQL Server 2000 to Oracle 10g using SQL Developer.
    How does it migrate Users with proper privileges from SQL Server to Oracle? Follow the interface steps? Or should the users be created on destination Oracle side?
    Thank you.

    Hi,
    It depends which type of migration you are making.
    For a 'Standard' migration when you migrate data a 'create user' statement is created as part of the migration and you will see this in the generated code.
    If you are using the 'Quick' migration option then you need to create the Oracle user or use an existing user to receive the data.
    Your best option is to review the documentation available from -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    or directly from -
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    and then get back with specific questions if this does not give you the information you need.
    Review the chapter -
    2. Migrating Third-Party Databases
    in -
    Oracle® Database SQL Developer User’s Guide Release 1.5
    Regards,
    Mike

  • Lost datafile on Standby Oracle 10g

    Hi all.
    i have lost one datafile on my standby ,how to recover it ,this file is created when primary database is in noarchive mode (before i set up the data guard) ,so i can't use alter database create datafile statement bocz i dont have all the archive log to recover it ,
    plz help me out to solve this ..

    969752 wrote:
    Hi all.
    i have lost one datafile on my standby ,how to recover it ,this file is created when primary database is in noarchive mode (before i set up the data guard) ,so i can't use alter database create datafile statement bocz i dont have all the archive log to recover it ,
    plz help me out to solve this ..What is the version you are using?
    Even though your primary database is in noarchive log mode before configuring data guard, still its not a problem. Follow high level steps as below
    1) Take missing datafile on primary using RMAN (or) you can use tablespace backup with traditional method
    2) copy that datafile from primary to standby system
    3) Ensure you have properly set for DB_FILE_NAME_CONVERT(bounce required), and set standby_file_management to manual
    4) take the dummy file and rename with the new file(step 2) by using alter database create command
    5) later change standby_file_managment to auto & start MRP

  • Tablespace size monitoring in Oracle 10g

    Hello
    Our environment: Oracle 10.2.0.3 3-node RAC, ASM, Linux x86-64
    We are using EM Grid Control as a monitoring tool for RAC databases.
    We have "tablespace SPACE USED (%)" metric configured for all RAC databases.
    For some reason this metric does not work all the time and it does not alert dba when warning or critical threshold reached.
    I'd like to hear from people how they monitor tablespace size in Oracle RAC environment with files in ASM.
    Thank you,
    Yelena

    Yelena,
    Your problem is realted to GC and it seems it's not configured properly. Kindly check and verify schedule also. May possible it's notifying to other person also..

  • Is it possible to rename dictionary managed tablespace in oracle 10g?

    Hi,
    Assume my system tablespace is dictionary managed in oracle 10g and one of my permanent tablespace is dictionary managed.
    Pls let me know that permanent dictionary managed tablespace can be renamed or not using rename tablespace command or only locally managed tablespaces can be renamed?
    thanks,
    DB

    Hi Guys,
    thanks for the replies.
    As suggested, i created a database with dictionary managed system tablespace and users tablespace .
    I was able to rename users tablespace to users_test.
    Eventhough dictionary managed tablespace is deprecated in oracle 10g, it will be better if they just add a line in the 10gR2 documentation under renaming tablespaces section that dictionary managed tablespaces also can be renamed.
    SQL> alter tablespace users rename to users_test;
    Tablespace altered.
    SQL> select tablespace_name,extent_management from dba_tablespaces;
    TABLESPACE_NAME EXTENT_MAN
    SYSTEM DICTIONARY
    UNDOTBS1 LOCAL
    SYSAUX LOCAL
    TEMP LOCAL
    USERS_TEST DICTIONARY
    SQL> select * from v$instance;
    INSTANCE_NUMBER INSTANCE_NAME HOST_NAME VERSION
    1 dictest XXXXXX 10.2.0.1.0

  • Physical Standby Online Redo log  files,

    Hi,
    I'm trying to create a physical standby database (10.2.0.3). I'm a little confused about the requirement for online redo logs on the standby.
    in my standby alert log I get the following when I issue:
    SQL> alter database recover managed standby database disconnect from session
    "ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '/appl/oradata/prod/prod_1_redo_01_02.log'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3"
    /appl/oradata/prod/prod_1_redo_01_02.log is the path to the location of the online redo logs on the production system. This file does not exist on the standby filesystem so the error is correct.
    I assume that it gets this information from the standby control file I created on the production system and copied over to the standby.
    Do I need to copy the online redo logs from the primary over to the standby site or do I need to create online redo logs on the standby?
    Does the standby need to have redo log files?
    I'm not talking about 'standby log files' of the type created using 'alter database add standby log file'. I've not got that far yet.
    I just need to establish if a physical standby requires online redo log files?
    Thanks in advance,
    user234564

    I wanted to update this thread since I've been dealing with the exact same errors. The basic question is: "does a physical standby need the online redo logs?"
    Answer: Not really, until one wants to switchover or failover (and become a primary database). Furthermore, whenever the MRP process is started, Oracle prepares for a possible switchover/failover by "clearing" the online redo logs (MetaLink note# 352879.1). It is not a big deal, since Oracle will build the actual redo files when the "alter database open resetlogs" is accomplished during a "role transition."
    In our situation, we have decided to use our standby for nightly exports. We stop MRP, open the database read-only, then restart MRP. We built these standby DBs with RMAN. The RMAN duplicate process will not build the online redo log files until the database is opened for read/write (with resetlogs). However, we haven't had a need for read/write (i.e. a switchover).
    Thus, every morning we have been getting the same errors that "user234564" posted above. At first the errors seemed scary, then we realized they were just a nusiance. In order to clean things up, all I did was just "cp" our stanby redo logs (SRL) into our online redo directories ensuring the names matched what was in v$logfile. When I restarted MRP, the alert log clearly showed Oracle clearing these "newly found" online redo logs.

  • Failover to Physical Standby

    Hi All,
    I have a configured data guard  in my local system . Please find the below configuration of the Data guard
    Data Guard Type : - Physical Standby (Oracle version 11g)
    Service Responsible for Log Transport : - ARCH
    No Standby Redo log : - Neither in Primary Nor in Standby
    I am trying to fail over by using command "alter database recover managed standby database finish"
    Please find the below alert log info after this command .
    Tue Dec 03 01:42:14 2013
    alter database recover managed standby database finish
    Attempt to do a Terminal Recovery (PRD)
    Media Recovery Start: Managed Standby Recovery (PRD)
    Fast Parallel Media Recovery enabled
    Managed Standby Recovery not using Real Time Apply
    Media Recovery Waiting for thread 1 sequence 145
    Terminal Recovery timestamp is '12/03/2013 01:42:15'
    Terminal Recovery: applying standby redo logs.
    Terminal Recovery: thread 1 seq# 145 redo required
    Media Recovery Waiting for thread 1 sequence 145
    Terminal Recovery: End-Of-Redo log allocation
    Terminal Recovery: standby redo logfile 3 created '/data/PRD_DR/arch/arch_1_0_831359165.arch'
    This standby redo logfile is being created as part of the failover
    operation.  This standby redo logfile should be deleted after the
    switchover to primary operation completes.
    Media Recovery Log /data/PRD_DR/arch/arch_1_0_831359165.arch
    Terminal Recovery: log 3 reserved for thread 1 sequence 145
    Recovery of Online Redo Log: Thread 1 Group 3 Seq 145 Reading mem 0
      Mem# 0: /data/PRD_DR/arch/arch_1_0_831359165.arch
    Identified End-Of-Redo for thread 1 sequence 145
    Incomplete recovery applied all redo ever generated.
    Recovery completed through change 559773 time 11/23/2013 13:38:13
    Media Recovery Complete (PRD)
    Terminal Recovery: successful completion
    Resetting standby activation ID 1895332757 (0x70f87b95)
    Completed: alter database recover managed standby database finish
    Tue Dec 03 01:42:50 2013
    alter database commit to switchover to primary
    ALTER DATABASE SWITCHOVER TO PRIMARY (PRD)
    Maximum wait for role transition is 15 minutes.
    Backup controlfile written to trace file /apps/oracle/diag/rdbms/stand/PRD/trace/PRD_ora_9466.trc
    tkcrrxms: Killing 3 processes (all RFS)
    Standby terminal recovery start SCN: 559772
    RESETLOGS after complete recovery through change 559773
    Online log /data/PRD_DR/REDOLOG11.LOG: Thread 1 Group 1 was previously cleared
    Online log /data/PRD_DR/REDOLOG21.LOG: Thread 1 Group 2 was previously cleared
    Standby became primary SCN: 559771
    Tue Dec 03 01:42:53 2013
    Here my question is , why oracle implicitly creates a standby  redo log in Standby database for successful completion of 'alter database recover managed standby database finish'.
    Thanks,

    Terminal Recovery timestamp is '12/03/2013 01:42:15'
    Terminal Recovery: applying standby redo logs.
    Terminal Recovery: thread 1 seq# 145 redo required
    Media Recovery Waiting for thread 1 sequence 145
    Terminal Recovery: End-Of-Redo log allocation
    Terminal Recovery: standby redo logfile 3 created '/data/PRD_DR/arch/arch_1_0_831359165.arch'
    This standby redo logfile is being created as part of the failover
    operation.  This standby redo logfile should be deleted after the
    switchover to primary operation completes.
    Media Recovery Log /data/PRD_DR/arch/arch_1_0_831359165.arch
    Terminal Recovery: log 3 reserved for thread 1 sequence 145
    Recovery of Online Redo Log: Thread 1 Group 3 Seq 145 Reading mem 0
      Mem# 0: /data/PRD_DR/arch/arch_1_0_831359165.arch
    Identified End-Of-Redo for thread 1 sequence 145
    Looks like, its due to the following bug.
    Bug 5889025 : FINISH FAILOVER GENERATES INCORRECT STANDBY REDO LOG.

  • How to exclude tablespace in logical standby database

    Dear all,
    In which way does the creation procedure of a logical standby database differ than the standard ORA9.2 procedure (http://www.oracle.com/pls/db92/db92.to_pdf?pathname=server.920%2Fa96653.pdf&remark=docindex) if I want to exclude a tablespace in my standby database?
    Excluding tablespace in physical standby database is impossible.
    Thanks in advance.

    The goal of a stand by database is to become a clone fed online with transactions coming from the active database. If the cloned database in a physical dataguard configuration diverges from the active database it is useless, as transaction control takes place at a lower level (physical addresses are involved).
    ~ Madrid

  • Can a physical standby propagate data to a logical standby?

    Here is my situation. I have a RAC database that currently has a physical standby (also RAC cluster) for disaster recovery (DR) and I am about to create an additional logical standby for real-time reporting. My customer is asking if I can also create a logical standby for reporting that resides in the DR environment that would be available in a disaster. My question is can a physical standby propagate data to a logical standby? Is there any special configuration that would be required and what might it be if this is possible?
    Thanks.

    Hi,
    Welcome. Yes it's possible, example in 11.2 :
    A cascading standby database can cascade primary database redo to up to 30 cascaded destinations, each of which can be a physical, logical, or snapshot standby database.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17022/log_transport.htm#SBYDB5122
    Best regards
    Phil

  • About physical standby database

    We have physical standby database(10g). what are steps to put standby database in ready only mode for time being and then put it back in primary-secondary relationship once cheking is done?

    Cancel the redo Apply
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;Open The database
    SQL>ALTER DATABASE OPEN;Do your stuff.
    Once done, shut it down, then mount it again and resume the redo apply
    SQL>SHUTDOWN IMMEDIATE;
    SQL>STARTUP NOMOUNT;
    SQL>ALTER DATABASE MOUNT STANDBY DATABASE;
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;If you use real-time redo apply, you may want to issue the following command instead of the previous one.
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;...and pretty much that is it.
    Be aware that while running it in read-only mode, no logs from the primary are being applied. Also you may hit some bugs when you open your standby database. So if this standby is your production one, make sure you know how to deal in a situation when you need to resolve possible issues.
    Jason Arnell has explained one possible buggy scenario on his blog - LINK.
    --Mihajlo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [Debian] Oracle 10g Express - init.d start/stop script problem + fix

    I've experienced a problem with the init.d script "oracle xe" which is used to start/stop/reload the 10g server and comes with the debian package from oss.oracle.com.
    I noticed that after installing Oracle 10g in the "Debian" way (via .deb package and an apt-source oss.oracle.com), the start and stop method of the script doesn't do anything.
    It's checking for the value of the "ORACLE_DBENABLED" variable, which is on my installation set to "false", because I answered during installation false to the question "do you want to start Oracle 10g at system boot?".
    In my opinion that's wrong. I should always be able to start/stop the Oracle server trough the init.d script regardless of your choice starting Oracle at boot or not.
    I commented out row 604 and 621 in the file "/etc/init.d/oracle-xe" :
    case "$1" in
      start)
            if test -f "$CONFIGURATION"
            then
                    if test "$ORACLE_DBENABLED" != "true"
                    then
                            echo "exit"
    #                       exit 0
                    fi
            else
            echo "Oracle Database 10g Express Edition is not configured.  You must
                    exit 0
            fi
            start
      configure)
            configure
      stop)
            if test -f "$CONFIGURATION"
            then
                    if test "$ORACLE_DBENABLED" != "true"
                    then
                            echo "exit"
    #                       exit 0
                    fi
            else
            echo "Oracle Database 10g Express Edition is not configured.  You must
                    exit 0
            fi
            stop
            ;;

    Hello,
    I have the same problem on RH9.
    [root@phpsrv init.d]# ./oracle-xe start
    Starting Oracle Net Listener.
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/lsnrctl: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
    Starting Oracle Database 10g Express Edition Instance.
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus: relocation error: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/../lib/libclntsh.so.10.1: symbol semtimedop, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference
    Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
    Regards,
    Pavel Kucera

Maybe you are looking for

  • Simple Problem with SQL

    Table structure is as follows. Name Char Key Promotion_Date Date Key Job Char Key Title Char Key Role Char Key Amount No Key My business requirement is to select Name of the person with the maximum Propmotion_Date and also the promotion_date should b

  • Question about InDesign File Structure

    I had an interview Friday for a design job and they asked me to send them a stripped InDesign file without photos or anything, just a file so they can check out the structure of the file and see how I set up my files. 1. What is good file structure?

  • Current Situation - what exactly is being shipped today?

    If I order a display today what will be shipped? Anyone any insight? Seems a silly question, but are the old spec displays now gone? Still seems that one or two are still popping up.

  • 7610 printer

    How do I change the print size, using a memory card, conected  dirrectly to the printer?

  • HT204389 Different languages on Siri...

    Hi everyone, Today Siri can talk nearly 15 different languages except ours. Siri can find places or locations in many countries, but in my country, Turkey/Turkiye, Siri can not find any locations. I am asking to Apple Team that in the future will Sir