Migration of next_identity() from sybase 12 to oracle 10G

Hi,
What is the oracle equivalent for next_identity() in sybase.
Thanks and Regards,
Vinoth Kannan

Hi Vinoth,
The OMWB does not migrate this function automatically.
next_identity() returns the next value to be used in an indentity column. You pass it the name of the table as a parameter. Example
T-SQL
SELECT next_identity(table1)
if table1 does not have an identity column then null is returned, otherwise the next identity value for that table is returned.
Oracle does not have identity columns, so the OMWB will migrate identity columns to a sequence and a trigger. This sequence will named SQ_<IdentityColumnName>.
So to emulate
next_indentity(<table_name>)
you may have to go
SQ_<IdentityColumnName>.CURRVAL + 1
Regards,
Dermot.

Similar Messages

  • Migrating table from Sybase 12 to Oracle 10g

    Hi ,
    We have a situation where we have to migrate multiple Sybase databases to Oracle10g . These multiple database have same set of tables but different data in these tables on each sybase database ( data differ, based on location or region wise but same table name and structure). We want to migrate all these sybase database to Oracle 10g and in single database, which involves inserting data from multiple tables ( though they exist on different database in sybase) into single Oracle table.
    for example if we have a table 'TESTK' that exist on five different sybase database but with different region wise data. I want to bring data from these five tables( Five as they exist in five differet sybase databases) and insert them into a single oracle table 'TESTK' .
    Have anybody ever face such scenerio , what are all possible approch please suggest. Once data is inserted into oracle table i need to partitioned this oracle table as well.

    It is not quite clear whether you have multiple tables (referencing each other) in multiple sybase databases or either one table or several non connected tables in multiple sybase databases.
    In the first case of course your task is harder because you need to keep references and most probably you cannot blindly copy data from db 1, db 2 and unite them because they can have the same id's coming from different sources.
    In the second case your task of course is much easier you can simply load all your data in Oracle tables either using some interim tables (if you need to filter out duplicates) or load data straight into target tables if you are sure you haven't duplicates.
    Also another question in case 1 is whether intersection of your data is 0 rows i.e. all data are completely different in each source db or not.
    So I'm sure you can find tools for blindly moving data from sybase to Oracle, although if you need to do some more complex filtering, computation or whatever you most probably need to write it yourself.
    I'v done a few data conversion projects from one schema to another and as the requirements were quite complex the only possibility for us was to initiate a separate data conversion project and create conversion software (pl/sql packages manually).
    You can find an overview of our approach in my article "Data migration from old to new application: an experience" here http://www.gplivna.eu/papers/legacy_app_migration.htm
    Gints Plivna
    http://www.gplivna.eu

  • Migrating selected data from Sybase 11 to Oracle 8i

    We have an application re-written using an Oracle 8i backend and we need to migrate data from Sybase 11.9.2 to Oracle 8i. No triggers or procedures to migrate, and not all the tables or even all the rows in the tables. I have read a lot of posts on this and am not sure if the Workbench or Heterogenous services is the best tool/method. For bulk migration it seems the Workbench might work if we create a view and bcp just the view data in comma delimited then use the SQL Loader to move it to Oracle. As a side question when bcping the view do we want to terminate each line with cr/lf or no line termination. Alternatively, could we use the hetergenous services and some perl scripts to accomplish the same thing using copy and select and throttle it some running in batches?
    Lastly, if we'd also like to possibly access the old Sybase data does the new client app need specific coding to utilize this service? Do the two db's need to be the same schema or identical to utilize this product?
    Thnks - bc

    Sandeep,
    Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
    Are you using the connected or disconnected source model load?
    Donal

  • Migrating from Sybase 11 to Oracle 10G : Data not Captured

    Hi,
    We are working on an interesting customer engagement - one part of the effort is to migrate our Customer's Database. Our Customer is using the Sysbase 11 Database - we are planning to migrate this to Oracle 10G.
    We are using the latest Migration Workbench - 10.1.0.4.0. We created a new user in one of our local DB Instances & used this credential to login to the Migration Workbench tool. We have the Source Files for the Sysbase 11Database.
    We tried to capture the Source Model - unfortunately, the Tool claims that the Objects have been migrated, while the Source is not captured at all. The Error Log is alos silent about any problems.
    We are flummoxed by this error as we have successfuly migrated from Sysbase in the past, but never encountered this error.
    Can you guuys please help us out with this ?
    Please do let me know if I need to post more information
    Thanks,
    Sandeep

    Sandeep,
    Have you used this user which holds the omwb repository before for a migration? When you connected the first itme, did you get a message, that the repository tables did not exist and would you like to create them?
    Are you using the connected or disconnected source model load?
    Donal

  • Migration from sybase 11 to Oracle 9i

    Hi,
    I have to migrate all db objects (tables structures,table data,triggers,sp) from Sybase 11 to Oracle 9i
    There are currently two free tools -
    Migration workbench (http://www.oracle.com/technology/tech/migration/workbench/index.html )
    and
    SQL Developer( http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html )
    for this purpose.
    SQL developer has a provision to convert scripts which I can use for SPs and scripts one @ a time.
    Problem is migrating table structures along with data.
    from SQL developer I can't connect to sybase thou I provide all the details and from workbench in the online mode I need the sa login which is not possible as the database is live and @ client side.
    SQL Loader can be used but will require to make CSV files from each sybase table and hence is time consuming.

    Hi,
    Migration Workbench is not available for Sybase database.
    As you can see on this website:
    http://www.oracle.com/technology/tech/migration/workbench/files/mig_rel10104.html
    Only Informix and DB2 database are supoprted now with this product.
    With SQL Developer, we only support last versions of Sybase : V12 and V15.
    As you don't have any remote access to your client database and no SA login , the best way would be :
    ==>to get and export from Sybase 11.
    ==>install a V12 somewhere (on your site , you can download the Sybase V15 )and import the Sybase database
    Then SQL developer can migrate quickly your database without any problem.
    I hope it helps you.
    Mireille

  • Related to migration of db from sql server to oracle 11 g

    We're trying to migrate a Sql server managment studio database to Oracle 11g using SQL Developer 4.0. We can successfully connect to both Sql server managment studion 8.0 and Oracle 11g using the tool, as well as click through the Migration Wizard and start the migration.
    This opens the Database Migration dialog box, which indicates the capture process starts normally. we get the following error:
    ora :01440 : can not insert null into migrlog (id column) ,
    \and then after some time , i get an error that migration failed
    i am not getting the reason,I thing it may be due to reason that , I have table's column in my source db with more than 30 character.
    If i am migrating one by one table . then it is not giving any error, and identifier name is getting shrink in 30 character. but i am not getting the view , stored procedure , indexes , and others
    then what is the solution  for that, somebody pls suggest any help?????????????               

    Pl do not post duplicates - related to migration of db from sql server to oracle 11 g
    Continue the discussion in your original thread
    The error message is explicitly clear
    ora :01440 : can not insert null into migrlog (id column)
    Your process is trying to insert a NULL value into the ID column, which presumably cannot be NULL

  • Migrate from redbrick database to oracle 10g

    Hi Folks,
    Does anyone of you did a migration from redbrick database to oracle 10g please help me out with the steps to do that? I tried to search for a document with no luck.
    Appriciate if you could point me to a doc or a white paper that talks about the migration.
    Thanks in advance.
    Karthik.

    Red Brick is now part of the Informix family, maybe the migration workbench helps:
    http://www.oracle.com/technology/tech/migration/workbench/index.html
    Werner

  • Migrate Data action hanging migrating from sql server to Oracle 10g

    Hi,
    I am currently migrating a SQL Server 2005 db to Oracle 10g using SQL Developer 1.2.1. I have created the migration repository, captured the SQL Server db objects, and created the target schema. There are about 109 tables captured. During Data migration, however, the data move hangs. I have run the data move a couple of times now and it does not hang while migrating any particular table, but seems to be more to do with the length of time it is taking to migrate. Could this be an issue with SQL Server connections being lost? The SQL Server db is quite large. Row counts of 100k plus.
    Message was edited by:
    user596259

    Probably. There is an offline option for migrating data under the migration menu. Generate Scripts for the data move using the appropriate converted model and u can export the data to bcp export files and load it with teh generated SQL Loader scripts.

  • Shortcut to find a property from property pallate in oracle 10G forms

    Hi,
    I want to know the the shortcut to find a property from property pallete in oracle 10G form builder.
    Because i cannot use mouse due to blindness. Please tell shortcut to locate a property from property pallete.
    Qasim Javaid Malik

    Hi,
    Yes, the keys I mentioned open Property Palette.
    I have no clue about short-cuts for properties in an open palette.
    The Up and Down arrow keys work will you enter a LoV, and I could not figure out key strokes to come out of the LoV !
    Maybe someone else has some idea of this.
    Cheers,
    PS: I was trying on 11g R1 as I do not have 10g any more.
    Edited by: Prabodh on Sep 14, 2012 2:53 PM

  • Migration from Sybase 11 to Oracle 8i

    I am trying to migrate a Sybase DB to Oracle 8i. The platform of Sybase system is VMS and Oracle is UNIX. Can I use workbench to migrate between two different platform?
    If not, is it the only way to export sybase to a flat file and then load to Oracle using SQL loader?
    Thanks

    Hi,
    Migration Workbench is not available for Sybase database.
    As you can see on this website:
    http://www.oracle.com/technology/tech/migration/workbench/files/mig_rel10104.html
    Only Informix and DB2 database are supoprted now with this product.
    With SQL Developer, we only support last versions of Sybase : V12 and V15.
    As you don't have any remote access to your client database and no SA login , the best way would be :
    ==>to get and export from Sybase 11.
    ==>install a V12 somewhere (on your site , you can download the Sybase V15 )and import the Sybase database
    Then SQL developer can migrate quickly your database without any problem.
    I hope it helps you.
    Mireille

  • Problems with Sybase 12 to Oracle 10g migration

    Hi,
    I'm using SQL Developer to test a migration between Sybase and Oracle and it doesn't work (both online and offline)
    I've create a dedicated user account and connection, with the roles and privileges required (as seen in http://download.oracle.com/docs/cd/B32485_01/doc/appdev.110/b31695/migration.htm#i1005739)
    I've created the migration repository without any problems (using the above user account).
    QUICK MIGRATION
    - select the source Sybase connection: OK
    - select the target Oracle connection: OK
    - select the referential: OK
    - verify privileges before migration: OK
    - migrate tables only and click Next
    ## window closes and nothing happens ## - nothing on Captured Model pane
    CAPTURE SOURCE SYBASE DATABASE
    - right click on the Sybase connection in the Connections pane
    - choose Capture Sybase
    ## window closes and nothing happens ## - nothing on Captured Model pane
    OFFLINE CAPTURE
    - create database capture scripts: OK
    - launch the database scripts (SYB12_OFFLINE_CAPTURE.BAT): OK
    - load database capture script output (sybase12.ocp)
    ## window closes and nothing happens ## - nothing on Captured Model pane
    I can't find any relevant logs or trace from the application.
    I even tried to use the capture file sybasemigration.zip from the "Migrating a Sybase Database to Oracle Database 11g" web page (http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm), but the result was the same.
    Does anyone encountered the same problems? Does someone knows where are the logs (if any)?
    Thanks in advance.
    Regards,
    Pedro

    Hi Pedro,
    What version of SQL Developer are you using?
    Can you browse your Sybase connection in SQL Developer, to see its tables for example?
    If not, then you may need to point SQL Developer to your JTDS 1.2 driver again.
    Are you capturing a non system database ? SQL Developer wont migration master or tempdb ...
    Can you try running SQL Developer from the command line and watch the command line for any errors during the capture.
    \sqldeveloper\bin\sqldeveloper.exe
    Regards,
    Dermot
    SQL Developer Team

  • Migration of table from sql server to oracle

    Hi,
    I had to export few tables from SQL Server to Oracle. After the migration, I am checking to see all the tables in Oracle that have been migrated from Sql Server. I am executing select * from tab; and am seeing all the the tables (including those have been exported) from the output list of tables. However, when I am doing a select * from x; where x is one of the few tables that have been migrated, it says table or view does not exist. This is the problem with all other migrated tables. Any help is appreciated in advance. Thanks.
    [email protected]

    Try select * from "x"

  • Migration from Sqlserver 2005 to Oracle 10g

    Hi all,
    does anyone know a tool good to migrate a sqlserver 2005 database to oracle 10g ?
    I tried Sqldeveloper and the migration of tables and datas are ok, but when I try to migrate views, functions and procedures the sqldeveloper hangs.
    regards,.
    Wander (Brazil)

    Quite frankly forget using tools for all but the simplest migration: The best you will get from a tool, provided it works, is mediocrity.
    Moving tables and data with tools works if you are using basic data types. Once you get past this, in all seriousness, it is time to roll up your sleeves and start writing code.
    The differences between the two products is profound. What constitutes a transaction different, locking different, logging different, security models different, etc.
    No tool can turn Transact SQL into nested BULK COLLECT and FORALL statements. And for many years into the future ... none will.

  • Migration data from SAP DB2 to Oracle 10g

    Hi , I am assigned to migrate data from SAP system which is using DB2 to Oracle 10g.I not very familiar with SAP. I hope someone can help me., especially for those familiar in SAP.
    Please help me.
    thanks
    jebatco

    Hello,
    just migrating a DB2 database to Oracle 10g might be an easy task. The Oracle Migration Workbench is the tool for such a migration:
    http://www.oracle.com/technology/tech/migration/workbench/index.html
    I have no idea about SAP, and that might complicate the picture. But there exist specialists for this task:
    Oracle Expertise in the SAP environment
    The Solution Center SAP Support and Service – located in Walldorf – offers SAP
    customers the following services:
    • Advanced Customer Services (ACS)
    • Performance Analysis and Tuning
    • Development of concepts for Backup/Restore/Recovery, and High Availability,
    Administration
    • Security concepts
    • Optimizing of ABAP/4 programs (performance improvement)
    • Migration service for customers, who want to use Oracle as the database for SAP
    applications (from Informix, MaxDB, DB2, or SQL Server to Oracle).
    • Migration services from “Oracle to Oracle” (e.g. Tru64 to HP_UX)
    • Integration-Products and –Services
    • Oracle Database: The Database of Choice for Deploying SAP Solutions
    This is taken from http://www.oracle.com/newsletters/sap/docs/ora4sap-db-of-choice.090213.pdf
    Best regards
    Wolfgang

  • Migration from SQL 2000 to Oracle 10g

    Hi every one,
    This is the first i am posting to this forum.
    I have a problem in migration of Sql Server database to Oracle 10g.
    We use Microsoft Navision Axapta 3.0 SP4 as front end.
    and Sql Server 2000.
    All table and indexes are created in sql server by Navison only.
    My Database size is 300 GB and now we face thousands of Problem with SQL server so we decided to make a intelligent move to oracle 10g.
    As we have 1200+ users.
    The problem i am facing when i tranfer all the table to my Oracle Database it gives a error out of buffer.
    some time it gives me error about the index as few of our developer have create two indexex on one field.
    So oracle identifies that there are two indexes on one field.
    So pls help how can i solve this problem.
    I have 1234 tables.
    from
    Mohd Sufian

    Can you post the exact Oracle error you are getting? The ORA-xxxxx part is the most important for us to identify what particular problem(s) you're having.
    Is your front-end certified to use an Oracle database? Particularly if the front end is creating database objects, it needs to know how to work with whatever database it is connecting to.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for