PartKey

Hi,
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
I have two issues:
1. Drop partitioning key from the existing partitioning key columns i.e. multi-key to single key. The table given below is an existing table which is partitioned on BD and FD, now, i need to drop one partitioning key column and just need one key i.e. BD. What is safe and quick way to do it without any data lose.
Example:
CREATE TABLE "T_R_TMP"
(     "R_TMP_SID" NUMBER(20,0) ,
     "FSID" NUMBER(20,0) ,
     "BD" DATE ,
FD Date,
     "PN" NUMBER(38,0) ,
     "FC" VARCHAR2(6) ,
     "RT" TIMESTAMP (6) ,      
     "CUSR_ID" VARCHAR2(8) ,      
     "UUSR_ID" VARCHAR2(8))
PARTITION BY RANGE (BD, FD)
( PARTITION S1 VALUES LESS THAN ( TO_DATE('22/12/2005','DD/MM/YYYY'),TO_DATE('22/12/2005','DD/MM/YYYY'))
TABLESPACE TB01,
PARTITION S2 VALUES LESS THAN ( TO_DATE('07/01/2009','DD/MM/YYYY'), TO_DATE('07/01/2009','DD/MM/YYYY'))
TABLESPACE TB02,
PARTITION S3 VALUES LESS THAN (TO_DATE('10/01/2009','DD/MM/YYYY'),TO_DATE('10/01/2009','DD/MM/YYYY'))
TABLESPACE TB03,
PARTITION S4 VALUES LESS THAN (TO_DATE('13/01/2009','DD/MM/YYYY'),TO_DATE('13/01/2009','DD/MM/YYYY'))
TABLESPACE TB04,
PARTITION S5 VALUES LESS THAN (MAXVALUE, MAXVALUE)
TABLESPACE TB05
2. How can I change the max bound date on the each partition. for example:
CREATE TABLE "T_R_TMP"
(     "R_TMP_SID" NUMBER(20,0) ,
     "FSID" NUMBER(20,0) ,
     "BD" DATE ,
FD Date,
     "PN" NUMBER(38,0) ,
     "FC" VARCHAR2(6) ,
     "RT" TIMESTAMP (6) ,      
     "CUSR_ID" VARCHAR2(8) ,      
     "UUSR_ID" VARCHAR2(8))
PARTITION BY RANGE (BD)
( PARTITION S1 VALUES LESS THAN ( TO_DATE('22/12/2005','DD/MM/YYYY'))
TABLESPACE TB01,
PARTITION S2 VALUES LESS THAN ( TO_DATE('07/01/2009','DD/MM/YYYY'))
TABLESPACE TB02,
PARTITION S3 VALUES LESS THAN (TO_DATE('10/01/2009','DD/MM/YYYY'))
TABLESPACE TB03,
PARTITION S4 VALUES LESS THAN (TO_DATE('13/01/2009','DD/MM/YYYY'))
TABLESPACE TB04,
PARTITION S5 VALUES LESS THAN ( MAXVALUE)
TABLESPACE TB05
I need to chnage the max boundry for parition "S1" from TO_DATE('22/12/2005','DD/MM/YYYY') to TO_DATE('30/01/2006','DD/MM/YYYY')
Please suggest....
Edited by: user8650395 on Mar 29, 2011 8:52 PM

Hi,
As far as I know there is no simple way of achieving this.
If, and only if, the condition BD >= FD is allways true, you could use partition exchange to do it.
1) Create a new table (called T_R_TMP_NEW) with the correct partitions and the same columns and local indexes as the existing table T_R_TMP.
2) Create a new normal table (called TMP) with the same columns and local indexes as T_R_TMP.
3) Exchange the partition 1 of T_R_TMP with table TMP. Exchange table TMP with the partition 1 of table T_R_TMP_NEW. Do the same for the 2nd, 3rd and 4th partition.
4) Rename T_R_TMP to T_R_TMP_OLD and T_R_TMP_NEW to T_R_TMP.
5) Gather global stats for the new table T_R_TMP.
6) Recreate the global index for the new T_R_TMP table. Recreate the constraints related to the table T_R_TMP.
7) Grant the required privileges for the new table T_R_TMP and recompile all PLSQL Objects referencing the table
Regards
Maurice

