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

Similar Messages

  • How can I change the database & schema used by an Application?

    Hi community,
    I am very new on Essbase and I need help to find out how can I change the database connection (and schema) used by the database of an Application. The figure is that I need to point this database to a QA environment (currently it points to DEV).
    If I do a right click over the properties of the database, I can see the following tabs: [ General ][ Dimensions ][ Statistics ][ Modifications ][ Compression ]. However, there is no option to change the database connection.
    Is there a way to do this?
    Thanks in advance for any help! Cheers!

    Are you trying to change a database connection of Planning application?
    Essbase application do not have a relational connection.
    Regards
    Celvin
    http://www.orahyplabs.com

  • How can I know the database is using Cost Based or Rule Based?

    Hi all expertise,
    How can I know the database is using Cost Based or Rule Based?
    If cost based it is using, what methods are need to use to minimize the cost when database is running? And which tables I can see the performance of the database?
    Thanks
    Amy

    how to see database setting ?
    use this
    SQL> sho parameter optimizer
    NAME TYPE VALUE
    optimizer_dynamic_sampling integer 1
    optimizer_features_enable string 9.2.0
    optimizer_index_caching integer 0
    optimizer_index_cost_adj integer 100
    optimizer_max_permutations integer 2000
    optimizer_mode string CHOOSE
    choose means if table statistics is available then it will use cost
    else
    use rule based optimizer
    for seeing performnace of table use
    set autotrace on
    and run your query
    if it doen't show cost.it means it use rule based
    for using cost based
    u will calculate table statistics
    9i
    dbms_stats.gather_table_stats('owner','table');
    8i
    analyze table <table_name> compute statistics;
    hope it will help you
    kuljeet pal singh

  • Hello i would like to stop using outlook (office 2011) and use instead "mail": how can i transfer the database?

    hello i would like to stop using outlook (office 2011) and use instead "mail": how can i transfer the database?

    Hello Sylviefrombuenosaires, here is a link from macworld that can solve your question. Try reading this.
    http://www.macworld.com/article/158112/2011/02/export_outlook_ical.html
    Carlos

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • How can i open the database by force?

    my database is crash because the machine power problem, when i restart again, oracle error say the control file is older than the system tablespace file,
    so i have to create the controlfile again, then , the database need recover , but my database is not archived, it can't take a media recoer , what should i do?
    how can i open the database even lost some data?

    Pallofa,
    Try open img file using some software.
    You need a software to mount the img file.
    http://techie-buzz.com/how-to/mount-iso-files-as-a-virtual-cd-dvd-drive.html
    If thinstead of using an img file, just use this command.
    repair-bde e: d: -rp xxxx-xxxxx-xxxxxx-xxxxx -f -lf c:\log.txt
    where d is the portable disk whereyou want the data and d drive should at least
    equal to e drive.
    Where xxxx-xxxx-xxxxx is the 48 digit recovery password.
    -lf will generate a log file and point to a certain location, here I have pointed to c drive.
    After repair-bde is completed, run chkdsk /f on D drive, then try to access your data.
    Manoj Sehgal

  • I build databases with appleworks over 10 years on my ibook, and continue to add to them. Now I have a macbook pro. How can I translate the databases to a compatible program?

    Over 10 years I have built several databases with Appleworks. Now I have a macbook pro. How can I translate these databases to a 10.6.8 program?

    Thanks Joe, but that won't work. I've finally found a site that answers the question: http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    I can only say that by Apple I have been royally screwed. I'll never buy another mac -- everything I do would simply disappear into cyberspace.

  • Help-how can i see the sequence in the table?

    Hi, i created sequence for the table. but how can i view the sequence as a column in the table? like the sequence started with 1 and increment by 1. how can i make it available as a column in the table? thanks a lot for anyone's prompt reply. much appreciated.

    eg.
    Create table:
    create table t1 (
    id number(10),
    col1 varchar(2)
    Create sequence:
    CREATE SEQUENCE "PEMARTEN"."T1_ID" NOCYCLE NOORDER CACHE 20 NOMAXVALUE MINVALUE 1 INCREMENT BY 1 START WITH 1
    You can do 2 things:
    Use the sequence in your insert query:
    eg.
    insert into t1 (id, col1) values (t1_id.nextval, 'example');
    OR
    Create a before insert trigger (prefered):
    CREATE OR REPLACE TRIGGER "PEMARTEN"."BI_T1" BEFORE INSERT ON "PEMARTEN"."T1"
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    DECLARE
    new_id number;
    BEGIN
    SELECT t1_id.nextval
    INTO new_id
    FROM dual;
    :new.id := new_id;
    END;
    Now you can just insert data:
    insert into t1 (col1) values ('example');
    sequence.nextval increments the sequence and returns the next value
    sequence.currval returns the current value of a sequence
    I hope that helps.
    Kind regards,
    Pieter

  • How can i find the database session of Configurator request ?

    Hello at all.
    When a user click on configure button of configurator from application i want trace his session on database.
    How can i identify the Sid ?
    Many thanks.

    Search for reg.properties file on server, i think it will give you name of database..
    Or
    Run configuration again and cancel it once you reach to data details (Not recommended).
    Cheers!
    Sh!va

  • Can somebody help how can I extend the carpet sample to fill out the hallway?

    I would need to extend the piece of capret sample to replace the old plane carpet. I'm pretty new to PS and have trouble with the crazy carpet patter plus the room is getting narrower.
    Can somebody give me some tips or any kind of help? I really appreciate it. Thank you!

    Ok, the question is how can i extend the range with
    my airport extreme base,
    With an Airport Express or another Airport Extreme
    I have A netgear WNP802, it
    has a repeating feature.
    Which won't work with your Airport Extreme
    < But i am wanting to have the
    netgear and the apple airport extreme talk to each
    other so that i can put the net gear in a seperate
    room to extend the range of signal. </div>
    This is not possible.
    How can i do this?
    You can't.
    Netgear and Apple use different chips which means they won't and can't talk to each other when it comes to extending networks.

  • How can we clone the Oracle database in new Oracle Home

    Hi,
    I would like to clone oracle database into new oracle home. How can we set it using OEM.
    I am using 10g grid control. Target db is on solaris
    Thanks
    Naveen

    after logging into target database, under maintenance tab, data movement header; ther is "clone database" option. When you click on it; you'll see :
    Clone Database uses RMAN to duplicate a database from:
    -- An open database in ARCHIVELOG mode, or
    -- An open database in NOARCHIVELOG mode (restart required), or
    -- A saved working directory from previous cloning
    Clone Database performs the following operations:
    -- Backup each database file and store it in a working directory
    -- Transfer each backup file from source to destination host
    -- Restore each backup file to existing destination Oracle Home
    -- Recover the cloned database with saved archived log files
    -- Open the cloned database with resetlogs
    It seems to be for cloning to a different host, but i guess you can chose the same host for source and destination. (I've never used cloning on em by the way :))
    But firstly, you should create a new oracle home, you can simply copy your oracle home with a new name (cp -R /oracle/app/oracle/product/10.2.0 /oracle/app/oracle/product/10.2.0.new) or make a new installation.
    I suggest you to do this cloning with CLI. You should take a full backup with RMAN, copy the oracle home, create a new initNEWSID.ora file and nomount the database, restore (or simply copy) controlfiles, restore database (with set newname commands), recover database, open resetlogs.

  • How can i change the database name on MaxDB?

    Hello.  I need to do a homogeneous copy where the source system is the productive system and the target system is the quality system. Therefore after to restore the data backup i need to change the database name of quality system (from CLP to CLQ) but i'm not sure that it could be possible because in the MaxDB documentation i didn't found nothing about that. please can you tell me if it is possible and how i change it?
    I work with MaxDB 7.6.04.11.  Thanks for your help.

    > I will try to explain better: the SID of the source database is CLP and the SID of the target database is CLQ, when you say "once you restore the DB, it will use the new SID", i understand that the new SID in the target database would CLP or am i wrong? and i need that the SID in the target database remains CLQ after the restore.
    Hi Ivonne,
    what you've described as your requirement is exactly what will happen, when you just perform the procedure that Eric described to you.
    A recovery won't change the SID of the instance you perform the recovery to.
    All it does is: take the instance as is and load the data pages to the data area. Afterwards the log files may be recovered.
    Think of the instance as a kind of container for your database.
    The instance itself is not the database - so the SID does not change with the content of the database.
    Hmm... why not simply try it?
    Create a little test instance and back it up.
    Create another instance with a different name and recover the backup of the first instance.
    You will still have both instances, each with its original name.
    regards,
    Lars

  • Help, how can I create the minor number if

    I know my device path is c0t3d2s2. eg. how can create a minor number which will be used as an input to makedevice() based upon the above info. Thanks in advance.

    Hi!
    The primery thing under Solaris is /device tree. The entries in this
    directory, so called device special files or minor nodes, are created when drivers
    attached/loaded, usually in attach routine.
    The device special files are created under /devices with a help of
    ddi_create_minor_node. There is a way to create compatibility links
    under /dev like /dev/dsk/c0t3d2s2. How to do it?
    Each minor node has so called "node type" (see:
    ddi_create_minor_node(9F), /usr/include/sys/sunddi.h).
    Solaris has programs family (devfsadm in S8) to make links into /dev,
    according "node type"
    /usr/sbin/disks - makes links for "node type" = DDI_NT_BLOCK
    /usr/sbin/tapes - makes links for "node type" = DDI_NT_TAPE
    /usr/sbin/ports - makes links for "node type" = DDI_NT_SERIAL
    /usr/sbin/audlinks - for "node type" = DDI_NT_AUDIO
    /usr/sbin/devlinks - for "node type" = DDI_PSEUDO and some other types.
    These programs are called each time the system is reconfiguration-
    booted. They only know predefined "node type" and have some internal
    rools, expressed by regular expressions, e.g. for "audlinks":
    $ strings /usr/lib/devfsadm/linkmod/SUNW_audio_link.so
    ((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
    sound,
    sound/([0-9]+)
    isdn/([0-9]+)
    sound,
    sound/
    isdn/
    mgt,mgt
    isdn/
    /mgt
    audio
    ddi_audio
    audio
    ^sound/[0-9]+(ctl)?$
    audio
    ^isdn/[0-9]+/mgt$
    audio
    ^isdn/[0-9]+/aux/0(ctl)?$
    audio
    ^isdn/[0-9]+/(nt)|(te)/((dtrace)|(mgt)|(b1)|(b2)|(d))$
    audio
    ^audio(ctl)?$
    SUNW_audio_link: minor_init: regular expression bad: '%s'
    ((nt)|(te)|(aux))\,((0)|(0ctl)|(d)|(b1)|(b2)|(mgt)|(dtrace))
    audio
    sound/%d
    audioctl
    sound/%dctl
    SUNW_audio_link: audio_process: can't find match for'%s'
    When you buld /dev subtree for your driver you must either to follow
    they demands or create links by hand (by script).
    You can also set the access rights for the device special files from
    within the driver.
    You can do it with a help of "add_drv". See -m key. Information from
    "add_drv -m" fall into "/etc/minor_perm" and will use each time when
    minor node will create.
    Vitaly Filatov
    Moscow, Russia
    [email protected]

  • How can I use the database default time rather than Java supplied time

    I've searched over and over and nobody seems to have this issue so maybe its just me!
    When inserting a record I would like the a create_date column to automatically use the database time rather than a supplied time via JPA. That was all times a relative to the database which makes sense.
    The trouble is I cant figure out how to do this in a sensible manor.
    If I specify an column like :
         @Temporal(TemporalType.TIMESTAMP)
         @Column(name = "CREATE_DATE")
         private Date createDate;
    and IDL
    CREATE_DATE TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_DATE NOT NULL
    If I leave createDate null I get an exception. If modify the column to allow Nullable then column is set as Null.
    If I leave the column out of the entity bean and then and create a row then the database current time is inserted. The trouble then is that if I want to read the date I'm going to have to create a copy of the bean but with the CREATE_DATE in it, and this doesn't make sense.

    I should also mention that TopLink has always supported the ability to retrieve the current time from the database for use in optimistic locking. The TimestampLockingPolicy offers the ability to configure the next value being retrieved from the database instead of using the local time from the JVM. Our extended optimistic locking configuration does not currently support setting this option but it could be done using a descriptor customizer which can be configured in your persistence unit properties.
    Using optimistic locking may be a good solution for the last modified date since it will also ensure that you do not corrupt the database if someone else has incremented this value since your last read.
    Doug

  • How can I edit the database in Lookout OPC Modbus driver OPC sever with the address that has a write attribute?

    When I use Lookout Modbus driver OPC to communicate with my instrumnets, I edited the database number such as 41202 that has a Write attribute in my instrumnet manual, the OPC explorer got bad data, and the OPC server gave the illegal address alarm, when I input the address such as 41203 that has R/W attribute, it worked very well. Is there a way to fix this problem. When I used other OPC server, there was no this kind of problem. Thanks!

    Thanks for your suggestion. I checked the Modbus manual of my instrument, the register is 16 bit. I tried to edit the data according to the Modbus data member in lookout modbus drivere server for several different member, but the OPC still gave me the illegal address. I think the problem may be produced by their attribute, for the address 1201 and 1202, they have the write attribute, for other addresses, they have W/R attribute, and they can be read or write through Lookout OPC server perfectly. when I used the demo OPC server from other company, it can work well, but it is not convinient for me to use Labview when I use that software. I prefer NI Lookout OPc server. I am using the Lookout 4.5. I am wondering whether the Lookout has some shortcoming when I
    use the Modbus driver. Please give me any suggestion, is there any newest version of Lookout OPC sever? Thanks!

Maybe you are looking for