From Oracl Developer to Java Please  Guide me

Hi
i am presently making Database applications using Oracle Developer as tool. I want to shift to Database solutions using Java as front end. Will it be better to switch on to Java from Developer? I would like to know all pros and cong regarding it
Thanks
vikas joshi

one point: if you use Java, you would develop in standard SQL, because the Java JDBC API is database independend. of course, you could also use the Oracle specific things with the ORACLE JDBC-Driver or just call specific stored procedures via JDBC, but then: what's the benefit in using Java if you code specific ORACLE apps? so, you should change your way of developing database applications from "developing ORACLE apps" to "developing SQL apps" ... just a suggestion.

Similar Messages

  • Retrieval of xmltype data from oracle 10g to java

    Hi
    Right now we are facing an issue on xmltype retrieval from oracle 10g to java.
    I used xmltype column.getClobval() to get the xml content, but unable to do the parse to get the xml data.
    So i tried getStringval(), getting the xml content as string format and here in this case also, i didn't get document object.
    Here is the code snippet:
    String sql = "SELECT node_id,node_desc,parent_node_id,e.report_xml.getStringval() FROM TABLE_STRUCTURE e";
    st = con.createStatement();
    rs = st.executeQuery(sql);
    while (rs.next()) {
    Object value[] = { rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4) };
    list.add(value);
    DOMParser parser = new DOMParser();
    parser.parse(rs.getString(4));
    doc = (Document) parser.getDocument();
    System.out.println(": DOM = " + doc.getClass().getName());
    Please do guide in this scenario.
    Thanks in advance.
    Sirisha

    Please see below link
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10790/xdb11jav.htm

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • Capturing Print Statements from Oracle SP in Java

    Hi all,
    Greetings...
    I have one query...pls find below the info for the same:
    From my Java application, i am calling Oracle SP using Callable Statement.
    Here is the simple Oracle SP..
    01. CREATE OR REPLACE PROCEDURE TEST_ORACLE(errcode OUT
    02. NUMBER, errdesc OUT CHAR)
    03. AS
    04. BEGIN
    05. dbms_output.put_line('Start of the SP');
    06. // SQL Statements will come here
    07. dbms_output.put_line('End of the SP');
    08. END TEST_ORACLE;
    In Line (5) and (7), I have given Print Statements (SOP statements). I need to capture those SOP messages from Java while executing SP / after exceuting it.
    In the Java application, i tried the following:
    callableStatement.execute();
    SQLWarning warnings = callableStmt.getWarnings();
    while(warnings != null)
    if(warnings.getErrorCode() == 0 && warnings.getSQLState() == null)
    System.out.println("Print Statements From SP: "
    + warnings.getMessage() );
    warnings = warnings .getNextWarning();
    Here warning object is null and i am unable to capture those print statements.
    How to capture those print statements from Oracle SP in Java ?
    Thanks in advance..
    Regards,
    Manikandan

    Try writing them to a file and read them from your program.
    Regards,
    Carol.

  • I want to scan an image from oracle developer 10g ?

    Hi everybody.
    How can I scan an image from oracle developer 10g ?
    thnaks in advance..

    we did this in a similar way RajeshAlex describes.
    We used software "imaging professional" which was able to be controlled via a command-file and told by that command-file to store the scan-result into a local file.
    What we did was:
    Copy command-file to client via WEBUTIL_FILE.AS_TO_CLIENT..
    Execute command-file via WEBUTIL.CLIENT_HOST
    Show Forms-Alert on which the user has to click after scanning was finished
    Check local file which was defined in command-file and, if present, load it into the database using WEBUTIL_FILE.CLIENT_TO_DB..
    Hope this helps

  • Local OC4J instance doesn't start  from oracle developer suite 10gR2

    Local OC4J instance doesn't start from oracle developer suite 10gR2

    You might also wish to consider posting your question here:
    <br>
    Forms
    <br>
    OC4J (maybe)

  • Calling Java application(forms) from Oracle/Developer

    Hi
    How can i call java application by using Oracle/Developer 10g. Pl. name the methods that i can use.
    regards
    Touseef

    In Oracle a Java stored procedure is a program you write in Java to run in the server, exactly as a PL/SQL stored procedure. You invoke it directly with products like SQL*Plus, or indirectly with a trigger. You can access it from any Oracle Net client—OCI, precompiler, or JDBC.
    Oracle provides a fully-compliant implementation of the Java programming language and JVM. Oracle Database Java Developer's Guide explains how to write stored procedures in Java, how to access them from PL/SQL(or developer), and how to access PL/SQL functionality from Java. -> http://download-uk.oracle.com/docs/cd/B19306_01/java.102/b14187/chfive.htm#BABGCGBG

  • Oracle developer needs Java help

    I develop applications in Oracle 8i on NT4. As part of a trigger, I need to perform an update to an extremely large table which takes many minutes. Because it's tied to a web page, I can't wait for the update to complete. Oracle natively doesn't support system calls -- I use the Shell() command in VB -- but Oracle DOES support Java stored procedures. I'm hoping that a Java stored procedure will be able to spawn/execute a new process/program specified by a command line instruction (ie: "C:\SQLPLUS.EXE SCOTT/TIGER @update.sql") and return immediately - without waiting for the process to complete. There doesn't need to be any handle for or call back from the process - just fire and forget. Can anyone provide me some direction, or better some existing Java code that does this? THANKS!

    Hi "todmcg",
    I'm not sure that I have understood your question correctly, but here goes anyway...
    Yes you can create a java stored procedure and have a trigger execute that procedure. In order to execute system commands in java, you usually use the "exec()" method of class "java.lang.Runtime". It is also easy to spawn new threads using java. So yes, you can have your java stored procedure execute a system command in a background thread.
    In my opinion, the Oracle documentation explains very well how to create a java stored procedure. The documentation is available from:
    http://tahiti.oracle.com
    Also, examples of how to call system commands from java stored procedures are available at this Web site:
    http://asktom.oracle.com
    You may also find relevant information at:
    http://metalink.oracle.com
    and
    http://technet.oracle.com
    Of-course, you can also use JDBC from your java stored procedure to execute your "update.sql" script -- without the need to execute a system command.
    Basic code skeleton:
    [NOTE: Untested and may contain syntax errors.]
    public class SystemCommand implements Runnable {
      private static String cmd;
      public void run() {
        Runtime runtime = Runtime.getRuntime();
        runtime.exec(cmd);
      public static void execCommand(String cmd) {
        this.cmd = cmd;
        new Thread(new SystemCommand()).start();
    }Hope this helps you.
    Good Luck,
    Avi.

  • DB Call from Oracle Business Rule +Java Method call from OBR

    Hi,
    1.We have a requirement in project where we need to make DB Call from Business rule.
    We are using ORACLE SOA11g.
    Is this possible.Any pointers on this will be helpfull.
    2.Can we call java method from Oracle Business Rule.If so pls suggest how it can be done.
    Thanks In Advance,
    Oracle SOA User

    You can implement java class to make database updates using JDBC. You can add Java class as fact in business rules and invoke methods as actions of the business rules.
    Hope this will help.
    Jayesh Patel
    http://jayesh-patel.blogspot.com/
    http://www.yagnasys.com/

  • Exception from dbpool....Please guide

    Hello All,
    I checked the logs on our development server and found this exception.
    Message = Connection is invalid.
    Location = com.sap.engine.services.dbpool
    User = Guest
    Category = /System/Server
    Please guide me to debug and resolve this issue.
    Awaiting Reply.
    Regards,
    Ritu

    Hello All,
    I checked the logs on our development server and found this exception.
    Message = Connection is invalid.
    Location = com.sap.engine.services.dbpool
    User = Guest
    Category = /System/Server
    Please guide me to debug and resolve this issue.
    Awaiting Reply.
    Regards,
    Ritu

  • LibXm.so.2 problem while trying to run RWBUILDER from Oracle Developer Suit

    Oracle Developer Suite 10g (10.1.2.0.2) reports
    I am receiving the following errors when I try to reference libXm.so.2
    export ORALCE_HOME=/u01/app/OraHome_2
    export PATH=$PATH:/u01/app/OraHome_2/bin
    ./rwbuilder.sh
    /u01/app/OraHome_2/bin/rwbuilder: error while loading shared libraries: libXm.so.2: cannot open shared object file: No such file or directory
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/app/OraHome_2/lib/stubs
    ./rwbuilder.sh
    /bin/sh: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /bin/sh)
    /bin/sh: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3' not found (required by /bin/sh)
    /bin/sh: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3.4' not found (required by /bin/sh)
    /bin/sh: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libtermcap.so.2)
    /bin/sh: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3.4' not found (required by /lib/libtermcap.so.2)
    [oracle@fscdb1 bin]$
    No other command works after this
    ls
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by ls)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3' not found (required by ls)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3.4' not found (required by ls)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libacl.so.1)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libacl.so.1)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libselinux.so.1)
    ls: /u01/app/OraHome_2/lib/stubs/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libselinux.so.1)
    ls: /u01/app/OraHome_2/lib/stubs/
    My current version of openmotif.i386 is 2.3.0-0.5.el5
    The installation stated a failure for the specific version but also stated later versions could work. I will not be able to run a earlier version of this package.
    Any help in resolving this would be appreciated.

    Hi,
    you are hitting the issue described in the following Metalink Note:
    Article-ID: Note 290747.1
    Title: Only OpenMotif 2.1.X (where X>=30) Supported For Oracle Reports and Forms 6i, 9i, 10g, 10g Rel2 on Linux
    Hope it helps.

  • Migrating application from Oracle APEX to JAVA

    We are one of the groups inside oracle. We have an application developed in Oracle APEX. Now we would like to migrate/implement with JAVA. I have idea about APEX development and hosting. Can anyone help me to list out required software/hardware/server/tool/storage to develop as well as host Application by using java.
    Any help is appreciated.
    Thanks.
    Akie.

    This message is from Developer Forum in OTN Oracle.
    ... "There are no plans at Oracle to stop support for Oracle Forms.
    However you should note that support for client-server deployment does have a dead-line (January 05 with extended support until January 08).
    The Web deployment of Forms has no de-support plan for it. We are actually working on the features for the next releases of Oracle Forms right now. "
    As you can see support for Oracle Forms with Clien/Server arquitecture will be finished on January/05 because they are moving to Web Development.
    Additionally they want to mature their JDeveloper until reaches an full integrated tool for Web Development and they are in a good path.
    Thank you my friends

  • SELECT returning different rows when issued from SQL Developer or Java apps

    Hi there. I'm facing a problem here: I'm trying to issue a SELECT from Java, which should return me 2 rows; but I'm getting just one. When I issue the SELECT directly through SQL Developer it gives me the expected result. I've pastebin the code at http://paste.uni.cc/11821, where I've described in details the problem.
    What could it be? Any help would be appreciated.
    Thanks in advance!

    Marco,
    I would code it a bit differently, but I don't think that would solve your problem.
    I suggest setting up the JDBC logging. I'm not promising it will help, but I guess it
    can't hurt. Here is a white paper about it:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/pdf/logging%20white%20paper.pdf
    You can also access that link from this Web page:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • Calling BIP from Oracle Forms: Having Java version problem.

    <h3>
    Hi,
    I tried to call a BIP report through Oracle Forms.
    I followed this PDF.
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    Problem is, when I run the form, I get this error (copied from the Java Console)
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\channasiriwardena
    Proxy Configuration: Manual Configuration
    Proxy: 192.168.11.100:81
    Proxy Overrides: *.iil.informatics.lk,192.168.11.*,192.168.10.*,<local>
    JAR cache enabled
    Location: C:\Documents and Settings\channasiriwardena\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0 Forms Applet version is : 10.1.2.0
    java.lang.UnsupportedClassVersionError: oracle/j2ee/ws/client/ServiceFactoryImpl (Unsupported major.minor version 49.0)
    I am using Forms Forms [32 Bit] Version 10.1.2.0.2.
    JDeveloper Version is 10.1.3.5.0.
    The Forms 10g Java version is 1.4.
    So according to what I discovered on the net, the problem is: My JInitiator is 1.3 using JRE 1.3, BUT my .JAR file is Java 1.5.
    Since we are using the Oracle JVM, ticking “Use JRE 1.5..” in the Advanced tab of the Internet Explorer Options has no effect.
    We cannot upgrade the Oracle JInitiator to a 1.5 since there is no such JInitiator version. JInitiator is available only up to 1.3.1.30.
    What can I do. What if I install Java 1.3 in my machine and re-compile my JAR file with that? Will that work or is there another solution?
    Has anybody encountered this problem?
    Any help would be greatly appreciated.
    Thanks & Regards,
    C.S.
    </h3>

    Hi,
    Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
    Other solution would be to use JRE 1.5 (instead of JInitiator).
    Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
    -Arun

  • How to retrieve a BLOB from Oracle DB in Java 1,1

    I have a Blob in an Oracle DB that I want to retrieve and display as a .bmp in a COM component. Also I want to save the same blob to the DB later.
    Thanx in advance //Petter

    Hi,
    you can read a BLOB with the InputStream got from getBinaryStream() method of ResultSet class.
    You may write this stream out as a temporary file and pass it to your object. (I don't know how you communicate with COM).
    Best regards,
    Martin

Maybe you are looking for