DB Connection Problem: Redhat 4.1-Oracle 10.2-Apache 2.0.54-PHP 5.0.4

Hi I have all the above running on a single Redhat server
Apache starts fine
PHP config page shows fine on Apache with OCI module loaded
sqlplus scott/tiger@tnsentry> connects fine
sqlplus scott/tiger@//<ip>/<service> connects fine
... but PHP will just not connect to the db
I've tried
oci_connect("scott","tiger","<service>")
OCILogin("scott","tiger","<service>")
OCILogin("scott","tiger","//<ip>:<port>/<service>")
OCILogin("scott","tiger","(CONNECTION=(....))")
and all I can ever get are ORA-12154 and ORA-12514 errors
eg the following line....
if ($c=OCILogon("scott","tiger", "//<ip>:<port>/<service>")) { echo "Successfully connected to Oracle.\n"; oci_close($c); } else { echo "Oracle Connect Error "; print_r(oci_error()); }
gives me....
Oracle Connect Error Array ( => 12514 [message] => Error while trying to retrieve text for error ORA-12514 [offset] => 0 [sqltext] => )
I've set ORACLE_HOME and ORACLE_SID prior to starting apache
I've tried putenv("ORACLE_HOME=<oracle home path>") in PHP prior to OCILogon
but nothing seems to work and I'm tearing my hair out
One thing to note is that "root" owns apache and "oracle"owns the oracle software so not sure whether this might be a problem and whether it's recommended not to do this?
If anyone can help me with this I would really be grateful - thanks very much in advance!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi there MartynC
Just wanted to let you know that I screwed up - as usual, the simplest of errors.... I created a script around apachectl to start apache and prior to the apachectl start line I inserted
ORACLE_HOME=<my oracle home>; export ORACLE_HOME
...only I mistyped <my oracle home> so apache wasn't finding it
I've corrected that, restarted Apache and now PHP, Apache and Oracle are working fine!
Thanks very much for your offer of help (the only consolation I can take is that possibly this will someone reading this will take note and double check the dumb stuff and save themselves a lot of time and heartache)
Also I should note for anyone interested that my Linux installation is actually Centos 4.1 (a Redhat "clone")

