How can I connect to Oracle database from Iplanet webserver running on a Linux box and a database running on a Solaris box?

Hi - I'm new to this group and wonders whether you guys can help me.
I'm trying to connect to my Oracle9i database via a Java servlet but
got the following error message in the web browser:
Internal error: exception thrown from the servlet service function
(uri=/servlet/HelloWWW6): java.lang.NullPointerException, Stack:
java.lang.NullPointerException
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1743)
at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:69)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:452)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:287)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance
(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:172)
at HelloWWW6.doGet(HelloWWW6.java:40)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService
(NSServletRunner.java:897)
at com.iplanet.server.http.servlet.NSServletRunner.Service
(NSServletRunner.java:464)
My class path is:
Java VM
classpath: /u01/iplanet/servers/plugins/servlets/examples/legacy/beans
.10/SDKBeans10.jar:/usr/local/javamail-1.2/mail.jar:/usr/local/jaf-
1.0.1/activation.jar:/u02/app/oracle/product/9i/lib:/u02/app/oracle/pr
oduct/9i/jdbc/lib:/u02/app/oracle/product/9i/jdbc/lib/classes12.zip:/u
02/app/oracle/product/9i/jdbc/lib/nls_charset12.zip:/u01/iplanet/serve
rs/bin/https/jar/NSServletLayer.jar:/u01/iplanet/servers/bin/https/jar
/NSJavaUtil.jar:/u01/iplanet/servers/bin/https/jar/NSJavaMiscUtil.jar:
/u01/iplanet/servers/bin/https/jar/servlet.jar:/u01/iplanet/servers/bi
n/https/jar/servlet-2.3-filters-
api.jar:/u01/iplanet/servers/bin/https/jar/jsp092.jar:/u01/iplanet/ser
vers/bin/https/jar/jaxp.jar:/u01/iplanet/servers/bin/https/jar/crimson
.jar:/u01/iplanet/servers/bin/https/jar/xalan.jar:/u01/iplanet/servers
/bin/https/jar/jspengine.jar:
My LD_LIBRARY_PATH is:
/u02/app/oracle/product/9i/lib:/u02/app/oracle/product/9i/jdbc/lib:/u0
2/app/oracle/product/9i/jdbc/lib/classes12.zip:/u02/app/oracle/product
/9i/jdbc/lib/nls_charset12.zip
Can anyone help? This is currently driving me nuts. I was able to
connect when I changed it to an application.
I am using the Iplanet Webserver 6.0 on a Linux 7.2 platform. Like I
said, sqlplus works fine, standard java application works fine but
when I change it to a servlet (which means it now goes through the
webserver, I get this error message)
Does anyone know what the source code is trying to do at
OCIDBAccess.java:1743 ?
Thanks guys!

Tony, could you please explain me better the procedure that you wrote?
What are the boxes? My situation is similar:
| ServerSocket (1) |
| (192.168.1.100, 5555) |
|
|
|
|
| Proxy |
| Someone wants to connect to the ServerSocket (1) |
That is not true. You CAN do it but you need a box
outside the firewall with proper IP address to help
you. I am not sure if Sergio still wants the answer
today after more than a year from the original post (I
did not see the post until today when I try to search
for something else). Anyway, if such a box is
available (I call it 2nd box), you could first
establish a socket between the two boxes by HTTP
tunneling (I assume it is a http proxy). You have to
initiate the socket from the 1st box. Then start
another server socket on the 2nd box, forwarding the
traffic it gets from outside back to the 1st box using
the established channel. That is it.
Tony

