Database Refresh Query

Hi,
A Very Happy New Year to all !!
We want to refresh our Test system database with Production data.
ECC 6.0 ABAP + JAVA system.
We will be using Backup-Restore method (BRTOOLS) for the same.
However, the problem is, our Production schema for ABAP and JAVA are SAPMI3 and SAPMI3DB resp. and that for Test are SAPMI2 and SAPMI2DB.
After the database refresh, the schema of Test server will be changed to that of Producion.
We can make the necessary changes for ABAP schema (ops$), however, would like to know, what changes (If any) are to be made for Java schema.
Request your suggetions.
Regards,
Kiran Pol

Hi Kiran
The JAVA schema can be set in the configtool -> secure store -> jdbc/pool/<SID>/User
However i am not fully sure, if you have to change it, i think the information is stored in the database already, so it will be already fine when you do a backup/restore.
Do the test and prod system have the same instance numbers? Otherwise you will have the additional struggle with the ports. For example the dispatchers http/https ports.
Don't forget to change the sidadm env variable dbs_ora_schema as well.
Best regards, Michael

Similar Messages

  • How to get Hierarchical XML File from a Database Join Query !

    Hi,
    How can i get a Hierarchical XML File from a Database Join Query ?
    Any join query returns repeated values as below:
    BD17:SQL>select d.dname, e.ename, e.sal
    2 from dept d
    3 natural join
    4 emp e
    5 /
    DNAME ENAME SAL
    ACCOUNTING CLARK 2450
    ACCOUNTING KING 5000
    ACCOUNTING MILLER 1300
    RESEARCH SMITH 800
    RESEARCH ADAMS 1100
    RESEARCH FORD 3000
    RESEARCH SCOTT 3000
    RESEARCH JONES 2975
    SALES ALLEN 1600
    SALES BLAKE 2850
    SALES MARTIN 1250
    SALES JAMES 950
    SALES TURNER 1500
    SALES WARD 1250
    14 rows selected.
    We tried use DBMS_XMLQUERY to generate a xml file, but it was unable to get xml in Hierarchical format.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <ROWSET>
    - <ROW num="1">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>CLARK</ENAME>
    <SAL>2450</SAL>
    </ROW>
    - <ROW num="2">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>KING</ENAME>
    <SAL>5000</SAL>
    </ROW>
    - <ROW num="3">
    <DNAME>ACCOUNTING</DNAME>
    <ENAME>MILLER</ENAME>
    <SAL>1300</SAL>
    </ROW>
    - <ROW num="4">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SMITH</ENAME>
    <SAL>800</SAL>
    </ROW>
    - <ROW num="5">
    <DNAME>RESEARCH</DNAME>
    <ENAME>ADAMS</ENAME>
    <SAL>1100</SAL>
    </ROW>
    - <ROW num="6">
    <DNAME>RESEARCH</DNAME>
    <ENAME>FORD</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="7">
    <DNAME>RESEARCH</DNAME>
    <ENAME>SCOTT</ENAME>
    <SAL>3000</SAL>
    </ROW>
    - <ROW num="8">
    <DNAME>RESEARCH</DNAME>
    <ENAME>JONES</ENAME>
    <SAL>2975</SAL>
    </ROW>
    - <ROW num="9">
    <DNAME>SALES</DNAME>
    <ENAME>ALLEN</ENAME>
    <SAL>1600</SAL>
    </ROW>
    - <ROW num="10">
    <DNAME>SALES</DNAME>
    <ENAME>BLAKE</ENAME>
    <SAL>2850</SAL>
    </ROW>
    - <ROW num="11">
    <DNAME>SALES</DNAME>
    <ENAME>MARTIN</ENAME>
    <SAL>1250</SAL>
    </ROW>
    - <ROW num="12">
    <DNAME>SALES</DNAME>
    <ENAME>JAMES</ENAME>
    <SAL>950</SAL>
    </ROW>
    - <ROW num="13">
    <DNAME>SALES</DNAME>
    <ENAME>TURNER</ENAME>
    <SAL>1500</SAL>
    </ROW>
    - <ROW num="14">
    <DNAME>SALES</DNAME>
    <ENAME>WARD</ENAME>
    <SAL>1250</SAL>
    </ROW>
    </ROWSET>
    Thank you for some help.
    Nelson Alberti

    Hi,
    I wrote a general ABAP program which can be configured to grab contrent from an URL and post that content as a new PI message into the integration adapter .... from that point on normal PI configuration can be used to route it to anywhere ...
    It can be easily scheduled as a background job to grab content on a daily basis etc ...
    Regards,
    Steven

  • Database Refresh Failed

    Hi All,
    I am working on a database refresh and it failed with the following errors
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 04/15/2011 16:27:41
    RMAN-03015: error occurred in stored script Memory Script
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/srv/database/arch2/1_65508_689972797.dbf'
    ORA-00283: recovery session canceled due to errors
    ORA-00368: checksum error in redo log block
    ORA-00353: log corruption near block 256 change 43879018791 time 04/12/2011 04:30:54
    ORA-00334: archived log: '/srv/database/arch2/1_65508_689972797.dbf'
    Do you have any idea of how to solve this error.
    Please help.

    Hi;
    What is your OS? If its solaris than please see:
    Duplicate Fails with Corruption Errors on Solaris QFS Filesystem [ID 764113.1]
    Regard
    Helios

  • Refresh Query Button in Dashboard

    Hello,
    We have created a dashboard where we have used a BEx Query.
    Refresh Query Button is added to the Dashboard.
    The issue is:
    We have two Query Prompt selectors in the Dashboard and these are Query variables used.
    In the Dashbaord preview, when I select Calendar Year in the prompt selector, all the data for that year is shown.
    Now, when I further select Calendar Month, the data is shown for that selected year and month.
    But, when I just want to select another year without any month selected, it does not happen as the month is already selected.
    In this scenario, if I click on Refresh button, all the selections in the prompt selectors should be removed and the dashboard should return to the First Display, but it is not doing so....
    Can anyone let me know how to clear the values selected in the prompt selectors or how the refresh query button works....
    Note: We have not used excel for any data display or calculations, everything is directly connected to BEx Queries.
    Thanks
    Lavanya

    Hi
    plz try RESET BUTTON
    the reset button does
    all the selections in the prompt selectors get  removed and the dashboard return to the First Display.
    Refresh query button
    it refer only the query not the dashboard to refresh dashboard we have to use reset button .

  • How to schedule refresh query in webi?

    Dear Experts,
    I'm facing problem on how to set schedule refresh query and disable refresh function for End User in WEBI. The problem is that each time of refreshing query it'll take long time and I just don't want end user to endure this painful waiting. I used universe connection in IDT.
    Please give me some suggestions or ideas to deal with this problem.
    Best regards,
    Chenna Yon

    Dear Gill Leo,
    I would like to thank for your help.
    My problem was fixed.
    Best regards,
    Chenna Yon

  • Risks associated with database refresh.

    Hi experts,
    I need to clarify a  doubt .I have a cloned SAP BW system (from another system i.e SAn to SAN copy)and then after few months after the first clone I need to refresh the database(Oracle 10 G).The reason being I will have some changes in data at the source system from where it was copied earlier.I shall be applying the application changes by tracking the transport requests(from the original system).
    I need to clarify if we don't refresh the whole system again  by SAN to SAN copy and then do  a database refresh will there be any problem .Is there any risk associated with it.
    Will the requests be available to me on the monitor with the new data or there will be some issues.
    A quick response shall be very useful.
    Shailja.

    Hello,
    Orders for Production , Maintenance, Deliveries, Transfer Order  etc. are created according to the factory calendar .
    You must be sure that all operations can be carried out in the seven days of the week (e.g. deliveries), because SAP can be scheduling aTransfer Order for a Sunday and somebody can be calling you for fixing the issue!
    The normal case is that some operations can take place in the weekend (Production, Maintenance) but other Logistic Operations ( Deliveries) are done only from Mo to Fr. If this is your case, I would create an additional seven days calendar and assign it to the work centers in Production and maintenance, but the Plant would remain linked to the old five days calendar
    Hope this can solve your issue.
    Dario

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

  • Database Refresh Status log (Info)

    Dear All,
    Is there thing that can help to find out completion status for database refresh.
    Application log like hyplive.log located in the following location
    Oracle\Middleware\user_projects\epmsystem1\diagnostics\logs\essbase\essbase_0\app\HypLive
    the log file says this
    "[Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1013091)
    Received Command [Restructure] from user [admin@Native Directory]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1019017)
    Reading Parameters For Database [Drxxxxxx]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1019012)
    Reading Outline For Database [Drxxxxxx]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1019024)
    Reading Outline Transaction For Database [Drxxxxxx]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007043)
    Declared Dimension Sizes = [1408 4 82 2 2 3 10 14 16 17 33 66 183 193 265 852 922 920 2 1 4 3 3 3 6 ]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007042)
    Actual Dimension Sizes = [1395 4 81 1 1 3 10 12 16 8 26 64 145 163 245 848 898 914 0 0 0 0 0 0 5 ]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007125)
    The number of Dynamic Calc Non-Store Members = [191 0 54 0 0 0 0 2 0 9 6 2 34 20 19 4 0 5 ]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007126)
    The number of Dynamic Calc Store Members = [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007127)
    The logical block size is [112995]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1010008)
    Maximum Declared Blocks is [26928283342271066000000000] with data block size of [115456]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1010007)
    Maximum Actual Possible Blocks is [5868290301232498000000000] with data block size of [32508]
    [Wed Apr 04 14:53:50 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1200481)
    Formula for member [2050103] will be executed in [CELL] mode
    [Wed Apr 04 14:53:51 2012]Local/HypLive/Plan1/admin@Native Directory/Info(1007067)
    Total Restructure Elapsed Time : [0.235] seconds
    [Wed Apr 04 14:53:52 2012]Local/HypLive/Plan2/admin@Native Directory/Info(1007067)
    Total Restructure Elapsed Time : [0.266] seconds
    but i am looking for the status of database refresh failed or succeeded?
    Any suggestions.
    Regards
    Ace

    If it failed then you would of got an error generated in the essbase application log and the planning log.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 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

  • Database refresh dependency for iBot

    I have an iBot which uses a conditional request which checks if the database refresh is complete. All this does is that the report does not run. How do I make it such that the iBot keeps trying until the database refresh is over & once the refresh is over, it does not run again.
    Thanks,
    Dinesh.

    I had a similar requirement, send an email once a day, as soon as something is ready, but then once it has run once, then dont send it again.
    I created a REPOS variable and pulled in the date from the ibot job table as follows :
    select max(convert(DATETIME,left(END_TS,11),102)) "DATE"
    from
    S_NQ_INSTANCE I,
    S_NQ_JOB J
    WHERE
    J.JOB_ID = I.JOB_ID AND
    J.NAME = 'ibot_last_run_date' and
    I.EXIT_CODE > 0
    Then build an answers request to return a row when this variable value is less than today. That should do it (works for me).
    My Repos variable refreshes every 10 mins, the ibot is polling every 10 mins on an off-set schedule.
    Only one ibot is run daily, and it runs within 10 mins of the data being ready.

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

  • Database Refresh error

    Hi John,
    I have multiple queries now
    1. I pushed the account hierarchy using ODI. Capex and Wrkforce have been initialised on my application before pushing the hierarchy. In the log it show that member 'buildings' already exist. When i checked the hierarchy there are other members with 'buildings' as part of them like AFE-Buildings.
    2. Also, when the database refresh is run the capex default account members are not visible in the hiearchy. They are seen in the planning applcn but not in the EAS console
    3. Can we de-initialise workforce and capex?
    Edited by: Sravan Ganti on May 18, 2009 8:23 PM

    Hi,
    I am not sure what you mean in question 1, if there is a member in any of the dimension called "buildings" then it will fail as it is a duplicate.
    If you see the members in planning and refresh from planning with no errors then it is more than likely they in exist in one of the cubes, make sure you have the plan types correctly set up in planning and are checking the cube that relates to the plan type.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Database Refresh:  Save Job Components?

    Our DBAs will be performing a database refresh of our dev/test environments based on a current Production model. To account for differences in our existing jobs/chains between Production and our other environments, it would be ideal to save off the existing objects in dev/test before the refresh. Once the refresh is complete, we could then restore the jobs/chains.
    Has anyone experienced similar?
    - If a schema refresh is done of the particular owner of the jobs, will the underlying jobs, chains, programs, steps, etc. be included in the schema refresh?
    - If not, where, specifically, are the scheduler objects stored so they can be copied?
    Any insight would be appreciated.

    Thanks for the caution. After we performed the export I removed the jobs owned by that schema user and was able to rebuild using the DDL. I did notice that when the chain rules were created, the 'condition' syntax was converted. For example, instead of my first rule having a condition of 'TRUE', Oracle converted it to 1=1. Instead of 'STEP_1 Completed and STEP_2 Completed' it converted to
    ':STEP_1.STATE = 'COMPLETED' , etc. I don't think this should really be an issue.
    However, the real kicker is that the chain rule 'action' came back null. This includes removing actions such as 'START "STEP_3" ', and even my 'END' action. Is that to what you are referring? Not sure if this is a bug and/or if there is a workaround?

  • Database refresh Steps

    Hi,
    Can anyone give the procedure for DB Refresh pls?
    I couldnot find a clear explanation anywhere.
    Bipin

    Sory Werner if im wrong, Does the following forum explain about db refresh or they are just talking about cloning...
    Database Refresh
    I thought Refreshing the test db with production is termed as "db refresh"..
    Is it so? Can u pls explain?
    Bipin

Maybe you are looking for

  • Unable to create the test suits file!

    Dear Experts! Getting the "Unable to create the test suits file!" error while opening .bpel file in JDeveloper 10.1.3.5. Also, all the partner links showing warning symbol. When I click on them, getting the following error: ERROR:WSDLException: fault

  • Deleting PO line having subsequent MIRO

    Hi all, In our system we can delete PO line item eventhough it has subsequent MIRO. <b>We want to restrict this</b>. I could not find out any configuration for this. On SD side if we have subsequent doc, we can not delete the line item. Do we have so

  • Help! Time Machine Deleted My Oldest Backup!

    So, time machine deleted my oldest backup (because it ran out of room) I know it's supposed to do this -- but I didn't want it to. On my oldest backup, I had a folder with lots of pictures and documents. Does time machine delete files that can't be f

  • Is sound API uses the System resouces ?

    Hi All, I want to use sound API of JAVA. i.e javax.sound.sampled.* I want to confirm that ,Is sound API uses the System resouces ?

  • Why does my iphone shut off??

    Can anyone tell me why my iphone always shuts off by it self? Its starting to **** me off.