System refresh - drop schema

I'v an existing QA system which I wish to refresh from PRD. The method will be using R3load export/import. My question is must I drop the database schema manually first before I start the import in QA, does sapinst prompt for us to delete the db schema or it does this overwriting automatically.
My dba is suggesting that i drop the db using Oracle database assistance (dbca) manually before the import.
I'm on SAP R/3 4.7, SAPinst 6.40.

On large systems (> 1tb) the creation of datafiles can take quite some time. To reduce the downtime during a migration i was using this procedure:
Do a test migration first:
- run sapinst, select the import (i was using "start migmon manually")
- at the start migmon step, stop sapinst, and backup the /tmp/sapinst_instdir
- finish the test migration
Then the real migration:
- drop the SAP schema (can also take a lot of time on a ERP system)
- recreated the SAP schema user
- put the backup of sapinst_instdir back in place
- done the export/import with migmon
- restart sapinst and finish the migration
So basically, this is possible but i can also confirm Markus's statement. If there already is a SAP schema sapinst asks if you want to drop it, i think you could even create a new one in that case.
Cheers Michael
Edited by: mho on Jan 26, 2011 12:50 PM
Ah, just had a review in the documentation, i recreated the user myself (but obviously this is only a tribute the my special sapinst-procedure):
create user SAPSR3 identified by sap default tablespace PSAPSR3USR temporary tablespace psaptemp;
grant sapconn, unlimited tablespace to SAPSR3;

