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?

Similar Messages

  • 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

  • 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

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

    HI 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 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,
    Vinoth

    Vinoth,
    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

  • Newbie blues: Oracle Sql Developer showing different data from Sqlplus.

    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?

    5e33d18c-3b32-48d4-82a7-676feeaa97c9 wrote:
    Newbie blues: Oracle Sql Developer showing different data from Sqlplus.
    First of all; it would be difficult to know less about Oracle than myself.
    I just installed a recent copy of the server and am running SQl Developer 3.2.20.10.
    I made a small test table , borrowed some pl sql code to add rows, then wrote code to delete some rows. Lots of fun.
    In SQL Developer “Select * from t1;” now shows 7 records, which seems right.
    I wanted other views of the data and so logged in from the command line using SQLPlus.
    The same code here shows the table prior to the delete, with 600 plus rows. Needless to say I’ve logged out and back in again, with no changes.
    No fun ! What am I not understanding here ?
    Others sessions never see uncommitted data
    > then wrote code to delete some rows. Lots of fun.
    did you ever actually issue COMMIT so other session can see the changed data?

  • Connection with SQL Server 2000 to SQL Developer 1.2 Migration Workbench

    Hi all,
    I keep getting the following error with setup for SQL Developer 1.2 Migration Workbench connection to SQL Server 2000 database:
    "Status: Failure -Network error IOException: Connection refused:connect"
    I can access the Microsoft SQL Server 2000 database with username
    and password using Enteprise Manager. However for some odd
    reason the Oracle SQL Developer 1.2 cannot connect to it.

    I was having this problem too. I'll mangle this explanation, but Our SQLServer instance was on a local server with some named DNS something. So, to get to the server, we used theservername.outdomain instead of an IP. We could never get it to connect through the named server. We got an SQLServer instance going on a server that we could connect to through a regular IP, and it connected just fine.
    Also, are you using the JTDS driver, or microsofts driver? We have only been able to connect with the JTDS driver. http://jtds.sourceforge.net/

  • 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

  • Migrating from Sybase Anywhere to ASE

    I am in process of migrating from Sybase Anywhere to ASE and trying to import a table from Anywhere to ASE, I getting following error message that could not find appropriate data type for column - now this column from Anywhere has data type of datetime.

    ASE does not have any wizards so you must be using some sort of GUI/tool/application.
    What GUI/tool/application are you using? PowerDesigner? Sybase Central? Sybase Control Center? Something else?
    Can you *connect* to the ASA and ASE instances with this GUI/tool/application? [Forget the 'import' operation for the moment ... and verify you can just *connect* to both ASA and ASE.]
    Also, what is the actual/complete error message?
    NOTE: I don't use GUI/tools so depending on the error there may not be much more I can assist with.

  • DB migration from Sybase to MSSQL

    Hi All,
    This is my first experience migrating from Sybase ASE to MSSQL.
    I have migrated successfully in Hyper-V on High availability, the problem is after system copy I can able to connect SAP GUI inside the VM(Hyper-V)
    but i could not able to connect from outside the VM i.e, from my laptop. what are the necessary steps I have to check and do  to fix the problem.
    Thanks & Regard's
    Kathir

    Hi Kathir,
    but i could not able to connect from outside the VM i.e, from my laptop. what are the necessary steps I have to check and do  to fix the problem.
    Please check the following
    1) Windows Firewall is off on target system
    2)  You are able to ping the server from your laptop
    3) You are able to perform telnet <IP address of SAP server> 33<NR>
    Hope this helps

  • 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

  • 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

  • Apex Listener 2.0.1 vs Sql Developer Administration 3.2.20.09 bugs

    Apex Listener 2.0.1 / Sql Developer 3.2.20.09 / Apex 4.1.1
    1. I'm using basic connection type with service name. Each time I connect to listener administration it is resetted to SID with default name as orcl.
    2. Test Settings does not work in case hostname is localhost.
    Database Settings apex:Cannot connect to APEX_PUBLIC_USER. Исключение ввода/вывода (input/output exception): The Network Adapter could not establish the connection>
    At the same time it's working in defaults.xml:
    <entry key="db.hostname">localhost</entry>I'm not sure why. Database and Apex Listener are installed on the same mashine. May be this can help:
    <Warning> <Server> <x> <> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <> <BEA-002611> <Hostname "x", maps to multiple IP addresses: 10.110.x.x, 0:0:0:0:0:0:0:1> 3. I can see "Enable RESTful Services" action in (url http://docs.oracle.com/cd/E35137_01/appdev.32/e35117/intro.htm#autoId110)SQL Developer User's Guide. Still there is no such action in Sql Developer. Thus settings are always uploaded with enabled RESTful Services.
    I see error
    The pool named: apex_al does not existeach time I connect to Apex Listener Administration in case of RESTful Services is not configured during configuration of apex.war.
    I can't find any restrictions for RESTful Services to be configured. So I think this error is unnecessary.
    4. From sql developer User's Guide
    Connect (context menu only): Connects to the Application Express Listener (see Connecting to Application Express Listener Server).Retrieve Settings, Upload Settings, and Launch URL are enabled when you connect to the Application Express Listener.>
    administration settings are retrieved and displayed but still Retrieve Settings, Upload Settings, and Launch URL are disabled in context menu after connection.
    I need to perform New Administration action to make them enabled.
    Is this expected behavior ?
    Is this all bugs or known features ?
    Regards,
    Igor

    DB: V11.2
    APEX V 4.2.3.00.08
    APEX Listener: V2.0.5.287.04.27
    SQLDeveloper: Version 3.2.20.09
    OS WIndows 7 64 bit
    I am trying to create a connection to a standalone Apex Listener installation via SQL Developer to manage the listener settings. I start a new connection and after entering the UN/PWD of the Listener Administrator I get the following error:
    Authentication failed
    "CANNOT CONNECT TO CONNECTION.
    INVALID RESOURCE OWNER CREDENTIALS"
    In the Standalone APEX Listener DOS window I'm getting the following error message:
    SEVERE: The pool named: apex_al does not exist
    So where do I even start to trouble shoot this???
    I add a connection as follows:
    Connection Name: Connection
    Usename: adminlistener  (pwd=adminlistener configured using command :java -jar apex.war user adminlistener "Listener Administrator")
    HTTP radio button
    Hostname: localhost
    Port: 8080
    Server Path: /apex
    thanks in advance
    Paul Platt

  • SQL Developer 3.1: Job Chains - 2 Bugs.

    Hi.
    Just having a play with defining job chains in SQL Developer 3.1 and I came across these bugs...
    1) When you try to define a new chain using SQL Developer you get, "ORA-01741: illegal zero-length identifier"
    If you look on the SQL tab you can see that it is messing up the double quotes, placing two sets of double quotes around the chain_name.
    BEGIN
        sys.dbms_scheduler.create_chain(
            comments => '',
            chain_name => '"TEST".""test_chain_3""'
          sys.dbms_scheduler.enable(name=>'"TEST".""test_chain_3""');
    END;If you remove the extra quotes and run the code it works fine.
    2) The job chain diagram seems to be case sensitive as far as the rule definitions are concerned.
    If you follow the chain setup in SQL*Plus described here (http://www.oracle-base.com/articles/10g/SchedulerEnhancements_10gR2.php#job_chains), then check the associated diagram in SQL Developer it is displayed properly.
    Now repeat the chain definition from SQL*Plus, but this time define the conditions and actions of the rules in lower case (which is valid and functions as expected).
    BEGIN
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'TRUE',
        action     => 'start chain_step_1',
        rule_name  => 'chain_rule_1',
        comments   => 'First link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_1 completed',
        action     => 'start chain_step_2',
        rule_name  => 'chain_rule_2',
        comments   => 'Second link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_2 completed',
        action     => 'start chain_step_3',
        rule_name  => 'chain_rule_3',
        comments   => 'Third link in the chain.');
      DBMS_SCHEDULER.define_chain_rule (
        chain_name => 'test_chain_1',
        condition  => 'chain_step_3 completed',
        action     => 'END',
        rule_name  => 'chain_rule_4',
        comments   => 'End of the chain.');
    END;
    /Now check the diagram again in SQL Developer and you will see that all the steps are present, but the links (rules) are not correctly displayed. Seems like it is case sensitive...
    If you need any more info, please ask.
    Cheers
    Tim...
    Edited by: TimHall on Feb 10, 2012 4:23 PM

    I have confirmed your two test cases are indeed bugs and I have raised them. The first seems to be if you have a mixture of _ and lowercase characters in the name but we will look at other cases too. The second is that the parsing of the condition/action does not uppercase unquoted ids. The second can be cirumvented by using quotes etc.

