Database refresh from production to test database

Dear All,
i want to refresh data on test database using production database.Test and production database has same backend structure.
i am using following steps.Please correct if i am wrong any where.
1)Take Full export from producion database
2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
3)do full import on test database.
is this correct way to refresh the data on other enviornmet.
Thanks.
rajesh

user12071799 wrote:
Dear All,
i want to refresh data on test database using production database.Test and production database has same backend structure.
i am using following steps.Please correct if i am wrong any where.
1)Take Full export from producion database
2)DROP SCHEMA ON test database.SKIP schema like sys,system and other oracle schemas.
3)do full import on test database.
is this correct way to refresh the data on other enviornmet.
Hi,
You can do one correction here :
Instead of taking full export backup , take export of only those schemas which you want to refresh.
You can use datapump to make it faster.
For improving speed please check
http://www.dba-oracle.com/oracle_tips_load_speed.htm
Regards
Rajesh

Similar Messages

  • Database refresh from production to test -how to clean existing test env

    All,
    My environment is
    Both Production and Test databases are in two node RAC environment
    Oracle version - 10.2.0.4.0
    OS - RHEL5
    Production database size 80GB
    We need to refresh the test environment from production database. Complete objects, data etc should be refreshed.
    We have a datapump export from production environment. With this export dump from production environment, I need to import into test environment.
    So far, I have imported with this kind of dump to the fresh database only.
    Now, we have already objects, data sitting in the test environment. How to clean the existing test environment and refresh the production datapump export dump.
    I thought of dropping all the tablespaces in test (other than system,sysaux, undo and temp). But not able to drop few tablespaces, it is telling that index is available in other tablespaces, dependency errors etc.
    Which is the best method to clean the existing test database. Management is not interested in dropping the test database and recreating it.

    I understand that you are Newbie , let give me simple steps.
    Follow the steps on testing envi.
    1. Drop only Application users that you want to refresh from Prod(Do NOT drop users system,sysaux.. or tablespaces)
    2. Create the users that you dropped.
    3. using import or import data pump import the data.
    In case you want to import user"A" data to "B" use REMAP_SCHEMA option.
    See the below link for data pump export/import with examples.
    http://oracleracexpert.blogspot.com/2009/08/oracle-data-pump-exportimport.html
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com
    Click here for [How to add and remove OCR|http://oracleracexpert.blogspot.com/2009/09/how-to-add-and-remove-ocr-oracle.html]
    Click here in [ Making decisions and migrating your databases |http://oracleracexpert.blogspot.com/2009/08/download-sql-developer-migration.html]
    Click here to lean [ Static parameters change in SPFILE and PFILE|http://oracleracexpert.blogspot.com/2009/09/how-to-change-static-parameters-in.html]
    Edited by: Satishbabu Gunukula on Sep 14, 2009 5:09 PM
    Edited by: Satishbabu Gunukula on Sep 18, 2009 10:35 AM

  • Database Refresh From ASM Filesystem to Local Filesystem

    Hi ALL,
    I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
    On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
    I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
    Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
    Any usefull links will be helpful.
    Regards,
    Arijit

    Hello,
    You can restore the backup of your Production database which is using ASM to your demo server (using file system).
    Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
    Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
    run
    set newname for datafile 1 to '<file-system-location-on-demo-server>';
    set newname for datafile 2 to '<file-system-location-on-demo-server>';
    restore database;
    switch datafile all;
    recover database;
    }

  • Tablespaces from production to test

    The production database is 400 gig and user want to transfer some of the tablespaces from production to test database. Export/import might be slow can you suggest any method for 9i database

    Thanks Maran
    I was just curious if the OS is different then do we have to convert the tablespace? is that option available in 9i

  • Database refresh from cold backup and hotbackup.

    How can we perform Database refresh from cold backup and hotbackup?

    OracleM wrote:
    How can we perform Database refresh from cold backup and hotbackup?I understand that you have Cold/hot backup and you need recover(refresh) this backup?If yes then restore cold/hot backup and
    sqlplus "/as sysdba"
    startup mount;
    recover database using backup controlfile unil cancel;
    /*then apply all available archive logs*/
    alter database open resetlogs;

  • Missing datafile after cloing oracle EBS from production to test

    Good Day
    I have done a restore from the production system to the test system some time ago . Today I got an error on my test system saying ORA-00376: file 375 cannot be read at this time . After checking I found that the file seems to be missing on the test environment .
    SQL > select file_name from dba_data_files where file_id=375 ;
    /gldb11i/devdb/9.2.0/dbs/MISSING00375
    So I got the name from production and since the file seems to be avilabe in test I did the rename as follows :
    SQL> alter database rename file '/gldb11i/devdb/9.2.0/dbs/MISSING00375' to '/gld
    b11i/oradevd/oradata/dev/gld16.dbf' ;
    Database altered.
    But when I tryed to recover the file I got the error .
    SQL> recover datafile '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01122: database file 375 failed verification check
    ORA-01110: data file 375: '/gldb11i/oradevd/oradata/dev/gld16.dbf'
    ORA-01206: file is not part of this database - wrong database id
    Ofcourse that is becuse my test dataabse was renamed from production name fmprod to test name fmdev .
    Is there any way to recover the file ? . I have all the archive logs avilable . Can nid change the database id in the file if it is only one file ?
    Why did I not get any errors when I was doing the post cloneing process ?
    Please note my databse is versio 9.2.0.6
    Many thanks to all

    1. Use Transportable feature to transport the remaining datafile from production to test.
    How can I do that without stopping production or making it read only .
    2. Reclone only that tabespace from Production to test.
    How , I used the oracle provided scripts for the cloning process ie . adcfgclone.pl
    3. Depending on the size of data contents, manually drop and recreate the tablespace in test, export contents from Production, import into test.
    I am worried about the data consistancy . Will the database be consistant it I do that there might be tables on other tablespaces related to this tablespace
    Thanks

  • System refresh from Production to Quality

    Hi,
    We are going for system refresh from Production to Quality. We are at SAP NetWeaver 2004s with 700 release and at 0021 level. Our data base system is DB6 with the release 09.07.0000
    I understand that there is a note 886102 available for the system copy. But I would like to know how that had been practically implemented from your ready documents like
    1. What would be the BI consultant role during the refresh (I mean where do we involve at). I have seen many links related to this but nothing answer my question, so please don't give me links available.
    2. How to identify tables that need to be copied and restored to retain the correct source systems for data/info sources.
    3. What should be the BI consultant task before refresh?
    4. What should be the BI consultant task post refresh?
    5. What are issues faced post refresh in quality system.
    I request, the consultant who had worked on these refresh can provide me correct solution.
    Thanks in advance.
    Regards.
    Raj

    Our prerefresh activities included
    Inform security team to do no user or authorisation changes for quality during the refresh.
    Set message in development to not release any transports anymore and set message in quality to inform users in quality not to manually import transports into quality and also not approve transports for production. This ensures no transports get moved to quality and production.
    Switch off cyclic import all job (like TMS_0000000038TMS_TP_IMPORT) and the cyclic  RSTMS_DIST_APPROVED_REQUESTS job 
    Prepare list of transports for re-import to quality after refresh and give this to BASIS.
    Post refresh activities included
    Tcodes SM37, SM35 and SP01. Check that BASIS had set all released jobs to status "Susp/Released"
    "All jobs are in 'Susp/Released' state. Set them all to 'Scheduled ' as follows:
    -  Run report BTCTRNS2 to change all to 'Released'.
    - Immediately use SM37 to change all to 'Scheduled' "
    IF ANY ARE NEEDED. Remember to change Exec Target in any job you need to release.
    "Schedule  RSTMS_DIST_APPROVED_REQUESTS to run at x:29 and x:59 - so every 30 minutes.
    Please schedule with DDIC as step user (and not your own user-id)."
    Check the STMS_QA and import queues to be sure that the tranports are correct- no extra ones during refresh???
    Once happy with the above request that Basis schedule the auto import to run every 30 minutes
    First ensure that BDLS has finished and system is ready for use.
    Post refresh issues faced in production
    Many reinit issues
    ACR issues.
    Master data issues.

  • Clone JDEdwards Enterprise One from Production to Test

    Please advice what is the way of Cloning JDEdwards Enterprise One from Production to Test.

    Uhh, this is the JD Edwards World forum. There is actually a separate forum for JD Edwards Enterprise One. Go back to the Forum Home and scroll down past JD Edwards World and you will find the Enterprise One forum. Technically there is a good amount of difference between World and Enterprise One. So to get better answers to your question, you need to post this on the Enterprise One forum. Good luck.
    John Dickey

  • Versioning after migrating from Production to test

    After migrating the Business partner from production to test , Will i be able to delete the latest version and go back to the -1 version. If so , are there any utilities available for the same.

    Have yo used  TDMS-BPL for migrating the Business partner data ?

  • Copying jobs from production to test server

    Hello,
    there are some jobs that are run at particular time in the productive system, the same jobs are not available in the test system.
    can someone tell me, how can i copy these jobs from productive to test system.
    thanks
    Arun

    Hi,
    I dont think SAP has provided any feature to copy job.
    Check the details of job scheduled in prodution & goto SM36 in Test system to create your own job with same details.
    Best regards,
    Prashant

  • XELSYSADM account locked out repeatedly after a refresh from production

    Hello,
    We recently refreshed OIM in dev with OIM from production. I used the OIM web console to change the password for XELSYSADM in dev.
    I am observing a repeated problem of user XELSYSADM exceeding the number of allowed attempts to login and the XELSYSADM is then locked out. I used SQLDeveloper to unlock the user. However, the same problem comes back.
    What did I miss as part of the settings in DEV after the refresh from production?
    Thanks
    Khanh

    I would suggest you check the logs to see when the issue happens and it might show you some other clue to why it's happeneing.
    -Kevin

  • Insert into all tables on a Database on Test Server select from all tables on a database A from production server

     
    hi Friends ,i need a suggestion from  you on how to
    insert data to all tables on a Database  "A " on Test server
    Select data from all tables on  a Database  "A" on Production Server
    where id=123
    Database A is same with Structures on Test and Production also all Tables  will have  Id column in common.
    The purpose of this insert is ,as we all know Production has the latest data and i need to push to test server on request for particular ID only  ( may be weekly once or  twice a week )
    I  have a linked server setup name "LINQ" 
    Example for one table is below , like wise i need a script which does for 154 tables.
    Insert into ABC( id, name)---insert to test server
    Select Id, name  from  LINQ.ProdSerevrname.databasename.ABC where id = 123
    Please help me ..
    Thanks

    Why not use export import wizard for this if you've read access to production?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Database refresh from db A to db B and changing the name from B to A

    We have two databases A and B, both running on HP-UX environment on different servers. both of 10.2.0.1.0 version.
    Now, database A is production with 75.5 GB of data. database B is just skeloton with no user tablespaces.
    1.Our requirement is to refresh / clone database A to B. we are fine in recreating the database B like in case of cloning. but we want to avoid recreating database B as much possible.
    2. After refresh/clone, database B should be renamed_ to database A.
    Can you all please suggest the different methods available both by shutting down / without shutdown of database A and the approximate time taken on each cases.

    Thanks Sanjay for your suggestion.
    As per your case, we need to shutdown database A and delete the database B. We are trying to avoid this case as much as possible.
    We are thinking of options like
    export/import using datapump,
    transportable tablespaces
    restoring and recovering from backups
    In the above scenarios, we no need to delete the database B and no need to shutdown database A.
    Also, I need the approx time for each process and the method to rename the database?

  • Database refresh from Prod to UAT

    Please check whether i have missed out any step in database refresh in 11.5.10.2
    Step 1 preclone executed on source Instance
    Step 2 copied all datafiles in backup mode to UAT instance
    Step 3 controlfile create and opened db in resetlogs.
    Step 4 adcfgclone.pl dbconfig <target context file>
    Step 5 Autoconfig executed on both db aswell apps
    Is it required to execute adcfgclone.pl dbTechstack and adcfgclone.pl appsTier
    environment is apps 11.5.10.2
    db 10g
    os AIX 5.3

    Hello,
    You will need to run:
    perl adcfgclone.pl dbTier [Database Target Context File]
    perl adcfgclone.pl appsTier [Appltop Target Context File]
    and other tasks as per Section 4: Advanced Cloning Options / 1. Refreshing a Target System
    of Note 230672.1 : "Cloning Oracle Applications Release 11i with Rapid Clone"
    Regards, Carlo.

  • Database refresh from standby database

    All,
    OS : Sun version : 11.1.0.7
    I'm doing database refresh using stand by database datafiles in different server.
    1)Disabled Data guard broker in standby database .
    2)Copied all datafiles in mount stage to target server (different server)
    3)created controlfile and started the database in mount stage in different server
    4)Applied all archive log files .
    5)But still the database not recovered .
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 10401147296308 generated at 01/13/2012 09:03:43 needed for
    thread 1
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
    ORA-00280: change 10401147296308 for thread 1 is in sequence #57879
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57879.arc
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc
    ORA-00279: change 10401156453328 generated at 01/13/2012 10:48:01 needed for
    thread 1
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
    ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
    ORA-00278: log file
    '/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
    needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Am I missing any steps here ? Please advice me on this .
    Thanks.

    Hi,
    When you copy files of standby server to another target server ? - Yesterday.
    Is standby is SYNC with primary? or MRP is still running? - ---------yes, standby db is running fine .
    Even you can open database with resetlogs after recreating controlfile, no need of recovery too -- >I was unable to open . So went to apply arch files.
    Do you have archive of thread 1 is in sequence #57887, -- No , Because sequence 57887 yet generate. I have applied all recent available archive log files.
    ORA-00289: suggestion :
    /u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57886.arc
    ORA-00280: change 10401156453328 for thread 1 is in sequence #57886
    ORA-00278: log file
    '/u01/app/oracle/admin/qecgdeva/arch/qecgdeva_727091849_1_57885.arc' no longer
    needed for this recovery
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01196: file 1 is inconsistent due to a failed media recovery session
    ORA-01110: data file 1:
    '/mounts/qecgdeva_data/oradata/qecgdeva/dbfiles/qecgprod_system.dbf'Edited by: 805877 on Jan 12, 2012 10:43 PM

Maybe you are looking for