Cannot Connect to Oracle, PHP cannot load oci dlls

Hello,
I have installed wamp on windows server, and oracle 9, When I try to connect to oracle in php I get:
Fatal error: Call to undefined function oci_connect() in C:\wamp\www\project2\index.php on line 3
Also when I start wamp, it cannot load the oci dlls found on:
C:\wamp\bin\php\php5.3.0\ext
I have configured the php.ini file and commented as much options
extension_dir = "C:/wamp/bin/php/php5.3.0/ext/"
extension=php_oci8.dll ; Use with Oracle 10gR2 Instant ...
extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client
extension=php_oracle.dll
extension=oci8.so
I am unable to either connect to the database through php, also when I start wamp, i get pop up windows that it cannot load the dynamic procedures related to oracle: php_oce.dll, php_oce8.dll, php_pdo_oci,
I have even eddited the http.conf file
Also have done this:
•Add the following entries to the "C:\Apache\Apache\conf\httpd.conf" file:
LoadModule php4_module c:\php\sapi\php4apache.dll (approx line 193)
AddModule mod_php4.c (approx line 241)
AddType application/x-httpd-php .php (approx line 851)
I have included the phpinfofile attached as well, part of it below is:
System Windows NT SELECAO 5.2 build 3790 (Windows Server 2003 Standard Edition Service Pack 2) i586
Build Date Jun 29 2009 21:23:30
Compiler MSVC6 (Visual C++ 6.0)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\wamp\bin\php\php5.3.0\php.ini
Configuration
apache2handler
Apache Version Apache/2.2.11 (Win32) PHP/5.3.0
Apache API Version 20051115
Server Administrator admin@localhost
Hostname:Port localhost:80
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server No
Server Root C:/wamp/bin/apache/Apache2.2.11
Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_php5

I get this error, i decided to change directory for oracle_home
putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1/bin");
to
putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1");
it functioned.
my code
<?php
putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1");
putenv("ORACLE_SID=PLSExtProc");
$user ="name"; // set user
$senha="password"; // set password
$banco="(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)
(HOST=127.0.0.1)(PORT=1521)
(CONNECT_DATA=(SERVICE_NAME=orcl))
)"; // configuracoes do banco (isso muda um pouco no oracle)
if ($conexao = OCILogon($user,$senha,$banco))
echo "Conexão bem sucedida.";
else
echo "Erro na conexão com o Oracle.";
?>

