Trying to connect to Oracle using Web App

Hi Guys, I'm hoping someone here can help. This question goes out to anyone who has tried to connect to an Oracle database via web application written using Java Server Pages and Servlets. There is a specific file called the context.xml that contains the connection parameters to Oracle. Please note thread of conversation derived from a Java forum I've posted to earlier.
The bottom line is that "orcl" is the SID value for the Oracle database. The connection pool apparently isn't able to create connection objects based on the SID value given. When I attempt to run the test.jsp page in the browser I get the error message noted below. I still don't know how to fix this and simply must get it working.
Any advise is welcome.
Alan
I'm putting together a test page test.jsp in Tomcat that attempts to access my Oracle database running on the same machine. The point here is just to make sure I have the connection parameters correctly set before proceeding too far into the web application.
In my context.xml file I have the following:
<Resource name="jdbc/myoracle" auth="Container"
              type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
              url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
              username="BASIC_USER" password="tiger" maxActive="6" maxIdle="3"
              maxWait="10000"/> In my web.xml file I have the following:
<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>My test.jsp page simply attempts to open a connection with the database and to display data from one table.
When I go into the browser to open the page I get the following SQLExceptioin error:
SQL Problem: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor )
SQL State: null
Vendor Error: 0
It refers to the SID value in the descriptor. Well...you can see from the descriptor that I've written "orcl". That is the SID. url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
At this point I'm spinning my wheels. I don't know what else to do to make this work.
Please advise.
Alan
[Dukes Earned 111] Karanjit
Posts:459
Registered: 2/28/08
Re: Tying test jsp page in Tomcat
Jul 23, 2009 12:31 AM (reply 1 of 2) (In reply to original post )
Click to email this message
Oracle docs say:
ORA-12505:TNS:listener does not currently know of SID given in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a SID for an instance (usually a database instance) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
Action:
- Wait a moment and try to connect a second time.
- Check which instances are currently known by the listener by executing: lsnrctl services <listener name>
- Check that the SID parameter in the connect descriptor specifies an instance known by the listener.
- Check for an event in the listener.log file.
[Dukes Earned 0] ashiers
Posts:126
Registered: 12/26/01
Re: Tying test jsp page in Tomcat
Jul 23, 2009 7:40 AM (reply 2 of 2) (In reply to #1 )
Click to email this message Click to edit this message...
Thanks for the description for the Error message 12505. It doesn't help much. This I did find out by running this command: LSNRCTL SERVICES LISTENER
C:\>LSNRCTL SERVICES LISTENER
LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 23-JUL-2009 11:12
:00
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:545 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:64 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: DOHWS1911, pid: 804>
(ADDRESS=(PROTOCOL=tcp)(HOST=DOHWS1911)(PORT=1101))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:545 refused:0 state:ready
LOCAL SERVER
The command completed successfully
So, according to this orcl is the correct SID parameter. Please advise further.
Alan

sb92075 wrote:
Listener Log File c:\oracle11g\diag\tnslsnr\DOHWS1911\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DOHWS1911)(PORT=1521)))
Please note HOST=DOHWS1911.
Does DOHWS1911 map to 127.0.0.1?
post results from following command
tnsping orcl
Please post last 2 - 3 dozen lines from c:\oracle11g\diag\tnslsnr\DOHWS1911\listener\alert\log.xml
take very soon after the error is reported
Yes DOHWS1911 is the host name given to my computer and probably is mapped to 127.0.0.1.
When I ran tnspring orcl I get:
C:\>tnspring orcl
'tnspring' is not recognized as an internal or external command,
operable program or batch file.
Following is the tail end of the log.xml file after attempting to connect:
<msg time='2009-07-23T16:41:02.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:02 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:41:20.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:20 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:41:53.031-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:41:53 * service_update * orcl * 0
</txt>
</msg>
<msg time='2009-07-23T16:42:01.562-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:42:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=services)(ARGUMENTS=64)(SERVICE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DOHWS1911)(PORT=1521))))(VERSION=185599488)) * services * 0
</txt>
</msg>
<msg time='2009-07-23T16:42:02.546-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:42:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=SYSTEM))(COMMAND=status)(ARGUMENTS=64)(SERVICE=(ADDRESS=(PROTOCOL=TCP)(HOST=DOHWS1911)(PORT=1521)))(VERSION=185599488)) * status * 0
</txt>
</msg>
<msg time='2009-07-23T16:43:30.984-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>23-JUL-2009 16:43:30 * (CONNECT_DATA=(SID=mysid)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=SHIERSAJ))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1594)) * establish * mysid * 12505
</txt>
</msg>
<msg time='2009-07-23T16:43:31.000-03:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='DOHWS1911'
host_addr='10.1.186.192'>
<txt>TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
</txt>
</msg>GOD! It doesn't get any more Greek than this!
What does it all mean? HELP!
Alan

