Database refresh from standby database

All,
OS : Sun version : 11.1.0.7
I'm doing database refresh using stand by database datafiles in different server.
1)Disabled Data guard broker in standby database .
2)Copied all datafiles in mount stage to target server (different server)
3)created controlfile and started the database in mount stage in different server
4)Applied all archive log files .
5)But still the database not recovered .
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 10401147296308 generated at 01/13/2012 09:03:43 needed for
thread 1
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
ORA-00280: change 10401147296308 for thread 1 is in sequence #57879
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc
ORA-00279: change 10401156453328 generated at 01/13/2012 10:48:01 needed for
thread 1
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
ORA-00278: log file
'/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Am I missing any steps here ? Please advice me on this .
Thanks.

Hi,
When you copy files of standby server to another target server ? - Yesterday.
Is standby is SYNC with primary? or MRP is still running? - ---------yes, standby db is running fine .
Even you can open database with resetlogs after recreating controlfile, no need of recovery too -- >I was unable to open . So went to apply arch files.
Do you have archive of thread 1 is in sequence #57887, -- No , Because sequence 57887 yet generate. I have applied all recent available archive log files.
ORA-00289: suggestion :
/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
ORA-00278: log file
'/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
needed for this recovery
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1:
'/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Edited by: 805877 on Jan 12, 2012 10:43 PM

