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-0104
In your control file for SQL*Loader, specify the timestamp with format like "Mon DD yyy hh:mi:ss:ff3AM".
Similar Messages
-
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. -
Data length problem migrating from sql server 7 to oracle 8i
I just migrated SQL Server 7 database to Oracle 8i db and everything seemed to have ran ok except that in my newly created oracle database, the field size is doubled. For instance a field with nvarchar(4) in sql server would convert to varchar2(8). Has anyone ran into this problem and also does anyone know how to fix it? Thank you so much.
Hi Roberto,
You cannot use Workbench 1.2.2 to migrate from SQL Server 7 to
Oracle 8.
However, the good news is that we have a new verion of the
workbench that will have a plugin that can migrate from SQL
Server 7.0 to Oracle8.
A beta version will be downloadable from this web-site in approx
one week. Eventhough this version is a beta version, it has
undergone some rigourous testing and is very close to production.
Regards
John
Roberto Werneck (guest) wrote:
: I would like to know if it is possible to use the workbench
: 1.2.2 to migrate from SQL Server 7 to Oracle 8. If possible
what
: kinds of problems would i probably have. If not, how can i get
: the Beta version ?
: Thanks,
Oracle Technology Network
http://technet.oracle.com
null -
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 -
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 - 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. -
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. -
Migration from SYBASE IQ to SYBASE ASE 11/12 and then to ORACLE 10G
Hi ,
The OWMB tool does not support migration of SYBASE IQ to ORACLE.So there should be some tool to migrate this SYBASE IQ to SYBASE ASE 11/12.And then which we can migrate to ORACLE which the OMWB supports.Does anybody have any idea about such tool(SYBASE IQ to SYBASE ASE 11/12).
Thanks With Regards,
VinothVinoth,
That's correct. However Sybase IQ is normally associated with Data Warehouses. Have you investigated the suitability of using Oracle Warehouse builder to assist with such a migration?
Ispirer supports migration from Sybase IQ 12 ( http://www.ispirer.com/products)
Donal -
Migration from Sybase 11.9.1 to Oracle 7.3.4
Does the Oracle Migration Workbench 1.2.2 support database migration from Sybase 11.9.1 to Oracle 7.3.4?
If not, is there any work-around or any other tool? Can we still use Migration Workbench for this migration?
Thanks.It is probably best to use the latest version of the workbench (1.2.5.0.0). Migration to 7.3 is not supported but should work except for the newer features, for example use long instead of blob and clob, and do not use 8i temporary tables.
Turloch -
Date Format problem...
Hi users,
Forte version : 2.e.2 and ForteWebSDK
Datacase : Oracle
We have a problem with a simple HTML text field which acccepts
a date. When we try to update the record with some date, the following
exception occurs:
24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
project Rap
tServices, class RaptSqlMethods, method updateActivity, methodId 104,
line 51, e
rror from database is:
ORA-01830: date format picture ends before converting entire input
string
The Oracle manual says that the above exception occurs when there are
some extra characters on that field, which is not the case. In fact,
we raise our own exception for the cases like : o1-Apr-1997,
01-apr-97 etc. The correct format is 01-apr-1998.
Same date soemtimes is added to the database successfully. Waht I mean
to say that the exception deos not occur consistently.
We just conevert the String taken from the HTML field into a Forte
DateTimeData Object and send it to database. May be, the conversion
part is causing the problem. But, once again the problem is not
consistent.
Any ideas in this will be appreciated.
Thanx in advance
-Rajeev Talwar
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>We had the same problem when our application first went live. The
default date format for our Oracle database is 'dd-mmm-yy' without the
time component. The default format for datatype DateTimeData is
'dd-mmm-yyyy hh:mm:ss'. Since we did not want to change the default date
format for the Database, we included in our service partitions an Alter
Session statement to change the NLS_Date_format attribute in Oracle to
conform to the Forte DateTimeData format. It worked.
Kam Chow
Mazda Australia
-----Original Message-----
From: Gary F Giger [mailto:[email protected]]
Sent: Thursday, June 25, 1998 4:11 AM
To: Rajeev Talwar
Cc: [email protected]
Subject: Re: Date Format problem...
I was having the same problem a few weeks back when I would
read/write
dates to Oracle. I was using objects of type DateTimeData and I would
occasionally get errors like you said you were. I found discovered my
problem. Sometimes I would process a null date and would get an error.
So to
resolve this issue, I simply changes my objects of type DateTimeData to
type
DateTimeNullable. This enabled my Forte Application to handle regular
dates
as well as null dates. I have not gotten any oracle errors since then
with
regards to dates. Hope this helps.
Rajeev Talwar wrote:
Hi users,
Forte version : 2.e.2 and ForteWebSDK
Datacase : Oracle
We have a problem with a simple HTML text field which acccepts
a date. When we try to update the record with some date, the following
exception occurs:
24-Jun-1998 04:32:28 : XV01086 : Execute failed for SQL statement in
project Rap
tServices, class RaptSqlMethods, method updateActivity, methodId 104,
line 51, e
rror from database is:
ORA-01830: date format picture ends before converting entire input
string
The Oracle manual says that the above exception occurs when there are
some extra characters on that field, which is not the case. In fact,
we raise our own exception for the cases like : o1-Apr-1997,
01-apr-97 etc. The correct format is 01-apr-1998.
Same date soemtimes is added to the database successfully. Waht I mean
to say that the exception deos not occur consistently.
We just conevert the String taken from the HTML field into a Forte
DateTimeData Object and send it to database. May be, the conversion
part is causing the problem. But, once again the problem is not
consistent.
Any ideas in this will be appreciated.
Thanx in advance
-Rajeev Talwar
Get Your Private, Free Email at http://www.hotmail.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
Gary Giger
Raytheon Systems Company
300 Science Park Road
State College, PA. 16804
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
This message has successfully passed virus checking.
Mazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Migration help - Sybase to Oracle
Hi,
we are currently migration our applicaiton from Sybase to Oracle. Oracle version we are using is 8.1.7 for Windows.ok now here is problem,
In order to update a table we compare more than 1 table, which we can specify in the "from clause of the update" in sybase, but oracle it does not allow this
for Eg: ( In sybase )
update table1 set
activeFlag = 0,
revId = revId + 1
from table2, table3
where table1.col1 = table2.col1
and table1.col2 = table2.col2
and table1.col3 = table3.col1
I am running out of ideas to convert this statement to suitable Oracle syntax.Any help in the conversion will be greatly appreciated
thanks
vijayI'm not sure I understand what your statement would do in Sybase but perhaps this is what you are looking for?
update table1 set
activeFlag = 0,
revId = revId + 1
where exists (select null
from table2, table3
where table1.col1 = table2.col1
and table1.col2 = table2.col2
and table1.col3 = table3.col1) -
Sql Developer 1.5 Migration from Sybase Bug
The following code was generated when I tried to move tables from Sybase to Oracle. The 'CHAR' in the length parameter caused an error.
Error starting at line 6,028 in command:
CREATE TABLE amr_harris_inactive_ssn_ret (
extract_code CHAR(5 CHAR),
id_number CHAR(10 CHAR) NOT NULL,
person_or_org CHAR(1 CHAR),
prefix VARCHAR2(25 CHAR),
last_name VARCHAR2(25 CHAR),
first_name VARCHAR2(25 CHAR),
middle_name VARCHAR2(25 CHAR),
pers_suffix VARCHAR2(25 CHAR),
prof_suffix VARCHAR2(25 CHAR),
company_name_1 VARCHAR2(60 CHAR),
company_name_2 VARCHAR2(60 CHAR),
business_title VARCHAR2(35 CHAR),
care_of VARCHAR2(45 CHAR),
street1 VARCHAR2(40 CHAR),
street2 VARCHAR2(40 CHAR),
street3 VARCHAR2(40 CHAR),
foreign_cityzip VARCHAR2(40 CHAR),
city VARCHAR2(30 CHAR),
state CHAR(2 CHAR),
zipcode VARCHAR2(10 CHAR),
country VARCHAR2(40 CHAR),
country_code VARCHAR2(5 CHAR),
phone_area_code CHAR(3 CHAR),
phone_number VARCHAR2(7 CHAR),
addr_type_code CHAR(1 CHAR),
ssn VARCHAR2(9 CHAR),
alumni_flag CHAR(1 CHAR),
extract_date DATE,
segment_code CHAR(5 CHAR),
email_address VARCHAR2(60 CHAR),
birth_dt CHAR(8 CHAR),
gender_code CHAR(1 CHAR),
class_year CHAR(4 CHAR),
birth_last_name VARCHAR2(25 CHAR),
birth_first_name VARCHAR2(25 CHAR),
birth_middle_name VARCHAR2(25 CHAR),
spouse_id_number CHAR(10 CHAR),
spouse_addr_status_code CHAR(1 CHAR),
spouse_address_mod_date datetimn(8,0) DEFAULT SYSDATE NOT NULL,
jnt_address_ind CHAR(1 CHAR),
hr_lost_trace_lname VARCHAR2(30 CHAR),
hr_street VARCHAR2(40 CHAR),
hr_street2 VARCHAR2(40 CHAR),
hr_city VARCHAR2(30 CHAR),
hr_state CHAR(2 CHAR),
hr_zip CHAR(5 CHAR),
hr_zip_plus4 CHAR(4 CHAR),
hr_addr_date CHAR(10 CHAR),
hr_year_deceased CHAR(4 CHAR),
hr_addr_result VARCHAR2(40 CHAR),
hr_addr_source VARCHAR2(40 CHAR),
hr_lost_ret_status CHAR(1 CHAR),
hr_lost_ranking_group CHAR(1 CHAR),
hr_lost_ranking_num VARCHAR2(3 CHAR),
hr_phone VARCHAR2(10 CHAR),
hr_phone_result VARCHAR2(40 CHAR),
hr_phone_source VARCHAR2(40 CHAR),
hr_sag_flag CHAR(1 CHAR),
hr_email VARCHAR2(60 CHAR),
process_ind CHAR(1 CHAR),
run_number NUMBER(12,0) DEFAULT '0',
hr_addr_mod_date DATE
Error at Command Line:6,067 Column:34
Error report:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"
*Cause:
*Action:Hi John,
I don't think that 'CHAR' causes the issue. For example
extract_code CHAR(5 CHAR)
Explicitly tells Oracle that the extract_code is of 5 characters in length, not 5 bytes in length. This helps allot when you have multibyte characters in your database.
The problem is this column definition
spouse_address_mod_date datetimn(8,0) DEFAULT SYSDATE NOT NULL,
Looks like the datatype datetimn was not mapped to its Oracle equivalent.
Actually Im not 100% sure about the datatype datetimn.
Its not listed as a datatype in the Sybase doc.
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.quickref/html/quickref/quickref1.htm
But it is referenced here as a system type ?
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc36274_1251/html/tables/X37714.htm
Maybe you could shed some light on this datatype and its best emulation in Oracle.
for the moment lets assume that it should go to Oracle DATE datatype.
After I made that change the table created successfully.
spouse_address_mod_date date DEFAULT SYSDATE NOT NULL
Ill log a bug about this, but as I said if you have any information of DATETIMN that would be great.
Regards,
Dermot.
PS: why does everyone blame the parser?
Maybe you are looking for
-
A better way to syncronize objects in servlets
Hi, I am working on a webapp that has a servlet that invoque a instance of a object that accesses our sybase server. What is the best secure way to syncronize to avoid problems at the database? I have searched all of these but I am still confused: Sy
-
I had to wipe my old Windows operating system from my hard drive, and I've installed Linux instead. I did not physically back up my bookmarks before wiping, but I am hoping that they will be preserved somewhere with Mozilla's cloud storage. I would l
-
Current Gen Mac Mini as a HTPC
In my current setup I'm using a 2010 Mac Mini C2D with 4GB as my HTPC, hosting my iTunes library plus my Movies and TV shows which are stored on a Drobo. The mini is connected to my Samsung TV by DVI to HDMI and by ethernet to my Airport Extereme. I
-
Questions about buying new Macbook
I have a 2001 iBook, still going and going. It was my first computer. I want to replace it by buying a Macbook. I make webpages, blog, no videogaming, no heavy graphics apps (like PS), only a couple of third-party apps. I'm very short of breath so, e
-
With truncate command the default option is drop ,how about reuse ? truncate table table_name reuse ; What does reuse mean here . With regards