Create a new Database in an other server using a copie of RMAN backup

Hi all,
I want to create an other instance for our production database. We have disk and tape in rman backup. My question is can i create a new database using our disk backup in an other server?
If some procedure or steps is there, email it to my adresse [email protected]
Hamid.
Thanks

By means of the use of Recovery Manager it is possible to duplicate a database out from a previously taken rman backup. The method will be outlined in the next few lines.
Let's assume a source database named SRCDB and the target database, named GEMINI. A unix like environment is assumed, but it can be implemented on windows as well, just beware of the particular Oracle implementation on a windows platform (orapwd file name, service creation, path format)
1. Create a password file for the Cloned (GEMINI) instance:
orapwd file=/u01/app/oracle/product/9.2.0.1.0/dbs/orapwGEMINI password=password entries=10
2. Configure tnsnames.ora and listner.ora
Properly identify the database at the tnsnames.ora and have the instance manually registered against the listener.ora files, both files located at the $ORACLE_HOME/network/admin directory.
2.a Manually register the database against the listener (listener.ora)
(SID_DESC =
(ORACLE_HOME = /u01/app/oracle/product/9.2.0.1.0)
(SID_NAME = GEMINI)
2.b Added the target GEMINI to the tnsnames.ora
GEMINI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mydomain.com)(PORT = 1521))
(CONNECT_DATA =
(ORACLE_SID = GEMINI)
2.c Reload the listener
lsnrctl reload
3. Create a new init.ora for the cloned database.
Next create an init.ora file for the cloned database. In case the same paths cannot be used on the target host, either because it is the same source host or because those paths are not reproducible on the target, then DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT may be required to be defined
DB_NAME=GEMINI
CONTROL_FILES=(/u02/oradata/GEMINI/control01.ctl,
/u02/oradata/GEMINI/control02.ctl,
/u02/oradata/GEMINI/control03.ctl)
# Convert file names to allow for different directory structure.
DB_FILE_NAME_CONVERT=(/u02/oradata/SRCDB/,/u02/oradata/GEMINI/)
LOG_FILE_NAME_CONVERT=(/u01/oradata/SRCDB/,/u01/oradata/GEMINI/)
# block_size and compatible parameters must match those of the source database
DB_BLOCK_SIZE=8192
COMPATIBLE=9.2.0.0.0
4. Connect to the cloned instance
ORACLE_SID=GEMINI; export ORACLE_SID
sqlplus /nolog
conn / as sysdba
5. Create an SPFILE based on the init.ora
CREATE SPFILE FROM PFILE='/u01/app/oracle/admin/GEMINI/pfile/init.ora';
6. Start the database in NOMOUNT mode:
STARTUP FORCE NOMOUNT;
7. Connect to the TARGET, CATALOG and AUXILIARY databases.
By means of the rman three connections are open, one for the Source Database (SOURCEDB), another for the Catalog database (RCAT), and one more for the cloned database (GEMINI)
ORACLE_SID=GEMINI; export ORACLE_SID
rman TARGET sys/password@SRCDB CATALOG rman/rman@RCAT AUXILIARY /
8. Complete or Incomplete clone (recover)
From the rman the database using one of the following commands:
8.a Clone the database by means of a complete recover.
DUPLICATE TARGET DATABASE TO GEMINI;
8.b Clone the database up to a defined point in time in the past by means of an incomplete recover
DUPLICATE TARGET DATABASE TO GEMINI UNTIL TIME 'SYSDATE-2';
9. Process finished.
Once the process is finished, the newly created GEMINI database is ready to be used as an independent new cloned database.
Ref. RMAN Clone a Database
~ Madrid

Similar Messages

  • Creating a new database on a MySQL server

    Hi,
    I am using the JDBC driver from http://www.mysql.com/products/connector-j/index.html and it works if I connect to an exixting database. I would like to implement extra functionality to my application by allowing the creation of new databases on an existing server.
    Has anyone done this before or does somebody know if this is possible through the above driver or some other way?
    Thank you

    I think it is indeed mysql. The root user by default can only connect from the localhost, so you'll have to create a user first who is allowed the right privileges.

  • Problems wit creating a new database on solaris wit dbca ORA 09925/ORA-1031

    Hi Oracle users,
    I'm using Oracle 10gR2 on Solaris and try to create a new database
    instance.
    I'm using dbca for that task. After making all the settings I get the error
    ORA-09925 and then ORA-1031.
    For the second error I found the advice to run te root.sh to be sure that
    all user privileges for local logins are correct.
    But tis didn't help.
    Do you have an advice for me ?
    Best regards,
    Daniel

    $ oerr ora 9925
    09925, 00000,  "Unable to create audit trail file"
    // *Cause:  ORACLE was not able to create the file being used to hold
    //          audit trail records.
    // *Action: Check the UNIX error number for a possible operating system error.
    //          If there is no error, contact ORACLE customer support.
    $                                   write permission problem or non-existent directory ?

  • Creating a new database containing part of an existing database,same server

    Hi All Experts,
    I have a problem. I am trying to create a new database on a server which already has a database (named qadb10g) running on it. I want the new database to contain only a few tablspaces of the "qadb10g" database. I tried this approach.
    1. Take an RMAN backup of the desired tablespaces from the source database (qadb10g), including system and undo tablespaces as well.
    2. Use "SET NEWNAME FOR DATAFILE ..." RMAN commands to restore all the data files in the new disk location on the same server.
    3. Run "ALTER DATABASE BACKUP CONTROLFILE TO TRACE" command in the "qadb10g" database to generate a "create controlfile...." script.
    4. Edit the resulting file (from step 3) to change file locations and database name, instance name, etc.
    5. Create a new init.ora file for the new database.
    6. From an sql*plus session, with "ORACLE_SID" already set to new database name, run the "create controlfile ..." script which we generated and changed above.
    I performed steps 1-5 successfully, But when I ran the step 6 command, I got an error saying "Datafile Header contains database name 'qadb10g' which is not maching the <newdb name> .....".
    This means, the database datafiles which were backed up and restored from the 'qadb10g' database still contain the same db name in their header and this is preventing new control file from being created. So, the new datbase cannot be created. Can anbody help me how to resolve this problem???
    Any urgent help would be greatly appreciated. Thanks in advance.

    At Step 4, did you use the SET <newdbname> in the create controlfile script ?
    At Step 5, did you change the db_name in the pfile ?
    nid is the new and easier way to change the database name.

  • Creating a new database in Oracle Database 10g...

    I have downloaded a copy of Oracle Database 10g Express Edition from Oracle's website. I am using Windows XP. I am trying to create an Oracle database that I can connect to from Access 2003 via ODBC.
    1. How do I create a new database? I can see options to create tables, views, etc. but not a database.
    2. I have created a System DSN connection in the ODBC Data Source Administrator for the Oracle ODBC driver. Once I create a database in Oracle, how do I actually establish a connection to it from Access? The ODBC code to connect is there, but when I run it, I get an error.
    Any help would be appreciated. Thanks.

    1. How do I create a new database? I can see options to create tables, views, etc. but not a database.If you can see those options then you are already connected to the database. You probably want to create a user, not a database (are you by chance coming from SQL Server?)
    driver={OracleDriver};Dbq=TESTDBQ;Uid=Administrator;Pwd=;You would replace "Administrator" with the name of the user you created in the database.

  • About spfile creating in oracle 10g while creating a new database

    hi everyone,
    i had this problem while i was creating a new database in oracle 10g.when running the database script, it gives an error about invalid option for create temporary tablespace. is it necessary to have an spfile created in 10g. when the script was not working,we tried to create spfile which gives error tht it does not match the parameter db_name. its taking the default db_name=orcl itself..tis not taking our new db name.
    im creating it manually through sql prompt not through DBCA.the problem is that its still accepting the default db name. please send me the solution with syntaxes.
    thanx

    first of all, thanx for giuding me as im a student doing a course in this
    what abt the creation of spfile.. in a documentation for steps in creating database, they have mentioned it as recommended in creating spfile.here are some notes regarding this ....for oracle 10g
    Step 5: Create a Server Parameter File (Recommended)
    Oracle recommends that you create a server parameter file as a dynamic means of maintaining initialization parameters. The server parameter file is discussed in "Managing Initialization Parameters Using a Server Parameter File".
    The following script creates a server parameter file from the text initialization parameter file and writes it to the default location. The script can be executed before or after instance startup, but after you connect as SYSDBA. The database must be restarted before the server parameter file takes effect.
    -- create the server parameter file
    CREATE SPFILE='/u01/oracle/dbs/spfilemynewdb.ora' FROM
    PFILE='/u01/oracle/admin/initmynewdb/scripts/init.ora';
    SHUTDOWN
    -- the next startup will use the server parameter file
    EXIT
    the error : db_name does not match with the parameter.
    its still taking the default orcl database name

  • TNS Protocol error in 11g when creating a new database

    Hi,
    I have installed 11g R2 64 Bit on Solaris 10 64 Bit. The installation happened successfully. Now when I use DBCA to create a new database it says ORA-12560 TNS:Protocol Adapter Error. I am accessing the server console and performing all operations there itself, I can't understand this issue.
    I have also created a listener.ora and tnsnames.ora and its running successfully (but don't really know if it is needed since I have not even created the database). The sqlnet.log shows following
    =====================================================
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/export/home/oracle/product/11.1.0/db_1/bin/oracle)(ARGV0=oracleTSG11G)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=sqlplus)(HOST=sol11oracle-vm)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Solaris: Version 11.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Solaris: Version 11.2.0.1.0 - Production
    Time: 17-DEC-2009 10:30:52
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    =====================================================
    Some excerpts from the trace is:
    =====================================================
    2009-12-17 11:14:38.776040 : nsopen:opening transport...
    2009-12-17 11:14:38.776097 : ntpcon:entry
    2009-12-17 11:14:38.776140 : ntpcon:toc = 1
    2009-12-17 11:14:38.776196 : sntpcall:entry
    2009-12-17 11:14:38.776221 : sntpcall:not detaching from parent with additional fork
    2009-12-17 11:14:38.796184 : sntpcall:hdl[IR]=13, hdl[IW]=12
    2009-12-17 11:14:38.796429 : sntpcall:result string is NTP8 0
    2009-12-17 11:14:38.796527 : sntpcall:Can't read from pipe; err[1] = 8
    2009-12-17 11:14:38.796571 : sntpcall:exit
    2009-12-17 11:14:38.796674 : ntpcon:exit
    2009-12-17 11:14:38.796755 : nserror:entry
    2009-12-17 11:14:38.796776 : nserror:nsres: id=0, op=65, ns=12560, ns2=0; nt[0]=530, nt[1]=8, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
    2009-12-17 11:14:38.796861 : nsopen:unable to open transport
    2009-12-17 11:14:38.796884 : nstoClearTimeout:entry
    =====================================================
    In /etc/host i have added server ip with host name.
    $ more /etc/host
    172.26.171.57 sol11oracle-vm
    The .profile of oracle user
    export TMP=/tmp
    export TMPDIR=$TMP
    export ORACLE_BASE=/export/home/oracle
    export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
    export ORACLE_SID=TSG11G
    export PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$ORACLE_HOME/bin
    Please suggest.

    $ more tnsnames.ora
    # tnsnames.ora Network Configuration File: /export/home/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TSG11G =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.26.171.57)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TSG11G)
    $ tnsping tsg11g
    TNS Ping Utility for Solaris: Version 11.2.0.1.0 - Production on 17-DEC-2009 11:37:10
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /export/home/oracle/product/11.1.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.26.171.57)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = TSG11G)))
    OK (50 msec)

  • Creating a new database

    Ok new to Sun JSE8. How do you create a new PointBase database? Do you have to have PointBase installed on you PC? or is it installed with JSE8? I have a application that was prototyped in Access and now we are going to do it in Java. This is a school project that we are working on but it will be used when we are done creating it. I looked in the help file but could not find out how to do it. I have used MSSql alot and can create a database there and then connect to it but we were trying to get away from MS products a non proft will be using our program and the cost of MSSql would be to much.
    Is everything done by code only for creating a new database and tables?
    Thanks

    Pointbase comes bundled with JSE8.
    To create new pointbase database:
    Go to the following directory under your JSE8 installation directory:
    For example:
    \jstudio_ent8\AppServ8.1UR2\pointbase\tools\serveroption
    Use the startconsole file to start the pointbase client console.
    The pointbase GUI will come. This has the option to create new database by going to the pointbase console menu. Also, remember to start the pointbase server before. You can start it from the IDE, by going to Tools -> Pointbase Database.
    Also, the following sample databases are installed with the Pointbase installation:
    sample
    sun-appserv-samples
    To connect to the Pointbase sample database, you can check the IDE help online. Simply search for pointbase.

  • Newbie....  How do I create a new database in mysql????

    I have added the mysql service, but I have no idea where the front end is, or how to access it so that I can create a new database, and set the user name and PW for this database??? I am used to using things like MAMP and XAMP, where it has the web front end. Does OSX server have the same thing? I want to configure a test Joomla test site.... Thank you...

    There's no built-in GUI for managing MySQL in Mac OS X, but you're free to install any of the MySQL tools to do so if you're not up to managing it via the command line.
    There's the free PHPMyAdmin, or the commercial NaviCat, amongst others.

  • How do l create a new database in Oracle 10g Express

    How do l create a new database in Oracle 10g Express, other than the one that is created on installation?

    Hello,
    You cannot create a second XE database on the same server.
    But, Oracle database can support as many Schema as you want.
    "Oracle database" is like "SQL Server Instance" and "Oracle Schema" is like "SQL Server database". I means by this shortcut that for
    the end users accessing to different Schemas looks like accessing to different databases.
    You can have several applications on the same database. Each application has its own Schema and Datafile (Tablespace) structure.
    So on your XE database you can add a new Tablespace and create a new User/Schema as follows:
    sqlplus /nolog
    connect / as sysdba
    create tablespace {color:red}new_tablespace_name{color}
    extent management local autoallocate
    SEGMENT SPACE MANAGEMENT AUTO
    datafile '{color:red}complete_datafile_name{color}' size 100M autoextend on next 10M maxsize unlimited;
    create user {color:red}new_schema_name{color} identified by {color:red}password{color}
    default tablespace {color:red}new_tablespace_name{color}
    temporary tablespace TEMP
    quota unlimited on {color:red}new_tablespace_name{color}
    grant connect, resource to {color:red}new_schema_name{color};Then you can connect to this new User/Schema as you defined it and create your new structure and load datas.
    Hope it can help.
    Best regards,
    Jean-Valentin

  • How to create a new DataBase using Oracle 10g Express Edition???

    Hello, I am new to Oracle, I am used to Microsoft SQL Server (Enterprise Manager).
    Here in Oracle I do not get how do I create a DataBase, and then create tables on it.
    could anyone please explain to me how to do it?

    A SQL Server database is roughly equivalent to an Oracle schema.
    You should rarely need to create a new database. If you do need to create a database, get a 'for fee' edition of Oracle and use the dbca tool (Database Configuration Assistant) to do that. In fact, you are only allowed to have one XE database on the machine.
    However, you can create as many schemas in an existing Oracle database as you need. (One schema, owned by userid SYS, is roughly equal to your 'master catalog'.)
    You can create other schemas simply by
    1) creating a userid that will own the schema (one designated for maintenance of the schema);
    2) grant that userid appropriate privileges, such as 'CREATE TABLE', 'CREATE VIEW' as shown in the SQL Reference manual under the GRANT section;
    3) provide that userid with a quota in one or more tablespaces (see the CREATE USER command in the SQL Reference manual);
    4) create the objects, such as tabels, views, sequences, stored procs and functions, etc. (as in the SQL Reference manual);
    5) create the users who will access the objects, and grant them the CREATE SESSION capability (as in the SQL Reference manual);
    6) grant access (select, update, execute, etc.) on the schema objects to these users (as in the SQL Reference manual);
    7) if desired, create synonyms on the schema objects so the users do not need to use fully qualified syntax such as "SELECT col FROM schema.table;" (as in the SQL Reference manual).
    In case you are interested in looking at the SQL Reference manual, it can be found at http://www.oracle.com/pls/db102/portal.portal_db?selected=1 ;-)

  • How to create a new database

    hi
    I am not able to create a new database other than the one created during the installation. i am using the oracle 9i client. i am able to create new database from the enterprise manager console,add a database manually but not able to connect to the new database.Can any one help me in solving this problem
    Thanking you in advance
    Dinny

    Hi
    I am using the client and in the sever i have created a new database other than the one created during the installatiom. i have installed the standalone in the server and not the management server. From my client machine iam able to connect to the database created in the server during the installation but not to other databases that i have created in the server from the Add database to tree option in oracle enterprise manager. It is showing insufficient privilage.So can can i get the previlage ? where to set these options ?
    Thanking you in advance
    Dinny

  • Some strange after create a new database

    Hi All,
    I try to create a new database on the Win 2000 ORA8I server (existing have 1 db already), after using the DBCA create it, I try to connect to new DB, but I found that all the control file are point to the old db's.
    I've check that there are 2 SID (2 SID service found in services), tnsname is point to 2 different sid, listener also point to 2 different sid, below is the part of listener.ora and tnsname.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = SVR1)
    (ORACLE_HOME = d:\oracle\ora81)
    (SID_NAME = SVR1)
    (SID_DESC =
    (GLOBAL_DBNAME = SVR2)
    (ORACLE_HOME = D:\oracle\ora81)
    (SID_NAME = SVR2)
    )

    I found that the problem is not so simple....
    I try to recreate the servicesid and listener, without start the old sid service, the new SID cannot (should be "can") connect to new DB, but.
    When I try to start the new SID and old SID at the same time, the new and old SID will connect to the same old DB.
    I try to stop the old service again, both new and old SID cannot connect to DB.
    try to recreate the service and listener and only start the new sid service, the sid can connect to new DB again.........
    does anybody can tell me what's going on ?? I will be crazy......

  • Database defragmentation or creating a new database?

    Hi,
    We want to reclaim the whitespace in our Exchange database, so do you recommend creating a second database and moving the mailboxes over there, or shall we go with offline defragmentation?
    Database size: 400GB.
    Mailboxes counts: 300.
    Thoughts and recommendations?

    How much free space is in your database?  If it's under 20%, then I'd stay as you are.  If it's between 20% and 40%, it becomes a judgment call.  If it's over 40%, then I'd create a new database and move the mailboxes - primarily because this
    will allow your users to access unless their specific mailbox is being moved (and even then, the access I available for most of the move anyway), and you will both remove whitespace and eliminate any bad items you may have in the database.  Just keep
    in mind that when you move the mailboxes, any recoverable mailboxes will remain on the original database unless you re-associate them with accounts so you can move them.  (And if you re-associate them with accounts and move them, their "deleted on"
    date counter will be reset to the date you move them, if you delete them again.)
    Taking the database offline so you can compact it will leave your users out of email access for the duration of the process.  And if you have a DAG and multiple database copies, you will need to reseed them each after the process is complete. 
    If you create a new database, with associated copies on other servers, the move mailbox process will automatically reseed the database.
    Ever since Exchange 2000, when multiple database were available on a single server, I have been leery of running an offline defrag.  And since Exchange 2010 and its move requests, I am adamant against doing one - we reclaimed nearly 24TB in our 24 databases
    (each was nearly 2 TB, and each is now under 1 TB), all using the process I suggest above.

  • Creating a new database with exporrt file

    Hi there,
    I am to create a new database with an export file.
    I have the export file (exp) and the new environment set up (Oracle10g on UNIX)
    Can someone gimme some guide lines and what I might probably face and new to correct.
    Regards.

    Well I don't think that it would be possible to show you a full db import/export here. All you need to do s a full database import from the source database to the target database.
    And I have to rrename
    the db to some other name.
    Use the DBNEWID utility to do it.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dbnewid.htm#i1004664
    HTH
    Aman....

