How to create new database with rman backup

hi,
i took a rman backup with nocatelog. can i make a new database with that rman backup.
if yes then how ? i m using oracle 9i.
thxs

'NEW' doesn't seem to be the right word here, but you can DUPLICATE (clone) an existing database or restore it to a new host:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/toc.htm
Werner

Similar Messages

  • How to create new Database With existing Backup

    hi all
    my Scenario is
    i have full backup of my database(11g r2 64)
    i formatted my system and reinstall
    h3. Windows 7 ultimate 64
    how to create the same Database as it was earliar?
    i have
    h3. Oracle 11g r2 same as backedUp 64
    h3. Full Backup Through eterprise manager
    Thanks to all
    Edited by: Rajneesh on Sep 27, 2011 10:53 PM

    You can create a clone database using DUPLICATE DATABASE command as it's shown in the following video tutorial:
    http://kamranagayev.com/2010/06/25/rman-video-tutorial-series-creating-duplicate-and-standby-database-using-rman/
    Or perform disaster recovery using backup files using the following video tutorial:
    http://kamranagayev.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • How to Create new database from cold backup files.

    Dear Experts,
    I have an oracle 10g databae on windows 2003 server.
    The database is in Archive log mode and backup strategy is Taking cold backup ever night.
    Backup steps:
    shut down database.
    copy data files, control files, redo logs, archive logs and parameter files to safe location.
    Startup.
    I have taken a backup at Tuesdaay 1AM and I have archive logs also.
    On Wednesday, I want to Create a new database on another server with the available cold backup files and archive logs. I want to recover the database upto 4PM Wednesday. How can I do this.
    I am not using control file auto backup or control file backup to trace.
    Please help me how can I do this. I am new to oracle database Administration.
    --Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The steps :
    shut down database.
    copy data files, control files, redo logs, archive logs and parameter files to safe location -- you mean the alternate location for the new databaseare correct (except that I would say "alternate location for the new database").
    If you do not have controlfile backups, you cannot either OPEN the database or RECOVER the database until and unless you CREATE the Controlfiles. You have to generate a CREATE CONTROLFILE script using a BACKUP CONTROLFILE TO TRACE from the Production serer and create the controlfile on the new server.
    BEFORE the Startup, I would use
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;The "using backup controlfile" tells Oracle to continue attempting Recovery -- ie doing a RollForward -- till the last archivelog made available to it.
    For the Recover command, you then keep applying the ArchiveLogs from the Tuesday 1am ColdBackup upto Wednesday 4pm.
    Once you have applied the last ArchiveLog, you do an
    ALTER DATABASE OPEN RESETLOGS;Here are my notes of doing a RollForward "Recovery" from a Cold Backup :
    http://hemantoracledba.blogspot.com/2007/05/rollforward-from-cold-backup.html
    If you are attempting all these steps on a different server from your current Production database, you should be safe.
    Once you OPEN the database, you can use CREATE CONTROLFILE or the NID utility to rename the database.
    If you are attempting to create the new database on the same server there are many other precautions you have to take and unless you have experience with cloning databases, I would advice you against doing so (only the RMAN DUPLICATE DATABASE command has a safer method of cloning a database).
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How to create new database from backup.

    Hi !
    i have backup of a database, i do not want to restore, i want to create new database from the backup.
    i am using oracle 11g xe.
    yours sincerely

    If the Location of the datafiles is similar to that of source database then you can consider below steps
    Create Oracle Service using oradim
    set ORACLE_SID=NEWDB
    oradim -new -sid NEWDB -intpwd passwordofthesys -startmode M
    Connect to the RMAN
    rman>rman target /
    restore spfile/pfile and control file from backup
    rman>restore spfile to pfile '_localtion of the initNEWDB.ora_' from '_location of the SPFILE Backuppiece_';
    rman>startup nomount pfile='localtion of the initNEWDB.ora';
    rman>restore controlfile from 'file location of the controlfile Backuppiece';
    rman>alter database mount;
    Catalog the RMAN backuppiece of source database
    rman>catalog backuppiece '_location of the rman backuppiece of source database_ ';
    resotore & recover database
    rman>restore database;
    rman>recover database;
    open the database with reset logs
    rman>alter database open resetlogs;
    rman>create spfile from pfile;
    rman>shutdown immediate;
    rman>startup;
    ==================
    If you have access to source database then you can clone using below rman command:
    +rman target _<source database>_ auxiliary _<new database>_+
    rman>duplication target database to _<your new database name>_;
    ==========
    If the location of the datafiles and logfiles are different from source database then you need to add db_file_name_convert and log_file_name_convert to the pfile before starting the recovery process.

  • How to create new database on Oracle 10g

    Hi All,
    Can any one tell me how to create new database on oracle 10g.
    Thanks in Advance for your help.

    again some confusion here.....
    u said u need a new database in your first post and now you saying u need a new schema..
    one database has many schemas(users)..... ex: scott,sys,system are few of them...
    now it depends you need seperate database for test,dev environment - this is in the case u have many schemas under each database and many tables(objects) under each schema.
    OR
    You just need a separate schema (in same db) for test,dev environment...where in you will have multiple tables in each schema...U need to know the dba credentials of the db to create a new schema.
    ideally u need to have different database...You can create one with out sys/system(oracle users) password as these passwords are db dependent.
    what you need is access to the any machine where server is installed(can be the same mc where you have your dev db or a diff machine) and that will be the machine where your db will be installed (can do it through database configuration assistance),ofcourse you will need windows authentication for this.
    so you login to the same machine or access it from your machine using remote login.
    I hope that is clear.Hope i am not listing things that you already know..Just did it coz of confusion between db and schema
    Message was edited by:
    coolguy

  • Creating new database with old database datafile

    is it possible to create new database with old datafile
    i lost my database ,i have no back up, just i have datafiles,
    i want to create new database and want to create tablespaces with old datafiles
    pls suggest me right one
    tahnk you

    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 339559282 generated at 03/09/2008 12:23:01 needed for thread 1
    ORA-00289: suggestion : F:\ORA9IAS\RDBMS\ARC01901.001
    ORA-00280: change 339559282 for thread 1 is in sequence #1901
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log 'F:\ORA9IAS\RDBMS\ARC01901.001'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: 'F:\ORA9IAS\ORADATA\IASDB\SYSTEM01.DBF'

  • I'm debutante in oracle 10g how to create a database with picture?

    I'm debutante in oracle 10g how to create a database with picture? help please

    d7401ec1-d4d6-4e54-9eb4-2181ac367d0c wrote:
    I'm debutante in oracle 10g how to create a database with picture? help please
    Oracle 10g is obsolete.  Oracle 11g is already at terminal release.
    Have you installed the Oracle rdbms software?
    Installing Oracle and Building the Database
    If you are going to be a professional DBA, you need to learn to
    1) read the documentation
    2) wean yourself from dependence on pictures and GUIs.
    3) read the documentation
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Create new database using rman cold backup

    It oracle 10g database version 10.2.0.4
    I took the cold backup of the database using rman ( Database name TEST)
    1.RMAN> startup mount;
    2.RMAN> backup database include current controlfile;
    3.RMAN> alter database open;
    I aim to create the new database called DEMO using this backup
    Please let know the setps for creating new database
    Edited by: prajeevan on Jan 19, 2011 9:09 PM

    I took the cold backup of the database using rman ( Database name TEST)
    1.RMAN> startup mount;
    2.RMAN> backup database include current controlfile;
    3.RMAN> alter database open;
    I aim to create the new database called DEMO using this backup
    Please let know the setps for creating new databaseIf it is in archivelog mode you can use duplicate to refresh database DEMO from TEST..
    or after cold backup, go to mount ,
    create trace file of controlfile becuase you are chaning database name
    recreate the controlfile
    open database in resetlogs;
    check also http://blogs.oracle.com/AlejandroVargas/gems/RMANDUPDBPRACTICE.pdf

  • How to create new database?

    In the "Oracle ODBC Test" client app, when I try to create a database with ...
    create database swett
    ... I get the error "ORA-01100: database already mounted" error.
    Why? I can create a table with:
    create table mytable ....
    and it builds it in the SYS database. I can insert rows into it and select rows out of it OK.
    I just don't know how to create a new database via ODBC. (There are probably ways to create a database via interactive GUI, but I need to do it via SQL statements for my app.)
    My connection is with user "internal" into SID ORCL.
    I'm using Oracle 8 Server on Netware 5 and the Windows 95 client on a Windows 98 machine.
    null

    Hi,
    I hope, below stored procedure is useful for your scenario.
    CREATE PROC Create_New_Database
    ( @DBNAME VARCHAR(550)
    )AS
    Test : Exec [Create_New_Database] @DBNAME='DB20122013'        
    BEGIN TRY               
    SET NOCOUNT ON   
    DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
    IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
    BEGIN
    SELECT @num= RIGHT(@DBNAME,4) 
    SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10)) 
    IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
    BEGIN
    SELECT @DBNAME_NEW+' database already exists'
    END
    ELSE
    BEGIN
    SET @sql='USE '+@DBNAME+'  '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak''  '
    +' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
    +' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
    move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
    EXEC (@sql)
    SET @sql=''
    SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'') 
    BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'') 
    BEGIN DROP TABLE DailyMain END '
    EXEC (@sql)
    END  
    END
    ELSE 
    BEGIN
    SELECT 'Database is now found or Database name does not mach the scenario'
    END
    SET NOCOUNT OFF   
    END TRY   
    BEGIN CATCH                
     DECLARE @ErrorMessage NVARCHAR(4000)                
        DECLARE @ErrorSeverity INT                
        DECLARE @ErrorState INT                           
        SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()                
        RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )                
    END CATCH;   
    GO
    Regards,
    RAMBHARATH

  • How to CREATE a DATABASE with ORACLE?

    Hello
    Can somebody please just tell me, how do i create a Database with Oracle 10g(Express Edition)? I find it very disturbing that not in one of the dozen Orcale books i have, they explain to you on how to create a DATABASE. They begin with how to create Table, can a table exist without a database?
    I have tried the command line, but it tells me im not connected or some kind of error. I have tried SQL Commands and then it gives me this Error:*ORA-01501: CREATE DATABASE failed*
    ORA-01100: database already mounted
    How come Oracle dont have just a simple button:CREATE DATABASE?
    Somebody please help!

    Duplicate thread ?
    Creating a DATABASE with ORACLE!
    Srini

  • How to create a database with Blank/Unique schema ?

    Hi all,
    I am very new in Oracle 10g ... can you please guide me to create a database with blank/Unique schema. Detailed step-by-step help would be appriciated.
    Regards,
    CJ

    Actually no.
    Not to be difficult but rather because there is no such thing in Oracle.
    You have come here from some other product, most likely SQL Server, with a large sign that reads "I don't want to read the docs or learn anything about this product." That is not a winning strategy in Oracle.
    To start with you don't even know the definition of the word "DATABASE" in Oracle.
    Go to http://tahiti.oracle.com and start by reading the basic CONCEPT docs and learn enough about this product to not be dangerous.
    After you have done so, perhaps, someone will help you further.

  • How to create new docs with custom swatch palette?

    Looking to create new documents with a corporate color palette already available instead of having to load the .ase files. Fat chance?

    Thanks Bob - I was trying that on a test MAC and it just was not sticking. A shutdown instead or a restart seemed to put things back in order and now all is good.

  • How to create new user with more than one default folder

    hi
    A new user created in OCS has only one default folder(Inbox).
    I want to create new user with customized default folder.
    for example:
    a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
    And also I want to automaticly enable the functions:
    When sending messages, place a copy in Outbox
    Keep message drafts in Draft
    Move deleted messages to Dustbin
    who know that?
    thanks

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • How to Create new database (copy all table with data excluding 2 table )with existing database.

    Please follow the scenario:
    using C#
    1) current database file name is DB20122013.
    when user click on new year button
    2)Create backup copy of current database
    3)New database should create with all table(excluding table "Dailytemp" and "DailyMain") with data and database name as DB20132014.
    Musakkhir Sayyed.

    Hi,
    I hope, below stored procedure is useful for your scenario.
    CREATE PROC Create_New_Database
    ( @DBNAME VARCHAR(550)
    )AS
    Test : Exec [Create_New_Database] @DBNAME='DB20122013'        
    BEGIN TRY               
    SET NOCOUNT ON   
    DECLARE @sql VARCHAR(MAX), @DBNAME_NEW VARCHAR(550),@num int
    IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME) AND ISNUMERIC(RIGHT(@DBNAME,4))=1
    BEGIN
    SELECT @num= RIGHT(@DBNAME,4) 
    SELECT @DBNAME_NEW='DB'+CAST(@num AS VARCHAR(10))+''+CAST(@num+1 AS VARCHAR(10)) 
    IF EXISTS(SELECT 1 FROM sys.databases WHERE name=@DBNAME_NEW)
    BEGIN
    SELECT @DBNAME_NEW+' database already exists'
    END
    ELSE
    BEGIN
    SET @sql='USE '+@DBNAME+'  '+' backup database '+@DBNAME+' to disk = ''C:\'+@DBNAME+'.bak''  '
    +' restore database '+@DBNAME_NEW+' from disk = ''C:\'+@DBNAME+'.bak'''
    +' with move '''+@DBNAME+''' to ''C:\'+@DBNAME+'_data.mdf'' ,
    move '''+@DBNAME+'_log'' to ''C:\'+@DBNAME+'_log.log'''
    EXEC (@sql)
    SET @sql=''
    SET @sql=' USE '+@DBNAME_NEW+' IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''Dailytemp'') 
    BEGIN DROP TABLE Dailytemp END IF EXISTS(SELECT 1 FROM SYS.TABLES WHERE NAME=''DailyMain'') 
    BEGIN DROP TABLE DailyMain END '
    EXEC (@sql)
    END  
    END
    ELSE 
    BEGIN
    SELECT 'Database is now found or Database name does not mach the scenario'
    END
    SET NOCOUNT OFF   
    END TRY   
    BEGIN CATCH                
     DECLARE @ErrorMessage NVARCHAR(4000)                
        DECLARE @ErrorSeverity INT                
        DECLARE @ErrorState INT                           
        SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(),@ErrorState = ERROR_STATE()                
        RAISERROR (@ErrorMessage,@ErrorSeverity,@ErrorState )                
    END CATCH;   
    GO
    Regards,
    RAMBHARATH

  • Create standby DB with RMAN backup in Oracle 9.2.0.6

    I am tring to create a standby DB in different host with different directory using RMAN. The commandv with which I tried to create the standby database is the follow:
    (in the primary server side)
    RUN
    ALLOCATE AUXILIARY CHANNEL DUP1 TYPE DISK;
    DUPLICATE TARGET DATABASE FOR STANDBY
    NOFILENAMECHECK
    DORECOVER;
    but RMAN give me this error:
    Starting restore at 18-FEB-08
    channel DUP1: starting datafile backupset restore
    channel DUP1: restoring controlfile
    output filename=/opferi/oradata/oradata01/data01/cntrl01.dbf
    released channel: DUP1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 02/18/2008 17:57:20
    RMAN-03015: error occurred in stored script Memory Script
    ORA-19505: failed to identify file "/opferi/oracle/product/9.2.0/dbs/l4j9127p_1_1"
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    The standby database is in a different host with the same directory structure. I started (with nomount option) with the same init file that the primary database.
    I read solution like the backupset must be copied manually to the standby host, but for me is not a solution.
    The RMAN backup script is the follow (like
    RUN {
    CROSSCHECK BACKUPSET;
    DELETE NOPROMPT OBSOLETE;
    DELETE NOPROMPT EXPIRED BACKUPSET;
    crosscheck archivelog all;
    ALLOCATE CHANNEL ch00 TYPE disk;
    BACKUP
    $BACKUP_TYPE
    FORMAT '/rman/opferi2/df_sipd_%d_%u_%s_%p'
    DATABASE INCLUDE CURRENT CONTROLFILE FOR STANDBY;
    sql 'alter system archive log current';
    backup format '/rman/opferi2/archive_log_%d_t%t_s%s_p%p' (archivelog all);
    RELEASE CHANNEL ch00;
    when $BACKUP_TYPE=0
    Can anyone help my with this problem?? Thaks
    Cristian.
    PS. Sorry my bad english because I am from Latin America

    Requirements are:
    1 the backup should be accessible to both target and auxiliary database in the same location.
    2 On Unix this can be arranged through NFS, provided you set the read and write buffer to 32k.
    Obviously the backup can not be located in $ORACLE_HOME/dbs, as you can not mount a NFS directory over $ORACLE_HOME/dbs without loosing functionality.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for