AUXILIARY database update using full backup from target database

Hi,
I am now facing the problem with how to implement AUXILIARY database update to be consistent with the target database during a certain period (a week). I did a fully backup on our target database everyday using rman. I know it is possible to use expdp to realize it but i want to use the current fully backup to do it. Does anybody has idea or experience with that? Thanks in advance!
Regards,
lik

That's OK. If you don't use RMAN to clone your database. You can create a database just using the cold backup of the primary database simply.
Important things are
1) you must catalog all datafiles as image copy level 0 in the cloned database
RMAN> connect catalog rman/rman@rcvcat (in host 1)
RMAN> connect target sys/manager@clonedb (in host 2)
RMAN> catalog datafilecopy
'/oracle/oradata/CLONE/datafile/abc.dbf',
'/oracle/oradata/CLONE/datafile/def.dbf',
'/oracle/oradata/CLONE/datafile/ghi.dbf'
level 0 tag 'CLONE';
2) You need to make incrementals of the primary database to refresh the clone database.Make sure that you need to specify a tag for the incremental and the name of tag is the exactly same as the one used step (1).
RMAN> connect catalog rman/rman@rcvcat (in host 1)
RMAN> connect target sys/manager@prod (in host 3)
RMAN> backup incremental level 1 tag 'CLONE' for recover of copy with tag 'CLONE' database format '/backup/%u';
3) Copy the newly created incrementals (in host 3) to the clone database site (host 2). Make sure the directory must be exactly same.
$ rcp /backup/<incr_backup> /backup/
-- rcp <the loc of a incremental in host 3> <the loc of a incremental in host 2>
4) Apply incrementals to update the clone database. Make sure you provide the tag you specified.
RMAN> connect catalog rman/rman@rcvcat
RMAN> connect target sys/manager@clone
RMAN> recover copy of database with tag 'CLONE';
5) After update the clone database, then delete the incremental backups and uncatalog the image copies
RMAN> delete backup tag 'CLONE';
RMAN> change copy like '/oracle/oradata/CLONE/datafile/%' uncatalog;
*** As you can see, you can clone a database using any methods. The key is you have to catalog the clone database when you refresh it. After finishing it, then uncatalog..

