Going from Sybase to Oracle
Hi.
I'm kind of new at this, so please bear with me.
We're moving from Sybase towards Oracle, and there we have a problem.
I'd like to know if you have to change the way you make the Java SQL-queries, in order to make it work with Oracle DB's.
Any help appreciated
Thanx in advance
/Mike
null
There is always a possibility that the jdbc syntax being used may have some "sybase specific" extension to the jdbc spec syntax.
when you move the application from sybase to the oracle rdbms, some of these "sybase" extensions to the jdbc syntax may not work.
assuming you're using rdbms 8.1.6 then you want to review any syntax issues you run into with the following java dcumentation :
http://technet.oracle.com/doc/oracle8i_816/
make sure you thoroughly test your applications.
i hope thi9s helps ...
null
Similar Messages
-
DATE format problem, migrating from Sybase to Oracle 9i
Hi,
We are in a process of migrating the database from Sybase to Oracle 9i, everything going fine except the data load of couple of tables.
The workbench created the control file, data & related files to load the data into Oracle using the SQL*LOADER.
But coule of data files having HH:MI:SS:xxx AM in the DATE field, which Oracle is failing while laoding the workbeck created the destination table with the column data type = DATE, so how to insert the milliseconds along the date like Mar 25 2004 12:00:00:000 AM
Thanks
Ramana
212-657-0104In your control file for SQL*Loader, specify the timestamp with format like "Mon DD yyy hh:mi:ss:ff3AM".
-
Importing DB info from Sybase to Oracle 9i
Could someone please tell me if it is possible to import a sybase db into oracle 9i. The reason, I need to be able to import and excisting DB from sybase to Oracle for a project.
In your control file for SQL*Loader, specify the timestamp with format like "Mon DD yyy hh:mi:ss:ff3AM".
-
KM for Bulk loading from Sybase to Oracle
Is there KM available for Bulk loading from Sybase to Oracle ?
May be using Unix pipe, sybase fetch and Direct sqlloader.
Anyone has some thoughts on this, appreciate your responses.Sample CTL generated by ODI.
OPTIONS (
ERRORS=0,
DIRECT=TRUE
LOAD DATA
INFILE "/exp_imp/ODI_C_0ODI_TEST.bcp"
BADFILE "/exp_imp/ODI_C_0ODI_TEST.bad"
DISCARDFILE "/exp_imp/ODI_C_0ODI_TEST.dsc"
DISCARDMAX 1
INTO TABLE ODISYB_TEST.ODI_C_0ODI_TEST
FIELDS TERMINATED BY 'M-,'
C1_TEST_NO,
C2_TEST_DESC,
C3_TEST_TOKEN,
C4_TEST_DATE
Error on SQLLoader log file.
Record 1: Rejected - Error on table ODISYB_TEST.ODI_C_0ODI_TEST, column C4_TEST_DATE.
ORA-01858: a non-numeric character was found where a numeric was expected -
Problem while migrating from Sybase to Oracle using Quick Migrate
Hi,
For SQL Developer version 2.1, while migrating from sybase to oracle, Using Quick migrate, during data move step, for the rows having ''(Blank) values in TEXT data type in SYBASE, which is convertd to CLOB in Oracle, the migration for that table terminates at that row.
However, NULL values in Sybase TEXT data type are successfully inserted in Oracle CLOB.
How can we overcome this?reproduced and see exception in console, bug logged.
Edited by: Jade Zhong on Feb 1, 2010 6:10 PM -
Migrating from Sybase to Oracle
Hi!
Can someone tell me, how to migrate from Sybase to Oracle.
Thank U.Hi,
You don't say if you have used the SQL*Developer migration workbench for the migration so far.
This has a feature for transferring data offline which should do what you want.
Have a look at the documentation linked from -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
or at -
http://download.oracle.com/docs/cd/E12151_01/index.htm
SQL Developer User's Guide - section 2.9.1 Transferring the Data Offline
Regards,
Mike -
Issue during migrating from Sybase to Oracle using Oracle SQL Developer
I am using SQL Developer v 3.2.20.09 to migrate from Sybase to Oracle Pl/SQL 12c
While migrating the stored procedure the following block did not convert. I got NULL instead of object_id:
Sybase Block:
IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
BEGIN
DROP PROCEDURE dbo.CheckEst
IF OBJECT_ID(‘dbo.CheckEst’) IS NOT NULL
PRINT ‘<<>>’
ELSE
PRINT ‘<<>>’
END
Oracle Block after conversion:
BEGIN
IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
BEGIN
DROP PROCEDURE CheckEst;
IF NULL/*TODO:OBJECT_ID(‘dbo.CheckEst’)*/ IS NOT NULL THEN
DBMS_OUTPUT.PUT_LINE(‘<<>>’);
ELSE
DBMS_OUTPUT.PUT_LINE(‘<<>>’);
END IF;
END;
END IF;
END;
Lines 1 & 4 got converted to NULL. I have many places where such code is written.
Is there any quick way to overcome such an issue? or what needs to be done in such case?Hi,
You are using an older version of SQL*Developer. Could you download the latest 4.0.2 version available from here -
Oracle SQL Developer
and check if you still have the problem ?
Regards,
Mike -
Experiences migrating from Sybase to Oracle
Hi all,
I have been asked to look into migrating a database from Sybase to Oracle.
I know there is lots of info on Oracle's website, which I have downloaded, but I was just hoping for some info about some of your experiences regarding your processes. What are the gotchas. I suspect there will be a few.
Anything that will help would be of interest.
Many thanks
VicCHI VicC,
I work within the SQL Developer team and not a customer as such, but the follow maybe of use.
SQL Developer is a migration aid, its not 100% magic bullet.
SQL Developer does alot of the manual conversion for you quickly. But you may find Testing / Tuning and the application migration (if any) take you the most amount of time.
SQL Developer aims to migrate you tables, indexes, and data without issue. But SQL Objects like Procedures, Triggers, Views and Functions conversion will likely require manual work on top of the automatic conversion provided by SQL Developer.
SQL Developer does not yet automatically handle things like the tablespaces structure or the the logins. Although these things can be scripted and managed more easily within SQL Developer.
I would recommend downloading and performing the migration from a non production instance ASAP.
SQL Developer can perform a migration quickly and you will then be able to assess what SQL Developer can and cant do for you.
I would recommend creating a migration repository on an Oracle database local (install Oracle XE if you dont have a local database) to the SQL Developer instance you are using.
I would also recommend downloading SQL Developer 2.1
Here are some key sites regarding Sybase migrations.
http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html . This viewlet for SQL Server is the same process for Sybase.
http://www.oracle.com/technology/obe/hol08/sqldev_migration/sybase/migrate_sybase_otn.htm . This Oracle By Example takes you step by step through a Sybase migration including some gotchas
http://dermotoneill.blogspot.com/2008/06/sql-developer-migration-workbench-151_11.html . This is my blog outlining the steps to perform a Sybase migration.
Regards,
Dermot
SQL Developer Team. -
Migration from Sybase to Oracle
Hello every one,
First of all I want to say thank you for your time,
I would like that you certify my process, and, if not good, that you give me a better choice,
I want to migrate one database from Sybase 12.5 in a Solaris 8 platform to Oracle 10g in a HP platform.
I was thinking to migrate this Database using Oracle Database Migration Verifier, and I have this software in Windows platform.
My questions is: if is possible than I use a Migration Verifier since my windows to migrate a database from Sybase in Solaris 8 to Oracle 10g in HP?
I will appreciate your help.
Regards.Hi,
I am working on the migration of existing system in Sybase 12.5 to Oracle 10g. Sybase 12.5 and Oracle 10g both are in solaris environment.
I am currently working on Oracle Migration Work Bench. I am facing issues with this tool. Its showing frequent errors and going into infinite loops.
Is there any other version of this tool which i can use ?
Is there any other such efficient tool which i can use for the same ?
Please let me know asap as its very urgent.
Regards,
Soham Shah -
Keys lost in converting from sybase to oracle
I am trying to convert from sybase 12 to oracle 10 using the migration workbench.
The oracle data base created does not have the primary keys that were in the sybase data base. I used the tool to create migration scripts, Create.sql and Drop.sql. These scripts create the tables but do not have primary keys in them.
Another question is I have user types from the sybase database. Is it possible to change them in the tool? Right now it looks like I can only change the basic database types as in smallInt.Hi <Please Supply Your Name>,
What version of SQL Developer are you using?
"Create.sql" and "Drop.sql" sound like old OMWB names, Just want to double check.
Thanks
Dermot. -
Triggers from sybase to oracle giving problem-------urgent please
all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
if (select count(*) from attr_val av, inserted i
where av.class_cd = i.class_cd
and av.attr_cd = i.attr_cd
and av.attr_val = i.attr_val) >
( select count(*) from inserted )
for (select count(*) from inserted) is getting converted to select count(*) from dual
Thanks in advance,
srinivas.all the Triggers are got converted to AFTER INSERT/UPDATE/DELETE TRIGGERS IN migration workbench...and almost all are been checking the existence of records in the table ie.,primary key check (existence of record) which if i turn them to BEFORE INSERT is becoming a MUTATING ERROR.
and one more thing the "count(*) from inserted" in sybase equivalent is not there in oracle how to solve this problem?????
if (select count(*) from attr_val av, inserted i
where av.class_cd = i.class_cd
and av.attr_cd = i.attr_cd
and av.attr_val = i.attr_val) >
( select count(*) from inserted )
for (select count(*) from inserted) is getting converted to select count(*) from dual
Thanks in advance,
srinivas. -
Migration from Sybase to Oracle (HP-UX)
I have installed my plugins, but now i have no idea about how to continue with my process of migration.
I have Sybase client installed in my pc, and I have access to Oracle because I installed database 10g for windows. My OMW is installed in my windows too.
Please recommend me something to follow my road.
May be a document or something like that.
Thank U so much.
Paola @}-->---Hi Paola,
Connection to Oracle is ok (the omwb comes with oracle jdbc).
Connection to Sybase needs configuring it is via jdbc/odbc bridge, and dsedit needs to be used to configure a connection to Sybase if memory serves.
Omwb comes with some documentation - help and user guide, which are available from the menu system (or the user guide from file system).
-Turloch -
Migrating from Sybase to Oracle - get_xtypename()
I found the function get_xtypename() in some Sybase stored procedures but i cannt find its oracle equivalent.
an idea?get_xtypename seems to be an undocumented system function in Sybase.
Googling it only returns 5 results. No results describe explicitly what this function does, but they do suggest that it works with syscolumns xytype and xdbid.
select get_xtypename(c.xtype, c.xdbid),c.xtype, c.xdbid from syscolumns c
Those syscolumns columns are defined as.
Used if a column in a table or a parameter in a procedure has a Java class as its datatype. When used, fields are not NULL, and the value of type is 0x39. Refer to Java in Adaptive Server Enterprise for more information.
So a guess would be it returns the java class name or a "type name" associated with a java class.
I'm only guessing here, but to emulate you may want to lookup if Oracle can create user defined types specified using java.
If you find out any more, please post back
Thanks
Dermot. -
How to connect from sybase to oracle
Hi All,
We are facing a problem:
1. We have an application which has Sybase database. Its an Unix system with Powerbuilder GUI. Earlier it used to connect to other application which Mainframe and has Sybase database through Dblink and stored procedure will fetch data in real time.
2. This other database is getting replaced by Oracle 10g,so Dblink and current stored procedure will not work.
3. We need a solution for this but this solution needs to be cost effective and minimum changes since this application is going to be phased out in a years time.
Can anybody can provide there valuable inputs?? Thanks in advance.Looks like a Sybase question to me.
You should ask this in a Sybase froum.
Sybrand Bakker
Senior Oracle DBA -
Migrating from Sybase to Oracle - update() function
In sybase i have an update function that let me know when an specific column id updated after and update statement, does Oracle have something similar??
thanks.Hello <Please Supply Your Name>,
Is this a system function or a user defined function?
Without knowing the full details of what the Sybase "update" function is, there are 3 areas which might be worth investigating.
1) Indentity columns and @@IDENTITY.
Identity columns in Sybase are auto increment columns used mostly for ID's.
@@IDENTITY is a global variable which holds the last updated/inserted identity value in the session your in.
SQL Developer Migration Workbench can automatically migrate both of these.
Identity column are converted to use an Oracle trigger and sequence.
@@IDENTITY is replicated in a sqlserver_utilities package variable. (The identity trigger updates the value).
2) Triggers
If you are not using an identity column in Sybase. But would still like to "catch" a value being updated in your table, you should use a BEFORE/AFTER UPDATE trigger.
You could save this value to a package variable if you wish (much like how we emulate the @@IDENTITY column above).
3) Update Returning Clause
This clause returns the result of an update statement.
http://www.samoratech.com/PLSQL/swArtPLSQLReturn.htm
I hope this helps
Dermot.
Maybe you are looking for
-
Actual cost are not updating in prodcutcost collectors ( KKF6N) - Variances
Hi SAP's We are facing the problem with the Variance calculation for product cost collectors. The issue is When we are calulating the Variances for prodcut cost collectors the actual costs are not ( For few materials of BOM) updating. Because of thes
-
MY MacBook Pro will not boot upThe screen is dark, but the sleep light is on and it makes the characteristic start up sound.What is wrong?
-
Ship to Party / Customer address is not correct in Third party PO Printouts
Hi, I am creating Third party PO, concevrted from Qutation-SalesOrder -automatic PR to PO. In these POs, Ship to Party address is replaced by Vendor's address in PO Printout(ME9F). How to avoid this? Is there any setting avilable in SD or MM. Thi
-
Can iphoto '9 read pictures edited in iphoto '11
I recently took some pictures for a family member. I have iPhoto '11 and they have iPhoto '9. I edited and burned these pics onto a DVD for her. She can't seem to pull them up in iPhoto '9. So the question is, can you view pics in iPhoto '9 that
-
Increasing # of images in a web gallery in Bridge
How can I increase the number of images in a web gallery in Bridge. It seems with the Standard style gallery it will only put in 20 images Can we do more?