Help for getting connection with oracle database

Hello,
i have a problem to connect my java program with oracle databse.
i have oracle 8 release. i tried all my best to connect but i
can't. please help me. whenever i compile JdbcCheckup.java file
which is distributed with oracle 8 release, it compile successfully.
but whenever i run JdbcCheckup class file then it will generate an
exception and that is -
Exception in thread "main" java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
     at java.lang.class.forname0(native method)
     at java.lang.class.forname(unknown source)
and some other error message.
But, by following yours given instruction, first, i unzip CLASSES111.zip
in file which is distributed with oracle 8 realease in jdbc subdirectory
into c:\temp directory and then run oracle installer(setup.exe) and point
the installer to c:\temp and then i install the oracle JDBC drivers(beta)
7.3.3.1.3 from the jdbc subfolder into oracle installer by selecting
win95.prd for jdbc subfolder.
After that i write into my autoexec.bat file,
path d:\jdk\lib;d:\jdk\bin;c:\windows\command;C:\temp\BIN;c:\temp\jdbc\lib\classes111.zip
and then i restart the machine and the i complile and run JdbcCheckup file
But, i can't recognize my error to define class path or installing the
driver. please help me in details so that i overcome this problem.
because i am student of B.sc. in CIS of final year. i need to submit
my project within some days. please reply me as early as possible.
thanks
hemonto
email - [email protected]

path d:\jdk\lib;d:\jdk\bin;c:\windows\command;C:\temp\BIN;c:\temp\jdbc\lib\classes111.zipYou've added classes111.zip to your PATH, not your CLASSPATH.
Add it to your CLASSPATH using:
set CLASSPATH=%CLASSPATH%;c:\temp\jdbc\lib\classes111.zip
then try to compile/run again.

