I am unable to connect to oracle using thin driver

Hi,
I am writing a program to connecto database using thih driver,by using ipadress of server where oracle 8i is installed.I am getting an error
Exception in thread "main" java.sql.SQLException: No suitable driver
How to over come this.Any one please help me.

I am getting error saying No suitable driver found
this is my function:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.112:1521:orcle8i","scott","tiger");
oracle 8i is my database name.I have created another database name with oracle in the server. will it cause any problem.

Similar Messages

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

  • Unable to connect to Oracle using OCI Drivers on Linux

    Hi Everyone!
    I am facing a peculiar issue while using Instant Client on Linux ( 64Bit ) running on Red Hat 4.1.
    I have downloaded the instant client version 10.2.0.3(.zip) .so files from the below URL
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    UPloaded all the files to a directory under /opt and changed the .bash_profile file, the latest content looks like
    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOME
    PATH=$PATH:$ORACLE_HOME
    export PATH
    TNS_ADMIN=/opt/instantclient_10_2
    export TNS_ADMIN
    LD_LIBRARY_PATH=/opt/instantclient_10_2
    export LD_LIBRARY_PATH
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATH
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATH
    Java.library.path=/opt/instantclient_10_2
    export Java.library.path
    As i have downloaded the Sqlplus utility as well, i am able to connect to the Oracle FARM via sqlplus.
    On the other hand, i am unable to connect to the same database via the application. It constantly gives me the following exception,
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1030)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3138)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3134)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:220)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:438)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
    at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:296)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:220)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:164)
    at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:105)
    at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:68)
    at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(AbstractResourcePool.java:891)
    at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToPool(AbstractResourcePool.java:1752)
    at com.sun.enterprise.resource.AbstractResourcePool.createResources(AbstractResourcePool.java:917)
    at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResourcePool.java:225)
    at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:516)
    at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:327)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
    at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:108)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:922)
    at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:984)
    at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:117)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO$SysParamsStoredProcedure.execute(SystemParametersDAO.java:150)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersList(SystemParametersDAO.java:67)
    at com.gecf.uk.pca.dcs.util.SystemParametersDAO.getSystemParametersMap(SystemParametersDAO.java:94)
    at com.gecf.uk.pca.dcs.util.SystemParameters.loadParameters(SystemParameters.java:44)
    at com.gecf.uk.pca.dcs.util.SystemParameters.<init>(SystemParameters.java:33)
    at com.gecf.uk.pca.dcs.util.SystemParameters.getInstance(SystemParameters.java:72)
    at org.apache.jsp.common.secure.mypayment_jsp._jspService(mypayment_jsp.java from :86)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.gecf.uk.pca.dcs.web.util.SessionFilter.doFilter(SessionFilter.java:97)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    |#]
    I have used the classes12.jar and ojdbc.jar which came with the download and nothing seems to work. A bit surprising when sqlplus works and not the application. I suspect there could be an issue with the driver class. I have been struggling to figure this out for days now...
    Can anyone please share their thoughts if something similar was observed earlier please.
    Any quick help will highly be appreciated.

    ORACLE_HOME=/opt/instantclient_10_2
    export ORACLE_HOMEYou don't set ORACLE_HOME with Instant Client.
    PATH=$PATH:$LD_LIBRARY_PATH
    export PATHThis is unnecessary.
    CLASSPATH=/opt/instantclient_10_2:/opt/instantclient_10_2/ojdbc.jar
    export CLASSPATHThis is wrong.
    It should be:
    CLASSPATH=/opt/instantclient_10_2/ojdbc14.jar:<whatever else you need there>
    Java.library.path=/opt/instantclient_10_2
    export Java.library.pathThis is useless; java.library.path is not an environment variable.
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.pathThe case is pretty clear. You want to use the OCI driver (your URL starts with "jdbc:oracle:oci:"), so the Java Virtual Machine is looking for libocijdbc10.so in the Java library path but cannot find it.
    What is also clear is that the program does not use the CLASSPATH environment variable you set, because then it would never have found the Oracle Driver.
    So it seems that your program is ignoring the environment you set (which would explain why it also ignores LD_LIBRARY_PATH which you set correctly).
    You must have the environment variables set and exported in the shell that starts the "java" executable.
    Also, check that there is no other ojdbc14.jar on this machine (use "find").
    To help you debug your problem, let me explain how Sun Java sets Java library path on Linux:
    - If you start java with "java -Djava.library.path=/some/dir:/other/dir ...", the Java library path is set to exactly that value.
    - If you do not specify -Djava.library.path, the Java library path is taken from the environment variable LD_LIBRARY_PATH.
    - Directories listed in /etc/ld.so.conf have no influence on the Java library path (which gave me quite a headache in the beginning).
    Do you really need the OCI Driver? If you can do with the Thin Driver (i.e., use an URL that starts with "jdbc:oracle:thin:") you don't need any shared libraries at all.
    Yours,
    Laurenz Albe

  • Unable to connect to Oracle using OS authentication (sqlplus / as sysdba)

    Hello,
    When I try to connect locally ,using OS authentication ( sqlplus / as sysdba ), on a Oracle database, I get "ORA-01031: insufficient privileges" error.
    OS: Windows XP
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod.
    connecting as sysdba using sys/pasword works.
    I have setup :
    -> Log on as a batch job
    -> Log on as a service
    I am also member of ORA_DBA group.
    I mention that connecting "/ as sysdba" worked many months after I've installed the Oracle database. But at some moment in time connecting "/ as sysdba" was no longer possible.
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 23 11:08:52 2007
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges.
    Thank you for any suggestion.

    Hi,
    I have the same issues from the beginning..
    I have two Oracle homes ( One for earlier installed SOA10g, and another for current installing SOA11g).
    I have the right sqlora.net file. I have removed the old path and reset to point the new oracle home. I have this home entry as the first entry in my Universal installer too.
    I AM ABLE TO CONNECT WITH sys USER AS SYSDBA on THE SAME SYSTEM ( I MEAN WHERE i INSTALLED THE DATABASE) USING THE command prompt.
    But I am not able to connect as the SYSDBA with sys ACCOUNT through the SQLDeveloper tool. or RCU tool? Any help please. Again I am able to connect as a normal user through the SQL developer using the SYSTEM account.
    -- Khaleel

  • How to connect to oracle using type4 driver in JSP

    i want code to connet to oracle using type 4 driver in JSP

    i want code to connet to oracle using type 4 driver in JSP

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to Connect to Oracle 10gR1 database from JDeveloper 11g using OCI JD

    We are migrating our application from OC4J to Weblogic server. As a part, I am trying to create a database connection in JDeveloper 11g (11.1.1.3.0 - Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660) to Oracle 10gR1 database. Previously I had Oracle 10g Client installed in the machine. Created a database connection using OCI driver and when I try to test connect, I got "Test Failed: no ocijdbc11 in java.library.path". I searched through Metalink and forums and one suggestion was to install Oracle 11g Client on the machine where Jdeveloper 11g is installed. I installed 11g R1 client and tried the same test connection using OCI driver. Now I am getting "Test failed: ORA-12705: Cannot access NLS data files or invalid environment specified" error.
    The same database connection works good with Thin driver with both Oracle 10g client and 11gR1 client.
    Previously I had Jdeveloper 10.1.3.2 and Oracle 10g Client and I was able to connect to database without any errors.
    Could you provide me the steps for this or if I missed any steps?
    Steps to Replicate:
    For the error: no ocijdbc11 in java.library.path
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 10g Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    ORA-12705: Cannot access NLS data files or invalid environment specified
    1) Install JDeveloper 11g (With embedded Weblogic Server)
    2) Install Oracle 11gR1 Client on the same machine
    3) Create a database connection in the "Application Resources --> Connection"
    4) Use OCI driver. Enter the host details about the Oracle 10g R1 database
    5) Test connect to the database.
    Note: Tried the same scenarios with Oracle 11gR2 client as well. It was not working at all.
    Any ideas and pointers would be great.

    1. will my problem get solved after i install oracle 11g client on my machine.Yes, your problem should get solved. The version of the Oracle 11g Client must match the version of the JDev's JDBC drivers. Alternatively you may install an Oracle 11g Client and replace JDev's Oracle JDBC drivers with these from the installed client. Please, read carefully my 1st posting above in this thread.
    2. can i patch JDeveloper 11g on my machine to work with 10g client, or can i do the same with 10g client.You might succeed if you replace JDev's built-in JDBC drivers (which are 11g versions) with 10g versions, but I do not recommend you to try that because JDeveloper 11g and ADF 11g may be using some 11g features that do not exist in 10g drivers, so you may have problems.
    I also have PLSql developer installed on my machine and it works well.PL/SQL Developer does not use JDBC drivers, so it is not an relevant example in this case.
    My generall recommendation is to use Oracle JDBC Thin drivers. Oracle claimed that OCI drivers had better performance, but this was really true about earlier releases. Current Oracle 11g JDBC Thin drivers offer excellent performance and they offer all the features of the OCI versions (which was not true about earlier releases). In my opinion, the most important disadvantage of Oracle JDBC OCI drivers is that most versions have native memory leaks so all the RAM would get consumed after long application execution. The fact that WebLogic Server does not offer Oracle JDBC OCI drivers by default anymore says that Oracle discourages the usage of the OCI driver in favour of Thin driver.
    Dimitar

  • Unable to connect to oracle driver

    I am unable to connect to oracle driver. My code is as follows --
    try {
    Class.forName("oracle.jdbc.OracleDriver").newInstance();
    } catch (ClassNotFoundException e) {
    System.out.println("Can't find class oracle.jdbc.OracleDriver");
    System.exit(1);
    } catch (Exception e){
    e.printStackTrace();
    When I run the code, I am getting the 'ClassNotFoundException'. I have JVM 1.4 and have included classes12.zip and ojdbc.jar in the class path.
    What am I missing?

    or better yet, upgrade to a less ancient driver jar.
    The driver classname you supplied is correct for Oracle 9i and later, but the driver jar you use is for Oracle 8. It's also for Java 1.2 (hence the "classes12" name), and seriously lacking in features and performance compared to more modern versions.
    Of course if you're stuck with a 10 year old database version you have little recourse but to use it, but no reputable company would use something that old any longer, especially since it's been out of support for ages.

  • Compile 시 PCC-F-02104, Unable to connect to Oracle 관련 문의드립니다.

    안녕하세요..
    PCC-F-02104, Unable to connect to Oracle 관련 문제점을 해결하고자 글을 올립니다.
    Oracle Client 10.2.0.1 -> Oracle DB 10.2.0.4 로 접속이 되는 구에서 아래와 같이
    Client에서 Compile이 안되는 현상이 있습니다.
    사례가 있으셨던 분들의 도움을 요청합니다.
    $ make all
    /user/oracle/product/11.2.0/bin/proc SQLCHECK=SEMANTICS userid=dbmuser/palm_7256@IBQMDB2 MODE=ORACLE DBMS=V8 parse=full
    include=/user/ibqm/ibqm/include include=/user/ibqm/ibqm/libs/include pclqf_sql.pc pclqf_sql.c
    Pro*C/C++: Release 11.2.0.1.0 - Production on Tue Nov 17 10:10:02 2009
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    System default option values taken from: /user/oracle/product/11.2.0/precomp/admin/pcscfg.cfg
    PCC-F-02104, Unable to connect to Oracle
    *** Error code 1
    make: Fatal error: Command failed for target `pclqf_sql.c'
    $
    확인해본 내용
    1. sqlplus로 원격 접속은 잘 이루어집니다
    2. 양 Client 및 DB를 모두 재구성 해도 결과는 동일합니다.
    3. sqlcheck=syntax 또는 none 으로 해서 compile 하면 SQLCHECK=SEMANTICS 으로 해야 한다는 Error 메시지가 계속 나옴

    It's my GNUmakefile:
    # can't use -fno-rtti yet because it causes problems with exception
    # handling in GCC 2.95.2
    CXXFLAGS = -g
    # uncomment the next two lines to do a release build
    # CXXFLAGS = -O2 -DNDEBUG -ffunction-sections -fdata-sections
    # LDFLAGS = -Wl,--gc-sections
    export LD_LIBRARY_PATH = /home/oracle/db_1/lib
    ARFLAGS = -cr     # ar needs the dash on OpenBSD
    RANLIB = ranlib
    UNAME = $(shell uname)
    CXXFLAGS := $(CXXFLAGS) -pipe -I/home/oracle/db_1/precomp/public -I/home/oracle/db_1/rdbms/public -I/home/oracle/db_1/rdbms/demo -I/home/oracle/db_1/plsql/public -I/home/oracle/db_1/network/public
    ifeq ($(UNAME),SunOS)
    LDLIBS =
    endif
    ifeq ($(CXX),gcc)     # for some reason CXX is gcc on cygwin 1.1.4
    CXX = g++
    endif
    PROC = $(ORACLE_HOME)/bin/proc
    PROCPPFLAGS = code=cpp cpp_suffix=cpp threads=yes lines=yes sqlcheck=full userid=user/pw@tnsname
    ORA_LIB = -L/hone/oracle/db_1/lib `cat /home/oracle/db_1/lib/ldflags` -lclntst9 `cat /home/oracle/db_1/lib/sysliblist` -ldl -lm
    PCS = $(wildcard *.pc)
    ifeq ($(PCS),)          # workaround wildcard function bug in GNU Make 3.77
    PCS = $(shell ls *.pc)
    endif
    ORAS = $(PCS:.pc=.cpp)
    CPPS = $(wildcard *.cpp)
    ifeq ($(CPPS),)          # workaround wildcard function bug in GNU Make 3.77
    CPPS = $(shell ls *.cpp)
    endif
    OBJS = $(CPPS:.cpp=.o)
    all:
         $(MAKE) precomp
         $(MAKE) citycardpro
    clean:
         $(RM) citycardpro $(ORAS) $(OBJS)
    precomp: $(ORAS)
    citycardpro: $(OBJS)
         $(CXX) -o $@ $(CXXFLAGS) $(OBJS) $(LDFLAGS) $(ORA_LIB) -lpthread -lcryptopp
    .SUFFIXES: .pc
    .pc.cpp:
         $(PROC) $(PROCPPFLAGS) $<
    .cpp.o: .pc
         $(CXX) $(CXXFLAGS) -c $<
    Proc as and sqlplus locate in $ORACLE_HOME/bin
    Thanks for reply.
    Andrew.

  • Error: unable to connect to database using user system. please check privil

    Hi All,
    i have 2 oracle databases in my system (ORCL,RR). i am able to connect both databases i sql prompt. but in ggsci prompt not able to connect rr database due to below error
    dblogin userid system, password tiger.
    Error: unable to connect to database using user system. please check privil
    Can you please help me to connect RR database also in GGSCI promt.
    Thanks
    Raja

    Did you try with RR database tns name or sid while connecting ?
    If No then try this ,
    GGSCI (ATP) 6> DBLOGIN USERID SYSTEM@<tns alias name>
    Password:
    Successfully logged into database.
    HTP
    Annamalai.

  • Error: Unable to connect to database using connection_pool

    Hi experts
    I have created repository and reports on my windows machine using ODBC , Now i have tranfered this to on unix with OCI, But when i am connecting to my dtabase it is showng the error:
    Error: Unable to connect to database using connection_pool
    Please suggest how to resolve this..

    Have you install the Oracle client in your Unix server?

  • Unable to connect to Oracle Applications database (afscpgcs) after clone

    Hi,
    I have just moved (clone using rapidclone) two of our 11.5.10.2 install from a solaris SPARC 8 to 10 . After the clone, while discoverer 10g works perfectly well in one environment, it is giving the error below in the another environment.
    - Failed to connect to database - Unable to connect to Oracle Applications database (afscpgcs)
    Notes:
    1. For the 2 environments, nothing as changed apart from the hostnames.
    2. The password has not changed on both - from source to targets.
    3. This happens when launching discoverer 10g from Apps.... discoverer works well on it own if not launched from apps.
    I raised a SR with oracle and the 2 things they said have not worked. they said
    1. change signon password case parameter - but I cannot find that in the list of system parameters on our system.
    2. The other note says apply patch 6430269 and I can confirm this patch has been on the system for sometime.
    Please advise on this if you have come accross this before and you can help here.
    Thanks

    Thanks for your concern. I have used the notes you listed but no luck. One thing I have to point out here is that I have always cloned from solaris 8 to 8 for years without this problem. Now I am cloning from solaris 8 to 10 and the problems is on just one environment. The other is working well. The problem seems to be related to the apps password but the password has not changed at all. Also, I have tried to change the password to something else and ran autoconfig but no luck. Please help

  • Unable to connect to DB using the SID

    HI Forum,
    I am unable to connect to DB using the SID i assigned using TOAD, but i am able to connect using the instance name.
    My setup needs that i should use a common name to connect to the DB immaterial of which instance is up.
    Can any one instruct me how to achieve this kind of setup.
    Regards
    Prakash

    Hi Prakash,
    1). Create a file called TestingLoop.java containing following code:
    import java.sql.*;
    public class TestingLoop {
    public static void main(String[] s)throws Exception {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    /* String url="jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on)
    (ADDRESS=(PROTOCOL=TCP)(HOST=a) (PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=b)(PORT=1521))
    (ADDRESS=(PROTOCOL=TCP)(HOST=c) (PORT=1521))
    (CONNECT_DATA=(SERVICE_NAME=orcl)))"; */
    String url ="jdbc:oracle:thin:@abc.us.oracle.com:23001:xyz";
    for (int i=0; i<20; i++) {
    try {
    long x= System.currentTimeMillis () ;
    Connection conn = DriverManager.getConnection(url,"scott","tiger");
    long y= System.currentTimeMillis ();
    System.out.println("Connection Succesful "+conn);
    System.out.println("Connection time is "+(y-x)/1000+" ms");
    Statement stmt =conn.createStatement();
    ResultSet res= stmt.executeQuery(" select host_name from v$instance");
    while(res.next()) {
    System.out.println(res.getString(1));
    stmt.close();
    conn.close();
    catch(Exception e) {
    e.printStackTrace();
    2). Compile the file using this command:
    javac TestingLoop.java
    3). Run the java program:
    java TestingLoop
    Single Virtual Ip doesn't make sense... does?
    You will lose failover vip capabilities...
    Regards,
    Rodrigo Mufalani

  • Unable to connect to Oracle Discover Application: ORB Initialization failure

    We are running Discoverer 4.1.37 in a DMZ. Some of our internal users receive a "Unable to connect to Oracle Discoverer Application: ORB Initialization failure ..." error when trying to use Discoverer Plus. Our external users are able to connect using Discoverer Plus. We have SSL and Gatekeeper was configured with the machine's IP address (Exterior address), port 443 (exterior port), and exterior proxy address. Networking changes were made to enable users to use one web address instead of two (one for external and one for internal). Also, if I trying to use the machine's IP address in the web address, Discoverer just says "Loading" in the Discoverer Plus status box. If I use the one web address (originally, the external web address), I can log into Discoverer.

    How are you trying to connect the database using JPA?
    Has your datasource got bind successfully. You should check all these things first. If your datasource has not got binded then debug for that.

Maybe you are looking for

  • Photoshop CS4 licensing problems

    We are a secondary school which purchased Adobe Photoshop CS4 back in 2010 with 10 licences, from a company called Ramesys.  They provided us with the licence keys which worked perfectly fine.  However, we have recently had to update the PCs and alth

  • How to make "Data Entry Profile" field input unable or display only in CAT2

    hi , I have requiremnet where I need to make "Data Entry Profile" field in the CAT2 transaction as Display only .That is for each user it should come as default one . The reason behind this is , user should not change this Profile and maintain an inc

  • Photo albums on iphone

    How do I save more than one photo album on my iphone?

  • Illustrator Freezes Crashes on Save

    Hi! I'm using Illustrator CS5 on my new MacBook Pro.  I have successfully used this software on my previous computers and my current iMac; however, whenever saving a file in Illustrator on my MacBook, the screen will freeze and the app will crash.  A

  • How to downgrade back to 10.6?

    I now can't use three programs I desperately need since my upgrade. How do I downgrade back to 10.6? The disk that came with my iMac won't let me load the old system. HELP please!