Oracle 9i and Java 1.5

Hi,
I use java stored procedure with oracle 9i, but I need to call java 1.5 libraries. Is there any way to change the java version of my database?
Mark Proctor : "There is no version of Drools for java 1.3. You would have to speak to oracle about jdk1.5 support on Oracle 9i. I would be very surprised if 9i didn't atleast support jdk1.4."
Any answer would be appreciated.
Message was edited by:
user626407

When I said I wrote an external java application, I meant that now, I call the database with Java. That is not what I wanted to do in the begining (because I wanted to compute my rules instantly with a trigger) , but it seems to work fine. I just have to save in a table the ROW_ID of the items I want to apply my rules on. And every 10 minutes for example, my java application is ran and apply rules on the rows.
But my application was really slow.
A select * is pretty fast but the inserts/update are very slow (1000 inserts / s). But I heard about SQL Loader. It's much faster, and I call it with the Runtime object in the standard Java library.
So it seems that all my problems are solved now. I can deal with a 1'000'000 rows table (select + drools computing + commit) in 1 minute.
Each 10 minutes :
My main Java app            Database Oracle 9i
       |_______SELECT * ____\
       |                    /|
       |                     |
       |/___RESULTSET________|
       |\
       |__
       |   |
       |/__| Build Object Collection from the result set
       |\
       |
       |                               My Drools java app
       |
       |___COMPUTE RULES ON Object Collection_______\
       |                                                                                                                                                            /|
       |                                             |
       |/______modified Object Collection____________|         
       |\
       |
       |
       |__
       |    |
       |    | Write a csv file for sql loader with the new object collection
       |/__|
       |\
       |
       |                        SQLLoader
       |_____Call SQLLoader_______\
       |                          /|
       |                           |That's a pseudo sequence diagram that describe well the arcitecure of my application.
Have you any suggestions, or advices to improve it (assuming that I am satisfied with the performances)?
null
Message was edited by:
user626407

