Cloning the database

My database is running on solaris platform.
How to clone the database(oracle 10g), if the database is runing?
Please send step by step document.
Thanks in advance.
Subash.

Documentation is available from the main OTN page, in the third menu item of the horisonal menu (item that reads Documentation), or from tahiti.oracle.com.
If you have read the documentation and still need more help, you should try one of the product specific forums.
This forum is for:
Use this forum to report broken links or general feedback about Oracle documentation. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered.

Similar Messages

  • Ora 2236 while cloning the database

    Hi all,
    I 'm working on 9.2 on hp-ux . I have got an error ora 2236 :invalid filename while cloning . Can anyone help me??
    Thanks in advance

    oops!! some mistake in control file.. now its workin :-)

  • Cloning the Oracle Database Server which has Grid 11.2.03 and DB 11.2.0.3

    Hi DBA's,
    Did anybody came across cloning a database servers? If i have the OFA for Grid and DB homes i.e /u01/app/oracle so after clone it will be the same across all servers. So the inventory structure will be same also. After cloning changing the listener.ora files to point to new IP/Hostname can bring up the listener. What else? Did anybody tried this things and what all issues have come or what all issues could come.
    Thanks,
    Bhushan Altekar

    Ok. I got the cloned VM . I did the same steps as we use for normal grid and db cloning. Below are the steps i did.
    1) change the ip address
    2) reboot
    3) after reboot wait for few minutes till the ASM comes up automatically
    4) as root run the below command
    /u01/app/oracle/product/11203/grid/crs/install/roothas.pl -deconfig –force
    5) Change the hostname with system-config-network-tui - Edit DNS Configuration and change the hostname here
    6) Edit the /etc/hosts file and enter the ip address and the hostname
    7)Reboot
    8) After the reboot as root run the command
    /u01/app/oracle/product/11203/grid/root.sh
    ================================
    #output of step 8
    [root@cat ~]# /u01/app/oracle/product/11203/grid/root.sh
    Performing root user operation for Oracle 11g
    The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME= /u01/app/oracle/product/11203/grid
    Enter the full pathname of the local bin directory: [usr/local/bin]:
    The contents of "dbhome" have not changed. No need to overwrite.
    The contents of "oraenv" have not changed. No need to overwrite.
    The contents of "coraenv" have not changed. No need to overwrite.
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root script.
    Now product-specific root actions will be performed.
    Using configuration parameter file: /u01/app/oracle/product/11203/grid/crs/install/crsconfig_params
    LOCAL ADD MODE
    Creating OCR keys for user 'oracle', privgrp 'dba'..
    Operation successful.
    LOCAL ONLY MODE
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    CRS-4664: Node cat successfully pinned.
    Adding Clusterware entries to inittab
    cat 2012/08/23 13:14:02 /u01/app/oracle/product/11203/grid/cdata/cat/backup_20120823_131402.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Serveror a Standalone Server
    ===============================
    9) stop the HAS service
    crsctl stop has
    10) Add the listener
    srvctl add listener
    11) Add the asm instance as new cloned grid don’t know about it. So we have to add it and see its added or not.
    12) srvctl add asm -d '/dev/oracleasm/disks/*' # Note here if you specify wrong diskstring. Your Oracle restart stack wont come up automatically after reboot. so please specify it correctly.
    13) crsctl status res # check all the resources are added or not
    14) edit the listener.ora file and change the hostname ( HOST = XXXX part of the file)
    15) crsctl enable has
    Congrats we have successfully cloned the database server itself.
    Please check the steps i did. And add if you think it should be added and taken care of.
    Thanks,
    Bhushan Altekar
    Edited by: user13368428 on Aug 23, 2012 3:13 PM
    Edited by: user13368428 on Aug 31, 2012 4:58 PM

  • Cloning the asm configured database

    Hi all DBA Guys, Have a Nice Day For all
    How to cloning the asm configured database?
    Regards
    S.Azar

    Hi,
    How to cloning the asm configured database?
    The same way which you going to use for without ASM instance.
    Nice day to you too. :)

  • What is the exact difference between Database Cloning and Database Refresh?

    Hi,
    Can anybody tel me the exact difference between Database Cloning and Database Refresh?
    I Have some conflicts in these topics.
    Thanks
    Rajesh

    Refresh is what it says, "refresh" . You have a main site which would always have the data being inserted into it. There would be another site which would remain some where else . This site needs to be refreshed with the primary site. So you need to do export from the primary, push it to the secondary site and done!
    HTH
    Aman....

  • Weird issue occurring after cloning the R12 Vision instance.

    Hi everyone,
    We are currently evaluating R12 using the Vision DB instance. Since I'm seeing that the apps processes like to have at least 2gb of memory, the initial server just isn't beefy enough for R12 so I cloned it over to a better server following metalink Note:406982.1 (Cloning Oracle Applications Release 12 with Rapid Clone)
    There were various cloning issues that came up that fortunately, I was able to resolve myself .. still with tarring up directories, ftp'ing the tar files, etc etc it took almost 2 days to finish the clone.
    Upon starting the clone I'm seeing the following errors reported when the db listener and the apps fndfs listener start:
    TNS-01114: LSNRCTL could not perform local OS authentication with the listener
    TNS-01115: OS error 22 creating shared memory segment of 129 bytes with key 2044160132
    However, the listener processes actually do start even though the above errors are reported and I verify that I can see the server processes for both. In addition, I can login to apps and do everything without any issues and login from sqlplus to the database remotely and everything appears to be working.
    But if I try to look at the listener status or try to stop either listener process I get the above errors. So, if I need to bounce the app or the db I have to actually kill the listener processes in order to do so. Then upon startup, the above situation repeats.
    So, I've opened a SR in regards to this as it appears to be a cloning bug. The only metalink hits I found were talking about the shmsys:shminfo_shmmni setting (currently at 200) but I don't think that's it since I've had 6 apps instances up and running on this particular server before.
    Currently the R12 Vision instance is running with RUP 1 applied. I did see there was a new Techstack update and a new RUP 2 update for apps released just last week but thought I would ask if anyone else who's used rapid clone with R12 experienced similiar issue?
    Thanks.
    Chad
    Message was edited by:
    Chad Smith

    I am usually seen on the on ramps with a sign that says will clone for food...
    I think your perl version is a little low for R12. Here is what I have in an upgraded R12 from 11.5.10.2 Vision:
    which perl
    /lv01/oracle/ltest/apps/tech_st/10.1.3/perl/bin/perl
    perl -version
    This is perl, v5.8.3 built for i686-linux-thread-multi
    Copyright 1987-2003, Larry Wall
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using `man perl' or `perldoc perl'. If you have access to the
    Internet, point your browser at http://www.perl.com/, the Perl Home Page.
    I was clearing 150 GB for an Oracle Enterprise Linux VM for installing/cloning 11i or R12 into, so I will clone a scratch R12.0.2 upgrade instance there. The prepare scripts completed without error, and the cpios are running now.
    prepare DB:
    ApplyDBTier Finished at Mon Jul 23 22:00:38 PDT 2007
    Status: Completed Successfully
    perpare AppsTier:
    Successfully prepared appl_top for staging. Mon Jul 23 22:07:05 PDT 2007
    Creating zip files for appltop.
    Mon Jul 23 22:07:05 PDT 2007
    Done...
    Successfully created zip files.
    Mon Jul 23 22:07:05 PDT 2007
    StageAppsTier Finished at Mon Jul 23 22:07:05 PDT 2007
    Status: Completed Successfully
    I will update thread with the results of the config clone scripts.
    Make sure you link to your environment files correctly:
    lrwxrwxrwx 1 oracle dba 43 2005-02-10 20:29 vis9.env -> /lv03/oracle/vis9db/9.2.0/vis9_hostname.env
    lrwxrwxrwx 1 oracle dba 62 2007-01-26 22:59 visr12.env -> /lv04/oracle/visr12/db/tech_st/10.2.0/visr12_hostname.env
    ln -s /lv04/oracle/visr12/db/tech_st/10.2.0/visr12_hostname.env visr12.env
    lrwxrwxrwx 1 applmgr appl 33 2005-02-10 20:27 vis9.env -> /lv03/oracle/vis9appl/APPSORA.env
    lrwxrwxrwx 1 applmgr appl 66 2007-01-26 22:56 visr12.env -> /lv04/oracle/visr12/apps/apps_st/appl/APPSvisr12_hostname.env
    ln -s /lv04/oracle/visr12/apps/apps_st/appl/APPSvisr12_hostname.env visr12.env
    Yes, mythtv is fantastic. I also like mythvideo and mytharchive. I needed to move unneeded backups and edelivery downloads to make room for recordings...

  • Entity Bean Rollback fails: caches are out of synch with the database

    We are encountering a critical issue where the rollback of a session transaction rolls back any database changes, but doesn't roll back bean changes in memory. When we next access the bean, it returns information that should have been rolled back. The memory cache is out of synch with the database.
    We have a simple session bean S, using container managed transactions. We also have an entity bean E using bean managed persistence. E has a single member <name>.
    We implement a method s() in S with <trans-attribute> Required as follows:
    public void s() {
    Context lookupContext = getLookupContext();
    SHome shome = (SHome) lookupContext.lookup(SHome.NAME);
    S s = shome.findByPrimaryKey(thePrimaryKey);
    System.out.println("-- current name = " + s.getName());
    s.setName("IGNORE");
    EJBContext ejbContext = (EJBContext) getContext();
    ejbContext.setRollbackOnly();
    Since this is BMP, the setName call issues our SQL update against the S record. When the session transaction rolls back, the database changes are also rolled back. But the entity bean in memory shows the modified name. We can see this in the next call to s() since the getName() returns IGNORE rather than the original value. We have also gotten debugged into the underlying instance cache associated with the S bean descriptor. I.e.
    AbstractEJBHome ejbHome = (AbstractEJBHome) lookupContext.lookup(SHome.NAME);
    AlternateHashTable aht = ejbHome.getBeanDescriptor().getCache();
    Looking at this map of bean instances also shows that the bean instance for S is not rolled back.
    From previous conversations with the server technologies team, we understand that during the transaction, we should be working on a cloned copy of the S bean. Upon rollback, the copies should be discarded rather than merged back to the cached bean. They seem to be merged regardless of rollback state.
    We are using OC4J 10.1.3.0.0 (build 060119.1546.05277).

    Actually, what one or the developers in my group found out is two things:
    1) The clone is a shallow copy.They copy the references but not objects themselves. This has been causing problems for us.
    2) It seems that you don't work on a copy and you work on the original and they keep a copy. Now, this is fine IF you don't have multiple threads working on the same Entity bean and we moved our application from Weblogic where it throws an exception if that Entity bean is in use to OC4J which is suppose to copy the bean and doesn't so you have multiple threads possibly modifying the same object.

  • URGENT HELP How Can I clone the database only?

    Hi all
    I have two database, oracle9.2.0.6 running on RHEL4
    one is testing server and the other for the production server
    how can i clone the testing DATABSE on the productioin DATABASE?
    please help me urgent
    Thank You
    Regards

    Hello Tawfik,
    You can use RMAN duplicate with the following link for 9i.
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php
    If you want to clone manually then follow this thread
    Cloning 9i database manually

  • How to refresh the database

    Hello All
    I would like to know how to reresh the database after cloning or before cloning.
    Krish...

    You mean, you like to syncronise both the databases , then, in my opinion, there is one option left to create standby database , however, if you want to syncronise only a part of your database , for example , table's kinds of stuffs , then there is MV's and if you want to replicate on different databases , then there is streams to use.
    hare krishna
    Alok

  • Cloning Oracle database 8.1.7.0

    Hi,
    We have upgraded our database from Oracle 8.1.7.0 to Oracle 8.1.7.4 , applied terminal patch set(Oracle 8.1.7.4) , as we have to upgrade it further to 10g rel2.
    After upgrading to 8.1.7.4, we required to apply the database fixes against the mentioned bugs.
    One of the Serious Server Issues is mentioned below after upgradation,
    Changing the Database Character Set can corrupt LOBs ( Note 118242.1)
    we have gone through the note mentioned above,
    In that one of the point regarding cloning is as below :
    If the database version is 8.1.7.3 or 8.1.7.4:
    - install non-patched Oracle 8.1.7.0.0 from the original CD-Pack
    into a separate ORACLE_HOME
    - take a full backup of the database
    - create a clone database from this backup using the 8.1.7.0.0
    version of the RDBMS software -- contact Oracle Support
    if you need help; the clone should open with the older
    non-patched software without any downgrade steps
    - export all non-system tables with non-NULL CLOB and/or NCLOB columns
    from the clone; do not forget to set NLS_LANG environment
    variable to the database character set for the export session;
    you can use the 8.1.7.0.0 version of the Export utility
    - truncate the exported tables but in the original database
    - reimport the exported tables into the original database;
    do not forget to set NLS_LANG environment variable to
    the database character set for the import session;
    use the Import utility from the original ORACLE_HOME
    - drop the clone database - do not use the clone for other
    purposes as it is not supported to run a patched database
    with the non-patched software.
    How to Clone the Oracle database (8.1.7.0) on windows OS ?
    From where i would get the Cloning steps to accomplish the above steps on Windows OS ?
    With Regards

    Hi,
    Please, refer to Steve Rea's Web for DB Cloning examples:
    For Cloning using Datafile copy:
    http://uaex.edu/srea/Cloning_a_Database_using_Datafile_Copy.htm
    For Cloning using Export/Import:
    http://uaex.edu/srea/Cloning_a_Database_using_Export_Import.htm
    Cheers:
    Francisco Munoz Alvarez
    www.oraclenz.com

  • Cloning A Database In Oracle 11g

    Hi All,
    I am cloning a database from one server to other server. I am using oracle 11g version:-
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Solaris: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    I am new to DBA and I need your help to perform this. I have done a installation of a database but cloning I am doing for the first time. The database size which I want to clone is of 6GB, so i won't think it will take much time to clone the database.
    While checking in google I come to know that the same thing can be performed by RMAN. Can anyone of you suggest me how to do this activity step by step.
    If you can share any links where I can see all of the steps it will be helpful.
    Thanks in advance.
    Regards,
    Arijit

    937670 wrote:
    Hi All,
    I am cloning a database from one server to other server. I am using oracle 11g version:-
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Solaris: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    I am new to DBA 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 tahiti.oracle.com.
    Drill down to your product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    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 you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> 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 <b><i><u>kind</u></i></b> 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 <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> 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.
    and I need your help to perform this. I have done a installation of a database but cloning I am doing for the first time. The database size which I want to clone is of 6GB, so i won't think it will take much time to clone the database.
    While checking in google I come to know that the same thing can be performed by RMAN. Can anyone of you suggest me how to do this activity step by step.
    If you can share any links where I can see all of the steps it will be helpful.
    In the above library, look for "Backup and Recovery User's Guide"
    Thanks in advance.
    Regards,
    Arijit

  • Cloning a Database (and ORACLE_HOME

    I want to make a total copy of a database and its ORACLE_HOME. To me, this looks like a two step process:
    1) Clone the ORACLE_HOME. I completed this successfuly using GC (10.1.0.4)
    2) Clone the database using that cloned ORACLE_HOME. This doesn't appear to work as the cloned ORACLE_HOME from #1 doesn't appear in the available ORACLE_HOME options. I did manually add entries in /etc/oratab and the oraInventory inventory.xml file (and bounced the agent) and still my ORACLE_HOME doesn't appear.
    There also appears to be a way to add an ORACLE_HOME manually -- as it really isn't a database.

    Hello,
    I’m not a trained DBA, and hardly have Patrick’s experience, and although he makes perfect sense, the following are three threads about cloning APEX, and none of them have a (reported) good ending:
    Post Clone Apex steps
    Blank screen after cloning database
    After Cloning from Production Apex Doesnt Work
    Maybe things are not that simple and straightforward, and the accumulated experience at Oracle Support suggests that what seems to be the long and hard way is actually the short and easy one. So, unless Patrick tells you that he has done/witness it himself (and as a member of the APEX development team, it’s highly possible), I would go with Oracle Support.
    Just my 2¢.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Moving the database to different mount point.

    Hi,
    I have R12 app tier on one server and 10gR2 database on separate server.
    I want to move the database files from /u01/oradata/PROD to /u02/oradata/PROD on the same server.
    I know how to do this for the database using alter database rename file .....
    But what do I have to do with the application and context files.?
    Do I just need to edit the values s_dbhome1, s_dbhome2, s_dbhome3 and s_dbhome4 to point to /u02/oradata/PROD and then run adconfig?
    Many thanks
    Skulls.

    I am not cloning, just moving the databaseI know, but Rapid Clone does also help (use the same hostname, domain name, port pool, ..etc except for the directory paths) -- Please note you do not need to use "alter database rename file" as Rapid Clone will take care of that.
    so I think manual changing datfile names is needed, followed by edit context file and run autoconfig?This is also valid.
    Thanks,
    Hussein

  • Cloning a database using rman where source's dbid changed..

    Any idea on how to .. cloning a database using rman where source's dbid changed..

    if you need to change dbid of target then use DUPLICATE command, see the below links.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1008888
    http://www.oracle-base.com/articles/9i/DuplicateDatabaseUsingRMAN9i.php

  • Cloning the DB

    Hi Guys,
    I have 2 questios for you:
    1.I have a full installation of peoplesoft..Now, i would like to clone the database..SO what are the steps that i need to follow.I would appreciate if you could provide me any blogs.
    2.The second question is i have a fully installed PS database with PT8.51 on W2K8R2 64-bit with name"HCMSYS1" and i would like to rename it to "HCMSYS9".CAn it be done?

    Triplicate post - Cloning the DB
    Srini