Similar Messages

  • Cannot establish connection with Oracle database

    Hello
    This is the first time I use BOE server with Crystal Report to execute some tests, and one issue is blocking me now, and I am not even sure if this is the right Forum where I should post it.
    I installed BOE server XI 3.1 SP4 on Linux machine (new installation), and then I uploaded some existing Crystal Report templates that are working fine on another BOE server. Those CR templates have to establish a connection with a remote Oracle database to get the data, and we pass all credentials for this purpose.
    The first time I run my first test I received this error that I could not find anywhere on the web :
    ErrorLog 2011  8 10  7:05:52.505 14215 356 (Administrator:82) (../reporthandler.cpp:12462): CReportHandler::buildReportViewerError: CSResultExceFailed to open the connection." FileName:"../reporthandler.cpp" LineNum:12458 ErrorCode:756 ErrorMsg:"Failed to open the connection.
    {FBAD55EE-BEAF-11E0-BC1C-005056813A72}.rpt" DetailedErrorMsg:""
    I believe that the CR was not able to establish the connection with Oracle, so I install Oracle Client on the same machine (test remote connection ==> pass), I set the ORACLE_HOME variable, and I edit the file <installation_home>/ bobje/java/CRConfig.xml to add the path to ojdbc14.jar, and finnaly restart the tomcat server. However I am still getting the same error message.
    Is there any hint that can help me troubleshooting this issue?
    Thank you

    do the reports use native oracle connectivity or JDBC ?
    what version of Oracle client did you install ?
    was it 32bit or 64bit client ?
    what your LD_LIBRARY_PATH variable set to ?
    what does it say in the CMC when you look at CR report's DB properties ?

  • Help needed in connecting to oracle database in unity

    Hi,
    I have been trying to connect to Oracle database in my codes. I have tried using OdbcConnection and OleDbconnection. But both did not allowed me to connect to the database. The database, testDb, can be accessed using SQL plus as well as the SQL developer. I even tested the connection successful using ODBC data source administrator.
    the following is my code for the connection string:
    OdbcConnection connectionString = "Driver={Oracle ODBC Driver};Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP )(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=Te stDb)));Uid=scott;Pwd=password;";
    the error i got is [ODBC Driver Manager] Data Source name not found and no default driver specified.
    for the driver parameter, i have tried using "Microsoft ODBC for Oracle". It gives me another error stating that the oracle and network components are not installed.
    I even tried "Oracle in OraDb11g_home1" which was specified in the ODBC Data Source Administrator. The same error came out.
    Below are some of my specifications:
    Platform: Windows 7 64bit
    Oracle: Oracle Database 11g Release 2 (64bit)
    Unity: 4.1.2
    Can someone please help me with this? What is it that i have done wrong?
    Thanks.

    1008737 wrote:
    Hi,
    I have been trying to connect to Oracle database in my codes. I have tried using OdbcConnection and OleDbconnection. But both did not allowed me to connect to the database. The database, testDb, can be accessed using SQL plus as well as the SQL developer. I even tested the connection successful using ODBC data source administrator.
    the following is my code for the connection string:
    OdbcConnection connectionString = "Driver={Oracle ODBC Driver};Server=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP )(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=Te stDb)));Uid=scott;Pwd=password;";
    whenever localhost (127.0.0.1) is used, this means that no remote client can ever connect to this system
    The problem involves ODBC configuration & has nothing to do with Oracle.

  • Can i use "Oracle Database 12c: Performance Management and Tuning " training for getting certification on "Oracle Database 11g: Performance Tuning 1Z0-054"

    i have taken "Oracle Database 12c: Performance Management and Tuning new" training from oracle university. Now i would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054" exam. Is it possible ?

    I essentially endorse and refer you to Matthews' and John's post above.
    I would differ with slightly with Matthew because my guess is you would often be able to use like for like 12c training for an 11g certification ( I believe there are precedents).  BEFORE ANYONE ASKS THE OTHER WAY DOESN'T HAPPEN.
    .... but totally concur with Matthew you would ill advised to procede on that basis without one of:
    - This being advertised as possible on the website : e.g. https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=654&get_params=p_id:169 ... option 2 show courses.
    - Confirmation from Brandye
    - Confirmation from an Oracle Certification Support Web Ticket ( http://education.oracle.com/pls/eval-eddap-dcd/OU_SUPPORT_OCP.home?p_source=OCP )
    ... The more common (and in my opinion usually better) way would be get your 11g DBA OCP ( or higher first) and then take the 1z0-054.  I am almost certain they will accept your 12c course for the 11g DBA OCP.
    If you are choosing the route of not being a 11g (or 12c ) DBA OCP first but are on option 2 and relying on the course for certification then the issue is more in the balance and you are even more strongly advised to get confirmation before proceding (remember if the rules need to be changed for you only then any profit out of the exam is lost).
    In general my understanding is Oracle would prefer to encourage people to train on the latest version of product that is available for training  and will prefer to avoid restrictions which would cause you to train at a lower version.  ( This is simply my guess at Oracle University Policy ... personal opinion only).
    Having said all I have said I'd encourage you to go with the advice of the earlier two posts.

  • Connectivity with  oracle database using web Dynpro(for java)

    Hi,
    In web Dynpro we will connect to SAP systems by using Adaptive RFC.  Then How to connect the oracle 8i/9i using webdynpro? Plese tell me the procedure to establish the connecting using enterprise portal?
    Thanks & Regards,
    Mastanvali Shaik

    Hi,
    Check these:
    WebDynpro and Oracle using DTOs
    https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup
    Connecting Problum of SQL
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Problems with connection with Oracle Database (Dreamweaver)

    I'm trying to create a connection with a oracle database, with JDBC.
    In order to do that, I've downloaded the classes12.zip driver in my machine. This is the driver from Oracle.
    I've put this file into directory c:\Program Files\Macromedia\Dreamweaver MX\Configuration\JDBCDrivers.
    So, I've gone to Window -> Application -> Databases menu into Dreamweaver MX, clicked in the plus (+) signal and choosed Oracle thin Driver (Oracle).
    I've filled thin window with the following values:
    Connection name: conn1
    Driver: oracle.jdbc.driver.OracleDriver
    URL: jdbc:oracle:thin:@machinename:1521:SID
    Username: ....
    Password: ...
    When I click in the Test button into this window, the following success message appears:
    Connection was made successfully!
    But when I go to Bindings window to build a Recordset, the connection doesn't get the tables, and the following error message appears:
    Unable to retrieve tables from this connection, click on 'Define...' button to test this connection.
    Does somebody know the answer for this problem?
    Thank you.

    Don't bother with a loopback adapter unless you are using a laptop that needs Oracle to work whether connected or unconnected to the business network. Much simpler to just arrange for DHCP to assign you a fixed IP address (a lease reservation).
    It's the change of IP address which trips Oracle up, not the existence of DHCP. So if you can make sure your IP address will be the same, no matter how you acquire it, that's all you have to do.
    Installing a loopback adapter which isn't the primary interface at the point you install Oracle will mean your installation will get very confused as to whether to address things via the 127... address or the "normal" IP address. And yes, at that point, you'll not be able to connect to instances, or run listeners or do all sorts of other things reliably.
    If it were me, I'd uninstall the mess you probably now have as far as Oracle goes, install something like VirtualBox (free) or VMware Workstation (costs) and enjoy your Oracle experience inside the confines of a virtual machine whose networking setup you can configure and control to your heart's content, without it screwing up your real machine's ability to connect to your work's network when it needs to.

  • How to connect with Oracle database in JSF ?

    Hi ,
    am very new to JSF,i want to perform a database connection with an Oracle database through JSf.Is there any special tag as such in struts for DB connectivity in JSF?Can any one help me?

    No.
    A database shouldn't even be reached from inside the view layer. Do it in the controller/business layer, e.g. the backing bean. Read on about JDBC, DAO, DTO. If you're already familiar with that, consider an ORM, like Hibernate.

  • Get connection with a database

    Hi all.
    I have here on my notebook an oracle and access database.
    For the access database i downloaded a driver (from easysoft),
    for the oracle database there's no need to download a driver.
    For the access database I added the classes in the classpath.
    I don't know how to connect to either of the databases.
    Normally it is for Oracle: Connection conn= DriverManager.getConnection ("jdbc:oracle:...)
    and the driver: DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    And for access: Connection conn= DriverManager.getConnection ("jdbc:easysoft:");
    and DriverManager.registerDriver(new easysoft.sql.jobDriver());
    Does anybody know how to set the URL??
    Thanks!

    Cakrat, here's my code:
    To connect with Access:
    public class AccessDatabase extends JFrame {
    private Connection conn;
    private Statement stmt;
    public AccessDatabase() throws SQLException,IOException{
    DriverManager.registerDriver(new easysoft.sql.jobDriver());
    System.out.println("Connecting...");
    conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
    System.out.println("Connected");
    stmt=conn.createStatement();
    ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
    while(r.next()){
    String a=r.getString("name");
    String b=r.getString("adress");
    System.out.println(a+""+b);
    and for Oracle:
    public class AccessDatabase extends JFrame {
    private Connection conn;
    private Statement stmt;
    public AccessDatabase() throws SQLException,IOException{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    System.out.println("Connecting...");
         conn= DriverManager.getConnection ("jdbc:oracle:thin:@106.52.8.210:1521:ORACLE92","rachid","rachid");
    System.out.println("Connected");
    stmt=conn.createStatement();
    ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
    while(r.next()){
    String a=r.getString("name");
    String b=r.getString("adress");
    System.out.println(a+""+b);
    }}}

  • Is it possible create a new connection with oracle database in javascript or formcalc?

    I need create a new connection, but it is necessary that I connect when the user click in a button.
    Is it possible?
    How can I do?
    Thanks
    Rubén

    How to connect ORACLE database to ADOBE LIFE CYCLE READER EXTENSION or ADOBE LIFE CYCLE DESIGNER

  • Getting following error while creating a datasource connection with oracle database.

    I have 32 bit oracle server installed in remote server.
    and 64 bit sql server 2008 r2 report server installed, and 64 bit oracle client installed on my report server  while create a new datasource
    in the report server i am getting this error
    Error 
    Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle
    client components installed
    How can i fix this and let me know the reason

    This link will help you out.
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/0a38fa00-31de-49de-b68f-4c5a4565e5b1?prof=required
    Milan Das

  • Typical resolution logic for client connection request (Oracle Database 11g)

    Salam, hello everyone, I would know the process that oracle follows to connect a client to a database (local or remote connection) via this command : connect username/password[@connect_identifier].
    Can someone help me with that?

    The first decision is whether the connect request includes a connection string or not.  Examples:
    This does,
    connect [email protected]
    An this doesn't,
    connect /
    Your question regarding "LOCAL env var" I think is referring to client environment variables? They are tested with decisions for TNS_ADMIN,ORACLE_SID, and ORACLE_HOME at several points. Remember that the client process may be running on a remote machine, or on the server machine from the same Oracle Home as the instance or different.
    That should give you a good start. If it doesn't, post your email and I'll send you a full description. The usual route for contacting authors is through the publisher, but we can short-circuit the process here.
    Don't worry about Mr Bakker thinking that we do not understand SQL*Net. He has not seen any context, and his constructive criticism is based in incomplete data. You will soon understand SQL*Net better than most.
    Please remove the diagram.

  • Not getting connection with Oracle 10g

    Dear All,
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."
    Please give me reply

    user8451897 wrote:
    I have installed oracle 10 g on linux , but when I want to connect it gives error msg like this
    "Firefox can't establish a connection to the server at 127.0.0.1."What do you expect to access via HTTP on localhost (127.0.0.1)?
    Are you looking for Oracle's Enterprise Manager (OEM)? Are you looking for Oracle's XDB (XML database's webdav interface)? Are you looking for Apex (Oracle's Application Express)? Something else?
    Installing also does not mean that you have created any of these services. You typically needs to run dbca (Data Base Creation Assistant) to create a database instance first (which will also setup OEM for you). OEM, XDB and Apex also do not run on tcp port 80 as that requires root privs that the Oracle processes do not have.
    So you need to explain exactly what you are doing and what you are expecting.

  • VB6 source code cannot connect to Oracle database after compile to file.exe

    Hi All,
    I have a problem about VB6 connect with Oracle database. It can connect as normal when run on VB program. After compiled to file.exe and execute, it cannot connect to Oracle database. What's going on ? Please advise? Thank you.
    Here is sample of my code connection.
    Option Explicit
    Private wsData As New ADODB.Connection
    wsData.ConnectionString = _
    "Provider=MSDAORA.1;User ID=lsp;Password=lsp2007;Data Source=prd01;Persist Security Info=False"
    wsData.Open
    End sub
    Rgads,
    Ats.

    Hi,
    I believe you're in the wrong forum, this forum is for Oracle Application Express.

  • Bypass Login with Oracle Database

    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..

    Akarsh wrote:
    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..Hi Akarsh,
    Use ON-Logon trigger at form lebel
    and put your connection string. then when you run this , it will not ask for connection identifier.
    Hope this works..

  • Connect to oracle database with visual studio 2005

    Hi, i have a oracle database called orcl (10.2). I am trying to connect with this database with visual studio 2005. I do this:
    In Server Explorer, right click in Data Connection and click in add connection.
    I choose oracle database and oracle provider.
    In server name I write the name of my computer, and i write the user and pass of the data base (sys or system) but it gives me this error: "ora-12514 listener doesnt know the asket for service in the description one of connection" (translated of Spanish)
    what i have to write in server name? host, host:port, LISTENER,.... what?
    Thanks

    Sometimes, you can check names using from the command line:
    $> tnsping <orcl>
    TNS Ping Utility for 32-bit Windows: Version 8.1.7.0.0 - Production on 10-ENE-20
    06 09:01:04
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521))
    Realizado correctamente (0 mseg)
    $>

Maybe you are looking for

  • Attaching objects from another library

    I have the following scenario: I have a main.swf, and it loads a lib.swf, in which library are some movie clips that I want to attach in main.swf. Is it possible? (PS: I do not want to attach the symbols inside the loaded lib.swf. What I want is to u

  • How to build statistics for a table, its urgent, points will be rewarded

    Hi friends, I want to create a statistics for MSEG table in production server, because its not up to date. Total no. of entries available in table is 2,30,000. My O/S windows2003 (cluster)/oracle9.2/ ECC 5. I need a step by step procedure to build or

  • Dba_scheduler_jobs table

    I've noticed that the gather_stats_job (job class: AUTO_TASKS_JOB_CLASS) record in dba_scheduler_jobs does not have an entry for next_run_date. Should it?

  • Opening iBooks into iBooks App

    I am a teacher trying to transfer an iBook (created in iBooks Author) from Dropbox into ibooks. I have transferred this book onto 57 students iPads using this method. But there are 3 iPads that will not work. I have tried uninstalling and reinstallin

  • Code inspector ' inactive program'

    hi , When i doing SCI FOR my program  , it is  shown that my program is inactive . but the prgram is active and i am not using any includes . please help thanks, sridhar