Online DB2 database Copy via backup/restore

Hi Guru's
I am new in the world of DB2 (I am always working with Oracle)
I have to perform an online database copy of our SAP which is running on DB2, but I do not want to use the SAPinst method
I just want to perform it through the backup/restore method as I always do with oracle databases
Which procedure do I have to follow on my source and target SIDs
Regards
Richard

Hi Richard,
Follow the below step db2 nackup restore activity.
1). Perform full offline or online backup of source system
2). Go to cd /sapmnt/SSID/exe and run the below script
brdb6brt -bm RETRIEVE -es –replace SourceSID=TargetSID,db2SourceSID=db2TargetSID,/db2/SourceSID=/db2/TargetSID
3). Above Generate the script copy the Target System.
4). Offline PRD (Target System) Backup Images copy to Source Path (Any One Path)
5). Stop SAP System only DB2 must be Started.
6). Start the db2 backup redirect restored in Quality System
7). before run the script below activity must be finished.
Make Changes to the restore script
Go to script path
1). Replace Source SID (XXX) with Target SID (XXX)
2). Change the backup location
3). User (source db2sid) USING (Source db2sid Password)
             USER db2xxx USING XXX(Password)
8). Restoring Database
     Log in db2sid (db2sid) User
Go to backup & script Path
9). Run the below Script
db2 -tvf <script.scr> for exp. db2 -tvf  xxx_NODE0000.scr
After successfully restore backup below command run
10). First Check Roll Forward Status
Open DB with the below command
db2 rollforward db <TargetSID> query status – check status of DB
db2 rollforward db <TargetSID> complete
11). Once the copy is complete we can check below parameter and make corrections as per your preprocessing
Db2 list tablespaces show detail (To check tablespaces)
parameter automatic storage & re-sized YES
Check the Archive log (LOGARCHMATH1) path
Log in db2sid & run the below command for change the db2 LOGARCHMATH1 Parameter value.
After successfully change the parameter restart the db2 database
12). Perform below step before the Start SAP System
13). Create SAP connects user using
PATH :- /usr/sap/SID/SYS/global
scdb6up create <connect user password> <sidadm password>
above command will update entry in /sapmnt/SID/global/dscdb6.conf
Regards,