Maybe you are looking for

  • I cannot edit in iPhoto after upgrading to Yosemite.

    After uploading my photos into iPhoto I can view my photos but when I go to edit I get a black page. I have tried all of the suggestions listed in other forums to no avail.

  • IPod Touch 4G Backup Missing

    I have an iPod Touch 4G with the most recent software and iTunes on my MacBook Pro.  For whatever reason, the audio quit working on my iPod.  After turning it off and back on, still didn't work. Ditto with re-synching it.  So I go to restore it.  I b

  • Calling stored procedure in MS SQLServer

    I have created a db connection,conn pools and am able to sucessfuly query the DB in my database control. I need to run a stored procedure. I am using the statement: * @jc:sql statement="EXEC dbo.mi5DSS_D98" where dbo.mi5DSS_D98 is the stored procedur

  • Unable to find AP transaction journals in GL

    Hello, I have a situation where AP transactions (invoices/payments) are accounted for in AP and appear in the Posted Invoice/Payment Register, however we are unable to locate them in GL (Period-May). This happened right after month end close (May) an

  • AQ/MGW clob issue - strange message

    Oracle version 9.2.0.4 Solaris 8 I am using AQ with the Message Gateway to write to MQ , I am getting the following error/warning (?) in the mgw.log file 2004-09-06 04:07:15 MGW AQD:MsgConsumer 3 TRACE worker0 non-temporary CLOB: size=1420 for class: