Problems connecting to Oracle DB

I'm trying to connect to an Oracle 7.34 database using the Oracle JDBC Oci driver. However, when I try to compile the program I get an error message saying "package oracle.jdbc.driver does not exist". I have set my CLASSPATH to include <ORACLE_HOME>\jdbc\lib\classes12.zip and <ORACLE_HOME>\jdbc\lib\nls_charset12.zip, as instructed. Has anyone any ideas why this could be happening? I'm using JDK 1.4.

This may be help ful to you...
classes12.zip - Oracle8i 8.1.7 JDBC Drivers for use with JDK 1.2.x
classes111.zip - Oracle8i 8.1.7 JDBC Drivers for use with JDK 1.1.x
classes12_01.zip - Oracle8i 8.1.6.0.1 JDBC Drivers for use with JDK 1.2.x
classes111_01.zip - Oracle8i 8.1.6.0.1 JDBC Drivers for use with JDK 1.1.x
classes111b.zip - Oracle 8i (8.1.5) JDBC Drivers for use with JDK 1.1.x
classes102.zip - Oracle8i (8.1.5) JDBC Drivers for use with JDK 1.0.2
Regards
Sudarshan.K

Similar Messages

  • Problem connecting from Oracle to MS Excel - 64 bit

    Hello,
    I have problem connecting to excel from oracle 11.2 using DG4ODBC.
    OS - Windows 7 - 64 bit
    Database version :- Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit
    Created System DSN using ODBC:
    Data Source Name = test12
    Oracle home Path :- D:\app\11g64db\product\11.2.0\dbhome_1
    Content of initdg4odbc.ora file :
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = test12
    HS_FDS_TRACE_LEVEL = 255
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Content of listener.ora:
    # listener.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = vis)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
          (SID_NAME = vis)
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (SID_NAME = dg4odbc)
          (ORACLE_HOME = D:\app\11g64db\product\11.2.0\dbhome_1)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = D:\app\11g64db
    Content of tnsnames.ora:
    # tnsnames.ora Network Configuration File: D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    excel_test =
       (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
        (CONNECT_DATA=(SID=dg4odbc))
        (HS=OK)
    VIS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = vis)
    Listener status
    LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 29-AUG-2014 13:56
    :11
    Copyright (c) 1991, 2013, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Produ
    ction
    Start Date                29-AUG-2014 13:34:58
    Uptime                    0 days 0 hr. 21 min. 12 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   D:\app\11g64db\product\11.2.0\dbhome_1\network\admin\l
    istener.ora
    Listener Log File         D:\app\11g64db\diag\tnslsnr\Est-Subramanya\listener\al
    ert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4odbc" has 1 instance(s).
      Instance "dg4odbc", status UNKNOWN, has 1 handler(s) for this service...
    Service "vis" has 2 instance(s).
      Instance "vis", status UNKNOWN, has 1 handler(s) for this service...
      Instance "vis", status READY, has 1 handler(s) for this service...
    Service "visXDB" has 1 instance(s).
      Instance "vis", status READY, has 1 handler(s) for this service...
    The command completed successfully
    DB Link:
    CREATE PUBLIC DATABASE LINK TEST123 USING 'excel_test';
    error while querying the data:
    select * from test@test123;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from TEST123
    28500. 00000 -  "connection from ORACLE to a non-Oracle system returned this message:"
    *Cause:    The cause is explained in the forwarded message.
    *Action:   See the non-Oracle system's documentation of the forwarded
               message.
    Error at Line: 1 Column: 20
    Appreciate the help in advance............
    Thanks...

    Also HS log file showed error.. Below are the contents of the trace file:
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.212
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- FRIDAY    AUG 29 2014 14:01:06.211
        Version 11.2.0.4.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "dg4odbc"
    Product-Info:
      Port Rls/Upd:4/0 PrdStat:0
      Agent:Oracle Database Gateway for ODBC
      Facility:hsa
      Class:ODBC, ClassVsn:11.2.0.4.0_0019, Instance:dg4odbc
    Exiting hgogprd, rc=0
    hostmstr: 8795961769984: HOA After hoagprd
    hostmstr: 8795961769984: HOA Before hoainit
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=873
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2014/08/29-14:01:06
    Exiting hgolofn, rc=0 at 2014/08/29-14:01:06
    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"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2014/08/29-14:01:06
    hostmstr: 8795961769984: HOA After hoainit
    hostmstr: 8795961769984: HOA Before hoalgon
    Entered hgolgon at 2014/08/29-14:01:06
    reco:0, name:OPTIM, tflag:0
    Entered hgosuec at 2014/08/29-14:01:06
    Exiting hgosuec, rc=0 at 2014/08/29-14:01:06
    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_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 OPTIM as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/08/29-14:01:06
    HS_FDS_CONNECT_INFO = "test12"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/08/29-14:01:06
    dsn:test12, name:OPTIM
    optn:
    Entered hgocip at 2014/08/29-14:01:06
    dsn:test12
    Exiting hgocip, rc=0 at 2014/08/29-14:01:06
    ##>Connect Parameters (len=31)<##
    ## DSN=test12;
    #! UID=OPTIM;
    #! PWD=*
    Exiting hgogenconstr, rc=0 at 2014/08/29-14:01:06
    Entered hgopoer at 2014/08/29-14:01:06
    SQLGetDiagRec returns rc=100 (SQL_NO_DATA) for handle 4619630 (SQL_HANDLE_DBC)
    Exiting hgopoer, rc=0 at 2014/08/29-14:01:06 with error ptr FILE:hgopoer.c LINE:186 ID:GetDiagRec error
    hgocont, line 2831: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgocont.c LINE:2851 ID:Something other than invalid authorization
    Exiting hgolgon, rc=28500 at 2014/08/29-14:01:06 with error ptr FILE:hgolgon.c LINE:806 ID:Calling hgocont
    hostmstr: 8795908591616: HOA After hoalgon
    RPC Calling nscontrol(0), rc=0
    hostmstr: 8795908591616: RPC Before Exit Agent
    hostmstr: 8795908591616: HOA Before hoaexit
    Entered hgoexit at 2014/08/29-14:01:06
    Exiting hgoexit, rc=0
    hostmstr: 8795911442432: HOA After hoaexit
    hostmstr: 8795911442432: RPC After Exit Agent

  • Problem connecting with Oracle 9i Database

    Hi Gurus,
    I'm having problems with connecting to Oracle 9i Database.
    I have a newly installed XML Publisher running on Windows XP SP3.
    I can't get my data source connected to other server running Oracle Database 9i.
    It keep on saying "Could not establish connection"
    Im using jdbc:oracle:thin:@host:port:sid format , username/password are correct.
    What seems to be the problem?
    Hoping for your help.
    Thanks

    Hi Steve,
    Let me clarify. I had an Oracle XML Publisher installed in my laptop (Windows XP SP3). I want to configure my XML Publisher to connect to a server
    where Oracle Database is installed (Oracle 9i DB). I can connect to this database using SQL Plus, SQL Developer. My problem is that after configuring the JDBC connection in XML Publisher, i still can't connect to the said oracle db. The info are correct SID, Hostname etc. and still can't connect.
    Hope this clarifies the situation.
    Thanks

  • Problem connecting to Oracle 8i (817) using Packaging Wizard of 9i Lite

    I am having a problem to connect to Oracle 8i database (817) from using Packaging Wizard. I am getting a error message when I tried to use Packaging Wizard -&gt; Snapshot -&gt; Import -&gt; Username/password and jdbc:oracle:oci8:@connect string or jdbc:oracle:thin:@host:1521:Sid
    The error message is 'No Suitable Driver. Make Sure the Proper JDBC drive for "jdbc:oracle:oci8i:@&lt;connect string&gt;" is in the classpath"
    I would appricated if someone can send me any help on this.
    My email address is [email protected]
    Thanks
    Joshua

    I am having a very similar problem.
    It seems that the packaging wizard forces you to use a JDBC driver to connect to your DB.
    I'm getting the "No suitable driver" message also.
    I even made sure the classpath line they ask you to remove in the preinstallation tasks was there. It wasn't to start, so I added it, but that didn't fix the problem.

  • Problem connect to oracle using ORACE

    Hi,
    Has anybody been able to connect to Oracle 10g using the latest ORACE(Free PL/SQL code editor)? The application hangs when I click on connect. Do I have to install the Oracle Instant Client if I have Oracle 10g Enterprise Edition installed?
    Any sort of help would be greatly appreciated.

    Do I have to install the Oracle Instant Client if I have Oracle 10g Enterprise Edition installed?
    No, But make sure that ORACLE_HOME variable is set correctly.
    What is the name of the PL/SQL editor you want to use?
    You can try SQL Developer.It is free as well.

  • Problems connecting to Oracle 11g R1 RAC

    Hi everybody
    In my factory we hava a web aplication called Matrix one that is connected to an oracle database 11g. This aplication uses Weblogic 9.2.3 to load the web pages. Until now we had an oracle running in one server, but now we have put an oracle rac system. The application works fine with this new situatin, but there ar parts of the system that don´t work. We have made our own applicatons that use thin jdbc driver to connect to database, but now when we connected to the rac sometimes the connection is established well but most of times the conecction failed. The error that weblogic returns is "connection refused".
    I´ve modified the startweblogic.cmd to use the las jdbc driver but the result is the same. My connection is the folloowing:
    Connection conn = null;
    String cadenaConexion = "";
    try{
    OracleDataSource ods = new OracleDataSource();
    ods.setUser(user);
    ods.setPassword(Pass);
    cadenaConexion = "jdbc:oracle:thin:@(DESCRIPTION=";
    cadenaConexion = cadenaConexion + "(ADDRESS=(PROTOCOL=TCP)(HOST=" + Server1 +")(PORT=1521))";
    cadenaConexion = cadenaConexion + "(ADDRESS=(PROTOCOL=TCP)(HOST=" + Server2 +")(PORT=1521))";
    cadenaConexion = cadenaConexion + "(LOAD_BALANCE=on)";
    cadenaConexion = cadenaConexion + "(CONNECT_DATA=(SERVER=dedicated)(SERVICE_NAME="+Service_Name+")";
    cadenaConexion = cadenaConexion + "(FAILOVER_MODE=(TYPE=Select)(METHOD=basic)(RETRIES=180)(DELAY=5))))";
    ods.setURL(cadenaConexion);
    return con;
    }catch (Exception e){
    e.printStackTrace();
    return (null);
    This is my startWeblogic.cmd:
    @ECHO OFF
    @REM WARNING: This file is created by the Configuration Wizard.
    @REM Any changes to this script may be lost when adding extensions to this configuration.
    SETLOCAL
    @REM --- Start Functions ---
    GOTO :ENDFUNCTIONS
    :stopAll
         @REM We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
         if NOT "X%ALREADY_STOPPED%"=="X" (
              GOTO :EOF
         @REM STOP POINTBASE (only if we started it)
         if "%POINTBASE_FLAG%"=="true" (
              echo Stopping PointBase server...
              call "%WL_HOME%\common\bin\stopPointBase.cmd" -port=%POINTBASE_PORT% -name=%POINTBASE_DBNAME% >"%DOMAIN_HOME%\pointbaseShutdown.log" 2>&1
              echo PointBase server stopped.
         set ALREADY_STOPPED=true
         @REM Restore IP configuration the node manager starts IP Migration
         if NOT "%SERVER_IP%"=="" (
              call "%WL_HOME%\common\bin\wlsifconfig.cmd" -removeif "%IFNAME%" "%SERVER_IP%"
    GOTO :EOF
    :ENDFUNCTIONS
    @REM --- End Functions ---
    @REM *************************************************************************
    @REM This script is used to start WebLogic Server for this domain.
    @REM
    @REM To create your own start script for your domain, you can initialize the
    @REM environment by calling @USERDOMAINHOME\setDomainEnv.
    @REM
    @REM setDomainEnv initializes or calls commEnv to initialize the following variables:
    @REM
    @REM BEA_HOME - The BEA home directory of your WebLogic installation.
    @REM JAVA_HOME - Location of the version of Java used to start WebLogic
    @REM Server.
    @REM JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
    @REM PATH - JDK and WebLogic directories are added to system path.
    @REM WEBLOGIC_CLASSPATH
    @REM - Classpath needed to start WebLogic Server.
    @REM PATCH_CLASSPATH - Classpath used for patches
    @REM PATCH_LIBPATH - Library path used for patches
    @REM PATCH_PATH - Path used for patches
    @REM WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
    @REM JAVA_VM - The java arg specifying the VM to run. (i.e.
    @REM - server, -hotspot, etc.)
    @REM USER_MEM_ARGS - The variable to override the standard memory arguments
    @REM passed to java.
    @REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
    @REM POINTBASE_HOME - Point Base home directory.
    @REM POINTBASE_CLASSPATH
    @REM - Classpath needed to start PointBase.
    @REM
    @REM Other variables used in this script include:
    @REM SERVER_NAME - Name of the weblogic server.
    @REM JAVA_OPTIONS - Java command-line options for running the server. (These
    @REM will be tagged on to the end of the JAVA_VM and
    @REM MEM_ARGS)
    @REM
    @REM For additional information, refer to the WebLogic Server Administration
    @REM Console Online Help(http://e-docs.bea.com/wls/docs92/ConsoleHelp/startstop.html).
    @REM *************************************************************************
    @REM Call setDomainEnv here.
    set DOMAIN_HOME=C:\bea923\user_projects\domains\mydomain
    for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
    call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
    set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
    set SAVE_CLASSPATH=%CLASSPATH%
    @REM Start PointBase
    set PB_DEBUG_LEVEL=0
    if "%POINTBASE_FLAG%"=="true" (
         call "%WL_HOME%\common\bin\startPointBase.cmd" -port=%POINTBASE_PORT% -debug=%PB_DEBUG_LEVEL% -console=false -background=true -ini=%DOMAIN_HOME%\pointbase.ini >"%DOMAIN_HOME%\pointbase.log" 2>&1
    set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS%
    set SAVE_JAVA_OPTIONS=
    set CLASSPATH=%SAVE_CLASSPATH%
    set SAVE_CLASSPATH=
    if "%PRODUCTION_MODE%"=="true" (
         set WLS_DISPLAY_MODE=Production
    ) else (
         set WLS_DISPLAY_MODE=Development
    if NOT "%WLS_USER%"=="" (
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.username=%WLS_USER%
    if NOT "%WLS_PW%"=="" (
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.password=%WLS_PW%
    Set ORACLE_HOME=C:\Oracle\product\11.1.0\db_1
    set CLASSPATH=%ORACLE_HOME%\jlib\jndi.jar;%ORACLE_HOME%\jlib\jta.jar;%ORACLE_HOME%\jdbc\lib\ojdbc5.jar;%ORACLE_HOME%\jdbc\lib\orai18n.jar;%ORACLE_HOME%\jlib\providerutil.jar;%ORACLE_HOME%\jlib\fscontext.jar;%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
    echo .
    echo .
    echo JAVA Memory arguments: %MEM_ARGS%
    echo .
    echo WLS Start Mode=%WLS_DISPLAY_MODE%
    echo .
    echo CLASSPATH=%CLASSPATH%
    echo .
    @REM Call WebLogic Server
    set path=%PATH%
    echo PATH=%PATH%
    echo .
    echo ***************************************************
    echo * To start WebLogic Server, use a username and *
    echo * password assigned to an admin-level user. For *
    echo * server administration, use the WebLogic Server *
    echo * console at http:\\hostname:port\console *
    echo ***************************************************
    @REM Set up IP Migration related variables.
    @REM Set interface name.
    if NOT "%Interface%"=="" (
         set IFNAME=%Interface%
    ) else (
         set IFNAME=
    @REM Set IP Mask.
    if NOT "%NetMask%"=="" (
         set IPMASK=%NetMask%
    ) else (
         set IPMASK=
    @REM Perform IP Migration if SERVER_IP is set by node manager.
    if NOT "%SERVER_IP%"=="" (
         call "%WL_HOME%\common\bin\wlsifconfig.cmd" -addif "%IFNAME%" "%SERVER_IP%" "%IPMASK%"
    @REM START WEBLOGIC
    echo starting weblogic with Java version:
    %JAVA_HOME%\bin\java %JAVA_VM% -version
    if "%WLS_REDIRECT_LOG%"=="" (
         echo Starting WLS with line:
         echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
         %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS%
    ) else (
         echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
         %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
    CALL :stopAll
    popd
    @REM Exit this script only if we have been told to exit.
    if "%doExitFlag%"=="true" (
         exit
    ENDLOCAL
    I´ve tried to use the Oci driver but then the error is diferent "java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path".
    I´ve red a lot of messages in forums but >I haven´t found the solution.
    Anybody could help me please?
    Thanks in advance
    Sorry for my English.

    I´ve tried to use the Oci driver but then the error is diferent "java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path".OCI requires a Oracle shared library (nothing to do with java.)
    returns is "connection refused".Which suggests a network problem. Given that you have added at least one new box to your network, how it was added would be the problem. Such as if a network infrastructure box is having an intermittent failure.

  • Problems connecting to Oracle 8i database

    Hi,
    I have installed Oracle 8i Enterprise on Win2k Server and created a database. Using Net8 Configuration tool, I have created service name. I was able to connect to this service but now for some reason I can't connect to this service, I tried setting up diffrent listener for this service at different port but that also is not working, then finally I ended up reinstalling 8i on same machine and now its not recognising the new database instance. The messages ,am getting is "TNS: no listener.." "TNS: Oracle ...service does not exist" in services all services and listeners are started. "listener.ora" and "tnsnames.ora" files have required entries. Please help or advise ASAP. (I was the one who pushed for Oracle in our company against MS-SQL server and now Iam realising the pain)

    Can you connect to the database on the server, using SQL*PLUS? I have installed Oracle 8i on 2 Win2K Servers which are also Primary Domain Controllers; when rebooted, their databases are not automatically started, as it is on my other servers which are pure database servers; perhaps this is your problem. I cured mine with a call to server manager in the server startup, but I'm sure there's a better solution!
    If the database is indeed open, from the command prompt try
    LSNRCTL START which will start the listener or at least give you some more info as to the listener.How are you attempting to connect?

  • Problem connecting to Oracle 10g express on linux SUSE

    Peace upon you,
    I have downloaded the RPM file and installed it , but when i try to log in the home page using "Go to database home page" the browser says that the page is not found.
    And when i type in the terminal : ./oracle-xe status
    the terminal says :
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 16-FEB-2007 09:46:35
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ACA8011A)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    Linux Error: 2: No such file or directory
    So what is the problem..........?

    I've managed to get OracleXE working properly on my SuSE10.2 box - I found an interesting issue - did you specify that the oracle database should not start up on system boot?
    (Check ORACLE_DBENABLED parameter in /etc/sysconfig/oracle-xe)
    If this is set to FALSE, the database will not start up. You'd need to:
    su to root
    su - oracle (note the '-')
    sqlplus /nolog
    connect / as sysdba;
    startup;
    exit;
    lsnrctl start
    - All the above is a manual startup - hope that helps....
    Carl.
    (PS: if you want to access the database from behind the firewall, you'll need to go into YAST, security, firewall, then advanced, and specifically open TCP port 1521, also port 8080 if you want to be able to view the web front end on another machine.... sometimes the firewall can be a pain...)

  • Problem connecting to Oracle Inventory Db after SP3 install

    I cant connect to database and get this error in zenworksinvservice
    log file :
    [5/25/04 21:36:33.358] ZENInv - Server Config: reading nds attributes
    of DB object...
    [5/25/04 21:36:33.361] ZENInv - Server Config: The subprotocol =
    ->oracle:<-
    [5/25/04 21:36:33.363] ZENInv - Server Config: Getting SID->mgmtdb<-Am
    i getting
    [5/25/04 21:36:33.366] ZENInv - Server Config: Getting is ep1 installed
    or not...
    [5/25/04 21:36:33.376] ZENInv - Server Config:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    Has someone same issue ?
    David

    David,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problem connection to Oracle application server

    Hi,
    I don't know if i'm at the right place but i'll post anyway.
    I'm using JInitiator, java and an Oracle 10g application server but the connection to the server fail until the end.
    I'm using a shortcut on my desktop whit the URL to the application server and the connection work but after a short time the link show this error: java.lang.ClassNotFoundException: oracle.forms.engine.Main
    And when i look in the Java Consol it look like this:
    charger : classe oracle.forms.webutil.common.RegisterWebUtil introuvable.
    java.lang.ClassNotFoundException: java.net.ConnectException: Operation timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown ource)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.plugin.protocol.jdk12.http.HttpClient.<init>
    (Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.New(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    charger : classe oracle.forms.engine.Main introuvable.
    java.lang.ClassNotFoundException: java.net.ConnectException: Operation timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpClient.New(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    There's 2 Operation time out exception and i don't know why !!!
    Can somebody help ? Thanks

    OK, in short:
    Cause: Wrong OPMN request port used to configure the connection (third step of "Create Application Server Connection" wizard). You might have kept the default (6003) but your OPMN is configured with different request port.
    Solution: Check $ORACLE_HOME/opmn/conf/opmn.xml file and look for entry like this:
    <port local="6140" remote="6240" request="6040" />
    Create the connection using OPMN request port that is set in opmn.xml file.
    Thanks
    Shail

  • StarOffice Base - problem connecting to Oracle database

    When opening StarOffice 8 Base (just installed on Windows) with "Connect to an existing database" with type "Oracle JDBC", Base could not find the Oracle JDBC driver (class oracle.jdbc.driver.OracleDriver).
    Even when I manually copied ojdbc4.jar into C:\Program Files\Sun\StarOffice 8\program\classes, the class has not been found/loaded.
    Looks like a bug to me ...
    - Jiri ([email protected])

    You need to set the StarOffice configuration to include the far file.
    Tools > Options > StarOffice > Java
    Click on the "Class path.." button.
    Then in the class path dialog click on "Add Archive"
    Browse to the jar file and select it.
    You will need to restart StarOffice for this to take effect.
    HTH
    Drew

  • Problem connecting to Oracle on Novell 5

    We are developing an application to be hosted on iplanet web server on a
    solaris platform. The database to be accessed is Oracle running on Novell
    netware 5.0. What are the drivers that I require and where can I find the same?

    Hi,
    The Oracle jar file has to be included in:
    aii_af_jmsproviderlib.sda
    Then, it needs to be deployed via SDM.
    Regards,
    Bill

  • Cannot connect to oracle DB

    Hi experts,
    I have problems connecting to oracle database
    Using tomcat as my webserver and db is oracle 9i
    getting this error:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    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.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:369
    *5)*
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:362)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:536)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:328)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java
    *:166)*
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection
    *(OracleConnectionPoolDataSource.java:149)*
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(O
    racleConnectionPoolDataSource.java:95)
    at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(O
    racleConnectionPoolDataSource.java:63)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection(O
    racleConnectionCacheImpl.java:560)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getPooledConnection(Oracle
    ConnectionCacheImpl.java:417)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnec
    tionCacheImpl.java:311)
    at oracle.jdbc.pool.OracleConnectionCacheImpl.getConnection(OracleConnec
    tionCacheImpl.java:281)
    at crbt.OracleConnectionUtil.getConnection(OracleConnectionUtil.java:70)
    at crbt.MySQLConn.connect(MySQLConn.java:48)
    at crbt.RBT_Interface.ProcessRequest(RBT_Interface.java:31)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:112)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    *.java:162)*
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
    *40)*
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:146)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:209)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:144)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    *2358)*
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:133)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:118)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:594)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:116)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:594)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:127)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
    t.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:15
    *2)*
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    *:799)*
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ssConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
    *:577)*
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
    ool.java:683)
    at java.lang.Thread.run(Thread.java:479)
    Database Error! java.lang.NullPointerException
    Please help resolve the issue.
    Thanx

    The url is correct............simple things have debugged already before posting this issue.Being able to connect is a pretty simple issue.
    You can use telnet to establish whether you can connect to the server and port from the client box. If you cannot establish that connection then absolutely nothing you do in java is going to solve the issue.

  • Problem in sql developer while connecting to oracle 11g

    when am creating a database connection with oracle 11g in sql developer editor it s throwing network adapter could not establish the connection
    connection name test
    user name system
    password system
    Role default
    Host name localhost
    Port 1521
    SID orcl
    Can any one help me to resolve the problem?
    Thanks in advance

    Those parameters probably aren't correct.
    Is that 11g on your machine? Try to specify the real IP instead. And sure the listener is up?
    Also sure about the SID and port?
    Hope that helps,
    K.

  • Problem in connecting with Oracle

    hi everybody
    I have a problem in connecting with Oracle express 10g. I got an error that doesn't allow me to connect. hope anyone can help me and solve this problem
    --------------------Configuration: test - JDK version 1.6.0_20 <Default> - <Default>--------------------
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DB.dbConnect(test.java:36)
    at test.main(test.java:18)
    this is the code that I'm following
    import java.io.*; import java.sql.*; public class test2 {   public static void main(String[] args) {     try {       Connection con=null;       Class.forName("oracle.jdbc.driver.OracleDriver");       con=DriverManager.getConnection(         "jdbc:oracle:thin:@PLANET:1521:ORCL",         "scott",         "tiger");       Statement s=con.createStatement();       s.execute("INSERT INTO BOOKS VALUES('A Tale of Two Cities','William Shakespeare',4567891231,'05-JAN-1962')");             s.close();       con.close();   } catch(Exception e){e.printStackTrace();} } }
    Edited by: Vantasia on Nov 12, 2010 10:18 AM

    1. Is the connection url correct?
    "jdbc:oracle:thin:@PLANET:1521:ORCL" is fine.
    2. Is the TNS listener started?
    c:\oracle\product\ora10\bin> lsnrctl status
    3. Is a firewall between client and database server?
    Connection url with firewall would be different.
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jdbcthin.htm#i1004276

Maybe you are looking for