Similar Messages

  • Query to identify the recovery catalog database name from target database

    Hi,
    How to get the recovery catalog database name from the registered target database?
    i dont know my recovery catalog database for my target database.
    I know we can use the query
    select * from rc_database;
    from recovery catalog database to know all the registered database with the recovery catalog but I want to know is there any way or query to identify the recovery catalog database name from target database to which the target database is registered
    With Regards
    Boobathi P

    You can check the backup scripts which you use to backup your target database to get the catalog database name.
    And check the corresponding connect string in TNSNAMES.ORA file or tnsping to get the server details of the catalog database.
    Edited by: gopal on Apr 12, 2013 12:59 PM

  • How to get RMAN catalog information from Target database?

    Hi,
    How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
    Thanks

    If you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
    The RMAN backup script would have the connection identifier for the Catalog.
    Hemant K Chitale

  • Views to check the catalog database name from target database.

    Hi,
    Please help me to find view to check the catalog database name which is connected to my target database because I am new to the current environment where I am working now and the previous DBA have done the set up having 2 catalog database. I want view to check from target database, which can show the catalog database name to which it is connected to.
    We can check the catalog database name from the following ways but I want views to check it from target database.
    1.TNSnames.ora
    2.Any backup script connecting to catalog database.
    3.From catalog database we can use rc_database view to check the databases registered with the catalog database.

    Please help me to find view to check the catalog database name which is connected to my target databaseYou can check for any RMAN backup jobs that been scheduled on the server.
    In the scheduled script check rman command.
    You can then identify the database alias (of the catalog db) that is used in the rman backup script.
    Once you have found the database alias, check for the database alias entry in tnsnames.ora file present in your target database server.
    Once the entry is found, you can find the IP address and catalog db name from the tns entry.
    Edited by: st. osh on Nov 22, 2012 11:38 PM

  • Remove RMAN information from target database control file

    Dear Gurus,
    Can any one inform me that how I can remove RMAN related information from Target database control file without recreating the control file.
    Regards,
    asif

    I want to remove all RMAN related infromation from control file including the destination specification where backup sets were being created becuase that destination is no more available,
    configuration information also need to be removed from control file without recreating the control file.
    kindly help,
    regards,
    asif

  • Backup from ASM database

    Hi,
    I have an ASM database instance in Oracle 10g in windows XP environment.
    I want to know how to take backup from ASM database and store it in tape drive.
    Thanks in advance.
    Regards,
    A.Mohammed Rafi

    Thanks for the immediate reply.
    Since I am very new to this concept could you please let me know how to perform backup through RMAN.
    Also let me know whether backup through RMAN generates any dump file so that it can taken to tape or can be used for import.
    Once agains thanks a lot....

  • Old atcsn value from target database

    database version: 11.2.0.4.0
    goldengate version: 12.1.0.2.0
    OS: SunOs 5.10
    Hello guys I have a scenario.
    I start the primary extract & datapump extract
    (primary extract)
              register extract <extract group name> database
              add extract <extract group name>, integrated tranlog, begin now
              add exttrail <extract trail path>, extract <extract name>
              start extract <extract group name>
    (datapump extract)
              add extract <datapump extract name>, exttrailsource <extract trail path>
              add rmttrail <remote trail path>, extract <datapump extract name>
              start extract <datapump extract name>
    and after I start the primary extract & datapump extract, for the initial load I take an export datapump with flashback_scn=<some_value> from the source database.
    I import the data into the target database and I start the replicat
    (replicat)
              add replicat <replicat group name>, integrated extrail <extract trail path>
              start replicat <replicat group name>, atcsn <flashback_scn value given in datapump export>
    Now my question if I want to start the replicat after one week, and I start it with the atcsn taken during the export datapump for initial load (which was taken one week ago), how would the replicat start if that scn is not present in the source database?
    Thank You

    DBA2008 wrote:
    oracle:tulpcorpadb03$ rman TARGET sys/*****@wcmp AUXILIARY /
    Recovery Manager: Release 9.2.0.8.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-01031: insufficient privileges
    I findout this, this is prod db and not allowed to bounce to change, any other workaround to make rman duplicate work without changing this?
    SQL> show parameter password
    NAME TYPE VALUE
    remote_login_passwordfile string NONE
    SQL> connect /as sysdba;
    Connected.
    SQL> select * from v$pwfile_users;
    no rows selectedYou are trying to connect from remote host to target host as SYSDBA. It will not be possible unless you have setup password file at target host.(remote_login_passwordfile=EXCLUSIVE). As RMAN automatically tries to connect as SYSDBA, you will fail.
    I recommend, you execute duplication command from target host:
    rman TARGET sys/***** AUXILIARY sys/password@AUX_TNS

  • How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    If you use the WCF-SQL adapter it is recommend that you set UseAmbientTransaction to true if you are changing data. I think this requires MSDTC to be enabled on the SQL server that you are changing the data on. (http://msdn.microsoft.com/en-us/library/dd787981.aspx)
    I think that Availability groups does not support MSDTC. (http://msdn.microsoft.com/en-us/library/ms366279.aspx).
    How can you change data on a SQL 2012 application database that uses availability groups from BizTalk server?

    Hi,
    Yes, Availability groups doesn't support MSDTC. Please refer to the similar discusison which maybe helpfull:
    http://dba.stackexchange.com/questions/47108/alwayson-ag-dtc-with-failover
    http://stackoverflow.com/questions/17179221/msdtc-in-always-on-availability-groups

  • RMAN-04005: error from target database:

    Hi,
    when I want register my target by
    ]$ rman catalog prdrman/prdrman@PRD target sys/manager@DEV
    I receive this :
    RMAN-04005: error from target database:
    ORA-01031: insufficient privileges
    Do you have any idea ?
    Many thanks before.

    Here are some further hints from documentation:
    ORA-01031: insufficient privileges
    When : SQL> connect sym/sym as SYSDBA
    Additional : init.ora remote_login_passwordfile=EXCLUSIVE or SHARED
    Cause : Username/password is not correct (if the user is added by granting
    SYSDBA to the user, this user is added to the passwordfile with the
    password from the data dictionary)
    or:
    Password file has
    -> incorrect name orapw<name_of_database>
    -> is not in $ORACLE_HOME/dbs
    -> has wrong privileges
    They should be -rwSr-----
    For example:
    -rwSr----- 1 server sdb 1536 Mar 25 08:12 orapwv901
    Solve : You can set the correct privileges (Unix) by issueing
    $ chmod 4640 passwordfile
    As a last resort, recreate the password file and remind to add
    additional privileged (sysdba or sysoper) users

  • How do I setup a new Mini IPad using ICloud backup from my IPad 2?

    I have an ipad2 which has cloud backup - I have bought an IPad mini an d when I tried to setup using the backup from Cloud, because the Mini did not have the latest iOS, it would not allow the backup. I then used iTunes to setup and upgraded the software, but now I would like to access Cloud so that I can restore the Apps, photos, music, and data. Do I have to reset the Mini, and if so, will the upgraded iOS be retained so I can access the Cloud. Alternatively if I synch with my computer, is that going to be the most efficient method.

    Restore from iCloud Backup
    1. Erase all contents and settings (Settings>General>Reset>Erase all content and settings)
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Enable Location Service
    9. Select network, enter password and join network
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Selected Restore from iCloud Backup
    12. You'll be required to enter Apple ID and Password
    13. Agree to Terms and Conditions
    14. Select Backup file
    15. You'll see progress bar
    16. Red slider will appear; slide to unlock; step #1 to #16 is fast
    17. Pre-installed apps will be restored first
    18. Message: Purchased apps and media will now be automatically downloaded
    19. You'll see a pageful of apps with Waiting/Loading/Installing
    20. When the restore process is complete, your device will restart. You should connect the device to iTunes to sync data not contained in the backup (such as music, videos, apps, and so on).

  • Can u use a backup from one iMac to restore pictures from my other iMac both currently snow leopard?

    Can u use a backup from one iMac to restore pictures to another iMac both currently on snow leopard?

    Yes you can use Migration Assistant to restore your library.  http://support.apple.com/kb/HT4889

  • Is there anyway to restore an iphone to new from a different computer and then use a backup from the cloud?

    Is there anyway to restore an iphone to new from a different computer and then use a backup from the cloud? At&t said that they unlocked the phone but that it needs to be reset in itunes and retored for it to work. However, I do not have access to my computer as I am overseas and need to put a new sim card in. Anyone had this problem and know a way to go around this?

    If you have an backup on iCloud. You can restore via iTunes (on every computer) or via your iPhone itself.
    And yes, you can restore the backup via iCloud.
    To set iPhone to new do this: Settings > General > Reset > Erase all data and Reset all Settings.
    It take a while. But after this, you can restore backup via iCloud.

  • Recover full backup into another database

    Hello,
    I have a particular need that does not seems to be done so often and I just cannot get it.
    So here is the situation : I have a backup of a full database. That means that I have the init parameter file, the autobackuped controlfile (+pfile) and the autobackuped backupset.
    The source database is release 10.2.0.5.0, RAC instance.
    On another server, I have a simple instance, same release and I would like to recover the full backup in the second database.
    I have already done that once before but I had both pfile and controlfile backuped manually and the two instances were simple ones.
    Here I have tried the same way : shutdown my target database, changing my pfile backup parameters to match the target database. Startup the target database in nomount mode using the pfile. Create spfile from pfile. Then restore controlfile from the backuped controlfile with rman.
    But here this step is a problem.
    My question is simple : what is the best way / good practices to get this working?
    Thanks in advance for your help. Ask if you need any further informations.
    Max

    Hello,
    Here is the original init pfile content :
    instdb1.__db_cache_size=1107296256
    instdb2.__db_cache_size=1023410176
    instdb2.__java_pool_size=16777216
    instdb1.__java_pool_size=16777216
    instdb2.__large_pool_size=16777216
    instdb1.__large_pool_size=16777216
    instdb1.__shared_pool_size=436207616
    instdb2.__shared_pool_size=520093696
    instdb2.__streams_pool_size=16777216
    instdb1.__streams_pool_size=16777216
    *.audit_trail='DB'
    *.background_dump_dest='/u1/app/oracle/admin/instdb/bdump'
    *.cluster_database_instances=2
    *.cluster_database=TRUE
    *.compatible='10.2.0.0.0'
    *.control_file_record_keep_time=95
    *.control_files='+DG_DATA/instdb/controlfile/backup.305.615208725','+DG_FLASH/instdb/controlfile/current.256.614223119'
    *.core_dump_dest='/u1/app/oracle/admin/instdb/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DG_DATA'
    *.db_create_online_log_dest_1='+DG_FLASH'
    *.db_domain='inst.xx'
    *.db_file_multiblock_read_count=16
    *.db_flashback_retention_target=1440
    *.db_name='inst'
    *.db_recovery_file_dest='+DG_DATA'
    *.db_recovery_file_dest_size=53687091200
    instdb1.instance_number=1
    instdb2.instance_number=2
    *.job_queue_processes=10
    instdb1.local_listener='LISTENER_INST1.INST.XX'
    instdb2.local_listener='LISTENER_INST2.INST.XX'
    instdb1.log_archive_dest_1='LOCATION=/u1/app/oracle/admin/inst/arch_orainst1'
    instdb2.log_archive_dest_1='LOCATION=/u1/app/oracle/admin/inst/arch_orainst2'
    *.log_archive_dest_2='SERVICE=INSTB.INST.XX VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) OPTIONAL LGWR ASYNC NOAFFIRM NET_TIMEOUT=10'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='inst_%t_%s_%r.arc'
    *.max_dump_file_size='200000'
    *.open_cursors=300
    *.parallel_max_servers=20
    *.pga_aggregate_target=824180736
    *.processes=550
    instdb1.remote_listener='LISTENER_INST1.INST.XX'
    instdb2.remote_listener='LISTENER_INST2.INST.XX'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.resource_limit=TRUE
    *.session_max_open_files=20
    *.sessions=480
    *.sga_target=1610612736
    instdb1.thread=1
    instdb2.thread=2
    *.undo_management='AUTO'
    instdb1.undo_tablespace='UNDOTBS1'
    instdb2.undo_tablespace='UNDOTBS2'
    *.user_dump_dest='/u1/app/oracle/admin/inst/udump'
    And here is the test I have done :
    *1. modified the init pfile to this :*
    inst.__db_cache_size=1107296256
    inst.__java_pool_size=16777216
    inst.__large_pool_size=16777216
    inst.__shared_pool_size=436207616
    inst.__streams_pool_size=16777216
    *.audit_trail='DB'
    *.background_dump_dest='C:\Oracle\admin\inst\bdump'
    *.compatible='10.2.0.5.0'
    *.control_file_record_keep_time=95
    *.control_files='C:\Oracle\oradata\inst\control01.ctl','C:\Oracle\oradata\inst\control02.ctl','C:\Oracle\oradata\inst\control03.ctl'
    *.core_dump_dest='C:\Oracle\admin\inst\cdump'
    *.db_block_size=8192
    *.db_create_file_dest='C:\Oracle\oradata\inst'
    *.db_create_online_log_dest_1='C:\Oracle\inst'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_flashback_retention_target=1440
    *.db_name='inst'
    *.db_recovery_file_dest='C:\Oracle\oradata'
    *.db_recovery_file_dest_size=53687091200
    *.job_queue_processes=10
    inst.log_archive_dest_1='LOCATION=C:\Oracle\oradata'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='inst_%t_%s_%r.arc'
    *.max_dump_file_size='200000'
    *.open_cursors=300
    *.parallel_max_servers=20
    *.pga_aggregate_target=824180736
    *.processes=550
    *.remote_login_passwordfile='EXCLUSIVE'
    *.resource_limit=TRUE
    *.session_max_open_files=20
    *.sessions=480
    *.sga_target=1610612736
    inst.thread=1
    *.undo_management='AUTO'
    inst.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='C:\Oracle\admin\inst\udump'
    *2. shutdown the database, startup in nomount and restore controlfile (with the error when trying to restore controlfile) :*
    RMAN> shutdown immediate;
    Oracle instance shut down
    RMAN> startup nomount pfile='C:\Oracle\init\initInst.ora';
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 1610612736 bytes
    Fixed Size 1305856 bytes
    Variable Size 369099520 bytes
    Database Buffers 1233125376 bytes
    Redo Buffers 7081984 bytes
    RMAN> restore controlfile from 'C:\Oracle\ctl\inst_ctrl_c-2972284490-20120318-00';
    Starting restore at 04-MAY-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=596 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/04/2012 14:20:12
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Thank you for your help.
    Max

  • DPM is Only Allowing Express Full Backups For a Database Set to Full Recovery Model

    I have just transitioned my SQL backups from a server running SCDPM 2012 SP1 to a different server running 2012 R2.  All backups are working as expected except for one.  The database in question is supposed to be backuped up iwht a daily express
    full and hourly incremental schedule.  Although the database is set to full recovery model, the new DPM server says that recovery points will be created for that database based on the express full backup schedule.  I checked the logs on the old DPM
    server and the transaction log backups were working just fine up until I stopped protection the data source.  The SQL server is 2008 R2 SP2.  Other databases on the same server that are set to full recovery model are working just fine.  If we
    switch the recovery model of a database that isn't protected by DPM and then start the wizard to add it to the protection group it properly sees the difference when we flip the recovery model back and forth.  We also tried switching the recovery model
    on the failing database from full to simple and then back again, but to no avail.  Both the SQL server and the DPM server have been rebooted.  We have successfully set up transaction log backups in a SQL maintenance plan as a test, so we know the
    database is really using the full recovery model.
    Is there anything that someone knows about that can trigger a false positive for recovery model to backup type mismatches?

    I was having this same problem and appear to have found a solution.  I wanted hourly recovery points for all my SQL databases.  I was getting hourly for some but not for others.  The others were only getting a recovery point for the Full Express
    backup.  I noted that some of the databases were in simple recovery mode so I changed them to full recovery mode but that did not solve my problem.  I was still not getting the hourly recovery points.
    I found an article that seemed to indicate that SCDPM did not recognize any change in the recovery model once protection had started.  My database was in simple recovery mode when I added it (auto) to protection so even though I changed it to full recovery
    mode SCDPM continued to treat it as simple. 
    I tested this by 1) verify my db is set to full recovery, 2) back it up and restore it with a new name, 3) allow SCDPM to automatically add it to protection over night, 4) verify the next day I am getting hourly recovery points on the copy of the db. 
    It worked.  The original db was still only getting express full recovery points and the copy was getting hourly.  I suppose that if I don't want to restore a production db with an alternate name I will have to remove the db from protection, verify
    that it is set to full, and then add it back to protection.   I have not tested this yet.
    This is the article I read: 
    Article I read

  • Speeding up full backup of Replicate database ASE 15.5

    Greetings all
    I need to speed up replicate database backup.
    ASE version 15.5
    Adaptive Server Enterprise/15.5/EBF 20633 SMP ESD#5.2/P/RS6000/AIX 5.3/asear155/2602/64-bit/FBO/Sun Dec  9 11:59:29 2012
    Backup Server/15.5/EBF 20633 ESD#5.2/P/RS6000/AIX 5.3/asear155/3350/32-bit/OPT/Sun Dec  9 08:34:37 2012
    RS version
    Replication Server/15.7.1/EBF 21656 SP110 rs1571sp110/RS6000/AIX 5.3/1/OPT64/Wed Sep 11 12:46:38 2013
    Primary database is 1.9 TB about 85% occupied
    Replicate database is same size but used about 32%  (mostly dbo tables are replicated)
    As noted above backup sever is 32 bit on AIX.
    SIMILARITIES
    Both servers use SAN with locally mounted folder for backup files/stripes.
    Databases are on  'raw' devices for data and log
    Both backup servers have the similar RUN files with following
    -N25 \
    -C20 \
    -M/sybase/15/ASE-15_0/bin/sybmultbuf \
    -m2000 \
    Number of stripes are 20 for both primary and replicate databases.
    DIFFERENCES
    Replicate has less memory and less number of engines.
    Devices on primary are mostly 32 GB and those on replicate are mostly 128 GB
    OBSERVATIONS
    Full Back up times on primary consistently about 1 hour.
    Full Back up times on replicate are consistently double that (120 to 130 minutes).
    Full Backup with suspended  replication or with minimal activity does not reduce the run times much.
    What do I need to capture to pinpoint cause of the slow backup on replicate side ?
    Thanks in advance
    Avinash

    Mark
    Thanks for the inputs.
    We use compression level 2 on both primary and replicate.
    This was tried out before upgrade to 15.5 and seems good enough.
    BTW on a different server I also tried new compression levels 100 and 101.
    for database of same size and did not get substantial reduction in run times.
    Stripe sizes increased from 23 GB to 30-33 GB.
    As far as I have noted Replicate side is not starved for CPU.
    sp_sysmon outputs during the backup period do not show high CPU usage.
    Wll it be accurate to to say that like a huge report query,  backup activity also churns the caches ?
    (i.e. each allocated/used page if not found in the cache is brought in cache by a physical read )
    Avinash

Maybe you are looking for

  • Spinning Ball in IMovie HD 6

    NEED HELP: iMovie HD 6, spinning ball locks my system up. I'm using iMac G5 with 2 GB of ram and 250 GB on hard drive and latest OSX. I've read and tried all of the advice on the user forum, and spoken too many times to Apple tech without any success

  • Apple logo wont go away

    My phone wont turn on/off or connect to itunes.  The apple logo keeps coming on and fading off.  Ever since I upgraded to the new software.. i have been having problems with the phone. 

  • How to change the screen order depending on a answer to a question?

    Hi All I am new to this forum and OPA.... I am using OPM 10.1 and created few screens and need to show particular screens only if some attributes from the earlier screen is set to true. For example: I got 4 screens <li>Basic details <li>Marraige deta

  • Fcpx 10.1.4 tutorials

    I just bought Final Cut X 10.1.4 Iḿ a newbie when it comes to Final Cut X. I went from Premiere to final cut x. Do apple have some tutorials in App Store for 10.1.4? or do you have some good links to share with me? Any ideas like lynda.com? I know th

  • TS3274 Can't get the camera on my iPad mini to open...all updates have been updated

    I have never had any problems with my mini...I can't open up the camera to take photos? Please help???