Error in connection to oracle using java

hi ,
i am tring to make a connection to oracle database using java with this code
public class DataBase {
public DataBase(){
Connection connection = null;
try {
// Load the JDBC driver
String driverName = "oracle.jdbc.dirver.OracleDriver";
Class.forName(driverName);
// Create a connection to the database
String serverName = "http://localhost:7777";
String portNumber = "1521";
String sid = "ora9i";
String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
String username = "scott";
String password = "tiger";
connection = DriverManager.getConnection(url, username, password);
} catch (ClassNotFoundException e) {
JOptionPane.showMessageDialog(null,"Coud not find the database driver ");
// Could not find the database driver
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Coud not connect to the database ");
// Could not connect to the database
public static void main(String[] args) {
new DataBase();
i always got the compilation error Coud not find the database driver
i am using oracle9i and jdk1.5.0_04 and my classpath is C:\oracle\ora92\jdbc\lib\ojdbc14.zip;C:\oracle\ora92\jdbc\lib\orai18n.zip
i am realy stuck with this so any one can help me with this probelm
thanks alot,

thanks for your reply,
yes i changed the server name and i verified the location of the JDBC driver file(s) on my computer. any way i solved my problem.
you know there was a misunderstanding in what you mean by classpath, i thought that i have to change the classpath from control panel>system>advance>enviroment variable
and then select classpaht and edit it. i was doing this but this is didn't work.
then i don't know why i did that
i went to java program and select my project,right click on it and then select properties>java build path and then select "add external Jars" button and then i simply choose them and add them to my project. and finaly it worked.
thanks alot

Similar Messages

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

  • Connecting to Oracle using Java API

    I'm fairly new to Oracle, but what I'm trying to do should be straight forward (at least that's what I thought). I'm simply trying to connect to an Oracle database using the latest java API (J2SE 1.4.1).
    I downloaded JDBC OCI (type 2) driver form the Oracle Web site along with the appropriate DLL; however when I try to run the following two lines
    String dbUrl = "jdbc:oracle:oci8:@test";
    String user = "user";
    String password = "password";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection c = DriverManager.getConnection(dbUrl, user, password);
    I get the following error message:
    "java.exe - Entry Point Not Found
    The procedure entry point slzsetevar could not be located in the dynamic link library oracore8.dll."
    Please note that I am running under Windows 2000 Pro, have Oracle Client 8.1.5 installed, and am able to connect to the same Oracle database using ODBC and PowerBuilder native drivers.
    Then I read somewhere that I should use 8.1.7 version of the Oracle client software, so I downloaded it from the Oracle Web site. However when I try to install it under Windows 2000 (by double-clicking on the setup.exe) nothing happens!!!
    Any ideas?!

    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)

  • Error when Connect to Oracle using JSP

    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); There is no problem with this code in Java, but when i used it in JSP, the error occured.
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
    I am using JRUN Web Server, i don't know how to Configure JRUN to use JSP with Oracle.

    the problem is that your JDBC driver is not in the classpath of your servlet. Add the jar file to the WEB-INF\lib folder of your web application.
    i don't know how to Configure JRUNSorry, but in order to achieve anything, you'll have to RTFM.

  • How to connect with Oracle in java

    Hello!
    I would like to use java for my graduation project. And connect with Oracle in java.
    I used j2sdk1.4.2_04 and Oracle 9i release 9.2.0.1.0
    May I ask where could supply me information or content ?
    Thanks!!

    hi jus a sample code
    public class DbUtil {
    // Connection instance
    private static Connection conn = null;
    private Object connection;
    public DbUtil() {
         // Connect to the database
    dbConnect();
    * This method performs the clean up action and closes the application
    void exitDbUtil(){
    // If connected to database
    if (conn != null) {
    try {
    // Close the connection
    conn.close();
    conn=null;
    catch (Exception ex){      // Trap errors
    System.out.println(" Error while Closing the connection: "+ex.toString());
    * Creates a database connection object
    private void dbConnect() {
    try {
    String driverName = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driverName);
    String url = "jdbc:oracle:thin:@" + ConnectionParams.s_hostName +
              ":" + ConnectionParams.s_portNumber +
              ":" + ConnectionParams.s_databaseSID;
    // Create a connection object
    conn = DriverManager.getConnection(url, ConnectionParams.s_userName,
                             ConnectionParams.s_password);
    catch(Exception e){

  • Sun Ray error when connecting to Oracle VDI - No Kiosk Sessions Available

    When the Sun Ray DTUs go to connect to the Oracle VDI cluster at times they will throw the error "Error starting Kiosk session: No Kiosk accounts configured." We have tried going through the steps to confirm that the Kiosk sessions are configured on the two secondary hosts but the problem persists. When the Sun Ray DTUs do connect they will work for a while and then when left idle for a period of time will loose their connection and be unable to restart the connection with the error mentioned. The Screen Blanking option on the Sun Ray DTUs is set to "0" to prevent them from going into power-save mode but this makes no difference. The Sun Ray DTUs are all updated with the latest GUI firmware and there are no custom options set in the Sun Ray Session Servers.
    The thing that bothers me the most is I have not seen any error messages in the logs. I will post up the logs as links in a follow-up post.
    Has anyone had any similar issues while connecting with a Sun Ray DTU?
    Currently we are running Oracle VDI 3.2.1 on the cluster.
    Here are the commands we used to reset the Sun Ray Kiosk accounts:
    # /opt/SUNWkio/bin/kioskstatus -c
    # /opt/SUNWkio/bin/kioskuseradm status
    # /opt/SUNWkio/bin/kioskuseradm delete
    # /opt/SUNWkio/bin/kioskuseradm create -l utku -g utkiosk -i auto -u –c

    I was trying to transfer data from oracle to sql server 2008 on a daily basis.
    I have very hard time connecting to oracle from ssis package on windows server 2008. I am almost dead and cannot find any help. i was able to connect to oracle using import/export 64 bit feature of SQL Server 2008 using Oracle provider for OLEDB. But I am not sure why the same does not work with BIDS?
    Here's the environment info:
    1. Oracle Client 10g
    2. SQL Server 2008
    3. Windows Server 2008
    Appreciate your help. Please save me.
    Thanks,

  • 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

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

  • Error while connecting to Oracle db using jdbc

    When I try to execute a java class which has to access data in
    the Oracle db using Jdbc connection, get an error --
    Appln- pathname/filename is attempting to call the OCI function
    (opinit) this function does not exist in ORA72.DLL.
    Exit this appln ? Yes or No
    Both oracle db & java are on the same PC.Would like to know what
    can be done to rectify this.
    Thanks.
    null

    The OCI driver 7.3 requires the 7.3 OCI to be installed (this is
    part of the client required support files or RSF). The particular
    call in question wasn't added to the OCI untill 7.3 so it
    wouldn't exist in the 7.2 OCI library.
    null

  • ORA-12504 error when connecting to Oracle 11G DB using OCI and instantclient-basic-nt-11.2.0.3.0.zip

    Dear Friends,
    I am using OCI and instant_client (11.2.0.3.0)  in my C++ program (on Windows 7) to connect remotely to 11G database.
    While doing a connection using server name as well as servername:port/service_name as connection strings, I am getting error of ORA-12504 TNS:listener was not given the SERVICE_NAME in CONNECT_DATA.
    According to instant client FAQ & white paper at http://www.oracle.com/technetwork/database/features/instant-client/index.html, no tnsnames.ora is required for instant client. Then why could I be getting this error?
    I ensured that only the instant client directory is in Path environment variable. There was a ODBC driver installed on this same host. Could that be modifying the behavior of instant client?
    Kindly guide.
    Many thanks in advance for your help and time.
    Best Regards,
    - ganesh

    >>what is the exact connect string you are using?
    For connection, I am using the plain hostname on which the DB server is running.
    >>are you calling OCIServerAttach before OCISessionBegin?
    I am not using OCISessionBegin. For connecting to DB server, I am using the following sequence of OCI calls (in this same order):
    1) g_OCIEnvNlsCreate
    2) g_OCIHandleAlloc //-- error handle: OCI_HTYPE_ERROR
    3) g_OCIHandleAlloc // --- sevice context: OCI_HTYPE_SVCCTX
    4) Setting driver name and application name for the session:
        OCISession* usersession = 0;
        ret = g_OCIAttrGet(m_pSvcCtx, OCI_HTYPE_SVCCTX, &usersession, NULL,
                                 OCI_ATTR_SESSION, m_pErrHdl);
        if (ret == OCI_SUCCESS)
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"OCI_DRV", 2,OCI_ATTR_DRIVER_NAME, m_pErrHdl);
            ret = g_OCIAttrSet(usersession, OCI_HTYPE_SESSION, (void*)"ClientApplication", <ub4>(strlen("DataReconScanning")), OCI_ATTR_CLIENT_IDENTIFIER, m_pErrHdl);
    5) g_OCILogon() using the user, password and host name, as below:
    g_OCILogon(m_pDbCon, m_pErrHdl, &m_pSvcCtx,
                                   (text*)user.c_str(), static_cast<ub4>(user.length()),
                                   (text*)pass.c_str(), static_cast<ub4>(pass.length()),
                                   (text*)host.c_str(), static_cast<ub4>(host.length()));
    Thanks.

  • Connectivity in flex to oracle using java

    hello,
            i have to connect flex  3 with java which uses oracle as a database.How i can connect flex with java.I am trying to access web services provided by          java in flex.Is it possible? Please help me out.
              Thanks,

    Hi,
    Are you using Flash Builder to build your application?
    Definitely you could connect to web services from flex .
    May be in your case, expose the JAVA class as web services using AXIS(may be) and access it as shown below:
    Sample snippet:
    <mx:WebService
      id="service"
      result="onResult(event)"
      fault="onFault(event)"
      wsdl="http://abc.cd.com/ PhoneNumber.asmx?WSDL/>
    Refer: http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.html  for more details.
    Please revert back if you face any issue
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • 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

  • Error while connecting to DB's - java.lang.NullPointerException

    I am getting this error while connecting to any db using SQL dev.
    1. I was able to connect to all before something happaned (unrealted install/uninstalls)
    2. I also have two errors in the "Logging Page- Log" window
    I have seen this errors in other threads, but dont think thay have a resolution to this.
    Let me know if any other info is required and I will append to this thread.
    -MAIN ERROR-
    java.lang.NullPointerException
         at oracle.dbtools.raptor.conntypes.RaptorClassLoader.findClassLoader(RaptorClassLoader.java:48)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.createConnectionImpl(RaptorConnectionWrapper.java:213)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.createConnection(RaptorConnectionWrapper.java:171)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getJdbcConnection(RaptorConnectionWrapper.java:202)
         at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getPresentation(RaptorConnectionWrapper.java:68)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.createConnection(Connections.java:1004)
         at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:876)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:553)
         at java.lang.Thread.run(Thread.java:619)
    -Two ERRORs in the log window-
    1 ------------------
    SEVERE     88     0     oracle.jdbc.driver.OracleDriver     Error while registering Oracle JDBC Diagnosability MBean.
    2---------------
    SEVERE     95     63     oracle.ideimpl.extension.AddinManagerImpl     Failed to create addin oracle.report.addin.ReportAddin
    Thanks
    -SJ

    Interestingly when I go to Preferences/Database I get this error:
    Internal Error when attempting to create this panel: - Do you think I should just reinstall the whole thing?
    java.lang.NullPointerException
         at oracle.dbtools.raptor.config.AdvancedInfo.onEntry(AdvancedInfo.java:40)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:921)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:894)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:104)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1343)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1211)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1205)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1422)
         at java.awt.Component.setVisible(Component.java:1375)
         at java.awt.Window.setVisible(Window.java:806)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:202)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:795)
         at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:580)
         at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:47)
         at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:265)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:571)
         at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
         at java.awt.Component.processMouseEvent(Component.java:6041)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

  • Error in connecting to Oracle webcenter DB with Endeca

    Hi,
    I gave the passthrough values and the rest of the details in the developer studio. However, on running baseline, I am getting the below error:
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 15, 2013 5:22:23 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 15, 2013 5:22:24 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:oracle:<host>:<port>/<dbname>.
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)+
    +     at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)+
    +     at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)+
    Caused by: java.sql.SQLException: Invalid Oracle URL specified
    +     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:423)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:582)+
    +     at java.sql.DriverManager.getConnection(DriverManager.java:154)+
    +     at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)+
    +     ... 3 more+
    Getting invalid oracle url for jdbc:oracle:<host>:<port>/<dbname>. Please suggest correct url for connecting to oracle db.
    Thanks.

    Hi,
    I found out that the db bundled with webcenter sites is HSQL. So, I performed the same steps using hsql jar but getting the below error:
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: Could not find properties file in classpath; defaults will be used.
    Apr 16, 2013 2:18:09 PM com.endeca.soleng.itl.jdbc.AdvancedJDBCColumnHandler <init>
    WARNING: outputDataDir ..\incoming not writable
    Apr 16, 2013 2:18:11 PM com.endeca.edf.adapter.AdapterRunner run
    SEVERE: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
    com.endeca.edf.adapter.plugins.JdbcAdapterException: Failed to open connection to: jdbc:hsqldb:hsql://<host>:<port>.
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:201)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.execute(JdbcAdapter.java:94)
         at com.endeca.edf.adapter.AdapterRunner.run(AdapterRunner.java:168)
         at com.endeca.edf.adapter.AdapterRunner.main(AdapterRunner.java:43)
    Caused by: java.sql.SQLException: socket creation error
         at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
         at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
         at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
         at org.hsqldb.jdbcDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at com.endeca.edf.adapter.plugins.JdbcAdapter.connect(JdbcAdapter.java:188)
         ... 3 more
    Getting Socket creation error :( Can u pls help in connecting to hsql db? Probably my DB_URL is also wrong, not sure of the correct parameter. I have given :
    jdbc:hsqldb:hsql://<host>:<port>
    Also, 1 more surprising thing is that even though hsql db is working from webcenter sites explorer, in services, there is no hsql service visibile.

  • I met an error when connect to oracle db with tag sql:DataSource

    When I use the jstl tag <sql:DataSource> connect to oracle db ,I met an error as :
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    My Source code as follow:
    <sql:setDataSource var="dataSource" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.220:1521:gzserver" scope="request" user="lnmisscall" password="lnmcadmin"/>
    <sql:query dataSource="{$dataSource}" var="data">
    I am sure the connection information are right (I can connecte to the db with them in jsp & java bean) , and I have put the oracle's jdbc driver under the tomcat/common/lib folder,
    Please help me to fit it ,thanks.

    Sabrina,
    Its all dependent on the application and whether its 32-bit or 64-bit.  For example, SSRS reporting services 2008 R2 is a 64-bit application, so load the 64-bit oracle client there for report execution.  Report builder is a 32-bit client application,
    assuming its running on a different machine, so load the 32-bit oracle client on any user computers using RB 3.0 and working with Oracle.  If the computers are one in the same, then do as the post above says, load both...

Maybe you are looking for

  • Logical Standby SQL Apply Using Incorrect Decode Statement

    We are seeing statements erroring out on our logical standby that have been rewritten (presumably by sql apply) with decode statements that don't appear to be correct. For example, here is one of the rewritten statements. update /*+ streams restrict_

  • Word docs from pc to iPad

    I can't figure out how to share a word doc from my pc to the iPad. I went through the steps in the manual but can't find the file share option they talk about in the app tab on iTunes. Any ideas?

  • Does anyone have an applet that runs on Windows CE and connects via jdbc to lite DB

    I am trying to get an applet to connect to the Oracle lite DB I use      if (conn == null)      // Load the JDBC driver Class.forName("oracle.lite.poljdbc.POLJDBCDriver");      conn = DriverManager.getConnection ("jdbc:polite:polite", "SYSTEM", "MANA

  • Disabling Genius

    Is there anyway to disable Genius altogether on my iPod? Specifically, I want to turn off the function that activates Genius when the iPod gets shaken. (I listen to it in my car, and have to tip it forward into the cup holder while I drive, and it ke

  • Oracle 9i on NT question

    hi All, How am i able to log in the oracle DB ,without a password.when i am prompted? DOS> sqlplus /nolog sql> conn sys as sysdba passsword: Pls let me know ,how thi is possible ?? thanks sunny