Change the Schema in Sql 2005

Hello Experts,
We have refreshed our QAS system from PRD (abap + java) system. The schema on the system is MCOD (IE SID). Although the database has come up, but in SAP we are not able to access the schema because the schema currently belongs to PRD system.
I have looked at OSS note 551915 but this script is valid for Sql 2000. We have Sql 2005.
Also, I have looked at a couple of scripts but that have not worked on our scenario to convert the scema.
Can anyone share and paste the Alter schema script to convert all the tables both for (SAPPRDDB and PRD) ?
Please Help!
Thanks,
Antarpreet

Hello Antarpreet,
Please suggest if I am wrong:
u have refreshed QAS from PRD and now the schema owner of QAS is SID of PRD and you want to change this to SID of QAS
Well then in that case you will need to perfrom schema conversion using SQL tools mentioned in the note I have given to you,I assure your issues will get resolved,we have been doing it a lot in our setup and have no issues,we also have schema systems
Also note 551915 also says this- to perform schema upgarde using SQL tools
Also what makes you say that the scripts mentioned in the note are for SQL server 2000,it is no where mentioned
But I strongly suggest you to go for SQL tools,even if it does no gud to your system(which is a remotest possibility),it will not do any harm....
Rohit

Similar Messages

  • Azure Website doesn't recognize my Database's Table after changing the Schema

    I have a Microsoft Azure Website running and working with an Azure SQL Database for the sole purpose of storing and retrieving user accounts. However I needed a mobile client as well there fore according to numerous tutorials online such as [THIS][1],
    I had to change the 'schema' of the database from 'dbo' to my mobile service's name which is 'usermobileservice'. 
    This was done using the SQL query:
    CREATE SCHEMA usermobileservice;    ALTER SCHEMA usermobileserviceTRANSFER dbo.usertable;
    This did the trick and I was able to connect to the Database using my mobile applications BUT now I can't access the database using my Azure Website! Gives me this error:
    Server Error in '/' Application.
    Invalid object name 'UserTable'.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'UserTable'.
    I believe the ASP.NET Web Application cannot find the Database Table anymore since I changed the schema? What is the right way of sharing the data between a Website and a Mobile Service?

    Hi,
    Thank you for your post.
    I am trying to involve someone familiar with this topic to further look at this issue.
    In the meantime, please have a check on the below link and check if it helps.
    https://social.msdn.microsoft.com/Forums/azure/en-US/60764eb6-17d0-4395-a887-2a793b44ce88/connect-mobile-service-to-an-existing-database?forum=azuremobile
    Regards,
    Mekh.

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • Change the schema of a report using oracle odbc at runtime

    Post Author: Guy
    CA Forum: .NET
    Hi,
    I'm using Crystl 11 r2 and coding in C#.
    In our oracle database we have many schemas.  When designing the report I can see many schemas (~14) when creating the new connection, but not the one for which I provided a username and password!  I guess it woud have been the ~30th of the list.  This wouldn't really mather if I was able to change the schema on which the report will be executed at runtime.
    But with both the native oracle driver or using odbc I am not able to change the schema (even if I change the DatabaseName in the connection info.  I've had a look at the CR_VS_CHANGE_DATABASE.ppt but it doesn't help me with Oracle...  Funny, I can't put anything in the connectionInfo.DatabaseName and it doesn't seem to change anything...
    Anybody ever succeeded to change all the connection info at runtime when the report runs on oracle?
    Thanks,
    Guy

    You should be able to do that by so:
    Go into the object navigator. Click on Paper Layout, and click on the Main Section label (not the plus sign). Hit F4 for properties - height and width are there. I think if you just changed those to what A4 is designated as, it should work.
    Note if you use a header/footer page, you would need to do the same to those pages as well.
    Hope that helps as I have not actually needed to do this yet. Good luck!

  • How to change the schema to another user ?

    Hi,
    I've registerd this schema and it works well,
    but I need to change the schema to connect to another User like MYUSER_2.
    because I have to migrate the MYUSER_1 to MYUSER_2 and then to delete MYUSER_1
    when I register the schema again with this user MYUSER_2
    , all xml-entries will become destroyed ?
    what can I do ?
    it's better , to register the schema without a user ?
    Norbert
    dbms_xmlschema.registerSchema(
    schemaurl => vschemaurl,
    schemadoc => xsd_file,
    local => FALSE,
    gentypes => TRUE,
    genbean => FALSE,
    gentables => TRUE,
    force => FALSE,
    owner => MYUSER_1
    ,CSID => nls_charset_id('AL32UTF8');
    );

    If 2 seperate users need to work witht the same XML Schema then the XML Schema should be registered as a global Schema. If you want to change the owner of an XMLschema, just like if you want to change the owner of a relational; table you will have to export the data and import it again.

  • How to change the Schema Location ??

    Hi ,
    I need to change the Schema name which is registered through the Deployment Manager . OWB allows all other Parameters to change except the Schema name . Any workaround ???

    On your mapping right click and choose the option configure (window Configuration Properties), open the tab "Sources and Targets" on this tab choose the table that you want to change the schema and on the label Schema insert the schema to be used.
    hope it helps!
    Regards,
    Vitor

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

  • The system copy with Sapinst has changed the schema in oracle

    Hi;
    have done a copy Homogeneous of a system and after having all correct I have seen that has changed the name of the Schemas and the name of the tablespace.
    the system is a PI NW2004S.
    When the oraginal schema is SAPSR3DB, in the target system is SAPSR4DB, and all tables are here.
    The tablespace SAPSR3DB in the target system is empty and the copy has created one tablespace SAPSR4DB
    They are normal these changes? 
    thanks a lot

    Hi;
    Thanks a lot for the help. But I have done one homogeneous system copy with Oracle 10G and NW2004s.
    I attached information by the original system:
    USERNAME                          USER_ID CREATED
    OPS$ORAGXI                             33 31-JAN-08
    SAPSR3DB                               31 31-JAN-08
    OPS$SAPSERVICEGXI                      30 31-JAN-08
    SAPSR3                                 27 31-JAN-08
    OPS$GXIADM                             26 31-JAN-08
    OPS$SR3ADM                             32 31-JAN-08
    DBSNMP                                 24 31-JAN-08
    TSMSYS                                 21 31-JAN-08
    DIP                                    19 31-JAN-08
    OUTLN                                  11 31-JAN-08
    SYSTEM                                  5 31-JAN-08
    USERNAME                          USER_ID CREATED
    SYS                                     0 31-JAN-08
    Theses the information about the target system:
    USERNAME                          USER_ID CREATED
    SAPSR4DB                               35 18-FEB-08
    SAPSR3DB                               31 18-FEB-08
    OPS$SAPSERVICEGXD                      34 18-FEB-08
    SAPSR3                                 33 18-FEB-08
    OPS$GXDADM                             32 18-FEB-08
    OPS$ORAGXD                             25 18-FEB-08
    DBSNMP                                 24 18-FEB-08
    TSMSYS                                 21 18-FEB-08
    DIP                                    19 18-FEB-08
    OUTLN                                  11 18-FEB-08
    SYSTEM                                  5 18-FEB-08
    USERNAME                          USER_ID CREATED
    SYS                                     0 18-FEB-08
    I have a new schema that contain all tables of original SAPSR3DB. The default tablespace of   SAPSR4DB                                
    is SAPSR4DB (new tablespace).
    I have other error when execute for example one backup with brtools
    BR0925I Public synonym SAP_SDBAH created successfully for table SAPSR4DB.SDBAH
    BR0925I Public synonym SAP_SDBAD created successfully for table SAPSR4DB.SDBAD
    BR0925I Public synonym SAP_DBSTATC created successfully for table SAPSR4DB.DBSTATC
    BR0925I Public synonym SAP_DBSTATTORA created successfully for table SAPSR4DB.DBSTATTORA
    BR0925I Public synonym SAP_DBSTATIORA created successfully for table SAPSR4DB.DBSTATIORA
    BR0925I Public synonym SAP_DBSTATHORA created successfully for table SAPSR4DB.DBSTATHORA
    BR0925I Public synonym SAP_DBSTAIHORA created successfully for table SAPSR4DB.DBSTAIHORA
    BR0925I Public synonym SAP_DBCHECKORA created successfully for table SAPSR4DB.DBCHECKORA
    BR0925I Public synonym SAP_DBMSGORA created successfully for table SAPSR4DB.DBMSGORA
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0319I Control file copy created: /oracle/GXD/sapbackup/cntrlGXD.dbf 12664832
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0301W SQL error -980 at location BrDbfInfoGet-32, SQL statement:
    'DELETE FROM SAP_SDBAH WHERE BEG > '10000000000000' AND BEG < '20070209000000''
    ORA-00980: synonym translation is no longer valid
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0301W SQL error -980 at location BrDbfInfoGet-33, SQL statement:
    'DELETE FROM SAP_SDBAD WHERE BEG > '10000000000000' AND BEG < '20070209000000''
    ORA-00980: synonym translation is no longer valid
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0301E SQL error -980 at location BrComprDurGet-1, SQL statement:
    'OPEN curs_11 CURSOR FOR'
    'SELECT FUNCT, POS, LINE FROM SAP_SDBAD WHERE BEG = '00000000000001' AND FUNCT IN ('CMP', '   ', '   ', 'DUR', 'DUL') ORDER BY FUNCT, POS'
    ORA-00980: synonym translation is no longer valid
    BR0314E Collection of information on database files failed
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0301W SQL error -980 at location BrbDbLogOpen-5, SQL statement:
    'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20080315000018', 'anf', 'GXD', ' ', '9999', ' ', 'bdxmccba', '7.00 (31)')'
    ORA-00980: synonym translation is no longer valid
    BR0324W Insertion of database log header failed
    BR0056I End of database backup: bdxmccba.anf 2008-03-15 00.00.21
    BR0280I BRBACKUP time stamp: 2008-03-15 00.00.21
    BR0054I BRBACKUP terminated with errors
    Brtools create public synonym of tables of schema SAPSR4DB, but theses tables are in schema SAPSR3.
    In one note , SAP explain that : I performance  Installation with
    independent SCHEMA-ID' as mentioned in note 659509       
    I don´t know this type of installation.
    Any Idea?
    thanks a lot

  • How do I change the scheme in outlook 2011?

    I want to change the color scheme in Outlook 2011 for mac.  The options do not look the same as solutions that come up in a google search to do this.

    I don't care for Outlook 2011 at all. I went back to using Entourage 2008.

  • Change the Owner of SQL Reporting Services Subscription

    So, I am having this odd issue after our Sysadmin changed my user name from what it used to be to something new.
    Now, subscriptions for reports that I had created for users are not working anymore. And it gives me following error,
    Failure sending mail: The user or group name 'DOMAIN\MyUser' is not recognized.Mail will not be resent.
    A quick Google, landed me on
    this old tip from MSDN about changing owner of report. According to that tip all I have to do is to update all entries in  "subscriptions"  table from older user to new user id, but for that new user should exist in "users"
    table  but in my case it didn't exist. So as suggested in very bottom of that same tip, I created (and deleted) bunch of items using Report Server Manager. But it didn't create my new user.
    Then, I removed old subscription and created new subscription. But it still shows my old username as owner of that subscription.
    So my question is, how do I change Owner of Subscription ?
    UPDATE:
    I forgot to mention that I am using SQL Server 2008 SP3
    TIA,
    Jack

    ListSubscriptions only takes one argument...
    http://technet.microsoft.com/en-us/library/reportservice2010.reportingservice2010.listsubscriptions.aspx
    If i grab the first 4 lines of that script then write the subscriptions variable to screen i can see all my subscriptions in our system.
    As mentioned the script is meant to get you started.  It could be failing on the authentication.  So depending on how your system is configured you might need to do something different in how you connect.  You'll probably have to do a little
    research to get everything to match up with your environment and configuration.
    I am not sure if it has something to do or not ... but I am using SQL Server 2008 SP3. And so if I use code like below,
    $ssrsProxy = New-WebServiceProxy -Uri "http://<report server>/reportserver/reportservice2005.asmx" -UseDefaultCredential
    $ssrsProxy | Get-Member
    Then I can see that ListSubscriptions has following definition, and it shows that it is actually expecting 2 arguments.
    ListSubscriptions                            Method     Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.reportservice2005_asmx.Subscription[] ListSubscriptions(string Report, string Owner)
    May be it is because I am using SQL Server 2008 ... not sure.

  • Changing existing schemas configured when the environment is running fine

    Hi Masters,
    Consider an Essbase server (11.2.1.4) which is running fine with some essbase applications and now I need to change the schemas on which the foundation and EAS are running.
    Can we do that and what could be the impact on running essbase applications?
    Thanks,
    Siva

    Hi John,
    I have gone through the docs referred and followed the steps, At the shared services DB configuration segment, I just gave the new schema/ password and clicked on Next button.... there its throwing an error "EPMCFG:10372: The database doesn't contain Shared Services information".
    Any tricks?
    Thanks,
    Siva

  • Proper way to make bulk changes the Owner ID, Path and file share credentials for my existing subscriptions, ExtensionSettings

    We are going through with an upgrade/migration to SSRS 2012 and moving everything to a different domain. We have about 200 active subscriptions running, the reports are being delivered to a file share.  What is the correct way, in bulk, to change
    the OwnerId, the Path and the FileShare Username password credentials for these subscriptions?  I see these values are being stored in Subscriptions > ExtensionSettings.  I see that the file share path and Owner wouldn't be a problem to change,
    but since I see the file share credentials are encrypted I would not be able change them directly in ExtensionSettings.  Anyone know the proper way to change the Owner ID, Path and file share credentials for my existing subscriptions without having to
    change each one of them manually in the report manager?
    Note: Reporting Services Native upgrade from SSRS 2005 to SSRS 2012.
    Thanks in advance.

    Hi Cygnus46,
    Based on my understanding, you want to change the Owner ID, Path and file share credentials for all existing subscriptions.
    In Reporting Services, the subscription information are stored in the Report Server database. In your scenario, you can go to report server database and run the query to list all the subscriptions, then modify the owner and fileshare paths in the subscriptions
    table. For more information, please refer to this article: Tip: Change the Owner of SQL Reporting Services Subscription. If you want to change
    the file share credentials for subscriptions, you can run the query provided by
    wiperzeus from this similar thread:
    Windows File Share Delivery/ SSRS 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to fire a schema trigger from outside the schema

    A user is using an ad hoc tool similar to SQL Developer called PeopleSoft Application Designer.
    He creates a connection to the db, then issues an alter session set current_schema = 'restricted_schema'. The connected user does not have direct privileges on the "restricted_schema" which they call SYSADM.
    After changing the schema context in that manner he creates objects in SYSADM. A schema trigger is then fired and grants privileges on the new objects created in SYSADM. Doing the same in either SQL Plus or SQL Developer does not fire the schema trigger.
    I think SQL Plus and SQL Dev are working as they should. Altering the session like that does not change your identity - just the schema context. But, when you examine v_$session, the connection with this other tool looks exactly the same as one from SQL Plus or SQL Dev when changing the schema context in the session.
    Instead of trying to figure out what this other tool is doing, is there any way for that schema trigger to fire when using this process from one of our tools?

    >
    A user is using an ad hoc tool similar to SQL Developer called PeopleSoft Application Designer.
    He creates a connection to the db, then issues an alter session set current_schema = 'restricted_schema'. The connected user does not have direct privileges on the "restricted_schema" which they call SYSADM.
    After changing the schema context in that manner he creates objects in SYSADM. A schema trigger is then fired and grants privileges on the new objects created in SYSADM. Doing the same in either SQL Plus or SQL Developer does not fire the schema trigger.
    >
    The user CANNOT create objects in any schema without the proper privileges.
    Setting the current_schema parameter does not confer ANY additional privileges to a user. See ALTER SESSION in the SQL language doc
    http://docs.oracle.com/cd/E14072_01/server.112/e10592/statements_2013.htm
    >
    CURRENT_SCHEMA
    Syntax:
    CURRENT_SCHEMA = schema
    The CURRENT_SCHEMA parameter changes the current schema of the session to the specified schema. Subsequent unqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement.
    This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give the session user any additional system or object privileges for the session.
    >
    If the user connects and sets SYSADM as the current schema and creates objects in SYSADM the user already had privileges to create objects in the SYSADM schema; setting the current schema has nothing to do with it.
    So your issue is that the user has privileges to create objects in the SYSADM schema; you need to revoke those privilges (or the role that grants them) to solve your problem.

  • How to change parsing schema for using application in test environment?

    Hi,
    I set up a test environment, i.e. an other Oracle schema with identical tables, views etc. to the productive environment. I wanted to duplicate the APEX application so that there will be a test version using the test Oracle schema and productive version using the productive oracle schema.
    Can some one please give me some tip how to do this? As far as I see i could change the parsing schema in the APEX Application install SQL in the following ways:
    1. While exportin the application with APEX
    2. In the result install f...sql file using search-replace
    3. While importing the APEX application via APEX Development GUI.
    I would prefere 1. or 3. but in both cases when I would like to change the schema name, the drop dowl list does not contain the test Oracle schema name. Do I have to grant something to the APEX worksspace schema for the test schema name to show up in the drop dowl list?
    Tamás

    On that screen,
    - click Create
    - select "Existing" Schema, click Next
    - select the Workspace, click Next
    - select the Schema, click Next
    - click Add Schema
    And now you'll end up with two schema's attached for the same Workspace.

  • MIgrate Data not woking SQL 2005

    I'm successfully Capturing Schema. Converting Schema from SQL 2005 (1 table!).
    I'm generating the Create Tables SQL to run in my Oracle database, but when I try to 'Migrate Data' in only 1 stream, its just says it has errored and does not tell me why.
    How can I find out why the migrate data is getting an error?
    Thanks

    I am having the same problem...

