Refresh test using backup of prod ( non duplicate method)

hi
i have 10.2 prod db back to tape
i would like to restore backup of prod from tape into test target system,  restore prod into test ,  and rename db to match test db name
are there any guides or step by step docs?
i also have to "Recovering Through an Added Datafile"  ( for this reason I cant use rman duplicate)
thanks in advance

Hi,
Which tape software are you using?
You basically need to copy the tape configuration from live to test.
You then 'pretend' you are the live server on the test box and just do a recovery as if you were recovering the live database itself.
Once the database has been restored you would then use nid to chage the database name to match the old test one.
Regards,
Harry
http://dbaharrison.blogspot.com

Similar Messages

  • Non-abstract methods in a Abstract class

    Abstract Class can contain Non-abstract methods.
    and Abstract Classes are not instantiable as well
    So,
    What is the purpose of Non-abstract methods in a Abstract class.
    since we can't create objects and use it
    so these non-abstract methods are only available to subclasses.
    (if the subclass is not marked as abstract)
    is that the advantage that has.(availability in subclass)
    ??

    For example, the AbstractCollection class (in
    java.util) provides an implementation for many of the
    methods defined in the Collection interface.
    Subclasses only have to implement a few more methods
    to fulfill the Collection contract. Subclasses may
    also choose to override the AbstractCollection
    functionality if - for example - they know how to
    provide an optimized implementation based on
    characteristics of the actual subclass.Another example is the abstract class MouseAdapter that implements MouseListener, MouseWheelListener, MouseMotionListener, and that you can use instead of these interfaces when you want to react to one or two types of events only.
    Quoting the javadocs: "If you implement the MouseListener, MouseMotionListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about."

  • Database refresh without using RMAN duplicate

    Hi All,
    I am planning to refresh my test instance to a PIT using RMAN backups from PROD. I would like to know the process without connecting to PROD database and without using RMAN duplicate command.
    Thanks.

    imran khan wrote:
    Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    >Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    1) You use nid only to change the dbid.
    2) I have done this type of cloning much more than 50 times.
    3) As Iordan Iotzov pointed out, in 11gR2 you can run DUPLICATE database without being connected to the PROD
    Here is a sample code of how to do it assuming both file system are the same:
    # -- RMAN Restore to another server
    rman <<EOF2
    CONNECT TARGET /;
    STARTUP NOMOUNT
    SET DBID 987654321;
    CONNECT CATALOG rman/rman@rcvcat
    RUN {
        SET UNTIL SEQUENCE=5678 THREAD=1;
        ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
        RESTORE CONTROLFILE;
    ALTER DATABASE MOUNT;
    RUN
      SET UNTIL SEQUENCE=5678 THREAD=1;
      ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
      RESTORE DATABASE;
      RECOVER DATABASE;
    EXIT;
    EOF2:p

  • Use Grid to Refresh test from production or Using Grid for Cloning

    Is there a specific area of grid OEM specifically for database refreshing or cloning? We are about to do refresh of test from production and this has been brought up. We usu ally do either the copy datafiles+create control file or exp(dp)/imp(dp)
    Is there an OEM click-click-click way to do this?
    Thanks
    MN

    Yes you can create clone of Database from Production to Test using OEM.
    regards
    Pravin

  • How to recover my backups?? i used migration assistant but none of my old files showed up. I backed up daily and did a full disk back up twice.

    how to recover my backups?? i used migration assistant but none of my old files showed up. I backed up daily and did a full disk back up twice

    Open System Preferences and select Users & Groups. Assuming the migration was successful, you now have a new account - it was migrated. Migration Assistant doesn't copy files, it copies accounts. To see your documents you'll need to log into the account you migrated. (It has the same password it did on the other computer.)

  • RMAN backup testing using networker and NMO

    I want to do some RMAN backup testing using networker 7.5 and NMO 5.0. I am doing these testing on VMware. I am not sure whether I need to buy some tape drive for my home PC to do backup testing or I can mimic hard drive as tape drive in VMWARE.
    Do you have any idea? any suggestion please?
    Thanks..

    I think this is not a RMAN/Oracle issue, as soon as you configure networker MML it's up to networker to define the real backup destination behind. Maybe networker has also a 'fake' tape destination,but I don't know this. There's a networker forum:
    http://www.tek-tips.com/threadminder.cfm?pid=480
    Werner

  • Updating TEST / REPORTING Databases from PROD

    Hello,
    We have a PROD db that's running 11.2.0.2 on AIX 7.1. We need to update two other instances (REPORTING and TEST) with fresh data... We want REPORTING to update nightly and TEST can update monthly, or less frequent.
    I've looked into cloning or using imp/exp for the data schema, or possible RMAN DUPLICATE
    Can anyone shed any light on what they use to update their non-production instances?
    Thanks

    We used to copy cold backup files to test every night for a Db larger than yours to run 2600 automated JUnit tests for a large financial client and never had any problem.
    It was all automated using shell scripts to create new nightly folders, copy the files, checkout all DB and Java code from source control, do a complete Java build, run the automated tests and email the results to developers for them to review first thing in the morning.
    For reporting using RMAN. The once a month copy a cold backup of reporting to TEST. Sure RMAN can do the TESt one too but I like to make sure my DBAs actually remember HOW to do a cold backup. Tends to make them remember how handy a text version of the control file and init file can be. New DBAs in particular get a pained expression on their face when they realize they can't use the control files they just copied because the folder structure is different and they don't have a text version.
    Doing that monthly cold backup restore is a great training exercise that can be done with little risk.

  • How to handle refreshing TEST schema with PRODUCTION schema ?

    - we have database 10g ( standard edition), database name : ABC
    - Schema name: ABC.PRODUCTION (which is our production schema)
    - Schema name: ABC.TEST (which is our testing schema, where developers work)
    Both the production & Test schemas exist in the same database.
    Now once a week I wanted to refresh TEST schema with PRODUCTION data
    Here is what I have been doing all these years:
    => Take a logical backup (EXPDP) of PRODUCTION schema (prod.dmp)
    => Drop user TEST cascade ( i don't need a backup of this TEST schema)
    => Create user TEST
    => Import PROD.DMP data into TEST schema
    All the above 4 steps are being done manually.
    Questions:
    ======
    1. Is there any easier way of doing the above steps using some tool ?
    2. Does Oracle enterprise manager which comes free with database installation (http://localhost:118/em)
    has any utility or tool to do this job ?
    3. I want everything to be refreshed (all database objects including data) ?
    Thanks
    John P
    Edited by: johnpau2013 on Feb 23, 2011 4:32 AM

    This is crazy. One inadvertent typo and you'll overwrite your Production schema. Plus, what happens if a developer 'tests' against the test schema and slows the Production database to a crawl.
    I presume you know all about this, though and can't make the case to management. I hope it's not a business-critical Production database!
    Anyway, your method is decent. I would advise against doing it automatically, to be honest, especially when your system is so precariously set up. But if you exist, you could use encapsulate all the steps into a script and use crontab to automate the process. I, personally, wouldn't use DBMS_SCHEDULER as you have to be careful with priorities and workload sometimes (at least in my experience) and you might end up having your export/import clash with other jobs in the system if you don't pay attention.
    Here are the steps I would use:
    Create a 'create user' script for the test schema based on dynamic SQL. That way you can be sure you have all the grants necessary for the user, in case things change.
    Drop the test user (use EXTRA caution and be defensive when coding this part!)
    Export the schema using FLASHBACK_SCN to ensure you have a consistent export
    Run your 'create user' script to create the test user
    Import the schema with a REMAP_SCHEMA option (use EXTREME caution with this!!!!)
    Compile invalid objects
    Compare objects and exclude any recycle_bin objects. Send an email alert if the object counts are different.
    Compare invalid objects. Any objects which aren't invalid in Production should be flagged up if they're invalid in test.
    Again, it's absolute insanity to have a test schema in a Production database. You absolutely must insist on addressing that with management.
    Mark

  • Need to test Production Backups on another server.

    Dear Expert,
    Our SAP Production server is running on HP-UX in cluster mode (ECC 6.0 with oracle 10g). We have sheduled Incremental database online backup (daily) and Full database online + redolog backup (on sunday) on disk, and getting successfull backups.
    Now we wanted to test our backup, as it is a running production server so wanted to try on diffrent server.
    So we are installing new server on windows 64bit machine with  orale database. Our plane is to copy backupfiles  of production server to newly installed server and try to restore it.
    We need your suggetions on it and the correct way to test the backups if any.
    As it is highly important activity, so please revert ASAP.
    Regards,
    Ajit

    Hi Ajit,
    I would recommend to test this scenario on HP-UX system only as your production server is on the same operating system.
    If there is no urgency for testing the production backup, you can wait until your Quality Server refresh cycle.
    You can refresh the Quality server using online/offline backup restore method (backup of production server).
    This way, you will get 2 benefits..
    1. Your Quality server will be refreshed with production data
    2. You can test Production backup consistancy more efficiently.
    Refer the link below for more details:
    For Official System Copy Guide:
    [https://websmp207.sap-ag.de/form/sapnet?_SHORTKEY=01100035870000659894&|https://websmp207.sap-ag.de/form/sapnet?_SHORTKEY=01100035870000659894&]
    Another Short steps:
    [http://www.saptechies.com/system-copy-guides/|http://www.saptechies.com/system-copy-guides/]
    Regards.
    Rajesh Narkhede

  • Importing and Updating Non-Duplicate Records from 2 Tables

    I need some help with the code to import data from one table
    into another if it is not a duplicate or if a record has changed.
    I have 2 tables, Members and NetNews. I want to check NetNews
    and import non-duplicate records from Members into NetNews and
    update an email address in NetNews if it has changed in Members. I
    figured it could be as simple as checking Members.MembersNumber and
    Members.Email against the existance of NetNews.Email and
    Members.MemberNumber and if a record in NetNews does not exist,
    create it and if the email address in Members.email has changed,
    update it in NetNews.Email.
    Here is what I have from all of the suggestions received from
    another category last year. It is not complete, but I am stuck on
    the solution. Can someone please help me get this code working?
    Thanks!
    <cfquery datasource="#application.dsrepl#"
    name="qryMember">
    SELECT distinct Email,FirstName,LastName,MemberNumber
    FROM members
    WHERE memberstanding <= 2 AND email IS NOT NULL AND email
    <> ' '
    </cfquery>
    <cfquery datasource="#application.ds#"
    name="newsMember">
    SELECT distinct MemberNumber
    FROM NetNews
    </cfquery>
    <cfif
    not(listfindnocase(valuelist(newsMember.MemberNumber),qryMember.MemberNumber)
    AND isnumeric(qryMember.MemberNumber))>
    insert into NetNews (Email_address, First_Name, Last_Name,
    MemberNumber)
    values ('#trim(qryMember.Email)#',
    '#trim(qryMember.FirstName)#', '#trim(qryMember.LastName)#', '#
    trim(qryMember.MemberNumber)#')-
    </cfif>
    </cfloop>
    </cfquery>
    ------------------

    Dan,
    My DBA doesn't have the experience to help with a VIEW. Did I
    mention that these are 2 separate databases on different servers?
    This project is over a year old now and it really needs to get
    finished so I thought the import would be the easiest way to go.
    Thanks to your help, it is almost working.
    I added some additional code to check for a changed email
    address and update the NetNews database. It runs without error, but
    I don't have a way to test it right now. Can you please look at the
    code and see if it looks OK?
    I am also still getting an error on line 10 after the routine
    runs. The line that has this code: "and membernumber not in
    (<cfqueryparam list="yes"
    value="#valuelist(newsmember.membernumber)#
    cfsqltype="cf_sql_integer">)" even with the cfif that Phil
    suggested.
    <cfquery datasource="#application.ds#"
    name="newsMember">
    SELECT distinct MemberNumber, Email_Address
    FROM NetNewsTest
    </cfquery>
    <cfquery datasource="#application.dsrepl#"
    name="qryMember">
    SELECT distinct Email,FirstName,LastName,MemberNumber
    FROM members
    WHERE memberstanding <= 2 AND email IS NOT NULL AND email
    <> ' '
    and membernumber not in (<cfqueryparam list="yes"
    value="#valuelist(newsmember.membernumber)#"
    cfsqltype="cf_sql_integer">)
    </cfquery>
    <CFIF qryMember.recordcount NEQ 0>
    <cfloop query ="qryMember">
    <cfquery datasource="#application.ds#"
    name="newsMember">
    insert into NetNewsTest (Email_address, First_Name,
    Last_Name, MemberNumber)
    values ('#trim(qryMember.Email)#',
    '#trim(qryMember.FirstName)#', '#trim(qryMember.LastName)#', '#
    trim(qryMember.MemberNumber)#')
    </cfquery>
    </cfloop>
    </cfif>
    <cfquery datasource="#application.dsrepl#"
    name="qryEmail">
    SELECT distinct Email
    FROM members
    WHERE memberstanding <= 2 AND email IS NOT NULL AND email
    <> ' '
    and qryMember.email NEQ newsMember.email
    </cfquery>
    <CFIF qryEmail.recordcount NEQ 0>
    <cfloop query ="qryEmail">
    <cfquery datasource="#application.ds#"
    name="newsMember">
    update NetNewsTest (Email_address)
    values ('#trim(qryMember.Email)#')
    where email_address = #qryEmail.email#
    </cfquery>
    </cfloop>
    </cfif>
    Thank you again for the help.

  • Functionality Testing Using B1 Test Composer Tool

    Hi,
    I would like to use B1 TC for functional testing of our add-ons. Will it be possible for me to do the functional testing(add-on's expected against add-on's actual) of the add-on using B1 TC? Could anyone explain with some examples so that I can start with B1 TC.
    Our add-on has a window that allows the user to filter and display BPs in the matrix. User can select a Payment Term from the drop down and click Refresh button. Then the BPs with matching payment term should be listed in the matrix/gird. Here I want to check whether the BPs listed is correct. How can I use B1 Test Composer to do this?
    Regards,
    Sam

    Hi Johan,
    Thanks for the response. Let me explain the scenario to be tested using B1 TC in detail. The Payment Term combo in our add-on's Payment Term Update Utility form will list the payment terms ZPNET30, NET30, -Cash Basic’ etc. On selecting one of these values (say NET30), the matrix in the form is expected to list only those BPs with matching payment term(NET30). Here I need to ensure that all the BPs listed here are having the same payment term as ‘NET30’.
    While recording this action using B1 TC, let us assume that the BPs listed in the matrix are as in the below image.
    But when I rerun the B1 TC script at some later time, the BPs list might vary because of addition of new BPs to the database or changing of payment term of the existing BPs. In this instance, the Compare Matrix function of B1 TC fails, as the expected matrix values are not the same when we re-run the script. But all the BPs listed will have the matching payment term(NET30). So B1 TC reports a bug even if the functioning of the add-on is correct.
    When I manually do the testing, I apply the filter and then load each of the BP Master Data to check whether the payment term matches the selected one in the form. Then I will change and update the payment term of the existing BP or add new BPs and again performs the filtering to check whether the search result is correct. Is there a mechanism with B1 TC to handle such scenario, like accessing each individual rows/cells of the matrix/grid and check the payment term of the BPs listed?
    Regards,
    Sam

  • Problem in finding the Duplicate as well as Non-Duplicate count

    Hi,
    I have a scenario where I have a table TABLEA which has 3 values
    10 ABC
    10 ABC
    20 DEF
    I want to pick up the duplicate count as wel as non duplicate count:
    I have used the following query:
    SELECT COUNT(*) FROM TABLEA A WHERE A.ROWID > ANY (
    SELECT B.ROWID FROM TABLEA B WHERE
    A.CODE=B.CODE)
    But I am finding problem in getting the non-duplicate count .
    Any help will be needful for me
    Edited by: user598986 on Sep 23, 2009 11:32 PM

    user598986 wrote:
    Hi,
    I have a scenario where I have a table TABLEA which has 3 values
    10 ABC
    10 ABC
    20 DEF
    I want to pick up the duplicate count as wel as non duplicate count:
    I have used the following query:
    SELECT COUNT(*) FROM TABLEA A WHERE A.ROWID > ANY (
    SELECT B.ROWID FROM TABLEA B WHERE
    A.CODE=B.CODE)
    But I am finding problem in getting the non-duplicate count .
    Any help will be needful for me
    Edited by: user598986 on Sep 23, 2009 11:32 PMHi,
    perhaps this query makes your job:
    HR: XE > select * from test_;
    NAME           SALARY HIRE_DATE START_DAT END_DATE
                          15-SEP-09 15-SEP-09
                          15-SEP-09 01-DEC-09
    john                  27-AUG-09 16-SEP-09 16-SEP-10
                          28-FEB-09 20-SEP-09
    Dave                2 17-JUN-08 16-SEP-09 02-JUL-11
                     1000 21-AUG-82 08-MAY-10
    6 rows selected.
    HR: XE > select count(hire_date), hire_date from test_
      2  group by hire_date;
    COUNT(HIRE_DATE) HIRE_DATE
                   1 27-AUG-09
                   1 21-AUG-82
                   2 15-SEP-09
                   1 28-FEB-09
                   1 17-JUN-08
    HR: XE > select count(id), id from
      2  (
      3  select hire_date, 'simple' id from test_
      4  minus
      5  select test_.hire_date, 'simple' id
      6  from test_
      7  where test_.hire_date In (Select hire_date FROM test_  GROUP BY hire_date HAVING Count(*)>1 )
      8  union all
      9  select test_.hire_date, 'double' id
    10  from test_
    11  where test_.hire_date In (Select hire_date FROM test_  GROUP BY hire_date HAVING Count(*)>1 )
    12  )
    13  group by id;
    COUNT(ID) ID
             2 double
             4 simple
    HR: XE > Regards,
    Ion

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

  • KB16037 - Perform a test using the hardware diagnostic tool on the BlackBerry smartphone

    KB16037 - Perform a test using the hardware diagnostic tool on the BlackBerry smartphone
    Just noticed this; SWEET!
    -----ProcedureTo perform a test using the hardware diagnostic tool on the BlackBerry smartphone, complete the following steps:
    On the Home screen on the BlackBerry smartphone, click Options.
    Select Status.
    On the Status screen, type test.Note: On BlackBerry smartphones that support SureType® technology, use the multi-tap input method.
    From the menu on the Device Self Test Application screen, select Start.
    If you've found a solution through a post; please mark it as a solution.
    If someone's was particularly helpful, give them kudo's!.
    Get busy living, or get busy dying.
    http://blog.port3101.org/hdawg/

    This is cool!
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Problem in Fetching data using RFC FM from NON SAP system

    Hi All,
    Need help from experts on data transfer using RFC from a non SAP system/database. I have creasted the destination in sm59.
    I have created a function module too which has an import parameter as a query and export parameter as an internal table.
    No when i test run this function module it returns some entries. But when I call this FM in a program it throws a dump 'rfc_external_abort' .  Here is what the call to FM looks like in my program. Please guide me on this.
    Thanks in advance,
    Saket.
    DATA : lv_query TYPE string,
           it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
    lv_query = 'SELECT *  FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
    CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
    DESTINATION  'D39'
      EXPORTING
        in_sql_query       = lv_query
    IMPORTING
       ET_GDDB_DATA       = it_gddbdata

    Hi,
    your question..
    DATA : lv_query TYPE string,
    it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
    lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
    CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
    DESTINATION 'D39'
    EXPORTING
    in_sql_query = lv_query
    IMPORTING
    ET_GDDB_DATA = it_gddbdata
    you are telling that you are fetching the data  from non sap system  using RFC function module.. how it is possible..you canot fetch the data from non SAP system using RFC FM alone.. you have to use the concept BAPI.. it will work..
    I hope this will help  you..
    Regards,
    Kiran

Maybe you are looking for