Nested queries in Apex/BEEP Source?

With the help of Apex 4.0.2.00.07, I have a master report / detail required that has a rather long header/footer and then lots of detail rows.  The ideal ratio would eventually something like the following:

Paragraphs in header information

Line 1

....

Line 100

Info from footer paragraph

Is it possible for the Apex report queries to generate the XML to nest queries?  I know that I can throw it all in a single record by joining tables, but then I have to generate all the header information for each line instead of once for each master record.  I know that BEEP can handle it because I can do it for EBS by defining relationships of the query in the definition of data, but I can't seem to find a way to do it in the Apex report query.  I've seen several comments on this issue, but no definitive answer.  If anyone can help, I'd appreciate it.

Jessica,

You can not.  If you decide to put all the data in a single line, you can build your model to break in the header data.  The other option is to generate the report in the Pub BI and then call the report using webservice api bi pub.

Introduction to the Web Services BI Publisher - 11g Release 1 (11.1.1)

Tags: Database

Similar Questions

  • combinations, nested queries

    Hello everyone,

    We need to change technologies according to the needs of the company and we would like to understand request.
    Select t1.fld1 as class, v2.section, v1.duration,
    T1.fld2 as start_date, end_date as t1.fld3,
    (t1.fld2 + v2.section - 1) as sectiondate
    Of
    (select Fld1 as class, ((fld3-fld2) + 1) as the length)
    from t1
    ) v1
    , (select rownum as object section where rownum < 180) v2
    t1
    where t1.fld1 = v1.class
    and v2.section < = v1.duration
    rownum, nest queries, dot operator and combinations make us confused.
    We need help with this.

    Thanks in advance,

    NY

    Hello

    I don't have your question. In your request, that you do not use one of the columns object, you simply use a virtual column rownum to get an output of 180 lines with value 1-179. This array with the value 1 to 179 you set v2 table in your SQL.

    Concerning

  • XML not nested queries return no line plus


    Hello
    I have an urgent problem concerning the following:
    I've migrated the XMLDB queries below 11.2.0.1 to 11.2.0.3

    I registered just the schema

    () DBMS_XMLSCHEMA.registerSchema
    SCHEMAURL = > ' http://www.mywebsite.com/XML/Impex/order/2006-10-31 ',
    SCHEMADOC = > bfilename ('XMLDIR', 'order.xsd'),
    local = > TRUE,
    gentypes = > TRUE,
    gentables = > TRUE,
    CSID = > nls_charset_id ('AL32UTF8'));
    COMMIT;

    Some query works correctly and others not more are:
    Queries that do not work are those referring to XML elements nested as in "QUERY 2" below

    I think I missed a few steps of initialization for XMLDB.

    Order.xsd is the same in both cases

    SQLTypes and collections air well (they were created.
    (Do not know gentables = > TRUE is necessary in creating schema)

    Please give some feedback soon.
    Thank you very much in advance.

    In the following XML_FILE is XMLTYPE


    QUERY 1
    SELECT THIS WORKS PROPERLY

    --------------------------------
    SELECT
    ORDER_LEVEL1.order_no,
    TO_TIMESTAMP (ORDER_LEVEL1.order_date, ' YYYY-MM-DD "T" HH24:MI:SS.ff3 "Z" "").
    ORDER_LEVEL1.created_by, ORDER_LEVEL1.currency, ORDER_LEVEL1.customer_locale, ORDER_LEVEL1.order_status
    Of
    p (selection double XML_FILE),
    XMLTable)
    xmlnamespaces (default 'http://www.mywebsite.com/xml/impex/order/2006-10-31'),
    ' / orders/order "ADOPTION p.XML_FILE
    COLUMNS
    The "@order-no"order_no WAY,
    ORDER_DATE PATH "order date"
    created_by PATH "created by",
    currency of access road "currency."
    customer_locale "client-local," PATH
    order_status PATH "order status/tracking".
    ) ORDER_LEVEL1;
    -----------------------------------


    QUERY 2
    THIS SELECTION IS NOT WORKING NOW (returns the LINES No.)
    --------------------------------
    Select
    order_no as order_no, STOREID as STOREID, SHIPPINGMETHOD as SHIPPINGMETHOD
    Of
    (
    with mainq as
    (
    Select
    ORDER_LEVEL1.order_no as ORDER_NO,
    CUSTOMATT_LEVEL2.*
    Of
    p (selection double XML_FILE),

    XMLTable)
    xmlnamespaces (default 'http://www.mywebsite.com/xml/impex/order/2006-10-31'),
    ' / orders/order "ADOPTION p.XML_FILE
    COLUMNS
    The "@order-no"order_no WAY,
    custom_attribute PATH of XMLTYPE "custom-attributes/custom-attribute.
    ) ORDER_LEVEL1,.

    XMLTable (xmlnamespaces (default 'http://www.mywebsite.com/xml/impex/order/2006-10-31'), )
    "/ custom attribute" ADOPTION ORDER_LEVEL1.custom_attribute
    COLUMNS
    attribute_id PATH ' @attribute-id ',
    path value 'value '.
    ) CUSTOMATT_LEVEL2
    )
    Select
    order_no,
    STOREID, Max (decode(attribute_id,'storeId',TheValue)),
    Max (decode(attribute_id,'shippingMethod',TheValue)) SHIPPINGMETHOD
    of mainq
    Order_no group
    );

    ORDER FOR REFERENCE. XSD (only the rΘation segment to the elements in the query)

    < xsd: element name = "orders" xdb:defaultTable = "ORDERS" >
    < xsd: complexType mixed = "false" xdb:SQLType = "DMW_ORDERS" xdb:maintainDOM = "false" >
    < xsd: SEQUENCE >
    < xsd: element name = "command" type = "complexType.Order" xdb:SQLCollType = "DMW_ORDERS_COLL" minOccurs = "0" maxOccurs = "unbounded" > < / xsd: element > "
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >

    < xsd: complexType name = "complexType.Order" xdb:SQLType = "DMW_ORDER" xdb:maintainDOM = "false" > "
    < xsd: SEQUENCE >
    < xsd: element name = "order date" type = "xsd: DateTime" minOccurs = "1" maxOccurs = "1" xdb:SQLType = "TIMESTAMP WITH TIME ZONE" >
    < xsd: annotation >
    < xsd: documentation > original date and time, the order was placed. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "created by" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "original-order-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "currency" type = "simpleType.Currency" maxOccurs = "1" minOccurs = "1" > < / xsd: element > "
    < xsd: element name = "customer-local" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "source code" type = "complexType.SourceCode" maxOccurs = "1" minOccurs = '0' > < / xsd: element > "
    < xsd: element name = "name-partner-affiliation" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "partner-affiliate-id" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "invoice-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "customer" type = "complexType.Customer" maxOccurs = "1" minOccurs = "0" > "
    < xsd: annotation >
    < xsd: documentation > information about the customer who placed the order. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "customer-order-reference" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "status" type = "complexType.OrderStatusSet" maxOccurs = "1" minOccurs = "0" > "
    < xsd: annotation >
    < xsd: documentation > Order status information. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "replace-code" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "description to replace" type = "simpleType.Generic.String.4000" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "replacement-order-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "replaced-order-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "current-order-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "cancel-code" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "cancel-description" type = "simpleType.Generic.String.4000" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "LineItem-product" type = "complexType.ProductLineItems" maxOccurs = "1" minOccurs = "0" > "
    < xsd: annotation >
    < xsd: documentation > product line items of the order. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "LineItem-giftcertificate" type = "complexType.GiftCertificateLineItems" maxOccurs = "1" minOccurs = '0' > < / xsd: element > "
    < xsd: element name = "transport-LineItem" type = "complexType.ShippingLineItems" maxOccurs = "1" minOccurs = '0' > < / xsd: element > "
    < xsd: element name = "expeditions" type = "complexType.Shipments" maxOccurs = "1" minOccurs = "0" > "
    < xsd: annotation >
    < xsd: documentation > shipments of the command. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "totals" type = "complexType.OrderTotals" maxOccurs = "1" minOccurs = "0" > "
    < xsd: annotation >
    < xsd: documentation > order total. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "payments" minOccurs = "0" maxOccurs = "1" type = "complexType.Payments" >
    < xsd: annotation >
    < xsd: documentation > payments used for the order. < / xsd: documentation >
    < / xsd: annotation >
    < / xsd: element >
    < xsd: element name = "remoteHost" type = "simpleType.Generic.String.40" minOccurs = "0" maxOccurs = "1" / > "
    < xsd: element name = "notes" type = "complexType.Notes" minOccurs = "0" maxOccurs = "1" / > "
    < xsd: element name = "external-order-no" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "external-order tracking" type = "simpleType.Generic.String.256" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "external-order-text" type = "simpleType.Generic.String" minOccurs = "0" maxOccurs = "1" > < / xsd: element > "
    < xsd: element name = "custom attributes" type = "sharedType.CustomAttributes" minOccurs = "0" maxOccurs = "1" / > "
    < / xsd: SEQUENCE >
    < xsd: attribute name = "order-no" type = "simpleType.Generic.String.256" use = "required" / > "
    < / xsd: complexType >

    .......................

    < xsd: complexType name = "sharedType.CustomAttributes" mixed = "false" xdb:SQLType = "DMW_CUSTOMATTRIBUTES" xdb:maintainDOM = "false" > "
    < xsd: SEQUENCE >
    < xsd: element name = "custom, the attribute" type = "sharedType.CustomAttribute" minOccurs = "0" xdb:SQLCollType = "DMW_CUSTOMATTRIBUTES_COLL" maxOccurs = "unbounded" / > "
    < / xsd: SEQUENCE >
    < / xsd: complexType >

    .......................

    < xsd: complexType name = "sharedType.CustomAttribute" mixed = "true" xdb:SQLType = "DMW_CUSTOMATTRIBUTE" xdb:maintainDOM = "false" > "
    < xsd: SEQUENCE >
    < xsd: element name = "value" type = "simpleType.Generic.String" minOccurs = "0" maxOccurs = "unbounded" / > "
    < / xsd: SEQUENCE >
    < xsd: attribute name = "id attribute" type = "simpleType.Generic.NonEmptyString.256" use = "required" / > "
    < xsd: attribute ref = "XML: lang" / >
    < / xsd: complexType >

    -XML (partial segment) example
    <? XML version = "1.0" encoding = "UTF-8"? "> < ordered xmlns ="http://www.mywebsite.com/xml/impex/order/2006-10-31">."
    < order order-no = "BLY0000001605" >
    < - > 2014 order date - 02-25T 11: 00:30.959Z < / date of order >
    ECOMMERCE < created-by > < / created by >
    BLY0000001605 < original-order - No. > < / original-order-not >
    < currency > $ < / currency >
    <>client-local en_US < / customer-local >
    < status >
    Placed > order tracking < < / order >
    < / status >
    < custom attributes - >
    < attribute custom attribute id = "storeId" > < value > < / value > < / custom attribute >
    < attribute custom attribute id = "shippingMethod" > < value > SAMEDAY_DLV < / value > < / custom attribute >
    < / custom attributes >
    < / order >
    < / order >

    I can't believe it. You are right.

    Removed the external selection and it worked! Mysteries of the Oracle :-)

    Thank you so much Odie

    (just a question: is 63 your favorite number or your birth year? you can answer me separately if you like...)

    GP_63

  • Query of queries on 2 data sources

    I'm doing a query of queries on 2 different data sources. I run a gaming site and have a 2 programs that are used for tracking. One is written in php, by someone else, following members point State. The other, I wrote it in CF, allows members to set priorities in Treasury. Both are independent on my server. What I'm trying to do is set up so that the program I wrote to FC shows the number of points, each Member has. I know how interrogate separate tables, but how do I combine them? In addition, how can I set up so that it only shows members that match. that is, I want to assure you that if John Smith has 100 points, the query will show John Smith 100 points on my table. Here is what the query looks like I did. As you can see, I'm confused about and WHERE statements. I played with him last night and could not make it work. Thank you.

    You can try the same correction/idea of what I posted in thread http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=1&catid=7

    Copied/Pasted from this thread:

    You can read through the first query and add content to a query to temp attributing some kind of field and then read through the second query and add same temp with a kind of field to the query. Then do a query of this temp query.

  • Nested queries

    I have this nested queryy but technology does not produce results as it should. The nested query works fine because I've alerted the values on, but I can't get the nested values to be written in the html code. Here is the code:

     tx.executeSql("select eventdate,strftime('%m',eventdate) as month, strftime('%Y',eventdate) as year from news where flag in ('E','A') and eventdate > '2011-7-6' group by date(eventdate,'start of month','+1 month','-1 day') having eventdate is not null order by date(eventdate,'start of month','+1 month','-1 day')", [],
    
                      function(tx,rs){
                       if(rs.rows.length > 0){
                           for(var i=0;i';
    
                                //alert(row.month+" "+row.year)
    
                                tx.executeSql("select subject,strftime('%m',eventdate) as month, strftime('%w',eventdate) as day from news where strftime('%m',eventdate) = strftime('%m','"+row.eventdate+"') and strftime('%Y',eventdate) = strftime('%Y','"+row.eventdate+"') and flag in ('E','A') order by eventdate", [],
    
                                    function(tx,rs2){
                                    //alert(rs2.rows.length);   
    
                                         for(var p=0;p'+row2.subject+'' ;
                                         }
    
                                    }
                                    , app.onError);
    
                                }
    
                           }//end for loop*/
    
                         showresultDiv.innerHTML += contentDiv+'';
                       }
    
                      }
    
                     , app.onError);
    

    Please can anyone help with this.

    Realizing the nature of the html5 application I decide not not my app like that. I made sure, after the main title are built I use an OnClick event to call a function that forwards the relevant data for me to make a dropdown menu with all the values that I needed to be out all at once on the charge.

  • nesting queries on multiple sql files - possible?

    Hello

    I was wondering if the following would be possible, and if so what the syntax in sqlplus?

    Imagine I have a query that generates a table of data output. I can then refer to it and affix analytical functions on this one in a separate sql file?

    For example if I have the query:

    AB.sql
    select count (*)
    from (select sysdate from dual)
    I could this split into two files sql A and B?

    A.SQL
    select sysdate from dual
    B.SQL
    select count (*) from @C:\A.sql
    the result of the execution of B.sql would be 1.

    for now I really wonder if this is doable on a conceptual level, anyone know?

    Thank you

    Jon

    Yes, on the conceptual level, it is possible.

    cat a.sql
    select count (*)
    from (
    @b.sql
    )
    ;
    
    cat b.sql
    select sysdate from dual
    sqlplus scott
    
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 12 13:13:58 2010
    
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    
    Enter password:
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> set echo on
    SQL> @a.sql
    SQL> select count (*)
      2  from (
      3  @b.sql
      3  select sysdate from dual
      4  )
      5  ;
    
      COUNT(*)
    ----------
             1
    

    Best regards

    Maxim

  • Apex 5 - pl/sql, before the process of the header

    Hi all

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Is there a way to do this without the need for dynamic action?

    Thanks in advance for your suggestions.

    Robi

    Hi Robi,

    Robi says:

    I have a PL/SQL process before header which read a table (with a key of the application element) and many elements of the page linked to the (authorized) db with a procedure in a package.

    Do you mean 'Automated line Fetch' process usually generated in the type wizard forms?

    In version 4.2, I could use page elements related to the column of the source table ' only when null... ", to place this items with PL/SQL, before that process the header and then submit them to update the db.

    Now in version 5, db binded items must have source "Always, replacing everything..", so how can I set this value points at a meeting with the process of pl/sql?

    I tried with the apex_util.set_session_state, but it does not work.

    Yes. It is newly introduced in Oracle APEX 5.0 forced a Page mapped to the DB column element should have used Source as "Always, replace the value that exists in the session state.

    You can change the Compatibility Mode of the APEX Application 4.2 to substitute the constraint.

    Reference: base Oracle: APEX 5 Source - attribute tolerates less mistakes

    Is there a way to do this without the need for dynamic action?

    If you want to stick to Oracle APEX 5.0 (and not to change the Compatibility Mode), then dynamic actions is the rest of the solution.

    Kind regards

    Kiran

  • That means PUSH_DEFERRED_RPC and NESTED in DBMS_MVIEW means. REFRESH the procedure?

    I am trying to learn excatly what is them parameters PUSH_DEFERRED_RPC and NESTED means. The following source written in documents. Can someone give a simple example.

    push_deferred_rpcUsed by the editable materialized views only. Set this parameter to true if you want to send the changes to the materialized view its associated master tables or master materialized views before refreshing the materialized view. Otherwise, these changes may appear temporarily lost.
    nestedIf true, then perform update nested for the definition of the materialized views. Nested refresh operations refresh all the function of materialized views and the definition of views materialized, based on a dependency to ensure the nested materialized views are truly fresh with respect to the underlying base tables.

    Thank you.

    This probably belongs in the forum of replication, but I'll answer it here.

    PUSH_DEFERRED_RPC is part of the two-way replication. You can do a materialized view can be changed, and have updates sent to the master table, in which case PUSH_DEFERRED_RPC will cause changes to the MV to be returned to the main table before the update is performed. If your MV is not editable, this setting has no effect.

    NESTED is used when you have a group of VMS who depend on each other. For example, MV1 is derived from MV2, which is derived from MV3. If you specify NESTED, then MV3 will be updated in the first place, followed by MV2 and MV1. If you don't specify a NESTED, that might not happen. If you're not refreshing nested MVs, this setting has no effect, but if you don't have a nested MVs, you must set this.

  • Apex 4.2. report filltered with the value of table by entry

    Hi all

    Please could you help me? I have problem with my select input filtering.

    select 
    "ROWID",
    "OSOBA_NASAZENI",
    "PROSTREDI_ZAKAZNIK",
    "PROSTREDI_VRSTVA",
    "DATUM_NASAZENI",
    "KOMENTAR",
    "KOMPONENTA_POLOZKA",
    "KOMPONENTA_NAZEV",
    "KOMPONENTA_VERZE",
    "ID_NASAZENI"
    from "#OWNER#"."NASAZENI"
    where PROSTREDI_ZAKAZNIK in (:P21_X)
    

    Filtr works very well in P21_X of entry can TBC value only or a different alone as GEMB. Where there is variety "TATRA", "FOUR", "BSC", "GEMB" it no longer works. I tried this single list without quotas, but it does not help.

    I want to reach is in case I will come to the page that I need to see specific things for people. As if someone extends from TBC, it should see only things to confirm. In which case I'll app I'd like to see all things. Is this possible?

    Thank you for your time and effort

    Good day

    redy007 wrote:

    Please could you help me? I have problem with my select input filtering.

    1. Select
    2. "ROWID",.
    3. "OSOBA_NASAZENI,"
    4. "PROSTREDI_ZAKAZNIK,"
    5. "PROSTREDI_VRSTVA,"
    6. "DATUM_NASAZENI,"
    7. "COMMENT."
    8. "KOMPONENTA_POLOZKA,"
    9. "KOMPONENTA_NAZEV,"
    10. "KOMPONENTA_VERZE,"
    11. 'ID_NASAZENI '.
    12. of ' #OWNER # '. " NASAZENI ".
    13. where PROSTREDI_ZAKAZNIK in (: P21_X)

    Filtr works very well in P21_X of entry can TBC value only or a different alone as GEMB. Where there is variety "TATRA", "FOUR", "BSC", "GEMB" it no longer works. I tried this single list without quotas, but it does not help.

    I want to reach is in case I will come to the page that I need to see specific things for people. As if someone extends from TBC, it should see only things to confirm. In which case I'll app I'd like to see all things. Is this possible?

    It's the common "variable list" model [anti-]. In

    select * from table where columnvalue in (7788, 7839, 7876)
    

    (7788, 7839, 7876)is a list of expressions and the predicate is evaluated as a membership condition.

    In

    select * from table where columnvalue in :P1_X
    

    :P1_Xis a scalar string, unable to contain multiple values.

    In a report of type APEX, a source report of the body of the PL/SQL function returning a SQL query with lexical substitution can be used to produce a "variable list:

    return 'select * from table where columnvalue in (' || :P1_X || ')';
    

    where P1_X contains less than 1000 values, has been disinfected to code SQL injectionand string values are properly cited.

    Some people suggest the following approach, that will work also in interactive APEX reports:

    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    

    However, it is underperforming because it eliminates the possibility of using the index optimizer or the size of the partition in the execution plan.

    See various elements in the list to ask Tom and imitating the channel to the table using sql features for effective solutions.

  • The schemas are required to export an APEX application and the EE DDL to itself and XE

    Source DB - Oracle 11 g 2 EA

    Target DB - Oracle 11 GR 2, 11 2 Oracle XE GR SE

    O/S - RHEL 6.5

    Application - APEX 4.2.2

    Must give up an APEX application and the underlying DDL associated with a database Oracle EE an Oracle SE and XE database.

    Patterns are required to export to accomplish this approach?

    Is there one method other than export patterns which would be preferably?  (for example export tablespaces).

    You should not deal with apex tablespace or schema APEX_040X00.

    Just follow these steps:

    (1) ensure that the APEX version is the same or higher in the target schema, upgrade if need be

    (2) discover patterns of the application (NOT APEX_XX) pump and export data those and import them into the target schema.

    (3) in the target database, create a different workspace and the link with the schemas imported analysis

    (4) export enforcement APEX of source database in the target database.

    If you expand the app, better to talk to the one who did it. Make sure that the Images, CSS, JavaScript files are added as objects of support and those that are then exported (to step 4).

    Basically don't worry about APEX_O40X00 scheme, as long as your Apex versions match, it will be the same and will be automatically filled with metadata in the application import and export performance.

  • Two same queries but different results

    I'm working on the guarantee of data from data sources Vs target.
    Source and target databases are oracle. The source data are a remote database and navigate using DB_LINK.

    I am running similar queries against the data source and my schema but gets different results I check the number of folders and individual service Group DC account
    both are fit exactly, but for some reason any after the results of queries in different counts.

    a request flowing from the source table:
    Select
    b.Year,
    b.month,
    a.serv_grp,
    Count (distinct a.clnt) cnt
    Of
    Jay.srvrequest@bdm_link has,
    (select separate year, month, first_date_of_month, last_date_of_month)
    of dev.stage_3_time_dim
    where year = 2011 and
    b months between 3 and 7)
    where
    a.beg_dt < = b.last_date_of_month
    and a.end_dt > = b.first_date_of_month
    and a.serv_grp in ('1 ', '4', '5',' 6') and
    a.stat as 'A '.
    B.year group, b.month, a.serv_grp;


    target request flowing from the database:


    Select
    b.Year,
    b.month,
    a.service_group_cd,
    Count (distinct a.client_id) cnt
    Of
    Prod.stage_0_mg_serv_req has,
    (select separate year, month, first_date_of_month, last_date_of_month)
    of dev.stage_3_time_dim
    where year = 2011 and
    b months between 3 and 7)
    where
    a.begin_dt < = b.last_date_of_month
    and a.end_dt > = b.first_date_of_month
    and a.service_group_Cd in ('1 ', '4', '5',' 6') and
    a.status_cd as 'A '.
    B.year group, b.month, a.service_group_cd


    results out of data from the source as follows:
    Year month serv grp cnt
    2011 3 1 78653
    2011 3 4 4562
    2011 3 5 166
    2011 3 6 7533
    2011 4 1 78327
    2011 4 4 4540
    2011 4 5 167
    2011 4 6 7546
    2011 5 1 78612
    2011 5 4 4535
    2011 5 5 166
    2011 5 6 7544

    results off-target following data:
    Year month serv grp cnt
    2011 3 1 49350
    2011 3 4 1921
    2011 3 5 26
    2011 3 6 2259
    2011 4 1 47727
    2011 4 4 1834
    2011 4 5 27
    2011 4 6 2211
    2011 5 1 46675
    2011 5 4 1771
    2011 5 5 26
    2011 5 6 2116

    I don't know what wrong with queries
    any advice appreciated...

    Jay

    Maybe you get different results because the data are different.

    Also, why the first query uses a remote table, attached to a local table? Why not 100% remote data?

  • gantt apex 4.1 truncated date

    Hi again,

    I am trying to create gantt chart using apex.

    sql source is:
    select '' link,
           1 ID,
           'T1' TASK_NAME,
    
           null PARENT_ID,
           sysdate START_DATE,
           sysdate+ .011 END_DATE
    
      from dual union
    select '' link,
           2 ID,
           'T1' TASK_NAME,
    
           null PARENT_ID,
           to_date('2011-10-11 12:31','YYYY-MM-DD hh24:mi') START_DATE,
           to_date('2011-10-12 21:41','YYYY-MM-DD hh24:mi') END_DATE
    
      from dual union
    select '' link,
           3 ID,
           'T1' TASK_NAME,
    
           null PARENT_ID,
           sysdate+.4 START_DATE,
           sysdate+ .811 END_DATE
    
      from dual
    As you can see above I put hours minutes and seconds but displayed graph contains only valid dates, all other data (from XML debugging message) looks like this:
    <period resource_id="1" start="2011.10.21 00.00.00" end="2011.10.21 00.00.00" style="defaultStyle"/>
    <period resource_id="2" start="2011.10.11 00.00.00" end="2011.10.12 00.00.00" style="defaultStyle"/>
    <period resource_id="3" start="2011.10.21 00.00.00" end="2011.10.21 00.00.00" style="defaultStyle"/>
    Also created the available sample application here:

    http://Apex.Oracle.com/pls/Apex/f?p=56739

    but the result is the same.

    According to another user (http://apex.oracle.com/pls/apex/f?p=36648:71:706382355392067:NO :::) apps this precision works fine in anycharts.)

    I'm stuck here so some help will be appreciated.

    Thank you
    jareeq

    Edited by: jareeq 2011-10-21 02:43

    Hi Jareeq,

    As mentioned on my sample application example - http://apex.oracle.com/pls/apex/f?p=36648:71 - in order to generate Gantt charts where the accurate time information are used, then the graphical query must reference the TIMESTAMP columns. In your example of a query, you are retrieving DATE values, but if you update the query to return the TIMESTAMP values and apply the Format of Date correct associated Gantt chart, then you will get the results you are trying to reach. Here is an example: http://apex.oracle.com/pls/apex/f?p=36648:83. For more information about the formatting of date/time AnyChart, refer to their documentation online, here: http://anychart.com/products/anychart/docs/users-guide/datetime-formatting.html?fromtree

    I hope this helps.

    Kind regards
    Hilary

  • Using the cursor to another (nested cursors) cursor objects...?

    Now, I'm pretty sure that's not possible, but as a last thought of the station, it would not hurt to ask.

    I have a number of fairly complex cursors in PL/SQL (all beautifully packaged upwards), which are used in a number of other different queries for reporting. Because the same cursor is reused several times in different contexts, I want set the cursor once, then use it as a subquery in the other queries. This will also help as if I place the SQL directly in other queries, then it will be necessary propagate the changes to the base query in all other queries which use - and that it will be maintained by a large team that goes forward, it would be wide open to things being missed... (not that I don't trust my colleagues or anything like that...!)

    So, in brief and simple terms, if I;

    CURSOR curDateList (pi_start_date AS, pi_end_date IN DATE)
    IS
    SELECT pi_start_date + rownum - 1 when
    FROM (select '1' sys.dual connects by level < = (pi_end_date - pi_start_date + 1));

    that returns a list of the dates of pi_start_date to pi_end_date, and I want to integrate in another slider like;

    CURSOR curEmpWork (pi_start_date AS, pi_end_date IN DATE)
    IS
    SELECT e.employee_id, dl.when, e.work_pattern
    OF e xxx.emp_work_patterns,.
    DL curDateList (pi_start_date, pi_end_date)
    WHERE dl.when = e.roster_date
    ORDER BY e.roster_date;

    (Needless to say that queries are much more complex and many!)

    I reached the required result by using the pipeline table functions that just open the first cursor and run each line, but am frequently end up using multiple nested functions to achieve and I see marked in this way, then the performance degradation that comes to nest queries within the other runs a lot faster. As a nested query is just a nested cursor, it seems that this is possible, but I'm not only have no chance - I am struggling to find something that says that it of possible or not (which made me think I am barking the wrong tree here!)

    Any help would be greatly appreciated.

    No, it is not possible, but have you thought of creating a view instead?

  • Oracle XE and ApEx in production applications

    Hello gurus of XE.

    is anyone using XE and ApEx for production applications? How does the built-in HTTP Server? I realized that in order to use the Oracle HTTP Server, you must obtain at least Standard Edition One, so in this case XE isn't a cost of Eve anylonger. We plan to create an application web small (max 6 users competitor) on top of XE and we must decide what technology should be used for the web interface: ApEx or PHP?

    Thank you for all your comments,
    Florin

    Hi Florin,

    I am convinced that you can go a long way with Oracle XE.

    This is a discussion on the scalability of the XE (Mark Townsend was the responsible manager XE).
    XE performance expectations - survey

    In addition, the embedded plsql gateway uses the Oracle listener to manage connections to the database. He is progressing well.

    A simple server using Apache http as a proxy for XE will give you security and performance optimizations. You can then copy the images on the file system directory and serve through Apache (also using the caching on the file system).

    In addition, you can use mod_gzip or mod_deflate to push even further.

    Don't forget, slowed down a request most is the poor performance of your sql queries. APEX itself only adds a slight overhead.

    There is also another alternative for the Oracle Http server using mod_plsql: DBPrism
    http://marceloochoa.blogspot.com/2008/06/new-dbprism-release-Apex-users-read.html

    So there are a lot of options to make it really fast :).

    Kind regards
    ~ Dietmar.

  • Using the data of EBS in BI Publisher

    Question: Is it possible to directly use EBS data in BI Publisher? If so, can you point me to the documentation?

    Here's the scenario:

    Imagine that our company uses Oracle E-Business Suite. All the columns, tables and diagrams Oracle related to BSE. It is the backbone of our company data. Couldn't live without it.

    We're also crazy to OBIEE, especially BI Publisher. We have people who are experts in BI Publisher.

    The CEO of the company would like to enjoy the mountains of data available in EBS, but also the expertise of the people who are trained and skilled in BI Publisher, using the data of EBS directly in BI Publisher. The Director-general provided us with a budget and staffing appropriate to perform a single installation of all structures must be added, or middle, for this to happen.

    Objective of the Chief Executive Officer is for data additions and revisions in EBS will be included automatically in the reports BI Publisher. Assuming that between Monday and Tuesday, none of the structural changes that occurred in any of the EBS diagrams, tables or columns, assuming that everything we have done is add and/or modify data from BSE, then the BI Publisher reports must reflect the Monday data Monday and, without having to do anything in the meantime, reflect the Tuesday data just sitting Tuesday and running the editor of BI reports Tuesday morning. Not every day to rebuild XML files or something like that. Just clean and totally transparent use of the EBS data it gets added and updated during the normal course of business.

    In general, what steps do we need to carry out - in EBS, in the XML Editor (if any) and BI Publisher - to directly use the data of EBS in BI Publisher on a daily basis as described above?

    Ideally, I like just go to the Admin page in BI Publisher and add EBS as a new data source, or perhaps to use the section of the integration of the Admin page, as we would with discoverer or workspace of Hyperion and Shared Services. But I know that's not as simple as that.

    Can you help clarify?

    Thank you!

    "Ideally, I like just go to the Admin page in BI Publisher and add EBS as a new data source, or perhaps to use the section of the integration of the Admin page, as we would with discoverer or workspace of Hyperion and Shared Services. '" But I know that's not as simple as that. »

    I don't know why you don't think it's as simple as that, but it is. Add a new JDBC data source, assign it to BEEP roles, create templates of data/queries against this data source and you're ready to go.

    To use the multi-org views, you need to set the org_id in forward initiation of the report.

    What version of BEEP are you using? We have the last BEEP 11 g, we use eBS (R12) as the security model, Teradata is our main source of data, but almost all the reports uses the security context for the multi-org eBS to limit the data of Teradata, based on the security profile of the user as defined in eBS.

    I hope this helps.

    Thank you
    Sunder

Maybe you are looking for