Similar Messages

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • How can i connect my bookmarks links from Firefox, to favorites (location) start button then favorites?

    ''dupe of https://support.mozilla.org/en-US/questions/915455''
    How can i connect my bookmarks links from Firefox, to favorites (location) start button then favorites?

    *Plain old favorites: https://addons.mozilla.org/firefox/addon/plainoldfavorites/

  • How can i connect my iphone to a new itunes library without losing my contacts and photos ?

    how can i connect my iphone to a new itunes library without losing my contacts and photos ?

    Is the new iTunes library on a different computer, or the same computer?
    Are you concerned about photos that you have taken with the iPhone in the Camera Roll, or photos you have synced to the iPhone from your computer?
    Contacts should be configured to sync with an app on your computer. You set this up in iTunes on the Info tab with the iPhone connected. You will not lose any contacts if the app on your computer has at least one contact.

  • How can I extract a still picture from footage in iMovie, add text to it and print it ?

    How can I extract a still picture from footage in imovie, add text to it and print it ?

    Assuming you have iMovie 11 (also known as Version 9.0.4), here is how you do it. (If you have a different version, let me know. The instructions will be different).
    First, get an app called MPEG Streamclip, which is free. (google MPEG Streamclip from Squared 5)
    Open MPEG Streamclip.
    In iMovie, select the clip you need. Then, right-click/Reveal in Finder.
    Drag this clip into MPEG Streamclip
    In MPEG Streamclip, move the playhead to the frame you want.
    In MPEG Streamclip, click FILE/EXPORT FRAME.
    Choose JPEG, TIFF, or PNG and give it a name.
    You can then use this photo in Photoshop, Pixelmator, Acorn, or the app of your choice to add text.
    Here is a demo I made the other day for how to extract the still image using MPEG Streamclip.

  • How can I connect to my database ORACLE from JavafX?

    Hi! ¿Anybody have a example to learn how could connect my ORACLE database from my javafx application?

    Just use JDBC like you do in a regular Java program.
    Either you translate the code to JavaFX (creating Java objects, etc.) or you do a Java layer to simplify access.

  • How can I connect to Oracle and SQL server at the same time?

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]

    I have been trying to find a way to connect to Oracle Database through the developer 2000 and SQL server at the same time. I need to return some data from Oracle Database and some from the Sql Server Database. And update both through SQL. I find there is such a thing as the Oracle Transparent Gateway for SQL server. I can't find it on any of my CD's or through OTN downloadable files. If anyone can point me where to get this. Or tell of another way this can be accomplished I would appreciate it. TIA.
    [email protected]
    As far as I know you have 3 options depending on your specifications. I don't think option #3 will work if you need to actually join a
    SQL Server table to an Oracle table.
    1. Oracle Transparent Gateway. I haven't used the Oracle Transparent Gateway but my understanding is that Oracle gateways are
    separate purchased products from Oracle. I've never seen any free/development versions of it anywhere. You'll need to contact
    your Oracle sales rep about it.
    2. Heterogeneous Connectivity. There's something called Heterogeneous Connectivity that could work for you - depends on what
    version of Oracle you're on and what OS. You basically set up an ODBC data source on the Oracle server and modify the listener.ora
    and tnsnames.ora files. You can then create a database link to SQL Server just like you would to any other Oracle database. You can
    check your Oracle documentation for how this works. There's also some very good documents on Metalink that tell you how to do this
    as well as a Heterogeneous Connectivity forum on this site.
    3. Use the exec_sql package available in Developer 2000. This allows you to open and execute cursors to remote databases within
    Developer. We have an account validation process that uses this - when a person enters an account number in a form while logged
    into Oracle it validates the account is valid in our main accounting DB2 database. We also pull HR information from DB2 into Oracle
    this way. If you're using Forms 6i exec_sql is a built-in command, in Forms 5.0 and 5.5 you have to add it as an attached library to
    the form. I think you also need the OCA options installed from the Developer software to have access to the library in Forms 5.0 and
    5.5. The library will be in the $ORACLE_HOME\oca20\plsqllib directory for these versions. The Developer documentation should have
    additional information.
    HTH

  • How can I connect to the database using the Oracle Remote Diagnostic Agent?

    Now I try to study RDA on Windows XP platform,when I run 'rda.cmd',there is a question 'Enter password for 'SYSTEM@'',what is the answer?
    Because I didn't know how to connect to database,there are many error messages - RDA-00510: SQL execution disabled,What can I do?

    Metalink Note:314422.1 to start
    It is asking you to tell how to connect to 'the database that you are investigating' over a network. The answer .... the password for the userid called 'system' in the database specified after the @
    I am confused ... you do not know how to connect to your database?

  • How can i connect to a Database Server (live data)?

    hi,
    i'm trying to figure out how i can create a dashboard that's connected to live data coming from a Database server.  i have the username and password and the DB name, but can't find a direct way from within SAP dashboard design where i can make the connection.
    MUST i go through XML?
    i know other tools like Tableu that allow direct connections to the server.
    is this possible?

    Hi Sam
    Please refer to the tutorial http://scn.sap.com/docs/DOC-7946 and under "Connecting to Data Sources" section you will get the step by step guidance of various data connectivity options..
    Basically the options available under Data > Connections > Add and Query Browser in Dashboards 4 are your options.
    If you want to write direct SQL to get data you have to use add-ons InfoBurst like InfoBurst infosol.com/solutions/infoburst/
    Runali

  • How can I connect to Oracle 10G over ipv6?

    Redhat4.4+oracle 10.2
    I have a ipv6 address 2001:250:3000:1::1:1,
    and defined in /etc/hosts
    2001:250:3000:1::1:1 host-ipv6
    when I connect to database using ipv6 address or ipv6 network-name,I get the messge :
    ERROR:
    ORA-12154: TNS:could not resolve service name.
    How can I do ? Please!

    Short answer: Not till 11g.
    Long answer: See MetaLink Doc ID 362956.1.
    -Mark

  • How can we clone the Oracle database in new Oracle Home

    Hi,
    I would like to clone oracle database into new oracle home. How can we set it using OEM.
    I am using 10g grid control. Target db is on solaris
    Thanks
    Naveen

    after logging into target database, under maintenance tab, data movement header; ther is "clone database" option. When you click on it; you'll see :
    Clone Database uses RMAN to duplicate a database from:
    -- An open database in ARCHIVELOG mode, or
    -- An open database in NOARCHIVELOG mode (restart required), or
    -- A saved working directory from previous cloning
    Clone Database performs the following operations:
    -- Backup each database file and store it in a working directory
    -- Transfer each backup file from source to destination host
    -- Restore each backup file to existing destination Oracle Home
    -- Recover the cloned database with saved archived log files
    -- Open the cloned database with resetlogs
    It seems to be for cloning to a different host, but i guess you can chose the same host for source and destination. (I've never used cloning on em by the way :))
    But firstly, you should create a new oracle home, you can simply copy your oracle home with a new name (cp -R /oracle/app/oracle/product/10.2.0 /oracle/app/oracle/product/10.2.0.new) or make a new installation.
    I suggest you to do this cloning with CLI. You should take a full backup with RMAN, copy the oracle home, create a new initNEWSID.ora file and nomount the database, restore (or simply copy) controlfiles, restore database (with set newname commands), recover database, open resetlogs.

  • How can I connect to a database using Java Web Start?

    When I run the application without Java Web Start, the program can get the driver and connect to the database. However, when I try to use this same application with Java Web Start, the program can not load the driver. Why is this happening? I am using a mySql database driver.

    I assume you are trying to connect using JDBC, are did you include the jdbc jar in your resources ?

  • How can I connect to WinCC database (best by use of OLE DB provider)?

    Post Author: MarkusR
    CA Forum: Data Connectivity and SQL
    Hello,
    if I connect to the WinCC database by using the WinCC OLE DB provider I do not get the tables I expect.
    E.g. I would like to see the AlgViewEnu or other tables/views of AlarmLogging or TagLogging.
    Who can help?

    Hi
    I have not used asp.net with CS4, due to it using an old version of the framework, so unfortunately I cannot really help in solving the problem. But I can remember having a similar problem with DW8, a tutorial for connecting to the database in DW8 is - http://www.webdesign.org/html-and-css/tutorials/asp-net-in-dreamweaver-8.7367.html. I also seem to remember that the connection required the old, (very old) Jet4 access database connector to be installed to work correctly.
    These problems, and the fact that MS keeps updating the framework every year or so, (which are often not backwardly compatible) are why I use Visual Studio for .net C# sites, and no longer actively develop them, but I must admit I still prefer C# to PHP.
    PZ

  • How can I connect my svideo output from my camcorder to my Macbook pro retina?

    How cn I connect the s video output from my camcorder to my 13" macbook pro retina?

    Buy a video to USB converter.
    Buy a more expensive video to Firewire converter (it may give better quality).
    Find an older mini DV camera with 'video in' to make transfers to tape to capture from.

Maybe you are looking for

  • RICS0001:Internal Error,unable to process the collected data from the device.

    Hi all, I've got the following error in Inventory Collection: 'RICS0001:Internal Error,unable to process the collected data from the device.' System is CW LMS 2.6 If I search the web I get the following Cisco document: http://www.cisco.com/en/US/prod

  • Sim Not Provisioned after doing iOS6 update

    I recently restored my iPhone 3GS to factory settings and updated my phone to iOS6. All my data/apps/etc came over just fine after syncing but now my phone shows No Service and 'SIM Not Provisioned' when I went into Settings > General > About > Netwo

  • Schema validation not enforcing full datetime or timezone formats

    We have a schema definition which requires that all date elements are in the format YYYY-MM-DDTHH:MM:SSZ (eg 2010-06-05T05:26:59Z), so to register this in Oracle we have added xdb:SQLType="TIMESTAMP WITH TIME ZONE" against the date elements. However

  • 2 Xraids 1 Fiber Card

    Hi, I wonder if you can help, I have currently 2 Servers hosting 2 seperate Xraid systems. However im about to lose the one server. I am upgrading the one Xraid Lun with new Drives and i need to copy the data back on to the new LUN on the upgraded Ra

  • Loading big files (more than 30MBs)  as byte arrays

    Hello everybody, I have an application in which I need to load files as byte arrays, but when I load a file with a size of 30MBs (aprox) or more I get this exception: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space The code I'm