Similar Messages

  • System Copy/ Oracle Backup/Restore as part of migrating from 32 to 64-bit

    Source system (I386): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000, Oracle 10.2.0.4, non-unicode
    Target system (x86-64/AMD64): R3E47 Ext Set 2.00 SAP_BASIS 620 Kernel 640 Windows 2000 Oracle 10.2.0.4, non-unicode
    Am using method System Copy/ Oracle Backup/Restore to migrate from 32 to 64 bit (HOM System Copy).
    Actions on source system:
    a) Upgrade from 9.2.0.7 to Oracle 10.2.0.4
    b) Used ora_br_copy.bat to generate CONTROL.SQL and init<sid>.ora
    c) Switched logfiles
    d) Performed offline backup
    Actions on target system:
    a) Installed Oracle 10.2.0.1 and patched it to 10.2.0.4
    b) Used CD 51033746 "6.20/6.40 based products Installation Master (Edition May 2008)" to install the CI
    c) Started installation of the DB instance selecting System Copy/ Oracle Backup/Restore (same <SID> for source and target systems)
    Relevant input parameters used:
    Database schema: SAPR3
    Database character set: US7ASCII
    d) When SAPINST stopped to allow for restoring of datafiles, logs and init<sid.ora>:
    - copied datafiles and logs to the usual place
    - copied CONTROL.SQL (edited to include utilrp.sql and utlrp.sql for the migration from 32 to 64) to the DB-instance intallation . directory.
    - copied generated init<SID>.ora to the <ORACLE_HOME>\database
    e) Resumed SAPINST.
    David Byrne in a previous post suggested: "check your oracle alert file in case there are errors there you may need to update the word size for the 64bit install. Errors like this in the oracle alert file would suggest that.,
    ORA-12012
    ORA-06544: PL/SQL: internal error, arguments: [ORA-06544: PL/SQL: internal error, arguments: 56319], [, ], [, ], [, ], [
    ORA-06553"
    Well, I am getting ORA-06553: PLS-801: internal error [56319] but then my edited CONTROL.SQL (which is mainly a CREATE CONTROLFILE as it would be obtained with a ...BACKUP CONTROLFILE TO TRACE) includes at the end this:
    shutdown immediate
    startup upgrade
    spool utlirp.log
    @?/rdbms/admin/utlirp.sql
    spool off
    Shutdown immediate
    Startup
    Spool utlrp.log
    @?/rdbms/admin/utlrp.sql
    Spool off
    exit
    which is supposed to do just that... (I think)
    Help, anyone?

    > Trying to cheer me up, are you?
    No
    > It is NOT free that reorganization! Quite expensive, actually, paid for in time! But you're right... the database needed a reorg anyway :-\
    True, not "free" - it takes time but the data will be nicely aligned then
    > And why would I have to reconfigure all those 10.2 features? Everything's either in the database or init<sid>.ora, ain't it? And my database is a pretty 10.2.0.4 with all those nice features already activated...
    No - not really auotmatically if you upgraded from 9.2 And "init<SID>.ora" is past, you nowadays use "spfile" If, of course, e. g. Automatic Undo was activated in 9.2 then it's there of course in 10.2 too.
    > One sticky point... I haven't really read the r3load procedure yet and I will before I import, but... I would say I don't have to do anything about the 32->64 bit, right? I mean, it should behave properly while reloading on 64-bit...
    The exported content is about 10 % of the size of the system, it's database and OS independent so yes, you can import it nicely on 32bit. Another tip: make sure you don't just use the default configurations for R3load, it will take a HUGE amount of time. Use the package splitter (builtin-in in sapinst) so you get a much higher parallelism when importing.
    Markus

  • Homogeneous Database copy without tape restoration

    Hi all,
    I have AIX 5.3 servers with Oracle as databse. I am supposed to do database copy on a new server from an already existing server. However there ios no tape connectivity to that server. But both the servers are on same SAN. How is it possible to do database copy. Both would be same OS and same Database. Please tell me what are the steps to be taken for database copy.
    Regards,
    Priya

    Hi,
    Do the following:
    1. Take Latest Offline/Online Oracle DB Backup of that Source System, from which you want to copy DB.
    2. Copy that Offline/Online Oracle DB Backup Fille and Backup log file (*.anf) of that Source System to the Target System, on its free available local disk space.
    3. Perform Homogeneous System Copy using Oracle DB Restore method:
         3.1 Restore Target Oracle DB using that Source Oracle DB with the help of BRRESTORE command.
         3.2 Backup Control Files from Source System and Change it according to the Target System directory structure before applying to to Target System.
         3.3 Perform Recovery using available Offline redo-log files (if you have restored Online Backup)
    All above mentioned steps are well described in this useful document "[Homogeneous System Copy using Online/Offline Database Backup|http://www.basisconsultant.com/component/remository/Sytem-Copy-Guides/Homogeneous-System-Copy-using-OnlineandOffline-Backup/]" with proper understanding. Download it with simple registration and Please read it carefully and follow the steps mentioned in that guide.
    Upon error, post your message.
    Regards,
    Bhavik G. Shroff

  • System copy via SAPINST (Export/Import)

    Hello!
    We are using SAP ERP EHP4 system on Windows with SAP MaxDB (Version: 7.7.07.09).
    We would like to copy this productive system to QAS system.
    Therefore we successfully run SAPINST (with running db and sap, because we cannot stop productive system) with option Export and have currently an valid export of productive system.
    After we read several sap notes (such as 1014782, 129352) we found that the system copy procedure Backup/Restore will be recomended.
    Questions
    1) Can we still copy productive system via export and import option with SAPINT?
    1a) Should/must the SAP Max DB instance be installed before runing SAPINT on the target server?
    1b)  Which SAP MaxDB version should be installed on the target server?
    Has some one experience with system copy of SAP systems with SPA MaxDB via Export/Import?
    It will be great to get some answers or recommendation.

    You're back with a new ID after using:
    Holger Thomasson
    Jgen Pfeiffer
    Thom Heinemann
    H. Lemke
    and now Tom Hermann.
    too bad it took me so long to find you!

  • Sapinst error backup/restore phase create controlfile

    Hello experts
    I am doing a homogeneous system copy using database specific tools backup/restore.Oracle 10.2.0.5, HP-UX, ECC 6.0
    Source = ZD1 and Target = ZD1 (Yes they are both same) Source was a fresh install with brand new Export data (SID = ZD1) and now we are replacing the database with a copy of our existing Dev system (also SID = ZD1)
    Restored the backup over target using OFFLINE backup. Have not run any "recover database ...." or "alter database open resetlogs" yet because sapinst is suppose to do this.
    My control script looks like this: filename = CONTROL.SQL
    STARTUP NOMOUNT
    CREATE CONTROLFILE REUSE SET DATABASE "ZD1" RESETLOGS ARCHIVELOG
        MAXLOGFILES 255
        MAXLOGMEMBERS 3
        MAXDATAFILES 254
        MAXINSTANCES 50
        MAXLOGHISTORY 23371
    LOGFILE
      GROUP 1 (
        '/oracle/ZD1/origlogA/log_g11m1.dbf',
    then all the data file paths (which I verified to be correct)
    ends with:
    '/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
      '/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
    CHARACTER SET UTF8
    Now here is the issue:
    1) When I manually run the CONTROL.SQL and then just do a alter database open resetlogs everything is fine. Database mounts and opens fine. However when I run the sapinst it tries to run the CONTROL.SQL again and messes up everything. I would like to skip this phase in sapinst and change ERROR to OK in keydb.xml file. Question is when should I do this ? Before starting sapinst so that it skips this or during the phase it stops and asks for backup/restore ?
    2) Instead creating files manually I also let sapinst do this. But it throws an error during control file creation. When I used the above CONTROL.SQL it says must use resetlogs to open database. Then I restored all over again and added the line alter database open resetlogs at the end of CONTROL.SQL
    '/oracle/ZD1/sapdata4/sr3_61/sr3.data61',
      '/oracle/ZD1/sapdata4/sr3_62/sr3.data62'
    CHARACTER SET UTF8
    ALTER DATABASE OPEN RESTLOGS;
    And then ran sapinst again from scratch and now it throws error file 1 needs media recovery.
    This is weird and I don't know why sapinst acting smart here and wont let me do it and when it does it by himself it messes up.
    Is my CONTROL.SQL scripts correct ? Whats the best approach here.
    Thank you

    Hello Nicholas
    Thank you. I have replaced the CONTROL>SQL in the installation directory itself. Its in /tmp/sapinst_instdir/ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS And yes it IS picking up the control.sql that I provided and not the default.
    DatabaseSAP
    Thank you. I have never commented  anything in keydb.xml before. But sounds like a good idea because if I can restore it myself I really want to skip this step. Should I just do it before start of sapinst  and what exact lines to comment ? Which keydb should I edit ? I found several but looks like ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml is the right one.
    root@zepsapa1 # find . -name keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB/log_20_Apr_2011_05_48_52/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/DB_backup/keydb.xml
    ./NW04S/LM/AS-JAVA/ADDIN/ORA/CENTRAL/SCS/keydb.xml
    ./NW04S/LM/PRC/keydb.xml
    ./NW04S/LM/UNINSTALL/AS/keydb.xml
    ./NW04S/LM/UNINSTALL/AS/log_05_Dec_2011_07_39_50/keydb.xml
    ./ERP/LM/USR/keydb.xml
    ./ERP/LM/USR/log_15_Dec_2011_15_43_02/keydb.xml
    ./ERP/LM/USR/log_14_Dec_2011_16_15_35/keydb.xml
    ./ERP/LM/PRC/keydb.xml
    ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/keydb.xml
    ./ERP/LM/COPY/ORA/SYSTEM/CENTRAL/AS/log_19_Dec_2011_08_48_00/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_12_41_11/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_16_Dec_2011_13_03_45/keydb.xml
    ./ERP/SYSTEM/ORA/CENTRAL/AS/log_18_Dec_2011_08_05_17/keydb.xml
    Also what exactly am I commenting here ? I see step RunControlScript is the one causing problems and I dont want it to create any control files. Please advise what exactly I need to comment and when. And what about changing the ERROR to OK ?
    <strval><![CDATA[]]>
            </strval>
          </fld>
        </row>
        <row>
          <fld name="STEPKEY">
            <strval><![CDATA[|NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBOBR|ind|ind|ind|ind|1|0|NW_OraOBR|ind|ind|ind|ind|4|0|RunControlScript]]>
            </strval>
          </fld>
          <fld name="STATUS">
            <strval><![CDATA[ERROR]]>
            </strval>
          </fld>
          <fld name="STOP_BEFORE">
            <strval><![CDATA[]]>
            </strval>
          </fld>
          <fld name="STOP_AFTER">
            <strval><![CDATA[]]>
            </strval>
    Thank you

  • Failed to Manually Seed the Mailbox Database Copy on Exchange 2013

    Hi,
    I tried to manually seed the mailbox database copy via exchange shell by run this command
    Update-MailboxDatabaseCopy –Identity “DB_name\Server” -sourceserver "Name Server" –DeleteExistingFiles.
    However, i got the error message whereas shown below.
    A parameter cannot be found that matches parameter name 'identity'.
        + CategoryInfo          : InvalidArgument: (:) [Update-MailboxDatabaseCopy], ParameterBindingException
        + FullyQualifiedErrorId : NamedParameterNotFound,Update-MailboxDatabaseCopy
        + PSComputerName        : XXXX.abc.XXX
    Any ideas?

    I hope database is in suspended state and not in failed state.
    Make sure EMS is running As Administrator.
    http://technet.microsoft.com/en-us/library/dd335201(v=exchg.150).aspx
    Cheers,
    Gulab Prasad,
    Technology Consultant
    Blog:
    www.exchangeranger.com 
    Twitter:   
    LinkedIn:   
    Check out CodeTwo’s tools for Exchange admins   
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    In the context of restoring a drive from a backup, i copied /etc/sudoers from my backup. Now it does not work due to the permissions not being correct (even though it was copied via sudo cp -rp)

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • New Oracle DBA - Need help with backup & restore procedure via RMAN

    Hello everyone,
    I've been a SQL Server DBA for 12 years now, but new to the Oracle space. My first assignment at work was to refresh our training environment with production. So with that said, I took a full backup of our production database via RMAN and backed up the Control File. I then copied both the Control File and full backup from our production environment to training. I followed the procedures listed in the URL below:
    http://www.dba-oracle.com/t_rman_clone+copy_database.htm
    I then connected to RMAN and executed a 'show all' which is as follows:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    The CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. Are these settings valid only when the database is mounted? How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
    Thank you,
    Pete

    The CONFIGURE CONTROLFILE AUTOBACKUP was set to ON but received a message that the database needed to be mounted, so, I mounted the database and made the changes, but when I shutdown the database and performed the startup nomount again, the settings were gone. These settings are persistent settings.So these information retain in control files.To reading information from control files database instance must be MOUNT or OPEN stage.Due to you have mount instance and try SHOW ALL command through RMAN.
    Are these settings valid only when the database is mounted? Not only MOUNT also OPEN stage.
    How can I successfully refresh this training environment with production data? I'm at a standstill here so any help would be very much appreciated.
    There are several ways like duplication.But you take full backup from production database using BACKUP DATABASE through rman.In this case you will get also AUTOBACKUP for controlfiles/spfiles.Then copy these backup files and all available archive logs to training server and perform below steps.
    1) You have set properly ORACLE_HOME and ORACLE_SID environment variable.After that first need restore spfile as
    rman target /
    startup force nomount;
    restore spfile from 'autobackup_location';
    startup force nomount;2) Now you have to restore controlfiie as
      rman>restore controlfile from  'autobackup_location';
    rman>alter database mount;
      3) Now need catalog(it means register) all backup files and archivelogs in new restored controlfile as
       rman>catalog start with 'backuplocation';
       4) Finally you can restore and recover your database as below
       rman>restore database;
    rman>recover database;
    rman>alter database open resetlogs;
       If you want restore database to new location then before executing RESTORE DATABASE command you can use SET NEWNAME FOR DATAFILE clause.Firstly refer backup recovery guide in online documentation.

  • DB2 Backup & Restore Method

    Hi Gurus,
    I have a source system which is ECC6 running on Windows Server 2008 & DB2 9.7 FP2 database. I want to build or copy the exact system to diffrent office. I have done a fulloffline backup on the server. The target system will be suselinux and same database which is DB9.7FP2.
    So i have install a ECC6 system on the target system with same System ID,Hostname as the sourse system. . I am not sure what to do next. Please guide me how to restore the database using the full offline backup that i done on the sourse system.
    Basically i am just doing a system copy but using the backup restore method.

    Hi,
    Assuming you're performing system copy by using db2 backup/restore method.
    If you would like to take a complete set of (online) backup image which you can restore, rollforward and bring the db into consistent state, you can use "INCLUDE LOGS" option of db2 backup command.
    The backup image would include the range of log files required to restore and roll forward this image to some consistent point in time with this option.
    On the other hand, you can specify a path to be searched for required logs during recovery. There's an option "OVERFLOW LOG PATH" for rollforward command.
    For this issue u will get more information for below link
    http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp
    REgards,
    K.Ramamoorthy

  • Homegneous System copy Specific DB method Oracle Backup/Restore Sapinst

    Hello colleagues,
    Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
    I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
    Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
    Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
    Regards

    Enrique José Marcos wrote:
    Hello colleagues,
    Following the documentation, I´ve one doubt about the above method, is it needed to install again the SCS instance when the system is installed in one host and we want just to refresh database.
    I mean, we want to refresh CRM quality system from Production system. It´s a ABAP+JAVA system, so i have to prepare a backup and export Central instance through sapinst in source system.
    Afterwards it´s needed to follow the three steps in sapinst, Install SCS instance, Install database instance and install central instance (database copy section) . Or as we´ve already installed our quality CRM system, it´s just enough with installing database instance and central instance (using backup/restore method and exported data from source system)
    Thanks a lot for this info because in the SAP guides it´s not clear from my point of view.
    Well i didnot get your question properly, but as per my understanding if you have only ABAP instance installed then you can go with the Database resoration method but as you said ABAP+JAVA instance both are there so in that case you need to build the export of complete system through Sapinst and then you cn perform the same export file to install the target system which will be your Quality.
    Another option is that just restore the database via database restoration method then try to restore the JAVA stack by file system method which is i think not supported by SAP if i am not wrong but it can be done i tired the same on XI system.
    Regards,
    Subhash

  • Copying or backup of a database

    Hello all,
    This may be a very simple question to answer. I am looking at getting a (copy) of our live database off our live server (Sql management studio 2005) and moving into a test server for testing. I want the live database to still be active , with just a copy
    of it on our other server. What is the best way to do this? Can I do this without taking the live database offline?

    Take a backup of the database , move the backup to test server and restore it there. You can either do the backup and restore via GUI or use transact-sql statements.
    https://msdn.microsoft.com/en-us/library/ms187048(v=sql.90).aspx
    http://www.sqlteam.com/article/backup-and-restore-in-sql-server-full-backups
    This will not effect your live database.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Question: DB2 V8.2.2 and speed of backups/restore with TSM

    Hello,
    our database is growing and our backups/restore takes longer and longer. We would like to now, if there is an existing IBM tool, with which we could exactly see where our bottleneck is. At the moment we are backing up with four sessions, a 1,7 terabyte database, we are using automatic buffer and parallelism, we have a four CPU (power 5, 1.9GHz) AIX server. The backup takes nine hours. We have identified five components which influense the backup time. CPU-Speed, SAN, Network, TSM and Sessions.
    Regards,
    Alexander

    Hello Alexander,
    just to give you my five cents.
    I would recommend too (like Markus Döhr): Test the whole infrastructure for optimizing backup performance.
    You have to keep in mind performance of SAN, Server (HBAs, bandwidth of system busses) and network. I would recommend for the network testing, a tool like netperf (originally from HP, but available for all SAP OSs - compiler necessary) to measure your network environment. You should figure out how much bandwidth one session could achieve. May be you should find out first which network buffer sizes TSM uses, to use the same buffers in the tests. For our environment it showed that we need 4 network sessions to utilize a 1GBit LAN completely. You should also keep in mind, that the system should have enough resources to handle the additional I/Os due to the backup without influencing the production to much.
    Instead of using big buffers like Eric recommends, I recommend to use the auto tuning of DB2 backup, which comes with one of the V8 Fixpaks (I think with V8.2 (FP7)). In our test it speeds up the backup a lot. Just run the backup with the command:
    db2 backup db SID online use tsm open 4 sessions
    DB2 will automatically tune the backup to achieve best possible performance.
    In our environment we run a 2.8TB Backup with a backup rate of around 600GB/h which consumes only 12,5% of the possible I/O bandwidth. We assume that this should be no problem even when few of our HBAs have problems (this happens not only in theory - already two times this year). We're using Legato Networker and running a 10GB ethernet exclusively for backup. We already saved the database within 2 hours 16 minutes; if necessary we could do even faster. I think the limit is at the moment is somewhere around 1.8TB/h, But this is neither necessary nor it makes sense (because this would have an impact on our production).
    Best regards
    Ralph Ganszky

  • Problem with restoring a database from cold backup

    All,
    I've got a 10.2.0.4 database that we perform a cold backup on every night with RMAN. On Sunday 2/21, we have level 0 backup. On Monday-Wednesday nights, we take a cold level 1. We also perform a controlfile auto backup each night.
    On a second server where I want to restore the database (same version of Oracle 10.2.0.4), I've copied the control file auto backups, the level 0 and the most recent level 1. I now want to restore. I use an RMAN script similar to the following to restore the control files:
    connect target /;
    set dbid 1973354860;
    # Restore the controlfile from the tag that auto backed up the controlfile at the end of the level 0
    run
    startup nomount;
    allocate channel c1 type disk;
    restore controlfile to '/u01/app/oracle/oradata/ORADB1/control01.ctl' from AUTOBACKUP;
    restore controlfile to '/u02/app/oracle/oradata/ORADB1/control02.ctl' from AUTOBACKUP;
    restore controlfile to '/u03/app/oracle/oradata/ORADB1/control03.ctl' from AUTOBACKUP;
    release channel c1;
    shutdown immediate;
    After the control files restore successfully, I perform some RMAN checks to ensure that all of the files I need for a recovery are there. The RMAN> list backup of database; command shows all of my backup savesets as AVAILABLE for the level0 and level1 backups.
    I then try a restore database command; and get the following errors:
    RMAN> run
    2> {
    3> allocate channel c1 type disk;
    4> allocate channel c2 type disk;
    5> allocate channel c3 type disk;
    6> allocate channel c4 type disk;
    7> restore database from tag='TAG20100221T200045';
    8> }
    using target database control file instead of recovery catalog
    allocated channel: c1
    channel c1: sid=74 devtype=DISK
    allocated channel: c2
    channel c2: sid=70 devtype=DISK
    allocated channel: c3
    channel c3: sid=166 devtype=DISK
    allocated channel: c4
    channel c4: sid=168 devtype=DISK
    Starting restore at 25-FEB-10
    released channel: c1
    released channel: c2
    released channel: c3
    released channel: c4
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/25/2010 13:33:19
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 44 found to restore
    RMAN-06023: no backup or copy of datafile 43 found to restore
    RMAN-06023: no backup or copy of datafile 42 found to restore
    RMAN-06023: no backup or copy of datafile 40 found to restore
    RMAN-06023: no backup or copy of datafile 39 found to restore
    RMAN-06023: no backup or copy of datafile 38 found to restore
    RMAN-06023: no backup or copy of datafile 37 found to restore
    RMAN-06023: no backup or copy of datafile 36 found to restore
    RMAN-06023: no backup or copy of datafile 35 found to restore
    RMAN-06023: no backup or copy of datafile 34 found to restore
    RMAN-06023: no backup or copy of datafile 33 found to restore
    RMAN-06023: no backup or copy of datafile 32 found to restore
    RMAN-06023: no backup or copy of datafile 31 found to restore
    RMAN-06023: no backup or copy of datafile 30 found to restore
    RMAN-06023: no backup or copy of datafile 29 found to restore
    RMAN-06023: no backup or copy of datafile 28 found to restore
    RMAN-06023: no backup or copy of datafile 27 found to restore
    RMAN-06023: no backup or copy of datafile 26 found to restore
    RMAN-06023: no backup or copy of datafile 25 found to restore
    RMAN-06023: no backup or copy of datafile 24 found to restore
    RMAN-06023: no backup or copy of datafile 23 found to restore
    RMAN-06023: no backup or copy of datafile 22 found to restore
    RMAN-06023: no backup or copy of datafile 21 found to restore
    RMAN-06023: no backup or copy of datafile 20 found to restore
    RMAN-06023: no backup or copy of datafile 19 found to restore
    RMAN-06023: no backup or copy of datafile 18 found to restore
    RMAN-06023: no backup or copy of datafile 17 found to restore
    RMAN-06023: no backup or copy of datafile 16 found to restore
    RMAN-06023: no backup or copy of datafile 15 found to restore
    RMAN-06023: no backup or copy of datafile 14 found to restore
    RMAN-06023: no backup or copy of datafile 13 found to restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to 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>
    But I know from the RMAN crosscheck and list backup commands that the savesets are available on disk. For example:
    RMAN> list backup of datafile 1;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4875 Incr 0 4.37G DISK 00:22:53 21-FEB-10
    BP Key: 4875 Status: AVAILABLE Compressed: YES Tag: TAG20100221T200045
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4929_piece_1_date_20100221_711578185
    List of Datafiles in backup set 4875
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 5086110241948 21-FEB-10 /u01/app/oracle/oradata/ORADB1/system01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4894 Incr 1 1.92G DISK 00:13:46 24-FEB-10
    BP Key: 4894 Status: AVAILABLE Compressed: YES Tag: TAG20100224T200037
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4949_piece_1_date_20100224_711836434
    List of Datafiles in backup set 4894
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 5086113791743 24-FEB-10 /u01/app/oracle/oradata/ORADB1/system01.dbf
    RMAN> list backup of datafile 44; (the first one in the list above)
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4872 Incr 0 7.15G DISK 00:35:17 21-FEB-10
    BP Key: 4872 Status: AVAILABLE Compressed: YES Tag: TAG20100221T200045
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4927_piece_1_date_20100221_711576046
    List of Datafiles in backup set 4872
    File LV Type Ckp SCN Ckp Time Name
    44 0 Incr 5086110241948 21-FEB-10 /u04/app/oracle/oradata/ORADB1/NETINSIGHT_INDEXES_03.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4893 Incr 1 4.06G DISK 00:26:52 24-FEB-10
    BP Key: 4893 Status: AVAILABLE Compressed: YES Tag: TAG20100224T200037
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4947_piece_1_date_20100224_711835238
    List of Datafiles in backup set 4893
    File LV Type Ckp SCN Ckp Time Name
    44 1 Incr 5086113791743 24-FEB-10 /u04/app/oracle/oradata/ORADB1/NETINSIGHT_INDEXES_03.dbf
    As you can see, the level 0 and level 1 backups are showing as available. To double check, I perform a crosscheck backup of database;
    RMAN> crosscheck backup of database;
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=74 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4927_piece_1_date_20100221_711576046 recid=4872 stamp=711576046
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4928_piece_1_date_20100221_711576046 recid=4873 stamp=711576046
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4930_piece_1_date_20100221_711578189 recid=4874 stamp=711578189
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4929_piece_1_date_20100221_711578185 recid=4875 stamp=711578186
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4932_piece_1_date_20100221_711579570 recid=4876 stamp=711579570
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4931_piece_1_date_20100221_711579392 recid=4877 stamp=711579393
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4934_piece_1_date_20100221_711580369 recid=4878 stamp=711580370
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4935_piece_1_date_20100221_711580535 recid=4879 stamp=711580535
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4933_piece_1_date_20100221_711580122 recid=4880 stamp=711580123
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4948_piece_1_date_20100224_711835237 recid=4892 stamp=711835238
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4947_piece_1_date_20100224_711835238 recid=4893 stamp=711835238
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4949_piece_1_date_20100224_711836434 recid=4894 stamp=711836436
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4950_piece_1_date_20100224_711836866 recid=4895 stamp=711836866
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4951_piece_1_date_20100224_711837267 recid=4896 stamp=711837268
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4952_piece_1_date_20100224_711837971 recid=4897 stamp=711837972
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4953_piece_1_date_20100224_711837989 recid=4898 stamp=711837989
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4955_piece_1_date_20100224_711838522 recid=4899 stamp=711838522
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4954_piece_1_date_20100224_711838520 recid=4900 stamp=711838521
    Crosschecked 18 objects
    RMAN>
    So I'm unclear as to why RMAN believes the backups of these files don't exist when I attempt to restore the database. Anyone have a clue?
    NOTE: I've also tried to restore spcifically with the tag= clause but I get the same results:
    RMAN> restore database from tag='TAG20100221T200045';
    Starting restore at 25-FEB-10
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/25/2010 13:41:04
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 44 found to restore
    RMAN-06023: no backup or copy of datafile 43 found to restore
    RMAN-06023: no backup or copy of datafile 42 found to restore
    RMAN-06023: no backup or copy of datafile 40 found to restore
    RMAN-06023: no backup or copy of datafile 39 found to restore
    RMAN-06023: no backup or copy of datafile 38 found to restore
    RMAN-06023: no backup or copy of datafile 37 found to restore
    RMAN-06023: no backup or copy of datafile 36 found to restore
    RMAN-06023: no backup or copy of datafile 35 found to restore
    RMAN-06023: no backup or copy of datafile 34 found to restore
    RMAN-06023: no backup or copy of datafile 33 found to restore
    RMAN-06023: no backup or copy of datafile 32 found to restore
    RMAN-06023: no backup or copy of datafile 31 found to restore
    RMAN-06023: no backup or copy of datafile 30 found to restore
    RMAN-06023: no backup or copy of datafile 29 found to restore
    RMAN-06023: no backup or copy of datafile 28 found to restore
    RMAN-06023: no backup or copy of datafile 27 found to restore
    RMAN-06023: no backup or copy of datafile 26 found to restore
    RMAN-06023: no backup or copy of datafile 25 found to restore
    RMAN-06023: no backup or copy of datafile 24 found to restore
    RMAN-06023: no backup or copy of datafile 23 found to restore
    RMAN-06023: no backup or copy of datafile 22 found to restore
    RMAN-06023: no backup or copy of datafile 21 found to restore
    RMAN-06023: no backup or copy of datafile 20 found to restore
    RMAN-06023: no backup or copy of datafile 19 found to restore
    RMAN-06023: no backup or copy of datafile 18 found to restore
    RMAN-06023: no backup or copy of datafile 17 found to restore
    RMAN-06023: no backup or copy of datafile 16 found to restore
    RMAN-06023: no backup or copy of datafile 15 found to restore
    RMAN-06023: no backup or copy of datafile 14 found to restore
    RMAN-06023: no backup or copy of datafile 13 found to restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to 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

    Just as a follow on to my last post, after the RMAN-06023 messages, I list backups of the three datafiles and as you can see RMAN thinks that they are available. If I exit RMAN and list them at the OS level, they are where RMAN things they should be:
    RMAN> restore database;
    Starting restore at 25-FEB-10
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 02/25/2010 16:17:39
    RMAN-06026: some targets not found - aborting 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 1 found to restore
    RMAN> list backup of datafile 4;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4880 Incr 0 1.36G DISK 00:08:57 21-FEB-10
    BP Key: 4880 Status: AVAILABLE Compressed: YES Tag: TAG20100221T200045
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4933_piece_1_date_20100221_711580122
    List of Datafiles in backup set 4880
    File LV Type Ckp SCN Ckp Time Name
    4 0 Incr 5086110241948 21-FEB-10 /u02/app/oracle/oradata/ORADB1/users01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4890 Incr 1 934.82M DISK 00:09:42 22-FEB-10
    BP Key: 4890 Status: AVAILABLE Compressed: YES Tag: TAG20100222T200047
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4943_piece_1_date_20100222_711664989
    List of Datafiles in backup set 4890
    File LV Type Ckp SCN Ckp Time Name
    4 1 Incr 5086111401249 22-FEB-10 /u02/app/oracle/oradata/ORADB1/users01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4898 Incr 1 947.57M DISK 00:08:49 24-FEB-10
    BP Key: 4898 Status: AVAILABLE Compressed: YES Tag: TAG20100224T200037
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4953_piece_1_date_20100224_711837989
    List of Datafiles in backup set 4898
    File LV Type Ckp SCN Ckp Time Name
    4 1 Incr 5086113791743 24-FEB-10 /u02/app/oracle/oradata/ORADB1/users01.dbf
    RMAN>
    RMAN> list backup of datafile 3;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4874 Incr 0 2.65G DISK 00:19:50 21-FEB-10
    BP Key: 4874 Status: AVAILABLE Compressed: YES Tag: TAG20100221T200045
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4930_piece_1_date_20100221_711578189
    List of Datafiles in backup set 4874
    File LV Type Ckp SCN Ckp Time Name
    3 0 Incr 5086110241948 21-FEB-10 /u02/app/oracle/oradata/ORADB1/sysaux01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4885 Incr 1 1.95G DISK 00:15:54 22-FEB-10
    BP Key: 4885 Status: AVAILABLE Compressed: YES Tag: TAG20100222T200047
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4940_piece_1_date_20100222_711663910
    List of Datafiles in backup set 4885
    File LV Type Ckp SCN Ckp Time Name
    3 1 Incr 5086111401249 22-FEB-10 /u02/app/oracle/oradata/ORADB1/sysaux01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4895 Incr 1 1.97G DISK 00:18:13 24-FEB-10
    BP Key: 4895 Status: AVAILABLE Compressed: YES Tag: TAG20100224T200037
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4950_piece_1_date_20100224_711836866
    List of Datafiles in backup set 4895
    File LV Type Ckp SCN Ckp Time Name
    3 1 Incr 5086113791743 24-FEB-10 /u02/app/oracle/oradata/ORADB1/sysaux01.dbf
    RMAN>
    RMAN>
    RMAN> list backup of datafile 1;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4875 Incr 0 4.37G DISK 00:22:53 21-FEB-10
    BP Key: 4875 Status: AVAILABLE Compressed: YES Tag: TAG20100221T200045
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level0_set_4929_piece_1_date_20100221_711578185
    List of Datafiles in backup set 4875
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 5086110241948 21-FEB-10 /u01/app/oracle/oradata/ORADB1/system01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4884 Incr 1 1.93G DISK 00:12:34 22-FEB-10
    BP Key: 4884 Status: AVAILABLE Compressed: YES Tag: TAG20100222T200047
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4939_piece_1_date_20100222_711663601
    List of Datafiles in backup set 4884
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 5086111401249 22-FEB-10 /u01/app/oracle/oradata/ORADB1/system01.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    4894 Incr 1 1.92G DISK 00:13:46 24-FEB-10
    BP Key: 4894 Status: AVAILABLE Compressed: YES Tag: TAG20100224T200037
    Piece Name: /u03/oracle_backups/ORADB1/offline/ORADB1_level1_set_4949_piece_1_date_20100224_711836434
    List of Datafiles in backup set 4894
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 5086113791743 24-FEB-10 /u01/app/oracle/oradata/ORADB1/system01.dbf
    RMAN> exit
    $ ls -ltr /u03/oracle_backups/ORADB1/offline
    total 59743688
    -rwx------ 1 oracle oinstall 7677960192 2010-02-25 11:13 ORADB1_level0_set_4927_piece_1_date_20100221_711576046
    -rwx------ 1 oracle oinstall 7980834816 2010-02-25 11:24 ORADB1_level0_set_4928_piece_1_date_20100221_711576046
    -rwx------ 1 oracle oinstall 4691853312 2010-02-25 11:29 ORADB1_level0_set_4929_piece_1_date_20100221_711578185
    -rwx------ 1 oracle oinstall 2847391744 2010-02-25 11:34 ORADB1_level0_set_4930_piece_1_date_20100221_711578189
    -rwx------ 1 oracle oinstall 3530924032 2010-02-25 11:39 ORADB1_level0_set_4931_piece_1_date_20100221_711579392
    -rwx------ 1 oracle oinstall 1566449664 2010-02-25 11:41 ORADB1_level0_set_4932_piece_1_date_20100221_711579570
    -rwx------ 1 oracle oinstall 1459781632 2010-02-25 11:43 ORADB1_level0_set_4933_piece_1_date_20100221_711580122
    -rwx------ 1 oracle oinstall 561774592 2010-02-25 11:44 ORADB1_level0_set_4934_piece_1_date_20100221_711580369
    -rwx------ 1 oracle oinstall 58753024 2010-02-25 11:44 ORADB1_level0_set_4935_piece_1_date_20100221_711580535
    -rwx------ 1 oracle oinstall 4364124160 2010-02-25 11:56 ORADB1_level1_set_4947_piece_1_date_20100224_711835238
    -rwx------ 1 oracle oinstall 2971877376 2010-02-25 12:01 ORADB1_level1_set_4948_piece_1_date_20100224_711835237
    -rwx------ 1 oracle oinstall 2066546688 2010-02-25 12:03 ORADB1_level1_set_4949_piece_1_date_20100224_711836434
    -rwx------ 1 oracle oinstall 2119360512 2010-02-25 12:06 ORADB1_level1_set_4950_piece_1_date_20100224_711836866
    -rwx------ 1 oracle oinstall 1003356160 2010-02-25 12:06 ORADB1_level1_set_4951_piece_1_date_20100224_711837267
    -rwx------ 1 oracle oinstall 1637105664 2010-02-25 12:08 ORADB1_level1_set_4952_piece_1_date_20100224_711837971
    -rwx------ 1 oracle oinstall 993607680 2010-02-25 12:08 ORADB1_level1_set_4953_piece_1_date_20100224_711837989
    -rwx------ 1 oracle oinstall 1130496 2010-02-25 12:09 ORADB1_level1_set_4955_piece_1_date_20100224_711838522
    -rwx------ 1 oracle oinstall 283344896 2010-02-25 12:09 ORADB1_level1_set_4954_piece_1_date_20100224_711838520
    -rwx------ 1 oracle oinstall 4344365056 2010-02-25 16:01 ORADB1_level1_set_4937_piece_1_date_20100222_711662448
    -rwx------ 1 oracle oinstall 2959015936 2010-02-25 16:05 ORADB1_level1_set_4938_piece_1_date_20100222_711662448
    -rwx------ 1 oracle oinstall 2067202048 2010-02-25 16:07 ORADB1_level1_set_4939_piece_1_date_20100222_711663601
    -rwx------ 1 oracle oinstall 2089304064 2010-02-25 16:08 ORADB1_level1_set_4940_piece_1_date_20100222_711663910
    -rwx------ 1 oracle oinstall 955711488 2010-02-25 16:09 ORADB1_level1_set_4941_piece_1_date_20100222_711664370
    -rwx------ 1 oracle oinstall 1623564288 2010-02-25 16:11 ORADB1_level1_set_4942_piece_1_date_20100222_711664872
    -rwx------ 1 oracle oinstall 980238336 2010-02-25 16:12 ORADB1_level1_set_4943_piece_1_date_20100222_711664989
    -rwx------ 1 oracle oinstall 280952832 2010-02-25 16:12 ORADB1_level1_set_4944_piece_1_date_20100222_711665385
    -rwx------ 1 oracle oinstall 1130496 2010-02-25 16:12 ORADB1_level1_set_4945_piece_1_date_20100222_711665521

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

  • System copy using oracle backup/restore - sapinst does not restart after re

    I am performing a system copy of a BW3.5 system, using the system copy procedures and Oracle backup/restore. on the target node, I have installed the CI. I have run sapinst to install the database up to the point when it tells me to install the Oracle Server software, then restore the backup, and choose 'OK' in the dialog box. As I did not want to leave this dialog open, I chose 'cancel'. I have now installed Oracle, and restored the database, but when I try restarting sapinst I get the following error, and sapinst quits:
    FKD-00049  XML - Parser error: error: invalid symbol '' in literal 'SAPSYSTEM_DB
    indind_ind_ind_ind_0_SAPSYSTEM_ind_ind_ind_ind_ind_0_SAPComponent_ind_ind_ind_
    ind_ind_0_SAPComponent_Accounts_ind_ind_ind_ind_ind_0_SAPCompon' in line 1, 1
    in file
    ERROR      2007-08-20 15:06:13 [iaxxcsihlp.hpp:208]
               main()
    FCO-00031  An error occurred during the installation of component Problem: error
    in persistency subsystem.. Press the log view button to get extended error info
    rmation or press OK to terminate the installation.
    Has anybody ever experienced this before, or have any clues as to what the problem is? This is a production system, and it is supposed to be available by the end of the week....

    Hi Angie,
    You should always mention OS details while drafting message.
    First, CHeck you must selected same SID as earlier while installation or Oracle and DB.
    Secondly, you can skip this phase in SAPInst, bit technical for you.
    Alternatively,
    Recommendations
    - Set parameters as per SAP Note 356370
    - Change the swap mode from 'intermediate' to 'deferred' as described in
      SAP Note 97179.
    - Add /usr/sbin to the path of the user <sapsid>adm in the file
    .cshrc, .login, .profile in the user's home directory. Enter the
    following command(s) at the end of .cshrc, .login, .profile:
      a) If using a csh, enter:
           set path=(/usr/sbin $path)
      b) If using a sh, enter:
           path=/usr/sbin:$path
           export path
    Br,
    Amit Lal
    Reward suitable pts.