Similar Messages

  • How to create db refresh using standby

    Hi all,
    Please any one tell me how to create clone using standby database .We have a stand by in some other state say x. The test instance which running in stand by place (i.e x) should create with stand by. Usually we copying the PROD backup to stand by server . so it takes some long time. So we would like to create refresh from standby database.So please provide how to do.
    Regards
    Gobinath.R

    Welcome to Forum
    When ever you post your question mention your database version number
    Why don't you search simply in Google for this
    http://www.lmgtfy.com/?q=clone+the+database+using+standby+database
    Anyhow here i give some sites for you
    http://gavinsoorma.com/2012/04/performing-a-database-clone-using-a-data-guard-physical-standby-database/

  • Restore production from standby database

    Hi,
    I would like to make a standby database for my production database.
    But, I have a basic question to restore my production database from standby database. There is a method to make it ?
    If I lost all files from production database, how to restore from my standby datase (which become in this case my new production database) ?
    thanks in advance for your help.
    gnom92.

    * I make a copy datafiles from my new production database (old standby database) on old production (where crash)
    * With my old production database, I make a standby database on new production database (old standby)
    * I can close the new production database and open the new standby database in read / write mode, and this is my production database.
    * After what I recreate my standby database (old standby,newproduction), or can I return in recover standby mode ?
    thank you very much for your patience.
    gnom92.

  • How to create a clone of database from STANDBY?

    How can i clone a database from physical standby database?

    Steps to clone from standby:
    1. cancle the managed recovery process on standby
    sql>alter database recover managed standby database cancel;
    2. Remember your standby databse would be in mount mode.
    3. Connect to the auxiliary instance and to the standby database through RMAN
    rman target sys/<pwd>@standby auxiliary sys/<pwd>@auxiliary-connection
    4. If 11g, then run directly duplicate from active database
    rman>duplicate target database to 'auxiliary_db_name' from active database nofilenamecheck;
    5. Once, the duplication is done, start the MRP on the standby again
    sql>alter database recover managed standby database disconnect from session;
    Ok..You are on 10g.
    Perform the above steps, but only thing is 1st you need to take the backup of the standby database first.
    Refer this Create dev database from standby database
    Already steps are given here
    Edited by: Shivananda Rao on Mar 9, 2012 9:56 AM

  • Database Refresh From ASM Filesystem to Local Filesystem

    Hi ALL,
    I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
    On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
    I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
    Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
    Any usefull links will be helpful.
    Regards,
    Arijit

    Hello,
    You can restore the backup of your Production database which is using ASM to your demo server (using file system).
    Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
    Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
    run
    set newname for datafile 1 to '<file-system-location-on-demo-server>';
    set newname for datafile 2 to '<file-system-location-on-demo-server>';
    restore database;
    switch datafile all;
    recover database;
    }

  • Database refresh from cold backup and hotbackup.

    How can we perform Database refresh from cold backup and hotbackup?

    OracleM wrote:
    How can we perform Database refresh from cold backup and hotbackup?I understand that you have Cold/hot backup and you need recover(refresh) this backup?If yes then restore cold/hot backup and
    sqlplus "/as sysdba"
    startup mount;
    recover database using backup controlfile unil cancel;
    /*then apply all available archive logs*/
    alter database open resetlogs;

  • Database refresh from production to test -how to clean existing test env

    All,
    My environment is
    Both Production and Test databases are in two node RAC environment
    Oracle version - 10.2.0.4.0
    OS - RHEL5
    Production database size 80GB
    We need to refresh the test environment from production database. Complete objects, data etc should be refreshed.
    We have a datapump export from production environment. With this export dump from production environment, I need to import into test environment.
    So far, I have imported with this kind of dump to the fresh database only.
    Now, we have already objects, data sitting in the test environment. How to clean the existing test environment and refresh the production datapump export dump.
    I thought of dropping all the tablespaces in test (other than system,sysaux, undo and temp). But not able to drop few tablespaces, it is telling that index is available in other tablespaces, dependency errors etc.
    Which is the best method to clean the existing test database. Management is not interested in dropping the test database and recreating it.

    I understand that you are Newbie , let give me simple steps.
    Follow the steps on testing envi.
    1. Drop only Application users that you want to refresh from Prod(Do NOT drop users system,sysaux.. or tablespaces)
    2. Create the users that you dropped.
    3. using import or import data pump import the data.
    In case you want to import user"A" data to "B" use REMAP_SCHEMA option.
    See the below link for data pump export/import with examples.
    http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    Click here for [How to add and remove OCR|http://oracleracexpert.blogspot.com/2009/09/how-to-add-and-remove-ocr-oracle.html]
    Click here in [ Making decisions and migrating your databases |http://oracleracexpert.blogspot.com/2009/08/download-sql-developer-migration.html]
    Click here to lean [ Static parameters change in SPFILE and PFILE|http://oracleracexpert.blogspot.com/2009/09/how-to-change-static-parameters-in.html]
    Edited by: Satishbabu Gunukula on Sep 14, 2009 5:09 PM
    Edited by: Satishbabu Gunukula on Sep 18, 2009 10:35 AM

  • Shrink Log file in log shipping and change the database state from Standby to No recovery mode

    Hello all,
    I have configured sql server 2008 R2 log shipping for some databases and I have two issues:
    can I shrink the log file for these databases: If I change the primary database from full to simple and shrink the log file then change it back to full recovery mode the log shipping will fail, I've seen some answers talked about using "No
    Truncate" option, but as I know this option will not affect the log file and it will shrink the data file only.
          I also can't create maintenance to reconfigure the log shipping every time I want to shrink the log file because the database size is huge and it will take time to restore in the DR site, so the reconfiguration
    is not an option :( 
    how can I change the secondary database state from Standby to No recovery mode? I tried to change it from the wizard and wait until the next restore for the transaction log backup, but the job failed and the error was: "the step failed". I need
    to do this to change the mdf and ldf file location for the secondary databases.
    can any one help?
    Thanks in advance,
    Faris ALMasri
    Database Administrator

    1. can I shrink the log file for these databases: If I change the primary database from full to simple and shrink the log file then change it back to full recovery mode the log shipping will fail, I've seen some answers talked about using "No Truncate"
    option, but as I know this option will not affect the log file and it will shrink the data file only.
          I also can't create maintenance to reconfigure the log shipping every time I want to shrink the log file because the database size is huge
    and it will take time to restore in the DR site, so the reconfiguration is not an option :( 
    2. how can I change the secondary database state from Standby to No recovery mode? I tried to change it from the wizard and wait until the next restore for the transaction log backup, but the job failed and the error was: "the step failed". I need to do
    this to change the mdf and ldf file location for the secondary databases.
    can any one help?
    Thanks in advance,
    Faris ALMasri
    Database Administrator
    1. If you change recovery model of database in logshipping to simple and back to full Logshipping will break and logs wont be resored on Secondary server as log chain will be broken.You can shrink log file of primary database but why would you need that
    what is schedule of log backup. Frequent log backup is already taking care of log files why to shrink it and create performance load on system when log file will ultimately grow and since because instant file initilaization is not for Log files it takes time
    to grow and thus slows performace.
    You said you want to shrink as Database size is huge is it huge or does it have lots of free space. dont worry about data file free space it will eventually be utilized by SQL server when more data comes
    2. You are following wrong method changing state to no recovery would not even allow you to run select queries which you can run in Standby mode. Please refer below link to move Secondary data and log files
    http://www.mssqltips.com/sqlservertip/2836/steps-to-move-sql-server-log-shipping-secondary-database-files/
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • QAS Refresh from PRD

    Dear Bhudev/Guest,
    I am Planning to refresh my Quality system from Production's Offline Database Backup. I have seen you a lot posts.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Refresh from Offline backup (AQC from APC)
    Let's say AQC is quality and APC is production.
    Pre-processing Activity:
    Verifications:
    1. Verify the last offline backup in the source system /oracle//sapbackup/back.log
    2. Verify that both the source and target systems are at the same Oracle level (which is already the case between APC and AQC)
    3. It is recommended that an off-line backup be taken of the target system before starting this process, in case of fall back.
    4. Confirm there is enough space in the target (AQC) file systems to contain the data from the source system this is required as we may have to copy the files from Production to quality. /oracle/SID/sapdata* folders should be having little more space as compared to the source filesystem.
    5. Check access to SAP* for APC (000 and 400) and also for AQC (000 and 400)
    6. Check other passwords such as adm and ora
    7. Server : User : ora > sqlplus u201C/ as sysdbau201D > alter database backup controlfile to trace > exit In /oracle/SID/saptrace/usertrace, the last trace (check the time) is the script for recreating the control file. You will need to edit it. Please rename the trace file to ld.sql and send the file to the target system /oracle/SID Edit the Script: vi ld.sql Delete or comment out all lines at the beginning of the file before STARTUP NOMOUNT which is kept. Change old controlfile creation statement at the beginnig of the controlfile: Old line: create controlfile reuse database NOresetlogs archivelog; change to New line: create controlfile set database resetlogs archivelog; replace all occurences of string by in each line where appears :g / / s / / /g example: :g/P10/s/P10/T21/g Delete the following lines a the end of the script: ; RECOVER DATABASE; ALTER SYSTEM ARCHIVE LOG ALL; ALTER DATABASE OPEN;
    8. Get from the Prod system (APC) the .aff and backDPR.log and copy them on AQC. (/oracle//sapbackup) Copy the files to /instkits/SID/. And after we can go on target source server and copy them from /instkits/SID to the /oracle/SID/sapbackup/. With the good owner and permission
    9. Lock all the users in client 400 except Basis and post system message. Target system data collection (On AQC -400):
    1. SM59 Expand all the trees, print by choosing: ->System ->List ->Print i) Compare list to R/3 connections on source system. Record details for any that will need to be recreated on target system.
    2. SCC4 Record all client settings. -> Tableview ->Print ->Standard List -> List -> Print Make sure you understand the columnsu2026
    3. SE06 Record system change options
    4. RZ10 Record the instance profile settings for: rdisp/wp-no-btc and rdisp/max_wprun_time
    5. STMS Record current transport routes. ->Overview -> Transport Routes -> manually expand all trees -> system ->list ->print
    6. Request customer to provide u201Ccatch-upu201D list of transports to be applied to system after refresh (QA and Sandbox systems).
    7. RZ04 Record current work process set-up. Highlight each operation mode and click instances/op modes button. i) Print with ->System ->List ->Print
    8. SAP License Ensure the SAP license information is available. If not on-hand, logon target system as adm and enter command: saplicense u2013show. This information is also available on OSS.
    9. TSM Nodename View /usr/tivoli/tsm/client/api/bin64/dsm.sys on source and target system. Record the nodename entries. These will be SAP or server names.
    11. Take printer Export through SPAD and save it locally to desktop->SPAD
    12. Take Export of User Master from the client 400 through SCC8 target system is AQC , so that it may be re-imported through STMS. Note the Transport number here also verify the transport exist in the queue. DB Restore from offline backup from APC:
    1. Stop SAP on AQC -> Login as aqcadm -> stopsap
    2. Change the TSM node on AQC-> cd /usr/tivoli/tsm/client/api/bin64 ls -lrt vi /usr/tivoli/tsm/client/api/bin64/dsm.sys Change it to point to APC, comment the AQC Node. Post Restore Acitivity:
    1. Stop Database Delete Old controlfile rm /oracle/AQC/sapdata1/system_1/cntrl/* rm /oracle/AQC/saparch/cntrl/* rm /oracle/AQC/origlogA/cntrl/*
    2. Re-create the controlfile and then after that start the database User : ora > cd > sqlplus u201C/ as sysdbau201D > @ld.sql > alter database open resetlogs;
    3. Change the sapr3 password Server : User : ora Temporarily, we have to change the sapr3 password to the default password. With SAPBA, change this user password to pass.
    4. Test the connection: Server : User : adm > R3trans u2013d It should have a return code of 0000
    5. Reasign tempfile alter tablespace psaptemp add tempfile '/oracle/AQC/sapdata1/temp_1/temp.data1' size 6020M reuse autoextend on next 20971520 maxsize 10000M; alter database rename global_name to AQC.WORLD; drop user OPS$APCADM cascade; drop user OPS$ORAAPC; create user OPS$ORAAQC identified externally default tablespace psapdnausr temporary tablespace psaptemp; grant connect, unlimited tablespace, SAPDBA to OPS$ORAAQC; grant connect, unlimited tablespace, SAPDBA to OPS$AQCADM;
    7. Change the instance profile to stop all the background processing To be sure that no production batch are executing, set rdisp/wp_no_btc to 0 posprocessing:
    8. Startsap
    9. Run Transaction SICK (as sap*)
    10. Installing license through the tcode: slicense While logged in as 000/sap/using password of APC system Get the License from service.sap.com and download it to local machine Log in 000 client using SAP and run the Tcode slicense import printers, run BDLS for logical system name conversions se06 posprocessing stms usermaster import import profiles for QAS
    thanks
    Bhudev
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Hi Pranav
    why the SIDs of production and QAS are same, did you do refresh of QAS from PRD ?
    If yes, then you should have done control file creation and change of SIDs, after the datbase restore...
    however, if you want to create the new control file and change the SID then try to consider the following steps:
    1. Login as orasid
    2. connect to sqlplus
    3. run query: alter database PRD backup controlfile to trace;
    4. It will create a control file as a latest trace file (.trc) in the directory /oracle/PRD/saptrace/usertrace
    note: logout of sqlplus
    5. Rename that .trc file into ldQAS.sql
    6. copy this file into /oracle/SID ie. /oracle/QAS directory
    7. edit the .sql file as below
    8. CREATE CONTROLFILE SET DATABASE u201CQASu201D RESETLOGS ARCHIVELOGS;
    add above statement replacing the below:
    CREATE CONTROLFILE REUSE DATABASE u201CQASu201D NORESETLOGS ARCHIVELOGS;
    9. Replace all occurences of string <PRD_SAPsid> by <QAS_SAPsid> in each line where <source_SAPsid> appears
    :g/PRD/s/PRD/QAS/g
    10. login in sqlplus, stop database
    11. as oraqas, delete old control files:
    rm /oracle/SID/sapdata1/system_1/cntrl/*
    rm /oracle/sid/saparch/cntrl/*
    rm /oracle/SID/origlogA/cntrl/*
    12. again login into sqlplus (as sysdba always)
    13. run this .sql : @ldQAS.sql
    note: it should give a message that control file creaated.
    14. Open the database using: alter database open resetlogs;
    15. alter database rename global_name to QAS.WORLD;
    16. drop user OPS$PRDADM cascade;
    17. drop user OPS$ORAPRD;
    18. create user OPS$ORAQAS identified externally default tablespace <tablespacename>
    temporary tablespace psaptemp;
    19. grant connect, unlimited tablespace, SAPDBA to OPS$ORAQAS;
    grant connect, unlimited tablespace, SAPDBA to OPS$QASADM;
    at SAP level:
    1. you can run BDLS to convert logicalsystems from PRD to QAS SID
    Bhudev
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    In both post, There is some difference specially like User droping.
    Whether I have to run BDLS or Drop usr and create or both activity have to be done?????
    Regards
    Dharmendra

    Please explain step by step:-
    7. Server : User : ora > sqlplus u201C/ as sysdbau201D > alter database backup controlfile to trace > exit
    In /oracle/SID/saptrace/usertrace, the last trace (check the time) is the script for recreating the control file.
    You will need to edit it. Please rename the trace file to ld.sql and send the file to the target system /oracle/SID
    Edit the Script: vi ld.sql Delete or comment out all lines at the beginning of the file before STARTUP NOMOUNT which is kept.
    Change old controlfile creation statement at the beginnig of the controlfile: Old line: create controlfile reuse database NOresetlogs archivelog; change to New line: create controlfile set database resetlogs archivelog; replace all occurences of string by in each line where appears :g / / s / / /g example: :g/P10/s/P10/T21/g Delete the following lines a the end of the script: ; RECOVER DATABASE; ALTER SYSTEM ARCHIVE LOG ALL; ALTER DATABASE OPEN;
    8. Get from the Prod system (APC) the .aff and backDPR.log and copy them on AQC. (/oracle//sapbackup) Copy the files to /instkits/SID/. And after we can go on target source server and copy them from /instkits/SID to the /oracle/SID/sapbackup/. With the good owner and permission
    Break into steps and explain. It looks confusing to me because I am new to ECC with Oracle.
    Regards
    Dharmendra

  • Deleting applied archives from standby

    Hello Guys,
    We have oracle 10g rel 2 on hp-ux
    I feel this common question for dataguard implementation
    Just want to check best way of deleting archives automatically from standby database,i have 2 methods in mind
    as below
    1)At os level shell script-finding last seqno from alert log at standby/or query v$views(select max(sequence#) from v$archived_log) ,passing it to script
    using rman as :*delete archivelog until sequence seqno;*
    or deleting at os level upto this seqno
    (Making script is not issue with this functionality and scheduling it in cron)
    2)by RMAN at standby
    set alter system set "_log_deletion_policy"='ALL' scope=spfile;
    set CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    however i have no plans to take backup at standby,still can i use above command
    is it reliable i faced some issues in past inspite of this configurations archives were not deleted at standby
    Please give your views is there any other method to delete archives automatically ,and which one is more preferred
    and reliable method/best method
    Thanks

    804719 wrote:
    Hello Guys,
    We have oracle 10g rel 2 on hp-ux
    I feel this common question for dataguard implementation
    Just want to check best way of deleting archives automatically from standby database,i have 2 methods in mind
    as below
    1)At os level shell script-finding last seqno from alert log at standby/or query v$views(select max(sequence#) from v$archived_log) ,passing it to script
    using rman as :*delete archivelog until sequence seqno;*
    or deleting at os level upto this seqno
    (Making script is not issue with this functionality and scheduling it in cron)
    2)by RMAN at standby
    set alter system set "_log_deletion_policy"='ALL' scope=spfile;
    set CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    however i have no plans to take backup at standby,still can i use above command
    is it reliable i faced some issues in past inspite of this configurations archives were not deleted at standby
    Please give your views is there any other method to delete archives automatically ,and which one is more preferred
    and reliable method/best method
    ThanksConfigure RMAN to purge archivelogs after applied on standby [ID 728053.1]
    logdeletion_policy parameter is static, so which you cant change dynamically, PRimary should bounce, If it is fine then you can go ahead.
    If you do not have time, then prepare an RMAN script to delete the archives.

  • Archive sequence number from standby does not match primary

    I have two unix servers configured, one as primary and one as standby, both in 11.2.0.2. When I run the verification scripts, I noticed that my standby's archive log sequence does not match the primary.
    From standby:
    select database_role, open_mode from v$database; Result: PHYSICAL STANDBY, MOUNTED
    select max(sequence#) from v$archived_log; Result is null
    archive log list;Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /arch/standby
    Oldest online log sequence 0
    Next log sequence to archive 0
    Current log sequence 0

    Hello;
    I don't think you have Data Guard working.
    select max(sequence#) from v$archived_log; This should return a number.
    Do an alter system switch logfile; on the primary, I'm thinking the new log never makes it to your standby.
    Once you have this working consider running something like this from your Primary:
    SELECT name as STANDBY, SEQUENCE#, applied, completion_time from v$archived_log WHERE DEST_ID = 2 AND NEXT_TIME > SYSDATE -1;
    select max(sequence#) from v$archived_log where NEXT_TIME > sysdate -1;
    You can change the first query to include both the Primary and the Standby.
    Best Regards
    mseberg

  • How to create primary controlfile from standby controlfile?

    We need to create a primary control file from a standby control file.
    SQL> select name, controlfile_type from v$database;
    NAME CONTROL
    HPR STANDBY
    Please help.
    Thank you very much.

    May wrote:
    We need to create a primary control file from a standby control file.
    SQL> select name, controlfile_type from v$database;
    NAME CONTROL
    HPR STANDBY
    Please help.
    Thank you very much.What is a problem?
    You can not create controlfile from standby controlfile(Expected activate time).
    And you lost controlfile?

  • Clone from standby  ended in ARC: Cannot archive online log based on backup

    Hi
    I m into scenario where my prod db is in one data center and standby is in other data center.
    Both are geographically separated. I have to get a copy of prod on to standby data center side.
    Sending data over the network is taking long time either with duplicate db from active db or take backup and copy over standby side and restore it.
    so i thought of duplicate db from standby db which is in same data center, using 11g RMAN duplicate from active standby command.
    I have simulated scenario which is as below
    oracle version 11.2.0.1
    os version REHL 5.4
    My procedure & parameter are as below.
    on standby side from where i m copying (TARGET)
    1) on standby
    alter database recover managed standby db cancel;
    2)alter database convert to snapshot standby;
    which gave me
    /u01/data/DGSTD/archive/1_152_750425930.dbf
    /u01/data/DGSTD/archive/1_153_750425930.dbf
    */u01/data/DGSTD/archive/1_1_752604441.dbf*
    */u01/data/DGSTD/archive/1_2_752604441.dbf*
    3) alter database open;
    4) alter system switch logfile;
    now from rman
    RMAN> connect target sys/system@DGSTD
    connect auxiliary sys/system@GGR
    connected to target database: DGPRM (DBID=578436102)
    RMAN>
    connected to auxiliary database: NOTREAL (not mounted)
    RMAN>
    run{
    allocate channel prmy1 type disk;
    allocate channel prmy2 type disk;
    allocate channel prmy3 type disk;
    allocate channel prmy4 type disk;
    allocate channel prmy5 type disk;
    allocate auxiliary channel stby1 type disk;
    duplicate target database to ggr from active database
    spfile
    parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
    set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
    set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
    set 'db_unique_name'='ggr'
    set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
    set 'sga_max_size'='140m'
    set 'pga_aggregate_target'='28940697'
    nofilenamecheck;
    and when output of rman reaches up below
    Starting backup at 31-MAY-11
    channel prmy1: starting datafile copy
    input datafile file number=00001 name=/u01/data/DGSTD/datafile/system01.dbf
    channel prmy2: starting datafile copy
    input datafile file number=00002 name=/u01/data/DGSTD/datafile/sysaux01.dbf
    in alert log of clone db it gives massive error saying
    ARC3: Cannot archive online log based on backup controlfile
    ARC2: Cannot archive online log based on backup controlfile
    ARC3: Cannot archive online log based on backup controlfile
    ARC2: Cannot archive online log based on backup controlfile
    and it fill up whole fs. and finally duplicate command throws error.
    not sure what i m missing of inside duplicate command or is it valid to duplicate database from snapshot standby.
    can somebody light on it please
    Edited by: user12281508 on Jun 1, 2011 10:26 AM
    Edited by: user12281508 on Jun 1, 2011 10:28 AM

    duplicate target database to ggr from active database
    spfile
    parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
    set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
    set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
    set 'db_unique_name'='ggr'
    set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
    set 'sga_max_size'='140m'
    set 'pga_aggregate_target'='28940697'
    nofilenamecheck;
    }I think you should use standby cluase as
    DUPLICATE TARGET DATABASE TO dup1 FOR STANDBY FROM ACTIVE DATABASE;

  • "Refresh from [myConnection]" on offline table

    hi
    Please consider this scenario.
    (1) in SQL*Plus, "create table my_table(col_a varchar2(10), col_b varchar2(10));"
    (2) in JDeveloper (10.1.3.3.0), drop "my_table" on a database diagram, creating an offline table
    (3) in SQL*Plus, "drop table my_table;"
    (4) in SQL*Plus, "create table my_table(col_a varchar2(10));"
    (5) in JDeveloper on the offline table node "MY_TABLE", select "Refresh from [myConnection]" from the context menu
    (6) answer the question "Refreshing the object from myConnection will lose any changes made offline. Are you sure?" with "Yes"
    (7) nothing happens, the offline table "MY_TABLE" still has colums "COL_A" and "COL_B"
    What am I missing here, why isn't the offline table "refreshed" after step (6)?
    many thanks
    Jan Vervecken

    Jan,
    Using JDeveloper 10.1.3.2 , I'm getting this error:
    Stack trace:
    java.lang.NullPointerException
         at oracle.javatools.db.ora.BaseOracleDatabase.listObjectsImpl(BaseOracleDatabase.java:1336)
         at oracle.javatools.db.AbstractDBObjectProvider.createSchemaObjectImpl(AbstractDBObjectProvider.java:678)
         at oracle.javatools.db.AbstractDBObjectProvider.getObjectImpl(AbstractDBObjectProvider.java:600)
         at oracle.javatools.db.AbstractDatabase.getObjectImpl(AbstractDatabase.java:588)
         at oracle.javatools.db.AbstractDBObjectProvider.getObject(AbstractDBObjectProvider.java:814)
         at oracle.jdeveloper.cm.dt.ui.SchemaObjectDescriptor.unwrapDescriptor(SchemaObjectDescriptor.java:220)
         at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.getSchemaObject(AbstractTransferHandler.java:1414)
         at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.getSchemaObjects(AbstractTransferHandler.java:1397)
         at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.copyObjectsForTransfer(AbstractTransferHandler.java:951)
         at oracle.jdeveloper.offlinedb.handler.ImportHandler.copyObjectsForTransfer(ImportHandler.java:1030)
         at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.run(AbstractTransferHandler.java:353)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
         at java.lang.Thread.run(Thread.java:595)
    Regards,
    Koen

  • Get report from standby

    can anyone tel me how to get report from standby database(9.2.)and am using standby in recovery mode...

    Hi..
    Reports can be generated from logical standby database only bot from physical standby database. You can refer to
    [http://download.oracle.com/docs/cd/B10501_01/server.920/a96653/manage_ls.htm#SBYDB00800]
    HTH
    Anand

Maybe you are looking for

  • Can't get rid of my high power consumption (Thinkpad X60 Tablet)

    This is really driving me nuts. On Windows 7, I can achieve a power consumption of around 11-12W (with moderate web surfing usage over WLAN and full screen brightness, just Aero turned off). On Arch, I can't get below 13W *ever* with full screen brig

  • My ipad sound doesn't work?

    My ipad sound does not work, only when I put head phones in or using FaceTime.. Event if I use my head phone the sound is in and out. It's not locked on silent or anything. It's just not working, not my apps, music or videos. My ipad will just be com

  • How do I organize or sort nokia web browser's book...

    How do I organize or sort nokia web browser's bookmarks? There are quite many bookmarked pages and scrolling through them is a pain, because they are sorted by oldest to newest. How bookmarks can be sorted alphabetically? Thanks

  • AC adapter light misguiding

    i recently brought a new hp pavillion 15 - e017TX with windows 8 inbuilt. when i switch it off and plug in the adapter after some times it shows white light (which means it is full charged ) and then when i start my laptop it indicates that it is not

  • Adobe Pro 9.0 - Save as an earlier version?

    We have people in our company that use both version 9.0, 8.0 and 7.0. Can someone using version 9.0 save backwards so that someone with 8.0 or 7.0 can read and digitally sign the document? Thanks!