Jdeveloper run time oracle libraries

Hi, I installed jdeveloper and was trying to connect a java class to one of my oracle databases. When I try to "Run" the class in JDeveloper I get the error message below. So it compiles but can't find the run time libraries. So how do I tell JDeveloper where the run time libraries for jdbc are?
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.OracleDrive

Shay, Thanks added the jdbc library and the message is changing so progress.
in the conn string
("jdbc:oracle:oci8:@myserv.mycomp.com:1522",
getting this message now: which library has oci in it, none of them say oci:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path

Similar Messages

  • Dynamic run-time objects in a query

    Hi everybody,
    I came across some docs that say this Dynamic SQL fails:
    CREATE PROCEDURE drop_table (table_name IN VARCHAR2) AS
    BEGIN
    EXECUTE IMMEDIATE ’DROP TABLE :tab’ USING table_name;
    END;
    Can someone explain why can't an object name be provided through a bind variable?
    And the workaround, according to the docs is:
    CREATE PROCEDURE drop_table (table_name IN VARCHAR2) AS
    BEGIN
    EXECUTE IMMEDIATE ’DROP TABLE ’ || table_name;
    END;
    Can you clarify on this?
    Thanks.
    -- Kishore.

    Kishore:
    It is not really the compilier that has the problem, it is just telling you that your code will not run when you try to execute it. When you use bind variables, as in Case 1, Oracle does not "see" the value of the bind variable until it actually executes the statement (we'll ignore peeking in 9.2). So, if you issue something like:
    SELECT col
    FROM t
    WHERE id = :bvWhen Oracle parses the query, it will check to see that t exists, you can select from it, col exists in t, etc. Then, the optimizer will look at the WHERE clause and say "I've got an equality predicate, is there an index on id? If so, it will most likely choose an index based access plan. At this point, the optimizer has no idea what the value of bv is. Now, it will bind the value passed into the query and executes it.
    This can lead to bad plans if you have skewed data and no histograms what if id has only 2 distinct values 1 row with id 1 and 99,999 with id 2. If you pass 1 for id, then id is the proper access plan. However, if you pass 2 then a full table scan is much more appropriate.
    Now, think about the sequence of events when you try to bind the object name into DDL. What the database will see at run time from the execute immediate statement is:
    DROP TABLE :bv;The same things happen in the parse phase as in the SELECT. Oracle will check whether the table exists, that you have the required permissions to drop it, etc. But, which table does it check? Remember, at this point Oracle does not know what value is in the bind variable.
    In case 2, what the database will see as the sql statement when the procedure executes is:
    DROP TABLE t;Now, at run time, Oracle can do all the required parse time checking and execute the sql statement. The compiler recognizes that the string passed to execute immediate will be at least parsable by the database and allows the compilation to succeed.
    HTH
    John

  • How to configure oracle 6i report server run time component with application server

    we got oracle 6i report server for developing the web based reports for our undergoing product. we r succesed in developing the web based reports using oracle 6i report server.But we r facing problems while deploying the product with oracle reports at clients place,why because the client does not have the oracle 6i report server. To solve this problem we have to configure the oracle 6i report server run time component with application server at client side , but we are unable to configure this component(that is CGI handler).

    You can run multiple instances of Reports Server in 6i.
    In tnsnames.ora, for each server, have a different name and each listening to different port.
    For example,
    server1.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1949))
    server2.world = (ADDRESS = (PROTOCOL = TCP)(Host = myhost.mydomain.com)(Port = 1950))
    Also, if you want to know about Reports Server Clustering, you may refer to "Publishing Reports" document on OTN:
    http://otn.oracle.com/docs/products/reports/pdf/A73173_01.pdf

  • JDeveloper: Viewing a .css on JSP at design-time + run-time

    Hi,
    As a newbie to JDeveloper, i'm struggling to get a stylesheet reference to work in both the Design view and at run-time. Dragging a stylesheet on to the JSP works fine in the development enviroment, but when the JSP is called from a controlling servlet, the stylesheet doesn't render. From looking on the web it seems i have to use request.getContextPath() to get the path: doing this works at runtime, but in the design view of JDeveloper doesn't show anything (obviously wouldn't because the getContextPath is evaluated at runtime).
    Is there a work around so i can see a style sheet rendered in both design & runtime?
    Thanks,
    Phil

    Hi,
    Thanks for your reply. When I added my stylesheet (from the component palette) JDev put it in a 'css' folder. When I drag it on to the page it uses ..href = "css/stylesheet.css".. This doesn't work at runtime, neither does href = "/css/stylesheet.css".
    To explain the problem better...if I create a new project with 2 jsp files and link them together with Go to page 1 etc this is fine. As soon as I use the mvc method of controlling jsps thorough servlets I can call page 1 fine, but if I linked back to page 2 with the href calling the jsp directly (rather than through a servlet) it won't find the page, because the context root has an extra 'servlet' folder on the path, ie it's looking for page 2 in "Testing-Project-context-root/servlet/page2.jsp", when it's not located in a servlet folder. This is why the css file is not rendering, because it's looking for it in a servlet folder. I can only get round it at the moment by using:
    <link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/stylesheet.css"/>. This of course is no good in the development environment.
    Thanks,
    Phil

  • Get report file name in oracle report builder at run time

    Dear All,
    Is there any way to get the report file name in oracle report builder at run time?
    for example "HR_REP012.REP"
    i need this very important...
    Regards,
    Yousef
    Edited by: Yousef_m on Jun 2, 2012 5:18 AM

    Hello,
    Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
    Example
    function AfterPForm return boolean is
    my_var varchar2(80);
    BEGIN
    SRW.GET_REPORT_NAME(my_var);
    SRW.MESSAGE(0,'Report Filename = '||my_var);
    RETURN (TRUE);
    END;
    Regards

  • How to convert a oracle 6i Report to pdf and also mailed at run time.

    I need the code of oracle report to convert it into pdf and aslo mail it to specified email address at run time.
    I need full code using add_parameter() built in.

    Hi!
    R u talking about FORMS report or u want to generate any EXCEL report from Oracle PL/SQL?
    Regards.
    Satyaki De.

  • JDeveloper 3.1 JSP Engine Run-Time error - "NLSFormat undefined"

    hi,
    I have a JSP/Bean page running through JDeveloper 3.1
    It has the "EditForm" bean with (among other fields) a date field in it.
    <jsp:useBean class="....EditForm" id = "f1">
    <%
    f1.initialize(.....);
    f1.setFormAction(.....);
    f1.addHiddenField("executeQuery","true");
    f1.addDateField("List Docs failed on","ReportDate1",null,null,null,null);
    f1.addSubmitButton("submit","Submit");
    f1.render();
    %>
    Scenario:
    When the JSP page is generated and i enter a date value like (08-SEP-00) and click on the "Submit" button, i get the following error.
    Error Name: "Run-Time Error: NLSformat is undefined"
    The relevant generated HTML line in the page which has the NLSformat in itis as follows:
    <INPUT TYPE="TEXT" NAME="ReportDate1" onchange="this.value = datecheck(this.value,NLSformat);checkForError(this,distribute)"
    Is NLSformat something to do with the datefield ? - I was reading thru the OTN docs, does NLSformat need to set up as a startup parameter in the 8i instance? - is that the way the JSP engine picks up the value/definition of the NLSformat variable? - I would really appreciate some replies on this issue.
    Thanks,
    Balaji
    null

    Hello,
    Even I am facing the same problem on windows 98. When I try to run my database servlet from Jdeveloper3.0 nothing happens.
    In browser .../.../webapprunner.html url gives similar error like the one Flavio is getting. Which version of Jdeveloper can I use on Win 98?
    Thanks
    null

  • ORACLE Forms Run Time error FRM -92050 failed to connect to server

    server name:
    osfsun.oklaXXX:9000
    Details:
    Java Exception
    Java.netNoRouteToHostException: operation timed out
    at java.net.plainsocketImpl.doConnect(Compiled Code)
    at java.net.plainsocketImpl.connectToAddress(plainsocketImpl:124)
    There is more....
    I have opened the port 9000 in my LAN firewall, I have checked Jinitiator control panel, I'm able to resolve web address but receive this web run time error,.anyhelp would be appreaciated.
    thanks

    I resolved this issue. It was related to the firewall using port 9000/ The issue was not related to Oracle.

  • Jdbc with oracle ....run time error!

    I'm trying to connect to Oracle using jdbc.
    this is the simple code for my program, I'm getting run time error...."memory could not be read"
    import java.sql.*;
    class MyCon{
    public static final String JDBC_URL = new String("jdbc:oracle:oci8:@BhDb1onlocalhost");
    public static final String USERNAME = new String("scott");
    public static final String PASSWORD = new String("tiger");
    public static void main(String args[])
    try {
         MyCon myob = new MyCon();
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         Connection con = DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
         Statement stm = con.createStatement();
         ResultSet rs = stm.executeQuery("Select * from Providers");
         ResultSetMetaData rsmd = rs.getMetaData();
         while(rs.next()) {
         for(int count=1;count<=rsmd.getColumnCount();count++) {
              System.out.println(rs.getString(count));
    } catch(Exception e) {
         System.out.println("caught:"+e);
    I'm using windowsNT 4.0
    jdk1.2.2
    oracle 8.1.5
    classess111.zip is in my classpath
    thanx in advance.

    <<jdbc:oracle:oci8:@BhDb1onlocalhost>>
    I haven't ever used the oci8 driver, but you could use the thin driver as follows:
    jdbc:oracle:thin:@localhost:1521:BhDb1
    The thin driver is more portable since it doesn't require the NetClient to be installed.
    Hope this helps.

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Oracle 10.2 Predictive Analytics Spreadsheet Add-In - Run-time error 429

    Hi,
    I installed the "Oracle 10.2 Predictive Analytics Spreadsheet Add-In" for Excel. When I'm running Excel, and I click the OraclePA menu option "connect", I get the error:
    Run-time error 429:
    ActiveX component can't create object
    I am running Win-2000, and I have the 10.2.0.1.0 (with Data Mining Options) DB installed locally.
    Any ideas on how to resolve this error?
    Thanks.

    Hello,
    this is the typical error seen when trying to activate a program after installing it without restarting your computer first.
    you it tried to restart your computer ????
    What is version of the excel ?

  • How to generate database text items at run time in oracle forms 6i?

    i have a text item with NUMBER OF ITEMS DISPLAYED=3. My requirement is, i need to generate text items at run time under each TEXT ITEM(3 text items will be there since number of items displayed is 3) and the values will be stored in the database based on the primary key combination. pls help me to solve this pblm

    Hi,
    You cannot generate items dynamically at runtime. The only thing you can do is show and hide item on time. Thay seems that they are generated at run time. Second thing you can do is that you can put items on stack canvas and set visible property of stack canvas to no and at run time set it to visible according to ur condition. Otherwise there is no way. If you find any other way, plz do inform here also.

  • How to auto-generate a "empno" field at run time in oracle forms 6i

    Hello!
    I have connected to a SCOTT schema. And i am using emp table. At run time mode when i press F8 then the data is displayed in the fields.
    My task is to generate auto "empno" as soon as i run the form. Kindly do the needful.
    Thanks in advance

    Hi Francios,
    I think with your solution our user only able to see the current information in the form.I donot think it will auto generate the empno.
    Dear user,
    I suggest what you can do is to create one sequence in your database and use it to generate automatic
    empno.
    In post query trigger try to implement the idea.
    Suppose in the name of the sequence is empno_seq.
    if emp.empno is null then
    :emp.empno := empno_seq+1;
    end if;
    Try i hope it will work
    Regards
    Rajat

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • Run time improvement strategies in Oracle 9i PL/SQL

    Hi,
    I have a PL/SQL program that does some calculations and updates few tables. The program now needs to scale to support some terabytes of data. Also I have a constraint on the run time of the program (around 30 mins). The Logic for the program supports parallel execution. Just wanted to know what are the ways to handle these volumes. This is my first time handling these volumes any ideas are highly appreciated.
    Are table function with parallel execution right approach? Are there any other ways that one can handle these volumes.
    Thanks for ideas in anticipation.
    Regards
    Vishwa

    >Are table function with parallel execution right approach?
    That largely depends on more detailed requirements than what you have listed - and of course testing the design and code to 'destruction' :-)
    > Are there any other ways that one can handle these volumes.
    Yes. If you need to process an entire table, you can simulate in PL/SQL what Parallel Query (PQ) does when faced with the same problem. You determine the number of parallel processes you want to fire up. You create a unique and non-overlapping range of row ids for each of these processes. These processes use this range in their predicates (e.g. WHERE rowid BETWEEN :start AND :end) to only process their range of rows. I have posted code in Replication using PL/SQL that shows how to determine such ranges dynamically.
    Once you have determined these ranges, you simply fire off a DBMS_JOB as the parallel process.

Maybe you are looking for

  • ERROR ORA-30200 IN RUNNING CREATION FILE - Forms [32 Bit]

    Running a process of Forms [32 Bit] Version 6.0.5.35.3 get the error ORA-30200 while running the same process from a different computer file creation occurs in a correct way (This is a client-server) The form uses the TEXT_IO and specifically the fol

  • Debugging Outbound Function module in EDI

    Hello All, I have a query regarding debugging function module which is used for creation of outbound Idoc for Purchase Order. We have a Z process code which is assigned to a Z function module which creates an IDOC while a PO is created in the system.

  • NI: Please don't put illegal vi names in your toolkits, thanks

    Http Standalone?.vi Not An FTP Session?.vi DoNIsEngineersKnowThatQuestionMarksInVINamesAreConsideredIllegalByTheABAPIAndWillBreakAppBuilds?.vi These vi names with question marks will break a build.  The ones I found were all part of the internet tool

  • Error Constructing or Publishing Certificate

    hi while i am trying to request a client certificate via certificate webui i get failed request dispostion message: "Error Constructing or Publishing Certificate" can any one please tell me why it's happing? thanks albert 

  • Pre-Pay account Phones

    Hi, I have a lg chocolate I've had for 3 years now and have about $250 built up on the pre-payed acct. the phone is now acting up and I have to get a new one. Is there a listing of pre-pay eligible phones I can use? Will any Verizon phone(i.e. A "Sma