Similar Messages

  • Instant Client Connection Problem - Excel 2007 to Oracle 10g

    Dear users,
    I would some help to connect Excel to Oracle.
    I am using Excel 2007 (32-bit) on Windows Vista Enterprise 64-bit. I want to connect to an Oracle 10g database through our local network using ODBC. I need to fetch some data once into an excel sheet.
    There are no firewall issues or connection issues between my current machine , as I can connect from my machine, using SQL developer as a local client to the Oracle Database which is on another machine on the network.
    I tried to make an ODBC connection but Oracle is not listed as a driver.
    I beleive ODBC is the best way to do this, but please correct me if I am wrong.
    It is an Oracle 10G database.
    I downloaded instantclient-basiclite-windows.x64-11.2.0.2.0.zip a
    I also downloaded the extra ODBC components: *Instant Client Package - ODBC: Additional libraries for enabling ODBC applications.
    I unzipped both in a folder called C:\instantclient_11_2
    The system path included that. I checked after rebooting.
    I placed my tnsnames.ora (which I copied from the server) in that folder.
    I got ti from the server : D:\Oracle\Ora10gR2DB\network\admin\tnsnames.ora
    I ran the exe "odbc_install" and It told me the ODBC was intalled successfully.
    When I went the control panel, administrative tools, ODBC
    In the user dsn tab
    I added a new entry. I chose the Oracle driver (previously it was not in the list)
    Used the following values
    Data Source name: OracleL
    Description 123
    TNS Service NAme: I chose fro ma drop down menu our prod environment. (There are two entries with the production name, one in caps and the other in lowercase)
    Userid: my username
    I tried Test the connection and got this:
    Unable to Connect
    SQlState=S1000
    [Oracle][ODBC][Ora]ORA-12545: Connect failed because target host or object does not exist
    Any suggestions please.
    Thnaks in advance.
    A.
    Thanks for all your help, in advance.
    Akajohn.
    Edited by: user12282521 on May 19, 2011 1:47 PM

    user12282521 wrote:
    I would some help to connect Excel to Oracle.
    I am using Excel 2007 (32-bit)
    I downloaded instantclient-basiclite-windows.x64-11.2.0.2.0.zip aIf Excel is 32-bit (2007 is) and Oracle client libraries are 64-bit, it won't work. 32-bit needs 32-bit.
    You probably should remove current ic packages and get the 32-bit ones instead.
    Start over.
    When I went the control panel, administrative tools, ODBCOn Windows x64, to manage 32-bit ODBC DSNs/drivers one needs to run the tool from Windows\SysWoW64\odbcad32.exe.

  • Connection problem for d2k with oracle 9i

    Hi,
    GoodDay, This is Ramesh. I have loaded the D2K as well as the Oracle 9i to my Windows-XP OS.But whenever i am trying to connect the database through D2K it is not being possible.After giving the user name & password it is showing error message like "TNS Error". Can anyone help me out with the process of connection??
    Regards,
    Ramesh.

    You gave only user name and password, no database string? (hint: the tnsnames.ora file in your Dev2K install should point to the database, which happens to be on the same machine)
    Which TNS Error? There are hundreds if not thousands of TNS error messages.

  • Connection problem to Oracle 11.1.0 on Windows Professional XP (SP2)

    Hello
    I've recently performed default installations for 3 Oracle Databases, into seperate homes on a newly formatted Windows
    Professional XP (SP2) standalone laptop. For all databases Oracle 10.2.0 (rover), Oracle XE (xe) and Oracle 11.1.0 (fido) I
    installed APEX and they worked perfectly.
    I then installed my Wireless O2 Broadband for my internet which uses DHCP
    I am unable to connect to my databases with the wireless broadband connected. I then bring down all databases and turn
    off/disable the Broadband,then restart all databases.
    Using commands
    Set ORACLE_SID=ROVER
    sqlplus system/rover@rover
    Set ORACLE_SID=XE
    sqlplus system/xe@xe
    Set ORACLE_SID=FIDO
    sqlplus system/fido@fido
    Connections are successfull apart from the Oracle 11.1.0 (fido) database with error
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Can anybody identify my connection problem to Oracle 11.1.0 (fido) database by reviewing my listener.ora, tnsnames.ora and
    other configuration files below.
    Many thanks in advance
    Regards
    Ade
    tnsping results
    ===============
    C:\>tnsping rover
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localho
    t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = rover)))
    OK (10 msec)
    C:\>tnsping xe
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bascilic
    o)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (30 msec)
    C:\>tnsping fido
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos
    t)(PORT = 1523)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = fido)))
    OK (20 msec)
    lsnrctl stat - results
    ======================
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.1.0.7.0 - Production
    Start Date 17-OCT-2009 15:54:12
    Uptime 0 days 0 hr. 32 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\11.1.0\db_fido\network\admin\listener.ora
    Listener Log File c:\oracle\product\11.1.0\diag\tnslsnr\bascilico\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1523ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=bascilico)(PORT=1523)))
    The listener supports no services
    The command completed successfully
    General configuration - Environment variables
    =============================================
    PATH =
    C:\oracle\product\11.1.0\db_fido\bin;C:\oracle\product\10.2.0\db_rover\bin;C:\oracle\oraclexe\app\oracle\product\10.2.0\serve
    r\bin;C:\oracle\ohs\bin;C:\oracle\ohs\jlib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI
    Technologies\ATI Control Panel
    TNS_ADMIN = C:\oracle\tns
    C:\oracle\tns\tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    Oracle 10.2.0 listener.ora
    ==========================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_rover)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Oracle 10.2.0 tnsnames.ora
    ==========================
    ROVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rover)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Oracle XE listener.ora
    ======================
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oracle\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    DEFAULT_SERVICE_LISTENER = (XE)
    Oracle XE tnsnames.ora
    ======================
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bascilico)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Oracle 11.1.0 listener.ora
    ==========================
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    Oracle 11.1.0 tnsnames.ora
    ==========================
    LISTENER_FIDO =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    FIDO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1523))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = fido)
    )

    For static registration you need to update the 3 listener.ora files.
    Exemple:
    SID_LIST_LISTENER_FIDO =
      (SID_LIST =
        (SID_DESC
          (ORACLE_HOME = <Oracle Home path>)
          (SID_NAME=FIDO)
    )

  • Oracle 10G connection problem

    Oracle 10G connection problem
    I launch my db with the following script:
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
    Here is the output:
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 188743680 bytes
    Fixed Size 778036 bytes
    Variable Size 162537676 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Database "orcl" warm started.
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Start Date 27-FEB-2004 22:17:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But when i try to connect with sqlplus:
    oracle@xavan_fixe oracle $ sqlplus
    SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    When you go to get connection you have to set the ORACLE_SID enviroment variable or use the service name in the string to get connection.
    Joel Pérez

  • How to solve Oracle SQL Developer connection problem ?

    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?

    user8860348 wrote:
    Folks,
    Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
    My OS is Linux and connects to internet successfully.
    In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
    Connection Name: DB1 (this is my database name as well)
    Username: SYS (this is the user name I used to login to the Console)
    Password: SYS (this the password used to login to the Console)
    Connection Type: Basic
    Host Name: localhost
    Port: 1158
    SID: DB1 (this is created during installing the Database)
    But the error message comes up: "Status: Failure - IO exception Connection Reset."
    Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
    password: enter_your_correct_password given at the time of oracle installation
    role: select sysdba if you would connect as sysdba else select normal for users other than sys
    hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
    to find the hostname open terminal/command prompt in oracle installed machine
    type ---> hostname
    type ---->ping hostname
    you can find the ipaddress of the server
    port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
    SID: DB1
    try it
    Good Luck

  • IIOP connection problems .: JDeveloper 3.1 and Oracle 8.1.6

    This is my 4th day working on this problem. I cannot get an IIOP connection to work.
    I have verfied that the listener is running on port 2481, I have been inside of the init.ora, listeners.ora, I have read the error inside of listeners.log, and I have been trying things with the Net8 Assistant also.
    Most of the posts on this subject seem older, I am wondering if anyone has had this problem recently with the versions that I am using. There are so many things I have been told to change, I'm wondering if there is a definitive list of steps to fix this problem.
    Any help is greatly appreciated.

    r singh wrote:
    >
    I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
    the start up of the server.
    My settings:
    - WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
    - I created the connection pool for oracle with the following
    parameters:
    connection name: OracleConnectionPool
    url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
    driver class name: oracle.jdbc.driver.OracleDriver
    properties: user=scott
    password=tiger
    - I have also downloaded classes12.zip and nls_charset12.zip from
    Oracle.com
    and have placed under $WL_HOME/lib.
    - I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
    in
    front of the $CLASSPATH in the startWeblogic.sh script. The echoed
    classpath
    from the startup script is:
    /opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
    charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
    _sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
    - Still I get the error:
    <Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "Or
    acleConnectionPool" No suitable driver>
    Can somebody point me out if i am doing anything wrong here.
    Thanks.
    RamanandHi,
    Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
    not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
    Joe

  • Oracle Database Connectivity Problem.. Please Help

    Hi , i am having a problem in connecting my JSP page to Oracle. I dont know how to work from Scratch like which classes to download for driver and where to put them so that it works for me please also help me in writng connection String. i am writing this code but it generates an error.
    <%
    try
    Connection conn=null; // defining variable
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@serverName:1521:myDatabase", "scott", "tiger");
    Statement st = conn.createStatement();
    String sql = "SELECT * FROM POS";
    ResultSet rs = st.executeQuery(sql);
    String name = rs.getString("DNAME");
    out.println(name);
    catch(Exception e)
    out.println(e);
    %>
    and the Error is
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I shall be thankful to you for your help.
    Regards,
    Adeel

    Thanks for your reply and sugession. We cannot stop
    using JSP actually. I meant while learning JDBC and attempting to debug it.
    I have been working with ODBC
    drivers and haven't got any problem. Now here you are
    talking about Class.... We haven't download the
    driver yet thats what i was trying to ask that from
    where to dowload those drivers/classes and where to
    put them or how to config them . Your Help is always
    appriciated because it can be really crucial for some
    one else. Any way Thanks again hope to see a reply
    from you.That isn't what your OP suggested. It suggested specifically that you didn't know what a class not found exception meant.
    You can down load the drivers from oracle. Or you can get them from the Oracle client install - just drill down under the install directory.
    As for where you put them, it would be the same place that you put the other drivers that you already have experience with.

  • JDBC Connection problem in Oracle 11g

    Hello Everyone,
    Recently we have upgraded our Oracle server from 9.2 to 11g. Since then our Java program scheduled in a shell script (on the Sun Unix server) is not working
    and is giving below error
    "java.sql.SQLException: ORA-12154: TNS:could not resolve the connect identifier specified"
    What is strange is that our Web application which is on the same server (application server is iPlanets) is able to connect successfully. Also I ran the same program on
    my local machine and it is able to connect to the 11g database. It is only on unix server (where the app server resides) that is giving problem. FYI the unix server
    does not have Oracle client installed so we are using the below in db.properties file (used by application for connection details).
    URL=jdbc:oracle:thin:@59.90.26.156:1521:LDPR
    The Web application and the stand alone java program (giving problem) call the same program to db connection and also share the same environment (class folder/library files etc).
    Also the program was working perfectly fine with Oracle 9.2. Please suggest the solution as I have tried everything that came to my mind.
    Regards,
    Sid.

    Hi ...
    Yeah BPEL connect from the back end rather than using weblogic, but to change it ... we need to change the code from BPEL side to connect from the weblogic JDBC services.

  • Client side connection problems with Oracle

    Hello,
    I'm using JUnit to test my code and am having client connection problems.
    Weblogic server 6.1sp2, oracle 8.1.7, win 2000
    I create an oracle user on the fly (with a dynamic name) and then need to connect
    so I'm getting a direct connection, rather than using a connection pool.
    it works fine when run through the container, but when run through JUnit I get the
    following error:
    java.sql.SQLException: The pool driver only works within the WebLogic server, it
    cannot be called directly in a client. Use the t3 driver.
    So i changed the code to:
    driver = (Driver)Class.
         forName("weblogic.jdbc.t3.Driver").newInstance();
    from:
    driver = (Driver)Class.
         forName("weblogic.jdbc.oci.Driver").newInstance();
    and now i get this error:
    java.sql.SQLException: No suitable driver
    Any ideas??
    Thanks!
    Sara

    Hi Sara,
    You may want to look at Cactus framework. This is a JUnit extension
    for serverside tests. You won't need to care about server/client
    configuration:
    http://jakarta.apache.org/cactus/index.html
    Regards,
    Slava Imeshev
    "Sara Chieco" <[email protected]> wrote in message
    news:3cf7b9ad$[email protected]..
    >
    Hi Sree,
    Actually, I also have a connection pool, so I am getting connections tothe database
    both using the pool (for the static user) and directly for the dynamicusers.
    >
    Here's the code in the config.xml:
    <JDBCConnectionPool CapacityIncrement="2"
    DriverName="weblogic.jdbc.oci.Driver" InitialCapacity="6"LoginDelaySeconds="1" MaxCapacity="60"
    Name="pics"
    Properties="weblogic.oci.cacheRows=500;user=**;password=**;defaultRowPrefetc
    h=500;server=nmctest"
    RefreshMinutes="10" ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true" Targets="nmc2Server"
    TestTableName="dual" URL="jdbc:weblogic:oracle"/>
    <JDBCTxDataSource EnableTwoPhaseCommit="false"
    JNDIName="weblogic.jdbc.jts.pics" Name="pics" PoolName="pics"Targets="nmc2Server"/>
    >
    And if I change the above DriverName to weblogic.jdbc.pool.Driver the poolno longer
    works, and the direct connection (attempted with weblogic.jdbc.oci.Driver)does not
    work either.
    Thanks for your help!
    Sara

  • Connection problem while invoking remote method from client using oracle 8.1.6 server

    while using a connection object to make connection to oracle in all remote methods(in EJB)only the first remote method called from the EJB client is getting invoked and the connection stops.It gives me COMM_FAILURE while invoking the second method in oracle 8.1.6.Help me out in this aspect immediately please.

    r singh wrote:
    >
    I am getting "No Suitable Driver" exception from WebLogic 6.1 (sp1) at
    the start up of the server.
    My settings:
    - WLS 6.1 on a solaris 8 machine and Oracle 8.1.6 on a WIN2K machine.
    - I created the connection pool for oracle with the following
    parameters:
    connection name: OracleConnectionPool
    url: jdbc.oracle.thin:@myOracleServer:1521:myDBName
    driver class name: oracle.jdbc.driver.OracleDriver
    properties: user=scott
    password=tiger
    - I have also downloaded classes12.zip and nls_charset12.zip from
    Oracle.com
    and have placed under $WL_HOME/lib.
    - I have added $WL_HOME/lib/classes12.zip:$WL_HOME/lib/nls_charset12.zip
    in
    front of the $CLASSPATH in the startWeblogic.sh script. The echoed
    classpath
    from the startup script is:
    /opt/tools/bea/wlserver6.1/lib/classes12.zip:/opt/tools/bea/wlserver6.1/lib/nls_
    charset12.zip:/opt/tools/bea/wlserver6.1:/opt/tools/bea/wlserver6.1/lib/weblogic
    _sp.jar:/opt/tools/bea/wlserver6.1/lib/weblogic.jar
    - Still I get the error:
    <Jan 16, 2002 1:38:45 PM EST> <Error> <JDBC> <Cannot startup
    connection pool "Or
    acleConnectionPool" No suitable driver>
    Can somebody point me out if i am doing anything wrong here.
    Thanks.
    RamanandHi,
    Sure. Your URL should be "jdbc:oracle:thin:@myOracleServer:1521:myDBName"
    not "jdbc.oracle.thin:@myOracleServer:1521:myDBName"
    Joe

  • Database Connection problem (JSP, Oracle & Tomcat 5.5)

    I am trying connect to Oracle 8 database through JSP and the webserver is Tomcat5.5. The classes.jar file is in the Tomcat5.5\common\lib directory and the path has also been set to mentioned directory. But I am getting exceptions. The code and the error are given below.
    Need help at the earliest.
    Thanks in advance.
    CODE
    Class.forName ("oracle.jdbc.driver.OracleDriver");     
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@insrs013:1521:GCR","BILLING_USER", "BILLING_USER");
    PreparedStatement pstmt = null;
    ResultSet rs = null;     
    pstmt = con.prepareStatement("INSERT INTO PROJECTIP(PROJECTID, PROJECTSERVERNAME, SERVERIP) VALUES(?,?,?)");
    ERROR
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: oracle.jdbc.driver.OracleDriver
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.test.ServerIPDataSave_jsp._jspService(org.apache.jsp.test.ServerIPDataSave_jsp:137)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1338)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1187)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
         java.lang.ClassLoader.loadClassInternal(Unknown Source)
         java.lang.Class.forName0(Native Method)
         java.lang.Class.forName(Unknown Source)
         org.apache.jsp.test.ServerIPDataSave_jsp._jspService(org.apache.jsp.test.ServerIPDataSave_jsp:71)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Hope is only the love of life.

    hi,
    FIrst make one thing clear. By classes.jar you mean either classes111.jar or classes12.jar.Right?If not,please check tht.
    Also,u needn't set any classpaths for Tomcat.
    Regards,
    Viswanath.

  • Connection problem with LDAP

    Hi,
    Is it possble to connect 10g version of database using LADAP from forms 6i ?
    Thanks
    Bcj

    Hi Wilfred,
    I would like to describe the tests and results which i have tried regarding the connection problem between forms 6i and Oracle 10.2 through OID(LDAP),
    Test 1.
    Installed forms 6i + patch 17 and Oracle 10.1.0.2 separately, and assigned the forms home to oracle 10 .1.0.2
    Received ,the message as, ORA -12154: TNS: could not resolve service name
    Test 2.
    Installed forms 6i + patch 17 and tried to install Oracle 10.1.0.2 in to the forms home then received an error message as "Oracle 10g database cannot be installed into an existing 7.x or 8.0.x ORACLE_HOME "
    Test 3.
    Installed Oracle 10.1.0.2 and installed forms 6i + patch 17 in to the Oracle 10.1.0.2 home, here I was able to connect through tnsnames.ora, but not through LDAP.
    When tried through LDAP , received the error message as , ORA -12154: TNS: could not resolve service name
    Here, forms created NET80 folder and it was trying to connect the database from this folder.
    Test 4
    Forms installed in test 1 and test 2 were able to connect through the oracle home which created at the time of test 3.
    Test 5
    Also tried to install the Oracle 10.1.0.2 into the oracle home which created at the time of third test, here again I received the error message as same as the second test.
    So, i agreed that it cannot, when this form version is tightly integrated to its oracle net libraries.
    After test 3, i have checked the oracle home in the registry all the variables pointing to the 10g database, here i was thinking is it possible to configure the oracle net libraries or any other to get connected.
    Thanks for your help
    Bcj

  • STRUTS - JDBC connection problem

    im using tomcat 5.5.9, jdk 1.5, oracle database...
    � have a project in struts...
    my project works with my compiler with no problem...
    *i setup tomcat on C:\jakarta-tomcat-5.5.9
    and � made these setting for tomcat:
    � added these strings to my CLASSPATH
    --C:\jakarta-tomcat-5.5.9\common\lib\servlet-api.jar
    --C:\jakarta-tomcat-5.5.9\common\lib\jsp-api.jar
    after � deployed my project under tomcat there was a "classes12.zip" file under this path:
    C:\jakarta-tomcat-5.5.9\webapps\BILGISU\WEB-INF\lib
    � changed it to class.jar
    also � have other .jars under the same path above.
    these jars are:
    classes12.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-dbcp.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-lang.jar
    commons-logging.jar
    commons-pool.jar
    commons-validator.jar
    jakarta-oro.jar
    jdbc2_0-stdext.jar
    struts.jar
    struts-legacy.jar
    THE PROBLEM IS:
    my index page is a "login" page..
    i can open the login page under tomcat.
    but when � enter the username and password, page says it is wrong username or password although these are true parameters...
    i think i still have a connection problem but � dont know how to solve...
    MY SEARCHES SAYS:
    you have to reconfigure "C:\jakarta-tomcat-5.5.9\conf\server.xml" like that:
    <Resource name="jdbc/myoracle"
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:[email protected]:1521:mysid"
    username="scott"
    password="tiger"
    maxActive="20"
    maxIdle="10"
    maxWait="-1"/>
    Resource name="jdbc/myoracle" ->HERE WHAT IS "myoracle"??? DOES IT BELONG TO MY PROJECT?
    you have to reconfigure "C:\jakarta-tomcat-5.5.9\conf\web.xml" like that:
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    will i write this to my web.xml
    and what is "auth=Container" here???????
    thanks in advance
    yasin

    ONE MORE QUESTION
    Im defining the datasource in my "struts-config.xml"
    do i have to define them again in "tomcat/conf/server.xml" ...

  • Connect to different Databases like Oracle, SqlServer,Access,Db2

    Hi all,
    i'm in the process of developing an application using jsp , which should be capable of connecting to all datbases like Oracle, SQL Server,Access DB2, Sybase etc,
    How can i establish that?
    Also what all are things i need to take care,which are specific to each of these databases,like datatype differences etc?
    Any information or links with sample codes is helpfull.
    regards.
    Isaac

    Theoretically if you use just the JDBC API then you should be able to access all these databases. This will be true if you're not using 'exotic' datatypes or functionality. If you are, then you may be in for problems - for example I've had problems with clobs and Oracle that required Oracle specific code, which goes against what you're doing. If that happens, just have call outs to helper classes that use the vendor specific stuff, and only load these classes if you detect that particular JDBC driver, and abstract these vendor specific classes to a standard interface.

Maybe you are looking for

  • How can I get safari to change the website history to follow an old domain name to a different sitedifferent

    I have a domain name that I changed to point to a different website. But it is still pointing to the old site. When I put the domain name in my iPad, it goes to the new site.  But the old site seems to be in the memory of Safari on my computer. Any i

  • Networking to a Office Copier

    Sorry if this is the wrong place to post. I am the only Mac user in our office of about 25 PCs. I have a laptop and I set up a hotspot in my office with an Airport Express. Just recently, our boss wanted the office staff to have access to the main co

  • Switching to a different Apple ID/account on iPhone

    I recently got my own laptop and apple ID, and would like to switch the apple ID/account on my iPhone from my family's ID/account to my new one. Is there a way to do this?

  • Transaction FOTV

    Hello gurus, I am executing the transaction FOTV in order to obtain the VAT declaration of Belgium. In that transaction I can see that exist three options: - Display data only - Test transfer of returns. - Send returns directly The first option is cl

  • Input field in Web Dynpro ALV does not have correct focus

    Hello Friends, Our client's SAP system is recently upgraded with ECC 6.0 SP 18. After that the focus in the editable field of Web Dynpro ALV does not working properly by down arrow navigation. The common scenario: The ALV has more than one rows and o