Similar Messages

  • Exception thrown while trying to connect to Primavera using Web service.

    Dear all,
         We are trying to connect primavera from a .net application using Web service.It is working fine with P6 V7, but while trying to connect to V.8 there is an exception thrown by SoapHeaderException.
    The Contents in the Exception is like this
    System.Web.Services.Protocols.SoapHeaderException: This class does not support SAAJ 1.1
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Primavera.AuthenticationService.AuthenticationService.Login(Login Login1) in E:\Manesh\Code\PROTOTYPES\PrimaveraAuthentrication\SampleDemo\Web References\AuthenticationService\Reference.cs:line 100
       at Primavera.Form1.TestConnection(String& sErr) in E:\Manesh\Code\PROTOTYPES\PrimaveraAuthentrication\SampleDemo\Form1.cs:line 66
    Here i am specifying the C# code which makes the above exception
    public int TestConnection(ref string sErr)
                try
                    AuthenticationService.AuthenticationService authService = new AuthenticationService.AuthenticationService();               
                    try
                        authService.Url = Url;
                        authService.CookieContainer = new CookieContainer();
                        AuthenticationService.Login lg = new AuthenticationService.Login();
                        lg.UserName = LoginName;
                        lg.Password = Password;
                        lg.DatabaseInstanceId = 1;
                        lg.DatabaseInstanceIdSpecified = true;
                       AuthenticationService.LoginResponse lp = authService.Login(lg);   //This line which makes the exception
                        cookieContainer = authService.CookieContainer;                  
                    finally
                        if (authService != null)
                            authService.Dispose();                  
                    return 1;               
                catch (Exception eX)
                    return -1;
    We are looking forward for a solution
    Thanks in Advance.
    Regards
    Jinosh

    http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#_59_
    The thin drivers are classes12.zip/classes111.zip. classes12.zip being the most recent release. You can download it from
    http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/winsoft.html
    (the general download site is http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html )
    Jamie

  • Newbie trying to connect to Oracle using ojdbc14

    Hey Programming Pals;
    I am trying to connect to a remote oracle data base.
    I have installed oracle client (allowing me to be able to connect with PL/SQL developer).
    Now I need to connect with JDBC.
    I down loaded ojdbc14 and put it in my tomcat bin directory.
    I than made an entry in path and in classpath to this jar file.
    Here is the code I am using to try and connect with:
    try
    {                                                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    catch (ClassNotFoundException c)
    System.out.println("Could not load the ODBC driver:" + c);
    Here is the error I am getting:
    An error occurred at line: 38 in the jsp file: /jsp/form.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    D:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\jhtp5\jsp\form_jsp.java:85: package ojdbc14.oracle.jdbc.driver does not exist
                                            DriverManager.registerDriver(new ojdbc14.oracle.jdbc.driver.OracleDriver());
    I browsed through the jar and verified this path exists. Why can't the jvm find it?
    Here are my system variables:
    CLASSPATH:
    .;D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar
    PATH:
    D:\Program Files\Apache Group\Tomcat 4.1\bin\ojdbc14.jar;D:\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
    Any help would be appreciated.
    Luke

    Tomcat doesn't use the System classpath.
    Put the ojdbc14.jar file in the web-inf/lib directory of your web application, restart Tomcat, and try again.
    Cheers,
    evnafets

  • Connecting to Oracle using JDBC

    Hi all,
    I am a new to Oracle. I am trying to connect to Oracle using JDBC
    The URL with which I tried to connect was:
    jdbc:oracle:oci8:@myServiceName,user='myLogin',password='myPassword'
    I get an error (ORA-12154)
    - TNS could not resolve service name
    When I use the same userid, password and service and connect thru' SQL*Plus it goes thru'. Is there any parameter which I am missing. Can anyone throw some light on this. I am held up with this issue badly.
    Thanks for all your help and time.
    Regards,
    Latha

    Hi Latha,
    Please try to use thin and add port number.
    m_conn = DriverManager.getConnection("jdbc:oracle:thin:@" + hostURL + ":" + port + ":" + database, user, password);
    Hong
    null

  • Crystal Report 9 crashes while trying to connect to Oracle

    Post Author: sminabe
    CA Forum: General
    Hi,I'm having trouble with Crystal Report 9 and wondering if someone could give me a clue.When I try to connect to Oracle using "Refresh" button, Crystal Report 9 crashes everytime.And, the following error appears in the Application Event Log.Faulting application crw32.exe, version 9.2.3.1699, faulting module crqe.dll, version 9.2.1.1839, fault address 0x00009007.Environment:Crystal Report Version: Crystal Report 9 SP7OS: Windows 2003 Server SP1CPU: Intel Xeon CPUOther Major Applications: Oracle 9i, Citrix Presentation Server 4.0Other Facts:- This happens to every Crystal Report files on the machine.- The same Crystal Report files work fine on other machine with exactly the same environment ex) OS ver/CR ver/Installed app...- I could never connect ot Oracle successfully on this machine - it's not like it used to work before.Things that I have tried:- I have tried reinstallation of CR9 without uninstalling but it didn't work.- I have uninstalled CR9 and installed it again and then restarted the machine but it didn't work.- I originally tried without any SP installed and applied SP7 afterwards but the results were the same.- I tried turning on and off the DEP (Data Execution Protection) for CR9. But the results were the same.Can someone give me an advice what I should try from here, please?Let me know if you want more info.Many thanks,Seiji

    Also, see this ARTICLE from the Tips & Tricks sub-forum, for things to look at with crashes and hangs. It covers the hardware, the OS and the software, and offers links for tuning up the system, and getting it ready for video editing. I know that there is a lot of material in there, but Neale has done a great job of putting things into a checklist, and offering links to other material.
    That rec. is for use along with John T's links, which are a bit more specific to your burned DVD's.
    Good luck,
    Hunt

  • User permission issue in connecting to Oracle using java in Cent OS

    Hi ,
    I am facing a peculiar issue and since I am new to Cent OS, I hope somebody can help me.
    I am using Cent OS 4.2 and I installed Oracle client 10.2 in cent os 4.2.
    I am having a java application which connects to Oracle server in another Linux system using Oracle OCI driver which comes along with Oracle client
    I have a user called user1 which belongs to group group1 as primary group and my application runs under this user user1.
    This user is a member of oinstall group (which is the group for oracle uesr which has access to oracle client directories/files)
    But when my application tries to connect to Oracle server, I am getting connectivity error saying "Oracle driver not found" or "cannot load libocijdbc10.so". All environment variables like ORACLE_HOME, PATH,CLASSPATH, LD_LIBRARY_PATH are set properly.
    The permissions to Oracle folder/files are rwx for owner(oracle user) , rx for group(oinstall) and none for others
    What we observed are
    1. When the application is start under root user, it works
    2. When we give rx permission to others, it works
    3. When we make oinstall group as the primary group for my user user1, it works
    My questions here
    1. Why it is not working even though my user user1 is a member of oinstall group
    2. Why it is working when I make oinstall as the primary group
    3. Is there any difference in security policy of RHEL and Cent OS
    4. How can I access libraries from multiple folders which created by different user and belongs to different groups, if this is the case
    I never faced this issue in RHEL4
    Hope some body can help me.
    Regards
    Sunil

    Sorry, I should have been more specific. The error message I was referring to shows up in a pop-up windows when I try to run the program. The actual java error message (that shows up in the command prompt window) is as follows:
    "Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WINNT\system32\ocijdbc8.dll: The specified procedure could not be found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:832)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:192)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:142)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:214)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at lookup.main(lookup.java:16)"
    I'm running the program through Windows 200 Pro command prompt, and the version of java is, as I mentioned in the previous message, 1.4.1:
    java -version
    java version "1.4.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
    Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)

  • Connect to Oracle using DAC Client in command line

    Hi,
    I'm trying to connect to Oracle DB using DAC client. I have configured a connection and tested, it works. When I use the connection to connect to the DB, its giving me an error
    "unknown error, please start in command line mode and see the stack error"
    How do I start in command line mode? Could anyone provide more information on this.
    Thanks in advance,
    RK

    In oracle db, you can create 3 different types of users:
    (1) create user x identified by pwd.
    In this case the user x will connect to the db using username/password, in this example x/pwd
    (2)create user ex identified externally;
    In this case the user ex will connect to the db using "/" and the sqlnet.authentication_services parameter value in the client and server sqlnet.ora will be used in determining the oracle external authentication adapter to use. For oracle windows client/db server, this is by default set to NTS. NTS is the oracle windows authentication adapter.
    (3)create user gx identified globally as 'CN=gx,O=Oracle';
    In this case also the user gx will connect to the db using "/" and oracle ssl will be used to authenticate this user to the db.
    It would not be possible to "Create user x identified externally" and connect with x/pwd.
    Please clarify.
    To help you in isolating the problem, I will need the following info:
    (1)
    what are you connecting as to execute your plsql. Are you using sqlplus ? How are you connecting (connect "/ as sysdba", connect "/", connect x/pwd) ?
    (2)
    what create user statement did you use to create the user
    (3)
    is odp.net and the db server on the same machine.
    (4)
    did you run your plsql from the same machine as the db server.
    (5)
    if odp.net is on a different machine than db server, did you try connecting from odp.net machine to db server, using sqlplus ?

  • Trying to connect to oracle 8i

    trying to connect to oracle 8i.i have the oracle driver dnlded from oracle website.when i try to make a new connection i get the following error during runtime:
    java.lang.UnsatisfiedLinkError: G:\Oracle\Ora81\BIN\ocijdbc8.dll: One of the library files needed to run this application cannot be found
    at ....
    the file ocijdbc8.dll is in the specified directory.
    plz help.

    Hi,
    how do you want to connect to the Oracle DB?
    Using a JDBC-driver?
    I haven't tried it on 8i, but
    maybe this code will help you to connect to a oracle DB vie JDBC.
    You need the driver (normally its a zip-file, that you must include
    in your classpath)
    this look like this when compiling:
    javac -classpath ".;..;./jdbc80520-nt/classes111.zip" Test.java
    When starting the programm the file should be also included in the classpath.
    Here a little example-programm:
    import java.sql.*;
    import java.util.*;
    class Test {
      // Here insert your server, the port and the dsn-name
      String dsnName = "jdbc:oracle:thin:@<Server>:<Port>:<DSN-Name>";
      // Here insert your username
      String userName = "<username>";
      // Here insert your password
      String password = "<password>";
      Connection jdbc = null;
      public Test() {
        try {
          // Open Connection
          DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
          connection =
             java.sql.DriverManager.getConnection(conURL, userName, password);
          System.out.println("Opened connection");
          // Do something
          // closing connection
          connection.close();
          System.out.println("Connection terminated");
        } catch (Exception exc) {
          exc.printStackTrace();
          try {
            connection.close();
            System.out.println("Connection terminated with Exception");
          } catch (SQLException exc) {}
      public static void main(String[] args) {
        Test t = new Test();
    }Maybe it helps you.
    Ciao Nies

  • Can not connect to Oracle using ASP, but i can connect  to VB6.0

    i have installed ODAC 11.2.0.2.1(latest version) and i m trying to connect to Oracle 11G server
    So no vb programs are worked so i have installed oracle 11g client and vb programs are all started to work,
    but when i try to connect it using asp. i m getting the following error.pls help me
    Error Type:
    OraOLEDB (0x80004005)
    ORA-12154: TNS:could not resolve the connect identifier specified
    conn.asp, line 12
    on line 12, i did this,
    Conn221.Open ConnString221
    but my original connection code is
    ConnString221 = "Provider=OraOLEDB.Oracle;Password=newbie;User ID=newchips;Data Source=HIS241;PersistSecurity Info=True;PLSQLRSet=1"
    Conn221.Open ConnString221
    but the same piece of code is working in my friend PC,she installed only 8i Client and this is working perfectly...

    Please Double check your database name...
    Regards,
    Raghu

  • Unable to connect to oracle using type4 driver

    hi
         I was trying to connect to oracle Database using type 4 thin drivers on win98.
         I downloaded the driver from oracle site and also downloaded some more drivers
         from other sites.While connecting to data base I ran into problems I am working
         for about two days on this thing but couldn't succeed.
         I get the following message:
              Connection refused ...........
         The driver is succefully loaded but when it tries to connect using
         conn = DriverManager.getConnection("jdbc:oracle:thin:@server:1521:orcl","userid","password");
         it gives the above message.
         now I think that I am giving the host name incorrect I couldn't find
         any way in oracle to figure out the host name.
         I am giving
                   "jdbc:oracle:thin:@127.0.0.1:1521:orcl"
              I have also tried other options for host name like localhost etc.but it
         didn't resolve.I think that the listener for oracle is not listening at the port 1521.
         I tried telnet to check that but it failed to connect at this port.I tried to do this
         with mysql to connect at port 3306 using telnet it succeeded.
              Second thing is that I tried to create a service name in oracle using TCP/IP protocol
         giving the above mentioned host names at all the attempts it gave the error that it has performed
         an illegal operation .
              I think that there are some settings needed for oracle to listen at this port which
         I dont know or I am giving the host name wrong . I shall be extremely thankful if u help
         me to solve this problem.
                                       Regards
                                                 shAhzad      

    It has been a long time since I tried to run Oracle on Win98 (or Win95) for that matter, but I don't believe that there is a listener in the traditional sense since you would be using Personal Oracle. Your first step should be to make sure you can login to Oracle using the standard client and SQLPLUS. You could then use TNSPING to see if the listener is listening (you will need to setup TNSNAMES.ORA properly but you can use the Net8 Assistant or whatever). Next I would suggest you try using the OCI client instead of the thin client.
    If you can, it would be much better to install Oracle on an NT, Win2K, or Linux machine. Oracle on Win98 is not really the same thing.

  • Am trying to connect to database using thin driver am getting an erro

    Hi,
    Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at JdbcEx.main(JdbcEx.java:15)
    Thanks
    sreekanth

    Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriverThe JAR file is not in your classpath. Depends on what JAR you are using (ojdbc14.jar, ojdbc5.jar, etc). Bottom line, it can't find the class for the driver due to the JAR not being in the classpath.

  • Right way to use Web Apps on iPhone?

    I'm not sure I'm doing right way using Web Apps on my iPhone.
    Mostly I find the necessary Web Apps. on my Mac.
    And type the url address on iPhone.
    Then, if there is "view Web Apps" icon under the description of the Web apps, click to go and add it to home screen.
    Or if there is no "view Web Apps" icon, just click the url of the Web App name.
    Is this right way to add Web Apps I like?
    Thanks for help!

    When I find a web app I like in Safari I size the screen to what I want my homescreen icon to look like and click the + button. This adds a weblink icon to my homescreen making it easier to access than opening up safari and looking for a bookmarked page.

  • Is it possible to add an RSS feed to a blog created using web apps?

    Is it possible to add an RSS feed to a blog created using web apps? Can RSS feeds be used for items other than an actual blog?

    No, but you have an RSS feed of your blog anyway and you can set an RSS feed for your web app if you want as well.Business Catalyst Help | Create RSS feeds

  • Connect to oracle using jdba thin driver

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

    i want to use jdbc thin driver to connect to oracle 8i for linux intel.
    my code is:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    String dbURL = "jdbc:oracle:thin:@dbserver:1521:iasdb";
    Connection con = DriverManager.getConnection(dbURL,"scott","tiger");
    but an error is reported as "the network adapter can not establish connection".
    why?
    i can connect to oracle using JDBC-ODBC bridge successfully.

  • "stack overflow" when trying to connect with Oracle ODBC

    Hi,
    I'm trying to connect to Oracle DB (8.1.7.3.0) from WinNT 4.0 SP6 with Oracle ODBC driver 8.0.6.6.0. I've been trying to connect with "Oracle ODBC Test" and with "MS Query". In either way I end up with Dr. Watson reporting about "stack overflow". Before starting to upgrade ODBC driver I wanted to ask - should these versions of driver and DB work together at all (even unofficially)? Or may I be missing some other thing? Any hints, ideas are welcome.
    Regards,
    Madis Priilinn

    Thank You for replying, Justin!
    Yes, I can connect successfully to the database through other tools - at the moment I tried SQL*Plus, Net8 Easy Config and Schema Manager.
    The Oracle client in the NT machine is 8.0.5.0.0. And unfortunately I do not know anything about the Oracle installation on this machine and at the moment I don't have that person near me too whom to ask also. But I think the installation was ok, because the connection through ODBC was working before the DB upgrade as far as I understood (sorry, again at the moment I don't know what was the previous version of DB. I will ask that information as soon as possible).
    The main problem that bothers me at the moment is that I can't install 8.1.* series OraODBC driver with 8.0.5.0.0 Oracle Installer. I managed to install 8.0.6.6.0 version of the driver, but not the newer ones. As far as I've understood I have to upgrade the whole Oracle in the NT machine to upgrade that installer. Am I correct?
    Regards,
    Madis Priilinn

Maybe you are looking for

  • Image swap and IE7 in DW CS4

    I have thumbnails 80px square and a div set at 600px square I select and name a loctor image and put in the div. When I set up image swap all works fine in Safari, IE8 but in IE7 after the image has swapped, if I move the mouse over or near the large

  • How do I default the value in an LOV?

    Dear experts, What I am trying to achieve is changing the default value in an LOV, based on the value of another field. I have an LOV that lists employee names. There is another field, an account number, which when selected is used to determine the d

  • My palm calendar wont open after Lion download.  Palm is so much better than ical,  is it not going to work w/ Lion?

    Palm calendar won't open now that I've downloaded Lion. Palm is so much better than ical.  Is there a fix?

  • How upgrade 10.4.3 to 10.4.8

    I have a 1/06 mini - not on the net (tho it could be hooked up I guess) - has 10.4.3 on it. My wife want to buy Adobe photoshop elements which requires 10.4.8 to 10.5.2. How do I upgrade the OS from 10.4.3 to at least 10.4.8? can I buy that from appl

  • How to tell ip address??

    Hi. I just bought a sun sparc station 20, and my nic has no light on it. I think that its ip is on the wrong subnet as the rest of my network. How do i tell if its using dhcp or static ip, or what the ip address is? Also, I want to get onto the inter