Restore only 1 tablespace to standby server.

Hello,
I would like to restore only 1 tablespace to a standby server.
This is what I was planned to do :
startup nomount of the standby server
connect with rman from the primary to the standby with :
rman target / auxiliary sys/xxxx@standby_SID
set until scn 4847169298;
restore standby controlfile;
restore tablespace xxx
But my question, do I need to specify something to skip the other tablespace ?
How will my controlfile know that this standby db only has this single tablespace and that the other tbs are not on this server ?
any help welcome,
Kristof

You will need, at a minimum,
SYSTEM
SYSAUX (if 10g)
the Undo tablespace (whatever name you have given it).
.. and the tablespace xxx that you want
If you use the controlfile, you'd have to take all the other tablespaces offline
Check the Backup and Recovery Advanced User's Guide on RMAN TSPITR
(Tablespace Point In Time Recovery)

Similar Messages

  • Restoring only the tablespace from the database

    How do we restore only a 'tablespace' from a Terabyte database without restoring the entire database.
    ie... if a particular tablespace has been dropped from the database and we have the backup available for the database.
    So, how do we go about it for restoring only that tablespace.
    Version:10.2.0.4
    OS : solaris 10
    Edited by: user13364377 on Sep 29, 2010 3:49 AM
    Edited by: user13364377 on Sep 29, 2010 3:51 AM

    If you have a RMAN backup before dropping the tablespace then we can restore the tablespace by below method
    It is a tablespace point in time recovery ,here we need to create a auxillary DB.
    Recover a table/tablespace from Rman backup on same server:
    ===============================================
    Here we have to create the auxillary database.
    1.u should have valid backup of the database before dropping the tablespace.
    2.create the password file of target database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    3.Take backup of the control file to trace for creating the new control file for new
    auxillary database/
    SQL> alter database backup controlfile to trace;
    sample control file:
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "aux1" RESETLOGS FORCE LOGGING ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO01.LOG' SIZE 10M,//make sure here to change the location of of redo
    GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO02.LOG' SIZE 10M, logs to new location or change the location name before
    GROUP 3 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\aux1\REDO03.LOG' SIZE 10M //starating the database at the end.
    -- STANDBY LOGFILE
    DATAFILE
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSTEM01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\UNDOTBS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\SYSAUX01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS01.DBF',
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\prafulla\USERS02.DBF'
    CHARACTER SET WE8MSWIN1252
    4.create the password file of auxillary database.
    orapwd file=$ORACLE_HOME\dbs\PWDORCL2.ORA password=oracle
    5.create the control file
    sqlplus "/as sysdba"
    SQL>@create.sql
    6 catalog all the backuppiece to the newly created database;
    catalog backuppiece 'D:\oracle\product\10.1.0\LOG_707656915_50P1';
    7.We have to restore system,sysaux,undo and the tablespace which was dropped
    run
    set newname for datafile 1 to 'D:\oracle\product\10.1.0\oradata\aux1\system01.dbf';
    set newname for datafile 2 to 'D:\oracle\product\10.1.0\oradata\aux1\undotbs01.dbf';
    set newname for datafile 5 to 'D:\oracle\product\10.1.0\oradata\aux1\users02.dbf';
    set newname for datafile 3 to 'D:\oracle\product\10.1.0\oradata\aux1\sysaux01.dbf';
    set newname for datafile 4 to 'D:\oracle\product\10.1.0\oradata\aux1\users01.dbf';
    restore tablespace SYSTEM;
    restore tablespace UNDOTBS1;
    restore tablespace users;
    restore tablespace sysaux;
    switch datafile all;
    8.Take the other tablespace offline
    sqlplus>alter tablespace tablespace_name offline drop;
    9.recover the database prior to the time when tha table/tablespace was dropped.
    RMAN> run{
    2> set until time "to_date('07-01-2010 14:00:00','dd-mm-yyyy hh24:mi:ss')";
    3> recover database;
    4> }
    10.open the database in resetlog mode.
    take a transpotable tablespace backup of that tablespace and import it on the database where you dropped it.

  • How to backup only one tablespace in cold backup noarchivelog mode

    Hi,
    How to backup only one tablespace in cold backup noarchivelog mode
    Reagrds,
    Rushang

    We have to restore all 50 GB database if we fail in scripts meanwhile to start again the data load.
    Out scripts populater only two tablespaces.
    That's why if i take backup of those tabblespace then i have to restore only those tablespace not whole database.
    Regards,
    Rushang

  • Reorganize tablespaces in Oracle standby server

    Dear All,
    Our current configuration is
    SAP ECC 5.0
    Oracle 10.2.0.2.0
    HP/UX 11iv1
    We have Oracle Data Guard installed and working.  Since a couple of our SAP tablespaces are very fragmented, we would like to reorganize them using brtools.  These tablespaces are large (300+ GB) and we don't have the downtime to do the reorganization in the primary server.  I was wondering if we can do the following:
    1.      discontinue applying archive logs to the standby
    2.      open the standby database
    3.      reorganize the tablespaces
    4.      shutdown and mount the standby database
    5.      continue applying the archive logs from step 1 on
    I am not sure step 5 would work.  The SCN would have changed during the tablespace reorganization.
    Thank you very much,
    Fong

    > Also, since our primary server is production critical, we are worrying about some locking issues during the online reorganization.  That is why we would like to do the reorganization in the standby server.
    Stop worrying and learn how online reorgs actually works!
    You've payed a huge bunch of money for a DBMS that allows online reorgs and now you don't want to use it because you are in fear.
    And you are in fear because you don't seen to know but in doubt and uncertainty...
    Bad place to be - especially if your system is so critical.
    There is no way you can move your data on your standby size and then be able to re-synch the data with the primary site, since only physical standby is supported for SAP systems (that is block changes are transferred from primary to standby db - not SQL commands).
    With online reorg you can actually do what the name promises - perform your reorgs online, while the whole application is fully up and running.
    If you don't trust it (which is a good thing), then try it out on a test system before (you should practise it anyhow before you reorganize the production db).
    regards,
    Lars

  • Standby Server Problem

    Hi,
    I am using oracle 10gR1on windows.I have created a standby machine(Physical standby) and want to open in read only mode first time it is open in read only mode but after manually recovery want to open in read only mode.It is not open in read only mode after recover standby database.
    Here is Alertlog
    Wed Feb 04 15:19:28 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    KCCDEBUG_LEVEL = 0
    Autotune of undo retention is turned on.
    Dynamic strands is set to TRUE
    Running with 1 shared and 18 private strand(s). Zero-copy redo is FALSE
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 10.1.0.2.0.
    System parameters with non-default values:
    processes = 150
    shared_pool_size = 83886080
    large_pool_size = 8388608
    java_pool_size = 50331648
    control_files = D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\CONTROL01.CTL, D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\CONTROL02.CTL, D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\CONTROL03.CTL
    db_block_size = 8192
    db_cache_size = 25165824
    compatible = 10.1.0.2.0
    log_archive_start = TRUE
    log_archive_dest_1 = LOCATION=E:\oracle\mtm\archives
    log_archive_dest_state_1 = enable
    standby_archive_dest = E:\oracle\mtm\archives
    log_archive_format = mtm_%d_%t_%s_%r.arc
    db_file_multiblock_read_count= 16
    db_recovery_file_dest = d:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=mtmXDB)
    job_queue_processes = 10
    background_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\MTM\BDUMP
    user_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\MTM\UDUMP
    core_dump_dest = D:\ORACLE\PRODUCT\10.1.0\ADMIN\MTM\CDUMP
    sort_area_size = 65536
    db_name = mtm
    open_cursors = 300
    pga_aggregate_target = 25165824
    Deprecated system parameters with specified values:
    log_archive_start
    End of deprecated system parameter listing
    PMON started with pid=2, OS id=1916
    MMAN started with pid=3, OS id=1168
    DBW0 started with pid=4, OS id=1152
    LGWR started with pid=5, OS id=4044
    CKPT started with pid=6, OS id=3464
    SMON started with pid=7, OS id=1952
    RECO started with pid=8, OS id=3312
    CJQ0 started with pid=9, OS id=3300
    Wed Feb 04 15:19:28 2009
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Wed Feb 04 15:19:37 2009
    alter database mount standby database
    Wed Feb 04 15:19:37 2009
    Controlfile identified with block size 16384
    Wed Feb 04 15:19:41 2009
    Setting recovery target incarnation to 2
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=13, OS id=3376
    ARC0: Archival started
    ARC1 started with pid=14, OS id=688
    Wed Feb 04 15:19:41 2009
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Wed Feb 04 15:19:41 2009
    ARC1: Archival started
    ARC1: Becoming the 'no FAL' ARCH
    ARC1: Becoming the 'no SRL' ARCH
    ARC1: Thread not mounted
    Wed Feb 04 15:19:41 2009
    ARC0: Becoming the heartbeat ARCH
    ARC0: Thread not mounted
    Wed Feb 04 15:19:41 2009
    Successful mount of redo thread 1, with mount id 2667150665
    Wed Feb 04 15:19:41 2009
    Physical Standby Database mounted.
    Completed: alter database mount standby database
    Wed Feb 04 15:19:49 2009
    alter database open read only
    Wed Feb 04 15:19:49 2009
    SMON: enabling cache recovery
    Wed Feb 04 15:19:50 2009
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILE
    Alternatively, if these temporary tablespaces are no longer
    needed, then they can be dropped.
    Empty temporary tablespace: TEMP
    Empty temporary tablespace: TEMPA
    Database Characterset is WE8MSWIN1252
    Wed Feb 04 15:19:50 2009
    Published database character set on system events channel
    Wed Feb 04 15:19:50 2009
    All processes have switched to database character set
    replication_dependency_tracking turned off (no async multimaster replication found)
    Wed Feb 04 15:19:52 2009
    Starting background process MMON
    MMON started with pid=15, OS id=3828
    Wed Feb 04 15:19:53 2009
    Starting background process MMNL
    MMNL started with pid=16, OS id=3692
    Wed Feb 04 15:19:53 2009
    Physical standby database opened for read only access.
    Wed Feb 04 15:19:54 2009
    Errors in file d:\oracle\product\10.1.0\admin\mtm\udump\mtm_ora_3672.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access
    ORA-06512: at line 6
    Completed: alter database open read only
    Wed Feb 04 15:20:48 2009
    ALTER DATABASE RECOVER standby database
    Wed Feb 04 15:20:48 2009
    Stopping background process MMNL
    Wed Feb 04 15:20:49 2009
    Stopping background process MMON
    Wed Feb 04 15:20:50 2009
    Stopping Job queue slave processes
    Wed Feb 04 15:20:50 2009
    Stopping background process CJQ0
    Wed Feb 04 15:20:50 2009
    Job queue slave processes stopped
    Waiting for dispatcher 'D000' to shutdown
    All dispatchers and shared servers shutdown
    Wed Feb 04 15:20:52 2009
    SMON: disabling cache recovery
    Wed Feb 04 15:20:53 2009
    Media Recovery Start
    Managed Standby Recovery not using Real Time Apply
    Starting datafile 1 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 1: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\SYSTEM01.DBF'
    Starting datafile 2 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 2: 'F:\ORACLE\ORADATA\MTM\UNDOTBS01.DBF'
    Starting datafile 3 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 3: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\SYSAUX01.DBF'
    Starting datafile 4 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 4: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\USERS01.DBF'
    Starting datafile 5 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 5: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\EXAMPLE01.DBF'
    Starting datafile 6 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 6: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\GMS'
    Starting datafile 7 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 7: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\HRMS.ORA'
    Starting datafile 8 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 8: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\UMS.ORA'
    Starting datafile 9 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 9: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\USERS02.DBF'
    Starting datafile 10 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 10: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\MMS.DBF'
    Starting datafile 11 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 11: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\HISTORY.ORA'
    Starting datafile 13 with incarnation depth 0 in thread 1 sequence 33047
    Datafile 13: 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\MTM\SMS.ORA'
    Media Recovery Log
    ORA-279 signalled during: ALTER DATABASE RECOVER standby database ...
    Wed Feb 04 15:21:01 2009
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log E:\ORACLE\MTM\ARCHIVES\MTM_945F37AC_1_33047_500044525.ARC
    ORA-279 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Wed Feb 04 15:21:11 2009
    ALTER DATABASE RECOVER CONTINUE DEFAULT
    Media Recovery Log E:\ORACLE\MTM\ARCHIVES\MTM_945F37AC_1_33048_500044525.ARC
    Errors with log E:\ORACLE\MTM\ARCHIVES\MTM_945F37AC_1_33048_500044525.ARC
    ORA-308 signalled during: ALTER DATABASE RECOVER CONTINUE DEFAULT ...
    Wed Feb 04 15:21:11 2009
    ALTER DATABASE RECOVER CANCEL
    Media Recovery Canceled
    Completed: ALTER DATABASE RECOVER CANCEL
    Wed Feb 04 15:21:50 2009
    idle dispatcher 'D000' terminated, pid = (10, 1)
    Wed Feb 04 15:21:51 2009
    alter database open read only
    Wed Feb 04 15:21:52 2009
    SMON: enabling cache recovery
    Please suggest me waht step i shoud take.
    Regards

    From yours alert logfile one can be reason for inexisteing of temp file at standby database make sure the temp file exist on physical standby database as same as to primary database.
    WARNING: The following temporary tablespaces contain no files.
    This condition can occur when a backup controlfile has
    been restored. It may be necessary to add files to these
    tablespaces. That can be done using the SQL statement:
    ALTER TABLESPACE <tablespace_name> ADD TEMPFILEKhurram

  • Single license / Standby Server Preparedness

    I have a production server with a Standard Edition One single CPU license. I need to be ready in case the server has a problem and I need to stand up a new server.
    At what point is it required to buy another license?
    Case 1:
    Standby Server: Oracle is not installed.
    Primary Server does level 0, level 1 backups to the Flash Recovery Area. The backups are copied the Standby server each night. Furthermore the archive logs are copied to Standby as they are created.
    Recovery would involve, installing Oracle and then using rman to restore and recover.
    Case 2:
    Standby Server: Oracle is installed, it only has the sample schema and is shutdown.
    Primary Server does level 0, level 1 backups to the Flash Recovery Area. The backups are copied the Standby server each night. Furthermore the archive logs are copied to Standby as they are created.
    Recovery would involve, starting Oracle and then using rman to restore and recover from the FRA.
    Case 3:
    Standby Server: Oracle is installed, communicates to Primary via Net8, has a copy of the primary database, is mounted and applying archive logs throughout the day.
    Primary Server does level 0, level 1 backups to the Flash Recovery Area. The backups are copied the Standby server each night. Furthermore the archive logs are copied to Standby as they are created. Standby applies the arcivelogs via .bat script.
    Recovery would involve, applying the last archive log and opening.
    I’m trying to find the fastest road to recovering to a new server without needing to shell out $5k for a license and another $1k per year for support.

    >
    I'm pretty sure doing any of my proposed solutions is of the developer license, as this a production environment. It seems like it a violation of the license to have Oracle installed on 2 servers even if one is shutdown.
    >
    That would be my opinion as well.
    >
    It's like Oracle requires us to install it on the 2nd server only when the 1st server it out of commission. I really don't know.
    >
    Still don't know why you don't have an image backup of the disk partition that Oracle consumes.
    I have multiple OS's installed on machines in their own partitions. On Linux you can easily use the DD command to copy an entire partition, sector by sector, to a backup file. Restoring it takes only a few minutes even for a 20 GB partition. An Oracle-only installation is nowhere near that size.
    I can restore the OS or an installed app in a few minutes from an image backup. This is really easy on Linux since there is no registry to deal with. At some point you need to start heading towards virtual disks.
    Using Oracle's VM technology you just have a VM template (image) that gets deployed to a server. You only need the license for the servers you actually deploy to. So if a server goes down you redeploy the OS template to another server and keep right on trucking.
    You should really look into VM and start getting familiar with it. It is a game changer.
    The Oracle VM Templates main page is
    http://www.oracle.com/technetwork/server-storage/vm/database-092479.html
    They have a VM Templates for RAC also.
    http://www.oracle.com/technetwork/server-storage/vm/rac-template-11grel2-166623.html
    Using Oracle's virtual box you have plenty of pre-built developer VMs available for download
    http://www.oracle.com/technetwork/community/developer-vm/index.html
    And plenty of Oracle-provided articles about how to use VirtualBox and those templates
    http://www.oracle.com/technetwork/articles/servers-storage-admin/howto-use-vb-templates-1695904.html
    I have a single server that has multiple VMs running on it for different OSs including Windows XP. I rarely pick up any viruses because each system is in its own virtual machine. Periodically I just redeploy a VM template for XP and start fresh. Important files and page files are on on high-speed shared drives.
    You are missing out on the revolution if you haven't ventured into the VM area yet.

  • Restore the dropped tablespace using RMAN?

    Hello,
    I have done a oracle tablespace re-org for PSAPPOOLD,PSAPPOOLI. Now I want to restore only the OLD PSAPPOOLD,PSAPPOOLI tablespace using TAPE backup via RMAN. 
    The probelm is I have dropped the old tablespace during re-org which is a part of the re-org. Is it possible to restore the dropped tablespace using RMAN?
    My Oracle version is 9.2.05
    if anyone has done this before, please share your valuable ideas.
    I wrote the below script for the restore.
    run {
    allocate channel ch1 type sbt_tape;
    startup nomount
    restore controlfile; -
    >(I guess,if I restore old control file, I might get old structure which help the restore of TB)
    alter database mount ;
    restore tablespace PSAPPOOLD,PSAPPOOLI;
    recover tablespace PSAPPOOLD,PSAPPOOLI;;
    release channel ch1;
    Thanks,
    Arjun
    Edited by: Arjun Venkateswarlu on Jul 31, 2009 6:40 PM

    > I have done a oracle tablespace re-org for PSAPPOOLD,PSAPPOOLI. Now I want to restore only the OLD PSAPPOOLD,PSAPPOOLI tablespace using TAPE backup via RMAN. 
    >
    > The probelm is I have dropped the old tablespace during re-org which is a part of the re-org. Is it possible to restore the dropped tablespace using RMAN?
    Hello Arjun,
    why would you want to do this?
    What is is you want to achieve by this action?
    BTW: it's not possible to do that.
    Check [Performing RMAN Tablespace Point-in-Time Recovery|http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmtspit.htm].
    You want a "Tablespace point in time recovery" (TSPITR) for a dropped tablespace and that is just not possible with RMAN.
    So, the easiest way for you to get this tablespace back would be to restore and recover the database to a different host.
    Ah, while we're at it: using RMAN outside the BRTOOLS is not supported by SAP - so you better be a wiz with it because there won't be much help in case anything does not work.
    regards,
    Lars

  • Move Publisher backup to new server( Cold Standby Server) ?

    We have CUCM cluster consist of 1 publisher, 4 subscriber and have installed a new node like another cluster's publisher(with diferent ip address from existing publisher) . When existing publisher goes down we will move publisher backup to new server and change publisher ip address to new server on existing subscribers.
    is it posible ?
    Our aim is using new server for publisher down issue.(like cold standby server but diferent ip address from existing publisher)
    Or is there any better way to install publisher backup on on branch? When publisher goes down we will use the new server like publisher.

    Hi
    Re: NTP... you can have multiple NTP servers assigned, and only the primary NTP server is used for license MAC generation. As such, I would:
    1) set the primary NTP server to be the real NTP address you want to use. This will not be accessible when you build the server with the old servers' IP.
    2) set the secondary NTP server to an accessible NTP server. I do this by setting up NTP on the server you serve the SFTP backup file from. I use Meinberg NTP if this is a Windows box, it's free.
    That way you can build the server (primary NTP not accessible, but secondary is so it's fine). Then after the restore, change IP address and it will start using the primary NTP server.
    I presume deployment type refers to product and role .e.g. a CUCM Publisher, not a CUC server or CUCMBE publisher.
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • Steps to Make STANDBY SERVER..................

    hi
    1. can any body tell me the steps to make SAP standby Server.
    2. if our live SAp production Server fails then how can we up the standby Server.
    3. & after this when we make SAP Server again then how can we make this server
        in its actual position from standby Server.
    thanks & best regards.
    +Ishtiaq+

    Hi all,
    I dont think cluster is the solution for this. Because the requirement of DR server is different otherthan cluster environment.
    cluster is the concept to recover the primary database in hardware failures etc. And DR concept is for disaster recovery situations.
    Clustering concept is for quick resolution without any delay, only if your database is available.
    And steps to configure DR site.
    1) Install one DR server with same SID and same platform
    2) Take a full online/offline backup of primary database.
    3) Restore the same in to DR server
    4) Create standby controlfile on primary database and copy the same to DR
    5) Mount the DR database into standby mode
    6) recover the database, it will prompt you for next sequence of archive logs.
    7) Strart copying of archivelogs from primary to DR
    Let me know if any wrong from my side.
    Regards
    Nick Loy

  • Standby Server

    Hi All
    I have oracle 9i DB.
    I want to make a (standby server) in diffrent location, which is a mirror of my current server for the first time,
    then I want to send a batch to update it once aday.
    in case of any damage of the current server I will connect to the (standby server).
    what is the right way to make this plan?
    I am thinking of use RMAN , but how ?!?!?!?! (any help doc)
    Are there a better way ?
    Another Question :
    I use the (Archive log) in my DB, for now I am using EXP from my backup,
    I don't think that we need Archive log once we use EXP for all data, How to stop working with archive log?
    thanx in advance

    I don't think that we need Archive log once we use EXP for all dataYeah, go on with NOARGIVELOG mode if and only if you want to loose data. And don't reply you don't want, because the only way to preserve data is to have a backup and archivelog files from backup time to "now". If you're trusting export for your backups I'd advise you to get back to TFM, for your data's sake.
    I am thinking of use RMAN , but howIf you want to create a standby database, just look there: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1004466
    And use DataGuard for the synch of the databases. Or maybe are you planning to clone the whole server? If so, did you take in account the time take by a restore in case the main server crashes? etc?
    DR is not an easy stuff. If you describe what you want to achieve, we will be able to give advice, not if you only ask widely open questions!
    Regards,
    Yoann.

  • Restoring from RMAN tablespace backup ; Few questions

    11.2.0.3/RHEL 5.8
    We have a RAC DB which is used by more than 20 applications. One schema for each application and one tablespace for each schema.
    We have a schema with 130gb in size. All Objects in this schema use a single tablespace MCS_DATA.
    This weekend we are applying some changes involving DDL, Code and Data .Usually we take an expdp backup of the schema before the activity starts and later if something goes wrong with script deployment we'll revert to old state by dropping the schema and doing an impdp from the expdp backup.
    Question1.
    Can we do an RMAN tablespace only backup and if something goes wrong with script deployment can we drop the schema and the tablespace and then create an empty schema and then restore from the tablespace backup ?
    Question2.
    If the above is possible , can you explain how it is going to work out because we are essentially plugging (restore,recover) in a tablespace to the database. Any potential problems ?
    Question3. If the above (Question1) is possible, will restore/recover of this tablespace require a downtime for the entire DB ?

    Tom;
    If you are talking about RMAN TSPITR then yes you can. See - Purpose of RMAN TSPTIR in Backup and Recovery User's Guide E10642-03.
    The problem with TSPTIR is bulk. You need a lot of disk space to create a copy and then data pump the information out and back in. I just tested this on 11.2.0.3 and its slow. RMAN created a script which produced an AUX instance and did the data pump, but I had clean up afterwards. If it errors out you can have an AUX instance hanging out in the background.
    For TSPTIR you will need an area on the disk to server as an auxiliary destination large enough to hold what you are recovering plus the SYSTEM, UNDO and TEMP tablespaces.
    I would probably look at Transportable tablespaces as a possible option too.
    http://docs.oracle.com/cd/E25054_01/backup.1111/e10642/rcmttbsb.htm
    E10642-03 has a section for recovering a tablespace in chapter 2. The Tablespace must be offline, but the database can be up.
    This uses "restore tablespace" and "recover tablespace" commands. You would perform this type of recovery when you are say missing a datafile. You can recover any tablespace except SYSTEM and UNDO with this.
    Data Pump might be an option too, but given your tablespace size I would have worries about recovery time. Oracle lets you set compression
    and a limit to each file produced.
    expdp TABLESPACES=YOUR_DATA dumpfile=DATA_PUMP_DIR:ts_dumps_%U.dmp LOGFILE=DATA_PUMP_DIR:ts_dumps_log.log parallel=2 filesize=10G compression=ALL
    Given the size of your database a better option might be something like Data Guard as your recovery time would be brutal.
    Best Regards
    mseberg

  • UCCX 8.0 SNMP notification to report failover from active to the standby server?

    Does any know the UCCX 8.0 SNMP notification to report failover from active to the standby server?  (The specific notification.)
    ftp://ftp.cisco.com/pub/mibs/v2/CISCO-VOICE-APPS-MIB.my
    I see this in the MIB.
    cvaModuleStart NOTIFICATION-TYPE
      OBJECTS   { cvaAlarmSeverity, cvaModuleName }
      STATUS    current
      DESCRIPTION
            "A cvaModuleStart notification signifies that an
            application module or subsystem has successfully
            started and transitioned into in-service state. 
            This notification is working in conjunction with
            the cvaModuleStop notification to notify the start
            and stop status of a particular application module."
      ::= {ciscoVoiceAppsMIBNotifications 1}

    Attached are two files:
    cad-ecc-viewer.html
    This is a template HTML document which dictates how the pop up will look and what data fields are available.
    cad-ecc-viewer.vbs
    This is the Windows Scripting Host file which you run from a CDA workflow, and you pass it the values of the call data, it then launches an instance of IE and loads the above template.
    By default the code is setup to use the following data from the call, but can be modified to work with more, less, or different data:
    Customer Name
    Customer Status (like Premium, or Platinum)
    Customer Number (like an account number)
    Customer Phone Number
    So when you specify the VBS file to run in CDA you need to pass those variables in that order.
    The CDA should expect the VBS file on the root of C:\ by default, and the VBS file expects the HTML Template on the root of C:\ also.
    I have only tested this on UCCX 7x and IE 8x.  Use the code as a guide to your own solution, that suites your business requirements.
    EDIT: I see that this does not work on my Win7/IE9 system, so I will spend some time updating the code for Win7/IE9 and I'll let you know how it goes.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Standby server - WAIT_FOR_GAP error

    Hi,
    I have a Oracle Dataguard 10.2 running on Windows and found a WAIT_FOR_GAP error on the standby server.
    --> alert log of standby
    Sun Jan 30 20:00:04 2011
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
    MRP0 started with pid=18, OS id=2452
    Managed Standby Recovery not using Real Time Apply
    parallel recovery started with 3 processes
    Sun Jan 30 20:00:13 2011
    Waiting for all non-current ORLs to be archived...
    Clearing online redo logfile 10 E:\ORACLE\A30\ORIGLOGA\LOG_G10_M1.DBF
    Clearing online log 10 of thread 1 sequence number 17848
    Sun Jan 30 20:00:13 2011
    Errors in file z:\oracle\a30\saptrace\background\a30_mrp0_2452.trc:
    ORA-19527: physical standby redo log must be renamed
    ORA-00312: online log 10 thread 1: 'E:\ORACLE\A30\ORIGLOGA\LOG_G10_M1.DBF'
    Clearing online redo logfile 10 complete
    Media Recovery Log L:\ORACLE\A30\ORAARCH\A30ARCH\ARC17856_0681431456.001
    Sun Jan 30 20:00:13 2011
    Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
    Sun Jan 30 20:00:33 2011
    Media Recovery Waiting for thread 1 sequence 17857
    Sun Jan 30 20:51:19 2011
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    RFS[636]: Assigned to RFS process 4976
    RFS[636]: Identified database type as 'physical standby'
    Primary database is in MAXIMUM PERFORMANCE mode
    Primary database is in MAXIMUM PERFORMANCE mode
    Sun Jan 30 20:51:20 2011
    Fetching gap sequence in thread 1, gap sequence 17857-17863
    Sun Jan 30 20:51:20 2011
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    RFS[637]: Assigned to RFS process 4012
    RFS[637]: Identified database type as 'physical standby'
    Sun Jan 30 20:52:20 2011
    RFS[637]: Archived Log: 'L:\ORACLE\A30\ORAARCH\A30ARCH\ARC17864_0681431456.001'
    Sun Jan 30 20:56:34 2011
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 17857-17863
    DBID 3371425568 branch 681431456
    FAL[client]: All defined FAL servers have been attempted.
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    Sun Jan 30 22:00:44 2011
    RFS[636]: Archived Log: 'L:\ORACLE\A30\ORAARCH\A30ARCH\ARC17865_0681431456.001'
    Primary database is in MAXIMUM PERFORMANCE mode
    SQL> select process,sequence#,status from v$managed_standby;
    PROCESS    SEQUENCE# STATUS
    ARCH               0 CONNECTED
    ARCH               0 CONNECTED
    MRP0           17857 WAIT_FOR_GAP
    RFS                0 IDLE
    RFS                0 IDLE
    RFS                0 IDLE
    SQL> select * from v$archive_gap;
       THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
             1         17857          17863
    SQL> select sequence#,applied from v$archived_log order by sequence#;
    SEQUENCE# APP
         17855 YES
         17856 YES <--- Gap here
         17864 NO
         17865 NO
         17866 NO
         17867 NO
         17868 NO
         17869 NO
         17870 NO
         17871 NO
         17872 NO
    SEQUENCE# APP
         17873 NO
         17874 NO
         17875 NO
         17876 NO
         17877 NO
         17878 NO
         17879 NO <--- Gap here
         17889 NO
         17890 NO
         17891 NO
         17892 NO
    SEQUENCE# APP
         18067 NO
         18068 NO
         18069 NO
         18070 NO
         18071 NO
         18072 NO
    4032 rows selected.
    --> alert log of primary
    Sun Jan 30 20:00:03 2011
    Incremental checkpoint up to RBA [0x45c8.1f6c6.0], current log tail at RBA [0x45c8.1f7f5.0]
    Sun Jan 30 20:05:04 2011
    ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
    Sun Jan 30 20:30:11 2011
    Incremental checkpoint up to RBA [0x45c8.201e2.0], current log tail at RBA [0x45c8.20215.0]
    Sun Jan 30 20:51:12 2011
    Destination LOG_ARCHIVE_DEST_2 is UNSYNCHRONIZED
    LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
    LNSb started with pid=50, OS id=1792
    Sun Jan 30 20:51:19 2011
    Destination LOG_ARCHIVE_DEST_2 no longer supports SYNCHRONIZATION
    Beginning log switch checkpoint up to RBA [0x45c9.2.10], SCN: 276988485
    Sun Jan 30 20:51:20 2011
    Thread 1 advanced to log sequence 17865 (LGWR switch)
      Current log# 17 seq# 17865 mem# 0: F:\ORACLE\A30\ORIGLOGB\LOG_G17_M1.DBF
      Current log# 17 seq# 17865 mem# 1: E:\ORACLE\A30\MIRRLOGB\LOG_G17_M2.DBF
    Sun Jan 30 20:51:20 2011
    ARC1: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2
    Sun Jan 30 20:51:25 2011
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    Sun Jan 30 20:56:35 2011
    Completed checkpoint up to RBA [0x45c9.2.10], SCN: 276988485

    Hi,
    I've seen that, if the following message persists for a long time, then it is an ERROR.
    FAL[client]: Failed to request gap sequence GAP - thread 1 sequence 17857-17863 DBID 3371425568 branch 681431456 FAL[client]: All defined FAL servers have been attempted.
    The possibility is that log shipping of 17857 is stuck. It is not stuck because of any network disconnect, as it is in the case you mentioned. It is probably due to the following.
    The parameter LOG_ARCHIVE_DEST_1 on standby is set as L:\ORACLE\A30\ORAARCH\A30ARCH\ARC and STANDBY_ARCHIVE_DEST is also set to L:\ORACLE\A30\ORAARCH\A30ARCH\ARC. When a GAP is identified, standby database tries to pull the missing files FROM PRIMARY, and the in turn when you enable standby destination on primary (log_archive_dest_state_2 = enabled), it starts shipping logfiles on its OWN.
    When such a situation occurs in a system when archived logs are generated at a high rate, it can happen that the file which standby is trying to pull is being pushed/already pushed by primary database. Then a conflict arise, and standby deletes the file and tries to pull it again...this may go on in a loop. (because the locations are SAME).
    When i had this issue, I maintained different locations for  LOG_ARCHIVE_DEST_1 and STANDBY_ARCHIVE_DEST on standby database. After this is done, you will find that the logs shipped by primary are written in STANDBY_ARCHIVE_DEST. The file written in this location will be used by the standby database only when you do a managed recovery. If you are doing a manual recovery by issuing the command RECOVER STANDBY DATABASE; then, the stanbdby database will check if the file exists in LOG_ARCHIVE_DEST_1.
    The point is, when there is BIG gap, then you have the option of doing the following procedure.
    1. On the primary database keep LOG_ARCHIVE DESTSTATE_2 = enable
    2. On the standby ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL.
    3. Copy the missing archive logs sequence from the primary to standby's LOG_ARCHIVE_DEST_1 and perform manual recovery on standby untill the gap is over.
    4. issue the command ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT to start managed recovery. ( This will use the files present in STANDBY_ARCHIVE_DEST ).
    Hope the above procedure helps.
    Note: If the GAP is not that big and you see that last applied log is advancing, then conflict is not there...standby will automatically fill the GAP. But it is advised to maintain different location for the parameters i mentioned.
    Regards,
    Anish
    Edited by: Mohammed Anish on Feb 10, 2011 6:48 AM

  • Duplicate of Database - Restore of Specific Tablespaces using RMAN

    Hi, is it possible to perform a duplicate of a large database to a point in time (from tape) but only restore specific tablespaces, this database uses partitioned tables for a week of data, each set of partitions have their own tablespace.
    Thanks.

    Use can use the “SKIP TABLESPACE” option of RMAN DUPLICATE to bring only the tablespaces you want.
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • Error in standby server

    The standby server not receiving archivelogs continuesly . Scenario : in 10 files transmission,database transmitting only 7 or 8 files. remaining files i am copying maunally & then resolving the gap sequence .when i see alert log file in standby server I am geting an error like follows.what should i do?
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 152366-152366
    DBID 3500755944 branch 694072247
    FAL[client]: All defined FAL servers have been attempted.
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    -------------------------------------------------------------

    Post Operating System (OS) name & version for DB server system.
    Post results of
    SELECT * from v$version
    What clues exist in alert_SID.log file on Primary?

Maybe you are looking for