Using Heterogeneous to connect to Sybase databse

Hello,
Here is my situation, I have two SUN boxes , one for Oracle database and other for Sybase database. I would like to use Sybase database from Oracle using windows ODBC. How do I configure this, do I have to install ODBC on Oracle server too?
Thanks
Syed

In my eyes this does not make much sense, but...
You have 2 SUN boxes and want to connect from an Oracle DB on SUN to Sybase on another SUN box.
In general you have 2 options: GENEIC CONNECTIVITY and Gateway.
The gateway requires a sep. license, whereas the gateway is for free but requires an additional ODBC driver (on Unix; on MS platforms it's delivered for free most of the time...).
The gateway has the advantage, that you can install it on a different machine then the Oracle DB; also on Windows...
HSODBC is for free and ported to a few platforms (like SUN). HSODBC MUST be installed on the same machine like the Oracle DB. So you need an ODBC driver on the SUN machine.
You can get ODBC drivers from OPENLINK or Data Direct, but they require also a license. The other option is to use the EASYSOFT ODBC/ODBC bridge. Easysoft offers an splitted solution: you connect with their SUN based part to the Windows machine and there you call the windows based ODBC driver.
But this solution is also not for free.
So it's a simple calculation -> all require a licence you must purchse. In many cases the Gateway is the cheaper solution and if you later on plan to use distributed transaction the gateway is the only choice....

Similar Messages

  • Connection to Sybase using Connection profile

    Hello,
    I've been trying to configure a connection profile to
    directly connect to a sybase database, but I have issues with the
    drivers. At firt I was told that the JDBC drivers jconn3.jar
    weren't found, so I downloaded the ones from Sybase :
    http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect
    In the Edit driver definition windows I've deleted the
    jconn3.jar and replaced it with the jconnect.zip I just download.
    Then I've entered all the details concerning my database, but when
    I Test the connection, I get this message :
    java.lang.ClassNotFoundException:
    com.sybase.jdbc3.jdbc.sybdriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native
    Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at
    org.eclipse.datatools.connectivity.db.generic.JDBCConnection.createConnection(JDBCConnect ion.java:86)
    at
    org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverCo nnectionBase.java:104)
    at
    org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:53 )
    at
    org.eclipse.datatools.enablement.sybase.asa.JDBCASAConnectionFactory.createConnection(JDB CASAConnectionFactory.java:32)
    at
    org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Co nnectionFactoryProvider.java:77)
    at
    org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Connection Profile.java:354)
    at
    org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:57)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Any idea ? Any solutions ?
    TIA.

    Moreover, I try to create an application module with the view object which has an entity object. This entity object is connect to a table of sybase database. When I try to test this application module and enter the login id and password of the database server. It pop up and error "(oracle.jbo.NotConnectedException) JBO-25200: Application module is not connected to a database". In fact, I use ODBC to connect the sybase server. However, there is no "JDBC-ODBC Bridge" for me to select in the Connection Type of "Oracle Business Component Browser - Connect" wizard. What should I do? Thank you.

  • Connection to Sybase

    Hi All,
    I am using jConnect for connecting to sybase.
    My connection string start with jdbc.sybase.Tds
    My driver name is com.sybase.jdbc2.jdbc.SybDriver
    I want to know whether my connect string and driver name are correct?
    Also I want to know Tds is the only protocol using for connect to Sybase?
    Regards
    Arun

    Hi All,
    I am using jConnect for connecting to sybase.
    My connection string start with jdbc.sybase.Tds
    My driver name is com.sybase.jdbc2.jdbc.SybDriver
    I want to know whether my connect string and driver
    name are correct?http://www.sybase.com/detail/1,6904,1012007,00.html
    Also I want to know Tds is the only protocol using for
    connect to Sybase?
    Regards
    Arunhttp://industry.java.sun.com/products/jdbc/drivers/search-results/1,2722,,00.html

  • How to use JDBC to connect Oracle databse

    Hi
    I try to connect the oracle databse by using JDBC. But I not sure whether is it correct or not because I learnt from the documentation provided by WWW.JAVA.SUN.
    I have create a ODBC DSN file call TKS username/password : tem/manager
    then I download the source code and enhance a bit as following :
    import java.sql.*;
    public class CreateCoffees
    public static void main(String args[])
         String url = "jdbc:oracle:thin:tem/manager@(
         description=(address_list=(
         address=(protocol=tcp)
         (host=192.9.200.8)(port=1521)))(source_route=yes)
         (connect_data=(sid=tks)))";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
         catch(java.lang.ClassNotFoundException e)
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url, "tem", "manager");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
         catch(SQLException ex)
         {  System.err.println("SQLException: " + ex.getMessage());
    After that I saved the file as CreateCoffees.java and compiled it
    D:\KLTAY\JAVA>javac CreateCoffees.java
    CreateCoffees.java:6: unclosed string literal
    String url = "jdbc:oracle:thin:tem/manager@(
    ^
    CreateCoffees.java:10: unclosed string literal
    (connect_data=(sid=tks)))";
    ^
    CreateCoffees.java:30: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    con = DriverManager.getConnection(url, "tem", "manager");
    ^
    CreateCoffees.java:31: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    stmt = con.createStatement();
    ^
    CreateCoffees.java:34: cannot resolve symbol
    symbol : variable con
    location: class CreateCoffees
    con.close();
    ^
    5 errors
    Please give some advise.Thanks
    best regards,
    Tay

         String url = "jdbc:oracle:thin:tem/manager@(
         description=(address_list=(
         address=(protocol=tcp)
         (host=192.9.200.8)(port=1521)))(source_route=yes)
         (connect_data=(sid=tks)))";
    After that I saved the file as CreateCoffees.java and
    compiled it
    D:\KLTAY\JAVA>javac CreateCoffees.java
    CreateCoffees.java:6: unclosed string literal
    String url = "jdbc:oracle:thin:tem/manager@(
    ^
    CreateCoffees.java:10: unclosed string literal
    (connect_data=(sid=tks)))";
    ^I would suggest putting all code between the quotesj(") on one line and then attempting to recompile.

  • Unable to connect to sybase in Oracle Golden Gate using GGSCI cmd prompt

    Hi All,
    I am trying to connect to sybase using golden gate cmd prompt GGSCI, but i am getting below error
    Command - dblogin sourcedb master userid sa
    master is the dbname (Default available in sybase)
    sa - user
    ERROR: Cannot connect to database master at server BL1DDG1W4BS.
    Client Library error: severity(0) number (44) origin(1) layer(4).
    ct_connect(): protocol specific layer: external error: The attempt to connect to
    the server failed.
    Sybase Version - 15.0
    Oracle Golden Gate version - Oracle Golden Gate for Non Oracle Database Release 10.4 for sybase 15.0.
    Please if any one can help me out.
    Thanks In Advance.
    Regards,
    Prachi

    the command is
    dblogin sourcedb <DNS_NAME> etc...
    DNS_NAME is the name of the ODBC connection to your sybase server.

  • Problem connecting to Sybase Server using Crystal XI-Version-11.0.0.1994

    Dear All,
    I have Crystal Reports XI (Version-11.0.0.1994) and Sybase Adaptive Server Enterprise 12.5  installed in my machine.
    Now Im trying to connect to Sybase Server As ,  File > Log On or Off Server  > Create New Connection > More Data Sources > Sybase. But am not Able to. It takes me to the installation wizard and ends with "No items found" error message.
    How ever Im able to create an ODBC Connection to the sybase server. But I want to create a connection using Sybase Native Driver. Could you anyone please throw some light on this
    Thanks

    Hello,
    Go into Add/Remove Programs and Change and then select Custom install and expand the database drivers. Verify you have selected Sybase, if not select it and then OK.
    If it's there then make sure the client is installed and path to the Sybase Client is in the PATH statement. Sorry I don't recall what it should be but you should see Sybase there somewhere. If not add it, typically it also has a \bin folder.
    Thank you
    Don

  • Oracle Gateway Not Connecting to Sybase database

    Hi,
    I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took:
    The oracle gateway and oracle database are in the same server while Sybase is on a separate unix box.
    1. create an initdg4sybs.ora file
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    HS_FDS_CONNECT_INFO=[999.99.108.99]:4527/common ## IP address of sybase server
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    2. create a listener on the oracle gateway home
    # listener.ora Network Configuration File: /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node A)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.24)(PORT = 1543)(IP = FIRST)) #IP address of oracle gateway (node B)
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    3. create tnsnames.ora in oracle database home
    dg4sybs =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 99.999.155.26)(PORT = 1543)) #IP address of Node A
    (CONNECT_DATA =
    (SERVER = DEDICATED) #added for single node test
    (SID = dg4sybs)
    (HS=OK)
    4. create database link
    create database link dg4sybs connect to "user" identified by "password" using 'dg4sybs'
    5. when testing the connection; i'm getting below error message. tried all the setup based my research and couldn't make it work.
    SQL> select * from dual@dg4sybs
    2 /
    select * from dual@dg4sybs
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Process ID: 7427
    Session ID: 495 Serial number: 787
    I perform above settings on a standalone database running in windows and successfully connect to the sybase. In UNIX setup, been unsuccessful. Can someone please help.
    Also, below is the trace file error message:
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.747
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY OCT 18 2012 10:57:55.745
    Version 11.2.0.1.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    ODBCINST set to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/dg4sybs.loc"
    RC=-1 from HOSGIP for "LD_LIBRARY_PATH_64"
    Setting LD_LIBRARY_PATH_64 to "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_ICU" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libHGicu23.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME_INST" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbcinst.so"
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib/libodbc.so"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using ro as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    SQL text from hgopars, id=1, len=20 ...
    00: 53454C45 4354202A 2046524F 4D202244 [SELECT * FROM "D]
    10: 55414C22 [UAL"]
    hgopars, line 526: calling SQLNumResultCols got sqlstate 42S02
    SQL text from hgopars, id=2, len=57 ...
    00: 53454C45 43542027 58272046 524F4D20 [SELECT 'X' FROM ]
    10: 2264626F 222E2273 79737573 65727322 ["dbo"."sysusers"]
    20: 20413120 57484552 45204131 2E226E61 [ A1 WHERE A1."na]
    30: 6D65223D 2764626F 27 [me"='dbo']
    Deferred open until first fetch.
    HS Agent received unexpected RPC disconnect
    Network error 1003:  NCR-01003: NCRS: Read error.
    Edited by: gonzroman on Oct 18, 2012 11:03 AM

    -=-=-=-=-=- tnsnames.ora on the UNIX side
    GTW_C100_COMN =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) #IP address of jrc1suvip01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) #IP address of jrc1sudb01a
    (CONNECT_DATA =
    (SERVER = DEDICATED) # added for single configuration
    (SID = dg4sybs_comn_c100)
    (HS=OK)
    -=-=-=-=-=- listener.ora of the GATEWAY
    LISTENER_DG4SYSBS =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1543))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)(IP = FIRST)) #IP address of jrc1suvip01a
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)(IP = FIRST)) #IP address of jrc1sudb01a
    #(ADDRESS = (PROTOCOL = TCP)(HOST = jrc1suvip01a)(PORT = 1543))
    SID_LIST_LISTENER_DG4SYSBS=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=dg4sybs)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    (SID_DESC=
    (SID_NAME=dg4sybs_comn_c100)
    (ORACLE_HOME=/u03/app/oracle/gateway/11.2)
    (ENVS="LD_LIBRARY_PATH=/u03/app/oracle/gateway/11.2/dg4sybs/driver/lib:/u03/app/oracle/gateway/11.2/lib")
    (PROGRAM=dg4sybs)
    ADR_BASE_LISTENER = /u03/app/oracle/gateway/11.2
    TRACE_LEVEL_LISTENER_DG4SYSBS = OFF
    TRACE_FILE_LISTENER_DG4SYSBS = /u03/app/oracle/gateway/11.2/network/admin/LISTENER_DG4SYBS.trc
    INBOUND_CONNECT_TIMEOUT_LISTENER_DG4SYSBS=0
    -=-=-=-=- initdg4sybs_comn_c100.ora parameter
    # This is a customized agent init file that contains the HS parameters
    # that are needed for the Database Gateway for Sybase
    # HS init parameters
    #HS_FDS_CONNECT_INFO=[glb0pod29.aexeo.citco.com]:4100/common
    HS_FDS_CONNECT_INFO=[209.87.108.99]:4527/common
    HS_FDS_TRACE_LEVEL=ON
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    -=-=-=-=- gateway listener status
    jrc1sudb01a:/u03/app/oracle/gateway/11.2/dg4sybs/admin $ lsnrctl status LISTENER_DG4SYSBS
    LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 20-OCT-2012 13:09:05
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1543)))
    STATUS of the LISTENER
    Alias LISTENER_DG4SYSBS
    Version TNSLSNR for Solaris: Version 11.2.0.1.0 - Production
    Start Date 18-OCT-2012 13:16:24
    Uptime 1 days 23 hr. 52 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u03/app/oracle/gateway/11.2/network/admin/listener.ora
    Listener Log File /u03/app/oracle/gateway/11.2/log/diag/tnslsnr/jrc1sudb01a/listener_dg4sysbs/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.26)(PORT=1543)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.124.155.24)(PORT=1543)))
    Services Summary...
    Service "dg4sybs" has 1 instance(s).
    Instance "dg4sybs", status UNKNOWN, has 1 handler(s) for this service...
    Service "dg4sybs_comn_c100" has 1 instance(s).
    Instance "dg4sybs_comn_c100", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    -=-=-=-=-=- tnsping output
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping dg4sybs
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:28
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.24)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs)) (HS=OK))
    OK (10 msec)
    jrc1sudb01a:/u03/app/oracle/product/11.2.0.3/network/admin $ tnsping GTW_C100_COMN
    TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 20-OCT-2012 13:11:35
    Copyright (c) 1997, 2011, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.124.155.26)(PORT = 1543)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = dg4sybs_comn_c100)) (HS=OK))
    OK (0 msec)

  • Connecting to sybase

    Hi,
    Could someone help me with this problem.
    I am trying to copy data from sybase to oracle.
    The table structures(contains long datatype) for the two db are similar.
    But when i try using the copy command in sqlplus, i get the error message:end of communication file end channel.
    I am using heterogenous service to connect to sybase.I already created a dblink and tested it, works fine.
    I added the tnsname: amos_sql and tried to connect straight to sybase using sqlplus:
    conn username/password@amos_sql but it also had the same error : end of communication....
    What is wrong,please help.
    Thanks.

    <<the Copy command doesn't support long columns>>
    It does. Please check the following link for details.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/apb.htm#634269

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • Run a java class in Oracle db to connect to Sybase

    Hi All, I'm looking for a way to connect to Sybase database at no-license-cost (meaning Oracle Gateway or similar 3rd party products), first coming idea was JDBC, I know I can run a java class in Oracle, the simple idea is to write a java class which connects to Sybase via JDBC thin driver and return the resultset of given query in a java class, the resultset will be presented in Oracle Apex framework.  Does anyone know if this can be done or not, and how?  Any howto articles are welcomed.
    Henry

    Henry:
    To connect to Sysbase or MsSQL Server you could use jTDS open source driver.
    http://sourceforge.net/projects/jtds/
    upload above driver (jar file) using loadjava, and grants the port connection using dbms_java.grant_permission procedure.
    Because jTDS is pure java driver (mode 4) is possible to use directly inside the RDBMS.
    Best regards, Marcelo.
    PD: Latest jtds driver is compiled against 1.6 sources, but oldest version will work with 1.5 for 11g.

  • Corrupted Chinese characters shown while connecting to Sybase

    SQL Developer experts,
    While I connect to Sybase DB 11 via SQL developer 2.1.1 with 'jtds-1.2.5' JDBC driver, but I see corrupted Chinese characters from SQL developer, the Sybase DB is using 'iso_1' charset. Can anyone advise me how to solve the problem ? Any configuratioin should I do for the JDBC connection string and where to configure it ? Thanks in advance.

    Hi,
    When you browse your Sybase connection do you see the corrupt characters in the table name, column name the data or both.
    Is the corrupt character a ? or an upsidedown ?
    You say that you are using 'iso_1' charset in Sybase. Is this not just for western european languages ? in which case I wouldnt expect it to manage chinese characters.
    When you log your Sybase instance using Sybase Central, do you see the correct characters?
    Just to note I can browse I chinese (GBK) Sybase database where the tablenames, columnnames and data are in chinese.
    Also that we currently only support jtds-1.2.jar .
    Regards,
    Dermot
    SQL Developer Team

  • Trying to connect to Sybase with Java jdbc

    Hoping someone can help me to connect to Sybase database (version is Sybase Adaptive Server Enterprise 12.5.3). I am using a technique I read that worked with Access and adapting by some examples for Syabase I found on the web but keep getting errors. Below is my code with some of the examples Ive been using commented out.
    I have created a DSN on my Windows Xp o/s named GPTS_SYBASE via ODBC Use DSN set-up wizard, driver is Sybase ASE ODBC Driver.
    import java.sql.*;
    public class DBConn {
    public DBConn(){
    public static void main(String[] args) {
    try {
    //Class.forName("com.sybase.jdbc2.jdbc.SybDriver.class.getname()");
    //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    String sourceURL = "jdbc.odbc.GPTS_SYBASE";
    //String sourceURL = "jdbc.sybase.Tds:GPTSPSYB1:5000/gpts";
    Connection conn = DriverManager.getConnection(sourceURL, "gptsdbo", "gptsdbo");
    //Connection conn = DriverManager.getConnection(sourceURL);
    System.out.println("Success");
    } catch (Exception e) {
    System.err.println("Got an excpetion! ");
    System.err.println(e.getMessage());
    Error message from this code is
    Got an excpetion!
    com.sybase.jdbc2.jdbc.SybDriver

    Have you read the Sybase docs or the Java JDBC docs? ODBC != JDBC. They sound the same but are totally different. The DSN is totally irrelevant for type 4 JDBC drivers.
    It would help to actually print the stack trace by changing your code to:
    catch (Exception e) {
        System.err.println("Got an excpetion! ");
        e.printStackTrace();
    }Also, you're mixing the wrong class name with the URL. You need "com.sybase.jdbc2.jdbc.SybDriver" and, in your case jdbc:sybase:Tds:GPTSPSYB1:5000/gpts - note the change to colons, not periods! - when in doubt read the docs!

  • 10g Form Developer Quits on compiling Forms connected to Sybase tables.

    Dear Experts,
    We have configured the connectivity for Sybase database with our oracle 9i database. using Hetero Geneous Service i.e using System_dsn ..etc.
    On this Sybase connectivity 6i Forms are compiling and running successfully But with 10g Forms while compling it just close the 10g form developer.
    For example....!
    In 6i forms On Button Press trigger below insert command works perfectly.
    But In 10g forms it say nothing and Just Quit.
    begin     
    insert into *"sybase_table"@SYBASE_DSN_DBLINK*
    ("colum1","colum2")
    values
    ('value1','value2');                         
    commit;
    end;
    Please help to resolve this problem.
    Thanks
    Eidy

    Hello,
    1.) does it with with the forms compiler (frmcmp)?
    2.) did you try creating a synonym for your object:
    create synonym my_syn for sybase_table@SYBASE_DSN_DBLINK;and use this synonym?
    3.) Did you try it with the latest patchsets if you didn't apply them (10.1.2.3 for forms)?
    4.) Did you try it with another database version (9i reached sustaining support btw. so you might try it with e.g. 10.2)?
    5.) If everything fails you can put your logic in a database procedure and use that?
    cheers

  • Problem connecting to Sybase

    I tried to connect to Sybase as below in Unix environment as below
    Class.forName("net.sourceforge.jtds.jdbc.Driver");
    Connection conn = DriverManager.getConnection("jdbc:jtds:sybase://INFUNDREF:7100/arch_db;TDS=7.0");
    I get an ERROR message as below
    An exception occurred.java.sql.SQLException: Unknown server host name 'INFUNDREF'.
    The INFUNDREF is a valid database(Sybase) server name, but still I get this error.
    Can any one please help?

    mannikavum wrote:
    BalusC wrote:
    Try using its IP address instead. Etcetera. It is just an ordinary networking problem,.Thank you. Can you please tell me how do we find the ip address of the Unix machine we are inAsk someone who has more knowledge about unix than you. This is not related to Java at all.
    Could please also tell where to inser the ip address in the codeIs it really hard to think logically?

  • Error connecting to Sybase database through WSAD

    In my jsp page I am trying to connect to Sybase database within WSAD.
    Here is my code:
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/AimDB");
    Connection con = ds.getConnection();
    It is giving an error message:
    Error 500: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
    On console below error message is coming:
    E SRVE0026E: [Servlet Error]-[Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.]: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory jdbc/AimDB
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.createMCFandPM(ConnectionFactoryBuilderImpl.java:1566)
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:1188)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
         at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
         at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
         at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)
         at org.apache.jsp._Test1._jspService(_Test1.java:89)
    Thanks,
    Vineet

    Hi ,
    Any body have this solution ??? I am using wsad -5.1.2 .When I try to access datasource from test server I got this same problems....
    I tried whatever instructs in above link.But after that I got same problem ....
    Sorry,for bad english
    advance thanks

Maybe you are looking for

  • Error in SXMB_MONI for HTML to Webservice Scenario

    Hi Experts, I am facing following error Error in SXMB_MONI for HTML to Webservice Scenario "Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EmailRequest_To_ValidateEmail_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Conte

  • Array Of Clusters Not Initializing or Possible Race Conditions

    Hi all, I've been working on a fairly complex project for work, and I haven't worked with Labview before. Unfortunately nobody in my office really has experience with it so I'm on my own. I've mostly got the project working, and it might be a little

  • Can we Implement YTD using MDX syntax in olap universe.

    Hi, I am trying to implement YTD prompt from universe level. Can any one suggest how can i implement it using MDX syntax in olap universe. Regards, Anil Kumar.

  • Issue with min/max when vertical axis assigned to multiple series

    Hi. I have some simple charting code that is dynamically adding LineSeries to a chart as the user requests them from the gui. As each series is added the vertical axis is assigned to the series and then data is requested and assigned to the dataProvi

  • IPhoto keeps opening randomly

    After I updated my Mac to Os X Lion, I noticed that iPhoto keeps opening randomly, by itself, for no reason. No, I am not plugging in a camera, or my iPod, or anything- it just opens by itself. Does anyone know how to fix this problem? It also says t