Similar Messages

  • Changing OPS$ passwd during system refresh

    Hi All,
    i have to do system Refresh/system copy ,i m using oracle 10g database.
    while studying the docs and sap notes,i found that after database is backed from source system and restored in target system
    .It is also required to change some passwords for OPS$ or SAP<Schema> user in table "sapuser" at OS level.
    I am totally unaware of any such activity.can someone help me in this regard,as what are the post steps after DB is restored in target system and to how to perform them.
    We are using brtools here.
    Also what is the command line for restroring DB while system copy.
    Regards,
    Vishesh S

    *Hi,*
    *1.*
    *can someone help me in this regard,as what are the post steps after DB is restored in target system and to how to perform them.*
    After doing DB restore, one has to
    a. Apply the Control files of source system database
    b. Perform DB recovery by applying available offline redo log files (based on Complete DB recovery or Point-in-time DB recovery).
    c. Then after successful DB recovery, one has to OPEN the database with RESETLOGS options.
    d. Upon successful Database instance startup, Start Target SAP system
    *2.*
    *what is the command line for restroring DB while system copy.*
    brrestore -b logfilename -m full
    e.g. brrestore -b bcnmhluz.aft -m full
    *3.*
    a) Logon using the OPS$ user ("connect /@<sid>") to determine the
    sapr3 password that is stored in the database table SAPUSER.
    Now i have no idea,that how to check the password,as i logged in using "connect /",it just got connected.
    But how will i know that what password has been set.
    In OPS$ connection mechanism, only the existence of ops$<sid>adm user requires. Under <sid>adm OS user if you execute "connect /" in SQLPLUS, then it will get connected with Database through ops$<sid>adm database user, without asking for password.
    During OPS$ connection mechanism, the SAP work processes get connected to Database using this OPS$ user. Then as a next step,  the password of Schema user (SAPSR3 or SAP<SID>) is read from the SAPUSER table from database, and then with that password od schema owner , the R/3 work processes actually get connected with Database Instance schema. So the SAPSR3 password should be same at Oracle DDIC and SAPUSER table levels.
    If you do not know the password of SAPSR3 or SAP<SID> database users, you can change them with br*tools or by the execution of the following brconnect command.
    brconnect -f chpass -o [sapr3 | sap<sid> | sap<xyz> | sapsr3] -p <new_password>
    (Refer SAP Notes 562863, 361641 as reference)
    *4.*
    *after doing a system copy/refresh, what changes i have to perform in OPS$ user.*
    If your getting with OPS$ user issue while SAP startup or R3trans -d execution, then you can refer SAP note 40024 or do the following .
    a.
    Check weather the correct OPS$<SID>ADM user exists at DB level or not ?
    SELECT * FROM DBA_USERS;
    b. If the required OPS$ user does not exist in Target DB....
    CREATE USER "OPS$<SID>ADM" DEFAULT TABLESPACE <user_tsp>  TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
    c. Grant roles/previleges to OPS$ user
    grant sapdba to ops$<SID>ADM;
    d. check the existence of SAPUSER table and the owner of SAPUSER table in target DB
    SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    e. If the owner of SAPUSER table is not OPS$<SID>ADM, then u need to drop it and recreate it in Database.
    -- DROP TABLE "<owner>".SAPUSER;
    -- CREATE TABLE "OPS$<SID>ADM".SAPUSER  (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
    --INSERT INTO "OPS$<sid>ADM".SAPUSER VALUES ('<sapowner>', '<password>');
    f.
    Execute R3trans -d under <sid>adm OS level user and verify its return code. Also check trans.log file
    5.
    what is the middle step between db recovery and starting the system.
    middle steps can be
    a.  to OPEN Database with RESETLOGS or NORESETLOGS option and restart the DB instance.
    b. create OPS$ Database user according to new SID and new <SID>ADM OS user
    I hope the above information will be helpful to provide you possible understanding.
    Regards,
    Bhavik G. Shroff

  • 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

  • System Refresh: Abap+Java stack

    Have a few questions about CRM refresh I'm working on. Done many refreshes over the years and the new process has me shaking my head in disbelief.
    Performed a normal system refresh, by restoring online backup of production system onto mirror system. The mirror system exactly matches my production sytem (Oracle 10g, SuSE Linux 64 bit, UNICODE). 
    Now my system is running from Abap stack perspective, however Java components fail to load.
    Now from reading the documentation (System Copy for SAP, Based on SAP Netweaver 2004s Abap+Java) it appears that I have to use sapinst and no longer use online database backups for system refreshes.
    Is this the case? Has the investment my organization made into online backups now worthless?
    Is there a way to take the java schema in this online copied database and bring it online after converting it to work on the mirror landscape?
    Or should I throw out our system methodology and start new

    Thank you for the reply.
    Reading SAP's documentation seems to imply that I need to extract out the java schema from my production source and then re-install on my QA target to make a refresh of the java stack possible.
    However, if I have a complete copy of my source system database working on the target, why is the extract necessary?
    At least, I should be able to extract out the contents from the source as if it was the target, thereby eliminating any sort of production outages (we have many constraints about shutting down production from fuctional perspective).
    I'll do some research around the other tools mentioned to see if they can lend a hand fixing the issue,

  • System Refresh getting error "Your System has corresponding JAVA stack"

    Hello Experts,
    I am trying to do a system refresh on my HCM system which is ABAP only.
    When I run SWPM --> Generic Installation Options -->MS SQL Server --> Database Tools --> Database copy completion, I get the following error.
    Version Information is as follows:
    Kernal is 721
    ECC 6.0 Basis 702 level 9 (Netweaver 7.02)
    Windows server is 2008 R2 standard
    MSSQL is 10.50.4000
    Yes, I have done my research and failed also has a High OSS message open with SAP. This issue is very critical so any help as early as possible is highly appreciated.
    Thank You.

    Hi Muhammad,
    It looks like you have a Java schema in your database, and sapinst is finding that and therefore assuming it's a double-stack system.  Perhaps this system used to be double-stack at one time, and then was split?  In the trace file I saw the following entries, at different points:
    SID: HCT
    DbServer: USALSQLT01\HCMT
    DbName: HCT
    ABAP Schema: hct
    Java Schema: SAPHCTDB
    TRACE      2014-04-18 09:26:36.318
    Found corresponding java schema SAPHCPDB. Aborting.
    TRACE      2014-04-18 09:26:36.333 [iaxxgenimp.cpp:325]
               CGuiEngineImp::showDialogCalledByJs()
    showing dlg d_doubleStackSystemError
    TRACE      2014-04-18 09:26:36.333 [iaxxgenimp.cpp:335]
               CGuiEngineImp::showDialogCalledByJs()
    <dialog sid="d_doubleStackSystemError">
    <title>Unsupported System</title>
    <dialog/>
    So, that seems to be the cause.  If you're sure this is only supposed to be a single-stack ABAP system, you might try deleting the SAPHCPDB schema using database tools and then re-running sapinst.
    While you're at it, it looks like you might have an old copy of Sun JRE 1.4.2 still installed (perhaps from the old days when that version was required to run sapinst).  In the environment variables in the trace I saw:
    JAVA_HOME=C:\j2sdk1.4.2_29-x64
    You might want to uninstall that if you don't need it anymore, and unset that environment variable.  Also, your swap size looks low for a 64-bit system with 8 GB RAM, even for a test system:
    Swap size (MB): 9998.18
    Best regards,
    Matt

  • Unable to login in EP 6.0 after system refresh

    After performing the system refresh of EP 6.0, completed the post system copy steps.
    Imported the new certificated as well, when I try to login the page is getting refresh but remains on the same page.
    please help me what could be the reason.

    Hi Abdul.
    I think you have selected the Algorithm as RSA, which is the default one.<br />
    Please change it to DSA and hope the issue will be solved.
    Regards,
    Satish

  • Logical System Conversion after system refresh failed

    Hello,
    Logical System Conversion after system refresh couldn't complete as the printer was locked. This job was run in the background. In SM37, the  job log of RBDLSMAP shows as job finished, but it took only 40 seconds. Now I see that the logical system got changed(Converted) in the client settings scc4 but I know that this client being a production client and would run for couple of hours. Here is the job log information.
    02/18/2009 16:09:33 Job started                                                                     00           516          S
    02/18/2009 16:09:33 Step 001 started (program RBDLSMAP, variant &0000000000000, user ID ABCD)      00           550          S
    02/18/2009 16:09:33 Output device PRN1 is locked in the SAP system                                  PO           349          I
    02/18/2009 16:10:19 Job finished                                                                    00           517          S
    When try to rerun bdls again, it shows that it is already available and it says "The new logical system name is already assigned to the current client".
    Any suggestions on this?
    Thanks,
    Mahesh

    Hi ,
    Rerun the BDLS again as this took very little time.
    When you try to run again it popsup message saying it already exists just delete that and again put the Logical system name and run it will run that time.
    May be while scheduling the job you gave for spool I am not sure why is it looking for Printer which is locked.
    Thanks.

  • Refreshing drop down list in a web template based on a query view

    Refreshing drop down list in a web template based on a query view  
    I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
    Regards
    Collin

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Unable to refresh the schema of FIM MA.Getting an error in Event viewer ""the current version of database is not compatible with the one expected by Forefront Identity Manager service. The current version of database is : 1116. The expected version is :1"

    Hi,
    We have installed FIM MA with an account that have all the sufficient rights.It got created successfully and worked for Full Import and Full Sync. But, due to some version incompatabilities, we have installed a patch.PFB link for the patch.
    http://support.microsoft.com/en-us/kb/2969673/en-us
    Now, we are trying to refresh the schema of FIM MA. While doing that we are facing an error "Failed to connect to database". The user account with which we are connecting has read and write permissions on DB.In the event viewer some errors are
    logged like  "the current version of database is not compatible with the one expected by Forefront Identity Manager service. The current version of database is : 1116. The expected version is :1122" with event ID 3. PFB images for more detailed
    view.
    Please advice how to fix the issue.
    Thanks
    Prasanthi.

    Hello,
    seems to me that you maybe only updated the syncengine but not portal/webservice.
    I had that error once after an recovery from scratch and forgot one of the hotfixes to apply to all services.
    -Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • How to handle the CRM Middleware after system refresh?

    Guys,
    We are using CRM 5.0 & R/3 4.6C. We have the middleware configured and set up. We finished all inital loads & delta loads are activated as well. The system works perfectly.
    Now for some reason the client wants to refresh the R/3 system. (Basically they are copying over the R/3 Dev system to refresh the R/3 Sandbox system. Our connection is currently between the 2 sand box systems) What impact will this have on the CRM system? Will it cause mass delta downloads? I have already referred to notes 588701 & 765018. Any additional information or watch outs will be appreciated.
    Secondly what's the best practice do a refresh in the future? Is there a SAP recomendation on how to go about with system refresh when CRM & R/3 are connected?
    ARP

    Hello ARP,
    as always: It depends what to do:
    a) do you have a CRM DEV System available? If possible you should get the connection working over there and then do a Landscape Copy of the R/3 DEV + CRM DEV to the Sandbox Landscape.
    b) Let them copy the R/3 DEV to the R/3 Sandbox. Then use the Data Integrety Manager (Transaction SDIMA) to get the missing Customers, Transactions exchanged.
    In the future they normally have to do a Landscape Copy.
    Regards
    Gregor

  • Windows 8.1 will not activate on HP19-2113w after system refresh.

    Everything was working fine on my PC.  Then the other day it crashed and said there was a disk error and that it had to scan the whole drive to find the error. It finished scanning, but windows 8.1 would not load sucessfully.  Therefore I did a system refresh thru HP recovery.  After doing that windows would start up normally, but I lost my activation.  When I tried to activate the response was "Key doesn't work try again later" or something like that.  Kept trying, no luck.  I thought it may have been an error with the system refresh, so I did the total system reset (after saving personal data).  Now I am having the same problem with activation, and If I try to navigate the normal way to the activation screen, the screen disapears.  I can get to activation using command prompt.   but key still does not work.  The key I am using I retrived from my BIOS data.  Also, I ran the refresh and reset from the origional hard drive partition.  I hope someone has a solution to this.  Thanks is advance Bill   

    Hello , Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More. I have read your post on how your desktop computer will not activate after performing a system refresh, and I would be happy to assist you in this matter! In order to correct this issue, I suggest following the steps in this resource on Windows 8 product activation, which should help to activate Windows 8.1 on your system. Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards

  • Steps for System Refresh for ABAP + JAVA stack

    Hi friends,
    I am newbie to SAP BASIS adminstration. There is a system refresh activity planned shortly.
    Can someome pls let me know the steps for system refresh of ABAP  + JAVA stack??
    regards,
    Ambarish.

    Please check [systemcopy@SDN|System Copy and Migration] and [guides|http://service.sap.com/instguidesnw] according to your release.

  • Post System Refresh Activity - BDLS run

    Hi,
    We have finished system refresh of a QA system from Production.  We need to run BDLS now to convert the original Production logical systems to QA relevant logical systems. 
    I am short of understanding of this process.  Can anyone please help me with the concept and process?
    Thanks in advance,
    Abdul

    Hi Abdul Rahim Shaik,
    BDLS will convert the logical system name for your PROD to QAS.
    For eg:
    Your source - PRDCLNT100
    Your target - QASCLNT100
    If you go to SCC4 in your QAS, u will see Prod logical system name for the client.
    Once you run BDLS after system copy, logical system name exist  in every table for PRDCLNT 100 will change to QASCLNT100.
    Refer to below link for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/33/c823dbaea911d6b29500508b6b8a93/frameset.htm
    Cheers,
    Nicholas Chang

  • BDLS in system refresh

    HI all
    I did a system refresh of BI .After running BDLS the logs in BDLS shows success. But logical systems are not getting converted.When I checked in SLG1it shows no coversion has taken place. Can any one help me to proceed further and change my logical system
    Regards
    -aj_

    > Oh ok thanks but this was already done. what I mean to tell is If I run BDSL it is showing successful .When I check BDLS logs in SLG1 it is showing error. WHy this happens and what can be done?
    Without knowing the error that you see how should we help you?
    Markus

  • System Refresh problem - request/task does not exist

    I have a problem after system refresh, and when I am trying to import users and roles, I get the message - request/task XXXXXXX does not exist.
    Data/cofile are present.
    Can someone help me please ?
    Thanks in advance,
    Jordan

    I got it ... in SCC4, the client role must have been set to TEST instead of PRODUCTION, since the refresh is on Quality.

Maybe you are looking for

  • How to embed and play mp4 video in HTML AIR application?

    Adobe Air HTML / JS application compiled from SDK command line.  I am not using flash pro or flash builder to create the application. I was using dreamweaver but the dw air plugin seems to have stopped being developed so I switched to using the comma

  • How to Disable SSLv2 in Oracle IAS 10.1.3

    How to disable SSLV2 in Oracle IAS 10.1.3.. I added below in ssl.conf file.. But it is not working... SSLProtocol -ALL SSLv3 TLSv1 SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM Thanks Lalitha

  • Console Application to run with window open

    Hi Guys I have a Console Application that I wrote and it working perfectly when I run it manually. It can create report using Crystal Reports, exports to PDF and then print. My challenge was when I ran it as a task, the reports are created but its no

  • So wait - i have to PAY to talk to customer service on the pho

    since its been longer than 60 days? what the hell? im buying an ipod.

  • I cant see my files on my hard drive

    hi i'm having a problem with my hard drive that it's connected to my airport express is that ever time i connect to my drive i cant see my files in i!! please help me out guys with this problem my hard drive is toshiba