RESTORE BACKUP IN ANOTHER DATABASE

Hi,
I used RMAN to make a full backup of the a database production. Now, I need recovery this same backup in another database from test. It is in another machine. How can I do it?
My work so far:
- I copy de backups files to another machine, with another database which was installed a same version of the Oracle Database 10g.
- I put the test database to run in archivelog mode
And now?
Sorry my english.
Thanks
Message was edited by:
user523458

Hi,
Since 2 weeks ago, I´m trying clone a production database into a test database.
I´m search, search so much and I did not arrive the place some. I write and execute the following script:
==========================================================================
RMAN> run {
2> SET NEWNAME FOR DATAFILE 1 TO '/u02/oradata/oralab/system01.dbf';
3> SET NEWNAME FOR DATAFILE 2 TO '/u02/oradata/oralab/undotbs01.dbf';
4> SET NEWNAME FOR DATAFILE 3 TO '/u02/oradata/oralab/sysaux01.dbf';
5> SET NEWNAME FOR DATAFILE 4 TO '/u02/oradata/oralab/users01.dbf';
6> SET NEWNAME FOR DATAFILE 5 TO '/u02/oradata/oralab/integracao.dbf';
7> SET NEWNAME FOR DATAFILE 6 TO '/u02/oradata/oralab/legis_data.dbf';
8> SET NEWNAME FOR DATAFILE 7 TO '/u02/oradata/oralab/NOVA_INTERNET';
9> SET NEWNAME FOR DATAFILE 8 TO '/u02/oradata/oralab/legis_text.dbf';
10> SET NEWNAME FOR DATAFILE 9 TO '/u02/oradata/oralab/log01.dbf';
11> SET NEWNAME FOR DATAFILE 10 TO '/u02/oradata/oralab/tecwin_web.dbf';
SQL 'ALTER SYSTEM ARCHIVE LOG CURRENT';
12> 13> 14> 15> DUPLICATE TARGET DATABASE TO ORALAB
16> PFILE=/u01/app/oracle/product/10.1.0/Db_1/dbs/initoralab.ora
17> LOGFILE
18> GROUP 1 ('/u02/oradata/oralab/redo01.log','/u02/oradata/oralab/redo01b.log') SIZE 10M REUSE,
19> GROUP 2 ('/u02/oradata/oralab/redo02.log','/u02/oradata/oralab/redo02b.log') SIZE 10M REUSE,
20> GROUP 3 ('/u02/oradata/oralab/redo03.log','/u02/oradata/oralab/redo03b.log') SIZE 10M REUSE,
21> GROUP 4 ('/u02/oradata/oralab/redo04.log','/u02/oradata/oralab/redo04b.log') SIZE 10M REUSE,
22> GROUP 5 ('/u02/oradata/oralab/redo05.log','/u02/oradata/oralab/redo05b.log') SIZE 10M REUSE;
23> }
EXIT
==========================================================================
And I obtained the following result :
==========================================================================
executing command: SET NEWNAME
using target database controlfile instead of recovery catalog
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
sql statement: ALTER SYSTEM ARCHIVE LOG CURRENT
Starting Duplicate Db at 07-AUG-06
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=160 devtype=DISK
contents of Memory Script:
set until scn 213934104;
set newname for datafile 1 to
"/u02/oradata/oralab/system01.dbf";
set newname for datafile 2 to
"/u02/oradata/oralab/undotbs01.dbf";
set newname for datafile 3 to
"/u02/oradata/oralab/sysaux01.dbf";
set newname for datafile 4 to
"/u02/oradata/oralab/users01.dbf";
set newname for datafile 5 to
"/u02/oradata/oralab/integracao.dbf";
set newname for datafile 6 to
"/u02/oradata/oralab/legis_data.dbf";
set newname for datafile 7 to
"/u02/oradata/oralab/NOVA_INTERNET";
set newname for datafile 8 to
"/u02/oradata/oralab/legis_text.dbf";
set newname for datafile 9 to
"/u02/oradata/oralab/log01.dbf";
set newname for datafile 10 to
"/u02/oradata/oralab/tecwin_web.dbf";
restore
check readonly
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 07-AUG-06
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to /u02/oradata/oralab/system01.dbf
restoring datafile 00002 to /u02/oradata/oralab/undotbs01.dbf
restoring datafile 00003 to /u02/oradata/oralab/sysaux01.dbf
restoring datafile 00004 to /u02/oradata/oralab/users01.dbf
restoring datafile 00005 to /u02/oradata/oralab/integracao.dbf
restoring datafile 00006 to /u02/oradata/oralab/legis_data.dbf
restoring datafile 00007 to /u02/oradata/oralab/NOVA_INTERNET
restoring datafile 00008 to /u02/oradata/oralab/legis_text.dbf
restoring datafile 00009 to /u02/oradata/oralab/log01.dbf
restoring datafile 00010 to /u02/oradata/oralab/tecwin_web.dbf
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/u03/admin/integra/flash_recovery_area/INTEGRA/backupset/2006_08_07/o1_mf_nnndf_TAG20060807T103544_2fg5w27d_.bkp tag=TAG20060807T103544
restore not complete
failover to previous backup
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/07/2006 14:36:15
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN>
Recovery Manager complete.
==========================================================================
But the Backuset is OK, look:
==========================================================================
RMAN> list backupset of database;
using target database controlfile instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
264 Full 24G DISK 01:33:39 07-AUG-06
BP Key: 264 Status: AVAILABLE Compressed: NO Tag: TAG20060807T103544
Piece Name: /u03/admin/integra/flash_recovery_area/INTEGRA/backupset/2006_08_07/o1_mf_nnndf_TAG20060807T103544_2fg5w27d_.bkp
List of Datafiles in backup set 264
File LV Type Ckp SCN Ckp Time Name
1 Full 213646558 07-AUG-06 /u03/integra/system01.dbf
2 Full 213646558 07-AUG-06 /u03/integra/undotbs01.dbf
3 Full 213646558 07-AUG-06 /u03/integra/sysaux01.dbf
4 Full 213646558 07-AUG-06 /u03/integra/users01.dbf
5 Full 213646558 07-AUG-06 /u03/integra/integracao.dbf
6 Full 213646558 07-AUG-06 /u03/integra/legis_data.dbf
7 Full 213646558 07-AUG-06 /u03/integra/NOVA_INTERNET
8 Full 213646558 07-AUG-06 /u03/integra/legis_text.dbf
9 Full 213646558 07-AUG-06 /u03/integra/log01.dbf
10 Full 213646558 07-AUG-06 /u03/integra/tecwin_web.dbf
=========================================================================
I create the dir "/u03/admin/integra/flash_recovery_area" in the AUXILIARY database
and mount - with NFS - where the backupset were in the PRODUCTION database.
1 - The share it´s work fine.
2 - The RMAN backup it´s work fine.
3 - The restore to another database "IN DIFERENT MACHINE" dont´s work.
I am certain of that the file of backupset exists.
Somebody can help me? Why this script don´t work?
PS.: Sorry my English. I´m practising
Thanks
Message was edited by:
user523458
Message was edited by:
user523458
Message was edited by:
user523458