Maybe you are looking for

  • How to get the GTRID in string form

    Hello, I would like to include the Global Transaction Identifier (GTRID) in my application level logs. Preferrably it will be in the same format as it is in the ULOG. Is there a function to get the GTRID? Once retrieved, is there a function to conver

  • Clean install Snow Leopard and transfer files from Time Machine?

    Hello, I have a computer that is getting s fresh clean install of Snow Leopard. I know how to go about doing this. However, I want to be able to transfer the files back using Time Machine. The Time Capsule has backups from 3 computers. How do I selec

  • Files on external HD became invisible

    Hello, Really really need your help. I'm selling a laptop so I backed up all my files on WD 320GB HD, created three partitions (all HFS+) - Back'Up, Home Files and Media Files. Everything was fine until my friend unplugged the HD without ejecting it

  • Tables for routing (for work center)

    hi friends, I am doing report on routing but i did not get value for work center i got tables CRHD CRCA CRCO CRHH CRHS CRTX KAKO KAZY . i try to get result by using link with PLPO and PLKO. in TCode CA03 when i see the technical attributes it stors t

  • Crystal Reports XI Release 2

    Hi, Even though I have been developing applications for over 5 years, I am new to this forum and Crystal Reports.  I am developing a new application in VS 2005 for which I have installed Release 2.  According to all the forums I have visited, this sh