Clone the pilot database to test database

How we can clone the pilot database to test database? both DBs are already there...
Can we do export/import or how?

Through FTP copy the datafiles to the folders on other server.
Make new control file.
Change parameter if needed in init.ora.
Startup

Similar Messages

  • How to create the same tablespaces in test database as in production

    I've used the following commands:
    (from 10gR2)
    expdp DIRECTORY=DATA_PUMP_DIR SCHEMAS=MDLOG EXCLUDE=STATISTICS DUMPFILE=mdlogMETADATA.dmp include=tablespace content=metadata_only
    Then:
    (into 11gR2)
    impdp DIRECTORY=DATA_PUMP_DIR DUMPFILE=mdlogMETADATA.dmp include=TABLESPACE sqlfile=c.sql
    According to the following posts it should work
    how to find username and tablespace name indatapump import
    [http://www.rampant-books.com/art_nanda_datapump.htm|http://www.rampant-books.com/art_nanda_datapump.htm]
    instead I obtain
    ORA-39002: invalid operation
    ORA-39168: Object path TABLESPACE was not found.
    Now I'm searching for incompatible options between expdp (10gr2) and impdp (11gr2).. and if include=TABLESPACE should be replaced with other option...
    meanwhile... is there something that can tell me if I'm making any mistakes?
    Tanks

    Ok.. it works.. but I need to edit all DISK GROUP NAME associated to datafiles.. because they are different...
    Is there any option to REMAP "DISK GROUP NAME" ?
    I'm unsuccessfully trying...
    impdp PARFILE=parameter_file.par
    where parameter_file.par is:
    DIRECTORY=DATA_PUMP_DIR
    DUMPFILE=all_schemas.dmp
    REMAP_DATAFILE="'+DATA_PROD':'+DATA_DEV'"
    INCLUDE=TABLESPACE
    SQLFILE=remap_datafile.sql
    no error is reported.
    The following is one of my tablespace:
    CREATE TABLESPACE "TBL_BILLING" DATAFILE
    '+DATA_PROD/rac1/datafile/tbl_billing.273.661541263' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.274.661541267' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.275.661541273' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.276.661541279' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_PROD/rac1/datafile/tbl_billing.277.661541287' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;
    I'd like to have something like...
    CREATE TABLESPACE "TBL_BILLING" DATAFILE
    '+DATA_DEV/rac1/datafile/tbl_billing.273.661541263' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.274.661541267' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.275.661541273' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.276.661541279' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M,
    '+DATA_DEV/rac1/datafile/tbl_billing.277.661541287' SIZE 1073741824
    AUTOEXTEND ON NEXT 536870912 MAXSIZE 32767M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO;

  • Importing Full database wid Crrent production dumpfile on test Database

    hi,
    I have production database 9.2.0.4 on widows server.
    I have Current Dumpfile of Production database.
    I Have test Database on another server which is too 9.2.0.4 on windows server.
    I need to Import full database on test Database with Current Production Dump file.
    COuld u reply the complete procedure
    I have tested on test Server But i am not getting all tables some tables are missing.
    Thankx
    Edited by: oradb on Nov 29, 2010 1:54 AM

    which method are you using to take the dump ?
    if you are using the imp/exp method ,
    then simple create a parameter file with the following parameters :
    indexes=y
    rows=y
    grants=y
    buffer=500000
    ignore=y
    statistics=none
    full=y
    log=logfile.log
    and then run the following command :
    imp system/**** <parfilename>
    Always refer to the logfile to see for successfull completion of the import.
    hope this helps
    - KKukreja-
    that should help
    Edited by: rattlesnake on Nov 29, 2010 3:15 AM

  • Need query for refresh test database.

    Hi,
    I want refresh production database to test database refresh using expdp dumpfile. Please provide steps this is the requirement
    This request is to refresh the Tecnomatix test database MFEM which is
    on the NATEST server wnmcdwtk.natest.gm.com. This database needs to
    be refreshed using an Oracle full backup dump file from the Tecnomatix
    production database MFEP which runs on the production NAENG server
    wnmcdds8.naeng.gm.com. The MFEM and MFEP databases are both at Oracle
    v10.2.0.4.

    Hi,
    You have posted to the wrong section of the forum. This forum us for Berkeley DB.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • 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 Clone the DataBase

    Hi
    How to Clone a Dabase .. ??
    When the Database is Online (Up and Running).
    I want to Clone the Database on the Same System.
    Its a testing scenario.
    In one of the interview I had faced this quesiton.
    Kindly, any one guide me in this regard,
    Thanks,
    Pavan Kumar

    This is a documentation forum.
    You need to read that documentation.
    Specifically, go to http://docs.oracle.com, select the version of the database you are working with, and put 'clone' into the search box. One link for 10gR2 is http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/startup.htm#sthref1874
    IN the future, please have the courtesy to
    1) post in an appropriate forum, as described by the title of the forum
    2) Include product (database) version and operating system
    when asking for assistance

  • Creating a test database from backups of the production

    Hello Experts,
    I am a newbie with very much new in Oracle. I have been provided with the inc0 backup(which comprises even the controlfile backup) of the production database (PROD) taken through RMAN and asked to create a new test database (TEST) using the backup. Can anyone please provide me the steps on how to restore it and create the new database ?
    Database version 10.2.0.4
    I am aware of duplicate database concept using RMAN, but I have been asked to not to connect to the target (PROD) database while duplicating. So, I need to create the test database by using the backup of prod database without connecting to PROD database. Please guide me.

    Refer
    http://arjudba.blogspot.in/2008/05/restore-and-recover-database-to-new.html
    RMAN restore database from another backup of different database name
    When you are restoring using the backup of the production database, the db_name would be same on the auxiliary database. Once you restore and recover the database in your test server, you can change the db_name from prod to test by recreating the controlfile

  • 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.

  • Steps for Refresh the Test Database with cold-backup

    Hello everybody !
    Can any body write me the steps to referesh the test db ( T1 -> already there) from the cold backup of production database ( P1 on another machine ) . all the datafiles are there available in the backup of production ..controlfile or redolog files are not available of production database. Both databases are 9.2.0.8 and are on different machines with same OS of AIX.
    Thanks in advance !

    Steps
    1.) Before Shutting down P1 DB for cold back execute
    alter database backup controlfile to trace;
    2.) copy the created the trace file from udump to test server
    3.) shutdown the P1DB and take cold backup containing all datafiles
    4.) Copy dbf to test servers
    5.) Edit trc file copied in step no 2
    6.) As you are changing the name of db use option SET ( in place of REUSE)
    7.)Also remove unwanted portion
    8.) Change the name of trc file to <somthing>.sql
    9.) Startup test db in nomount stage
    10.) run the above created sql
    11.) tHis will create controlfiles, place db in mount stage
    12.) issue alter database open reset logs
    13) add tempfiles to temp tbsp
    regards
    Pravin

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Clonning the Database

    how to clone database (production DB)? please provide me steps to follow

    Step 1
    The first step is to locate all database files and the init.ora file.
    SQL> select name from v$database;
    SQL> select name from v$datafile;
    Step 2
    Create missing folders on new server or location
    Step 3
    The next step is to copy the database files to the new location. The database you are cloning must be down before you copy any files to ensure the SCN is correct.
    Move the init.ora file
    Step 4
    Change the init.ora to your new name. Change the value to db_name from old name to new name.
    Additional parameters you may need to change:
    audit_file_dest
    background_dump_dest
    control_files
    core_dump_dest
    log_archive_dest
    user_dump_dest
    Step 5
    Issue this SQL command on the old database :
    SQL> alter database backup controlfile to trace;
    Edit the trace file so it appears as:
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "NEWNAME" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 454
    LOGFILE
    GROUP 1 (
    '/u01/app/oracle/oradata/NEWNAME/redo01.log',.....
    Save as script and move to the new location.
    Note the SET DATABASE in the CREATE CONTROLFILE statement..
    Note: The Redo logs don’t appear until the database is opened, but this script creates them.
    Step 6
    Make sure your new init is in the /dbs folder
    Make sure you moved and renamed the password file
    Run
    SQL> @cr_control.sql
    Step 7
    Open the NEW database
    Before opening the NEW database, you will need to perform incomplete recovery. After recovery you can open the database using the RESETLOGS option as show below:
    SQL> alter database recover database until cancel using backup controlfile;
    SQL> alter database recover cancel;
    SQL> alter database open resetlogs;
    Note: The first command produced an error. It wanted archive that did not exist, I also did not move any archive over to the new system.
    The second command should be run regardless of the error and it should run without error. If the third command runs without error you probably have a successful clone and your redo logs should be present.
    Step 8
    Note: I would setup the new database using NETCA before starting this step.
    Change the DBID number (make sure the init.ora has remote_login_passwordfile=SHARED)
    1. Check the DBID before change
    SQL> select dbid , name from v$database ;
    2. shutdown immediate;
    3. startup mount
    startup mount pfile='/u01/app/oracle/admin/NEW/pfile/initNEW.ora'
    4. execute NID
    nid target=sys/oracle@NEW (oracle should be the sys password)
    5. Create a new password file
    Rename the old right now if it’s the same name
    orapwd file=/u01/app/oracle/product/10.1.0/dbs/orapwNEW password=oracle entries=50
    Note: oracle is the sys password
    6. startup mount pfile='/u01/app/oracle/admin/NEW/pfile/initNEW.ora'
    7. SQL> alter database open resetlogs;
    Database altered.
    8. check the new DBID
    SQL> select dbid,name,open_mode,activation#,created from v$database;
    Step 9
    Check the new database name.
    SQL> select name from v$database;
    Step 10
    Create a binary init.ora file
    SQL> create spfile from pfile='/u01/app/oracle/admin/NEW/pfile/initNEW.ora';
    Restart the database

  • Test database

    DB version;10.1.2.0.2
    OS:linux enterprise redhat 3
    Applications;Toad, Designer
    I have to create a test database such as a production database.
    which way is safe and easy for me.
    would you mind give me some information how to create a test database.
    thanks.

    The question is: do you really want to have all your production data in a test database where security is usually less strict? If not, you may either create your test database without data only with object definitions and then create test data resembling your production as closely as possible, or you can clone your database and then do something to your data to strip them of their sensitivity.
    Dusan

  • How to find out the date when an oracle database is upgraded

    Hi,
    I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
    Can you help me to find out these details.
    Thanks,
    Sarayu

    user13312943 wrote:
    Hi Ed and SB,
    Thanks for your replies. How about this option?
    Let us assume I am interested in checking when my database is upgraded to any 11g version.
    Will this query help?
    select min(first_usage_date)  from  dba_feature_usage_statistics where  version like '11%';
    I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
    Thanks,
    Sarayu
    How is it that you or nobody knows when the DB was upgraded?
    I would have expected a formal testing & upgrade plan.
    Does the organization practice safe software & utilize any source code repository?
    Does everyone suffer from amnesia?
    How could a MAJOR database upgrade slip by everyone who should care about such a detail?

  • How to create test database in system (have downloaded mxdb)

    how to create test database in system (have downloaded mxdb)...Can someone pls help as I am new to SAP

    Hi amit,
    the maxdb documentation gives all information which is needed:
    Install the software with SDBSETUP:
    <a href="http://maxdb.sap.com/currentdoc/4c/da3b3c51bd4b3ae10000000a114084/frameset.htm">Installation</a>
    Create a database with DBMGUI
    <a href="http://maxdb.sap.com/currentdoc/84/d8d192570411d4aa82006094b92fad/frameset.htm">Create Instance</a>
    Reagrds, Christiane Hienger

  • Unable to connect to a Test database in UPK.

    Hi everyone, I was wondering if someone could point me in the right direction. I recently had the Production version of UPK cloned to a virtual server and UPK is able to connect to the test database but when I launch UPK on my workstation and start the process of adding the Test Profile, it gives me an authentication error when I choose my current Windows login account to authenticate. I am running UPK version 3.6.1 and Oracle 10g database on a different server. What could be causing this issue and how can I fix it? Please advise.

    Hi,
    Can you test network connectivity with your Unix Server with a Telnet on your DirectAccess client. If it works, problem is not located on server-side but on DirectAccess client-side. Maybe your SSH client force IPv4 use (using IPv4 to connect instead
    of hostnames, or legacy DLL use). I had a similar case with a client-server application that only rely on IPv4. I had to cheat with NETSH.EXE PORTPROXY as illustrated in my blog post :
    http://danstoncloud.com/blogs/simplebydesign/archive/2012/02/11/tcpv4-based-applications-with-directaccess.aspx
    Hope this help.
    BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

Maybe you are looking for

  • Problem with JDBC cc with new java server node

    Hi experts, I have the next situation I hope you can help me. I created an additional java server node in a PI 7.1 system, this because helpful performance. Bought nodes started ok. The problem was when I saw in the RW that all the jdbc channels was

  • Query on SAP Market Place

    Hi, I hope I've selected the right forum for posting a few queries on SAP Market place Please help me with the below: Presently, we have an S-User id that is being used by 2 people. Is there any settings or possibility to get / send an email / SMS in

  • Track changes in customer material info (VD52) and create custom IDocs

    Dear experts, we want to track changes, which are made in VD52 (Customer matertial info record) and create custom IDocs (Z-format) based on these changes. What is the best way to do this? Best regards, David

  • Weblogic.appc (weblogic 9.1) giving error while using with jdk 1.6

    hi, I am trying to build my ear using jdk1.6 with weblogic 9.1. I am getting this error while doing weblogic.appc using my ant scripts. Could some one pls let me know the solution for this problem. [java] Created working directory: c:\windows\TEMP\ap

  • Now you see it, Now you don't? Mystery unmounted drives require recovery.

    My external Firewire 400 [seagate] drive is suddenly disappeared from the desktop after a reboot. When I go to use the Disk Utilities, it says it is an unformatted drive. I have "filesavage" and it sees the data but, ripping it does not save the file