Maybe you are looking for

  • Office web Apps server Lync 2013

    Hi All,   I have logged onto my Volume licensing site and could not search Office Web Apps servers for download?? I wonder how do i download it?

  • Is there a way to Instant Alpha Smart Build photos?

    In Steve Jobs' iPhone Keynote '07, he introduces the iPhone as three separate devices: an iPod, Phone, and Internet Communicator. He has an icon for each, and uses the Cube Smart Build effect. I tried doing the same but the white border remains aroun

  • CYP2EUR fix rate exceed 5 decimal place/RATIO change?

    Exchange rate for EUR:CYP (fix rate) is 0,585274 which exceed the SAP allowance 5 decimal place. Can you advice what should be done in the system to enter the exchange rate above? Should we change to ratio (TCURF) from 1:1 to 10:1 or 100:1? Is there

  • Spool record in line for each

    Hi all, I have a spool script which extract 5 columns of data. Unfortunately the spool output is like this : 1000412799 20-JUL-10 60341311260 YRACKL KUALA LUMPUR How can i produce the output in a line. Example 1000412799 20-JUL-10 60341311260 YRACKL

  • Encore CS6 First Play problem

    Long-time Adobe user with CS6 Master Collection. Not come across this one before, though. Simple Encore project using 3 PPro sequences via Dynamic Link. Set up so a 20 sec video plays automatically then drops into a static menu offering choice of two