Similar Messages

  • Trying to run OrderApp from Tutorial 1.4

    I 've traced the OrderApp and when It gets to the createVendorPart method in the RequestBean, exactly when it should create the vendorPart
    LocalVendorPart vendorPart =
    vendorPartHome.create(vendorPartRequest.description,
    vendorPartRequest.price, part);
    the application fall down and give the following error:
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: Transaction aborted; nested exception is: java
    x.transaction.RollbackException: Transaction marked for rollback.
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.ja
    va:161)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invo
    ke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unkno
    wn Source)
    at request._Request_DynamicStub.createVendorPart(_Request_DynamicStub.ja
    va)
    at client.Client.createData(Unknown Source)
    at client.Client.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
    7)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:426)
    at com.sun.enterprise.appclient.Main.main(Main.java:97)
    Caused by: java.rmi.RemoteException: Transaction aborted; nested exception is: j
    avax.transaction.RollbackException: Transaction marked for rollback.
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.ja
    va:199)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:85
    3)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInv
    ocationHandler.java:137)
    at $Proxy165.createVendorPart(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(Reflecti
    veTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    Request(CorbaMessageMediatorImpl.java:1709)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (CorbaMessageMediatorImpl.java:1569)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(C
    orbaMessageMediatorImpl.java:951)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.call
    back(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (CorbaMessageMediatorImpl.java:721)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatc
    h(SocketOrChannelConnectionImpl.java:469)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(
    SocketOrChannelConnectionImpl.java:1258)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
    run(ThreadPoolImpl.java:409)
    2
    I dont know if this is for the error that appears when I tried to Verify the OrderApp with Verfier utilty from the deployment tool :

    I forgot post the verfier error:
    Assertion:All classes in this EJB Archive are loadable. Please refer to J2EE 1.4 Specification Section #8.1.2 for further information.
    For [ OrderApp#ejb-jar-ic.jar#RequestBean ]
    classes [ dataregistry.LocalVendorPartHome dataregistry.LocalVendorPart dataregistry.LocalPart dataregistry.LocalVendorHome dataregistry.LocalVendor dataregistry.LocalPartHome dataregistry.LocalLineItemHome dataregistry.LocalOrder dataregistry.LocalOrderHome dataregistry.PartKey ] referenced by [ request.RequestBean] are not found
    Please either bundle the above mentioned classes in the application or use optional packaging support for them.

  • How is Inheritance handled by JDO.?(Seeking Clarification)

    Question about the following:
    From the JDO Spec: 6.5
    "For example, if an abstract class Component declares a key field masterId, the objectid class (which should be abstract as well) ComponentKey must also declare a field of the same type and name. Note that an instance of ComponentKey cannot be used to find a persistent instance, since it has no corresponding concrete persistent class.
    A non-abstract class Part that extends Component must declare a non-abstract objectid class (for example, PartKey) that extends ComponentKey. There might be no key fields declared in Part or PartKey. Persistence-capable subclasses of Part must not have an objectid class.
    Another non-abstract class Assembly that extends Component must declare a non-abstract objectid class (for example, AssemblyKey) that extends ComponentKey. If there is a key field, it must be declared in both Assembly and AssemblyKey. Persistence-capable subclasses of Assembly must not have an objectid class.
    There might be other abstract classes or non-persistence-capable classes in the inheritance hierarchy between Component and Part, or between Component and Assembly. These classes are ignored for the purposes of objectid classes and key fields.
    So the question is, If i have the following construct:
    public abstract class DataModelObject {
      private Comparable id;
      public Comparable getId() { return this.id;}
      public void setId(Comparable id) { this.id = id; }
    public abstract class MutableObject extends DataModelObject {
    public class Customer extends MutableObject {
      private String name;
      public String getName() { return this.name; }
      public void setName(String name) { this.name = name; }
    }Now, my goal is that when I make Customer a persistent object that the is field is an attribute of my persistent object and not a separate object in itself. The reason is that many objects in my data model have an iD and Id like to encapsulate it on the abstract level to facilitate its use. However, from what I read above, this is not the case? Could someone help clarfy this for me?
    -- Regards,
    -- Derisor

    Hmmm ... maybe over everyone's head?

  • Data file load to Planning using FDMEE

    Hi All,
    Hyperion version : 11.1.2.3.0.26
    We have a currency planning application and the dimns are Account,business,entity,currency,version,scenario,period and year.
    My data file contains ;
    Account;business;entity;version;data
    AC_1001;International;US_Region;working;10000
    AC_1002;International;US_Region;working;10000
    When I try loading data to this application using FDMEE I am getting three gold fishes I thought the load is succesful but when I tried retrieving the data from smartview and found the data's are not loaded.
    POV : Jan 15,Actual
    In smartview from Essbase:
    HSP_InputValue
    HSP_InputValue
    Jan
    Jan
    FY15
    FY15
    Actual
    Actual
    Working
    Working
    Local
    USD
    International
    International
    US_Region
    US_Region
    AC_1001
    #Missing
    #Missing
    AC_1002
    #Missing
    #Missing
    Smartview from planning : Adhoc grid cannot be open as there no valid rows of data .
    Not sure why this is happening ,Could you please help me with this . THANKS in ADVANCE!
    Regards,
    Keny Alex

    And this is the log:
    2015-01-29 02:33:35,503 INFO  [AIF]: FDMEE Process Start, Process ID: 621
    2015-01-29 02:33:35,503 INFO  [AIF]: FDMEE Logging Level: 4
    2015-01-29 02:33:35,504 INFO  [AIF]: FDMEE Log File: D:\demos\FDMEE\outbox\logs\RPDPLN_621.log
    2015-01-29 02:33:35,504 INFO  [AIF]: User:admin
    2015-01-29 02:33:35,505 INFO  [AIF]: Location:RPDLOC (Partitionkey:53)
    2015-01-29 02:33:35,505 INFO  [AIF]: Period Name:Jan 15 (Period Key:1/1/15 12:00 AM)
    2015-01-29 02:33:35,506 INFO  [AIF]: Category Name:Actual (Category key:1)
    2015-01-29 02:33:35,506 INFO  [AIF]: Rule Name:RPD (Rule ID:78)
    2015-01-29 02:33:37,162 INFO  [AIF]: Jython Version: 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
    [Oracle JRockit(R) (Oracle Corporation)]
    2015-01-29 02:33:37,162 INFO  [AIF]: Java Platform: java1.6.0_37
    2015-01-29 02:33:39,399 INFO  [AIF]: -------START IMPORT STEP-------
    2015-01-29 02:33:44,360 INFO  [AIF]: File Name: Datafile.txt
    2015-01-29 02:33:44,736 INFO  [AIF]: ERPI-105011:EPMERPI- Log File Name :D:\demos\FDMEE\outbox\logs\RPDPLN_621.log
    2015-01-29 02:33:44,738 INFO  [AIF]: ERPI-105011:EPMERPI- LOADID:PARTKEY:CATKEY:RULEID:CURRENCYKEY:FILEPATH::621;53:1:78:Local:D:\demos\FDMEE/
    2015-01-29 02:33:44,738 INFO  [AIF]: ERPI-105011:EPMERPI- ImportTextData - Start
    2015-01-29 02:33:44,920 INFO  [AIF]: ERPI-105011:EPMERPI- Log File Name :D:\demos\FDMEE\outbox\logs\RPDPLN_621.log
    2015-01-29 02:33:44,924 INFO  [AIF]: ERPI-105011:EPMERPI- File Name Datafile.txt
    periodKey2015-01-01
    2015-01-29 02:33:44,927 INFO  [AIF]: ERPI-105011:EPMERPI-  PROCESS ID: 621
    PARTITIONKEY: 53
    IMPORT GROUP: RPDVersion11
    FILE TYPE: DELIMITED
    DELIMITER: ;
    SOURCE FILE: Datafile.txt
    PROCESSING CODES:
    BLANK............. Line is blank or empty.
    NN................ Non-Numeric, Amount field contains non numeric characters.
    TC................ Type Conversion, Amount field could not be converted to a number.
    ZP................ Zero Suppress, Amount field contains a 0 value and zero suppress is ON.
    SKIP FIELD.............. SKIP field value was found
    NULL ACCOUNT VALUE.............. Account Field is null
    SKIP FROM SCRIPT.............. Skipped through Script
    Rows Loaded: 2
    Rows Rejected: 0
    2015-01-29 02:33:44,929 INFO  [AIF]: ERPI-105011:EPMERPI- ARCHIVE MODE: null
    2015-01-29 02:33:44,930 INFO  [AIF]: ERPI-105011:EPMERPI- Start archiving file:
    2015-01-29 02:33:44,930 INFO  [AIF]: ERPI-105011:EPMERPI- Archive file name: 62120150101.txt
    2015-01-29 02:33:44,931 INFO  [AIF]: ERPI-105011:EPMERPI- Deleting the source file: Datafile.txt
    2015-01-29 02:33:44,931 INFO  [AIF]: ERPI-105011:EPMERPI- File not deleted: D:\demos\FDMEE\Datafile.txt
    2015-01-29 02:33:44,938 INFO  [AIF]: ERPI-105011:EPMERPI- ImportTextData - End
    2015-01-29 02:33:44,938 INFO  [AIF]: ERPI-105011:EPMERPI- Total time taken for the import in ms = 200
    2015-01-29 02:33:45,069 INFO  [AIF]:
    Import Data from Source for Period 'Jan 15'
    2015-01-29 02:33:45,085 INFO  [AIF]: Generic Data Rows Imported from Source: 2
    2015-01-29 02:33:45,089 INFO  [AIF]: Total Data Rows Imported from Source: 2
    2015-01-29 02:33:45,783 INFO  [AIF]:
    Map Data for Period 'Jan 15'
    2015-01-29 02:33:45,794 INFO  [AIF]:
    Processing Mappings for Column 'ACCOUNT'
    2015-01-29 02:33:45,796 INFO  [AIF]: Data Rows Updated by Rule Mapping '121' (LIKE): 2
    2015-01-29 02:33:45,796 INFO  [AIF]:
    Processing Mappings for Column 'ENTITY'
    2015-01-29 02:33:45,797 INFO  [AIF]: Data Rows Updated by Rule Mapping '121' (LIKE): 2
    2015-01-29 02:33:45,797 INFO  [AIF]:
    Processing Mappings for Column 'UD1'
    2015-01-29 02:33:45,798 INFO  [AIF]: Data Rows Updated by Rule Mapping '121' (LIKE): 2
    2015-01-29 02:33:45,798 INFO  [AIF]:
    Processing Mappings for Column 'UD2'
    2015-01-29 02:33:45,799 INFO  [AIF]: Data Rows Updated by Rule Mapping '121' (LIKE): 2
    2015-01-29 02:33:45,836 INFO  [AIF]:
    Stage Data for Period 'Jan 15'
    2015-01-29 02:33:45,838 INFO  [AIF]: Number of Rows deleted from TDATAMAPSEG: 4
    2015-01-29 02:33:45,848 INFO  [AIF]: Number of Rows inserted into TDATAMAPSEG: 4
    2015-01-29 02:33:45,850 INFO  [AIF]: Number of Rows deleted from TDATAMAP_T: 4
    2015-01-29 02:33:45,851 INFO  [AIF]: Number of Rows deleted from TDATASEG: 2
    2015-01-29 02:33:45,859 INFO  [AIF]: Number of Rows inserted into TDATASEG: 2
    2015-01-29 02:33:45,860 INFO  [AIF]: Number of Rows deleted from TDATASEG_T: 2
    2015-01-29 02:33:45,919 INFO  [AIF]: -------END IMPORT STEP-------
    2015-01-29 02:33:45,946 INFO  [AIF]: -------START VALIDATE STEP-------
    2015-01-29 02:33:45,993 INFO  [AIF]:
    Validate Data Mappings for Period 'Jan 15'
    2015-01-29 02:33:46,001 INFO  [AIF]: Total Data Rows available for Export to Target: 2
    2015-01-29 02:33:46,001 INFO  [AIF]:
    Validate Data Members for Period 'Jan 15'
    2015-01-29 02:33:46,002 INFO  [AIF]: Total Data Rows available for Export to Target: 2
    2015-01-29 02:33:46,026 INFO  [AIF]: -------END VALIDATE STEP-------
    2015-01-29 02:33:46,089 INFO  [AIF]: -------START EXPORT STEP-------
    2015-01-29 02:33:49,084 INFO  [AIF]: [HPLService] Info: Cube Name: RPDFN
    2015-01-29 02:33:49,084 INFO  [AIF]: [HPLService] Info: Export Mode: STORE_DATA
    2015-01-29 02:33:49,084 INFO  [AIF]: [HPLService] Info: updateMultiCurrencyProperties - BEGIN
    2015-01-29 02:33:49,532 INFO  [AIF]: [HPLService] Info: Currency Properties Exist for Planning Application: RPDPLN
    2015-01-29 02:33:49,534 INFO  [AIF]: [HPLService] Info: Number of existing multi-currency property rows deleted: 7
    2015-01-29 02:33:49,537 INFO  [AIF]: [HPLService] Info: Base Currency for Application 'RPDPLN': USD
    2015-01-29 02:33:49,542 INFO  [AIF]: [HPLService] Info: Number of multi-currency property rows inserted: 7
    2015-01-29 02:33:49,542 INFO  [AIF]: [HPLService] Info: updateMultiCurrencyProperties - END
    2015-01-29 02:33:49,543 INFO  [AIF]: Updated Multi-Curency Information for application:RPDPLN
    2015-01-29 02:33:49,543 INFO  [AIF]: Connecting to essbase using service user:admin
    2015-01-29 02:33:49,572 INFO  [AIF]: Obtained connection to essbase provider:Embedded
    2015-01-29 02:33:49,576 INFO  [AIF]: Obtained connection to essbase cube RPDFN
    2015-01-29 02:33:49,593 INFO  [AIF]: Locking rules file AIF0078
    2015-01-29 02:33:49,595 INFO  [AIF]: Successfully locked rules file AIF0078
    2015-01-29 02:33:49,595 INFO  [AIF]: Copying rules file AIF0078 for data load as AIF0078
    2015-01-29 02:33:49,609 INFO  [AIF]: Unlocking rules file AIF0078
    2015-01-29 02:33:49,611 INFO  [AIF]: Successfully unlocked rules file AIF0078
    2015-01-29 02:33:49,611 INFO  [AIF]: The data rules file has been created successfully.
    2015-01-29 02:33:49,617 INFO  [AIF]: Locking rules file AIF0078
    2015-01-29 02:33:49,619 INFO  [AIF]: Successfully locked rules file AIF0078
    2015-01-29 02:33:49,625 INFO  [AIF]: Load data into the cube by launching rules file...
    2015-01-29 02:33:50,526 INFO  [AIF]: The data has been loaded by the rules file.
    2015-01-29 02:33:50,530 INFO  [AIF]: Unlocking rules file AIF0078
    2015-01-29 02:33:50,532 INFO  [AIF]: Successfully unlocked rules file AIF0078
    2015-01-29 02:33:50,532 INFO  [AIF]: Executed rule file
    2015-01-29 02:33:50,572 INFO  [AIF]: [HPLService] Info: Creating Drill Through Region for Process Id: 621
    2015-01-29 02:33:51,075 INFO  [AIF]: [HPLService] Info: Drill Through Region created for Process Id: 621
    2015-01-29 02:33:51,076 INFO  [AIF]: [HPLService] Info: [loadData:621] END (true)
    2015-01-29 02:33:51,117 INFO  [AIF]: -------END EXPORT STEP-------
    2015-01-29 02:33:51,214 INFO  [AIF]: [HPLService] Info: [consolidateData:621,Jan 15] END (true)
    2015-01-29 02:33:51,264 INFO  [AIF]: -------START CHECK STEP-------
    2015-01-29 02:33:51,316 INFO  [AIF]: -------END CHECK STEP-------
    2015-01-29 02:33:51,413 INFO  [AIF]: FDMEE Process End, Process ID: 621

  • Why it's so inefficient to generate XML from SQL queries?

    I am learning to use Oracle9i XML DB to generate XML document using SQL queries. According to the document, there are multiple ways to do it (SQLX, DBMS_XMLGEN, SYS_XMLGEN, XSU). I am using SQLX to do it, but find it's so inefficient. Could someone point out what could be the problem?
    I generate XML from TPC-H database, using the query as shown below. The indexes and primary key/foreign keys are created and specified. The system is Pentium IV 2GHz, Linux 2.4.18 with 512MB memory and 1GB swap. With database size 5MB, it spends about 300 seconds (TKPROF result) to generate the XML document. But for 10MB TPCH database, I cannot get the xml document after a long time. I find that all almost physical memory are used up by it. Therefore I stop it.
    It seems that nested-loop join is used to evaluate the query, therefore it's very inefficient. I don't know whether there is a efficient way to do it.
    Wish to get your help. Thank you very much!
    Chengkai Li
    ===================================================================================================================
    SELECT XMLELEMENT (
    "region",
    XMLATTRIBUTES ( r_regionkey AS "regionkey", r_name AS "name", r_comment AS "comment"),
    (SELECT XMLAGG(
    XMLELEMENT (
    "nation",
    XMLATTRIBUTES ( n_nationkey AS "nationkey", n_name AS "name", n_regionkey AS "regionkey", n_comment AS "comment"),
    XMLConcat ((SELECT XMLAGG(XMLELEMENT (
    "supplier",
    XMLATTRIBUTES ( s_suppkey AS "suppkey", s_name AS "name", s_address AS "address", s_nationkey AS "nationkey", s_phone AS "phone", s_acctbal AS "acctbal", s_comment AS "comment"),
    (SELECT XMLAGG(XMLELEMENT (
    "part",
    XMLATTRIBUTES ( p_partkey AS "partkey", p_name AS "name", p_mfgr AS "mfgr", p_brand AS "brand", p_type AS "type", p_size AS "size", p_container AS "container", p_retailprice AS "retailprice", p_comment AS "comment", ps_availqty AS "ps_availqty", ps_supplycost AS "ps_supplycost", ps_comment AS "ps_comment")))
    FROM PART p, PARTSUPP ps
    WHERE ps.ps_partkey = p.p_partkey
    AND ps.ps_suppkey = s.s_suppkey
         FROM SUPPLIER s
    WHERE s.s_nationkey = n.n_nationkey
    (SELECT XMLAGG(XMLELEMENT(
    "customer",
    XMLATTRIBUTES ( c_custkey AS "custkey", c_name AS "name", c_address AS "address", c_nationkey AS "nationkey", c_phone AS "phone", c_acctbal AS "acctbal", c_mktsegment AS "mktsegment", c_comment AS "comment"),
    (SELECT XMLAGG(XMLELEMENT (
    "orders",
    XMLATTRIBUTES ( o_orderkey AS "orderkey", o_custkey AS "custkey", o_orderstatus AS "orderstatus", o_totalprice AS "totalprice", o_orderdate AS "orderdate", o_orderpriority AS "orderpriority", o_clerk AS "clerk", o_shippriority AS "shippriority", o_comment AS "ps_comment"),
    (SELECT XMLAGG(XMLELEMENT (
    "lineitem",
    XMLATTRIBUTES ( l_orderkey AS "orderkey", l_partkey AS "partkey", l_suppkey AS "suppkey", l_linenumber AS "linenumber", l_quantity AS "quantity", l_extendedprice AS "extendedprice", l_discount AS "discount", l_tax AS "tax", l_returnflag AS "returnflag", l_linestatus AS "linestatus", l_shipdate AS "shipdate", l_commitdate AS "commitdate", l_receiptdate AS "receiptdate", l_shipinstruct AS "shipinstruct", l_shipmode AS "shipmode", l_comment AS "comment")
    FROM LINEITEM l
    WHERE l.l_orderkey = o.o_orderkey
    FROM ORDERS o
    WHERE o.o_custkey = c.c_custkey
         FROM CUSTOMER c
    WHERE c.c_nationkey = n.n_nationkey
    FROM NATION n
    WHERE n.n_regionkey = r.r_regionkey
    FROM REGION r;

    Tim,
    Oracle Reports was the orginal way to do this in an Oracle Apps environment. However, the XML Publisher team built a tool called data templates to do this as well. You can read several articles on how to use data templates on the XMLP blog. Here's the first arcticle in a series: http://blogs.oracle.com/xmlpublisher/2006/11/08#a127.
    Bryan

Maybe you are looking for

  • How to include Animated GIF-s?

    Can animated gifs be included in a LabVIEW VI front panel?If so, how? Thanks in advance for any hint Gorka * Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is

  • Error in Backend Scheduling agreement Creation

    Hi, When we tried to create the backend scheduling agreement In R/3 IDOC is giving the error "Requested function V70S is not available here".  Can you any body please tell how to solve the error? Regards, Raveendra

  • After the Mountain Lion 10.8.2 upgrade my system is VERY slow, online connection down miserably. WHat has happened and how do I go back to 10.8.1?

    Upgraded my Macbook Pro tonight to 10.8.2....horrible move, internet connection is now a slow crawl. Was very fast before upgrade. IF no known fix how do I go back to 10.8.1?

  • Checking Rule AE

    Dear expert, In SO, availability check based on Checking Group 02 and Checking Rule AE. As understand Checking Group 02 is maintained in Material Master Data. The question is how system determine Cheking Rule AE? Regards.

  • Reg SFTP Communication channel

    Hello Fellow Consultants, I have a situation here where in a folder there are 2 different file names Eg: v110-prod- chennai1PS & v110-prod-chennai9PS, now i want to know if can pick these 2 files with One SFTP sender communication channel. I know thi