Restore Database to Windows

Hi all,
I have cold backup from Oracle 10.2.0.1 Solaris[tm] OE (64-bit) on Unix and now they have moved to oracle 10.2.0.4 on windows 2003 64 bit
How can i restore full database from cold backup to windows server? Please guide
I am totally new to Oracle DBA duties.
thanks
Pat
Edited by: user648612 on Aug 13, 2009 10:26 AM
Edited by: user648612 on Aug 13, 2009 10:34 AM

If you can restore cold backup to the unix box, then restore the backup and recover/open the database. You can then transport the database/tablespace to windows using
[RMAN Cross-Platform Transportable Databases and Tablespaces|http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn.htm#CHDFHBFI]
Or
Restore the backup and recover/open the database in unix. Use Export/import or datapump export/datapump import to transfer data to windows.
Anantha

Similar Messages

  • After Piecemeal Primary FileGroup Restoration, Database Property Window Shows other FileGroups also

    Hi,
    I have a SQL Server 2008 database with 90 Gigs of Capacity.
    The database consists of a huge table with 80 Gigs of Capacity and these entire 80 Gigs of data is Static in nature.
    We need the to restore the backup of this database frequently in to the Development environment, so we moved this static data into a Secondary File Group.
    Now, the database Consists of 2 Filegroups : Primary & Secondary_fg.
    The entire Static table is moved to the Secondary FileGroup.
    We have taken the backup of Primary FileGroup using the following Backup Command :
    Backup Database MYDB FILEGROUP = 'PRIMARY' to disk = 'E:\SQLBackup\MYDB_Primary_FG_Only.bak'
    WITH NOFORMAT, NOINIT, NAME = N'MYDB - Full Filegroup backup', SKIP, NOREWIND, NOUNLOAD
    The backup went file with the expected capacity of 10 Gigs.
    I have restored this backup in to a New Database : MYDB_PRIMARY_ONLY using the following command
    RESTORE DATABASE [MYDB_PRIMARY_ONLY] FILE = 'MYDB_DATA', FILEGROUP = 'PRIMARY'
    FROM DISK = 'E:\SQLBackup\MYDB_Primary_FG_Only.bak',
    WITH FILE=1,
    MOVE 'MYDB_DATA' TO 'E:\SQLDATA\MYDB_PRIMARY_ONLY_DATA.mdf',
    MOVE 'MYDB_LOG' TO 'E:\SQLDATA\MYDB_PRIMARY_ONLY_LOG.ldf', NOUNLOAD, PARTIAL
    GO
    The Restoration also went fine and the size of the Newly Restored Database : "MYDB_PRIMARY_ONLY" is with 10 Gigs in Capacity.
    But, the gotcha here is whilst checking the Database Properties of this Newly restored database, on the FILES & FILEGROUPS tab, the files & filegroups related to the SECONDARY FILEGROUP is also showing.
    MY ACTUAL QUESTION :
    On the PRIMARY FILEGROUP ONLY RESTORATION HOW THIS SECONDARY FILEGROUP IS COMING INTO PICTURE ?
    MOREOVER, WHEN I TRIED TO REMOVE THE SECONDARY FILEGROUP AND IT'S RESPECTIVE DATA FILE IT THROUGH THE FOLLOWING ERROR :
    COMMAND USED TO REMOVED THE FILE & FILEGROUP :
    USE [MYDB_PRIMARY_ONLY]
    GO
    ALTER DATABASE [MYDB_PRIMARY_ONLY]  REMOVE FILE [SECONDARY_DATA_FILE.ndf]
    GO
    ALTER DATABASE [MYDB_PRIMARY_ONLY] REMOVE FILEGROUP [SECONDARY_FG]
    GO
    Error :
    Msg 5056, Level 16, State 2, Line 1
    Cannot add, remove, or modify a file in filegroup 'SECONDARY_FG' because the filegroup is not online.
    Can anyone explain why such this error message ? Thanks in advance for any guidance in this regard.

    On the PRIMARY FILEGROUP ONLY RESTORATION HOW THIS SECONDARY FILEGROUP IS COMING INTO PICTURE ?
    When you restore only the primary filegroup, all database meta data is restored, including references to the filegroups and files not yet restored.  Filegroups/files not restored will be recovery pending state and data on those filegroups will be inaccessible. 
    Removing the filegroup will change the status to defunct but the meta data will remain.  You'll need to copy the restored objects and data to a new clean database if you want to tidy up.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • RESTORE DATABASE IN WINDOWS MSSQL-2005

    Hi
    We have installed a new sap ecc 6.0 on windows ms-sql2005.
    After installing a new system we have tried restoring the data base of the existing system.
    we were having few issues but after applying the sapnote : 1294762. executing the script mentioned in the note we are able to start our sap successfully.
    Did i miss any of the steps i need to perform after restoring the data.
    Do i need to update the database to replace the existing database after restore.
    please help
    Thanks!
    Vardhan.

    HI
    Sorry i haven't explained you the process how i restored my database.
    1. i have installed a new sap system with same sid and dbsid of  existing system.
    2.i have detached the database of the newly installed system.
    3. i have attached the database of the existing system which i planned to restored the database.
    4.then applied the sap note1294762 to start    sap.
    every thing is fine till now.
    now the problem is i am unable to login to system using sapgui. " unable to login to system (error in license check)".
    when i try to install a sap-license i get the following error
    C:\usr\sap\DE1\SYS\exe\uc\NTI386>saplicense -install
    SAPLICENSE (Release 700) ERROR ***
    ERROR: Can not set DbSl trace function
    DETAILS: DbSlControl(DBSL_CMD_IMP_FUNS_SET) failed with return code 20
    RC-INFO: error loading dynamic db-library - check environment for:
    dbms_type = <db-type> (e.g. ora)
    DIR_LIBRARY = <path to db-dll> (e.g. /usr/sap/SID/SYS/exe/run
    But when i say saplicence -show i get the following error
    This application has failed to start because libSQLDBC76.dll was not found. Re-installing the application may fix this problem
    please need help.
    Regards
    Vardhan.

  • Restore database from windows to linux

    Hi,
    I want to restore my Oralce in windows to another Linux box,
    my windows is windows 2003 R2 64bit, Oracle 11.2.0.2
    and my Linux is Oracle Linux 5.5, Oracle 11.2.0.3,
    I managed to create an instance in the linux box, restore the controlfile and datafile and catalog the archivelogs,
    but when I do recovery, below errors prompt
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 07/06/2012 14:54:44
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/cloudfs/archivelog/O1_MF_1_26954_7Z9K3WC0_.ARC'
    ORA-10562: Error occurred while applying redo to data block (file# 6, block# 669493)
    ORA-10564: tablespace TEST
    ORA-01110: data file 6: '+DATA/ofs5/datafile/test.264.787934051'
    ORA-10561: block type 'TRANSACTION MANAGED INDEX BLOCK', data object# 91719
    ORA-00600: internal error code, arguments: [ktbair2_0], [2239], [3712], [], [], [], [], [], [], [], [], []
    is that mean it is not possible to restore the db from one platform to another?
    (I read some oralce note that it is possible to setup datagurad between window and linux)
    Thank
    Vincent

    Vincent;
    is that mean it is not possible to restore the db from one platform to another?It's possible, but there's quite a lot of planning that needed to be done.
    The Database Backup and Recovery User's Guide should have a section on Transporting Data Across Platforms.
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmxplat.htm
    You need to use dbms_tdb.check_db to test if it can be done with the OS's you have in mind.
    There's a fairly good example here, but not using the exact OS's you have in mind.
    http://mohamedazar.com/2011/06/08/transport-an-entire-database-to-a-different-platform/
    My understanding is it won't transport certain items :
    Control files and Redo logs
    Bfiles
    Temp files
    External tables
    Directories
    Password files
    Also you need to create a new instance before you can use RMAN backups from the source.
    Here's another example :
    https://blogs.oracle.com/AlejandroVargas/entry/database_migration_from_window
    Best Regards
    mseberg

  • File name in msdb.dbo.backupset no longer matches the actual file name on the storage media. Error 3013 Restore Database is terminating abnormally.

    Thanks in advance for taking the time to read this and comment. Platform: Windows Server 2008 R2 Enterprise Edition SP1 (X64) Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation
     Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)Problem Description: The file name recorded in the msdb.dbo.backupset (sans the extension) no longer matches the actual file name written to the backup media which is
    in this case a NETAPP NAS storage share. Example:
    Mohave_backup_2014_03_14_233001_1158878.bak      (from NETAPP NAS filer)
    Mohave_backup_2014_03_16_233001_4167237             (from MSDB.dbo.backupset), as you can see, the last 7 digits (chars) of the file name are different, although the date and time are identical. The
    file names had previously been matching perfectly. The first occurance of this problem occured on 03/13/2014 at 5:00 AM MST. The error generated by the job was:
    Date  3/14/2014 10:29:23 AM
    Log  Job History (Refresh - Restore Mohave_93_DEV AD HOC)
    Step ID  1
    Server  OurDevServer
    Job Name  Refresh - Restore Mohave_93_DEV AD HOC
    Step Name  Restore Mohave_93_DEV
    Duration  00:00:01
    Sql Severity  0
    Sql Message ID  50000
    Operator Emailed  
    Operator Net sent  
    Operator Paged  
    Retries Attempted  0
    Message
    Executed as user: OurDomain\OurNetworkServiceLogin. Restore Mohave Prod to Mohave_93_DEV - ERROR: 3013 RESTORE DATABASE is terminating abnormally. [SQLSTATE 01000] (Message 50000).  The step succeeded.

    Olaf:
    Thanks for your reply. Sorry, my bad. I inadvertently copied wrong [name] form the msdb.dbo.backupset. On 3/13 and 3/14, the two file names did not match. In trying to select another example to show you this morning, I found that the names are now matching!
    What I was doing was to create dynamic t-sql to retrieve the latest prod backup of the database, and then restore it with move to the development server. This is an ad-hoc job that the developers can run by themselves whenever they require a refresh. Unfortunately,
    we only keep 3 days worth of backups for these databases, so the original disk file I was trying to use to restore no longer exists. Researching the original error, one of the error descriptions was that the restore could not find the file requested.
    I thought this very strange since I get the file name directly from the backupset table. Further research did indeed show that the file names were different, but unfortunately, I failed to save the details of the file names. Anyway, in looking for a new example
    to show you this morning, I have found that the file names are indeed matching exactly again. If this error pops up again, I will be sure to save all details and re-post.
    Thanks, regards and best wishes to you and yours, 

  • Ora-00600: internal error on 11g database in windows 2007 environment

    Hello , i have these problems please help me to solve it.
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Windows\system32>set ORACLE_SID=testsid
    C:\Windows\system32>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
    https://local:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is not running.
    Logs are generated in directory C:\app\23333941\product\11.1.0\db_3/local_testsid/sysman/log
    C:\Windows\system32>sqlplus sys/@**** as sysdba
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jul 5 09:27:37 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL*Plus: Release 11.1.0.6.0 - Production
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                       usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                       version specified by <version>.  The version has
                       the form "x.y[.z]".  For example, -C 10.2.0
        -F             Enables the failover mode for a RAC environment.
        -L             Attempts to log on just once, instead of
                       reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                       have the form:
                       HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                       [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>     Sets restricted mode to disable SQL*Plus commands
                       that interact with the file system.  The level can
                       be 1, 2 or 3.  The most restrictive is -R 3 which
                       disables all user commands interacting with the
                       file system.
        -S             Sets silent mode which suppresses the display of
                       the SQL*Plus banner, prompts, and echoing of
                       commands.
      <logon> is: (<username>[/<password>][@<connect_identifier>] | /)
                  [AS SYSDBA | AS SYSOPER | AS SYSASM] | /NOLOG | [EDITION=value]
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA, AS SYSOPER and AS SYSASM  options are database
        administration privileges.
        <connect_identifier> can be in the form of Net Service Name
        or Easy Connect.
          @[<net_service_name> | [//]Host[:Port]/<service_name>]
            <net_service_name> is a simple name for a service that resolves
            to a connect descriptor.
            Example: Connect to database using Net Service Name and the
                     database net service name is ORCL.
               sqlplus myusername/mypassword@ORCL
            Host specifies the host name or IP address of the database
            server computer.
            Port specifies the listening port on the database server.
            <service_name> specifies the service name of the database you
            want to access.
            Example: Connect to database using Easy Connect and the
                     Service name is ORCL.
               sqlplus myusername/mypassword@Host/ORCL
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
        The EDITION specifies the value for Application
        Edition
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    C:\Windows\system32>sqlplus sys/1118@testsid as sysdba
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jul 5 09:29:03 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name: sysdba
    Enter password:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: sys
    Enter password:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    C:\Windows\system32>sqlplus/nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jul 5 09:32:59 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> connect/as sysdba
    Connected.
    SQL> create table test(id number, id1 number);
    create table test(id number, id1 number)
    ERROR at line 1:
    ORA-01109: database not open
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> alter database open;
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcrfr_update_nab_2], [0x51434A54],
    [2], [], [], [], [], []
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\Windows\system32>startup mount
    'startup' is not recognized as an internal or external command,
    operable program or batch file.
    C:\Windows\system32>sqlplus/nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jul 5 10:05:42 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> connect/as sysdba
    Connected.
    SQL> startup mount;
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> recover database;
    Media recovery complete.
    SQL> select GROUP#,SEQUENCE#,ARCHIVED,STATUS from v$log order by SEQUENCE#;
        GROUP#  SEQUENCE# ARC STATUS
             2        539 NO  INACTIVE
             3        540 NO  ACTIVE
             1        541 NO  CURRENT
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-00264: no recovery required
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    C:\Windows\system32>sqlplus/nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jul 5 10:17:10 2013
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> startup mount
    ORA-01081: cannot start already-running ORACLE - shut it down first
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  313860096 bytes
    Fixed Size                  1332892 bytes
    Variable Size             276826468 bytes
    Database Buffers           29360128 bytes
    Redo Buffers                6340608 bytes
    Database mounted.
    Database opened.
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-01124: cannot recover data file 1 - file is in use or recovery
    ORA-01110: data file 1:
    'C:\APP\23333941\ORADATA\TEST\DATAFILE\O1_MF_SYSTEM_8XB8TY3S_.DBF'
    SQL> select GROUP#,SEQUENCE#,ARCHIVED,STATUS from v$log order by SEQUENCE#;
        GROUP#  SEQUENCE# ARC STATUS
             3        540 NO  INACTIVE
             1        541 NO  INACTIVE
             2        542 NO  CURRENT
    SQL> restore database;
    SP2-0734: unknown command beginning "restore da..." - rest of line ignored.
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-01124: cannot recover data file 1 - file is in use or recovery
    ORA-01110: data file 1:
    'C:\APP\23333941\ORADATA\TEST\DATAFILE\O1_MF_SYSTEM_8XB8TY3S_.DBF'
    SQL>
    Thanks with regards Ganaa;

    What happened prior that resulted in the disaster scenario that you posted/
    When was the last time the DB opened with out error?
    What changed since then?

  • Error while restoring database with different name on subscriber

    Hi all,
    I am using merge replication in sql server 2008R2. Yesterday I wanted to create a test environment, so
    I did:
    1. on publisher I restored from backup production db with another name ( lets call it TEST and new files
    .mdf, .ldf and no switch KEEP_REPLICATION). After this step original replication between production
    dbs worked fine.
    2. on subscriber I did the same: restore as new db TEST with new
    files .mdf, .ldf and no switch KEEP_REPLICATION.
    Unfortunately I noticed, that after second step replication stopped. SQL agent replication job on Subscriber
    is gone.
    Why restoring db with new name did affect original replication?
    Finally the most important: replication was set up by external company and I have to bring it to live now
    but I don't know this subject so good. How can I do it?
    Assuming, that there is no data change on subscriber in replicated tables is it enough when I select ‘reinitialize’
    on Publisher and Subscriber?
    Thanks in advance
    Artur

    Hello,
    Sorry for late response, but I was out of the office during last week.
    Regarding problem 1: restoring replication. I contacted guy who made originally our replication and he recreated subscription agent. So this is solved.
    problem 2: why did it happen?
    Lydia, in link which you provided I found only info about restoring db in replication, but I didn't want to restore replication.
    I checked SQL Server and Server Agent logs and there were no entries on that time. The only entries are regarding db restoring. Below:
    09/11/2014 12:45:59,Backup,Unknown,Database was restored: Database: Logik_ATData_TEST<c/> creation date(time): 2012/04/27(13:55:41)<c/> first LSN: 21392:66:267<c/> last LSN: 21392:227:1<c/> number of dump devices: 1<c/> device information: (FILE=1<c/> TYPE=DISK: {'D:\MSSQLBackup\Dzienny\Logik_ATData_PROD\Logik_ATData_PROD_backup_2014_09_10_231001_6391536.bak'}). Informational message. No user action required.
    09/11/2014 12:45:59,Backup,Unknown,Restore is complete on database 'Logik_ATData_TEST'. The database is now available.
    09/11/2014 12:45:59,spid72,Unknown,CHECKDB for database 'Logik_ATData_TEST' finished without errors on 2012-04-26 22:50:05.490 (local time). This is an informational message only; no user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Recovery is writing a checkpoint in database 'Logik_ATData_TEST' (13). This is an informational message only. No user action is required.
    09/11/2014 12:44:53,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    09/11/2014 12:44:51,spid72,Unknown,The database 'Logik_ATData_TEST' is marked RESTORING and is in a state that does not allow recovery to be run.
    09/11/2014 12:44:51,spid72,Unknown,Starting up database 'Logik_ATData_TEST'.
    In Windows application log there were also no other entries, besides these above.
    I also could not check job history, because the job was gone in SSMS jobs list, while the subscription was present in SSMS Replication with info, that last successful synchronization was at 12:42 (there is a 5 min. sync period).
     I also don't understand how the job was deleted, because according this manual (http://www.mssqltips.com/sqlservertip/1803/auto-alert-for-sql-agent-jobs-when-they-are-enabled-or-disabled/) I have 2 triggers in sysjobs table and every time, when
    job is deleted/disabled I got @ notification. In this case I got no @.
    My SQL Server version:
    Product_Version Product_Level Edition
    10.50.2550.0 SP1 Standard Edition (64-bit)
    Any idea what happened?
    Thanks,
    Artur

  • Restore database to azure blob failed

    Hi experts,
      I create a test db in SQL on Azure VM and backup to my storage account successfully. However, when I delete the database and restore using the T-SQL below, it failed. Please help.
    --- query ---
    USE [master]
    RESTORE DATABASE [test] FROM  
    URL = N'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014/test_backup_2014_08_18_013128.bak' 
    WITH  CREDENTIAL = N'AzureCredential' ,  FILE = 1,  
    MOVE N'test' TO N'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test.mdf',  
    MOVE N'test_log' TO N'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test_log.ldf',  NOUNLOAD,  STATS = 5
    GO
    --- result ---
    Msg 3634, Level 16, State 1, Line 2
    The operating system returned the error '50(The request is not supported.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test.mdf'.
    Msg 3156, Level 16, State 8, Line 2
    File 'test' cannot be restored to 'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test.mdf'. Use WITH MOVE to identify a valid location for the file.
    Msg 3634, Level 16, State 1, Line 2
    The operating system returned the error '50(The request is not supported.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test_log.ldf'.
    Msg 3156, Level 16, State 8, Line 2
    File 'test_log' cannot be restored to 'https://sa1qcisapdr.blob.core.windows.net/tcd-sql2014//test_log.ldf'. Use WITH MOVE to identify a valid location for the file.
    Msg 3119, Level 16, State 1, Line 2
    Problems were identified while planning for the RESTORE statement. Previous messages provide details.
    Msg 3013, Level 16, State 1, Line 2
    RESTORE DATABASE is terminating abnormally.

    One has to install Azure Storage Explorer and add Read/Write permissions in Shared Access Key

  • Error during Restore Database

    Hello everyone!
    First of all, i'm sorry for posting another restore problem, but i read all threads related and i still have my problem.
    I have a fresh new install of oracleXE, but when i try to restore de database from a backup store in other disk install in the same computer, using the restore database option include with the application, the program show me these steps:
    STEP 1:
    This operation will shut down and restore the database. Are you sure [Y/N]?
    I write 'Y'.
    STEP 2:
    This operation will shut down and restore the database. Are you sure [Y/N]?y
    Restore in progress...
    El servicio solicitado ya ha sido iniciado.
    Puede obtener más ayuda con el comando NET HELPMSG 2182.
    Recovery Manager : Release 10.2.0.1.0 - Production on Vie Ago 31 10:20:45 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    conectado a la base de datos destino: XE (DBID=2513092923)
    RMAN> set echo on;
    2> startup nomount pfile=C:\DOCUME~1\imgltda\CONFIG~1\Temp\rman_dummy.ora force;
    3>
    echo activado
    instancia Oracle iniciada
    Total del ┴rea Global del Sistema 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    Recovery Manager terminado.
    Enter the flash recovery area location:
    I write this in my flash recovery area, where i have the backup files: D:\Respaldo.
    In this path i have de following folders: D:\Respaldo\XE; Inside this folder i have other folders: ARCHIVELOG, AUTOBACKUP, BACKUPSET, ONLINELOG.
    STEP 3 This is my problem:
    MAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: fallo del comando startup en 08/31/2007 10:24:10
    RMAN-04014: fallo al iniciar: ORA-01261: Parameter db_recovery_file_dest destina
    tion string cannot be translated
    ORA-01263: Name given for file destination directory is invalid
    OSD-04018: No se ha podido acceder al directorio o dispositivo especificado.
    O/S-Error: (OS 21) El dispositivo no est┐ listo.
    Recovery Manager terminado.
    ==================== ERROR =============================
    Restore of the database failed.
    RMAN Error - See log for error .
    Log file is at C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\OX
    E_RESTORE.LOG.
    ==================== ERROR =============================
    Presione una tecla para continuar . . .
    The OXE_RESTORE file show me this:
    Recovery Manager : Release 10.2.0.1.0 - Production on Vie Ago 31 10:23:58 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Windows XP Version V5.1 Service Pack 2
    CPU : 2 - type 586
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1652M/2021M, Ph+PgF:3435M/3914M, VA:2003M/2047M
    Starting with debugging turned off
    conectado a la base de datos destino: xe (no montada)
    RMAN> set echo on;
    2> restore (spfile from autobackup db_recovery_file_dest='D:\Respaldo');
    3> startup nomount force;
    4> restore (controlfile from autobackup);
    5> alter database mount;
    6> configure controlfile autobackup off;
    7> restore database;
    8>
    echo activado
    Iniciando restore en 31/08/07
    se utiliza el archivo de control de la base de datos destino en lugar del catálogo de recuperación
    canal asignado: ORA_DISK_1
    canal ORA_DISK_1: sid=37 devtype=DISK
    destino del área de recuperación: D:\Respaldo
    nombre de base de datos (o nombre único de base de datos) utilizado para la búsqueda: XE
    canal ORA_DISK_1: se ha encontrado una copia de seguridad automática en el área de recuperación
    canal ORA_DISK_1: se ha encontrado la copia de seguridad automática: D:\RESPALDO\XE\AUTOBACKUP\2007_08_27\O1_MF_S_631711029_3F5TQOVT_.BKP
    canal ORA_DISK_1: restauración de SPFILE a partir de la copia de seguridad automática terminada
    restore terminado en 31/08/07
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: fallo del comando startup en 08/31/2007 10:24:10
    RMAN-04014: fallo al iniciar: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
    ORA-01263: Name given for file destination directory is invalid
    OSD-04018: No se ha podido acceder al directorio o dispositivo especificado.
    O/S-Error: (OS 21) El dispositivo no est¿ listo.
    Recovery Manager terminado.
    I really do not know what is my problem and how to solve it. I hope you guys can help me. I'm under a big pressure to solve this soon.
    My Operating System is: WinXP Pro
    I'm using APEX 2.01
    When I create the backup I use ARCHIVELOG enable
    Things i try:
    1. Install fresh oracle XE database, and restore
    2. Install fresh oracle XE database, enable archivelog and restore
    3. Install fresh oracle XE database, enable archivelog, change path of DB_RECOVERY_FILE_DEST to 'D:\Respaldo'.
    4. Install fresh oracle XE database, enable archivelog, change path of DB_RECOVERY_FILE_DEST to 'D:\Respaldo', and execute: @?/sqlplus/admin/movelogs;
    5. Install fresh oracle XE database, enable archivelog, change path of DB_RECOVERY_FILE_DEST to 'D:\Respaldo';, and change DB_RECOVERY_FILE_DEST_SIZE to 20G;
    NOTE: sorry for my english it is not my native language. and sorry for using a spanish version of the database.
    Message was edited by:
    Minning

    Well,
    After a lot of reading, i try this using rman:
    SQL
    1. SQL> connect xx/xx as sysdba
    2. SQL> shutdown immediate
    RMAN
    1. RMAN> connect target XE
    2. RMAN> startup nomount;
    3. RMAN> restore spfile to 'C:\xe.ora' from 'D:\Respaldo\XE\AUTOBACKUP\2007_08_27\O
    1_MF_S_631711029_3F5TQOVT_.BKP';
    4. RMAN> alter database mount;
    5. RMAN> restore database;
    in point n°5 i have the following problem:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: fallo del comando restore en 09/06/2007 16:27:09
    RMAN-06026: no se han encontrado algunos destinos - abortando la restauraci¾n
    RMAN-06023: no se ha encontrado ninguna copia de seguridad o copia del archivo d
    e datos 4 para restaurar
    RMAN-06023: no se ha encontrado ninguna copia de seguridad o copia del archivo d
    e datos 3 para restaurar
    RMAN-06023: no se ha encontrado ninguna copia de seguridad o copia del archivo d
    e datos 2 para restaurar
    RMAN-06023: no se ha encontrado ninguna copia de seguridad o copia del archivo d
    e datos 1 para restaurar
    I try this command to find what's going on:
    RMAN> list backup;
    with this result:
    Lista de Juegos de Copias de Seguridad
    ===================
    Clave BS Tipo LV Tama±o Tipo de Dispositivo Tiempo Transcurrido Hora de F
    inalizaci¾n
    15 Full 736.04M DISK 00:00:19 24/08/07
    Clave BP: 15 Estado: EXPIRED Comprimido: NO Etiqueta: TAG20070824T12
    4938
    Nombre de Parte: E:\RESPALDO\XE\BACKUPSET\2007_08_24\O1_MF_NNNDF_TAG2007
    0824T124938_3DY3143F_.BKP
    Lista de Archivos de Datos en el juego de copias de seguridad 15
    Tipo de Archivo LV SCN Pto. Ctrl. Hora de Punto de Control Nombre
    1 Full 2747434 24/08/07 C:\ORACLEXE\ORADATA\XE\SYSTEM
    .DBF
    2 Full 2747434 24/08/07 C:\ORACLEXE\ORADATA\XE\UNDO.D
    BF
    3 Full 2747434 24/08/07 C:\ORACLEXE\ORADATA\XE\SYSAUX
    .DBF
    4 Full 2747434 24/08/07 C:\ORACLEXE\ORADATA\XE\USERS.
    DBF
    Clave BS Tipo LV Tama±o Tipo de Dispositivo Tiempo Transcurrido Hora de F
    inalizaci¾n
    16 Full 6.83M DISK 00:00:01 24/08/07
    Clave BP: 16 Estado: EXPIRED Comprimido: NO Etiqueta: TAG20070824T12
    5005
    Nombre de Parte: E:\RESPALDO\XE\AUTOBACKUP\2007_08_24\O1_MF_S_631457405_
    3DY31Y0H_.BKP
    Archivo de Control Incluido: SCN de Punto de Control: 2747446 Hora de Pun
    to de Control: 24/08/07
    SPFILE Incluido: Hora de Modificaci¾n: 24/08/07
    Clave BS Tipo LV Tama±o Tipo de Dispositivo Tiempo Transcurrido Hora de F
    inalizaci¾n
    17 Full 736.04M DISK 00:00:20 24/08/07
    Clave BP: 17 Estado: EXPIRED Comprimido: NO Etiqueta: TAG20070824T17
    0028
    Nombre de Parte: E:\RESPALDO\XE\BACKUPSET\2007_08_24\O1_MF_NNNDF_TAG2007
    0824T170028_3DYKQGTC_.BKP
    Lista de Archivos de Datos en el juego de copias de seguridad 17
    Tipo de Archivo LV SCN Pto. Ctrl. Hora de Punto de Control Nombre
    1 Full 2773728 24/08/07 C:\ORACLEXE\ORADATA\XE\SYSTEM
    .DBF
    2 Full 2773728 24/08/07 C:\ORACLEXE\ORADATA\XE\UNDO.D
    BF
    3 Full 2773728 24/08/07 C:\ORACLEXE\ORADATA\XE\SYSAUX
    .DBF
    4 Full 2773728 24/08/07 C:\ORACLEXE\ORADATA\XE\USERS.
    DBF
    Clave BS Tipo LV Tama±o Tipo de Dispositivo Tiempo Transcurrido Hora de F
    inalizaci¾n
    18 Full 6.83M DISK 00:00:02 24/08/07
    Clave BP: 18 Estado: EXPIRED Comprimido: NO Etiqueta: TAG20070824T17
    0054
    Nombre de Parte: E:\RESPALDO\XE\AUTOBACKUP\2007_08_24\O1_MF_S_631472454_
    3DYKR7OZ_.BKP
    Archivo de Control Incluido: SCN de Punto de Control: 2773741 Hora de Pun
    to de Control: 24/08/07
    SPFILE Incluido: Hora de Modificaci¾n: 24/08/07
    Clave BS Tipo LV Tama±o Tipo de Dispositivo Tiempo Transcurrido Hora de F
    inalizaci¾n
    19 Full 740.95M DISK 00:00:20 27/08/07
    Clave BP: 19 Estado: EXPIRED Comprimido: NO Etiqueta: TAG20070827T11
    1642
    Nombre de Parte: E:\RESPALDO\XE\BACKUPSET\2007_08_27\O1_MF_NNNDF_TAG2007
    0827T111642_3F5TPWHN_.BKP
    Lista de Archivos de Datos en el juego de copias de seguridad 19
    Tipo de Archivo LV SCN Pto. Ctrl. Hora de Punto de Control Nombre
    1 Full 2916556 27/08/07 C:\ORACLEXE\ORADATA\XE\SYSTEM
    .DBF
    2 Full 2916556 27/08/07 C:\ORACLEXE\ORADATA\XE\UNDO.D
    BF
    3 Full 2916556 27/08/07 C:\ORACLEXE\ORADATA\XE\SYSAUX
    .DBF
    4 Full 2916556 27/08/07 C:\ORACLEXE\ORADATA\XE\USERS.
    DBF
    Where it says 'Estado' (Status in english) I found this: 'EXPIRED', it seems that my 4 dbf files have some problem, right now i'm looking for a way to solve this, but with no luck.
    I think i need a little help again...

  • Restore database validate ERROR

    I configure RMAN yesterday with the following parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/rman/prod1/%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/rman/prod1/scontrolfile.ctl';
    CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
    I performed a full backup after this and was trying to verify it this morning. But I am getting the following errors:
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "equal": expecting one of: "double-quoted-string
    , identifier, newline, ;, single-quoted-string"
    RMAN-01007: at line 1 column 16 file: standard input
    RMAN> connect target /
    connected to target database: PROD (DBID=444452)
    RMAN> restore database validate;
    Starting restore at 11-SEP-07
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=950 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=1136 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/11/2007 09:59:44
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 258 found to restore
    RMAN-06023: no backup or copy of datafile 257 found to restore
    I listed RMAN back and my full backup is showing. Please help your sister out.

    RMAN> connect target /
    connected to target database: PROD (DBID=35109652)
    using target database controlfile instead of recovery catalog
    RMAN> report schema;
    Report of database schema
    File K-bytes Tablespace RB segs Datafile Name
    1 523264 SYSTEM *** /dev/rprod_sys_000
    2 1047552 UNDO *** /dev/rprod_und_001
    3 130048 MISC *** /dev/rprod_msc_000
    4 4193280 D_R_SMALL *** /dev/rdprod_0000001
    5 3872768 I_R_SMALL *** /dev/riprod_0000001
    6 916480 I_R_LARGE *** /dev/riprod_0000002
    7 637952 D_R_LARGE *** /dev/rdprod_0000002
    RMAN> backup database;
         #This was successful/completed although I don’t have the output.
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size
    1 Full 3G
    List of Datafiles in backup set 1
    File LV Type Ckp SCN Ckp Time Name
    19 Full 2241992994123 10-SEP-07 /dev/rlprod_0000001
    25 Full 2241992994123 10-SEP-07 /dev/rdprod_0000010
    30 Full 2241992994123 10-SEP-07 /dev/riprod_0000012
    31 Full 2241992994123 10-SEP-07 /dev/riprod_0000013
    36 Full 2241992994123 10-SEP-07 /dev/riprod_0000015
    Backup Set Copy #1 of backup set 1
    Device Type Elapsed Time Completion Time Compressed Tag
    DISK 00:07:20 10-SEP-07 NO TAG20070910T225622
    List of Backup Pieces for backup set 1 Copy #1
    BP Key Pc# Status Piece Name
    1 1 AVAILABLE /backup/prod1/backup_db/0girkfgo_1_1
    3 2 AVAILABLE /backup/prod1/backup_db/0girkfgo_2_1
    Backup Set Copy #2 of backup set 1
    Device Type Elapsed Time Completion Time Compressed Tag
    DISK 00:07:20 10-SEP-07 NO TAG20070910T225622
    List of Backup Pieces for backup set 1 Copy #2
    BP Key Pc# Status Piece Name
    2 1 AVAILABLE /backup/prod1/backup_db/0girkfgo_1_2
    4 2 AVAILABLE /backup/prod1/backup_db/0girkfgo_2_2
    BS Key Type LV Size
    2 Full 3G
    List of Datafiles in backup set 2
    File LV Type Ckp SCN Ckp Time Name
    4 Full 2241992994124 10-SEP-07 /dev/rdprod_0000001
    8 Full 2241992994124 10-SEP-07 /dev/riprod_0000003
    12 Full 2241992994124 10-SEP-07 /dev/rdprod_0000005
    17 Full 2241992994124 10-SEP-07 /dev/rdprod_0000007
    24 Full 2241992994124 10-SEP-07 /dev/rdprod_0000009
    27 Full 2241992994124 10-SEP-07 /dev/riprod_0000011
    Backup Set Copy #1 of backup set 2
    Device Type Elapsed Time Completion Time Compressed Tag
    DISK 00:07:37 10-SEP-07 NO TAG20070910T225622
    List of Backup Pieces for backup set 2 Copy #1
    BP Key Pc# Status Piece Name
    5 1 AVAILABLE /backup/prod1/backup_db/0hirkfgp_1_1
    7 2 AVAILABLE /backup/prod1/backup_db/0hirkfgp_2_1
    Backup Set Copy #2 of backup set 2
    Device Type Elapsed Time Completion Time Compressed Tag
    DISK 00:07:37 10-SEP-07 NO TAG20070910T225622
    List of Backup Pieces for backup set 2 Copy #2
    BP Key Pc# Status Piece Name
    6 1 AVAILABLE /backup/prod1/backup_db/0hirkfgp_1_2
    8 2 AVAILABLE /backup/prod1/backup_db/0hirkfgp_2_2
    RMAN> validate backupset 1;
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=950 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=949 devtype=DISK
    channel ORA_DISK_1: starting validation of datafile backupset
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/backup/prod1/backup_db/0girkfgo_1_1 tag=TAG20070910T225622
    channel ORA_DISK_1: restored backup piece 2
    piece handle=/backup/prod1/backup_db/0girkfgo_2_1 tag=TAG20070910T225622
    channel ORA_DISK_1: validation complete
    The problem is that I can’t perform: restore database validate; or test.

  • Can't Remove Datasets From SQL Server Management Studio Restore Database Dialog

    Hello,
    I am trying to restore a database in MS SQL 2008 R2 Management Studio on a Windows 2008 server.
    - I right click the Databases folder and choose Restore Databases.
    - I select the From device radio button as usual and click Add.
    - I specify a .bck file as usual and click OK.
    - When I return to the Restore Database dialog are two backup sets already in the "Select backup location to restore" part of the dialog that I unsuccessfully tried to restore earlier already there.
    - I can see the path to the backup set that I want to add in the "From device" field of the "Restore Database" dialog. The backup is not listed in "Select backup location to restore" as it should be.
    - I tried restarting the SQL Server service and I rebooted the server but the files were still there when I tried to do a restore.
    - There is no option to remove the extra datasets in the "Select backup location to restore" part of the dialog. I am hoping that if I can remove the extra datasets that this will resolve the problem. Does anyone have any idea how to remove them?
    Martin Mann

    Hello,
    My issue was a bit different then your screenshot. I was able to choose a backup dataset with no problem from the "Select backup devices" dialog as you show in the screenshot. At that time the "Restore Database" dialog box you show in the background had
    no backup files, you show filetest1, filetest2. However after clicking the "Add" to files were listed in the "Restore Database" dialog neither of which was the one that I was trying to add. The problem was that the wrong files were listed in the "Restore Database"
    dialog and I couldn't remove them.
    The problem turned out to be two issues. I resolved the problem as follows:
    It turned out that someone had compressed my server c:\ drive and I was not aware of it. Disk compression and SQL server have conflicts. As I had never compressed a drive I didn't know that Windows Explorer displays compressed files in blue letters. So the
    first step was to decompress the drive. Which did not fix the problem.
    What had caused the files to show up was that I had somehow created a backup with two data sets in it. It seems that when SQL Server creates a backup one of the first things it does is check the drive for the required space and create an empty backup file
    the size of the backup to reserve the disk space. It seems that I had created a file that contained space for a backup but no data with another back with data behind it. When I looked at the backup file size in explorer it was almost twice the size it should
    have been.
    I resolved the problem by changing the path of the default backup folder. I was able to do a restore from there. Afterwords the default backup folder worked and the files listed were no longer there.
    Sorry for the confusion and thanks for the help.
    Martin Mann

  • Restoring database using C sharp console application(SQl server 2008 R2)

    Hi All,
    I want to take backup and restore database from one server to another through C sharp Console Application.
    My Backup is working fine but restoring is not working and throwing below error:
    An unhandled exception of type 'Microsoft.SqlServer.Management.Smo.FailedOperationException' occurred in Microsoft.SqlServer.SmoExtended.dll
    Database name is fine while restoring.
    Please give me some ideas in resolving this.
    Thanks in advance.
    blrSvsTech

    Hi Olaf,
    I used Replace database option.
    My code is something like this.
      public void Restoredb(string serverName, string useraame, string password)
                ServerConnection conn;
                if (useraame == " ") // for Windows Authentication
                    SqlConnection sqlCon = new SqlConnection(@"Data Source=" + serverName + @";Integrated Security=True;");
                    conn = new ServerConnection(sqlCon);
                else // for Server Authentication
                    conn = new ServerConnection(serverName, useraame, password);
                Server srv = new Server(conn);
                Database database = srv.Databases["db_Miller"];
                string dbPath = Path.Combine(database.PrimaryFilePath, "db_Miller.mdf");
                string logPath = Path.Combine(database.PrimaryFilePath, "db_Miller.ldf");
                Restore restore = new Restore();
                BackupDeviceItem deviceItem = new BackupDeviceItem(path, DeviceType.File);
                restore.Devices.Add(deviceItem);
                restore.Action = RestoreActionType.Database;
                restore.ReplaceDatabase = true;
                restore.NoRecovery = true;
                restore.SqlRestore(srv);  ------------- Getting error in this line.
                database = srv.Databases["db_Miller"];
                database.SetOnline();
                srv.Refresh();
                database.Refresh(); 
    Thanks in advance.
    blrSvsTech
    Hi blrSvsTech,
    You haven’t specified the restore destination database, please try the following codes:
    public void Restoredb(string serverName, string useraame, string password)
    ServerConnection conn;
    if (useraame == " ") // for Windows Authentication
    SqlConnection sqlCon = new SqlConnection(@"Data Source=" + serverName + @";Integrated Security=True;");
    conn = new ServerConnection(sqlCon);
    else // for Server Authentication
    conn = new ServerConnection(serverName, useraame, password);
    Server srv = new Server(conn);
    Database database = srv.Databases["db_Miller"];
    string dbPath = Path.Combine(database.PrimaryFilePath, "db_Miller.mdf");
    string logPath = Path.Combine(database.PrimaryFilePath, "db_Miller.ldf");
    Restore restore = new Restore();
    BackupDeviceItem deviceItem = new BackupDeviceItem(path, DeviceType.File);
    restore.Devices.Add(deviceItem);
    restore.Action = RestoreActionType.Database;
    restore.ReplaceDatabase = true;
    restore.NoRecovery = true;
    restore.database = srv.Databases["db_Miller"];
    restore.SqlRestore(srv); ------------- Getting error in this line.
    database = srv.Databases["db_Miller"];
    database.SetOnline();
    srv.Refresh();
    database.Refresh();
    If the issue occurs again, please post all the error message here for analysis.
    For more detail information, you can refer to he following link:
    Restore.SqlRestore Method
    http://technet.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.restore.sqlrestore.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1
    Best Regards,
    Allen Li
    Allen Li
    TechNet Community Support

  • Which archivelogs are required for restoring database

    I'm moving to RMAN direct to tape backups (via Netbackup). I'm hoping someone can clarify for me which archivelogs are needed for restoring/recovering a RMAN "hot" backup.
    I will have two tape pools with different retention periods:
    - standard (kept for 2 months)
    - long term (kept for 7 years)
    I plan to backup as follows:
    - archivelogs every 15 mins direct to the standard pool
    - daily backups to the standard pool
    - monthend backups to the long term pool
    Month ends will either be a full or a full plus a cumulative (level 2) (depending on the weekday that month end falls on).
    The bit I'm concerned about is archivelogs. After 2 months they will be expired on tape. But do I need archive logs in order to restore the month end backups?
    At the moment I record the SCN before the backup begins and after it finishes (retrieved via select first_change# first_scn from v$log where status = 'CURRENT'). Before recording the post-backup SCN, I force a logfile switch.
    For clones, I always restore to the post-backup SCN that I previously recorded (rather than using the tag I associated with the backup).
    So a few questions related to restoring after the 2 month window:
    - do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?
    - If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional archivelogs likely to be required?
    - if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all? In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?

    Hi user4835675,
    do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?Yes.
    If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional
    archivelogs likely to be required?Can you do a skip of the daily backup schedule duing the monthend backups run and run the "archivelogs every 15 mins" job to the long term pool?
    Or temporarily stop the "archivelogs every 15 mins" job during the monthend job and run the monthend backup with the "backup database plus archivelog" clause?
    if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all?Yes, you need archivelogs to recover the datafiles to a consistent state.
    In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?You can only restore to a point in time which past the end of the backup.
    Rgds,
    Tycho

  • Can "Backup /  Restore Database " be ulized on two Different Platform

    I've been developing on Windows and now would lile port Database scheme/data /table
    "Everything" to a Linux Server.....
    Can I ftp the backup copy to Lunix were I just install same version of Oracle 10g express and run Restore Database...This would be easier then dumping application then tables then data ...etc and then importing
    CAN THIS WORK ..SHORT ON TIME
    Message was edited by:
    user518110

    Hello Hans,
    However, if you have environment-specific things,
    they will fail. I am not aware of any issues when moving Apex installations from one server to another. I have walked a user through this process of restoring an apex installation from a full database backup on a different server. There seem to be no server related references stored in the Apex repository.
    APEX seems to have some environment-dependant areas (OS file system mapping
    comes to mind) and that may cause grief. In a normal Apex installation (standalone) it has only references to the virtual directory /i/. This needs to be defined on the target server as well.
    This is even less a problem with regard to XE since the mapping it automatically available as the files are all stored in the XML DB.
    Regards,
    ~Dietmar.

  • Heterogenous Backup/Restore (HPUX to Windows)

    Dear all,
    Is there a possibility to backup a SAPDB 7.3 database on HPUX and restore to a windows 2003 Server (32Bit)?
    I tried this while a migration of an old SAP Content-Server but the restore aborts with the following message:
    dbmcli on MFK>util_execute INIT CONFIG
    OK
    dbmcli on MFK>recover_start umzugMFK
    ERR
    -24988,ERR_SQL: sql error
    -9033,Message not available,bad restart record
    How can I get my Content-Server to windows?
    Thanks for your help.
    Best regards Sascha
    Edited by: Sascha Baier on Mar 7, 2008 8:02 AM

    Hello Sascha,
    Please pay attention that you can only import backups of the database instance into systems  
    where the processor works with the same byte-assortment (Little  Endian -> Little Endian;
    Big Endian -> Big Endian). The SAP Note 552464  describes the permitted combinations.
    Please overview the SAP notes::
    552464                What is Big Endian / Little Endian? What Endian do I have?
    1014782     FAQ: MaxDB system copy
                            < 8.  How do I perform a heterogeneous system copy of a content server? >
    Thank you and best regards, Natalia Khlopina

Maybe you are looking for