Redirected restore procedure!!!

Dear Experts,
During Redirected restore.
After the restore database confirmation Y.
RESTORE DATABASE VNP FROM 'C:\Backup' TAKEN AT 20110903225320 INTO SBX REDIRECT
WITHOUT ROLLING FORWARD
SQL2529W  Warning!  Restoring to an existing database that is different from
the backup image database, and the alias name "SBX" of the existing database
does not match the alias name "VNP" of the backup image, and the database name
"SBX" of the existing database does not match the database name "VNP" of the
backup image. The target database will be overwritten by the backup version.
The Roll-forward recovery logs associated with the target database will be
deleted.
Do you want to continue ? (y/n) y
After confirming with Y . Am getting the below error
SQL0902C  A system error (reason code = "") occurred.  Subsequent SQL
statements cannot be processed.  SQLSTATE=58005
Am posting my CLP Script Kindly check & say whether it is correct ?
-- ** automatically created redirect restore script
UPDATE COMMAND OPTIONS USING S ON Z ON VNP_NODE0000.out V ON;
SET CLIENT ATTACH_DBPARTITIONNUM  0;
SET CLIENT CONNECT_DBPARTITIONNUM 0;
-- ** automatically created redirect restore script
RESTORE DATABASE VNP
-- USER  <username>
-- USING '<password>'
FROM 'C:\Backup'
TAKEN AT 20110903225320
-- ON 'K:\db2\SBX\sapdata1'
-- ,  'K:\db2\SBX\sapdata2'
-- ,  'K:\db2\SBX\sapdata3'
-- ,  'K:\db2\SBX\sapdata4'
-- DBPATH ON '<target-directory>'
INTO SBX
-- NEWLOGPATH 'F:\db2\SBX\log_dir\NODE0000\'
-- WITH <num-buff> BUFFERS
-- BUFFER <buffer-size>
-- REPLACE HISTORY FILE
-- REPLACE EXISTING
REDIRECT
-- PARALLELISM <n>
WITHOUT ROLLING FORWARD
-- WITHOUT PROMPTING;
-- ** table space definition
-- ** Tablespace name                            = SYSCATSPACE
-- **   Tablespace ID                            = 0
-- **   Tablespace Type                          = Database managed space                
-- **   Tablespace Content Type                  = All permanent data. Regular table space.  
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Auto-resize enabled                      = Yes    
-- **   Total number of pages                    = 133120
-- **   Number of usable pages                   = 133112
-- **   High water mark (pages)                  = 132360
-- ** Tablespace name                            = PSAPTEMP16
-- **   Tablespace ID                            = 3
-- **   Tablespace Type                          = System managed space                       
-- **   Tablespace Content Type                  = System Temporary data                      
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Total number of pages                    = 4
-- ** Tablespace name                            = SYSTOOLSTMPSPACE
-- **   Tablespace ID                            = 4
-- **   Tablespace Type                          = System managed space                       
-- **   Tablespace Content Type                  = User Temporary data                        
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Total number of pages                    = 4
-- ** Tablespace name                            = SYSTOOLSPACE
-- **   Tablespace ID                            = 5
-- **   Tablespace Type                          = Database managed space                     
-- **   Tablespace Content Type                  = All permanent data. Large table space.     
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Auto-resize enabled                      = Yes    
-- **   Total number of pages                    = 2048
-- **   Number of usable pages                   = 2040
-- **   High water mark (pages)                  = 1212
-- ** Tablespace name                            = SBX#EL701D
-- **   Tablespace ID                            = 6
-- **   Tablespace Type                          = Database managed space                     
-- **   Tablespace Content Type                  = All permanent data. Large table space.     
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Auto-resize enabled                      = Yes    
-- **   Total number of pages                    = 151552
-- **   Number of usable pages                   = 151544
-- **   High water mark (pages)                  = 149992
-- TABLE SPACES.........
-- ** Tablespace name                            = SBX#USER1D
-- **   Tablespace ID                            = 34
-- **   Tablespace Type                          = Database managed space                     
-- **   Tablespace Content Type                  = All permanent data. Large table space.     
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Auto-resize enabled                      = Yes    
-- **   Total number of pages                    = 2048
-- **   Number of usable pages                   = 2040
-- **   High water mark (pages)                  = 524
-- ** Tablespace name                            = SBX#USER1I
-- **   Tablespace ID                            = 35
-- **   Tablespace Type                          = Database managed space                     
-- **   Tablespace Content Type                  = All permanent data. Large table space.     
-- **   Tablespace Page size (bytes)             = 16384
-- **   Tablespace Extent size (pages)           = 2
-- **   Using automatic storage                  = Yes    
-- **   Auto-resize enabled                      = Yes    
-- **   Total number of pages                    = 2048
-- **   Number of usable pages                   = 2040
-- **   High water mark (pages)                  = 528
-- ** start redirected restore
RESTORE DATABASE VNP CONTINUE;
-- ** end of file
Am restoring DB of SID VNP to SID SBX. Both are on automatic storage databse. Help me as early as possible...
Thanks in advance....

