JDBC thin 8.0.4 connect to Server 8.0.5?

Oracle:
I have a test application (not an applet) that executes correctly
connecting to an Oracle Server 7.X database using Oracle's JDBC
thin drivers. But when I try to connect to an Oracle Server
8.0.5 database, I receive an Oracle error:
ORA-01034: ORACLE not available
The environment for successful application execution is:
Oracle Server 7.X with a TCP Listener on Port 1521
Client workstation NT 4.0
SQL*Net Client is installed (N/A since we're using jdbc thin?)
Java 1.1.1
Oracle JDBC Thin Driver Release 8.0.4
Classes111.zip (7/10/98; 383,256 bytes)
The environment for the un-successful execution is:
Oracle Server 8.0.5 with a TCP Listener on Port 1521
Client workstation NT 4.0
SQL*Net8 Client is installed (N/A since we're using jdbc thin?)
Java 1.1.1
Oracle JDBC Thin Driver Release 8.0.4
Classes111.zip (7/10/98; 383,256 bytes)
Everything else is identical; the only difference is the Oracle
server (7.x vs 8.0.5). The jdbc drivers were downloaded from the
OTN web site. I've reviewed the jdbc documentation available and
reviewed other threads. Is the jdbc thin driver release 8.0.4
compatible with Oracle Server 8.0.5? Is there a more recent
release of Oracle's jdbc thin driver not published on the OTN web
site? Is there something else I should be looking at?
After successful test as an application, I will be testing this
as an applet. As an applet connecting to Server 7.x, it also
works correctly. I have not yet tried the applet connecting to
Server 8.0.5.
Thank you in advance,
Ed Vinarski
5/19/99
null

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Edward Vinarski ([email protected]):
Oracle:
I have a test application (not an applet) that executes correctly
connecting to an Oracle Server 7.X database using Oracle's JDBC
thin drivers. But when I try to connect to an Oracle Server
8.0.5 database, I receive an Oracle error:
ORA-01034: ORACLE not available
The environment for successful application execution is:
Oracle Server 7.X with a TCP Listener on Port 1521
Client workstation NT 4.0
SQL*Net Client is installed (N/A since we're using jdbc thin?)
Java 1.1.1
Oracle JDBC Thin Driver Release 8.0.4
Classes111.zip (7/10/98; 383,256 bytes)
The environment for the un-successful execution is:
Oracle Server 8.0.5 with a TCP Listener on Port 1521
Client workstation NT 4.0
SQL*Net8 Client is installed (N/A since we're using jdbc thin?)
Java 1.1.1
Oracle JDBC Thin Driver Release 8.0.4
Classes111.zip (7/10/98; 383,256 bytes)
Everything else is identical; the only difference is the Oracle
server (7.x vs 8.0.5). The jdbc drivers were downloaded from the
OTN web site. I've reviewed the jdbc documentation available and
reviewed other threads. Is the jdbc thin driver release 8.0.4
compatible with Oracle Server 8.0.5? Is there a more recent
release of Oracle's jdbc thin driver not published on the OTN web
site? Is there something else I should be looking at?
After successful test as an application, I will be testing this
as an applet. As an applet connecting to Server 7.x, it also
works correctly. I have not yet tried the applet connecting to
Server 8.0.5.
Thank you in advance,
Ed Vinarski
5/19/99<HR></BLOCKQUOTE>
Net8 introduces the notion of service name and dbname. I think the version of thin JDBC you are using expect a sid name. Do a lsnrctl serv and find out your sid name and pass it to the connect string for JDBC.
null

Similar Messages

  • Oracle JDBC Thin Driver and Firewall Problem

    Hi!
    We have Oracle 8.1.5 and Websphere App Server. There is a
    firewall between the two. A servlet creates a connection pool
    (not that of Wesphere's). The frontend is JSP/HTML (no applets).
    The servlet uses the Oracle JDBC Thin Driver for DB Connections.
    The problem is - Once the connection is freed, the connection
    pool is not being able to retrieve it and hence it created
    another one, thus reaching the max. # of connections and the
    system hangs. Restarting the DB service flushes the connection
    and the application starts running again...
    There was a similar problem discussed in this forums long ago. I
    have not yet tried mentioning the firwall port and IP in the
    connection string. But apart from that, is there any other
    setting I need to do (on firewall or for the connectionstring)
    to deal with this problem?
    Someone had suggested to punch a hole in the firewall for the DB
    port - but we can not really do that in the current scenario...
    I would appreciate if anyone could share their experience
    regarding how they resolved this issue.
    Thanks in advance,
    Vijaya.

    One more question -
    Can we use Oracle JDBC OCI driver? We do not have any appletes...
    Does it have firewall issues too? Is there any other driver that
    we can use?
    Thanks,
    Vijaya.

  • About jdbc-thin driver

    I download oracle jdbc-thin driver to access oracle database
    server,but it doesn't support unicode,why and how to resolve it?
    thanks!!
    null

    Actually, the usage of the client-side and of the server-side thin driver is the same: the URL in both cases is specified in the same way.
    The only difference is that you do not need to register the server-side Oracle JDBC driver with the Driver manager (though it will be a no-op if you do it).
    When you want to run code in the server that executes in a particular session, you will use the server-side (or kprb) driver that gives you the connection associated with your session.
    You have to use the server-side thin driver to establish a connection to a different database - something that is not the connection associated with your database
    session.
    Server-side thin driver connections can be used with JDBC as well as with SQLJ code.
    null

  • Oracle Not Avaliable on 8.1.6 for Linux with JDBC Thin Connection

    HI All,
    While I m trying to connect the Oracle 8.1.6 server with the JDBC Thin driver I m getting Error
    ORA - 01034 Oracle not Available.
    I m using jdk 1.2.2 and in the Classpath I have given the path for classes12.zip.
    I have tried using classes111.zip file though I m getting same Error Message.
    Anybody can help me out.
    Thanx,
    Chirag oza
    null

    did you have your oracle database running?
    01034, 00000, "ORACLE not available"
    // *Cause: Oracle was not started up. Possible causes include the following:
    // - The SGA requires more space than was allocated for it.
    // - The operating-system variable pointing to the instance is
    // improperly defined.
    // *Action: Refer to accompanying messages for possible causes and correct
    // the problem mentioned in the other messages.
    // If Oracle has been initialized, then on some operating systems,
    // verify that Oracle was linked correctly. See the platform
    // specific Oracle documentation.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chirag oza ([email protected]):
    HI All,
    While I m trying to connect the Oracle 8.1.6 server with the JDBC Thin driver I m getting Error
    ORA - 01034 Oracle not Available.
    I m using jdk 1.2.2 and in the Classpath I have given the path for classes12.zip.
    I have tried using classes111.zip file though I m getting same Error Message.
    Anybody can help me out.
    Thanx,
    Chirag oza
    <HR></BLOCKQUOTE>
    null

  • JDBC Thin driver and Oracle names server

    Hi
    Any managed to get the Thin driver to user the Names Server aliases, ie I want to connect to service xxx like
    jdbc:oracle:thin:@xxxx and not specify instance and port as the DB is running in a multiple machine cluster and can be switched to a different machine...
    With OCI driver I have managed on NT but having problem with OCI/Linux and Beta 10g...
    Tks
    Andre

    I don't have much experience with OCI from JDBC, but should work like any other kind of connection via SQL*Net. I.e. I would check if connection can be made using SQLPlus, check environment variables (ORACLE_HOME etc.) of 9iAS instance, check version of JDBC classes and their readme.txt. There are also some settings in sqlnet.ora file which might affect this (like default domain - try to use full name of alias - OCRL.WORLD or whatever alias you have there). You may also want to switch tracing for SQLNet and/or listener on (it's not easy to find in doc how to do it, though) to check if there is at least some traffic between klient and server...
    Myrra

  • Connection through jdbc thin client taking more time than from sqlplus!!!

    Hello All
    Machines A and B
    Applicaion in A is connecting to B(9.2.0.6),db server.
    The schema is so small with few tables and data in each table less than 500 rows
    We are in the process of migrating the Application Schema in B to C[9.2.0.8].
    But the response time is more when the application fetches from C.
    Even while selecting the sysdate from dual.
    The application is using the jdbc thin client for fetching the data.
    When the same sql is executed by (from A to C)
    sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
    But when the same is done through the application which uses jdbc thin client, it takes few seconds
    to complete.
    When tried with a small java program that uses classes12.jar (from A to C)
    conn = DriverManager.getConnection(URL,UID,PASS);
                   stop = System.currentTimeMillis();
                   System.out.println("Connection time in milli sec: " + (stop - start));
                   System.out.println();
    ..It was found that creating the connection was taking time.
    But the same is not happening when tired through the sqlplus
    Could someone throw some light into this?
    What could be the reason for jdbc to get slower while establishing connections?
    TIA,
    JJ

    are you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • JDBC Thin driver connection

    Hi,
    I am trying to open a connection from Java using JDK 1.1.6 and the Oracle JDBC Thin drivers. My Oracle drivers register just fine. However, I get an exception which I catch saying "Security.couldn't connect to HOST with origin from." HOST is my local server name where I'm running Oracle 8.0.4.0.0 and OAS 4.0.8. My connection statement in my .java code is:
    Connecttion conn =
    DriverManager.getConnection("jdbc:oracle:thin@HOST:1521:orcl,"scott","tiger")
    I can connect just fine using sqlplus with the scott/tiger@orcl descriptor.
    How can I resolve this?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDBC Development Team:
    Not sure whether this is the cause of the problem. There should be a ":" before the "@" sign in the connect string. That is,
    "jdbc:oracle:thin:@host"
    Please do let us know if this doesn't fix the problem
    <HR></BLOCKQUOTE>
    Thank you for pointing out the missing : before the @ symbol. I made that change. Still, I get the same message when the applet loads in my browser page. If I load the applet in appletviewer then I get the error message "checkconnect.networkhost1".

  • OS_USER not correct when connecting using JDBC Thin Client on 10G

    Hi Folks,
    We are migrating an application from a 9i database to 10g and have a problem that someone might have come across before.
    The application is a Java applet based application that connects to the database using JDBC Thin client. on 9i the OS_USER comes up as the user running the applet but in 10G it is coming up as the user account that installed 10G on the DB server.
    We tried using a 9i client to identify if it was a client or DB issue but its the same problem with the 9i client connecting to the 10G DB.
    If anyone can help it would be much appreciated.
    Thanks,
    John.

    What is the return of this command?
    SELECT sys_context ('USERENV', 'OS_USER') FROM dual;
    Is it the DB user or the OS user?

  • Oracle 7 - JDBC Thin driver - connect - compatibility

    When logging on to an Oracle server v.7.2.3.0.0 with JDBC-thin
    driver (classes111.zip), I get the message:
    ORA-01017 invalid username/ password; logon denied
    even if the password, username and connection string is correct.
    The connection worked OK until some work was performed on the
    database and some changes with SQL*Net was done.
    I thought the driver worked OK with all versions of SQL*Net
    listeners?
    The database can be connected to with SQL*Plus.
    null

    I have the same problem trying to connect to database cache on iAS with iAS.

  • Connecting via JDBC (thin) to 8i -- Error

    Hi --
    I'm trying to connect to a database on NT (resides on my
    workstation) and I get "Connecttion Reset by Peer"
    I'm using Oracle thin driver and db version is 8.1.5 for NT.
    TIA
    Ashish
    null

    Ashish (guest) wrote:
    : Hi --
    : I'm trying to connect to a database on NT (resides on my
    : workstation) and I get "Connecttion Reset by Peer"
    : I'm using Oracle thin driver and db version is 8.1.5 for NT.
    : TIA
    : Ashish
    a jdbc thin connection requires a tcp/ip listenrer to be active
    on the "server" machine.
    in this case it's also your "client" pc.
    null

  • Jdbc thin error : The Network Adapter could not establish the connection

    jdbc thin error : The Network Adapter could not establish the connection
    I have been able to create a webservice as per the article Build a PL/SQL Web Service by jason price from otn website. while executing url to call the pl/sql procedure to get the data i am encountering this error
    The Network Adapter could not establish the connection in the resultant xml output. Am I missing something here ?
    Please see ouput below
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server.Exception:</faultcode>
    <faultstring>java.sql.SQLException: Io exception: The Network Adapter could not establish the connection</faultstring>
    <faultactor>/plsqlsample/dbfunc</faultactor>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
    my oc4j/j2ee/home/config/data-sources.xml file has this entry for the connection
    <data-source class="com.evermind.sql.DriverManagerDataSource" connection-driver="oracle.jdbc.driver.OracleDriver" ejb-location="jdbc/hr_connDS" inactivity-timeout="30" location="jdbc/hr_connCoreDS" name="jdev-connection:hr_conn" password="xxxx" pooled-location="jdbc/hr_connPooledDS" url="jdbc:oracle:thin:@o11idev.concentra.com:9200:DEV1" username="hr8" xa-location="jdbc/xa/hr_connXADS"/>
    I am not able to debug this error and any information to debug this error would be appreciated. I have scanned the metalink short of logging a tar. I am using the oc4j install on the 9ias webserver and not the jdeveloper/oc4j combination. The apps server runs 9ias on hp/ux.
    Thanks
    ashok

    Ashok,
    Your database connection URL doesn't look right to me. The default database connection listener port is 1521 (not 9200). You can check this using the "lsnrctl" utility.
    To find the "host" and SID parts (of the URL), use the following SQL query:
    select HOST_NAME, INSTANCE_NAME from V$INSTANCEGood Luck,
    Avi.

  • Oracle server side jdbc thin driver throws ORA-01017

    We upgraded our database to 11.2.0.1 from 9.2.0.6.
    When we try to connect to an external database from Oracle JVM using server side jdbc thin driver, it throws invalid user id/password error.
    The below test code simulates the issue and is not working on the upgraded instance. The same code is working in fine in other 11.2.0.1 instances. It worked fine before upgrade. In all cases, we are connecting to the same target database instance which is also in 11.2.0.1. It fails only on this database.
    SEC_CASE_SENSITIVE_LOGON is set to false.
    Any inputs will be highly appreciated.
    Code:_
    create or replace and compile java source named TestConn as
    import java.sql.SQLException;
    import oracle.jdbc.OracleDriver;
    import oracle.jdbc.OracleConnection;
    import java.sql.DriverManager;
    public class TestConn {
         public  static String runTest() {
          String msg = "Start";
          OracleConnection tempOC = null;
          try {
          String pUrl = "jdbc:oracle:thin:@dev:1521:dev";
          String pUser = "tst_user";
          String pPwd = "dummy";
          DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
          tempOC = (OracleConnection)DriverManager.getConnection(pUrl, pUser, pPwd);
    msg = "Success";
    } catch (SQLException sqle) {
          System.out.println(sqle.toString());
          sqle.printStackTrace();
          msg = "Failure";
            return msg;
    CREATE OR REPLACE FUNCTION test_conn RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'TestConn.runTest() return java.lang.String';
    set serverout on
    declare
    c varchar2(4000);
    begin
    dbms_java.set_output(5000);
    c:=test_conn();
    dbms_output.put_line(c);
    end;
    / Error Message_
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:388)
           at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:381)
           at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:564)
           at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:431)
           at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
           at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:366)
           at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java)
           at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:359)
           at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java)
           at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
           at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
           at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at java.sql.DriverManager.getConnection(DriverManager.java)
           at TestConn.runTest(TESTCONN:22) Edited by: sskumar on Mar 6, 2011 1:12 PM

    At the time our issue was resolved, the bug was not published. And, I was told, there was no information in metalink about the isue. I am not sure whether they published some thing in the last few weeks.
    This is what resolved our issue.
    Step 1: alter system set java_jit_enabled=FALSE;
    Step 2: Try your test case. If it is the same issue as ours, your test case will be successful. If it succeeds, Go to step 3. If it does not succeed, it is a different issue.
    Step 3: alter system set java_jit_enabled=TRUE;
    Step 4: Run your test case. If it is the same issue, it is expected to fail. Go to Step 5 in case of failure.
    Step 5: Delete all rows from table java$mc$
    Step 6: Restart the database
    Step 7: Run your test case. It is expected to be successful.

  • Problems with jdbc:thin connection to oracle9i RAC

    Hi,
    I am having problems connecting to a 2 node RAC using jdbc:thin.
    Connecting directly to the nodes is no problem, but I get an exception when trying to use load balancing/failover.
    this is my connection string (URL):
    jdbc:oracle:thin:@(DESCRIPTION =
    (ADDRESS_LIST =
    (LOAD_BALANCE = on)
    (FAILOVER = on)
    (SOURCE_ROUTE = OFF)
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = NODE1)
    (PORT = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)
    (HOST = NODE2)
    (PORT = 1521)
    (CONNECT_DATA =
    (SERVICE_NAME = MYSERVICENAME)
    (failover_mode =
    (type = session)
    (method = basic)
    and this is some of the stack trace :
    java.sql.SQLException: Io exception: NL Exception was generated
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:418)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:521)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:171)
    Any help would be greatly appreciated.
    Regards,
    Christian

    Dear Maran,
    Yes! You can always increase the number of process and session to a higher limit at database end, but it won't be a feasible solution. Rather look into the areas which are the cause of this and try to solve them out.
    What if you increase these parameters at database end to accomodate more and more sessions, and allow them to use more and more resources like process, and still they keep on increasing rather than getting closed. It would be worthless use of Database server Reources.
    It is really very simple, just look for the SQL statements which are having last_call time a long back (from V$SESSION and V$SQLAREA or you may use tools like TOAD), and try to find out the reason why they are not releasing the connections back to Connection Pool. Check out these SQL statements in the application code and ensure Connection Handling is done over them.
    Some "RS.CLOSE" type of command is there in java (I am not sure with the proper syntax)
    Regards,
    Manoj.
    null

  • JDBC Thin connection

    When use Jdev30 to connect to Oracle803 server, I got error message "End of TNS Data Channel".
    I select Oracle JDBC Thin and Named Host in the Connection Wizard.
    Please help me.

    Sorry, forgot to add that you should probably check the Oracle 8i JDBC User's Guide and reference for more information. The JDBC Technologies page on OTN may also have some additional information.
    The JDBC doc includes some sample code for testing your connection through JDBC code rather than through Jdeveloper. That is your best first line of defense.
    Laura

  • JDBC Thin Server-side Driver 8.1.6

    The readme.txt for the JDBC Thin driver
    talks about a JDBC Thin driver for clients
    and a JDBC Thin Server-side driver for
    servers. Where is the Server-side driver?
    In Oracle?

    I believe the one from technet was created
    under the Solaris environment. That is
    the only difference that I know of.
    null

Maybe you are looking for

  • Passing / parsing XML String IN / OUT from PL / SQL package

    Hello, People ! I am wondering where can I find exact info (with code sample) about following : We use Oracle 8.1.6 and 8.1.7. I need to pass an XML String (could be from VARCHAR2 to CLOB) from VB 6.0 to PL/SQL package. Then I need to use built in PL

  • Telnet read isuue

    Hi all First of all thanks for taking time to help me with my problem. Let me explain I have developed a telnet connection program that connects to a switch and interacts with it. But unfortunately when i try to login to the switch after sending the

  • Integration Directory changes not reaching Runtime

    Dear all,     I changed a few values on one of the communication channels but is not getting reflected on the runtime. Looks like a cache refresh issue, so I did a 'cache connectivity test' in RWB. ‘Integration server – JAVA’ and ‘Integration Server

  • MapViewer API

    Hi all, I am building an application on top of MapViewer, where session information is not maintained on my application side. I am using MapViewer (bean) API for accessing MapViewer services. For every user request I create a new instance of MapViewe

  • Cannot initialize Native Extension

    Hello i always get an Type Error #1009 cannot access a property or method of a null object reference It seems that my code cannot load the ANE because I cannot instatiate the extension object. any help? Thanks Marco