Similar Messages

  • Toad Error - Cannot load OCI DLL: C:\Oracle\instantclient_11_1\oci.dll

    Hello All,
    Help needed to fix this error.
    We are getting the below error from Toad after fresh install on Windows 7 64 Bit.
    Toad for Oracle Base
    Version: 10.6.1.3
    Cannot load OCI DLL: C:\Oracle\instantclient_11_1\oci.dll
    We are using the Oracle Instant Client (instantclient-basic-nt-11.2.0.2.0).
    We are able to connect to the database from the command line successfully, but when we tried to launch the Toad and connect it we are getting the above error.
    How do we fix this issue?
    Thanks in advance.
    Sandeep S

    mseberg wrote:
    So is this a Toad issue or an Oracle client issue?More like a general software or programming "issue". If Toad (or other program) is 32-bit, then loaded libraries (e.g. Oracle Client dll's) needs to be 32-bit.
    I'm sure this is documented in requirements for Toad. See e.g. [url http://toadfororacle.com/servlet/KbServlet/download/4264-102-12585/10.6_ReleaseNotes.htm#SystemRequirements]Toad 10.6 Release notes.
    Edited by: orafad on Aug 10, 2011 2:35 AM

  • Cannot load OCI DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll

    Hello,
    my environment is:
    MS Windows 2003 R2 SP2 Enterprise x64 Edition
    Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
    and I want to use:
    TOAD for Oracle Freeware - version 8.5.0.50 g (from Quest Software)
    my "path" variable is as below:
    C:\Documents and Settings\Administrator.SERVER2003>set path
    Path=C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    At location "C:\oracle\product\10.2.0\db_1\bin\" I can see "oci.dll"
    BUT... when I try to connect to my database... from TOAD... I get the message below.
    Cannot load OCI DLL: C:\oracle\product\10.2.0\db_1\bin\oci.dll
    Using "netca" or "sqlplus" I can connect to the database with success.
    Help welcome!!!

    Hummm....
    this should be the cause.
    I have Oracle Database 10g Release 10.2.0.1.0 - 64bit Production. Then all the executables including DLLs are 64-bit version compiled.
    Now... I guess that the TOAD software is 32-bit application and it can not load 64-bit OCI.DLL.
    Thanks to EVERYBODY evolved!!!
    By the way:
    The TOAD for Oracle Freeware - version 8.5.0.50 g (from Quest Software) is the latest version available from Quest Software.
    Regards,

  • Cannot load OCI DLL: C:\oracle\product\11.1.0\db_1\BIN\oci.dll

    Hi..
    I tried connect to my oracle 11g using toad version 9.5.. but i got an error as below:-
    Cannot load OCI DLL: C:\oracle\product\11.1.0\db_1\BIN\oci.dll
    As your information.. this is my tnsnames.ora configuration:-
    NV2DEV =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ASUS-PC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = NV2DEV)
    Please help me...
    Thank you,
    Baharin

    hi,
    Guys, I installed Oracle 11g client because of the reported fix of System.Transactions issue known in 10g. I use PL/SQL developer, and it told me "Initialization error: Could not locate OCI dll", though the registry entry and ORAHOME folder it showed were Ok. It seems like PL/SQL developer was looking for OCI.dll not in the reported ORAHOME folder but in ORAHOME\bin folder. After copying all files (luckily, they are quite few) from ORAHOME root to bin PL/SQL developer began to work correctly.
    from the following link
    http://forums.oracle.com/forums/thread.jspa?threadID=620900
    it will work for you
    Thanks
    Edited by: CKPT on Sep 27, 2010 12:52 PM

  • Cannot Load OCI.Dll

    Hello:
    I just installed the 64-bit version of 11g Release 1 (11.1.0.6) on a server that is running 64-bit Windows 2003 Server.
    The installation was successful and I checked using SQL Plus. I am able to log and execute queries. I am also able connect using SQL Developer.
    However, when I tried to use SQL Navigator (version 6.1) or Toad 10.0, I get an error message "... Cannot load OCI.DLL".
    When I tried to install another COTS product, it complains that it was unable to find Oracle Client and/or Oracle OLE Objects.
    I was trying both the tasks on the server itself.
    Any ideas on how I can resolve the issues?

    I have the same problem: Oracle 11 R2 on Solaris x86-64 and Oracle client (11.1.0.7.0 x64, unfortunately, there's no client higher than that version.). After installing TOAD 10.1 i've checked client connection:
    SOFTWARE\WOW6432NODE\ORACLE (Oracle Root)
    ORACLE_HOME_NAME:
    ORACLE_HOME: C:\app\User\oracle
    ORACLE_SID:
    NLS_LANG:
    SQLPATH:
    LOCAL:
    C:\app\User\oracle\Bin exists.
    C:\app\User\oracle\Bin is in PATH.
    Client DLL: C:\app\User\oracle\Bin\oci.dll
    Client Version: 11.1.0.7.0
    Home is valid.
    So, TOAD can see the client, but when i'm trying to connect it i got an error:
    Cannot load OCI DLL: oci.dll
    Any suggestions?

  • VB6 source code cannot connect to Oracle database after compile to file.exe

    Hi All,
    I have a problem about VB6 connect with Oracle database. It can connect as normal when run on VB program. After compiled to file.exe and execute, it cannot connect to Oracle database. What's going on ? Please advise? Thank you.
    Here is sample of my code connection.
    Option Explicit
    Private wsData As New ADODB.Connection
    wsData.ConnectionString = _
    "Provider=MSDAORA.1;User ID=lsp;Password=lsp2007;Data Source=prd01;Persist Security Info=False"
    wsData.Open
    End sub
    Rgads,
    Ats.

    Hi,
    I believe you're in the wrong forum, this forum is for Oracle Application Express.

  • Help!my application can not load oci.dll

    i have a server with windows 2003 enterprise sp2, oracle 10g was installed on it.now i want to run a .net application,but it's not working,cause oci.dll can not be loaded. then i installed PL/SQL and instant client 11g. but still not working. the error is :"initialization is error, can not load oci.dll.....returned 0". also,i wroted a small application to load oci with win32 api(LoadLibrary) and returned 0 too.
    I'm sure there are no 32bit,64bit things. from os to application,32bit was checked. and i changed server but same os ,same oracle, after application and instant client installed,same problems got. so i'm think about is there any conflicts when oracle 10g and odac/instant client work together

    If you have Oracle 10 installed on a Windows computer, you have oci.dll.
    If "oci.dll can not be loaded", the problem is not a lack of oci.dll.
    The first thing you should do is uninstall Instant Client and anything else you installed to fix the problem (I don't know what you mean with "install PL/SQL").
    Then check if oci.dll can be loaded, e.g. by starting sqlplus and connecting to a database.
    If that works, oci.dll is fine.
    If your program cannot load oci.dll, something in your setup has a problem.
    Maybe it cannot find oci.dll and you have to tell it where to look.
    Yours,
    Laurenz Albe

  • Loading oci.dll Error

    Trying to connect to Oracle for the first time using Visual Studio.Net. I have created a App that has a connection to an Oracle database. That was easy. I then tried to populate a datareader and started receiving the error " Unable to load dll ("oci.dll"). I browsed for .dll and did not find it. My question is how to I get this .dll on a developement (WinXP) workstation and also on a production server running IIS 5.0 to connect to an oracle database? I am new but this is turning out to be a challenge. Thanks for the help in advance!!

    John,
    If you have a proper installation of Oracle Server or Client, oci.dll should be in your %Oracle_Home%\bin directory. For example, c:\Oracle\ora92\bin.
    Sinclair

  • ** 911 ** Cannot connect to oracle 9i database No suitable Driver

    All:
    Any help rendered would be appreciated. (jdk 1.4.2_06, Tomcat 4.0,
    Oracle DB 9i Windows XP)
    I have a web app (Jasper report tool) and I cannot connect to a Oracle 9i database.
    1)error received: "Apr 2, 2007 2:05:15 PM com.entDB.Enterprise_db connectToDatabase SEVERE: Function connectToDatabase() - Cannot load the driver, reason:java.sql.SQLException: No suitable driverCheck classpath for driver java.sql.SQLException: No suitable driver
    2)CLASSPATH SETTING = C:\tomcat\common\lib\ojdbc14.jar
    3)Source code:
    protected boolean connectToDatabase() {
    try {
    // I tried this !!! Class.forName("oracle.jdbc.driver.OracleDriver");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("URL,USER,PASSWORD ");
    return true;
    }catch (SQLException e) {
    logger.error("Function connectToDatabase() - Cannot load the driver, reason:" + e.toString() + "Check classpath for driver ", e);
    return false;
    4.I placed a copy of the jar file in TOMCAT common lib, and server lib.
    I have tried various solutions listed at different web sites without success. Has anyone had similiar problems? Can anyone assist?
    thanks ......
    ******* Confused *********

    I used 911 because It is an emergency for me (I am
    under a deadline) . You might want to read this: Urgent Questions
    URL, PASSWORD, USER are strings
    declared in another section of code.Yes, but in the code you posted the variable names are all inside double quotes?

  • Excel-2007 cannot connect to Oracle ODBC data source, Control Panel can.

    <p>
    I cannot make an ODBC connection from Exce-2007 to Oracle work. I am an expert Excel and VBA user (since 1994) and I have frequently used Excel to access ODBC databases, including Oracle (I have done this with Excel-2003 both with worksheet queries and have written VBA ADO-connection routines). And even though in Excel-2007 a worksheet ODBC query is supposed to be easier to create than in previous version of Excel, my connection fails. Any suggestions and all help are welcome and much appreciated.
    DETAILS
    </p>
    <p>
    1) <strong>What is my system?</strong> I am using Excel-2007 on Windows Vista x64 and Oracle server v.11g on my computer (all this is on my computer, no network issues).
    2)<strong> Why use Excel with Oracle at all?</strong> I use Excel-2007 to access Oracle rather than Access-2007 (or any other application like TOAD, etc.) because I do engineering calculations with the data stored in Oracle. These calculations are easier done in Excel (I suppose that one alternative to this could be to use some sql or Access to get the data from the database, then store it as plain vanilla CSV file, then open this file in Excel, then do the math (the math involves complex optimisation algorithms), then save the results as CSV, then use some sql or Access to put the data back into the database. Howwever this does not strike me as a quick or neat solution. And after all Excel has been designed to access ODBC databases, so why not use it?)
    3) <strong>What do I do in Excel-2007 that won't work?</strong> I create an ODBC link to Oracle that does not work. In Excel-2007 this is straightforward:
    </p>
    <ul>
         <li>define an ODBC connection (Data tab --&gt; From other sources --&gt; From data connection wizard);</li>
         <li>define a query on the worksheet -- that's it, this is all!</li>
    </ul>
    <p>
    I start with creating an ODBC connection:
    a) I choose an ODBC data source type: <strong><em>ODBC DSN</em></strong>
    b) Excel-2007 displays the list of the available ODBC data sources. I see in it <strong><em>my Oracle database name</em></strong> and I select it.
    c) Excel-2007 displays the Data Link Properties:
    - the "Provider" has a list of the OLE DB drivers with preselected "<strong><em>Microsoft OLE DB Provider for ODBC Drivers</em></strong>". I keep this default selection.
    - the "Connection" tab has a connection string "<strong><em>DSN=&lt;my database name&gt;</em></strong>" which I keep, it also has fields for the <strong><em>user name</em></strong> and the <strong><em>password</em></strong>, which I fill with the correct credentials.
    - Finally there is a button "Test Connection", which when I click produces the following error message:
    <strong><font color="#ff0000">"Test connection failed because of an error in initializing provider.</font></strong><strong><br />
    </strong><strong><font color="#ff0000">Unespecified error"</font></strong><strong>
    </strong>
    4) <strong>Additional food for thought:</strong>
    a) In the above walk-through the only data, which I type, are the user name and password, everything else is selected from lists offered by Excel-2007, hence any possibility of typos being the cause of the problem can safely be discarded.
    b) I can test the ODBC driver in the Control Panel and it shows that it can connect to the Oracle database:
    - in <strong><em>Control Panel --&gt; Admin Tools --&gt; Data Sources (ODBC)</em></strong> on the "User DSN" tab I can see the list of the available ODBC data sources (same list as in Excel-2007, point 3b above) with the name of my database in it;
    - selecting the name of my database from the list of the sources and clicking "Configure" button opens a tab with <strong><em>Data Source Name</em></strong> (same as in Excel-2007), TNS Service Name and User ID. I enter <strong><em>&lt;user name&gt;/&lt;password&gt;</em></strong> and click "Test Connection" button. A message "<strong><em>Connection successful</em></strong>" appears (just for a test I enter <u>incorrect user credentials</u> and "<strong><em>Unable to connect</em></strong>" message appears)
    BOTTOM LINE
    </p>
    <p>
    The procedure for using an ODBC connection from Excel is very simple, in the past I have created and used such connections numerous times with Excel-2003 and earlier on Win-XP and earlier. But now on Excel-2007 and Vista-x64 I cannot make it work.
    Also, testing an ODBC connection driver is really easy and simple to be done in the Control Panel. There testing the same ODBC connection, which fails in Excel-2007, results in success.
    I am frustrated by the simplicity of the problem and yet the persistant error. I have lost now two full days in failed attempts to make the simple procedure work and in searching the internet for answers.
    All help is highly appreciated <img class="emoticon" src="images/emoticons/happy.gif" border="0" alt="" width="16" height="16" />,
    Plamen
    </p>

    Did you find the solution to your problem?
    If not, I think I may know.
    Excel 2007 is a 32-bit application.
    When installing 32-bit applications in a 64-bit environment, the "default" location is:
    C:\Program files (x86)\...
    Excel then launches from this location.
    However, when it connects to Oracle and passes the name of the calling program, Oracle attempts to "interpret" the value of (x86) as if
    the value within the parenthesis are being passed as a reference. Of course, iOracle doesn't find anything, so the result is (),
    and then it cannot return the connection info back to the calling application.
    I corrected it by installing Excel in C:\Program Files\, and once launched from that location, it works the same as on the 32-bit machines.
    However, at my location, they are FORCING Excel to be installed in the(x86) location.
    What I'm trying to discover now is:
    Is it possible to flag Oracle to NOT process the embedded variables?
    Or, is it possible to assign a variable in Oracle such that x86 = "(x86)", so that the end result is viable?
    Have you had any luck with your installation?
    thanks,
    Paul

  • Cannot connect to Oracle 11gR2 database from SQL Server 2005

    Both SQL Server (Windows) and Oracle (Linux) are in 64bit environments.
    I have done the following on a Windows 2008 R2 with SQL Server 2005:
    Install InstantClient from Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) to C:\Oracle
    Install oledb from 64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64 by executing install.bat oledb c:\oracle odac
    Note: Not sure whether 11.2.0.2.1 version of ODAC will cause any problem since I cannot find 11.2.0.1.0 version.
    I have checked the Allow inprocess of OraOLEDB.Oracle provider in SSMS.
    I have executed sp_addlinkedserver @server = 'ORACLE_TEST', @srvproduct = 'Oracle', @provider = 'OraOLEDB.Oracle', @datasrc = '##.##.##.##:1521/TEST'
    The ##.##.##.## is the ip address of the Linux server which has the Oracle 11gR2 database TEST.
    I have executed sp_addlinkedsrvlogin @rmtsrvname = 'ORACLE_TEST', @useself = 'FALSE', @rmtuser = 'xxxx', @rmtpassword = 'yyyy'
    The xxxx is the oracle username and yyyy is the password for the oracle user xxxx.
    I know the oracle database TEST is up since I have setup connection in Oracle SQL Developer having:
    ##.##.##.## as the hostname
    1521 as the Port
    xxxx as the username
    yyyy as the password
    TEST as the service name
    When I click Test Connection for the linked server ORACLE_TEST in SSMS, it just hang.
    When I issue a query like select count(*) from oracle_test..xxxx.table1, it just run forever. I'm not so sure how to query an oracle table. I have also tried select count(*) from oracle_test.xxxx.xxxx.table1.
    When I retype the password in the Linked Server Properties, it just run forever.
    Do I need to create a tnsnames.ora on the Windows machine?
    Do I need to change the tnsnames.ora on Linux machine?
    I'm very new to Oracle.

    This forum is dealing with connections from an Oracle database to SQL Server - so the Oracle database is the driving site and this is the way round from your linked server set up.
    As you're suing the instant client you might post your issue in the instant client forum:
    Instant Client

  • Cannot connect to Oracle 11g XE through SQLPlus

    Have been trying to resolve this all day. I have Oracle 11g XE installed on my local desktop (Windows 7 64 bit)for which I have been using for over a year for development. The recent "Sandy" storm killed the power at our office for a week. Upon returning to the office, I can not seem to connect to the Oracle on my desktop from my desktop. The only thing that supposedly have changed was the router re-assigned IP addresses. However, I have modified my tnsnames to reflect the proper IP address. Still I get the below error trying to connect through SQL*Plus (without specifying the service):
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm
    Process ID: 0
    Session ID: 0 Serial number: 0
    When I try to specify the service name "...system/password@xe", it gives me the following error:
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Nov 8 19:54:17 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Here's the results from ipconfig
    IPv4 Address. . . . . . . . . . . : 192.168.80.194
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.80.1
    Here's my tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.80.194)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
         (SID = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.80.194)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    sqlnet.ora
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
    lsnrctl service output
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 08-NOV-2012 19:48
    :55
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully
    lsnrctl status output
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 08-NOV-2012 19:56
    :48
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date 08-NOV-2012 19:56:41
    Uptime 0 days 0 hr. 0 min. 11 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\EWANG-W7\listener\
    alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.194)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Both the "OracleServiceXE" and "OracleXETNSListener" has been started.
    Would really appreciate it if someone can help me resolve this. Thanks!

    Found the log. Below is the latest:
    Dump file c:\oraclexe\app\oracle\product\11.2.0\server\rdbms\trace\xe_ora_25252.trc
    Fri Nov 09 10:12:25 2012
    ORACLE V11.2.0.2.0 - Production vsnsta=0
    vsnsql=16 vsnxtr=3
    *** 2012-11-09 10:12:25.530
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Windows NT Version V6.1 Service Pack 1
    CPU : 4 - type 586, 4 Physical Cores
    Process Affinity : 0x0x00000000
    Memory (Avail/Total): Ph:11433M/16359M, Ph+PgF:20698M/32717M, VA:3843M/4095M
    Instance name: xe
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 0
    Windows thread id: 25252, image: ORACLE.EXE (SHAD)
    *** 2012-11-09 10:12:25.542
    2012-11-09 10:12:25.530: [ default]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\olr cannot be opened. error 2
    2012-11-09 10:12:25.544: [ default]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\ocr cannot be opened. error 2

  • Cannot connect to Oracle XE - install on Mandrake 2005

    Hi!
    Downloaded Oracle XE and attepmted an install on my home computer running Mandrake 2005. At first it complained about missing libaio so I downloaded and installed latest Fedora rpm. Without problems. Then it happily installed, although at one moment it complained the machine does not meet minimum requirements (only 217Mb memory, hmm why I thought I have 256?). It installed otherwise fine. I run configuration scripts - default ports, system password, start at boot - yes. So far so good.
    It created a shortcut for "Getting Started" page on my desktop, but would not make any menu items. OK, after all its not a supported distro. So I pointed Firefox at http://127.0.0.1:8080/apex and got connection refused.
    Checked. Process oracle-xe is running. I can start and stop it. Listener is up and listening. There is no firewall whatsoever - we're sitting on a dialup here. Tried to connect as root, no candy. Ahh, yes, I should mention that even if memory is lacking there is about 800 megs of swap and ample diskspace too, so other hardware req's should be OK. So everything is almost like it should. Except that I cannot connect. So can you tell me what else to check and what to try?
    Wahur, database newb

    Oracle XE has it's own forum - to register and discuss XE problems with XE experts use URL http://www.oracle.com/technology/xe/registration
    Once you have registered, you can sign in to the forums and voila - the link to the XE forum is there. But you do have to sign in.

  • Cannot connect to oracle after upgrade to 9i

    Hey there,
    kind of new in the arena so be kind and patient with me please.
    Enviroment : sun
    oracle : 8.0.5 now been upgraded to 9i with 8.0.5 clients installed on the machine
    symptoms : since upgrading the Oracle to 9i we cannot connect to the 9i with jdbc
    Question : Do we need to upgrade the client in our machines to 9i clients? is there any specific Driver Manager that I should use currently using Thin client thruogh port 1521?
    HELP!!!!

    First of all, there is not enough specifics in your
    post, the problem could be anywhere - you should
    provide at least an error message, an exception call
    stack or something like this.
    It could be a problem with the jar files provided by
    oracle, which are in you client's class path. It used
    to be called classesXXX.zip in oracle 8i, whatever the
    name in oracle 9 is I do not know. But just make sure
    that you have the exact oracle jar files in the class
    path as the ones shipped with your oracle version.
    Usually these files are found in
    $ORACLE_HOME/jdbc/lib
    I'll try to be more specific:
    I use an 8.0.5 client and I'm trying to connect to a 9i .I didn't upgrade the client yet.While trying to connect via a connection pool that i built.I get an exception saying exceeding key size in method getConnection.
    java.sql.SQLException: Exceding key size
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:420)
    at oracle.jdbc.ttc7.O3log.<init>(O3log.java:255)
    at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:166)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    My qustions are :
    Is it because I didn't upgrade the client?(Though it only seems logical that the 9i would support it)
    If it isn't because of the client what is it?

  • 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.

Maybe you are looking for

  • Using one azure table storage account for many customers with their own data

    I'm developing app that will allow the customers to store their data in azure. However, currently I have no idea how to split  accounts of the customers in azure. Yes, I'm just started to read the documentation, but maybe someone can point me to the

  • How do I create a ".mailloc" file from an email address?

    Before Snow Leopard I simply would drag an email to a project folder and it would create a ".mailloc" file. Later if I was referencing a contact or needed an email I could simply double click it and it would open a new email to that address. When I u

  • Constantly Needing to re-add my computer to itunes match?

    Recently, my main computer seems to be disconnecting from the itunes match service every time I close itunes and re open it.  the cloud icon gets the lightningbolt on it.  this is the computer connected to my library, which is on a network drive - al

  • Can't get rid of Flash CS3 Trial !

    I did a search first, no real solutions in prior posts that I could see. Searched the rest of Adobe too.. no solutions found that apply. In January I downloaded and installed the Flash CS3 Trial. I'm not going to buy it, so now that the trial has exp

  • # of Apps for BB10

    Just curious. How many apps have been written and are available for BlackBerry 10 as of today? Is there a running total somewhere? I'm curious to see how developers are or are not getting on board with the new device. Any ideas?