Similar Messages

  • Oracle.exe and java.exe are running my CPU 100% under XP Prof SP3

    11gR1
    oracle.exe and java.exe are running 100% CPU
    I have increased virtual memory to 4 gig
    I have defragmented the drive.
    I checked the drive for errors.
    I am searching the whole drive for viruses
    I do not have the problem with Redhat Fedora 12 running 11gR1
    I have 1 gig of RAM but cannot install release 2 because the installer expects
    1 gig + 1

    ooops!!! left that off...sorry
    XP Prof SP3 32 bit..*.no problem with Redhat Fedora 12 running MySQL and 11gR1*
    1 gig RAM Dell precision W/S 1.5 Gig rate 74 GiG SCSI HD 15000 RPM
    Don't pass out but I am also running MySQL server 5.1.41 and MS SQL Server Express 2008.
    Lucky it didn't catch fire
    I installed XP prof months ago but this CPU domination occurred only starting last night!
    However slow everything works in 11gR1
    sqlplus myname/password and then select rows from table
    sqldeveloper
    PHP web sites
    I've had plenty of trouble with Java running slow and hogging memory!
    Edited by: landonmkelsey on May 2, 2010 12:21 PM
    Edited by: landonmkelsey on May 2, 2010 12:24 PM
    Let me guess...stop services for MySQL and MS SQL Server and see what happens!
    Edited by: landonmkelsey on May 2, 2010 12:26 PM

  • Few people are "Oracle ACE" and "Java Champion"

    Few people are "Oracle ACE" and "Java Champion"
    What's whose icon ?:|
    I think that icon should not be only one.
    For instance,I am Pro (I have 570 points) and "Oracle ACE".
    Therefore I hope that My icons are "Pro" and "Oracle ACE".

    BluShadow wrote:
    can't you create an icon with the Java character holding an Ace?It reminds me of award icons (achievements) one gets on Steam and Xbox Live. My favourite - the award of getting a fair number of WW2 tank commanders that pop head-out-of-turret, as an infantry rifleman (with a puny bolt action rifle). Satisfaction getting the commander of a crew that that hides inside the belly of an armoured beast, that tries to turn my comrades and me into roadkill or a 1000 pieces exploding bits (or pixels to be more accurate)... ;-)
    One option here could be a signature line - that lay bares one's claim to fame, knowledge and experience. This is often standardise by community agreement on some web forums (the gamer ones often include clan tags and titles with h/w specs). Or something like GeekCode.
    Never really fancied that myself - but it could be fun putting an Oracle based geekcode together. ;-)

  • Oracle Linux and Java 7u10

    Hi all,
    I installed Oracle Linux Server 6.3 selecting "software Development System" (java 1.6.0 comes with it).
    but I need to use Java 1.7
    So I downloaded jdk-7u10-linux-x64.rpm
    when I try to install it, I get the following error.
    Unpacking JAR files...
         rt.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/rt.pack
         jsse.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/jsse.pack
         charsets.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/charsets.pack
         localedata.jar...
    Error: Could not open input file: /usr/java/jre1.7.0_10/lib/ext/localedata.pack
    I can't uninstall java 1.6 because other rpm uses it.
    Can someone tell me what the "proper" way to install Oracle Linux and Java 1.7 should be?
    OR is there a Oracle Linux Server 6.4 coming out soon with Java 1.7 as its default package set ;-)
    thanks in advance,
    c.w.

    You can ignore the errors. The files named in the error lines do not exist in the rpm package, but are there as .jar files
    The following works under Oracle Linux 6.3 x86_64 (and probably other versions).
    1. Open the following URL in a web browser on your PC:
    <pre>
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
    </pre>
    2. Click the JDK download button, accept the license agreement and download the JDE rpm package.
    3. Copy the following file to your Oracle Linux server (SFTP):
    <pre>
    jdk-7u10-linux-x64.rpm
    </pre>
    4. Login as root and use the YUM utility to install the RPM package.
    <pre>
    # yum install ./jdk-7u10-linux-x64.rpm
    </pre>
    5. Register the new installed java version, then change your default Java:
    <pre>
    # alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_10/bin/java 2
    # alternatives --config java
    </pre>
    Display your default Java version:
    <pre>
    # java -version
    java version "1.7.0_10"
    Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
    Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    </pre>

  • Oracle 8i And Java

    I have JDK 1.5 Update 1 installed in my system and have Oracle 8.1.7 database . I have successfully connected both using ODBC data sources in my Windows XP SP2. Can i connect them using URL address, like we can do in Oracle 9i and later databases of Oracle.
    thanks in advance
    Sujeet

    hi all!
    by this im stopping my question as i solved it today. i was not using the url format, so was the problem giving starnge messages.
    solution :
    if using JDK 1.4.2 download ojdbc14.jar and set it on ur classpath. url format is as shown below :
    jdbc:oracle:thin:@<host>:<port1521>:<sid>
    write the following sample code.........
    import java.sql.*;
    class Preeti
         public static void main(String[] args) throws SQLException
              Connection con;
              DatabaseMetaData meta;
              String url = "jdbc:oracle:thin:@sujeet:1521:ram";
              String user = "scott";
              String password = "tiger";
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              con = DriverManager.getConnection(url, user, password);
              Statement stmt = con.createStatement();
              ResultSet rst = stmt.executeQuery("select * from emp");
              meta = con.getMetaData();
              System.out.println("Got Results............");
              System.out.println("DBMS : " + meta.getDatabaseProductName());
              //System.out.println("Version : " + meta.getDatabaseMajorVersion());
              System.out.println("JDBC Driver Name : " + meta.getDriverName());
              System.out.println("JDBC Driver Version : " + meta.getDriverVersion());
              while(rst.next())
                   System.out.println(rst.getString(1));
              con.close();
    }

  • Oracle Timestamp and java.util.date

    Greetings,
    【Enviroment】
    oracle 10g Express
    jdbc 10.2.0.1.0 thin driver
    windows Xp professinal
    【problem】
    I fetched a value of timestamp.
    And I faced An Error that "java.sql.SQLException: Cannot set lastup_dt: incompatible types."
    We define data type of lastup_dt is timestamp on Oracle.
    And We define the data type of lastup_dt of javaBean is java.util.date.
    And Ocurr SQLException at result = rsh.handle(rs);
    How Can I avoid it?
    public Object query(Connection conn, String sql, Object[] params,
    ResultSetHandler rsh) throws SQLException {
    PreparedStatement stmt = null;
    ResultSet rs = null;
    Object result = null;
    try {
    stmt = this.prepareStatement(conn, sql);
    this.fillStatement(stmt, params);
    rs = this.wrap(stmt.executeQuery());
    result = rsh.handle(rs);
    } catch (SQLException e) {
    this.rethrow(e, sql, params);
    } finally {
    try {
    close(rs);
    } finally {
    close(stmt);
    return result;
    Any help I appreciate it.
    Thank you.

    As long as you have the long representation of the time you can create a new java.util.Date:
    new java.util.Date(ts.getTime())

  • Version Control for Oracle Reports and Java

    Hi
    I have a Reports and Java development enviroment and I need version control for both. In JDeveloper there is only support for CVS and SVN. Does report have support for CVS and SVN?. What can I choose to offer Java and Reports version control?
    Regards,
    Néstor Boscán

    Hello,
    You might find neXtep Designer helpful, depending on what you need. It is a free database development environment based on the concept of version control. You will work in a dedicated version control repository in which you can import any existing database through reverse synchronization. Once imported, you will gain control over the lifecycle of your database model all along your developments. The tool will generate SQL scripts resulting from the delta between any 2 versions, allowing you to automate SQL generation. It also provide a delivery mechanism and an installer program which can automate deployment of the changes on a target database.
    The product is based on the Eclipse platform and provides features like graphical data model, dependency management, SQL clients, powerful SQL editors for stored code development and currently supports Oracle, MySql and PostgreSql. You will find more information here :
    http://www.nextep-softwares.com
    Also have a look at the WIKI for more detailed information about the product, the concepts and the reasons why we created neXtep.
    Hope this helps,
    Christophe

  • Oracle Lite and Java 1.3

    Some preliminary testing of Java 1.3 against Oracle Lite 8.1.5 causes an fatal crash that won't allow me to debug through and suspends both the VM and my debugger/IDE for Java.
    Can anyone confirm if it is possible to run Olite and Java 1.3? Same code works great in OLite and Java 1.2.2, and crash doesn't seem to be OS specific (tested under NT and 2000).
    Cheers, DJ

    When you put your code in a try block and print the exception, what does it say:
    String driver = getDriverFromConfigurationFile();
    try
    Class.forName(driver);
    catch(ClassNotFoundException cnfe)
    System.err.println(cnfe);
    Second option is to use DataSource instead.

  • JDeveloper IDE Tool - Thank you Oracle/Sun and Java community

    I am sure it has been done many times over within the JDeveloper community discussion but I felt compelled
    to stop, think and acknowledge the efforts here.
    To Oracle, Sun and others that have contributed to this software and resources a huge THANK YOU!
    I started in this business as a COBOL programmer on the mainframe where the only option for you to learn
    was to use a school or company mainframe to code. if you didn't have either your only
    option was reviewing code in textbooks.
    These tools are amazing for how much power they give those of us interested in furthering our skills but
    limited in financial resources. The effort is staggering to me. Just lookng at the release notes and bug
    fixes for the versions of this tool I am absolutely floored.
    Your efforts are greatly appreciated. I hope that the open source concept continues. I applaud and urge
    you to continue your efforts. You are all doing a wonderful thing really. In a time where the trend is to
    charge charge charge for anything we do on our Droids and Iphones it is good to see a humane effort
    flourish.
    Brian Quinn
    IT Application Developer
    Edited by: 814126 on Nov 21, 2010 8:40 AM

    Always bear in mind that there is no such thing in life, called a free lunch.
    I quote:
    "Even if something appears to be free, there is always a cost to the person or to society as a whole even though that cost may be hidden or distributed.
    For example, as Heinlein has one of his characters point out, a bar offering a free lunch will likely charge more for its drinks."
    http://en.wikipedia.org/wiki/There_ain%27t_no_such_thing_as_a_free_lunch
    NA
    http://nickaiva.blogspot.com

  • Deploying Oracle Express and Java Application in one installation

    Is there a way to deploy a Java application using Oracle express as the back end in one installation? So in other words, rather than installing oracle express separately from the application, we are looking to install from one executable including both the java application and all the necessary components for oracle express to run.
    Your help is greatly appreciated.
    Thank you,
    Mahmoud

    Hello,
    you can install the database using a response file. Depending on the installer of your Java application you could create a kind of meta-installer that creates a response file for the database as well as one response/parameter file for your application installer and hence run both in one step.
    See the [url http://download.oracle.com/docs/cd/E17781_01/install.112/e18802/toc.htm#BABCCGCF]corresponding section of the Installation Guide for details on the response file.
    -Udo

  • Oracle Number and Java Format Mask Issue

    I have a oracle number column, in my view object it is of type BigDecimal and the query column type is NUMBER
    I put the following format mask in the hints section
    #####.00
    with a format type of Number,
    Yet when I run the application, I always get the following error
    java.lang.NumberFormatException: For input string: "-3750.00"
    Anyone any ideas why this does not work?
    Regards
    Orlando

    Hi,
    try with <af:convertNumber>
    See:
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_convertNumber.html
    ADF 11.1.1.4.0 af:convertNumber not working with #,##,##,##,##,##,##0.00

  • Oracle Reports and Java

    Can anyone point me to good documentation for incorporating Java
    into Oracle Reports Layouts on the web? We'd like to integrate
    some drop down boxes in the layout so a user can make some data
    choices then execute a drill down report directly from the
    layout.
    Or put another way, if we have a report with 3 parameters,
    rather than have to go back to the param form, we would like to
    integrate a header section to the layout that would have 3 drop
    downs, so as you are looking at the report, if you want to run
    again, you just select your choices in the header and hit a GO
    icon of some sort. Since drop downs are not available directly
    in reports, we were hoping to use Java.
    Thanks in advance for any help!
    Brett

    hello,
    oracle reports 6i does not have any java integration. we have added java APIs to Oracle9i Reports in various places (e.g. datasource, destination, notification, ...)
    see our Getting Started with Oracle9i Reports or the Oracle9i Reports SDK here on OTN for further information.
    regards,
    philipp

  • Oracle, Serializable and java.sql.SQLException

    I'm reading in the weblogic documentation about serializable transactions
    and Oracle at:
    http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html
    I've excerpted below the section of interest. Essentially it says that if
    you want to use an isolation level of SERIALIZABLE with Oracle,
    you must be prepared to catch and retry transactions which fail due
    to the "can't serialize access for this transaction". What I don't understand,
    is where do I catch this exception. The doc below suggests that it
    is in the EJB client code. By this, I assume it should be caught
    by any client calling into an EJB method which is starting a transaction.
    What I don't understand is I didn't think that ejb methods threw a
    java.sql.SQLException. How can I catch this exception? The
    exception is caused at commit time, which I don't have any
    direct control over since I am using CMP.
    Do I then need to inspect the exception text for the string:
    "ORA-08177: can't serialize access for this transaction", in order
    to determine whether to retry the transaction?
    Is there any sample code for this. I just need to know where
    the exception should be caught in my code, and how to
    inspect the exception (scanning text based error messages
    sounds problematic, since the exact message text might
    change over versions of the database and deployment, etc.).
    I am planning on using CMP, so I am not making any
    jdbc calls directly.
    Jason
    Special note for Oracle Databases
    Keep in mind that Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does
    not detect serialization problems until commit time. The message returned is:
    java.sql.SQLException: ORA-08177: can't serialize access for this transaction
    Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if
    contention occurs between clients for the same rows. To avoid these problems, you must ensure that clients catch and examine the SQL
    exceptions, and take appropriate action, such as restarting the transaction.
    Jason Rosenberg
    SquareTrade
    (remove 'nospam' from my return address)

    I'm reading in the weblogic documentation about serializable transactions
    and Oracle at:
    http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_environment.html
    I've excerpted below the section of interest. Essentially it says that if
    you want to use an isolation level of SERIALIZABLE with Oracle,
    you must be prepared to catch and retry transactions which fail due
    to the "can't serialize access for this transaction". What I don't understand,
    is where do I catch this exception. The doc below suggests that it
    is in the EJB client code. By this, I assume it should be caught
    by any client calling into an EJB method which is starting a transaction.
    What I don't understand is I didn't think that ejb methods threw a
    java.sql.SQLException. How can I catch this exception? The
    exception is caused at commit time, which I don't have any
    direct control over since I am using CMP.
    Do I then need to inspect the exception text for the string:
    "ORA-08177: can't serialize access for this transaction", in order
    to determine whether to retry the transaction?
    Is there any sample code for this. I just need to know where
    the exception should be caught in my code, and how to
    inspect the exception (scanning text based error messages
    sounds problematic, since the exact message text might
    change over versions of the database and deployment, etc.).
    I am planning on using CMP, so I am not making any
    jdbc calls directly.
    Jason
    Special note for Oracle Databases
    Keep in mind that Oracle uses optimistic concurrency. As a consequence, even with a setting of TRANSACTION_SERIALIZABLE, Oracle does
    not detect serialization problems until commit time. The message returned is:
    java.sql.SQLException: ORA-08177: can't serialize access for this transaction
    Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may receive exceptions or rollbacks in the EJB client if
    contention occurs between clients for the same rows. To avoid these problems, you must ensure that clients catch and examine the SQL
    exceptions, and take appropriate action, such as restarting the transaction.
    Jason Rosenberg
    SquareTrade
    (remove 'nospam' from my return address)

  • Oracle Text and Java (jsp)

    Hi,
    I stored files( pdf,word) in blob column. I created index (INSO_FILTER) and i would like to query the files.
    String sword="test";
    String query = "Select COMPID,CREATED,NAME,CVNUMBER from COMPANYCV" + " where contains(CV,' "+sword+" ') > 0 " ;
    System.out.println(query);
    ResultSet rs = stmt.executeQuery(query);
    works fine i get the compid,date,number and filename of the stored file in the blob column. This info is displayed als a link(url). ie. <A HREF="ShowCv.jsp?NAME=doc1.pdf...... So when the user clicks on it, the appropriate program opens (word,acrobat reader) and the content of the file is shown.
    But i also want to know how many times the word test" is found in each of the documents? How can i do this in java (jsp)?
    And i want to highlight to word that is searched for in the document? Any help on doing this ( examples)? The doc should open in the browswer( html -version) and words
    should be highlighted.
    plz help!
    ps.
    if i use:
    select score(1),NAME,COMPID from COMPANYCV where contains(CV, 'BLOB',1 ) > 0 order by score(1) desc
    i get:
    100,Test2.doc,4
    39,Test1.doc,5
    the score is 39 with Test1.doc! But the word blob is not present in that document. What does the "score" realy mean?
    thx

    ok so far so good. Here is what i did;
    filter-> html
    I created a table filterresult:
    query_id number
    document clob
    in sql:
    begin
    ctx_doc.filter('cvindex', 30, 'filterresult',0,FALSE);
    end;
    so now the word document with pk=30 is stored in de blob column as html.
    in my jsp i call:
    String sql= "SELECT DOCUMENT FROM FILTERRESULT WHERE QUERY_ID=0";
    //System.out.println(sql);
    rs = stmt.executeQuery(sql);
    while(rs.next()){
    clob=((OracleResultSet)rs).getCLOB(1);
    is=clob.getAsciiStream();
    int pos=0;
    int length=0;
    byte[] b = new byte[clob.getChunkSize()];
    while((length=is.read(b))!= -1){
    pos+=length;
    os.write(b);
    and the word document shows up in html in my browser!
    I created another table:
    table highlightresults(
    query_id number
    offset number
    length number
    highlight->
    in sql:
    begin
    ctx_doc.highlight('cvindex', 30, 'steven','highlightresults');
    end;
    i want to highlight the word "steven" in the word doc with pk=30.
    I got no error on excecuting this, but how do i combine the 2 thins: how can i open the filtered word document (html) with the highlights shown in a color??
    plz help!
    also; can someone give me and exampple on how to call these sql statements, like:"begin
    ctx_doc.highlight('cvindex', 30, 'steven','highlightresults');
    end; " in my JSP (java) page!
    thank you

  • Need Expert Advice regarding oracle and java objects

    In our project, we are submitting data for many screens at a time. Some screens will have a list of records to be submitted. There is also some hierarchy among the data up to 4 levels.
    In such a scenario, we need to know the best way to exchange data between Oracle and Java. Currently java holds the data as objects, where each object may contain an array of next level of objects in it.
    Is it best approach to pass the entire data with hierarchy to Oracle using nested table approach and internally oracle handling the data? Is there any other way to do this?
    Also in some scenarios we need to pass the entire information for all the screens in one shot with the hierarchy. So we need to know a solution for that also. Could you please help us in this regard?

    See Oracle JPublisher technique to map Oracle object types to Java ones:
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96658/toc.htm
    Rgds

Maybe you are looking for

  • Error while provisioning to OID group

    Hi, we created 2 groups in OID. we ran OID group lookup Reconciliation task and now we are able to see the created Groups in Lookup.OID.Group. we added the Groups in access policy. but when we are Provisioning Users into OID the Add User to Group tas

  • Apple TV sync doesn't work properly?

    Last night I set up my new Apple TV. I synced all the content from my iTunes and could quite happily watch/listen to everything whilst my laptop was on. When I turned the laptop off, however, all the content disappeared from my TV screen. I thought w

  • HT201303 I want to take my card off this account for the time being and dont know how to do it

    I want to take my card payment details off off this account  so cant use it for itunes etcand don't  how to do it ?

  • Lost receipt help!

    Bought a prepaid mobile phone three days ago and the device was not working at my home. I wanted to return the device but I cannot locate the receipt and paid in cash. I can provide the location time and date that the purchase was made but no one see

  • How to call a stored procedure?

    I have this procedure in my oracle DB, insert_orders_main ( v_sapak in number) how can I call it from PHP ? if someone can give me a simple example... thanks!