Thanks for your quick reply .
K:\db2\db2sbx\db2_software\BIN>db2 -tvf db2restore.clp
UPDATE COMMAND OPTIONS USING S ON Z ON VNP_NODE0000.out V ON
DB20000I  The UPDATE COMMAND OPTIONS command completed successfully.
SET CLIENT ATTACH_DBPARTITIONNUM  0
DB20000I  The SET CLIENT command completed successfully.
SET CLIENT CONNECT_DBPARTITIONNUM 0
DB20000I  The SET CLIENT command completed successfully.
RESTORE DATABASE VNP FROM 'C:\Backup' TAKEN AT 20110903225320 INTO SBX REDIRECT
WITHOUT ROLLING FORWARD
SQL0902C  A system error (reason code = "") occurred.  Subsequent SQL
statements cannot be processed.  SQLSTATE=58005
This is the error am getting . i have changed the script as of you said .
RESTORE DATABASE VNP
FROM 'C:\Backup'
TAKEN AT 20110903225320
-- ON 'K:\db2\SBX\sapdata1'
-- ,  'K:\db2\SBX\sapdata2'
-- ,  'K:\db2\SBX\sapdata3'
-- ,  'K:\db2\SBX\sapdata4'
-- DBPATH ON 'K:\db2\SBX'
INTO SBX
-- NEWLOGPATH 'F:\db2\SBX\log_dir\NODE0000\'
-- WITH 1 BUFFERS
-- BUFFER 1024
REDIRECT
-- PARALLELISM 1
WITHOUT ROLLING FORWARD
-- WITHOUT PROMPTING
After this is the table space definition. There i didnt change the SID of the tablespaces .

