Sybase to the Migration of Oracle: issues of assignment of object names

I'm migrating Sybase to Oracle databases. By default, the name of the schema that results is < owner > _ < dbname > (dbo_SALES). To change this, I'm following the example to migrate objects in an existing user, as described here: http://dermotoneill.blogspot.com/2012/03/migrate-to-existing-oracle-users.html

The name of object change "DATABASE.dbo" to "DATABASE" - and it seems to work very well. The problem I have is that there are many references to the DATABASE... OBJECT that do not include "dbo", the owner of the object. These references seem to be replaced by dbo_DATABASE. Object.

Is there a way I can add another rule to the object name to catch these references? I am OK the migration offline, but I'd like to avoid performing a find/replace massive.

Other ideas would be appreciated!
Kevin

Hey Kevin,

I played a bit with a few examples and I was able to reproduce your problem with dbo... conversion of object name.
Looks like we are trying to guess the name of the target that we did not seize the owners of default database. Speculation works well, unless you specify the name of the target, as in your case.
Using SQL Developer 3.2.2 there is no solution except the search and replace dbo_databasename in the build script, as you suggest.
Sick, working on a better solution for the next release, if Developer SQL will guess 'dbo' as the user, then it may as well find the name of the specified target of the dbo instead to assume the default value of naming conversion.
Thanks for the comments,

Kind regards
Dermot.
SQL development team.

Tags: Database