Similar Messages

  • Can anyone help me with the commands to import and restore  backup from  another administrative server

    Dear all.
                         Can anyone help me with the commands to import and restore  backup from  another administrative server

    I tried, even with code tags it looks the same since the 2500 character limit is exceeded.
    Please post just the relevant parts inside tags as mentioned, and choose a descriptive subject line.
    I'm locking this thread.
    Thomas

  • How to restore RMAN hot backup to another database on another server?

    I want to know how to restore RMAN hot backup from production server to another database on a testing server.
    The hot backup is from a database named PROD on the production server
    The database to be restored with the hot backup is TEST on the testing server. There is already a PROD database on the testing server and this PROD database must be kept.
    I have read some threads about changing initTEST.ora to PROD to restore such backup but (I think) will not work in my case since I already have a PROD database on the testing server.
    The version is 11gR2 on Linux but the compatible parameter is set to 10.2.0.1.0.
    Thanks for any help.

    Hi,
    Since you are on 11g, hope this helps you http://shivanandarao.wordpress.com/2012/04/28/duplicating-database-without-connecting-to-target-database-or-catalog-database-in-oracle-11g/
    881656     
    Handle:     881656
    Status Level:     Newbie
    Registered:     Aug 25, 2011
    Total Posts:     53
    Total Questions:      31 (31 unresolved)
    Looks like forum is of no help to you. To get better responses, consider closing your threads by providing appropriate points if you feel that they have been answered. Keep the forum clean !!

  • Restore backup in another machine

    Forgive me for the 'weak' English.
    Oracle 10gR2 in both machines.
    RH4E in both machines.
    I am trying to restore one backup in another machine.
    I copied the backup files to the new host, created one passwordfile, created a init.ora file and created the directories used in the init.ora.
    I set the ORACLE_SID for the SID of the original db and after to try to connect as sysdba I receive error ORA-01031: insufficient privileges.
    sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    But I also tried with other parameters (NONE, EXCLUSIVE) and nothing.
    I have one another instance running in this machine (where I want restore backup).
    export oracle_sid=my_sid
    sqlplus /nolog
    SQL> conn /as sysdba
    ORA-01031: insufficient privileges
    Somebody can help me?

    sqlnet.ora:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)Assuming your OS user (normally oracle) is member of dba group, try removing (or commenting) that line.

  • Can I restore backup from another mac with time machine?

    I would like to restore files from a TM backup from another Mac - is this possible? Thanks.

    I'm not sure I know how to help. I use OS X Server's Time Machine services from a Mac Mini to do my back ups to a drive connected to that server. I have the same user account on one MBP Retina that does not do back ups as another MBP Retina that DOES back ups. However, I can't even open the sparse bundle from the one that doesn't do back ups of the one that does (if that makes sense).
    You might try and see if this link helps. This guy was the TM guru around here. He might have addressed a solution to what you're trying to do.

  • 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

  • Restoring backup of standby database

    Hi,
    I have an issue logging into my database as sysdba. I'm getting the error ORA-01031: Insufficient priveleges. Here are the facts surrounding the issue:
    1. I have a backup (not a clone) of my standby database.
    2. I am restoring this backup to a new server I just built.
    3. The O/S version and directory structure is exactly the same as my source.
    4. I've restored my backup to my new server. When I set the DB environment variable and then try to logon with sqlplus '/ as sysdba', I get ORA-01031.
    Here's what I've already tried:
    1. I've verified my SID and ORACLE_HOME are being set properly.
    2. TWO_TASK is not set.
    3. I have confirmed $ORACLE_HOME/rdbms/lib/config.c is correct.
    4. I've performed all the checks on Metalink Note 69642.1.
    I'm completely stumped at this time. I even rebuilt the whole thing from scratch just to ensure that I wasn't missing something. The only thing I can think of is that this is a standby database and it needs to be 'failed over'. However, I would still need to logon as sysdba for that so I'm still stuck.
    Can anyone shed some light on what else I can check? My DB version is 10.2.0.4. running RHEL 4 Update 7. I'm also running EBS 11.5.10.2.
    Thanks.
    Aliyah.

    Problem has been resolved. It turned out that I overlooked my config.c file. In there, my oracle user was not set to the dba group. So I had to change it, and relink the link. All is well now. Thanks.

  • Trying to restore backup from another user ID to new phone and id?

    My back up did not totally transfer pictures, contacts from one user id to another. 

    Not sure what you are asking.  Are you saying you were able to restore to the iCloud backup but not all the data was restored?

  • Restoring backup to another user on another computer

    The bad news, my trusty PowerBookG4 was stolen today. It had many years of work and projects for a PhD that I'm working on.
    The good news, I've got time capsule and used it.
    I also have a Mac mini that the family shares. We all have our own user accounts on it but I rarely used it since I had the laptop. I want to restore my backup from my G4 backup to this Mac mini, but only on MY account and not mess with the other accounts. Can this be done?
    When Time machine does the backup, does it back up the whole computer or just the logged in account?
    They don't have the same applications on each computer so will those be replaced too?
    I didn't have the laptop set to require a login at startup. It was at home so I didn't think I needed to but they broke in and ransacked the place. I guess they will have access to all the emails that were local but I've changed the passwords on all accounts so that they won't get any more.
    Thanks for any help and advice.

    Ryner99 wrote:
    The bad news, my trusty PowerBookG4 was stolen today. It had many years of work and projects for a PhD that I'm working on.
    The good news, I've got time capsule and used it.
    I also have a Mac mini that the family shares. We all have our own user accounts on it but I rarely used it since I had the laptop. I want to restore my backup from my G4 backup to this Mac mini, but only on MY account and not mess with the other accounts. Can this be done?
    yes. use Migration Assistant (it's in /Applications/Utilities).
    When Time machine does the backup, does it back up the whole computer or just the logged in account?
    the whole computer.
    They don't have the same applications on each computer so will those be replaced too?
    Migration Assistant will give you an option whether or not to migrate Applications. I wouldn't migrate them.
    I didn't have the laptop set to require a login at startup. It was at home so I didn't think I needed to but they broke in and ransacked the place. I guess they will have access to all the emails that were local but I've changed the passwords on all accounts so that they won't get any more.
    Thanks for any help and advice.
    Message was edited by: V.K.
    Message was edited by: V.K.

  • Restore RMAN from different Database Rman backup

    Hi Everybody
    I am practicing Rman so I have one query that how to restore rman backup from another database.
    For Example :
    1. I have Rman backup of DB1 with level 0 and level 1 cumulative database plus archievelog
    2. I need to import or restore Rman backup of DB1 to another database DB2.
    What is the procedure for doing the above queries. Please anyone one help me out.
    I have using oracle 10g r2 running in windows server 2003.
    Thanks in advance.

    These are the steps ; you need to write the appropiate commands for each step: Hope it helps!
    1) Take appropriate RMAN backup of the database db1. Note that you should turn on the CONTROLFILE AUTOBACKUP configuration so that we have the controlfile backed up after the database backup. When we restore the controlfile on new host from this autobackup piece, it will have the information of the latest backup.
    2) Create a PFILE for the destination database db2 using the database db1
    3) Move the backup pieces and the modified INIT.ORA file to the new host. Starting from 10g it is NO longer compulsory to copy the RMAN backup pieces to exactly the same location on the new host as the production location.
    4) Use the pfile created above to STARTUP NOMOUNT the database on the new host
    5) Now invoke RMAN and restore the controlfile specifying the location where the controlfile autobackup piece is restored on this new server. You can mount the database once the controlfile is restored successfully.
    6) You can skip this step if you have restored the RMAN backup pieces to exactly the same location they were backed up on database db1. If this is not the case then you need to catalog the RMAN backup pieces to make RMAN aware of thier new location on the new host. Note that CATALOG BACKUPPIECE command is available only starting from 10g.
    7) Having determined the point up to which media recovery should run, start the restore/recovery using for example:
    RMAN> run {
    2> set until sequence 59 thread 1;
    3> set newname for datafile 1 to '/new_location/system01.dbf';
    4> set newname for datafile 2 to '/new_location/undotbs01.dbf';
    5> set newname for datafile 3 to '/new_location/sysaux01.dbf';
    6> set newname for datafile 4 to '/new_location/users01.dbf';
    7> restore database;
    8> switch datafile all;
    9> recover database;
    10> }

  • Can I plug in (restore) an RMAN tablespace backup into another DB ?

    11.2.0.3/AIX 6.1
    We accidently dropped a development DB without taking the latest expdp backup of an important schema. All the objects on this schema belonged to only one tablespace and we have the RMAN backup of that tablespace. Is there anyway we could recreate that schema by restoring the tablespace backup into another database ?

    Yes.
    Use the TRANSPORT TABLESPACE feature/method :
    http://oracle.su/docs/11g/backup.112/e10643/rcmsynta2021.htm
    Also check out sys.dbms_tts.transport_set_check
    RMAN> transport tablespace emp_data, emp_data2
               tablespace destination '/u01/app/oracle/oradata'
               auxiliary destination '/u04/app/oracle/oradata';If you need to check your endian format use this query :
    SELECT
      PLATFORM_NAME,
      ENDIAN_FORMAT
    FROM
      V$TRANSPORTABLE_PLATFORM;http://www.fadalti.com/oracle/database/how_to_transportable_tablespaces.htm
    http://husnusensoy.wordpress.com/2008/07/12/migrating-data-using-transportable-tablespacetts/
    Best Regards
    mseberg

  • Import data backup into another DB instance

    Hello all.
    I need to import a Data Backup into Another Database instance. MaxDb version 7.3.
    On higher versions of MaxDb I performed this operation without any problems (http://help.sap.com/erp2005_ehp_04/helpdata/EN/43/d5ebc2c9ed3ab3e10000000a422035/frameset.htm).
    For this version of MaxDB I have such problem:
    the commands don't coincide with help description, I define backup template, transfer DB instance to admin state, open utility session and try to srart recovery (there is no command db_activate RECOVER <template>)
    dbmcli on Q46>util_connect
    OK
    dbmcli on Q46>recover_start DEMO
    ERR
    -24988,ERR_SQL: sql error
    -903,Message not available,blockcount mismatch
    What I can do? How can I start recover from data backup from another DB on this version of MaxDB?

    I have tried to perform backup of original system and recovery to another database one more time.
    There is the another error:
    dbmcli on Q46>recover_start DemoD46_recover
    ERR
    -24988,ERR_SQL: sql error
    -3014,Invalid end of SQL statement

  • Backup/Restore for my demo database

    Howdy all. I am running Oracle 10g Standard Edition on Windows 2K Server. I have the following situation ...
    I would like to make a standard demo database for my company. This database would be put on several machines and used by sales people to demo our software to possible customers. I need to be able to restore this database on a machine with Oracle 10g installed and then run our software on it.
    I can make the database and run our software on it just fine on my machine. I am, however running into problems when trying to learn how Oracle and RMAN work with backups and restoring those backups. I am coming from the MSSQL2K environment where backup/restore is fairly simple and straightforward.
    Will somebody please give me a basic idea of what I need to do in order to take the database on my machine and back it up and then restore it on another machine. I don't want to have the restore depend on a given file/directory structure. Our software depends on two tablespaces in the Oracle database. So, if it is easier to somehow backup the two tablespaces and restore them than it is to backup the entire database and restore it - then that is great. I will do it that way.
    I am basically looking for the simplest approach for restoring this demo database wherever I want to quickly. Any help would be greatly appreciated.
    wally

    Jeffrey, here's what I use to do this, I have a production database that on occassion I need to make a copy of to perform some testing on, so I just use this to create an "auxiliary" database using the RMAN backups from the production database. I thought in 10g there was a database clone function, I'll have to look that up and get back to you, anyway, here's the instructions I use.
    Target Database = RMAN Target (Source database to be copied.)
    Auxiliary Database = RMAN Auxiliary (Duplicated database end result)
    1. Copy the target database’s init.ora file to the auxiliary database’s location.
    2. Modify disk locations for control files, archive logs and dump dests in init.ora if required
    3. Create locations for data files, dump dests, control files and log files
    4. Copy RMAN backup files and archive logs to same location on auxiliary DB server as they are on target DB server
    5. Create Oracle Service using ORADIM utility
    6. Start instance in nomount
    7. Create listener.ora entry on auxiliary server
    8. Create tnsnames.ora entry on target server
    9. Connect to rman catalog, target and auxiliary from the target server:
         RMAN> connect catalog rman/<password>@<catalog db>
         RMAN> connect target sys/<password>@<target db>
         RMAN> connect auxiliary sys/<password>@<auxiliary db>
    10. Run the following (modify the sequence count and datafile renames as required.)
    run{
    allocate auxiliary channel d1 type disk;
    set newname for datafile 1 to 'e:\ORACLE\ORADATA\MTSD\SYSTEM01.DBF';
    set newname for datafile 2 to 'e:\ORACLE\ORADATA\MTSD\RBS01.DBF';
    set newname for datafile 3 to 'e:\ORACLE\ORADATA\MTSD\USERS01.DBF';
    set newname for datafile 4 to 'e:\ORACLE\ORADATA\MTSD\TEMP01.DBF';
    set newname for datafile 5 to 'e:\ORACLE\ORADATA\MTSD\TOOLS01.DBF';
    set newname for datafile 6 to 'e:\ORACLE\ORADATA\MTSD\INDX01.DBF';
    set newname for datafile 7 to 'e:\ORACLE\ORADATA\MTSD\SMDBDATA.DBF';
    set newname for datafile 8 to 'e:\ORACLE\ORADATA\MTSD\SMDBIDX.DBF';
    set newname for datafile 9 to 'e:\ORACLE\ORADATA\MTSD\SMDBTEMP.DBF';
    set newname for datafile 10 to 'e:\ORACLE\ORADATA\MTSD\AUDITDATA.ORA';
    set newname for datafile 11 to 'e:\ORACLE\ORADATA\MTSD\AUDITAR.ORA';
    duplicate target database to mtsd
    logfile
    'e:\oracle\oradata\mtsd\redo01.log' size 10M,
    'e:\oracle\oradata\mtsd\redo02.log' size 10M,
    'e:\oracle\oradata\mtsd\redo03.log' size 10M,
    'e:\oracle\oradata\mtsd\redo04.log' size 10M;}

  • Can I restore another database's datafile to this database?

    I have 2 database(both of them are same version Oracle10g 10.2.0.1) db10g and sdb10g. Now I lose the read-only datafile '/u01/app/oracle/oradata/db10g/example01.dbf' on the database db10g and no any backup of this file. I want to copy the datafile '/u01/app/oracle/oradata/sdb10g/example01.dbf' (another database sdb10g's datafile) to the corresponding place of database db10g and perform a recovery. Is it possible?
    Can I restore another database's datafile to this database?

    Hi,
    This will help you:
    - [How move tablespaces across platforms using Transportable Tablespaces with RMAN - Note 371556.1|https://metalink.oracle.com/metalink/plsql/f?p=130:14:616534565062684573::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,371556.1,1,1,1,helvetica]
    This link tell you how to do it step by step ;)
    Cheers,
    Francisco Munoz Alvarez
    http://www.oraclenz.com

  • Restore Lion Server Postgres database only from Time Machine Backup

    I just transferred our server from one box to another, and in the process, seem to have dumped our Postgres Caldav database, but not to a file, so it's gone.  I know have no calendars and no way to access them.  I do have a recent Time Machine backup of the server, but am not sure how to get my calendar data back so I can properly export it.  Honestly, I'm not that sure how to properly export it either once I have it back.  I'm afraid the previous postgres dump command I use will just do the same thing.  Anyone have experience in the matter?  Thanks!

    I was helping you out with this in a thread last week: https://discussions.apple.com/thread/3890595
    In that thread I pointed you to Charle Edge's blog at Krypted where he goes into detail how to backup and restore your iCal database. I also told you this in my instructions:
    These instructions assume that you have a backup of your caldav database sitting on your desktop, and it's called 'caldav.sql'.
    So you we're supposed to make a backup of your database as the first thing that you do. dropdb wipes out your database completely, it doesn't restore it. You were supposed to make a backup of it first (instructions for this were at the link I gave you to Krypted).
    Did you make a full backup of your server before you ran this command?

Maybe you are looking for