Maybe you are looking for

  • T400 with ATI Radeon HD 3400. Driver not found after running ImageX.exe /Capture

    Hello, I was able to reproduce the following problem on a T400. - unattended installation of WXP-SP3 (slipstreamed) - reboot - install latest ATI driver from Lenovo/IBM site (8.503.2.2-080818a-069536C) - reboot At this point, the video driver is well

  • Tracking Number for Inbound Deliveries

    We are trying to get ASNs from our suppliers for their shipments. We would like to capture the carrier tracking number (e.g. the Fedex number) from the supplier. I'm using segment E1EDL47-TRACKN in the DELVRY03.DESADV idoc. I'm not able to get the tr

  • Float display problem

    I have a float variable say f and it has a number 99999999.99 f. Now when i display it in the textfield it show me 1.0E8 Is there any method when i access f it give me 99999999.99 instead of 1.0E8 float f = 99999999.99f; textField1.setText(f);

  • Scheduler portlet error on ViewEvent

    I finally got the portlet installed. Now when I click on an existing event to see the details, I get the following exception: java.sql.SQLException: ORA-01410: invalid ROWID I verified that the ROWID that is in the html source does exist in the table

  • Question on file conversion?

    This is my last question . I am inquirng if it would be classed as legal if i removed the protecting from a itunes file for purposes of playiing it through a DJ program. Hear me out. The program is a DJ software program that plays music files straigh