Similar Messages

  • My daughter forgot her passcode, phone is disabled.  I attempted restore procedures by placing phone in restore mode and syncing to original computer, but it still says I need the passcode and does not offer option to restore as new.  Verizon can't help.

    My daughter forgot her passcode.  Phone is now disabled.  I attempted restore procedures by placing phone in restore mode and connected it to the computer / itunes with which it was originally synced.  itunes recognized phone in restore mode and said I must restore.  I clicked restore, restore and update.  Update began, itunes recognized the device by name and gave error message that stated I must have the passcode to restore.  There was no option to restore as new.  I attempted to restore the iphone 4s on another computer by instaling itunes, but same error messages appeared.  I contacted Verizon and they said they could not help me.  The nearest apple retail store is over 40 miles away.  PLEASE HELP!

    If You Are Locked Out Or Have Forgotten Your Passcode
    iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup.
    If you can not restore your device then you will need to go to recovery mode.
    Placing your device into recovery mode:
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
         1. Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end
             of the cable connected to your computer's USB port.
         2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the
             red slider appears, then slide the slider. Wait for the device to turn off.
              If you cannot turn off the device using the slider, press and hold the Sleep/Wake
              and Home buttons at the same time. When the device turns off, release the Sleep/Wake
              and Home buttons.
         3. While pressing and holding the Home button, reconnect the USB cable to the device.
             The device should turn on. Note: If you see the screen pictured below, let the device
             charge for at least ten minutes to ensure that the battery has some charge, and then
             start with step 2 again.
         4. Continue holding the Home button until you see the "Connect to iTunes" screen.
             When this screen appears you can release the Home button.
         5. If necessary, open iTunes. You should see the following "recovery mode" alert:
         6. Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    Additional Information:
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup. See this article for more information.

  • Backup/restore procedures

    We've got a user that accidently deleted sub pages.
    What kind of backup/restore procedures could be
    followed to allow us to selectively restore not only
    page groups, but sub-pages, etc. We'd like to get
    granular on this.
    What is recommended procedure?
    Charlie ;)

    This is exactly the situation we are having. We need a comprehensive backup/restore strategy that will not require a restore of the whole database! Have you gotten any information on this topic that you'd like to share?
    Thanks,
    Ted

  • DB2 v9.1fp4 on suse linux 10sp2 - redirect restor PRD to DEV

    Hi All,
    First of all thank you, for valuable TIME.
    issue:
    My development server got crashed due to failure of dedicated SAN. in simple lost every thing. since, even DB2 backups happening to SAN.
    requirement:
    As we lost all the developments and configuration of development server, we need build a DEV from PRD.
    Steps taken:
    a. we have installed Suse 10sp2 followed by db2 v9.1 fp4 and SAP ERP6.0 sr2.
    b. taken backup of db2 & sap kernel backup by tar command followed by SAP db13 backup along with logs - for newly installed Development server.
    hostname - development
    SID - DEV
    c. I need to restore development server with sid DEV from the backup of production with sid PRD.
          To get all the data {development data, transaction data & configuration etc..}
    Problem
    Till now i haven't worked on DB2 restore, and the current requirement is to dump data from PRD in to DEV.
    i.e.. db2 redirect restore     
    current landscape status:
    Both production and development {freshly installed} are up and working fine.
    PRD with all the live data, DEV freshly installed and without data.
    Need to restore data from PRD to DEV.
    Database: DB2 v9.1 fp4
    OS: SUSE linux 10 sp2
    SAP solution: ERP 6.0 sr2
    Backup of PRD: in to SAN box {backup folder}, backup triggered by DB13 with include logs option.
    I request you to guide me in understanding and performing the restoration.
    i.e.. the steps to be performed along with the necessary precautions to be take to avoid problems.
    PRD data to  DEV.
    Thank you very much your time.
    by
    Harika

    trans.log
    4 ETW000 R3trans version 6.14 (release 700 - 23.07.10 - 09:23:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 12.05.2011 - 22:15:52
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Thu May 12 22:15:52 2011                                                  84  0.000084
    4 ETW000  [dev trc     ,00000]  db_con_init called                                                        25  0.000109
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                                                 29  0.000138
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/DEV/SYS/exe/run/dbdb6slib.so' ...            39  0.000177
    4 ETW000  [dev trc     ,00000]  DlLoadLib() success: dlopen("/usr/sap/DEV/SYS/exe/run/dbdb6slib.so"), hdl 0
    4 ETW000                                                                                491  0.000668
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/DEV/SYS/exe/run/dbdb6slib.so' loaded                    22  0.000690
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/DEV/SYS/exe/run/dbdb6slib.so
    4 ETW000                                                                                32  0.000722
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/DEV/SYS/exe/run/dbdb6slib.so' is "700.08", patchlevel (0.297)
    4 ETW000                                                                                120  0.000842
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/DEV/SYS/exe/run/dbdb6slib.so
    4 ETW000                                                                                24  0.000866
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/DEV/SYS/exe/run/dbdb6slib.so
    4 ETW000                                                                                31  0.000897
    4 ETW000  [dev trc     ,00000]  New connection 0 created                                                  21  0.000918
    4 ETW000  [dev trc     ,00000]  000: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
    4 ETW000                             reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                                43  0.000961
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                                             24  0.000985
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:                17  0.001002
    4 ETW000  [dev trc     ,00000]  000: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , hc = NO , perm = YES,
    4 ETW000                             reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                                39  0.001041
    4 ETW000  [dev trc     ,00000]  RLIMIT_STACK: current=8388608, max=-1                                    315  0.001356
    4 ETW000  [dev trc     ,00000]  DB6 (DB2 UDB) UNICODE database interface 700.08 [opt]                     21  0.001377
    4 ETW000  [dev trc     ,00000]  DB6 shared library (dbdb6slib) patchlevels                                23  0.001400
    4 ETW000  [dev trc     ,00000]    (0.8) DB6: V8.2.2 optguidelines in OPEN SQL (note 150037)               22  0.001422
    4 ETW000  [dev trc     ,00000]    (0.8) Support of SDBUPDEXCL (note 847616)                               21  0.001443
    4 ETW000  [dev trc     ,00000]    (0.9) DB6: use export file for dbdb6slib (note 835135)                  19  0.001462
    4 ETW000  [dev trc     ,00000]    (0.9) DB6: Core in getAndBindSQLDA (note 833183)                        17  0.001479
    4 ETW000  [dev trc     ,00000]    (0.10) DB6: link dbdb6slib.dll on windows with libdb6.obj (note 761159)
    4 ETW000                                                                                42  0.001521
    4 ETW000  [dev trc     ,00000]    (0.10) DB6: DUPLICATE_KEY on MERGE -> repeat (note 851474)              18  0.001539
    4 ETW000  [dev trc     ,00000]    (0.15) DB6: wrong CAST for short string ABAP type (note 861905)         21  0.001560
    4 ETW000  [dev trc     ,00000]    (0.17) DB6: special characters in sidadm passwd (note 865839)           18  0.001578
    4 ETW000  [dev trc     ,00000]    (0.21) DB6: no SAP_INFO comments (note 873889)                          19  0.001597
    4 ETW000  [dev trc     ,00000]    (0.22) DB6: hints: get correlation names from view texts (note 868888)
    4 ETW000                                                                                32  0.001629
    4 ETW000  [dev trc     ,00000]    (0.23) DB6: hints: get correlation names from view texts (note 868888)
    4 ETW000                                                                                24  0.001653
    4 ETW000  [dev trc     ,00000]    (0.26) DB6: DB6_DBSL_CLP_COMMAND STRING_BAD_REF (note 883402)           17  0.001670
    4 ETW000  [dev trc     ,00000]    (0.27) DB6: activate value compression (note 886231)                    20  0.001690
    4 ETW000  [dev trc     ,00000]    (0.28) DB6: optimization guidelines on views part 2 (note 868888)       18  0.001708
    4 ETW000  [dev trc     ,00000]    (0.30) DB6: no SQL trace for SQLCancel (note 892111)                    17  0.001725
    4 ETW000  [dev trc     ,00000]    (0.33) DB6: append SAP_TA comment (note 873889)                         19  0.001744
    4 ETW000  [dev trc     ,00000]    (0.34) DB6: activate value compression with quoted names (note 886231)
    4 ETW000                                                                                28  0.001772
    4 ETW000  [dev trc     ,00000]    (0.36) DB6: Repeat isolated DDL statements after SQL0911 (note 901338)
    4 ETW000                                                                                30  0.001802
    4 ETW000  [dev trc     ,00000]    (0.41) DB6: add V9 to list of supported DB2 releases (note 912386)
    4 ETW000                                                                                28  0.001830
    4 ETW000  [dev trc     ,00000]    (0.50) DB6: reread passwords for secondary connections (note 931742)
    4 ETW000                                                                                27  0.001857
    4 ETW000  [dev trc     ,00000]    (0.52) DB6: double quote table names in optguidelines (note 868888)
    4 ETW000                                                                                24  0.001881
    4 ETW000  [dev trc     ,00000]    (0.54) DB6: error handling in DBSL CLP (note 940260)                    19  0.001900
    4 ETW000  [dev trc     ,00000]    (0.69) DB6: technical support of DB2 CLI driver (note 962892)           22  0.001922
    4 ETW000  [dev trc     ,00000]    (0.73) DB6: log table name on TRUNCATE failure (note 970743)            21  0.001943
    4 ETW000  [dev trc     ,00000]    (0.79) DB6: column type XML in index size calculation (note 982993)
    4 ETW000                                                                                32  0.001975
    4 ETW000  [dev trc     ,00000]    (0.82) DB6: CAST for SSTRING data types (note 989568)                   19  0.001994
    4 ETW000  [dev trc     ,00000]    (0.86) DB6: long runtimes for R3szchk (note 1000847)                    18  0.002012
    4 ETW000  [dev trc     ,00000]    (0.88) DB6: patch collection Dec 06 (note 1005574)                      19  0.002031
    4 ETW000  [dev trc     ,00000]    (0.96) DB6: patch collection Jan 07 (note 1017852)                      19  0.002050
    4 ETW000  [dev trc     ,00000]    (0.97) DB6: CLP commands with DB2 CLI Driver (note 1024102)             18  0.002068
    4 ETW000  [dev trc     ,00000]    (0.99) DB6: SUBSTITUTE VALUES with FAE statements (note 1028779)        19  0.002087
    4 ETW000  [dev trc     ,00000]    (0.107) DB6: patch collection Apr 07 (note 1047194)                     20  0.002107
    4 ETW000  [dev trc     ,00000]    (0.110) DB6: SAP user names ending with non-ASCII char (note 1054555)
    4 ETW000                                                                                49  0.002156
    4 ETW000  [dev trc     ,00000]    (0.113) DB6: work process type in application snapshot (note 1059905)
    4 ETW000                                                                                25  0.002181
    4 ETW000  [dev trc     ,00000]    (0.114) DB6: connect using SAPDBHOST and DB2DB6_SVCENAME (note 1062049)
    4 ETW000                                                                                24  0.002205
    4 ETW000  [dev trc     ,00000]    (0.117) DB6: patch for execution of long DDL statements (note 1069658)
    4 ETW000                                                                                27  0.002232
    4 ETW000  [dev trc     ,00000]    (0.122) DB6: SNAPSHOT_TBS_CFG table function is deprecated (note 1077963)
    4 ETW000                                                                                27  0.002259
    4 ETW000  [dev trc     ,00000]    (0.123) DB6: CLP commands on Windows with V9.1 (note 1080149)           16  0.002275
    4 ETW000  [dev trc     ,00000]    (0.124) DB6: Set DB2CODEPAGE=819 for non-Unicode (note 1084400)         18  0.002293
    4 ETW000  [dev trc     ,00000]    (0.126) DB6: reuse optguidelines on FAE statements (note 1087375)       19  0.002312
    4 ETW000  [dev trc     ,00000]    (0.126) DB6: Enforce DB2CODEPAGE=819 for non-Unicode environments (note 1084400)
    4 ETW000                                                                                30  0.002342
    4 ETW000  [dev trc     ,00000]    (0.128) DB6: db6_free on invalid memory area (note 1092030)             17  0.002359
    4 ETW000  [dev trc     ,00000]    (0.133) DB6: statement cache enhancements (note 1101031)                20  0.002379
    4 ETW000  [dev trc     ,00000]    (0.136) DB6: change for enhancement pack installer (note 1111536)       22  0.002401
    4 ETW000  [dev trc     ,00000]    (0.138) DB6: improoved table size estimate for DB8 V8 (note 1119934)
    4 ETW000                                                                                28  0.002429
    4 ETW000  [dev trc     ,00000]    (0.144) I5/OS ldappasswd support for 5250 terminal. (note 1129573)
    4 ETW000                                                                                27  0.002456
    4 ETW000  [dev trc     ,00000]    (0.144) MSSQL: ODBC fastload on separate connection (note 1131805)
    4 ETW000                                                                                24  0.002480
    4 ETW000  [dev trc     ,00000]    (0.148) DB6: allocate new CLI env handle if PID changes (note 1141570)
    4 ETW000                                                                                26  0.002506
    4 ETW000  [dev trc     ,00000]    (0.150) DB6: USE AND KEEP EXCLUSIVE LOCKS clause lost (note 1145580)
    4 ETW000                                                                                31  0.002537

  • After Redirected Restore with different schema problems with db13

    Hello, we made a redirected restore. We have different schema between production and quality system.
    According to note 713524 we made the following changes:
    create db connect user from the source system in the target system (unix user, sap<sid>)
    set parameter dbs/db6/schema=sap<sid> in the instance profile
    set dbs_db6_schema = sap<sid> in the environment for <sid>adm and db2<sid> (dbenv...)
    add user sap<sid> into /sapmnt/<SID>/global/dscdb6.conf and set password with dscdb6up sap<sid> <password>
    The system is now up and running. But transaction db13 is not working
    SQL0443N  Routine "*SHOT_DBM" (specific name "")
    has returned an error SQLSTATE with diagnostic
    text "SQL1092  Reason code or token: SAPR3
                   ".  SQLSTATE=38553
    Regards,
    Alexander

    Hi Alexander
    sorry , forget the grants , they should come from the source system .
    If you have multiple App-Servers , did you perform the above mentioned action in all affected profiles and environments of your Q-System ?
    Please check , if you can limit this issue to an separate App-Server or to all App-Servers .
    Best regards
    dirk

  • Redirected restore - automatic storage - using DB2 api not br tools

    I've done 100+ redirected restores for non-automatic storage databases using TSM only using the DB2 api's  - and not the BR tools . 
    Now, I'm challenged with a redirect automatic storage DB.
    *SQL1277N  Restore has detected that one or more table space containers are*
    inaccessible, or has set their state to 'storage must be defined'.
    DB20000I  The RESTORE DATABASE command completed successfully.
    The backup image gets read and the TAG's for the containers are build.  I can see that by doing a "df" on the filesystem level.  But as soon as the restores attempts to write data into the containers, I get the above error message.
    Here are my steps: 
    1. offline backup using db2 api on source
    2. create restore script
    RESTORE DB DCC use adsm open 4 sessions TAKEN AT 20080722155529 on /db2/SCC/sapdata1,/db2/SCC/sapdata2,/db2/SCC/sapdata3,/db2/SCC/sapdata4 ,/db2/SCC/sapdata5,/db2/SCC/sapdata6,/db2/SCC/saptemp1 dbpath on /db2/SCC INTO SCC NEWLOGPATH /db2/SCC/log_dir with 16 buffers REPLACE EXISTING redirect parallelism 2 without rolling forward without prompting
    3. drop the target db and clean out all sapdata's and saptemp
    4. create db on target:db2 create database scc automatic storage yes on /db2/SCC/sapdata1,/db2/SCC/sapdata2,/db2/SCC/sa**
    +pdata3,/db2/SCC/sapdata4,/db2/SCC/sapdata5,/db2/SCC/saptemp1 dbpath on /db2/SCC+
    5. update target db cfg with tsm parms so that it will be able to read the TSM tapes.  ie tsm_mgmtclass, tsm_nodename, tsm_owner, tsm_password
    6.  setup my dsm.opt with
    +SErvername       redirect_restore+
    and the dsm.sys with a new stanza
    SErvername  redirectrestore_
       SchedMode            PROMPT
       nodename             useagan1743ddb2_
       PasswordAccess       prompt
       COMMMethod         TCPip
       TCPPort            1500
       TCPServeraddress     unixtsm1p.ecolab.com 
    7.  as root I run the /db2/db2<sid>/sqllib/adsm/dsmapipw password to make sure to have access to the tsm nodename.
    8.  execute restore script on target
    RESTORE DB DCC use adsm open 4 sessions TAKEN AT 20080722155529 on /db2/SCC/sapdata1,/db2/SCC/sa
    pdata2,/db2/SCC/sapdata3,/db2/SCC/sapdata4 ,/db2/SCC/sapdata5,/db2/SCC/sapdata6,/db2/SCC/saptemp
    1 dbpath on /db2/SCC INTO SCC NEWLOGPATH /db2/SCC/log_dir with 16 buffers REPLACE EXISTING redir
    ect parallelism 2 without rolling forward without prompting;

    Hello Anke,
    Looks like your create database statement is missing the collating sequence, codeset etc.  Here is a database create statement I got from my sapinst for your reference:
    create database SX1
      automatic storage yes on /db2/SX1/sapdata1, /db2/SX1/sapdata2, /db2/SX1/sapdat
    a3, /db2/SX1/sapdata4
      dbpath on /db2/SX1
      using codeset UTF-8
      territory en_US
      collate using IDENTITY_16BIT
      pagesize 16 k
      dft_extent_sz 2
      catalog tablespace managed by automatic storage extentsize 2
      with 'SAP database SX1';
    Regards,

  • Redirected restore fails with SQL2071N

    Hi,
    While trying to do a redirected restore i am getting the below error.
    RESTORE DATABASE <SID> CONTINUE
    SQL2071N An error occurred while accessing the shared library "/db2/db2<sid>/sqllib/adsm/libtsm.a".
    Reason code: "2".
    Please find below the database release details below
    DB21085I Instance "db2<sid>" uses "64" bits and DB2 code release "SQL09011" with level identifier "01020107".
    Informational tokens are "DB2 v9.1.0.1","s061104", "U809676", and Fix Pack "1".
    Product is installed at "/db2/<SID>/V9.1".
    While trying to connect to the DB i am getting the following msg
    db2 => connect
    SQL1119N  A connection to or activation of database "<SID>" cannot be made
    because a previous restore is incomplete.  SQLSTATE=57019
    Regards,
    Sam

    Hi Sam
    Sorry for late response... plese replace the restore command of yours with this command below and make sure that the set tablespace commands are in the same script or executed in the same session. It shud work
    I am assuming that this restore is from an offline backup !!!
    RESTORE DATABASE <SID>
    USER <user> USING <password>
    FROM /instcd/bkup
    TAKEN AT 20080316204544
    ON /db2/<sid>/sapdata2
    ,/db2/<sid>/sapdata1
    DBPATH ON /db2/<SID>
    INTO <SID>
    NEWLOGPATH /db2/<SID>/db2,sid>/NODE0000/SQL00001/SQLOGDIR/
    WITH 2 BUFFERS
    BUFFER 1024
    REDIRECT
    without rolling forward
    without prompting ;
    Amit
    Edited by: amit chak on Mar 24, 2008 6:37 PM

  • DB2 Restore Procedure

    Hi Gurus,
    Due to some power problem one of our ABAP System got crashed now we have a backup but i am not familiar with db2 restore procedure.
    Though we have an Online backup but not sure that log_archiving was on or not.
    I have gone through the few guides available on SDN / IBM. Now i have doubts before going ahead with restore.
    1. What would be the exact command to restore an Online backup ?
    2. What would be the exact command for roll-forward recovery after restoring an online backup?
    3. Though DB2 Ver. 9.5 includes the Archive log while taking an online backup how can i summarize that whether i need to apply logs after restoring an online database because i am not sure whether log_archive was on or off.
    Please suggest ...!!!
    Regards,
    Jai

    Hi Jai,
    Since there's no general command to restore a database you should have a look at this [Information Center Page|http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.cmd.doc/doc/r0001976.html] for restoring your database.
    It depends on how your backup is made and, of course what kind of logging you use. This can be seen by putting out the database configuration (db2 get db cfg for <dbsid>) and filtering for [logarchmeth1|http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/topic/com.ibm.db2.luw.admin.config.doc/doc/r0011448.html]|. In order to activate [archive logging|http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.admin.cmd.doc/doc/r0001976.html] this parameter must be set to LOGRETAIN.
    Nevertheless my advise is to get familiar of such fundamental knowledge before an incident happens! Anyway I hope these links help to master your situation.
    Best regards,
    Marcel|

  • RMAN redirected restore in windows.

    Hi All,
    My production database is getting backed up using rman/tivoli to tape.
    I need to do restoration in another machine using rman redirected restore.
    Does anyone has idea what files (tsm files) need to be modified to do redirected restore on windows.
    Thanks,
    Hal.

    One correction :
    Tivoli Data Protection (TDP) - I don't know which version - Guide for Oracle
    But normally RMAN should handle all the stuff. It's only necessary Tivoli server is able to access the new host.
    Werner

  • Hey guys, im new at this.. help: "REDIRECTED RESTORE FOR DB2"

    hey guys im new at this basis thing, i just need help and some tips about the redirected restore for DB2 in windows. may some of you guys can provide me guides on how to perform the restoration from tape drives and other devices. thanks! all the help would be greatly appreciated.

    Hi Robert,
    you can find various guides and papers here
    [SAP on DB2 for Linux, UNIX, and Windows|http://www.sdn.sap.com/irj/sdn/db6]
    and here
    [IBM SAP DB2 Experts|http://www.ibm.com/developerworks/wikis/display/im/IBMSAPDB2+Experts]

  • Redirected restore performance

    Iu2019ve been looking at our redirected restores, trying to determine how to speed up the process. 
    Iu2019ve read an SAP document suggesting using a standard Logical System Name across production, qa, and dev (for example r3clnt100 as the name for production qa and dev) by not specifying the sid in the logical system name you eliminate the need to run bdls after a redirected restore.  The bdls run (in our case runs, we have xi, bw and apo attached to our r3 system) constitute a significant amount of the time, so eliminating them would have a dramatic affect.  Does anyone have experience with using a standard logical system name across prod, qa, and dev rather than having the sid in the logical system name?  What are the pros and cons of that approach?

    I was using google to find options for bdls and found this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6931413f-0b01-0010-c190-c21bc6711fb0
    The document title is SAP System Landscape Copy for SAP NetWeaver and mySAP Solutions -- Best Practice for Solution Management

  • HT201401 my 3GS was dropped into water. Is there any way to recover? It will power up and I went through the restore procedure but nothing from there. help!!

    My 3GS was dropped into water-is there anything I c an do to save it? It will power up and I put it through the restore procedure, which it seemed to respond to, but it still won't work. HELP!!

    It is very likly dead.

  • Restore procedures of 2 node RAC

    I have 2 node RAC running 11gr2 (11.2.0.2), linux RHEL 5.x in my test server using Oracle VM. This set up has 5 diskgroups in ASM (ocrvote1, ocrvote2, ocrvote3), data, fra. Both data and fra are in externally redundancy and ocrvote1-3 in normal redundancy. As i'm getting ready to test the recovery procedures of the whole setup, I wanted to check here to see, if i have covered the necessary bits and not missing anything obvious.
    I will be taking full backup of database and md_backup of disk groups prior to testing these procedures. Below is the list of procedures i had come up, for getting the system restored in shortest time frame. If you think i can cut-down the time even further, would appreciate your inputs.
    -- Install OS via jump start on all nodes.
    -- Partition disks same set of disk and give similar names as before.
    -- Stamp disks with asmlib and present them to all nodes
    -- Install GI and RDBMS homes
    -- Bring up ASM with OCRVOTE diskgroup on all nodes. OCR and voting disks will be created as part of ASM setup.
    -- Restore data and fra dg from backup using md_restore
    -- Restore latest backup from tapes or disk in to FRA
    -- Restore and Recover database via Rman.
    Thanks
    Steve

    Very good point Sebastian. I guess i need to replace OCR created from new GI cluster install with OCR from backup right, unless you say i can restore OCR from backup while building the new GI cluster. If so, can you point to me to link or documentation in doing so.
    I was also thinking about using clones of GI and RDBMS home instead of making fresh install as part of the restore procedures. Is that an option?
    If i have all the storage partitions intact from previous install and if have to restore the system without any data loss, anything different i should be doing here.
    Steve

  • 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.

  • SQL 2005 Baclup restore procedure

    Due to some virus problem I crashed my Development server .Before to do so I had taken SQL Full backup & copied the Datafiles & translog to someother location.
    Now I installed a new system with diffrent SID .How can I restore the taken backup (sql full & copy of datafile ,translog)
    Could you please tell me the procedure from SQL management studio or whatever the way is possible.
    Awaiting for all your valuable steps.

    Hi
    Do u installed the sap again or not. if you taken full windows system backup at anypoint of them then restore the windows system with sap.
    if not please install it from scratch as u previously done it (ie in the same name for database and the users)
    then u can restore the database using sql enterprise manager or from sap it self using db13c tcode
    please let me know how it helped to u
    because the database username and passwords are created at the time of sap installation process install sap and or restore sap using full windows system backup of NT Backup or other backup.
    N.Rameshkarthik

Maybe you are looking for

  • Calling a backing bean method by clicking on an image.

    I have several HtmlGraphicImage (h:graphicImage) objects on a page. I would like to be able to call a method inside the backing bean for the JSP page where the images are located when the user clicks on one of the images, and have a parameter sent to

  • Photo uploading from ipad2.

    Can you upload photos from the ipad2 to say, Facebook or other websites? I have a MacBook but can't get it online, the airport isn't working. I have transferred pics to the iPad for uploading. Any help would be greatly appreciated.

  • Cell Broadcast / Cell Info Display is not static i...

    Good Afternoon, I come by this means can try to explain how a situation that saw the Nokias 6210 Navigator. A customer information to activate the cell and the cell to receive the information by the same operator appears next to the hours over the na

  • Call specific accordion panel from flash

    I have a button that is part of a flash swf on my html page. When the user clicks on the button, they are taken to an "events" page (using getURL) but I want a specific panel to open. I am familiar with external interface but just can't get this to w

  • Download utilities folder

    My utilities folder is gone, not just misplaced.  The only answer I've found is to use Pacifist, but it won't even open my Snow Leopard installer disk--what are my options?