Complete SQL query

Hi all,
In my prod alert log I found that there was some sql query which were running for a long time and get out with some ORA error.
I need to know the whole SQL query that was running. Is there any table (in backend) through which I can find out what exactly that sql was or is there any way to know whole sql ?
Appl version is 11i with 10.2.0.4 database.
The log file is showing this errror.
ORA-01555 caused by SQL statement below (SQL ID: gn8vxz17kaq7j, Query Duration=25499 sec, SCN: 0x0008.44e7e0b9):
Thu Mar 4 19:53:28 2010
SELECT
itm.subinventory_code subinventory_code,
itm.CATEGORY CATEGORY,
itm.subcategory subcategory,
itm.item_code item_code,
itm.inventory_item_id inventory_item_id,
itm.description description,
itm.uom uom,
ROUND(NVL(itm.op_qty,0),2) op_qty,
ROUND(NVL(itm.op_qty * itm.itm_cost,0), 2) op_val,
ROUND(NVL(TO_NUMBER(SUBSTR(itm.rec_dtls, 1,14), '999999999.999'), 0), 2) rec_qty,
ROUND(NVL(TO_NUMBER(SUBSTR(itm.rec_dtls,16,14), '999999999.999'), 0), 2) rec_val,
ROUND(NVL(TO_NUMBER(SUBSTR(itm.iss_dtls, 1,14), '999999999.999'), 0), 2) iss_qty,
ROUND(NVL(TO_NUMBER(SUBSTR(itm.iss_dtls,16,14), '999999
Thu Mar 4 19:53:53 2010
Thanks in adv.

Hi user;
Please check Note:LOBs and ORA-01555 troubleshooting [ID 846079.1]
Hope it helps
Regard
Helios

Similar Messages

  • Concatenate results SQL query and CASE use Report Builder Reporting Services

    I need to concatenate the results from a SQL query that is using CASE.  The query is listed below.  I do not need permitsubtype but I need to concatenate the results from the permittype. 
    I tried deleting the permitsubtype query and it would not run correctly.  Please see the query and diagram below.  Any help is appreciated.
    select  PERMIT_NO
    ,(case when
      ISNULL(PERMITTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITTYPE)))
      END) AS PERMITTYPE
    ,(case when
      ISNULL(PERMITSUBTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITSUBTYPE)))
      END) AS PERMITSUBTYPE
     ,ISSUED
     ,APPLIED
     ,STATUS 
     ,SITE_ADDR 
     ,SITE_APN
     ,SITE_SUBDIVISION
     ,OWNER_NAME
     ,CONTRACTOR_NAME
     ,ISNULL(JOBVALUE,0) AS JOBVALUE
     ,FEES_CHARGED
     ,FEES_PAID
    ,BLDG_SF
    from Permit_Main
    where ISSUED between @FromDate and @ToDate

    Hi KittyCat101,
    As per my understanding, you used case when statement in the query, you do not need to display permitsubtype in the report, but when you tried to delete permitsubtype from the query, it could not run correctly. In order to improve the efficiency of troubleshooting,
    I need to ask several questions:
    “I tried deleting the permitsubtype query and it would not run correctly.” As we can see, it has no effect to delete permitsubtype from the query you provided, could you please provide complete sql query for the report?
    Could you please provide detailed information about the report? I would be appreciated it if you could provide sample data and screenshot of the report.
    Please provide some more detailed information of your requirements.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • Cannot Change SQL Query in Master page

    I am testing out Flex 3 and when I add a new master
    page and try to click the "Edit Master Page" button to write a query, nothing happens.  Any ideas?

    hello shay,
    no i not use the setWhereClause methode,
    i set the complete sql query (included where clause) from my backing bean!
        public void setSqlQuery4Object(StringBuffer sqlStr){
            ObjectsVOImpl vo =(ObjectsVOImpl)findViewObject("ObjectsVO");                    // Get ViewObject
            vo.setFullSqlMode(vo.FULLSQL_MODE_AUGMENTATION);
            vo.setQuery(sqlStr.toString());
        }i set the vo.setFullSqlMode(vo.FULLSQL_MODE_AUGMENTATION); and my problem are solved.
    is this way correct ??
    Thomas

  • Sql Query taking very long time to complete

    Hi All,
    DB:oracle 9i R2
    OS:sun solaris 8
    Below is the Sql Query taking very long time to complete
    Could any one help me out regarding this.
    SELECT MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
    md1.transaction_version
    FROM transaction_data_arc md1
    WHERE md1.transaction_name = :b2
    AND md1.transaction_type = 'REQUEST'
    AND md1.message_type_code = :b1
    AND NOT EXISTS (
    SELECT NULL
    FROM transaction_data_arc tdar2
    WHERE tdar2.request_id = md1.request_id
    AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
    AND tdar2.ID > md1.ID)
    GROUP BY md1.request_id,
    md1.jlpp_transaction_id,
    md1.transaction_version
    Any alternate query to get the same results?
    kindly let me know if any one knows.
    regards,
    kk.
    Edited by: kk001 on Apr 27, 2011 11:23 AM

    Dear
    /* Formatted on 2011/04/27 08:32 (Formatter Plus v4.8.8) */
    SELECT   MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
             md1.transaction_version
        FROM transaction_data_arc md1
       WHERE md1.transaction_name = :b2
         AND md1.transaction_type = 'REQUEST'
         AND md1.message_type_code = :b1
         AND NOT EXISTS (
                SELECT NULL
                  FROM transaction_data_arc tdar2
                 WHERE tdar2.request_id = md1.request_id
                   AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
                   AND tdar2.ID > md1.ID)
    GROUP BY md1.request_id
            ,md1.jlpp_transaction_id
            ,md1.transaction_versionCould you please post here :
    (a) the available indexes on transaction_data_arc table
    (b) the description of transaction_data_arc table
    (c) and the formatted explain plan you will get after executing the query and issuing:
    select * from table (dbms_xplan.display_cursor);Hope this helps
    Mohamed Houri

  • SQL Query to find the Notify upon Completion employees

    Hi,
    I am looking for a query to find the names of the employees/users who are notified upon the completion of the Concurrent Programs. I know how to find the concurrent program details but not able to find notify upon completion employees details. Please help me.
    Thanks,
    KM

    Thanks Scott for responding. There is no any custom code. Here is the navigation to reach there:
    System Administrator -> Requests -> View -> Specific Requests -> Open any request ->View Details -> Options -> Notify the following people
    I am looking for the query to find these notified people using SQL Query.Query FND_CONCURRENT_REQUESTS table (NOTIFY_ON_PP_ERROR column) -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
    Thanks,
    Hussein

  • SQL Query Editor Hangs Completely!

    Hi,
    I am working on Dell Precision 360,Windows XP with 512MB RAM.
    Problem is Studio creator works almost well with the 512MB RAM(esp. by increasing the process priority),
    but whenever I open the SQL Query Editor to edit a query it hangs completely.
    I don't think it hangs due to memory shoratge problem.
    what could be the reason or is their some other alternative ,coz whenever it hangs i have to manually kill the process due to which sometime some files get corrupted.

    Hi,
    The system requirements for Creator 2 can be found at:
    ttp://developers.sun.com/prodtech/javatools/jscreator/features/sysreqs/index.html
    As can be seen 1 GB RAM is required. At 512 MB the performance will be affected.
    Cheers
    Giri

  • Complete novice needs help getting SQL Query into Crystal Reports XI

    Post Author: MissMarnie
    CA Forum: Data Connectivity and SQL
    So I was given an intro level web course and a monster reference guide in prep to format a report. One of our developers wrote me everything I need for the report into a SQL Query and now I'm supposed to format it in CR XII literally do not know what to do from here. I'm able to set up the correct server as a datasource, if that's useful, but I don't know how to make the querey into a bunch of formattable fields in  CR. If anyone can walk me through this, I'd be so grateful. I've attempted to look up SQL query in both the help and the book but I keep hitting a wall. The help dialog says things like "press this button" with no reference to what "this button" is. I'm sure it's obvious to the knowledgeable but I'm in a complete fog. Thanks in advance   

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    IF you're trying to get assistance with setting up a query as the source for a report, try posting your Crystal version and the database type.
    Different software works differently.
    In CR 9 and above, under the connection to the database you'll see Add Command. Select that and you can paste the query in.
    As for not knowing how to generate a report, that requires experience, there's no generic solution of course..
    -k

  • Problem with SQL query never completing

    Right I have a piece of code which executes an SQL query but no matter what I do the program always hangs whenever it gets to the SQL execute line, I have tried using stmt.execute, executeUpdate and executeQuery and none work.
    I can however connect to the database directly and run the same query and it works fine, would be really grateful for some help.
    Code snippet is below, and works is never printed to the command line.
           SQLString = "INSERT INTO TH.OUTPUT_DATA_SNAPSHOT_HDR_TH " +
                    "( EXEC_DATE, USER_ID, OUTPUT_STYLE, OUTPUT_DATE, " +
                    "OUTPUT_FILENAME, SPARE_CHAR_01, SPARE_CHAR_02, " +
                    "SPARE_CHAR_03, SPARE_CHAR_04, SPARE_CHAR_05, " +
                    "SPARE_CHAR_06, SPARE_CHAR_07, SPARE_CHAR_08, " +
                    "SPARE_CHAR_09, SPARE_CHAR_10, SPARE_DATE_01, " +
                    "SPARE_DATE_02, SPARE_DATE_03, SPARE_DATE_04, " +
                    "SPARE_DATE_05, SPARE_DATE_06) " +
                    "VALUES " +
                    "('" + OutExec_Date + "', '" +                     // Exec_Date
                    String.valueOf(DatabaseProperties.AppUserID) +     // User ID
                    "', '" + OutputStyle + "', " +                     // Output_Style
                    "'" + OutputDate + "', " +                         // Output_Date
                    "'" + GlobVarStore.CopyInvDirectory + "', "+       // Output_Filename
                    "'', " +                                           // Spare_Char_01
                    "'', " +                                           // Spare_Char_02
                    "'', " +                                           // Spare_Char_03
                    "'', " +                                           // Spare_Char_04
                    "'', " +                                           // Spare_Char_05
                    "'', " +                                           // Spare_Char_06
                    "'', " +                                           // Spare_Char_07
                    "'', " +                                           // Spare_Char_08
                    "'', " +                                           // Spare_Char_09
                    "'', " +                                           // Spare_Char_10
                    "'" + OutputDate + "', " +                         // Spare_Date_01  - Must not be null
                    "'" + OutputDate + "', " +                         // Spare_Date_02
                    "'" + OutputDate + "', " +                         // Spare_Date_03
                    "'" + OutputDate + "', " +                         // Spare_Date_04
                    "'" + OutputDate + "', " +                         // Spare_Date_05
                    "'" + OutputDate + "'" +                           // Spare_Date_06
           Statement stmt = DatabaseProperties.DBConnection.createStatement();
           System.out.println(SQLString);
           stmt.executeQuery(SQLString);
           System.out.println("works");

    Right I didn't know what a prepared statement was so have done a bit of research and come up with the following code, seems to give same error.
    I know the connection is working because other SQL code is executing in program before it gets to this point, have included the actual SQL statement as well.
    Cheers for your help
           try
              PreparedStatement prepStmt = DatabaseProperties.DBConnection.prepareStatement("INSERT INTO TH.OUTPUT_DATA_SNAPSHOT_HDR_TH ( EXEC_DATE, USER_ID, OUTPUT_STYLE, OUTPUT_DATE, OUTPUT_FILENAME, SPARE_CHAR_01, SPARE_CHAR_02,SPARE_CHAR_03, SPARE_CHAR_04, SPARE_CHAR_05,SPARE_CHAR_06, SPARE_CHAR_07, SPARE_CHAR_08,SPARE_CHAR_09, SPARE_CHAR_10, SPARE_DATE_01,SPARE_DATE_02, SPARE_DATE_03, SPARE_DATE_04, SPARE_DATE_05, SPARE_DATE_06) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?, ?, ?, ?, ?, ?, ?, ?, ?)");
              prepStmt.setString(1,OutExec_Date);
              prepStmt.setString(2, String.valueOf(DatabaseProperties.AppUserID));
              prepStmt.setString(3,OutputStyle);
              prepStmt.setString(4,OutputDate);
              prepStmt.setString(5,GlobVarStore.CopyInvDirectory);
              prepStmt.setString(6,"");
              prepStmt.setString(7,"");
              prepStmt.setString(8,"");
              prepStmt.setString(9,"");
              prepStmt.setString(10,"");
              prepStmt.setString(11,"");
              prepStmt.setString(12,"");
              prepStmt.setString(13,"");
              prepStmt.setString(14,"");
              prepStmt.setString(15,"");
              prepStmt.setString(16,OutputDate);
              prepStmt.setString(17,OutputDate);
              prepStmt.setString(18,OutputDate);
              prepStmt.setString(19,OutputDate);
              prepStmt.setString(20,OutputDate);
              prepStmt.setString(21,OutputDate);
              System.out.println(prepStmt.toString());
              prepStmt.executeUpdate();
              System.out.println("works");
           catch(SQLException SQLe)
              SQLe.printStackTrace();
    INSERT INTO TH.OUTPUT_DATA_SNAPSHOT_HDR_TH ( EXEC_DATE, USER_ID, OUTPUT_STYLE, OUTPUT_DATE, OUTPUT_FILENAME, SPARE_CHAR_01, SPARE_CHAR_02, SPARE_CHAR_03, SPARE_CHAR_04, SPARE_CHAR_05, SPARE_CHAR_06, SPARE_CHAR_07, SPARE_CHAR_08, SPARE_CHAR_09, SPARE_CHAR_10, SPARE_DATE_01, SPARE_DATE_02, SPARE_DATE_03, SPARE_DATE_04, SPARE_DATE_05, SPARE_DATE_06) VALUES ('09/09/2009', '200', 'INVOICE', '16/09/2009', 'C:\Users\aaronh\DOC20090916163456.txt', '', '', '', '', '', '', '', '', '', '', '16/09/2009', '16/09/2009', '16/09/2009', '16/09/2009', '16/09/2009', '16/09/2009')

  • No Data Found for SQL query

    Hello,
    I have a simple SQL query in a report.
    select
          null as "Complete",
             a.col1,
             a.col2,
             a.col3,
             a.col4,
          b.col2
    from      TableA a, TableB b
    where   a.id = b.idThere is a known issue in apex 4.0 that is causing the "When No Data Found" message to work incorrectly so that this is returned:
    report error:
    ORA-01403: no data found
    Is there a way to return a message in a SQL statement? If not, any suggestions on how I can convert this in the existing report to PL/SQL would be appreciated.
    Thanks!
    Matt

    I would like to do something similar to this (below) but the only option that is given other than "SQL Query" is “PL/SQL function body returning a SQL query”
    I'm not sure how to do this as a funciton.
    declare
    vComplete Varchar2;
    vCol1        Varchar2;
    vCol2        Varchar2;
    vCol3        Varchar2;
    vCol4        Varchar2;
    vColB2      Varchar2;
    Begin
    select
             null as "Complete",
             a.col1,
             a.col2,
             a.col3,
             a.col4,
             b.col2
    into vComplete,vCol1,vCol2,vCol3,vCol4,vColB2
    from   TableA a, TableB b
    where   a.id = b.id
    Dbms_output.put_line(vComplete,vCol1,vCol2,vCol3,vCol4,vColB2);
    Exception
          When no_data_found
                Dbms_output.put_line(vComplete,vCol1,vCol2,vCol3,vCol4,vColB2);
          When others
                Dbms_output.put_line(‘exception handling message’);
    End;

  • SQL query with parallel hint  running very slow

    I have a SQL query which joins three huge tables. (given below)
         insert /*+ append */ into final_table (oid, rmeth, id, expdt, crddt, coupon, bitfields, processed_count)
         select /*+ full(t2) parallel(t2,31) full(t3) parallel(t3,31)*/
         seq_final_table.nextval, '200', t2.id, t3.end_date, '1/jul/2009',123,t2.bitfield, 0
         from table1 t1, table2 t2, table3 t3 where
         t1.id=t2.id and
         t2.pid=t3.pid and
         t2.vid=t3.vid and
         t3.end_date is not null and
         (trunc(t1.expiry_date) != trunc(t3.end_date) or trim(t1.expiry_date) is null);
         Below are some statistics of the three tables.
         Table_Name          RowCount    Size(MB)
         table1 36469938 532
         table2 242172205     39184
         table3 231756758     29814
         The above query ran for 30+ hours, and returned with no rows inserted into final_table. I didn't get any error message also.
         But when I ran the query with table1 containing just 10000 records, the query completed succesfully within 20 minutes.
         Can any one please optimize the above query?
    Edited by: jaysara on Aug 18, 2009 11:51 PM

    As a side note: You probably don't want to insert a string into a date field, won't you?
    Under the assumption that crddt is of datatype date:
    crddt='1/jul/2009' needs to be changed into
    crddt= to_date('01/07/2009','dd/mm/yyyy') This is data type correct and nls independent.

  • SQL query with Java Server Pages

    Hey,
    I'm trying to read some information from database with SQL Query. How I can put the parameter that I get from previous *.jsp page to SQL query?
    Technologies that I use are WML, JSP and MySQL.
    I can get the parameter by method getParameter() and it is correct.
    But how to but the requested parameter into sql query and complete the sql query?
    Should I read it to some variable before putting it to sql query?
    */ this works fine */
    out.println("<p>periodi"+request.getParameter("periodi"+"loppu</p>");
    /* this doesn't work */
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi='+request.getParameter("periodi")+'");
    /* this doesn't work */
    String periodi=request.getParameter("periodi");
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi='periodi' '");
    Thanks,
    Rampe

    Hey,
    I'm trying to read some information from database
    se with SQL Query. How I can put the parameter that I
    get from previous *.jsp page to SQL query?
    Technologies that I use are WML, JSP and MySQL.
    I can get the parameter by method getParameter()
    () and it is correct.
    But how to but the requested parameter into sql
    ql query and complete the sql query?
    Should I read it to some variable before putting it
    it to sql query?
    */ this works fine */
    out.println("<p>periodi"+request.getParameter("periodi"
    "loppu</p>");
    /* this doesn't work */
    ResultSet tulokset = lause.executeQuery("select * from
    kurssi where
    periodi='+request.getParameter("periodi")+'");
    /* this doesn't work */
    String periodi=request.getParameter("periodi");
    ResultSet tulokset = lause.executeQuery("select *
    * from kurssi where periodi='periodi' '");
    Thanks,
    RampeTry this
    ResultSet tulokset = lause.executeQuery("select * from kurssi where periodi=" + "'" +request.getParameter("periodi")+"' " );this should work

  • Report from SQL Query -Excel format only show the first page

    Hi,
    I have some Reports from SQL Query. In the display options, I choose Excel as default format. The Excel documents only show the first page. If I choose HTML as default format, it shows every rows.
    Please advise on how to have a complete Excel document as HTML format does.
    Thanks a lot.
    Lina Han

    I beleive when you export Oracle reports to Excel it is the Data that is transferred along with Column Names.
    You cannot export the variables defined on the report.
    Hence you will not be able to export the Footer to excel. (Still looking into it will let you know if i find anything interesting)
    Regards,
    Bhushan Salgar

  • How can I use the Rownum/Customized SQL query in a Mapping?

    Hi,
    * I need to use a Rownum for populating one of the target field? How to create a mapping with Rownum?
    * How can I use an Dual table in OWB mapping?
    * Can I write Customized SQL query in OWB? How can I achieve this in a Mapping?
    Thanks in Advance
    Kishan

    Hi Niels,
    As I'm sure you know, the conundrum is that Reports doesn't know how many total pages there will be in the report until it is all done formatting, which is too late for your needs. So, one classical solution to this problem is to run the report twice, storing the total number of pages in the database using a format trigger, and throwing away the output from the first run when you don't know the total number of pages.
    Alternatively, you could define a report layout so that the number of pages in the output is completely predictable based upon, say, the number of rows in the main query. E.g., set a limit of one, two, ... rows per page, and then you'll know how many pages there will be simply because you can count the rows in a separate query.
    Hope this helps...
    regards,
    Stewart

  • Can we generate the output of SQL Query in XML format ..

    Hi Team,
    Can we generate an XML doc for an SQL Query.
    I've seen in SQL Server 2000.It is generating the output of an SQL Query in xml format.
    select * from emp for xml auto
    The output looks like
    <emp EMPNO="7369" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="20"/><emp EMPNO="7370" ENAME="SMITH" JOB="CLERK" MGR="7902" HIREDATE="1980-12-17T00:00:00" SAL="2800" DEPTNO="10"/>

    Just a little bit of short hand.
    Get the XML out of your database, via HTTP
    Of course the easiest method is just to return an XMLType from a stored procedure and let the calling routine figure out what to do with it. Instead
    of that way though, I'll show you how to do it via HTTP. It's all completely built into 10g and is super easy to use.
    CREATE OR REPLACE VIEW emps_and_depts AS
    SELECT e.employee_id AS "EmployeeId",
    e.last_name AS "Name",
    e.job_id AS "Job",
    e.manager_id AS "Manager",
    e.hire_date AS "HireDate",
    e.salary AS "Salary",
    e.commission_pct AS "Commission",
    XMLFOREST (
    d.department_id AS "DeptNo",
    d.department_name AS "DeptName",
    d.location_id AS "Location"
    ) AS "Dept"
    FROM employees e, departments d
    WHERE e.department_id = d.department_id
    Some people hear web and immediately start salivating about security issues. Let me address that quickly. Just because you have the HTTP and/or
    FTP servers running in the database, that does not mean you have a security problem. For one, I would hope your databases are behind a firewall.
    Second, with the correct architecture (DMZ, app servers, etc) you can make this data available outside the firewall fairly transparently and third,
    just because it's on the web does not mean the data MUST be available on the internet. This is a good way to make your data available on your
    intranet. If you are worried about people INSIDE your firewall, that still doesn't preclude web based access. Follow Oracle security guidelines.
    Before I show you how to get to your data, let's talk about URLs and URIs. A URL is a Uniform Resource Locater and URI is a Uniform Resource
    Identifier. A URL is the way you would identify a document on the net, i.e. http://www.oracle.com is a URL. A URI is a more generic form of a URL.
    Oracle supports three types of URI: HTTPURIType - basically a URL (which would be like the URL above), XDURIType - a pointer to an XDB resource
    (usually an XML document but can be other objects), and DBURIType - a pointer to database objects.
    It's the DBURIType that we're going to concentrate on here. The DBURIType let's us reference database objects using a file/folder paradigm. The
    format for a DBURI is /oradb/<schema>/<table>. Oradb is shorthand for the database; it is not the database name or SID. My database is named XE
    but I still use oradb in the DBURI. For example, the view we created above is in my XE database, is owned by HR (at least in my case) and is called
    EMPS_AND_DEPTS. This can be referenced as /oradb/HR/EMPS_AND_DEPTS.
    If the view had many rows and you wanted only one of them, you can restrict it by including a predicate. The documentation for XDB has a great
    write up on Using DBURIs.In our case, we are going to write out the entire document. Now that you understand that the DBURI is a pointer to
    objects in our instance, we can use that to access the data as a URL.
    The format for the URL call is http://<machinename>:<port>/<DBURI>
    In my case, my XE database is running on a machine called mach1 and is listening on port 8080. So to see the view we created above, I open my
    browser and navigate to: http//mach1:8080/oradb/HR/EMPS_AND_DEPTS
    The created URL will be as http//mach1:8080/oradb/PUBLIC/EMPS_AND_DEPTS
    If your database is set up correctly and listening on port 8080 (the default), your browser should ask you to login. Login as the user who created the
    view (in my case HR). You should now get an XML document displayed in your browser.
    And that's it. It doesn't get much simpler than that. If you get rid of the descriptive text above, it basically comes down to:
    Create a table or view
    Open your web browser
    Enter a URL
    Enter a user ID and password
    View your XML
    If you notice, Oracle formatted the data as XML for us. Our view returns scalar columns and an XML fragment called Dept. Oracle formatted the
    return results into an XML format.
    And as a side note, if you look closely, you'll see that my URL has PUBLIC where I said to put HR. PUBLIC is a synonym for all objects that your
    logged in user can see. That way, if your user has been granted select access on many schemas, you can use PUBLIC and see any of them.

  • Which row was clicked in an SQL Query (updateable report)?

    I have an application with a report based on an SQL Query (PL/SQL function ...) defined on the Global Page.
    On the pages where the report is used, I want to click in a particular column (TCKT_ID) and pass the values in that row to another page for processing.
    Things I would like to know:
    1) How to determine which row was clicked?  The column is TCKT_ID and it is used as a link to another page.  The SQLis a non-trivial (for me!) join of tables.
    2) How to refer to the values of the other columns in that row?  Because I format with "div," the columns are named -- no "f02", "f03", etc.
    3) How to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page?  You might ask: Why not just re-query for the data using a unique key.  Splendid idea, but the unique key is four columns so I still need some way to pass these four values to have that unique key.
    I've constructed a "pretty close" example of the situation here:
    WS APEX_EXAMPLES_01
    demo / demo
    Application: Row Info  10782  - Page 0 has the report.  Page 1 displays it with a link (in red) to page 2.
    I think I can complete most of what I need if someone can just show me how to get, say, the ENAME of the row clicked on page 1, so I can use it to filter the query on page 2 to just this row clicked on page 1.
    Using <tt> </tt>, I tried to display the actual row from View -- Source of the real report I'm dealing with but it just comes out like this
    M - F
    MM_O_BD_DAILY.ctl (ftp D046)CMM_O_BD_DAILY.sh (ftp D046)17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:15
    10JUN13 17:00:52
    10JUN13 17:00:53
    17:00
    10JUN13 17:00:59
    10JUN13 17:01:00
    Y
    ARS003_TESTNBD

    I wonder if I'm not understanding something. This seems like a very simple thing to do without any "tricks"
    Take a look, I've modified the LINKING_NUMBER column on the p0 report.
    Basically, you just specify the fields you want to populate and their assignments.  I added 4 destination fields on p2 to receive the assignments.  Then you can do anything you want with them like modifying a report, etc...
    The only trick here is that in order to pass more than 3 items in the URL you need to change your link type from Page in this application to URL.  Then you can specify lost of items this way.
    Thanks
    -Jorge

Maybe you are looking for

  • Any difference setting background MRP run in MDBT and SM37

    Hello, Just wander if there is any differences setting up MRP run in MDBT or in SM37 to run RMMRP000?  This is to run MRP at plant level in background. Thanks, Lin-Lin

  • Facing problem while implementing JMS in Weblogic 8.1

    Hi all, I am very new to JMS. I am trying to implement JMS in Weblogic. I have cofigured the server properly but while i am executing my receiver class i am getting the following error: javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueu

  • Sent messages are being marked as "unread"

    Ever since installing OS X 10.8.3, both my iMac and MBP have been leaving sent messages marked as "unread".  Not all outgoing messages are being left in this unread state, but most are.  Any ideas on why this might be happening and how to fix it?  Is

  • Transferring Search Help values from ECC 6.0 to SRM 7.0

    Hi SAP experts, I have a requirement to display the search help values for a data element in ECC 6.0 into the custom data element that I created on SRM 7.0. Is there a BAPI that I can use to retrieve the values for a search help element (for example

  • Javascript Alert on download setup

    I just purchased Adobe Elements 6.0 for my IMac and have previously used a trial version. I have successfully downloaded the program, but when I run the setup file I get this error  "Javascript Alert: Critical errors were found in setup. Incompatible