System Copy ERP6 using detach/attach MS SQL 2005

Guys,
I am doing system copy from production to QAS system.
I have installed fresh ERP6 system (SR2) on the target system. Then detached the database and attached production database. Then while running sapinst (system copy) I have selected use existing system. After this I have got following error
"User tables belonging to the dbo schema were found in the database QAS
You can only install an SAP system in a database with no user objects belonnging to the system schema dbo.
If there already exists an SAP system in the databse(MCOD), or you Install a Java add-in, you might have to convert the existing system to its own schema,Or contact your SAP support."
I dont know what I am doing wrong?
Can you please tell me the steps involved before running sapinst (system copy)
Thanks
Santosh

Hi,
1. First find out the user created tabels in QAS system with Db schema owner.
2. Then you can detach the db and then attache db.
3. then you can start sapinst.
4. here you have to give same schema id or different according your request.
5. Finally you also look into the followinfg site.
http://service.sap.com/systemcopy--> homogeneous systemcopy for MS SQL server.
Regards,
Srini Nookala

Similar Messages

  • After system copy we have old schema in sql 2005

    Hi,
    we have done the system copy using backup/restore method. After  restore we could see the database owner (schema) [prd and SAPPRDDB] in the Target QAS system.
    what is the procedure to change the schema from PRD to QAS and SAPPRDDB to SAPQASDB in target system.
    Thanks  & Regards,
    Kasi

    Hi Kashi,
    You can use the STM tool provided by SAP for schema conversion after DB copy. The tool is available on Service marketplace. It will automatically do all the required post-processing for MSSQL DB after a DB restore such that you can proceed with the SAP related post-steps.
    However, there are additional steps involved if you have both ABAP+JAVA stack. For JAVA stack you need to first export the JAVA schema using SAPInst and then reimport after the DB restore.
    Hope this helps.
    Regards,
    Deoraj Alok.

  • Trying to use Linked Servers in SQL 2005 to connect to RDB 7

    I'm looking for detailed info on how to set up a linked server in SQL 2005 to connect to my Oracle RDB 7 database (running on VMS). I'm able to connect via odbc using VS.Net and Sql Server 2005 Reporting Services. I'm not sure if I need to use the ODP.NET or not. I have created a generic linked server, but it requires me to use the OpenQuery function to access the data, which is not giving me the functionality I'm looking for.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

  • Using Oracle from MS SQL 2005

    I am having a strange problem while running an SQL statement in MS SQL 2005 that uses a linked Oracle server. I am getting the following error:
    OLE DB provider "OraOLEDB.Oracle" for linked server "OG" returned message "ORA-01403: no data found".
    Msg 7346, Level 16, State 2, Line 1
    Cannot get the data of the row from the OLE DB provider "OraOLEDB.Oracle" for linked server "OG"
    I am getting the error on the following SQL statement (OG is the Oracle server):
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IH.AID, IH.NumOut, IH.DateOut, IH.WorkerOut, IH.NumIn, IH.DateIn, IH.WorkerIn,
    CC.CatID, CC.CatName, CC.BinItem, CC.Active, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemHistory AS IH ON Inv.AreaNo = IH.AreaNo AND Inv.CatType = IH.CatType AND Inv.CatNo = IH.CatNo AND
    Inv.ItemNo = IH.ItemNo
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0
    What's strange is that the following SQL statement works fine. The only difference between table ItemHistory (above) and ItemsOut (below) is that ItemHistory adds 3 columns that ItemsOut does not have. Other than that table the SQL statements are the same (as you can see).
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IO.AID, IO.NumOut, IO.DateOut, IO.WorkerOut, '1' AS NumIn, '1/1/1900' AS DateIn, '1' AS WorkerIn,
    CC.CatID, CC.CatName, CC.BinItem, CC.Active, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemsOut AS IO ON Inv.AreaNo = IO.AreaNo AND
    Inv.CatType = IO.CatType AND Inv.CatNo = IO.CatNo AND
    Inv.ItemNo = IO.ItemNo
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0
    As a test I tried just running an SQL statement against ItemsHistory and the Oracle table, thinking it might be something with ItemsHistory, but the following command also runs just fine:
    SELECT ItemHistory.*, OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    FROM ItemHISTORY
    LEFT JOIN OGL..D.LE AS OG ON AID = OG.PK
    I'm not sure why the one SQL statement is erroring out with ORA-01403. I see no problems with it, as it is the same as the one that works except using a different table, and another SQL statement using the table in the erroring SQL works also. I'm stumped!
    I am using the 'OraOLEDB.Oracle' provider in SQL 2005.
    Thanks for any help you can give on this...

    I've been testing it, and I've found that if I comment out 4 fields from the field list (all from the same table), it runs. As soon as I add any one of the 4 fields back into the select list, I get the Oracle error. I also found that I had to change the Oracle table from a LEFT JOIN to just a JOIN, or else I also get the Oracle error.
    Here is the SQL (same as the previous post) with the 4 fields commented out, and the modified JOIN. Maybe that will give someone an idea, because it has me puzzled...
    SELECT Inv.AreaNo, Inv.CatType, Inv.CatNo, Inv.ItemNo, Inv.NumAvail, Inv.NumTotal, Inv.Active,
    IO.AID, IO.NumOut, IO.DateOut, IO.WorkerOut, IO.NumIn, IO.DateIn, IO.WorkerIn,
    OG.LASTNAME, OG.FIRSTNAME, OG.MIDDLENAME
    --, CC.CatID, CC.CatName, CC.BinItem, CC.Active
    FROM ItemInventory AS Inv
    LEFT JOIN CatCodes AS CC ON Inv.AreaNo = CC.AreaNo AND Inv.CatType = CC.CatType AND Inv.CatNo = CC.CatNo
    LEFT JOIN ItemHistory AS IO ON Inv.AreaNo = IO.AreaNo AND Inv.CatType = IO.CatType AND Inv.CatNo = IO.CatNo AND
    Inv.ItemNo = IO.ItemNo
    JOIN OGL..D.LE AS OG ON AID = OG.PK
    WHERE Inv.AreaNo = 0 AND Inv.CatType = 0

  • Using MAS/MAR with SQL 2005 / MSA clients with SQL2000 ?

    Hello,
    for the upgrade to MAS/MAR 5.0 SP15,  SQL2005 is only supported.
    AT the moment we use 5.0 SP11 with SQL2000.
    Is it possible to install the sql2005 only on the MAR/MAS and create an upgrade
    package (MUP) for MAS clients (with SQL2000), which should also be upgraded to 5.0 SP15 ?
    Or must I upgrade the msa-clients to sql2005 too ?
    Or can I upgrade the MAR/MAS with SQL2000 and forget the SQL-upgrade to 2005 ?
    WHat do you think is the best way ?
    Thanks,
    Gerd

    There are two possible scenarios for this issue.
    If all the clients are connected in network :
    1 You can take the IDES DB Backup in one machine copy it to all client laptops and restore it. you can also achive this using SQL server inbuilt stored procedures. i.e this can be automated with simple SQL script.
    If the client laptops are not in the network
    1. One way is, you have to upgrade one client laptop machine to SQL Server 2005 and make sure that every thing works fine. take the image of the machine, pack it in MUP  and roll out to all client laptops. This is the preferred way of doing.
    2. Secnd way is, You just need to automate the entire of task of taking the IDES DB backup in each user laptop, install the SQL server 2005 and then attaching the backup DB. It is not tested by us and not sure of the results.
    Best Regards
    Shankar

  • Has anyone used PS to Backup Sql 2005 DTS packages to individual files

     Looking for a backup script to store all of the SQL DTS packages in seperate files on a Network folder.
     Thanks.

    http://stackoverflow.com/questions/16309263/script-to-export-all-dts-packages-on-is-to-file-system
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • System Copy Homogeneous SAP R/3 5.0

    Hi gurus..
    I need the manual System copy homogeneous for windows 2003 and SQL 2005
    in SAP R/3 5.0
    Thank you for your help
    Luis

    Hi Gurus!!
    I've installed an system SAP 5.0,  SID= DET,  SN= 01,  HOST=SRV01037. in Windows 2003 and SQL 2005 in HP server, this has been finnished succesfull.
    Now I've executed backup of the data base of another server HOST=SRV01053, SID=DEV, SN=00 and this data base has been restored in the SRV01037 server, but when I start the instance, the disp+work stopped.
    I need know what's the correct procedure, to executed this operation.
    Best Regards.
    Luis Salazar

  • What issues will I have if I take sql 2005 on 32bitOS TO sql 2005 on 64bit?

    Last Year our SolMan was installed on 32bit OS, with SQL 2005 on Windows Ent. Edition (UNICODE).
    I am preparing to migrate it to 64bit OS, and want to get there as quickly as possible without jepordizing the data integrity.
    I was thinking that rather than doing a data export and import, that I could simply do a detach/attach of sql 2005
    On the NEW server with 64bit OS My plan is to install SolMan 7.0 UNICODE & SQL 2005
    If anyone has had experiences with this I would really appreciate tapping into your experience
    Thank You in Advance
    Regards,
    Maria

    Hello Maria,
    We have used attach and detach method. We used the system copy option in the installation master for the java instance. Search for SAP notes for more detail - i dont have the right note handy.
    Regards,
    Anand

  • System copy for ABAP+JAVA system using SAPINST method

    Dear support,
    We have recently upgraded to ECC 6.0 system and we have been still doing system copy by using backup and restore method. I know its<b> wrong</b>.
    which involves below steps , this old methos works fine for ABAP engine and evreything looks ok.But java engine will not work.
    So we need to use SAPINST method as described in note 785848 and system copy guide available on OSS. But i am really not able to understand sequence
    for tasks to be carried out in this SAPINST method.
    <b>Can anybody list few sequence along with step by step procedure as i mentioned below for old system copy procedure.</b>
    Is it really difficult to make that for <b>SAPINST</b>  as everybody says refer to standard guide and note ?
    Anybody if possible can make the same way as i did below , i think it would rather be small as far as my understanding after reading those docs.
    Simple old system copy procedure works for ABAP is as:
    Run the following command on source system.
    a. Login as <sid>adm
    b. svrmgrl
    c. connect internal
    d. alter database backup controlfile to trace;
    e. exit;
    f. Above command will generate a .trc file in /oracle/P01/saptrance/usertrace directory.
    g. Copy the text from CREATE CONTROLFILE until the ( and paste it in to any new .sql or controlfile.sql file.
    h. Copy the controlfile.sql to target system.
    i. Edit the file and replace the entire source SID to target SID.
    j. Edit the reuse database command with the set database command
    Copy the aft generated during the backup file from the source system to target system. (/oracle/<SID>/sapbackup)
    a. Change all the source <SID> to target <SID>.
    b. Only don't change the backup volume name it must be target system <SID>.
    c. Copy the above aft file name line from the source back<SID>.log to target<SID>.log file.
    5. Shutdown the target server instance.
    6. From this onwards all the command on the target system only.
    a. Login as <SID>adm
    b. run the SAPDBA
    c. select J (Restore/Recovery)
    d. select B (Full restore and recovery)
    e. select A (Select backup of type)
    f. Select the offline backup which you want to restore.
    g. It will take some time to restore.
    h. Once the database is restored login as <SID>adm and run the
    i. svrmgrl
    j. connect internal;
    k. startup nomount (if the database is already mounted shutdown it using the shutdown command)
    l. run the following command
    m. @controlfile.sql (file name of the control file contains the CREATE CONTROLFILE statement)
    n. After the run the above command it should give the "Statement Processed)
    o. alter database open resetlogs.
    I am really looking forward to see anybody take some time out to prepare this kind of step by step procedure.
    It would be of greate help for all of us for performing system copy with sapinst method.
    Looking forward for your support.
    Best Regards,
    AjitR

    Hi,
    As per the guide you need to do source system Technical Preparations, in that running the export preparation is also one. You need to run this first before you start the export, if and only if export will successful if preparation is successful.
    Yes you need to create the export directory to take the export copy of source system, it may be any where in your server. It should be having 6 to 8 GB free space.No need to create the export directory in target system, after export is completed in the source system you copy the export directory to the target system.
    <b>Target system</b>
    Yes you need to take the back up file system and delete all the contents of the directory.
    Yes it can be considered as fresh system installation but copy of source system.
    Yes the process follows after you giving the export directory path .
    Next screen you will get the database drop and recreate screen chouse the drop and recreate method
    Next J2EE user name and password
    Next DDIC password
    Next you have to give kernel and oracle client dvd path
    Next Parameter checking screen here if you are selected database drop and recreate you have to revise the oracle database system option
    If you are selecting review next screen is database advance option you have to select the advanced option
    Next you have to select following option to recreate
    1 Sapdata directory mapping
    2 Database instance file system
    3 Create database parameter
    4 Create tablespace
    Next screen sapdata directory creating
    Next screen you can just click next no need to change any setting
    Next table creation
    Next screen specify oracle instance directories
    Next again parameter checking and last this is last screen
    Next will be the execution screen
    Reward points if usefull

  • Homogeneous system copy using export/import on WIn/Ora

    Dear experts,
    i need to know the homogeneous system copy procedure using export/import method for following scenario as we are in the process of Data center migration of SAP systemsfrom location to another location.
    Source system:
    ECC6/BI7/APO(ABAP stack)
    OS:WIndows 2003
    D:B:Oracle 10g
    Target System: New hardware installed on Virtual environment(VMware)
    No change of SID
    ECC6/BI//APO
    OS:WINDOWS2008
    D:B: Oracle 11g
    It would be great if anyone can share the documentu2019s/links (Not SAP homogeneous system copy guide) which you have prepared for the homog. system copy using export/import on Windows/oracle  as i have done the system copy using backup/restore for ABAP stack and export/import for Java stack so far.
    Therefore i am not sure about this procedure/prerequisites/checklist needs to prepare as i have gone through the SAP guide but it is not step by step document.
    Cheers

    There are two approacahes for your  project
    1) First wether to use Oracle11g on target database
    2) Continue with Database Oracle 10.2 on traget database
    If you want to use Oracle11.2 on your target database you have to search the installers which are supported for 11.2 database. If the installers are available then only you can install your target database using Oracle11.2.Other wise t use Oracle10.2.0.4 is supported on Win2008r2. You can use this version of Oracle database to build ur target database.It works fine . Absolutely no problem.
    Later on you can upgrade the Oracle10.2 to 11.2 Onwards.
    If installers are avialble you can use Oracle11.2 also. There is absolutely no problem.
    As per my knowledge installers are available and supported with Oracle11.2.Also check the PAM before arriving on any deciscion.

  • Dump while acessing tables in sql 2005 using DB connect

    we have a sql 2000 as source system in place and now i created sql 2005 source system with DB connect.
    bw version 3.0.
    tables naming conventions are according to SAP.
    when i click the button to show tables in source system (sql server) , it is throwing a short dump while connecting to data base.
    I initially thought tahat something wrong with BW support pack , but my other sql connection is working perfectly fine.
    plz help.
    error in short dump
    Error analysis                                                                               
    <b>Only message types A, E, I, W, S and X are allowed.
    There is probably an error in the program          
    "RSDL_META_UPLOAD ".                               </b>
    <b>MESSAGE_TYPE_UNKNOWN" C                   
    RSDL_META_UPLOAD " or "RSDL_META_UPLOAD " 
    END-OF-SELECTION</b>"
    > points will be awarded for useful inputs..
    Message was edited by:
            aravind sam
    Message was edited by:
            aravind sam

    I am having the similar issue. I have DB connect to oracle schema, however, some of the tables I can view and access the data but others are throwing short dumps and following error:
    Event with errors RSDL_META_UPLOAD in DataSource
    I have applied support Pack 10 for BI. But this problem persist.
    Any IDEA.
    Thanks in Advance.
    Shaukat

  • SRM system copy

    Hello All,
    One of our IT partners has got an SAP SRM implementation and we need to set up our own SRM system as a copy of the partner's SRM system.
    How can we do this? What system copy approach we can follow?Will DB restore work?
    During the copy will it ask for any hardware/software keys?
    Do we need to seperately buy the licenses ? 
    Our OS/DB is going to be different from that of the partner.
    Please give me a high level idea.
    Regards
    Arun

    Arun,
    Check below sap notes, links & details.
    SAP Note 547314 FAQ: System Copy procedure
    SAP Note 89188 - R/3 System copy
    System Copy and Migration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b055e88d-f040-2a10-e390-862b4aedb339
    System Refresh
    How can we do this? What system copy approach we can follow?Will DB restore work?
    You can do this by homogeneous system copy. Yes DB restore method will work.
    During the copy will it ask for any hardware/software keys?
    No it will not ask for any keys(Homogeneous system copy not sure about heterogeneous system copy)
    Do we need to separately buy the licenses ?
    No
    Our OS/DB is going to be different from that of the partner
    The copy of an SAP system to another hardware is called a system copy. If the target system will run on a different operating system (OS) and/or a different database system (DB) than the source system, then this is called a heterogeneous system copy or OS/DB migration. Check below link for detail
    https://websmp108.sap-ag.de/osdbmigration
    Note 82478 - SAP system OS/DB migration
    You can download system copy guide from below link
    https://websmp203.sap-ag.de/instguides.
    Homogeneous System Copy:-During the system copy you use the same operating system and database platform as the original
    system.
    Heterogeneous System Copy:-During the system copy, you change either the operating system or the database system, or both.
    Heterogeneous system copy is a synonym for migration.
    System Copy :-Duplication of an SAP system. Certain SAP parameters might change in a copy. When you
    perform a system copy, SAPinst installs all the instances again, but it uses a copy of the source
    system database to set up the database.
    Database Copy :-Database-dependent part of the system copy.
    Hope this helps
    Thanks
    Sushil
    Edited by: Sushil Suryawanshi on Jun 2, 2009 2:12 AM
    Edited by: Sushil Suryawanshi on Jun 2, 2009 2:21 AM

  • When creating system copy of PRD sistem to QAS system how to create transpo

    when creating system copy of PRD sistem to QAS system how to create transport request queue on QAS with:
    everything transported to QAS previously but
    not transported to PRD.
    We have an approval procedure with delete form queue on QAS after import.
    Basically all tr.req from import queue(there I do not have delete from import queue) should be entered in same sequence to QAS.
    I know how to add technically one transport request to queue but how to do that for many(all)

    Jan
    Check the import history of both QAS and PRD from a date which is just after your previous system copy.
    Use the V-lookup function of MS Excel. You can determine those request which were there in QAS but have not been moved to PRD yet.
    Now, if you want to add multiple request in the import queue , I would recommend to do it from OS level but writing a script.
    You will find multiple threads in SDN for how to add request in import queue from OS level. Below one might be helpful
    Link: [Re: need TP command for Add  Transport Request to import Queue all at a time;
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 22, 2010 10:02 AM

  • System copy other than sapinst.exe

    Hi,
    i have done system copy by using sapinst.exe. is any other method/tool available to do system copy? also, how can i do a system copy without copying all the users available in the system to the target system?
    regards,
    siva kumar

    Hi,
    First, export the users (if required authorizaion also) from the target system (Say DEV) first and after that start the system copy. Now, after the system copy the target system (DEV) will have user master and roles and profiles of source system (PRD). Now, as you do not want the user master of source system, now import the user master profile which was exported before system copy.
    If you want user master along with roles and authorization then export profile SAP_USER otherwise if only users master is required choose SAP_UONL
    Hope clarified.
    Regards,
    Sharath

  • How to create linked server in sql 2005 to access free table visual foxpro 9 step by step

    Hi All, I want to connect to dbf file visual foxpro by using linked server in sql 2005, but i can't do, i hope getting best anwser from every body in forum.
    Thanks all.

    Hi doanpq,
    Please download and install OLE DB Provider for Visual FoxPro 9.0, which exposes OLE DB interfaces that you can use to access Visual FoxPro databases and tables from other programming languages and applications. Please see:
    http://www.microsoft.com/en-us/download/details.aspx?id=14839
    Then, please follow up the following article to create a linked server:
    Creating Linked Servers:
    http://technet.microsoft.com/en-us/library/ff772782(v=sql.105).aspx
    For more information, you can also take a look at the following article, especially Dave K's comment:
    http://blog.dbase.integralwebsolutions.co.za/2008/10/accessing-your-dbf-tables-via-linked.html
    Elvis Long
    TechNet Community Support

Maybe you are looking for