Could not connect to Oracle 8i using jdbc
I am running Oracle8i Enterprise Edition Release 8.1.5 on Windows 2000 Server. I try to compile a sample program using JDK 1.3 and getting the following error message.
Program:
import java.sql.*;
class Hotels
public static void main (String args [])
throws SQLException
DriverManager.registerDriver (new oracle.jdbc.Driver.OracleDriver ());
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@chandran", "TRAVEL", "TRAVEL");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("select NAME from HOTELS");
while (rset.next ())
System.out.println (rset.getString (1));
rset.close();
stmt.close();
conn.close();
Error Message:
D:\>javac E:\Javaex\Hotels.java
E:\Javaex\Hotels.java:10: cannot resolve symbol
symbol : class OracleDriver
location: package Driver
DriverManager.registerDriver (new oracle.jdbc.Driver.OracleDriver ());
I am New to the JDBC 2.0 and JDK1.3. Could you please anyone guide me how can I overcome this problem. Should you require any additional information please reply me.
Best regards
rdbms 8.1.5 never was certified to run on win 2000.
by the way rdbms 8.1.5 goes out of support on dec 31, 2000.
in addition, oracle products like - the jdbc drivers, rdbms, oas, ias -- are NOT certified to work with jdk 1.3.
if you run into problems, you'll need to reproduce it with jdk 1.2.x and rdbms 8.1.6 or 8.1.7 to have a bug filed.
to be in a supported configuration, you'll need to move to rdbms 8.1.6 or 8.1.7 (preferred) and stick with jdk 1.2.x.
Similar Messages
-
Could not connect to Oracle database from excel macro. Getting connection not open.
Hi all,
I could not connect to oracle database using excel macro. After much R&D also, I cannot find right solution. Please help me where I am doing wrong.
Sub Button2_Click()
Dim Conn As New ADODB.Connection
Dim RS As New ADODB.Recordset
Dim Cmd As New ADODB.Command
Dim sqlText As String
Dim Row As Long
Dim Findex As Long
Dim Data As Worksheet
Dim X As Long
Dim UID As String
Dim PWD As String
Dim Server As String
Dim strCon As String
Application.Calculation = xlCalculationManual
UID = "myUserid" 'Enter the User ID
PWD = "myPassword" 'Enter the password
Server = "myHostname or myServername"
Set Data = Sheets("Sheet2")
Data.Select
Range("A:J").ClearContents
strCon1 = "Provider = Microsoft.ACE.OLEDB.12.0;DATA SOURCE=myHostName;Database=myDBname;uid=myUserid;pwd=myPassword;"
Conn.Open (strCon1)
Cmd.ActiveConnection = Conn
Cmd.CommandType = adCmdText
' Put your query next
sqlText = " select * from table "
Cmd.CommandText = sqlText
Set RS = Cmd.Execute
For X = 0 To 17
Data.Cells(1, X + 1) = RS.Fields(X).Name
Next
Do While Not RS.EOF 'this loops through the data and puts it in the spreadsheet
Row = Row + 1
For Findex = 0 To RS.Fields.Count - 1
Data.Cells(Row + 1, Findex + 1) = RS.Fields(Findex).Value
Next Findex
RS.MoveNext
Loop
Application.Calculation = xlCalculationAutomatic
Application.Calculate
End Sub
sammyI have set oci.dll in to the path specified. Prior to this I musy say that, I have 64 bit excel 2010 & installed respective drivers from the link provided http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
But
still I am facing as:-" Provider cannot be found. It may not be properly installed."
sammy -
Could not connect to oracle OLAP
Hi
when i connect to Disco. Plus for "OracleBI Discoverer for OLAP" and Database as "localhost:1521:orcl" i got this message:
"D40-Could not connect to oracle OLAP"
so i run a Quick Diagnosis and i got this report:
JDK version = 1.4.2_04
BI Beans internal version = 3.2.1.0.13
Discoverer Plus OLAP version = 10.1.2..07.59
Discoverer Version = 10.1.2.45.46c
Connect to database = successful
JDBC driver version = 10.1.0.3.0
JDBC JAR file location = \localhost\disco\plus_files\d4o_double.jarjar
Database version = 10.1.0.4.0
OLAP API Server version = 10.1.0.4.0
OLAP AW Engine version = 10.1.0.4.0
OLAP Catalog version = 10.1.0.4.0
BI Beans Catalog version = N/A; not installed in younis
Discoverer Catalog version = N/A; not installed in younis
Authorized for Discoverer Plus OLAP = No!
OLAP API JAR file version = 9.2
OLAP API JAR file location = \localhost\disco\plus_files\d4o_double.jarjar
Load OLAP API metadata = Successful
Number of metadata folder = 1
Number of metadata measures = 3
Number of metadata dimensions = 4
Thanks
YounisI think you forgot grant OLAP_USER, D4OPUB role to younis
Make sure D4OSYS user is created. D4OSYS is the owner when the Discoverer OLAP catalog is created.
Make sure the OLAPSYS user and OLAP_USER/OLAP_DBA role is created in order to grant D4OPUB. You might need to run $ORACLE_HOME\olap\admin\olap.sql to create those accounts eventhough you have OLAP option installed.
I found directly install latest Oracle database patchset (10.1.0.4) and then create database doesn't have those accounts automatically, unless you are upgrade from 10.1.0.3.
Hope this can help -
Could not connect to DbaaS Service using the given user name and password.
I'm not able to create Java Cloud Service (Oracle Java Cloud - Virtual Image Services) for my newly created Oracle Database Cloud Service instance. It fails with
"Incorrect values entered
Could not connect to DbaaS Service using the given user name and password.
Verify that the user name and password are correct and the user name has SYSDBA privileges."
I'm using SYSTEM user and the password I used during Oracle Database Cloud Service instance creation. I've verified them with sqlplus and also by connecting remotely.
Java Cloud Service wizard doesn't allow me to proceed to instance creation.Hi Alexander,
Maybe you'll find useful the document from Oracle docs specified bellow regarding Creating an Oracle Java Cloud Instance:
http://docs.oracle.com/cloud/latest/jcs_gs/JSCUG/GUID-31F00F2C-221F-4069-8E8A-EE48BFEC53A2.htm#JSCUG3128
Thanks,
Cristiana.
#OracleCloud -
Could not connect to Oracle database. (HY000): BI Answers Problem
Hi,
I am using OBIEE 11g and 11g admin client tool is installed in my machine. I created one rpd and I deploy that rpd in the server through Enterprise manager fusion middleware control. But when try to run the analysis from BI answers it throws and error like
"TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)".
In the rpd I use OCI default (10g/11g) and cheked that connection is successful and also when I click on view data option in the physical layer I am able to see the data. I cheked with DBAs and correct TNS entries are also there in the server. Could not understand where is the problem.
Please help.
Thanks
TitasTry like this
Call Interface: Default (OCI 10g/11g)
Data source Name->localhost:1521/XE
BTW: Whats the client bit version 32/64 bit, if you have 64bit and above is not working try with Oracle client 32bit.
Pls mark correct/helpful if helps -
ORA-12154: TNS:Could not connect to Oracle database.
Hi All,
I'm getting the following error while trying to access OBIEE dashboard.
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)
I have oracle 10g R2, I can connect my database using SQLPLUS. I am not able to do Update Row Count from Admin tool also. If anyone come across this issue, please share your experience. Anyhelp would be appreciated.
Thanks,
RaviThe problem is OBIEE server not able to read the tnsnames.ora file. That depends upon the what you set as ORACLE_HOME. that can be find with tnsping command at command line. Follow this article about setting up oracle home and oci drivers
http://oraclebizint.wordpress.com/2007/10/03/oracle-bi-ee-101332-identifying-oracle-homes-for-oci-drivers/
please make sure that your DB-home is the first entry in your PATH environment variable.
Have you created TNS_ADMIN environment variable. Create a environment variable TNS_ADMIN which maps to location where tnsnames.ora file located.
let me know if you are not able to load after this steps.
- Madan -
D40-1015 Could not connect to Oracle OLAP
Hello,
I have installed new 10g R2 database on Sun Solaris 64 bit, When I access the discoverer I am getting this 'D40-1015 Could not connect to Oracle OLAP' error. I have installed OLAP and XDB everything.
How do I recover from this error, any idea would be greatly appreciated.
FYI,
OracleBI Discoverer
Diagnose Connection
BI Beans Catalog Version....=N/A; not installed in uv
Discoverer Catalog version....=N/A; not installed in uv
Thanks,Hi,
Did you install the Discoverer catalog and authorize users? (see the Configuration Guide)
Regards -
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.
nullThe 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 -
Could not connect to ESS when using vpn or remote connection to network.
Hi,
Our users could not connect directly to ESS when they are using vpn or dial-up. The ESS link would ask for user id and password. There is no problem when they are directly connected to the office network. The ESS page will display directly when they click on it. It will not ask for user id and password. We are using Single Sign-On.
thanks,
krbasI have solved the problem.
The problem was solved by including the url of our server in the exception list of the IE proxy settings of VPN.
Thanks to me. :-D
Now.... How can I assign points to myself? -
ORA-93114 Not connected to Oracle when using hsodbc
Hi,
I am trying to transfer data from SQLServer 2000 to Oracle 8.1.6 on Sun.
I have configured my ODBC on Sun and it works fine.
Now I am trying to get the data in Oracle.
These are my settings in hsodbc.ora,tnsnames.ora and listener.ora.
HS_FDS_CONNECT_INFO = nj050149
HS_FDS_TRACE_LEVEL = 2
HS_FDS_TRACE_FILE_NAME = $ORACLE_HOME/hssql.trc
HS_FDS_SHAREABLE_NAME = /opt/odbc/lib/ivmsss18.so
# ODBC specific environment variables
set ODBCINI=/opt/odbc/odbc.ini
===============================
tnsnames.ora
hsodbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 1521))
(CONNECT_DATA =
(SID = hsodbc)
===============
listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 1521))
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 2481))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = oradev.css.mot.com)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(SID_NAME = NJ05DEV)
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(PROGRAM = hsodbc)
==========
I have set up a dblink pointing to hsodbc.
But when I try to select from a table in SQLServer
I get the error message
ERROR at line 1:
ORA-02068: following severe error from HSODBC
ORA-03114: not connected to ORACLE
Can you please help. I could not identify the problem.
Thanks
AnaHi,
I am trying to transfer data from SQLServer 2000 to Oracle 8.1.6 on Sun.
I have configured my ODBC on Sun and it works fine.
Now I am trying to get the data in Oracle.
These are my settings in hsodbc.ora,tnsnames.ora and listener.ora.
HS_FDS_CONNECT_INFO = nj050149
HS_FDS_TRACE_LEVEL = 2
HS_FDS_TRACE_FILE_NAME = $ORACLE_HOME/hssql.trc
HS_FDS_SHAREABLE_NAME = /opt/odbc/lib/ivmsss18.so
# ODBC specific environment variables
set ODBCINI=/opt/odbc/odbc.ini
===============================
tnsnames.ora
hsodbc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 1521))
(CONNECT_DATA =
(SID = hsodbc)
===============
listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 1521))
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(ADDRESS = (PROTOCOL = TCP)(HOST = oradev.css.mot.com)(PORT = 2481))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = oradev.css.mot.com)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(SID_NAME = NJ05DEV)
(SID_DESC =
(SID_NAME = hsodbc)
(ORACLE_HOME = /home/oracle/product/8.1.6)
(PROGRAM = hsodbc)
==========
I have set up a dblink pointing to hsodbc.
But when I try to select from a table in SQLServer
I get the error message
ERROR at line 1:
ORA-02068: following severe error from HSODBC
ORA-03114: not connected to ORACLE
Can you please help. I could not identify the problem.
Thanks
Ana ==============================================
I modified the tnsnames.ora to say
hsodbc.css.mot.com =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nj050149)(PORT = 1521))
(CONNECT_DATA =
(SID = hsodbc)
and now I get an error message saying
ORA-12545: Connect failed because target host or object does not exist
Please help.
Ana -
Could not connect to Oracle Server...
Hi All. I set up a Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on a Win XP Pro machine (say Machine A). When I tried to connect to the database using SQL*Plus from another machine (say Machine B) its throwing error...
ORA-12170: TNS: Connect timeout occurred
When I tried to telnet by IP...its saying
Connecting To xx.xx.xx.xx...Could not open connection to the host, on port 23: Connect failed
But its pinging successfully to this IP.
I have added a TNS entry to the Machine B tns.ora.
Please let me know what to do next?
I'm able to connect to database form Machine A through SQL*Plus.>> Connecting To xx.xx.xx.xx...Could not open connection to the host, on port 23: Connect failed
What command did you try check this??
Did you try to telnet as follows
telnet ip database_port i.e. telnet xxx.xxx.xxx.xxx 1521
>> I have added a TNS entry to the Machine B tns.ora.
Are you able to tnsping the tns service?
c:\>tnsping <tnsnames entry>
Regards,
Sabdar Syed. -
Could not connect with Oracle 9iAs Portal
I have already install oracle9iAs ,but when I try to connect to
oracle 9i AS portal , the server return these messages to me :
Proxy log On failed.
Please verify that you have specified correct connectivity
information i.e.username, password & connect-string in the
Database Access Descriptor
Error-Code:6401
Error TimeStamp:Thu, 18 Oct 2001 08:22:24 GMT
Database Log In Failed
TNS is unable to connect to destination. Invalid TNS address
supplied or destination is not listening. This error can also
occur because of underlying network transport problems.
Verify that the TNS name in the connectstring entry of the DAD
for this URL is valid and the database listener is running. "
How could I do ???
Thank you !Shi
Check out the FAQ document on portalstudio:
http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#Inst
allation
And Troubleshooting section of the Configuration Guide:
http://otn.oracle.com/docs/products/ias/doc_library/1022doc_otn/p
ortals.102/a90096/toc.htm -
I tried to update my browser from 3.6 to4.0. On restarting the computer I found I could no longer connect to the internet. I then connected to the internet using Internet Explorer and removed the mozilla browser and reinstall Mozilla firefox 4.0. Again the browser using this updated version didn't work. So reinstalled Mozilla firefox 3.6 and it worked.
It appearsMozilla firefox 4.0 has a problem.
My operating system is Windows XP pro.Uninstall 2.x totally
Use CCleaner Registry tool
Do whatever you need to to nuke the existing Apple programs and folders hidden here and there also.
BC 2.2 was XP and Vista only -
Connect to oracle 8i using jdbc thin driver
Hi developers....
I am a new for java. jdk1.5.1,oracle 8i these are installed in my system.those are working well.Now i want to connect oracle database using Thindriver.I have no idea to write a code.Any one give an example for me.
My system name:developer
java :jdk1.5.1
oracle :8i
Thank u
with reguards
sure....:)http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html -
Help connection to oracle db using jdbc
Hi
I am trying to connect to a oracle database. I am using Oracle 9 and jsdk 1.4.2. but i keep getting the following error and i dont know what iam doing wrong.
I have put in my classpath where the orcle drivers are. I have also tried puting the drivers in j2sdk/jre/lib folder (files copied nls_charset12.zip,classes12.zip,ojdbc14.jar). My code compiles and runs but the error i get is
"java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver"
SAMPLE of my code:
Class.forName("oracle.jdbc.driver.OracleDriver");
String dataSource = "jdbc:oracle:thin:@devflgdb";
Connection con = DriverManager.getConnection(dataSource,"babu_s2","babu_s2");I am working on the same; here is my servlet code, hope it helps
private static void loadJDBCDriver ()
System.out.println ("Loading Database driver...");
try {
DriverManager.registerDriver ( new oracle.jdbc.driver.OracleDriver());
catch (Exception e) {}
try {
DriverManager.registerDriver ( new sun.jdbc.odbc.JdbcOdbcDriver() );
catch (Exception e2) {
System.err.println ("loadJDBCDriver: " + e2.toString());
return;
System.out.println ("Database driver loaded...");
private static Connection getConnected () {
System.out.println ("Establishing database connection...");
String jdbc_url;
Connection conn;
try {
jdbc_url = "jdbc:oracle:thin:@localhost:1521:oracle";
conn = DriverManager.getConnection (jdbc_url, "scott", "tiger");
catch (Exception e) {
try {
jdbc_url = "jdbc:odbc:BookNook";
conn = DriverManager.getConnection (jdbc_url);
catch (SQLException e2) {
System.err.println ("getConnected: " + e2.toString() );
return null;
System.out.println ("Database connection established ...");
return conn;
Maybe you are looking for
-
Is there any standard report for GR / IR to see as on particular date
Hi , Is there any standard report for GR/ IR to see as on paricular date. please help me. points will be given. regards, Hari priya
-
How do I add a 'bcc' field in icloud email online?
I'm away from my stupid mac using a pc and online on icloud (in my mail) and need to send a group email using bcc but THERE'S NO BCC FIELD AND NO WAY TO ADD A BCC FIELD TO THE EMAIL! ***?!?!?! In another discussion someone wrote: "If you dont see a "
-
when i running my application show me this error and i can not understand what i do to solve its D:\JDeveloper11\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\bin\startWebLogic.cmd [waiting for the server to complete its initialization...]
-
I am trying to convert an Illustrator cs6 file to a PDF and every time I do it, I lose all text and images. Can someone provide some assistance? Thank you!
-
I noticed this issue the same day my email account was hacked.