Maybe you are looking for

  • How to convert PDF to word in UK english

    When I convert it goes straight to USA and there are a lot of gaps between letters etc.

  • Unable to make changes to LAN Settings in IE after Group Policy Preference is applied

    Hi all, I have an IE10 group policy preference on a Server 2008 R2 domain that is pushed out to Windows 7 SP1 x64 clients. This IE10 GPP is used to push out proxy settings etc. The GPP is applied fine, however when I go into LAN Settings in IE and ma

  • Can't Display Shift Note Attachment (SHN2)

    Hi Gurus, I can make shift note attachment via tx. shn1. Before it was saved, I can still display the attachment (excel format, or plain image). The attachment more or less looks like this: filename.xls When I save, and check it in display mode via t

  • Laserjet 4 plus prints after 6 to 8 pages

    The printer initially prints a blank page working up to a pretty good print after 6 to 8 pages, and prints fine if I continue to print. If I let the printer sit then try to start printing the same problem occurs. I installed a new toner cartridge, ma

  • Error Installing oracle10g

    I am installing orcale10g on a Redhat Enterprise 2.4.21.x AS system. The Hardware platform is a HP-compaq Dl380 with 4gig ram and 120gigs of disk space. The installation fails because opmn can't start. Opmn can't start because the libmodapi.so librar