http://appsdbasworld.blogspot.com

appsdbasworld

 
APPS R12
  • R12.AD.A.DELTA.4 Patch
  • Disable concurrent manager
  • Increasing the number oacore process type(JVM) and...
  • Release12 installation
  • InitSID.ora settings for release12
  • Creating custom top in release12
  • Changing apps password
  • Apps questions
  • Workflow Notification Mailer Setup
  • Schedule downtime in R12
  • Enable/Disable restrict session of Apache
  • APPS 11i
  • Indian localization patch
  • Opening forms from linux machine
  • Replacing Jinitiator with JRE for Oracle Apps 11i
  • Enabling SSL for E-Business suite 11i
  • Executing gather schema statistics at backend
  • Cleaning temporary tablespace
  • How to check versions
  • How to find patchset level
  • Cleaning concurrent manager tables
  • Database General
  • Create A Production (Full or Partial) Duplicate On...
  • Creating a Duplicate Database on a New Host Using ...
  • Database Cloning
  • 11g top new features
  • New background processes in 10g
  • 10g Data Pump
  • Installing Oracle Database 9i (9.2.0.8) on RHEL 4
  • Query to kill inactive sessions
  • Installing 11g(11.1.0) database on Redhat Linux 4
  • Check Deprecated Initialization Parameters in 11g
  • Online backup 9i & 10g
  • Enable/Disable archivelog in 9i
  • Creating recovery catalog in remote database
  • Creating database with create database command
  • Application Server
  • web cache cloning
  • 10g AS installation with linux
  • Operating System
  • Script to start/stop R12 services
  • Basic commands to check system statistics
  • Statspack analyzer
  • Analyze your statspack report
  • Search
    Only search this Blog
    E-mail Subscription

    Enter your email address:

    Delivered by FeedBurner

    Others Coming Soon!
    Your Ad Here
    Creating a Duplicate Database on a New Host Using RMAN
    Wednesday, August 6, 2008
    For reference:
    ----------------

    Primary Database SID: ORCL
    Duplicate Database SID: AUX
    RMAN Catalog SID: RMAN


    Backup of the primary database.

    Host A (Target)


    # export ORACLE_SID=ORCL

    # rman target=/ catalog=rman/rman@ORCL

    RMAN> run {
    allocate channel d1 type disk;
    backup format '/backups/PROD/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/backups/PROD/al_t%t_s%s_p%p' archivelog all;
    release channel d1;
    }
    This command will perform a full database backup including archivelogs and the current controlfile.


    Host B (Aux)

    Making the backup available for the duplicate process.

    If your backup resides on disk you will need to copy this back up from host A to host B. Ensure you place it in the same directory as where it was created.
    RMAN> list backup;

    Create same directory of host b and give appropriate permissions for the oracle user






    Create the pfile [initAUX.ora] parameter file in the $ORACLE_HOME/dbs directory for the auxiliary database.
    ---------------------------------------------------------------
    db_name = aux
    db_block_size = 8192
    compatible = 10.2.0.1.0
    remote_login_passwordfile = exclusive
    control_files = ('/d02/oradata/aux/control01.ctl')
    db_file_name_convert = ('/newpart/oradata/orcl',
    '/d02/oradata/aux')
    log_file_name_convert = ('/newpart/oradata/orcl',
    '/d02/oradata/aux')
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    ------------------------------------------------------------------------------
    Following the creation of the initAUX.ora startup nomount the auxiliary instance.
    export ORACLE_SID=AUX

    sqlplus '/as sysdba'

    startup nomount;






    Ensuring SQL*NET connections to primary database and RMAN catalog are working.

    Host B(AUX)

    sqlplus ‘sys/oracle@PROD as sysdba’

    sqlplus rman/rman@PROD (not mandatory)
    Add tnsnames.ora entry – Eg:
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test.oneapps.com)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    )
    )
    Prepare RMAN duplicate script.

    run {
    allocate auxiliary channel C1 device type disk;
    duplicate target database to AUX;
    }
    Save it as dup.sql

    Execute the RMAN script

    Start RMAN, connect to the production target, the catalog instance and also the auxiliary clone. Run the RMAN duplicate script as shown below. Before doing this ensure that the Oracle SID environment variable is set to the duplicate clone database.
    # export ORACLE_SID=AUX

    # rman target sys/pwd@ORCL catalog rman/rman@ORCL auxiliary /

    RMAN> @dup.sql
    After this, login to aux database and alter database open with resetlogs option.
    posted by Senthil Kumaran @ 10:32 AM  
    0 Comments:
    Post a Comment
    << Home
     
    About Me

    Name: Senthil Kumaran
    Home: Oslo, Oslo, Norway
    About Me: I'm working as a oracle applications dba(Apps DBA OCP) and fusion middleware.This views are my own only and not neccessary to match with others
    See my complete profile Add to Technorati Favorites
    Previous Post
    Archives
    Links
    Powered by

    BLOGGER

    Add On

    Add to Google

    Add to My AOL

    Subscribe in Bloglines

    Subscribe in NewsGator Online

    © Oracle AppsDBAs World Blogspot Template by SENTHIL KUMARAN SL