UAT Database from Standby database

Hi,
I'm using oracle 11.2.0.2.0 on Windows 2008,
I have prod & standby databases, I want to create new UAT DB which wiil be same as prod,
How Can create a UAT using standby database cold backup,
can i use cold backup of standby database.
Thanks
Edited by: user10745179 on Oct 22, 2012 12:42 PM

This would be a database duplication from backup with RMAN. A Catalog will help, particularly as you are working in a Data Guard environment, but it is a straightforward and well documented operation:
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupdb.htm#i1008564

Similar Messages

  • 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

  • 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

  • Migrate from UAT database to Production database

    Hi all,
    I need to set up my production database based on the UAT database.I would like to re-generate all my objects script and grant scripts from UAT so that there will not be any discripency. I can't go for full db export due to some apps constraints.I'm planing to generate grant scripts from dba_tab_privs for each role and generate public synonym script from dba_objects for each user.Object inventory can be taken from dba_objects for each user. FK and PK constraints are another worry.
    Am I on a right path?? My worry is that, I may miss out something. Can anyone guide me?

    I think Bhandari's advice is good as long your UAT and PRODUCTION on the same OSWhat about the data? UAT is going to full of rubbish data that nobody would want in a production system. But you wouldn't want to zap it from UAT because you'll need it for the next release (patch, enhancement, whatever). So you copy it all over into Production and then remove everything that's not supposed to be there? Starting a release by trashing the data in production doesn't sound very clever to me. Furthermore it's a complete non-starter for managing an incremental release.
    Using Import/Export isn't much better. Neither is generating scripts from the UAT data dictionary. Forget about Release 1.0! Think about how you're going to manage 1.1!
    The simplest, the least effort, the most robust approach is to create Production from the scripts that were used to build UAT. Anything else is more complicated, more work, less reliable. The only reasons why anybody might need to take some other approach are because they didn't build UAT entirely with scripts or because they didn't subject those scripts to source control. And that's what I mean by bad processes.
    LALEAGTFOTP!
    Cheers, APC

  • How Do i Identify My UAT database

    I just started with a new company and i need to write a script for ALL UAT databases accross my entire environment.
    I have the script. However Theres Few hundred database
    And they have no updated database inventory. My Question is. What's the simplest way to Locate All my UAT databases.
    Please help! THank you.

    956337 wrote:
    I just started with a new company and i need to write a script for ALL UAT databases accross my entire environment.
    I have the script. However Theres Few hundred database
    And they have no updated database inventory. My Question is. What's the simplest way to Locate All my UAT databases.
    Please help! THank you.there is nothing inherent in an Oracle database that defines how YOUR organization chooses to use it. As far as oracle is concerned a database is a database is a database. The only people who can answer your question are those within your own organization.

  • 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;

  • 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

  • TSPITR using backups from standby

    Hi,
    I would like to ask for your opinion/advice regarding the following
    scenario. We have a primary 10.2.0.3 RAC database which has a physical
    standby database, both sites being managed through dataguard. Every
    night full RMAN backups are taken for the primary and standby
    databases. Between the primary and standby sites we do not have any
    shared storage like NFS or SAMBA (because of the problems mentioned
    into Note:413098.1).
    Now, as far as I know, backups of datafiles/archives taken from the
    standby can be used on primary, am I right? So, what I would like to
    achieve is to perform a TSPITR of one particular tablespace by taking
    a backup control file from the primary but using datafile copies and
    archives from the standby. And of course, because I don't want to load
    too much the primary, the auxiliary instance should be located on the
    standby machine. Is this possible? Has anybody tried this before?
    Many thanks!
    talek.

    if you are on 10.2.0.3, check this document and make use of Incrementally Updated Backups: Rolling Forward Image Copy Backup
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm
    You can restore datafiles backedup from physical standby
    can restore archivelogs created on physical standby
    but can not use control file from standby to recover on primary
    You should be able to use bakcup from a physical standby and recover any tablespace in Point In Time on priamry prvovided you have a backup/datafile copy before and archives untill that time.

  • Script remove archives from standby after applied

    Hello,
    I am looking for a script to remove archivelog files from the standby flash recovery area after beeing applied.
    My database is 11.2.0.3.3 on Linux Redhat 5.
    Can someone kindly proovide me an example?
    Thank you

    RMAN does that for you :
    RMAN>CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    Then set the date to what you need and run as often as you need.
    http://docs.oracle.com/cd/E18283_01/server.112/e17022/rman.htm#BAJHHAEB
    #!/bin/bash
    # Name: db_rman_arch_standby.sh
    # Purpose: Delete archive from standby
    # Usage : db_rman_arch_standby <DBNAME>
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . db_rman_full <DBNAME> "
    exit 1
    fi
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    echo ${DBNAME}
    MAILHEADER="Archive_cleanup_on_STANDBY_${DBNAME}"
    echo "Starting RMAN..."
    $ORACLE_HOME/bin/rman target / catalog rmancat/rmancat@rcatalog << EOF
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-1';
    exit
    EOF
    echo `date`
    echo
    echo 'End of archive cleanup on STANDBY'
    mailx -s ${MAILHEADER} $MAILTO < /tmp/rmandbarchstandby.out
    . /u01/app/oracle/dba_tool/bin/rmemptyfolders.sh ${DBNAME}
    # End of ScriptUses an ENV file ( standby.env ) for each database. Use Linux ENV to compare to your settings
    ORACLE_BASE=/u01/app/oracle
    ULIMIT=unlimited
    ORACLE_SID=STANDBY
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2
    ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    LIBPATH=$LD_LIBRARY_PATH:/usr/lib
    TNS_ADMIN=$ORACLE_HOME/network/admin
    PATH=$ORACLE_HOME/bin:$ORACLE_BASE/dba_tool/bin:/bin:/usr/bin:/usr/ccs/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lbin:/GNU/bin/make:/u01/app/oracle/dba_tool/bin:/home/oracle/utils/SCRIPTS:/usr/local/bin:.
    export TERM=vt100
    export ORACLE_BASE ORACLE_SID ORACLE_TERM ULIMIT
    export ORACLE_HOME
    export LIBPATH LD_LIBRARY_PATH ORA_NLS33
    export TNS_ADMIN
    export PATHBest Regards
    mseberg
    Edited by: mseberg on Oct 25, 2012 4:58 AM

  • Recover from Standby

    Hi all
    I have a standby database and I want to recover this database in other computer...
    Which steps I must pass?
    1. Shutdown database
    2. Copy files from Standby database to my local database
    3. Open database and activate it as a primary database
    Am I right??
    Thanks...

    I have a master database which users are working on it.
    And I have standby database in shutdown mode, which I applying on it my archive log files
    I want to create a backup of my master but don't want online backup. And I can't do offline backup due to users working. And that's why I want to take a copy from standby database and create the same database on my another test machine..
    Can I do it and how??
    Thanks a lot

  • Procedure to delete archive log from standby server

    Hi
    We are using oracle10g(10.2.0.3) and we configured dataguard .
    I want to know procedure to delete applied archive log from standby server?
    Thanks
    With Regards
    umair

    [Delete Applied Archivelogs on Standby Database |http://emrebaransel.blogspot.com/2009/03/delete-applied-archivelogs-on-standby.html]
    http://tinyurl.com/p2krga
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • USB ports don't work after resuming from standby with Windows 8 on X230 tablet

    I have just done a clean install of Windows 8 on my X230 tablet.  Before installing Windows 8 I installed the most recent BIOS for this machine (version 2.50).  After installing Windows 8 I installed System Update from the Lenovo Website and downloaded all the recommended drivers and other files.  I've also installed all the latest Windows 8 updates.
    Here are the symptoms of my problem: After resuming from standby/sleep mode, my USB ports do not work.  My computer has two USB 3.0 ports and one USB 2.0 ports.  All exhibit the same behavior.  After resuming from standby mode I have tried inserting both my mouse and a USB thumbdrive, but neither are recognized.  After restarting Windows, the USB ports work again... until I resume from standby mode again.
    I hope there is a solution to this issue.  It is very frustrating.

    Thanks for the suggestion about tweaking the "Allow this computer to turn off this device" feature.  I un-checked that box for every entry I could find under "Universal Serial Bus Controllers" in the Devide Manager.  Unfortunately, the same symptoms of my problem persisted.
    I went back and looked at the README file associated with the BIOS 2.50 download on Lenvo's support site.  At the bottom of the file it gives a "Summary of Changes".  Under version 2.03 of the BIOS (the version just before version 2.50), it says:
    - (Fix) Fixed an issue where USB device might not detected when system resume from sleep mode.
    This indicates that Lenovo support was already aware of such issues.  The problem was intended to be fixed in version 2.03 of the BIOS.  However, the issue persists on my machine, even with the latest BIOS.
    Hopefully someone from Lenovo can comment here.

Maybe you are looking for

  • Questions in policy going crazy..!!

    Hi, I have a scenario where i have developed a jsp which prompts user to answer 10 questions set in the IDM policy via SPML. for that i have created a workflow, and it is running perfectly fine when the user has not answered any questions i.e. till t

  • Task Manager Packaged App  - edit link doesn't edit the correct task

    I'm a relative new-comer to APEX, I downloaded and installed the Task Manager app from the OTN site but it's not working as it should. I have created a list of tasks, but when I click on the EDIT link (page 3) the task that opens is always the last o

  • Is it possible to burn only part of a podcast?

    I subscribe to a podcast that is 3 hours long. It varies in quality of music. Is there any way to record only part of a podcast? Thanks!! S-

  • Tabindex fails to work when using any adobe component!

    Hello, Does anyone know why the tabIndex does not work as soon as you drag a adobe component to the stage. (Like a buton, combobox, checkbox ..) For example if you have to input text fields, you can you the tab key to switch from the first textfield

  • Camera Raw 4.6 updated but only see beta profile

    I updated Camera Raw 4.6 beta and saw many profiles Camera standard, Adobe standard - landscape, faithful etc. I then updated to 4.6 release and now only see a single profile - beta. I am using release candidate 2.1.