How to connect to personal oracle using oracle thin driver on windows98

Hi,
i would like to know is it possible to connect to personal oracle8 using oracle thin driver on windows98.iam getting some exceptions when iam running ,could any one help me
1.exception in thread main java.sqlexception:IOexception:the
networkadapter could not establish the connection
2.at oracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
3.atoracle.jdbc.dbaccess.DBError.throws sqlexception(DBError.java)
4.atoracle.jdbc.driver.oracleconnection.<init>(oracleconnection.java)
5.atoracle.jdbc.driver.oracledriver.getconnectioninstance(oracledrive
r.jva)
6.atoracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
7.atjava.sql.DriverManager.getConnection(unknown source)
8.atjava.sql.DriverManager.getConnection(unknown source)
9.at JEmp.main(JEmp.java:16)
null

http://www.orafaq.com/wiki/JDBC#Thin_driver

Similar Messages

  • How to connect from java without using oracle client installation

    hi ,
    Please tell me how to connect from java without using oracle client
    Thanks & Regars

    http://www.orafaq.com/wiki/JDBC#Thin_driver

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • Connect to oracle using jdba thin driver

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

  • JDBC CONNECTION TO ORACLE9i DB USING JDBC THIN DRIVER 9.2.0

    Hi everyone,
    I have have set my classpath:
    set classpath=.;c:/oracle/ora92/jdbc/lib/ojdbc14.jar;c:/oracle/ora92/jdbc/lib/nls_charset11.zip;c:/oracle/ora92/jdbc/lib/nls_charset12.zip
    i have also specified the jdbc url:
    String url = "jdbc:oracle:thin:@//chuksnb/javanb;
    where chuksnb is the oracle server host and javanb is my oracle service name
    somewhere in the code i have specified the driver class:
    class.forName("ojdbc14.jar")
    please what are the things that i have not done correctly because when i compile my program, i get 31 errors.
    thanks

    "I have have set my classpath:
    set classpath=.;c:/oracle/ora92/jdbc/lib/ojdbc14.jar;c:/oracle/ora92/jdbc/lib/nls_charset11.zip;c:/oracle/ora92/jdbc/lib/nls_charset12.zip"
    This is probably wrong or not going to help you one bit. This isn't the best way to deal with CLASSPATH.
    I don't have an environment variable named CLASSPATH on any machine that I work on. It's not the way to do things, IMO.
    %

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

  • How to connect to oracle10g Database using oracle11g Enterprise Manager.

    Hi,
    please suggest me how to connect to oracle10g Database using oracle11g Enterprise Manager.
    i did setting in tnsnames.ora file of oracle11g database but when i am trying to connect sys@testvsr and password
    using oracle11g Enterprise manager its not connecting but from command prompt its connecting.
    its not acccepting hostname its simply telling invalid username and password ,if i remove and try to connect its connecting.
    so please suggest its very urgent my manager is nagging.
    Regards,
    Srinu.

    you cant attach a database 10g instance with
    Enterprise manager of 11g as enterprise manager is
    meant for a single database only .. your problem cant be solved
    enterprise manager it can be solved by using GRID CONTROL
    For more details visit oracle documentation..
    Hope This helps..
    BI TC

  • I can't connect my personal hotspot using wifi,I can able to find my iphone4 but it's just showing obtaing ip adress ??wat can I do for this problem??

    I can't connect my personal hotspot using wifi,I can able to find my iphone4 but it's just showing obtaing ip adress ??wat can I do for this problem??

    Hey there arunvdi,
    It sounds like you are unable to connect to the Wi-Fi created by your Personal Hotspot. I recommend these troubleshooting steps from the article named:
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/kb/ts2756
    Try disabling and reenabling Personal Hotspot from Settings > Personal Hotspot or Settings > General > Cellular > Personal Hotspot.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    Wi-Fi troubleshooting
    If you encounter an issue using Personal Hotspot with other Wi-Fi devices, try the following:
    Turn Personal Hotspot off.
    Verify Wi-Fi is on in Settings > Wi-Fi.
    Turn Personal Hotspot back on.
    If another device is unable to join your Wi-Fi network, ensure that the user enters the Wi-Fi password correctly. If the device cannot see your Wi-Fi network, verify your device name.
    Note: Windows may not properly display a device name that uses non-ASCII characters.
    Verify how many devices are currently using your Personal Hotspot. Depending on your wireless carrier and, the maximum number of Wi-Fi connections may be limited to three at one time.
    If the other device still cannot connect, try turning Wi-Fi off and on again on the device. Verify that your device can see other Wi-Fi networks.
    Note: If you see an "Unable to Join" or timeout error when trying to connect a device using Wi-Fi, ensure that you remain on the Personal Hotspot screen until the first device connects. After a device has connected, you can leave the Personal Hotspot screen and use your phone normally. Your device will automatically stop broadcasting using Wi-Fi if you put your device to sleep or after 90 seconds elapse with no devices connected using Wi-Fi. You can start broadcasting your Wi-Fi network again by tapping Settings > Personal Hotspot.
    If none of the previous steps resolves your issue, restore the iPhone.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How to connect to Digital Camera using JMF?

    How to connect to Digital Camera using JMF?
    Any example?
    thx

    If the DC has a mode that works like a web cam, and can generate either a VFW or DirecShow stream, then you could capture a frame of the stream, yes.

  • How to connect to AD without using ADWS?

    How to connect to AD without using ADWS? Is it possible to do it? If yes, can teach me how to connect to AD and find their attributed?

    Hi Noobycy,
    There are few tools to find AD attributes without ADWS. See options you have below
    1.ADFIND -
    http://www.joeware.net/freetools/tools/adfind/  This is a command Line tool
    2.
    The ADSIEDIT tool
    from the Windows Support Tools is a great tool to "explore" the AD.
    http://technet.microsoft.com/en-us/library/cc731547.aspx
    3. ADUC -
    http://www.boostsolutions.com/blog/how-to-find-attributes-of-objects-in-active-directory/
    Regards, MassonTech

  • How can I get computer to use external DVD drive?I have a HP dvd640 plug in play drive I want to ude but my iMac dosen't see it as connected.

    How can I get *computer* to use external DVD drive? (1.8 GHz PowerPC G5 Version 10.3.9)

    Place cd/dvd in drive.  cd/dvd icon will show on desktop.
    How can I get computer to use external DVD drive?I have a HP dvd640 plug in play drive I want to ude but my iMac dosen't see it as connected.
    What is ude?
    How is it connected?  firewire or usb?
    When connected it should appear in system profiler.
    blue apple > about this mac > more info button. Click on the hardware line. It has a little triangle in front of the work hardware.
    look for firewire or usb.
    Robert

  • How ADBC connection is benefits by using SAP HANA as secondary database ?

    Hi,
    I have one more important question.
    How ADBC connection is benefits by using SAP HANA as secondary database in terms of performance wise for the access of data from HANA database as a secondary database.
    I have 2 options and which is better for the good performance for accessing the data-
    1 .  In ABAP Reports in the SELECT statements by using CONNECTION (“HDB”) will this improve the
         performance.
          e.g : select * from BSEG into TABLE IT_TAB CONNECTION (“HDB”).
    2. Will Create the Stored procedure in HANA studio and Call
       from ABAP as below by using NATIVE SQL–
         EXEC SQL
          SET CONNECTION (‘HDB’).
         ENDEXEC.
        EXEC SQL.
          EXECUTE PROCEDURE proc (IN    p_in1                       
                                 OUT   p_out1   OUT   p_out2 )
       ENDEXEC.
    Regards,
    Pravin
    Message was edited by: Jens Weiler
    Branched from http://scn.sap.com/thread/3498161

    Hi Pravin,
    Option 1: In this case ADBC might even worsen the performance due to the overhead in the ADBC framework. OpenSQL is the method to go here, as OpenSQL - from the ABAP point of view - features the optimal communication with the database while ADBC has overhead like constructor-calls for the statement, parameter binding, etc.
    Option 2: In this case ADBC is comparable with EXEC SQL but features more options, e.g. clean concept of multiple connection (connection objects via CL_SQL_CONNECTION), exception handling, etc. So I strongly propose to favour ADBC over EXEC SQL, but not simply for performance reasons. You might have a look at the ABAP Language Help in your system on more information on ADBC and the advantages over Exec SQL.
    Cheers,
      Jasmin

  • HT1529 how to connect to internet by using Ethernet Cable

    how to connect to internet by using Ethernet Cable
    I have apple mac book pro with retina display.plz send me the setting thank u

    There's no setting. Plug in the cable to the adapter for either USB or Thunderbolt and plug the other end into your router. You can turn off wireless at that point.

  • Exception with WLS 6.1.3 & Oracle 9.2 thin driver

    I'm testing out an upgrade from the Oracle thin driver that ships with WLS
    6.1
    to the Oracle 9.2 thin driver. My database server is running Oracle 8.1.7.
    The only configuration change I made was to put the 9.2 classes12.zip at the
    beginning of ths classpath. The line of my code where the exception is
    being
    throw is the first attempt at performing a resultSet.getLong() call. Has
    anyone
    gotten this combination to work yet? Any ideas on the error? I'd really
    like to test out the native LOB support in the new drivers.
    TIA - Gordon
    <Oct 14, 2002 2:59:02 PM EDT> <Error> <Audit> <- Login failed because
    loginName:
    buyerOrgAdmin1034621942027 was not found.
    com.eoriginal.engine.core.session.bas
    icAccess.OrgUserDataAccessSessionBean_rngrwj_Impl::findUserAccountInfo,
    java.lan
    g.ArrayIndexOutOfBoundsException
    at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3181)
    at oracle.sql.LnxLibThin.lnxsni(LnxLibThin.java:6571)
    at oracle.sql.NUMBER.toLong(NUMBER.java:373)
    at
    oracle.jdbc.dbaccess.DBConversion.NumberBytesToLong(DBConversion.java
    :2915)
    at
    oracle.jdbc.driver.OracleStatement.getLongValue(OracleStatement.java:
    4373)
    at
    oracle.jdbc.driver.OracleResultSetImpl.getLong(OracleResultSetImpl.ja
    va:529)
    at
    oracle.jdbc.driver.OracleResultSet.getLong(OracleResultSet.java:1540)
    at weblogic.jdbc.jts.ResultSet.getLong(ResultSet.java:518)
    at
    weblogic.jdbc.rmi.internal.ResultSetImpl.getLong(ResultSetImpl.java:4
    77)
    at
    weblogic.jdbc.rmi.internal.ResultSetStraightReader.getLong(ResultSetS
    traightReader.java:142)
    at
    weblogic.jdbc.rmi.SerialResultSet.getLong(SerialResultSet.java:450)
    at
    com.eoriginal.engine.core.session.basicAccess.OrgUserDataAccessSessio
    nBean.findUserAccountInfo(OrgUserDataAccessSessionBean.java:1272)
    at
    com.eoriginal.engine.core.session.basicAccess.OrgUserDataAccessSessio
    nBean_rngrwj_EOImpl.findUserAccountInfo(OrgUserDataAccessSessionBean_rngrwj_
    EOIm
    pl.java:475)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean.valida
    teLogin(LoginSessionBean.java:135)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean.valida
    teLogin(LoginSessionBean.java:94)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh
    EOImpl.validateLogin(LoginSessionBeanmoz7fh_EOImpl.java:37)
    at
    com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh
    EOImplWLSkel.invoke(Unknown Source)
    at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at
    weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    (com.eoriginal.engine.core.session.basicAccess.LoginSessionBean_moz7fh_Impl:
    :va
    lidateLogin)>

    Have you tried the thick (oci) driver?
    We're looking to upgrade too.
    "Richard" <[email protected]> wrote:
    >
    I try to connect to an Oracle 9.2.0 on Windows XP with the jdbc thin
    driver. I
    use weblogic server 7.0 SP1 (same problem with weblogic server 7.0.0).
    I try direct connection (without pool) or with the weblogic pool, and
    I get the
    same error :
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.security.o3logon.C0.r(C0)
    at oracle.security.o3logon.C0.l(C0)
    at oracle.security.o3logon.C1.c(C1)
    at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientH
    elper)
    at oracle.jdbc.ttc7.O3log.<init>(O3log.java:289)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:251)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(Con
    nectionEnvFactory.java:201)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(Con
    nectionEnvFactory.java:140)
    at weblogic.jdbc.common.internal.ResourceAllocator.makeResources(Resourc
    eAllocator.java:931)
    at weblogic.jdbc.common.internal.ResourceAllocator.finishInit(ResourceAl
    locator.java:457)
    at weblogic.jdbc.common.internal.ResourceAllocator.<init>(ResourceAlloca
    tor.java:316)
    at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.j
    ava:292)
    at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.
    java:282)
    at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.j
    ava:270)
    The same test works well with an Oracle 9.0 !
    I have already try with this differents drivers :
    8.1.7, 9.0 and 9.2 and I always have the same problem.

  • How can I see KSC5602 character set using JDBC thin driver

    After I change character set from USASCII7 to KO16KSC5601, I
    cannot see korean from the clients
    using JDBC thin driver.
    But, I can see korean clearly using sqlplus at serer, or
    application using SQLNet.
    I use Oracle Enterprise Server 8.0.4.1.0, jdbc thin driver
    8.0.4.0.6 on Windows 98. I read that all bugs realated
    to multibyte language are fixed in Oracle8. What can I do to
    solve this problem?
    PS.server: Oracle 8.0.4.1 on Digital Unix 4.0b, client: jdk1.1.8
    on Windows98. I used the command.
    null

    The easiest thing to do is download it as an archive with your applet.
    Otherwise, you have to have the files on every client machine.
    For netscape, put the classes111.jar in the java classes folder typically:
    c:\ProgramFiles\Netscape\Communicator\Program\java\classes.
    I'd expect that IE would be setup in a similar way.

Maybe you are looking for