Similar Questions

  • What are the risks involved in the Migration of Oracle 7 database to oracle10G

    Hello
    As a requirement of business me are necessary for the migration of our current production (Oracle 7.3.4) database to Oracle 10 G R2.

    I need to understand the risk involved in the affirmative and corrective action necessary.
    Your small contribution is greatly appreciated.

    Thanks in advance.

    Kind regards
    Vijay

    I did the migration of Oracle 8.1.6 to 10g database. Although I wasn't about many questions, questions I have met have been documented in Metalink. First, you will need to do a test migration, a UAT and then go to know the risk to go into production.
    I think you need to upgrade to 8.1.7 and migrate then import/export 10g directly. I had faced problems with the database with the Oracle Application database queues.

    Kind regards
    Marie.

  • display in the migration of Oracle 10 g problem

    Hello

    I am involved in the migration of 9 to 10g Oracle.
    I have a problem with a view that work in Oracle 9 but in Oracle 10 g triggers the following error:

    ORA-01446: cannot select ROWID, or sample, a view with DISTINCT, GROUP OF...

    In the source view, there is a call to another view and in the last one call to a view with a group keyword because I need the value of max() column in a table, so I need the group by keyword!

    Any suggestion/work around to get the max() without group value of?

    Thank you

    Hello

    Yes, MAX (and almost all other aggregate functions) have analytical equivalents.
    For example,.

    MAX (column_1) OVER (PARTITION BY column_2)
    

    calculates the MAX the same you would get with

    MAX (column_1)
    ...
    GROUP BY  column_2
    

    But without grouping.
    (I guess you always want to get only one line per group in your point of view, but there are ways to do it without using GROUP BY).

    If you need help, after:
    Some examples of data (from tables of the Basic)
    the output you want from these data (that is, the content of the view), and
    your existing view definition.

  • Convert Sybase update the query to Oracle PL/SQL

    Hello
    I have a Sybase query to update a table CRM_Report in another table r1 CRM_Report1, who do I migrate PL/SQL.

    Update CRM_Report
    Set LT_MMT = r1.LT_MMT, ST_MMT = r1. ST_MMT,
    LT_FixedInc = r1.LT_FixedInc, ST_FixedInc is r1. ST_FixedInc,
    LT_CrdCLN = r1.LT_CrdCLN, ST_CrdCLN is r1. ST_CrdCLN,
    LT_Der = r1.LT_Der, ST_Der is r1. ST_Der,
    LT_FX = r1.LT_FX, ST_FX is r1. ST_FX,
    LT_CrdCDS = r1.LT_CrdCDS, ST_CrdCDS is r1. ST_CrdCDS
    of CRM_Report1 r1
    where r1. Location = CRM_Report.Location
    and r1. CountriesGrp_Id = CRM_Report.CountriesGrp_Id
    and r1. CountriesGrp_ShortName = CRM_Report.CountriesGrp_ShortName

    I used Oracle SQL Developer for the application migration, but it doesn't seem to work

    All of the Suggestions.

    Dear bOrN_fReEsTyLeR!

    Sybase:

    update CRM_Report
    set LT_MMT = r1.LT_MMT, ST_MMT = r1.ST_MMT,
    LT_FixedInc = r1.LT_FixedInc, ST_FixedInc = r1.ST_FixedInc,
    LT_CrdCLN = r1.LT_CrdCLN, ST_CrdCLN = r1.ST_CrdCLN,
    LT_Der = r1.LT_Der, ST_Der = r1.ST_Der,
    LT_FX = r1.LT_FX, ST_FX = r1.ST_FX,
    LT_CrdCDS = r1.LT_CrdCDS, ST_CrdCDS = r1.ST_CrdCDS
    from CRM_Report1 r1
    where r1.Location = CRM_Report.Location
    and r1.CountriesGrp_Id = CRM_Report.CountriesGrp_Id
    and r1.CountriesGrp_ShortName = CRM_Report.CountriesGrp_ShortName 
    

    Oracle:

    UPDATE CRM_Report r
    SET (LT_MMT, ST_MMT, LT_FixedInc, ST_FixedInc, LT_CrdCLN, ST_CrdCLN, LT_Der, ST_Der, LT_FX, ST_FX, LT_CrdCDS, ST_CrdCDS) =
      SELECT LT_MMT, ST_MMT, LT_FixedInc, ST_FixedInc, LT_CrdCLN, ST_CrdCLN, LT_Der, ST_Der, LT_FX, ST_FX, LT_CrdCDS, ST_CrdCDS
      FROM   CRM_Report1 r1)
      WHERE r1.Location = r.Location
         AND r1.CountriesGrp_Id = r.CountriesGrp_Id
         AND r1.CountriesGrp_ShortName = r.CountriesGrp_ShortName)
    

    I have not tested but I think it will work.

    Yours sincerely

    Florian W.

  • MSSQL Server 2000 to Oracle 11 g: error on the Migration repository linking

    Hello! I'm currently migrating a MS SQL Server 2000 database to Oracle 11 g. With the help of:

    SQL Developer Version 4.0.2.15 Build 15.21

    JDK1.7.0_65

    I sysad account in MS SQL Server 2000, but have limited the privilege with Oracle 11 g as we have another group of TI that govern. Reading the documentation of migration said in the tutorial of migration of a database server Microsoft SQL to Oracle Database 11 g, I asked our IT to create the user using the following script:

    CREATING USER MWREP
    IDENTIFIED BY mwrep
    DEFAULT TABLESPACE MWREP_DATA
    TEMPORARY TABLESPACE TEMP;

    GRANT CONNECT, RESOURCE, CREATE SESSION, SEE at MWREP;

    Using the user defined MWREP, I tried to create the migration repository using SQL Developer, but it returned an error:

    SQL error on executing the Script

    Try to delete the repository before the creation of repository

    I tried to delete the repository, but he returned a denunciation of the question:

    Removal of the migration repository is completed, however, there was a problem with the deletion.  There may be several reasons for this. (1) the connection is not open.  (2) the repository has been damaged.  (3) there was no repository in this regard.  Db objects have not been deleted. The saved connection has been removed from the migration repository list

    Reading further, I came across these topics: How to remove a directory, How to associate Migration repository when using the tooland https://blogs.oracle.com/OCP10to11/entry/sqldeveloper_try_deleting_repoand learns that it is caused by a limited tablespace. Given that our IT run the following script to change the user MWREP:

    ALTER USER MWREP QUOTA UNLIMITED ON MWREP_DATA;

    But I still encounter the same error than repository migration association. Do I need a sysad privilege to continue with the association? (The generated code will run in by IT after conversion and translation). Do not change the quota of the user on the tablespace not yet enough?

    Any help is appreciated. Thank you in advance!

    Post edited by: changes GreenApple101 20140818 GMT + 08: 1. subject of ' SQL Developer: error on Association of Migration guard "" MSSQL Server 2000 for Oracle 11 g: error on Association of Migration repository "2. Some corrections of grammar

    Hi all! Tried to use a lower version of SQL Developer (Version 3.2.20.09 build HAND-09, 87), and I have successfully bound to the migration repository.

  • With regard to the migration of the Oracle database to MS SQL

    Hi all

    In my application, oracle is the existing database. We need to migrate from Oracle database to MS SQL.
    We need procedure is as below
    1 export data from Oracle and keep it in a file. (.dmp)
    2 import data from MS SQL in the oracle export file.

    and vice versa from MS SQL to Oracle.

    My question is - it is possible to import the .bmp (oracle export data) in MS SQL.

    Please clarify for me.

    There are two options to get the data from Oracle to MS SQL.
    The simplest is to create a linked in MS SQL to Oracle server and copy the data with a query like select * in oracle.schema.table my_mssqlTable; via the linked server.
    Some data types will not be supported.
    That's an instant copy.

    If you need a fence at real-time replication, you can use replication MS (I would not recommend because it creates triggers on the Oracle tables), or you can use GoldenGate or DataCurrents or other replication products.

  • 101202 BPEL process (Oracle AS) of the migration to SOA Suite 11 g (WLS)

    Hi all

    I am looking for more information on the migration processes BPEL developed using 101202 BPEL Process Manager struggle to run on AS Oracle 10 g, Oracle SOA Suite 11 g running on Weblogic Server.

    Pointers is very appreciated.

    Thank you
    Anish.

    Looking for info on integration OSR 10 g and SOA Suite 11 g I found this link (http://docs.oracle.com/cd/E12839_01/upgrade.1111/e10127/upgrade_soa_apps.htm) that might help you.

    Published by: alfredozn on November 15, 2011 11:26

  • Advantage of the portfolio after the migration to HSM with Oracle 11.2.0.1.0

    Hello

    I found this integration for Utimaco Cryptoserver guide: http://hsm.utimaco.com/solutions/db-encryption/ and now I wonder if it is necessary to keep the original portfolio after the migration of HSM with Oracle 11.2.0.1.0. As I understand it, eventually all the necessary keys are stored in HSM. Is still used portfolio in a way or is it possible to reuse maybe after you set the METHOD to FILE sqlnet.ora?

    Thank you

    Hi flyer007,

    If you used the Wallet before Oracle, then migrate the master key of TDE from there to an HSM is a renewal of key operation; the keys of the table (for the TDE column encryption), and tablespace (for TDE tablespace encryption) key is decrypted with the old key in the portfolio) and encrypted again with the new MK unified (in the HSM).

    Your RMAN backup files, export files Data Pump and same 'live' in the redo logs, TEMP and UNDO tablespace can be encrypted with the old MK in the wallet, that's why we NEVER delete the portfolio.

    Of course, the Oracle database automatically knows what MK he needs.

    Good luck

    Peter

  • Problem with the migration of key primary and foreign from SQL Server to Oracle

    Hi people, I use SQL Developer to migrate Oracle to a SQL database, and I'm stuck with a few questions:

    So far, the worst of them is the fact that I can not migrate the PKs and FKs. After having successfully captured the model DB in SQL Server and Oracle conversion, when the tool generates scripts, all ALTER TABLE queries that add pharmacokinetics and the FKs have their columns duplicate targets.

    for example: when I'm trying to migrate a simple table that contains an Id (PK) and the columns name, the tool generates the following scripts:


    PROMPT create Table TestTable...
    CREATE TABLE TestTable)
    ID NUMBER (10,0) NOT NULL,
    Name VARCHAR2 NOT NULL
    );

    The PROMPT create constraint primary key on the table TestTable PK_TestTable...
    ALTER TABLE TestTable
    ADD CONSTRAINT PK_TestTable PRIMARY KEY
    (
    ID,
    ID
    )
    ENABLE


    Regarding the FKs, the tool duplicates the columns thus:

    ALTER TABLE SomeTable
    ADD CONSTRAINT FK_SomeTable_SomeTable2 FOREIGN KEY
    (
    SomeTable2Id,
    SomeTable2Id
    )
    REFERENCES SomeTable2
    (
    ID,
    ID
    )
    ENABLE
    ;

    Does anyone have an idea on how to solve these problems? I would be very grateful for answers!

    Hi Fernando,

    I was unable to reproduce this problem. My primary / foreign keys when defined using unique columns.

    The PROMPT create constraint primary key on the suppliers table PK_Suppliers...
    ALTER TABLE suppliers
    ADD CONSTRAINT PK_Suppliers PRIMARY KEY
    (
    Vendor No.
    )
    ENABLE
    ;

    I tried a few things like
    capturing twice and rename the two models of the same
    Rename the converted templates
    but without success.
    I think that this problem occurs is in the capture phase or convert.

    (1) you perform the capture online or offline?
    (2) can provide you a DDL together for one of these tables and the indexes to see if I can reproduce?
    (3) made of capture or convert fail or be again at any stage?

    I all else fails I would attempt a capture and convert again using a new repository (create a new schema in Oracle and associate him the migration repository).

    Kind regards
    Dermot
    SQL development team

    Published by: Dermot ONeill on October 22, 2009 12:18

  • Migrate the database to Oracle 10 g Standard Edition to Enterprise Edition

    What is the best way to migrate a database was created with the title of Oracle Enterprise Edition (both 10 gr 2) Standard edition?

    I can just install new binary EA. or do I have to recreate the Pb and to import/export?

    Thanks in advance!

    Hello

    I suggest that you install classic editiion and import/export company defenitely will work for you without hassle.

    Just export / import the schema of the application based

    On SE
    exp system/password owner=userA,userB, userC, userD file=myusersexport.dmp log=myusersexport.log
    
    On EE, make sure  userA, userB, userC, userD exists and so any special ROLES before importing
    imp system/password fromUser=userA,userB,userC,userD toUser=userA,userB,userC,userD  file=myusersexport.dmp log=myusersimport.log
    

    Concerning

  • Need help in the migration of windows 2003 server Oracle database server 2012

    Hello

    My environment is oracle database 9i in windows server 2003, we want to move to Windows 2012 since the end of support for windows 2003.

    Please give me a plan, what no need to make the first database upgrade or upgrade of windows, what are the things will have to be considered at the level of Oracle database?

    Any help would be appreciated.

    Thank you

    Lherault

    Hello

    Given the version of your database is 9.2.0.8 and you want to upgrade to 11.2.0.4 and 9i database is running with log mode archive

    I have plan.

    (1) your database 9i working with the log mode archive Server 2003

    (2) you can take backup of Database 9i with RMAN

    (3) you can restore the backup to the base in 2008 (by using 11.2.0.4 software)

    (4) when the recovery is complete, you can open the database with resetlogs option upgrade.

    change the upgrade of open database resetlog.

    (5) once the database is open, you can run 'Upgrade PROCESS'

    (6) it should complete your upgrade in 2008

    If you think, restoration and recovery will take time, so you can install physics Eve with 11.2.0.4 version in 2008 for the Database 9i.

    During failover, you can recreate the controlfile and open the database ' change the upgrade of database open resetlog. "

    you will need to check the compatibility with the help from under documents

    Reference list Oracle database upgrade (Doc ID 730365.1)

    Note 551141.1 : Server Upgrade/Downgrade Compatibility matrix data base

  • After the migration of the catalog security issues

    Hello

    We installed a new environment of Sys (11.1.1.7.0) and now need to migrate the OBI of Dev (11.1.1.7.0) objects. Everything works as expected in Dev with connection and view dashboards appropriate according to the permissions of the users. Now, after the migration to Sys when we try to connect to hostname:9704 / analytic all users cannot see the table edge and catalog of objects. WebLogic even does not see everything. I can see items in catalog offline through the Manager of catalog or Windows Explorer. If I look at the catalog using the Catalog Manager my permissions do not allow me to see all items in folders. However, Dev, I am able to do. It seems that some thing is out of sync btwn the catalogue and policy store even if users have the relevant groups assigned in the weblogic LDAP. Any ideas on what might be happening or how to fix?

    Migration process:
    (1) store the migrated policies and identity sys Dev store. Confirmed objects have been migrated.
    (2) migrated RPD and sys Dev catalog. Confirmed objects have been migrated.
    (3) refreshed GUID in Sys
    (4) services start successfully

    Kind regards
    Mike

    Hi André.

    I worked with Mike on this permissions problem and can provide feedback.

    I compare the "Shared folders" privileges between the two environments, DEV (works) and TEST (does not work).

    The DEV environment has:

    Name - Type of permission - details-
    ------------------------------------------------------------------------------
    -Authentication user - Application role - total control - control total
    -Presentation Server Admins - role of catalog - full control - full control

    The TEST environment has:

    Name - Type of permission - details-
    ------------------------------------------------------------------------------
    -Admin BI role - Application role - full control - full control
    -Role of consumer BI - custom...-read, through, etc. - the Application role

    I'm changing the TEST environment to reflect our operation DEV permissions:

    Name - Type of permission - details-
    ------------------------------------------------------------------------------
    -Authentication user - Application role - total control - control total
    -Presentation Server Admins - Application role - full control - full control

    I am now able to log in as my administrator user and have access to the appropriate objects.

    I have a few questions, I hope you can clear up however.

    (1) something in our process of migration to our TEST about. must have updated the privileges of shared folders not to include roles authenticated the user & Presentation Server Admins/groups. It's weird, because we migrated all our DEV operating environment around. No indication of what we have fact/lack would be useful.

    (2) authorities 'Shared Folders' REP on my DEV TEST Server vs server, the type of role is 'Catalogue', and 'Application' on the other. How we do conversion as a catalogue to an application from DEV to TEST role?

    DEV:

    Name - Type
    ------------------------------------------------------------------------------
    -Presentation Server Admins - role catalog

    TEST:

    Name - Type
    ------------------------------------------------------------------------------
    -Presentation Server Admins - Application role

    Much obliged.

    Ben

  • The migration of all the ebs installation 12.1.3 fresh installed ebs 12.1.3

    Hello world

    12.1.3 EBS was installed on Linux rhel 5 1 year ago. and after 1 year with many configurations and customization.


    EBS showing a lot of issues and requirement is to install 12.1.3 EBS fees and move all previous data EBS & configuration to the freshly installed.

    As it seems that EBS 12.1.3 has not been installed properly, which led to many questions issues.my.


    (1) is it possible to install 12.1.3 EBS fees and then move the configuration and data prior to this.
    is this advisable?


    If Yes?  How? Kindly give me a detail orientation

    (2) how to do a checkup currently installed EBS 12.1.3.

    I mean if I can show them that there is nothing wrong with the installation. Then we need to think about alternatives.

    What about the issues? they are functional configuration number? or the issue of customization?
    If so why would you move only those configuration when you already have questions about...

    Yes, you can migrate

    For the migration of application level, see:

    Migrating applications platform with Oracle E-Business Suite Release 12 (Doc ID 438086.1)

    R11i / R12: Oracle E-Business Suite upgrades and Platform Migration (https://support.oracle.com/rs?type=doc&id=1377213.1%29Doc ID 1377213.1)

    For installation

    https://blogs.Oracle.com/stevenChan/entry/ten_ways_of_using_isetup_to_st

    For database migration, see:

    Process of 12.0 and 12.1 using 11 GR 1 material or 11 GR 2 import/export (Doc ID 741818.1)

    Using Transportable Tablespaces for EBS Version 12.0 or 12.1 using Database 11 GR 2 (Doc ID 1311487.1)

    TO check the cross installtion

    How to locate the log files and troubleshoot a quick installation for immediate release 12.0.x and 12.1.x (Doc ID 452120.1)

    ApPsMaStI

    sharing is caring

  • Character set US7ASCII AL32UTF8 migration to Oracle Applications database

    What is the best method to get the character set migration of Oracle Applications database?

    The options available are

    (1) export and import

    (2) CSALTER

    (3) DMU

    Database - 11g

    Applications - R12

    Please suggest some tips and recommendations.

    Kind regards

    Nordine

    Post edited by: e0d0dacd-a343-414e-bfc0-aff53eaab398

    Nordine salvation,

    I suggest you to refer the link: "How do I convert the character set for Oracle R12.1.1 running on 11.0.6 database Oracle US7ASCII' as it is very relevant to you."

    Response to your previous post would be:

    S ' stick to a plan

    -Try all of the activity on the TEST server for yourself

    -Troubleshoot and debug all the question from A - Z

    -On the successful implementation, make a backup of the Production and move the solution to PROD.

    If possible, run a lot of questions while doing the character set migration oracle applications, database because it contains the application tables.

    I accept the fact that EBS database is complicated to a database independent, but still all the features and debugging tools and troubleshooting is the same, although it is autonomous or EBS database.

    We should do if we stuck to the top in with and truncate in the application according to the CSSCAN results tables,.

    little tables when we checked in Metalink he says to avoid these tables which do not affect the database or application.

    Try in a Test Server, the above link helps you on the issue. You can find answer to some tables with loss in metalink if it's a bug, just lift a SRt solve your problem.

    What we must do if we are in important application tables, export and import will help in this issue.

    No, if we have available data with loss, then we cannot use the Import/Export and we will have to use CSALTER instead.

    is this the right method or must contact oracle support for assistance on important application tables.

    YES, I personally recommend you try and paralleling have ongoing Oracle support. So that you will have a guide from A to Z, in the case you're wrong

    Hope this helps

    Best regards

  • TMS directory failed in the endpoints of series C after the migration of the device to the virtual computer

    Hi all

    We have migrated the 12.8 TMS from the device to the TMS 13.0 on the VM platform. There is no matching TMSPE and mainly used for management and directory service.

    Once the migration is complete on the platform of the VM, we found that endpoint C-series could not receive phonebook of TMS (while 95 MXP endpoints works very well with the TMS directory).

    The end point of series C, we check the Configuration-> directory server 1: URL. The link is converted from http:// /tms/public/external/phonebook/phonebookservice.asmx http:// tms/public/external/phonebook/phonebookservice.asmx.

    (In addition, we check the authorization of the two phone book page, and there is no IIS issue).

    In the 95 MXP endpoint, it can receive the telephone directory unit VM MSD and MSD.

    Best regards

    Ben

    Hi Ben,

    As confirmed by the curl command - you don't have access to the web page as an anonymous user.  You have to fix your permissions.  One of the fastest ways to do would be to try to reinstall the MSDS on the server again - this should reconfigure the IIS settings required for TMS.

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

Maybe you are looking for