Java and Oracle Reports

How to connect java with oracle report server... i m using a swing application.... I have seen api documentation but didnt get things. please help...

user13323568 wrote:
How to connect java with oracle report server... i m using a swing application.... I have seen api documentation but didnt get things. please help...How can anyone help you?
You "don't get things", that is a problem you have to solve before you can be helped. Maybe you just need to spend more time on it or find better documentation; API documentation is only a reference, not a manual.

Similar Messages

  • How to relate java and Oracle

    i have to tried to make programs using java and oracle. if i give the values in the 'insert' statement it is getting updated in the original table in oracle but how to take the values from the text fields of java and insert into the tables in oracle. do we have any methods to convert the values into sql type. pl reply.

    Here is a sample of a Java program that uses JDBC and a PreparedStatement. This particular program does a select, but you can also use this for inserts. I'm not 100% this is what you are looking for, but if it isn't just let me know. I'll help if I can.
    Joel
    For inserts, just replace this code:
    ResultSet rs = ps.executeQuery();
    while (rs.next()) {
      System.out.println(rs.getInt(rs.findColumn("CNT")));
    }with this code (and obviously change the Select string to an Insert String):
    int rowcnt = ps.executeUpdate();Here is the whole program:
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    class dbtest {
        public static void main(String args[]) throws SQLException {
            try {
                String timeString = new String("2000-11-01 23:59:59");
                SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd H:m:s");
                java.util.Date date = format.parse(timeString);
                Timestamp timestamp = new Timestamp(date.getTime());
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                Connection conn =
                    DriverManager.getConnection(
                        "jdbc:oracle:thin:@riker:1521:mydb",
                        "myusername",
                        "mypassword");
                String sql =
                    "SELECT COUNT(*) CNT FROM SERVICE_ALARM "
                        + "WHERE TRANS_STREAM_NODE_ID = ? "
                        + "AND SERVICE_ID = ? "
                        + "AND ALARM_ID = ? "
                        + "AND RAISED > TO_DATE(?,'YYYY-MM-DD HH24:MI:SS')";
                PreparedStatement ps = conn.prepareStatement(sql);
                ps.setString(1, "ROW1");
                ps.setInt(2, 1);
                ps.setString(3, "ROW1");
                String myDate =
                    timestamp.toString().substring(0, timestamp.toString().length() - 2);
                System.out.println("myDate=(" + myDate + ")");
                ps.setString(4, myDate);
                ResultSet rs = ps.executeQuery();
                while (rs.next()) {
                    System.out.println(rs.getInt(rs.findColumn("CNT")));
                rs.close();
                ps.close();
            } catch (Exception e) {
                System.out.println("Java Exception caught, error message=" + e.getMessage());
    }

  • Java and oracle in linux

    hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
    thnx in advance..

    884540 wrote:
    hello frnds...i have installed oracle 10g in ubuntu 11.04....now i want to make database connection between java and oracle...so how can i do it??i know the java code..but the main problem is database driver..how can i give the classpath for specific jdbc dirver...pls tell me the steps to set classpath for jdbc driver...
    thnx in advance..You can mention the classpath using the javac and java options:
    javac -cp .;<path> <ClassName>.java
    and
    java -cp .;<path> <ClassName>
    Or refer the below link to avoid mentioning classpath everytime you run/ compile the program
    http://www.linuxquestions.org/questions/linux-software-2/j2sdk-install-174483/#post898715

  • Difference between oracle reports and oracle report writer

    I would like to know the diffrence between oracle reports and oracle report writer.I would appreciate if i get more details of oracle report writer.
    Thanks
    Rajesh

    Hi;
    May I know the difference between Oracle reports and Oracle discovererDiscoverer vs. Oracle Reports
    http://businessintelligence.ittoolbox.com/documents/discoverer-vs-oracle-reports-17819
    http://www.oraclechamps.com/index.php?option=com_content&view=article&id=316:oracle-reports-vs-discoverer-difference-between-oracle-reports-6i-and-oracle-discoverer&catid=62:oracle-technical-documents&Itemid=104
    Discoverer Vs. Oracle Reports
    PS: Be notice here is oracle database related forum side. For your future issue please use Forum Home » E-Business Suite* forum side*
    Regard
    Helios

  • Webdynpro java and oracle DB connection..

    Hi,
    I have a good knowledge of WD (web dynpro java) projects having ECC as backend as i have done lot of projects where ECC is backend and WD JAVA is front end.
    but in my new project i have wd java as front end but my backend is oracle DB. I want to know how to create/setup  connection betwen webdynpro java and oracle DB, how to proceed on this ? wat all settings I have to do in VA (visual admin) and all.
    please let me know how to proceed on this. Any document/tutorial on this will be very helpful..

    Hi Rahul,
    Create a DataSource to the oracle db in Visual Admin, give the datasource an alias name and connect to the db from WebDynpro by calling the alias name.
    These document might be useful:
    [http://help.sap.com/saphelp_nw70/helpdata/en/c0/3ad4d5cdc66447a188b582aad537d3/frameset.htm]
    [SAP Note 867176|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=867176]
    [SAP Note 941594|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0000941594&nlang=E]
    Good luck!
    Regards,
    Aditya

  • Oracle Forms and Oracle Reports interation  without Oracle Portal

    Hi to all
    Can I integrate the application developed in Oracle Forms and Oracle Reports without Oracle Portal with Single Sign On.
    and if yes then how?
    and if no then why?
    I use 9iAS relese 2 installed on machine 1
    Oracle Database installed on machine 2
    Oracle Forms and Oracle Reports on machine 3
    all with win 2000
    thanks
    samir

    Is there a document on how to do this? Also, can this be done with Forms 6.0 or must i upgrade?

  • Relation between java and oracle

    Hi,
    This is general information about java and oracle.
    I had worked in java last one year, but now switch to oracle i heared that nearly combination of each are implemented oops concept. But i know where it used in java, not in oracle.
    In oracle, where we are implemented inheritance, polymorhism and encapsulation.
    plz give some tips
    Regards venki

    does this mean you used to develop your applications on java and manuplate your data in Oracle over JDBC or Hibernate but then you started to develop PL/SQL applications for this need and use PL/SQL's OO features?
    With my experiences I may say if you are working on data intensive database applications learning how to use effectively SQL and PL/SQL is critical, this is Oracle's native language not something written to work for any database vendor. http://www.oracle.com/pls/db102/portal.portal_db?selected=5

  • Oracle Form4.5 and Oracle Reports 2.5 for download

    Need help in downloading this softwares versions of Oracle Forms 4.5 and Oracle Reports 2.5.
    Would like to get any sites where i can download this softwares.
    Thanks
    Khan

    see Re: forms bilder & report bilder software

  • Oracle Forms and Oracle Reports as portlets

    Please, where can I get the documentation to publish Oracle Forms and Oracle Reports as portlets. I found some information about it in metalink but the URLs are invalid.

    Hi,
    Here are the steps you need to follow while building Portlets .
    1) After creating a Application,in the last step click on the Checkbox 'EXPOSE AS PROVIDER'.
    If the application has already been created ,click on the same checkbox in the grant access section.
    2) When creating a component within the application ,select the checkbox 'PUBLISH TO PORTAL'.
    Incase ,you have already created the component then just click on the same option in the grant access section.
    Now when you want to add these portlets to be part of a page .Just select the provider(Application) and the portlets under it.
    Hope this helps.
    Anu

  • Oracle forms and Oracle reports for Oracle 9i

    Hello,
    I'm searching for Oracle forms and Oracle reports that works with Oracle 9i.
    Does someone know where I can find them?
    Thanks in advance...

    When we talk about Oracle9i, we often mean the database version 9i.
    Apparently you want to use Forms and Reports 9i, which included in the obsolete (and very unhappy) Application Server 9i. ... Or the also obsolete Application Server 10g Release 1 (aka App Server 9.0.4.
    You are encouraged to look at Forms and Reports 10g (part of the improved Application Server 10g) which does connect to Oracle Database 9i as well as Oracle Database 10g. Look for App Server 10g Release 2, version 10.1.2.0.2 and 10.1.2.2)

  • How to istall oracle forms service and oracle reports service and testing

    How to istall oracle forms service and oracle reports service ?
    and we can make test?

    How to istall oracle forms service and oracle reports service ?http://download.oracle.com/docs/cd/B19375_07/doc/frs/docs.htm
    and we can make test?Once installed, there is a test program both for Forms and Reports... or you mean something else ? if so, please clarify.

  • Reports from Java and Oracle database

    Hi
    I need to generate couple of reports from my application, with Java as front end and oracle 11.2.0.3.0.  database . Reports are  having very simple select statements, using the criteria users enter from GUI. we don't need to execute a  direct select statement from Java, with the where clauses . I did some research and found out about Pipelined functions. I tested for a small set of records and it worked fine. Will this work for large data set? any drawbacks of using this method?  Any other methods for this requirement?
    Thanks in advance
    JP

    Pipeline table functions do not sound like the appropriate approach. It is designed to primarily deal with data transformations. Using it as a rendering engine for report writing? There are fundamental problems with such an approach.
    As Dave and Andre commented - the CORRECT means for PL/SQL to pass "data" to Java (or other client languages) is via reference cursors (pointers that the client can use for referencing SQL cursor programs on the server). And Java as a report writer does not really compare with the ease and flexibility that Oracle Apex (Application Express) provides as a reporting framework.

  • JSP Best Practices and Oracle Report

    Hello,
    I am writing an application that obtains information from the user using a JSP/HTML form and then submitted to a database, the JSP page is setup using JSP Best Practices in which the SQL statments, database connectivity information, and most of the Java source code in a java bean/java class. I want to use Oracle Reports to call this bean, and generate a JSP page displaying the information the user requested from the database. Would you please offer me guidance for setting this up.
    Thank you,
    Michelle

    JSP Best Practices.
    More JSP Best Practices
    But the most important Best Practice has already been given in this thread: use JSP pages for presentation only.

  • URGENT! Java and Oracle

    I'm currently developing a Java application that connects to an oracle database and retrieves various information. The application connects fine to the database and I can SELECT information and all the other basic stuff.
    The problem I have is this, I have to call on server side scripts, .SQL files, to generate reports. From there I will somehow(?!) get the information that is contained in these reports but to start with I love to know how I can call these files.
    If I log into sqlplus I can run the file as normal:
    SQL>@file_name.sql
    The above runs the file and the report is generated OK.
    But if I try to use Java code such as ResultSet rs = statement.executeQuery() the program spits the dummy and tells me that I have supplied an "invalid SQL statement".
    Bearing in mind I can use statement.executeQuery() to successfully perform SELECT's, UPDATE's etc. I simply swap the select information for "@file_name.sql" to immitate what happens at the sqlplus command prompt to execute.
    All a total failure! If anyone knows would they please please help?!
    Thanks in advance,
    Tony

    Hi jschell,
    Many thanks for your reply by the way. Not to appear
    completely thick and stupid but I aint a master of
    Java by any means, is it possible you could suggest
    how I would "make a system call that runs SQL*plus
    and executes the script". Is there anywhere in
    particular I would look to attain the source code to
    achieve this? I have spent evening after evening
    trying to find source or a pointer on how to achieve
    this, I am beginning to get very frustrated!
    Well first you need to figure out where you are going to run this.
    It is either going to run on the client machine or it is going to run on the server. Both solutions are unlikely.
    Your other attempt, with Runtime.exec() will only work on the client machine.
    The server solution that I suggested requires PL/SQL, not java, to run the command. It will only work on the server. As for the packages I suggest you dig into your references (I would start with the O'Reilly books "Oracle PL/SQL Programming" and "Advanced Oracle PL/SQL Programming").

  • JAVA Application & Oracle Reports

    How can I call a Report writen with Oracle Reports
    from a JAVA application?
    In C++ I create a process and call for excample r30run32.exe
    with a parameter.
    Thanks
    Martin
    null

    Martin Leiacker (guest) wrote:
    : How can I call a Report writen with Oracle Reports
    : from a JAVA application?
    : In C++ I create a process and call for excample r30run32.exe
    : with a parameter.
    : Thanks
    : Martin
    Hi Martin,
    you can use the method exec() of the class java.lang.Runtime.
    The code looks about like this:
    Runtime.getRuntime().exec("r30run32.exe");
    Yours,
    Martin
    null

Maybe you are looking for

  • My keypad is not working!!! please help

    hi my phone has been working normally then suddenly it wont do anything. the trackball works but just to light up the screen, it wont move onto the emergency call or cancel buttons and it wont click. the keypad has tptally stopped working, and i cant

  • How do I change the main iCloud account on my iPad?

    I need to change the main iCloud account on my iPad. I'm merging family MobileMe accounts' contacts, and need to set up multiple devices with the main iCloud family account so we will all share photos, contacts, calendars, etc, but have separate emai

  • [CS3][JS] find/change quotation marks to typographer quotes

    my document contains a lot of quotation marks but they are not typographic (the opening one and the closing one are similar (") i want them to be typographic. I tried this script and it doesn't work. var myDoc = app.activeDocument; app.findGlyphPrefe

  • Trouble updating iPhoto 11 v. 9.4.2 on OS X v. 10.8.5. to v. 9.4.3.

    I am running iPhoto 11 v. 9.4.2 on OS X v. 10.8.5.  I am trying to update to v. 9.4.3.  I am prompted to run the update through Software Update which opens up the App Store where no update is listed.  iPhoto came with my computer when I orginally pur

  • Another annoying problem.

    Copying a patch in a new patch lose some assignment of the pedals. For example I have a pedal ON / OFF. I use it to switch a master keyboard sending it to two external hardware synthesizers. With the pedal released is sent to a synthesizer with the p