Help in refrshing TEST from PROD database

Hi All,
I need to refresh one of my test server with Production instance from the cold backup.
Please post a detailed steps i need to perform to do this.
Both of databases are in different servers and both are windows servers.
Appreciate helping me to learn.
Regards
Arun

Hi, are you sharing storage between the prod an test database?
If not, why dou want to rename the datafiles?
However, if you want to rename the datafiles, you have to change the datafiles name at S.O. level (I suggest you to copy -duplicate- the datafiles and, once you have renamedthe datafiles and checked that the database works fine, then delete the "old" datafiles).
I don't suggest you to rename system's datafile! (But internet is full of procedures for do it)
For change datafiles names at dabase level (ergo, at logical level) you have to do the following:
startup mount;
and, for each datafile:
alter database rename file 'old_name' to 'new_name';
You can check the old names, and your progress querying the v$datafile view.
I hope this help.
Regards.

Similar Messages

  • Need Help: Generate Customer Data from Prod Database

    Hi All,
    My company have an Oracle Financial System, with and old version Oracle Application 11.0.3 and Oracle Database 8.0.5. The database name PROD. This system has been use for more than 7 years and in between there were many stuff resigned without handover and therefore many records and supporting steps cannot be trace back. However the system is still keep running and updated daily.
    Recently we have a user request to generate out a list of customer company name, and their related products purchase from the database, this is because they does not have any methods to print out the list from application. Unfortunately, we do not know which tables or index is actualy storing the name of the customer and products. We have the list of below users accounts that able to log in to the database.
    PA/PA
    APPLSYS/APPS
    APPS/APPS
    ALR/ALR
    AX/AX
    AK/AK
    GL/GLRG/RG
    FA/FAHR/HR
    SSP/SSP
    HXT/HXT
    OTA/OTA
    RLA/RLA
    VEH/VEH
    QA/QA
    ICX/ICX
    AZ/AZ
    AP/AP
    AR/AR
    OE/OE
    OSM/OSM
    NSM/NSM2020
    CN/CN
    MFG/MFG
    INV/INV
    PO/PO
    BOM/BOM
    ENG/ENG
    MRP/MRP
    CRP/CRP
    WIP/WIP
    CZ/CZ
    PJM/PJM
    FLM/FLM
    MSC/MSC
    CS/CS
    CE/CE
    EC/EC
    JG/JG
    APPS/APPS
    All the reference documents is no longer exist. I am able to use SQL Plus to generate the list of tables with the command : select table_name from user_tables. Each user accounts will return different kind of table names. But still I cant locate which table that actually storing the name of the customers and products.
    Is that anybody got hands on this case before? Urgent

    We have this table: And need to unload this table data in flat file format.
    Need help with unload SQL file with these two columns:
    AMT_PAID_ORIG, AMT_PAID_ADJ
    SQL> desc flconv.claim_adj_less
    Name Null? Type
    SAK_CLAIM_ADJ_LESS NUMBER(10)
    SAK_CLAIM_ADJ NUMBER(10)
    ADJ_CLAIM_ICN NUMBER(13)
    ORIGINAL_CLAIM_ICN NUMBER(13)
    DATE_PAID_ORIG NUMBER(8)
    DATE_PAID_ADJ NUMBER(8)
    AMT_PAID_ORIG NUMBER(10,2)
    AMT_PAID_ADJ NUMBER(10,2)
    SAK_PROV_LOC NUMBER(9)
    SAK_FUND_CODE NUMBER(9)
    CHECK_SAK NUMBER(9)
    SAK_PUB_HLTH NUMBER(9)

  • DR restore testing from Prod to DR site

    Hi,
    I'm planning to test our E-business Suite current enviorenment to DR site by restoring data from current prod to DR site.
    Source(Current PROD) = RHEL 5.4 on apps and DB server
    11gR2 database version
    RAC cluster 11.2.0.2
    E-business suite 12.0.6
    Traget System (DR ) = RHEL 5.4 on apps and DB server
    11gR2 database version
    RAC cluster 11.2.0.2
    E-business suite 12.0.6
    Please let me know what cluster files I need to copy from source to DR site to make sure cluster works. Please let me know if have any advice.
    thanks

    I'm copying everything's from grid home/oracle home/etc few files etc. The source system has 2 dual node db server and 2 apps tier with load balance but DR(restore site) has 1db and 1 apps tier without Load balancer.Do you mean you have a RAC database on the source nodes and single instance on the target node? Copying the files only is not enough and you need to run preclone on the sources nodes, copy the files (it should be enough from one database node only), and run postclone on the target node.
    Thanks,
    Hussein

  • HELP! Displaying results from a database in table format

    I'm developing a web application that will use a considerable number of database queries that need to be displayed back to the web-browser in HTML table format.
    I have been told that that result sets can allow tables to be built automatically without having to write the same loop and display code over and over.
    So far I have a HtmlResultSet class as follows:
    import java.sql.*;
    public class HtmlResultSet {
    private ResultSet rs;
    public HtmlResultSet(ResultSet rs) {
    this.rs = rs;
    public String toString() {  // can be called at most once
    StringBuffer out = new StringBuffer();
    // Start a table to display the result set
    out.append("<TABLE>\n");
    try {
    ResultSetMetaData rsmd = rs.getMetaData();
    int numcols = rsmd.getColumnCount();
    // Title the table with the result set's column labels
    out.append("<TR>");
    for (int i = 1; i <= numcols; i++) {
    out.append("<TH>" + rsmd.getColumnLabel(i));
    out.append("</TR>\n");
    while(rs.next()) {
    out.append("<TR>"); // start a new row
    for (int i = 1; i <= numcols; i++) {
    out.append("<TD>"); // start a new data element
    Object obj = rs.getObject(i);
    if (obj != null)
    out.append(obj.toString());
    else
    out.append(" ");
    out.append("</TR>\n");
    // End the table
    out.append("</TABLE>\n");
    catch (SQLException e) {
    out.append("</TABLE><H1>ERROR:</H1> " + e.getMessage() + "\n");
    return out.toString();
    I also have created a class that includes an instance of the class above to display the results, as follows:
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class customerLookup2 {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    try{
    Class.forName("org.gjt.mm.mysql.Driver");
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/sandywalker");
    out.println("<html>");
    out.println("<head><title> Users</title></head>");
    out.println("<body> Customers");
    HtmlResultSet result = new HtmlResultSet ("SELECT * FROM USERS");
    out.println("</body></html>");
    catch(ClassNotFoundException e ) {
    out.println("Couldn't load database driver: " + e.getMessage());
    catch(SQLException e) {
    out.println("SQLExeption caught: " +e.getMessage());
    finally {
    try {
    if (con !=null) con.close();
    catch (SQLException ignored) { }
    I keep getting a compile error "customerLookup2.java": Error #: 300 : constructor HtmlResultSet(java.lang.String, java.sql.Connection) not found in class HtmlResultSet at line 42, column 34".
    Can anyone shed any light on this.

    Looks like you are passing a string (SELECT * FROM USERS) instead of passing a ResultSet. Try passing a Resultset.

  • Moving of EUL from Prod to Replicated Database

    Hi All,
    I have a question, I have to move EUL from PROD Database to the Replicated Database for good, can i do that in R12? version of the ebiz is 12.1.3 and Discovers EUL has to be moved I know it is quite tightly integrated. Is there a way to perform this task. Your comment and view are Appreciated
    Regards
    Younus

    Ah, that old "dynamically". Which means "Some mysterious process which is too complicated for me to understand", at least that's how it's commonly used in Java language forums.
    But it isn't really that mysterious. Given a table, run the query "select * from table". Then use the ResultSetMetaData to find out how many columns you selected. Then create an insert command with that many parameters and build a PreparedStatement from it. For each row in the ResultSet, copy its columns to those parameters and execute the insert.
    Or you could use the database's own features to do the copying. Probably more practical than writing "dynamic" Java code anyway.

  • Cloning a prod database

    Suppose I have 2 databases, the prod is running on version 9.2.0.6 on a unix SunOS 5.8 and a test database running 9.2.0.6 on unix SunOS 5.8 (but a different physical box).
    The prod server has nightly hot backups and is in archive log mode. Requirement is to clone the production database into the test database. (To make it look exactly the same). In other words, the test can be completely wiped out and everything in prod be brought over. Can this be achieved without a downtime in prod server ? If so, how ? Can I get the steps needed to achieve this ? (I have done a clone before but that involved a cold backup from prod and the prod was affordable for a shutdown, but here that flexibility isn't there)

    Hi,
    Yes,this is possible to create a clone database from hot backup.
    Resore backup into new machine;
    startup mount;
    rename datafile if required.(if dbf locations is diff then primary database)
    recovery database until cancel;
    alter database open resetlogs;
    **Also apply archivelog that are generated from prod database inbetween the time of creating clone database.
    and Recover upto the latest archivelog.
    and open with resetlogs option.
    Thanks
    Kuljeet Pal Singh

  • Duplicate database from prod environment to test environment.

    hi,
    Am trying to Duplicate the database from Production RAC Envrionment to Test RAC Environment.
    Am following the metakink Document: How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]
    When am restoring the backup from prod in Test environment am getting the following error.
    ORA-19870: error reading backup piece /rman2/stage/backup_of_PROD_21047_07_04_2011_1
    ORA-19504: failed to create file "+DG1"
    ORA-17502: ksfdcre:4 Failed to create file +DG1
    ORA-15055: unable to connect to ASM instance
    ORA-00020: maximum number of processes () exceeded
    ORA-15055: unable to connect to ASM instance
    ORA-00020: maximum number of processes () exceeded
    Please help me out in this.
    with regards
    A.Aravind

    Pl post details of OS and database versions on the source and target.
    RMAN Duplicate Failing With ORA-19870 ORA-19504 ORA-15012 ORA-17502 ORA-15080 (Doc ID 417074.1)
    Srini

  • Database restore to test from production

    Hi,
    I am having 500+ GB database running in AIX with ASM. creating disk backups using rman and moving to Test server.. i like to know the commands for restore and recovery from disk to ASM in test server:
    Prod server : ASM on AIX single instance
    rman database backup to disk (SID : PROD)
    ftp to test serverTest server: ASM on AIX single instance
    clean up exiting database (SID : TEST)
    rman restore and recover command from disk The rman command i am using for backup is :
    run
    allocate channel backup_disk1 type disk;
    allocate channel backup_disk2 type disk;
    allocate channel backup_disk3 type disk;
    sql "ALTER SYSTEM ARCHIVE LOG CURRENT";
    backup
    format='<path>/Sml_full_bck_%Y%M%D_%d_%s_%p.dbf'
    database
    plus archivelog
    filesperset=1;
    backup
    format='<path>/Tp_cntl_%Y%M%D_%d_%s_%p.ctl'
    current controlfile;
    #sql "alter system switch logfile";
    release channel backup_disk1;
    release channel backup_disk2;
    release channel backup_disk3;
    What would be ideal command for restore....

    we have some issues with network....need to ftp manually after taking backup..i am looking around for the restore command like
    run
    allocate channel t1 type disk;
    restore database from '/<path>' to '+DATA';
    recover database;
    release channel t1;
    just want some clarifications on syntax especially from disk backup restore to ASM disk groups and recover from there..

  • Migrate DRM application from PROD to TEST environment

    How I can migrate all DRM application from PROD to TEST environment. The first way this is using migrate utility and then create all export/import utility. But this way does not give 100% guaranty of identity the PROD and TEST environment.
    As relation database I am using Oracle DB. Can I migrate DRM application using exp/imp utility for oracle users (MDM and MDM_DB) and after that changing information directly in oracle tables in the TEST environment?

    This response is not timely but others may find it useful...
    You can use the Oracle database export and import processes, but there are several additional steps in the process. In general this is a high risk endevour that should not be attempted by the faint of heart. (See #3 below!) Attempt at your own peril.
    1) Make a copy of the Username table so that you have the Test versions of the encrypted passwords for DRM internally managed accounts. These will need to be updated post import if there are any differences.
    2) After you delete the tables in Test, it's best to create them with the install scripts prior to import because once an Oracle table containing a blob datatype has a stored value the Oracle import is no longer tolerant of changes in target tablespace names for all tables containing blobs within that schema. (Known bug) However, the create tables install script has an insert statement or two that need to be commented out or the import will create duplicate rows that will cause errors enabling constraints.
    3) After the import completes all exports and books need to be modified to no longer point to production target locations, especially for exports to database tables! Ideally this step would be completed and QA'd prior to starting the application server; however, the application server must be running if the migration utility is going to be leveraged to propagate these updates so the process I use is to lockout all users until this step is completed.
    4) Also note that if the Prod and Test app servers are not using the same authentication settings the system preference needs to be changed or the application server may not start.

  • Migrate BQY files from Test to Prod.

    I have published some reports in workspace manually earlier. But, now i have so many reports which i need to migrate from Test to Prod.
    Please suggest the steps, and how to handle the OCE files and Security.
    Version is 11.1.2.1
    windows 2008 server
    Thanks in advance.

    You can use LCM utility to migrate to different env's provided they are on same version.
    http://docs.oracle.com/cd/E17236_01/epm.1112/epm_lifecycle_management.pdf
    Thx

  • Migrate OAF MDS customizations from TEST to PROD from UNIX

    1. Copy the the files of JDEV_USER_HOME/jdevbin to TEST or PROD UNIX mid-tier
    jdevbin/jdev/appslibrt/oamdsdt.jar
    jdevbin/jdev/lib/mdsdt.jar
    jdevbin/mds/lib/mdsrt.jar
    jdevbin/BC4J/lib/collections.jar
    jdevbin/lib/xmlparserv2.jar
    jdevbin/jdev/appslibrt/share.jar
    jdevbin/jdev/appslibrt/uix2.jar
    jdevbin/jdbc/lib/classes12dms.jar
    jdevbin/lib/dms.jar
    jdevbin/jdev/appslibrt/oamdsdt.jar
    2. environment variable for XMLExporter/XMLImporter:
    ($PRO_LIB is the path pointing to the jar files)
    CLASSPATH=\
    $PRO_LIB/jdevbin/jdev/appslibrt/oamdsdt.jar:\
    $PRO_LIB/jdevbin/jdev/lib/mdsdt.jar:\
    $PRO_LIB/jdevbin/mds/lib/mdsrt.jar:\
    $PRO_LIB/jdevbin/BC4J/lib/collections.jar:\
    $PRO_LIB/jdevbin/lib/xmlparserv2.jar:\
    $PRO_LIB/jdevbin/jdev/appslibrt/share.jar:\
    $PRO_LIB/jdevbin/jdev/appslibrt/uix2.jar:\
    $PRO_LIB/jdevbin/jdbc/lib/classes12dms.jar:\
    $PRO_LIB/jdevbin/lib/dms.jar:\
    $PRO_LIB/jdevbin/jdev/appslibrt/oamdsdt.jar
    3. for -mmddir needed in XMLExporter/XMLImporter:
    copy the following files of JDEV_USER_HOME\myhtml\OA_HTML\jrad to TEST or PROD UNIX mid-tier
    JRADElementList.xml
    OAElementList.xml
    UIXElementList.xml
    4. Write a Unix shell script to export from TEST and import to PROD. (You may register it in Oracle apps to let the developers to promote it themselves using the assigned responsibility)
    Notice:
    1. Oracle puts OAF customization together with Oracle seeded customizations. It's impossible to tell them apart just from the OAF MDS document names.
    2. Using responsibility_id in the document name to get the application_id from the apps table, you'll get an different application_id than the application_id in the document name.
    3. The function_id in the document name is not consistent with the function_id in the apps table. The function_id in apps table has null value.

    You may also use a PC to migrate OAF MDS from TEST to PROD. Instead of running an Unix script on the TEST or PROD mid-tier, you may write a batch file and run it on your PC.

  • Best way to update DR database from PROD server automatic ?

    Hello Gurus,
    I want to decide best solution.
    Goal: Best way to update DR Database from PROD Server Database automatic.
    System: 32 bit Linux system with Oracle Database 10g Release 10.2.0.4.0 - Production (database version) Oracle version is standard.
    Please let me know how i can update my DR server with PROD data and this task should be automatic.
    Please ask me more information if required to solve this issue.
    Thanks- Priyank
    Edited by: Oracle DBA P on Nov 19, 2010 3:06 AM

    you mean to say data guard needs to implement ? i think that's one option but what you said is different ?
    tell me procedure how i can implement your idea ? steps i have to perform.
    Thanks
    Edited by: Oracle DBA P on Nov 19, 2010 3:38 AM

  • 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

  • Help needed to create active links from a database

    I want to create active links to web addresses stored in my
    Access database and returned on the detail page of a Master/Detail
    set. The code below returns the correct entry from the database
    field - but I can't seem to make it an active link.
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    any help would be appreciated!
    thanks,
    emyers

    >
    <%=(rsNameMasterDetail.Fields.Item("Link").Value)%>
    >
    > any help would be appreciated!
    <a
    href='<%=(rsNameMasterDetail.Fields.Item("Link").Value)%>'><%=(rsNameMasterDetail.Fields. Item("Link").Value)%></a>
    -Darrel

  • Planning 9.3 Applciation migration from test to prod

    Hi Guys,
    I wnated to migrate my planning applciation from Test to Production instance,
    In both the instances I have Oracle 10g as a repository for my applications.
    Please send me the steps to Migrate the same.
    My Test instance has one Planning applciation "PlanApp"
    In Production I just installed the Planning, I ahve not created any applicaion yet, but wanted to copy from my test instance.
    Thanks

    Hi,
    This topic has been covered quite a few times now on this forum, a bit of searching will give you all the answers you need but in summary :-
    Create a new planning app on production
    Register with shared services.
    Make it is the same admin name account betwen test and prod.
    Go into the oracle schema on prod for your app, extract the SID value from the HSP_USERS table where the user_id = 50001
    Stop Planning on prod
    Take an export of the planning app schema on Test
    Import the schema over the top of the schema on Prod
    Update the HSP_USERS table with the stored SID value on prod.
    Restart Planning.
    Cheers
    John

Maybe you are looking for

  • Convert doc file generated by OpenOffice to PDF X1a

    Hi, I have a .doc file originally produced by Open Office Writer and then converted to a Word format. I would now like to use Acrobat 10 to convert this .doc file to a PDF X format, but I'm not having any luck. I've tried the following two approaches

  • How to read specific lines from a text file using external table or any other method?

    Hi, I have a text file with delimited data, I have to pick only odd number rows and load into a table... Ex: row1:  1,2,2,3,3,34,4,4,4,5,5,5,,,5  ( have to load only this row) row2:   8,9,878,78,657,575,7,5,,,7,7 Hope this is enough.. I am using Orac

  • How do I make firefox to go to a specfic web page (ie google home page) every time I open a new tab?

    Every time I open a new tab, I want firefox to go to Google's home page http://www.google.com/. Right now when I open a new tab, the tab is blank. Therefore, I have to click on the home icon on the upper right corner - the icon with the little house.

  • Web Services with WSDL

    hi i dont know much of web services... actually i dont know what this is... ok... my first question is where can i find any goor beginner's guide to web services in general ok now to the real problem... (i believe that my problem si related that i do

  • IF ELSEIF Problem

    Hi,   I am trying to do some math in the first IF statement:  divide total by 2.  When I look at my report the I am seeing the ({@Total}/2).  Here is my formula: If (CurrentDate> {@21Days}) OR (CurrentDate >{@LastMonth})THEN "NOTICE OF TERMINATION OF