DOES DEV 6.0 support O8 NESTED TABLES

RESPECTED Seniors and Fellow Partners,
When I first loaded O8 ver 8.0.4.xxx and then tried to load
dev6 . The D6 installation used remove my primary database
created . Then I devised a plan I loaded D6 first and then
installed O8 ver 8.0.4 . The initial (primary) database was
created and i could connect from D6 to my O8 database . But the
problem now is that THE D6 supports simple OBJECT types but it
does not support NESTED TABLES . The ERROR i get is DATABASE
ERROR 1
can you help me out with this problem of mine
THAnk you
Mahesh
null

Mahesh Gangarapu (guest) wrote:
: RESPECTED Seniors and Fellow Partners,
: When I first loaded O8 ver 8.0.4.xxx and then tried to load
: dev6 . The D6 installation used remove my primary database
: created . Then I devised a plan I loaded D6 first and then
: installed O8 ver 8.0.4 . The initial (primary) database was
: created and i could connect from D6 to my O8 database . But the
: problem now is that THE D6 supports simple OBJECT types but it
: does not support NESTED TABLES . The ERROR i get is DATABASE
: ERROR 1
: can you help me out with this problem of mine
: THAnk you
: Mahesh
Hi Mahesh
I've tried this in Forms5.0 and ended up with an error which says
unsupported network data type.
The only way, as far as I know , to use a new object feature in
Oracle 8 through developer R2.x or also R6.0 (i haven't seen
this) is use a data block created with a stored procedure at the
back end. U can use REF cursor as one of the parameters in the
procedure and table type as another parameter. This option will
definitely work for U. I have done this some time . U should
create a package with procedures to select , insert , delete and
update respectively and when U associate a block with this Forms
will tale care of coding triggers like
select-procedure
insert-procedure
delete-procedure
update-procedure
lock-procedure
Bye Rajesh
null

Similar Messages

  • Nested Tables and Predictable Attributes

    BOL states "The data in a nested table can be used for prediction or for input, or for both. For example, you might have two nested table columns in a model: one nested table column might contain a list of the products that a customer
    has purchased, while the other nested table column contains information about the customer's hobbies and interests, possibly obtained from a survey. In this scenario, you could use the customer's hobbies and interests as an input for analyzing purchasing behavior,
    and predicting likely purchases."
    However I cannot find where it states you cannot use a predictable attribute from a Nested Table within the Neural Network algorithm.
    Can you please tell me why I receive the error "Microsoft Neural Network does not support predictable nested tables" when attempting to process my model with one predictable column in a Nested Table, or am I missing something? The
    same structure works fine for Naive Bayes, Decision Trees etc but not for Neural Network of Logistic Regression.

    Hi Namak,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Do nested tables conflict with ?split-by-page-break:? -getting blank pages

    I have an RTF template with multiple levels of groupingwith sub-totals and pagebreaks at several levels. I'm using nested tables to keep the lowest level group together. The nested table works fine as far as keeping the rows together - if a group doesn't fit on a page, it is pushed to the next page; however, it has created some blank pages in the report. The first time I report the lowest level group details, if they don't fit on one page, I get a blank page followed by the data. Each time the lowest level group changes, this may or may not occur depending on the amount of data.
    If you have come across this before or have some suggestions, I would really appreciate a response. I've been working on this for quite some time and have run out of things to try.
    The template is quite complex and the XML very long, so I won't post. However I can email them to you if you'd like to take a look.
    Thank you for your help,
    Tam
    Edited by: Tam_11 on Nov 19, 2009 2:42 PM

    Thanks for replying.
    Yes, I tried removing the <?split-by-page-break:?> and using MS hard page break (ctrl-enter) and that doesn't work either. My totals moved to a separate page by themselves and I'm still getting the blank pages.
    <?split-by-page-break:?> did exactly what it was supposed to until I added in the nested tables. It's very possible that I did something wrong with my nested tables (only my second XML report). Does anyone have a sample with nested tables that they would be willing to share?

  • Does the advanced queue support setting the pay load type as array/table?

    Does the advanced queue support setting the pay load type as array/table?
    if yes, how to write the enqueue script, I tried to write the following the script to enqueue, but failed, pls help to review it . Thanks...
    ------Create payload type
    create or replace TYPE "SIMPLEARRAY" AS VARRAY(99) OF VARCHAR(20);
    ------Create queue table
    BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE(
    Queue_table => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_payload_type => 'LUWEIQIN.SIMPLEARRAY',
    storage_clause => 'PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 TABLESPACE USERS',
    Sort_list => 'ENQ_TIME',
    Compatible => '8.1.3');
    END;
    ------Create queue
    BEGIN DBMS_AQADM.CREATE_QUEUE(
    Queue_name => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_table => 'LUWEIQIN.SIMPLEQUEUE',
    Queue_type => 0,
    Max_retries => 5,
    Retry_delay => 0,
    dependency_tracking => FALSE);
    END;
    -------Start queue
    BEGIN
    dbms_aqadm.start_queue(queue_name => 'LUWEIQIN.SIMPLEQUEUE', dequeue => TRUE, enqueue => TRUE);
    END;
    -------Enqueue
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    ------Get error
    Error starting at line 1 in command:
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    Error report:
    ORA-06550: line 17, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'
    ORA-06550: line 17, column 3:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    but when I use the following script to enqueue get error. Pls help to review. Thanks...
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    ------Get error
    Error starting at line 1 in command:
    DECLARE
    v_enqueueoptions dbms_aq.enqueue_options_t;
    v_messageproperties dbms_aq.message_properties_t;
    p_queue_name VARCHAR2(40);
    Priority INTEGER;
    Delay INTEGER;
    Expiration INTEGER;
    Correlation VARCHAR2(100);
    Recipientlist dbms_aq.aq$_recipient_list_t;
    Exceptionqueue VARCHAR2(100);
    p_queue_name VARCHAR2(40);
    p_msg VARCHAR2(40);
    p_payload LUWEIQIN.SIMPLEARRAY;
    BEGIN
    p_payload(1) := 'aa';
    p_payload(2) := 'bb';
    SYS.DBMS_AQ.ENQUEUE(queue_name => 'LUWEIQIN.SIMPLEQUEUE',enqueue_options => v_enqueueoptions, message_properties => v_messageproperties, msgid => p_msg, payload => p_payload);
    END;
    Error report:
    ORA-06550: line 17, column 3:
    PLS-00306: wrong number or types of arguments in call to 'ENQUEUE'
    ORA-06550: line 17, column 3:
    PL/SQL: Statement ignored
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • See data in nested table dataset-- supported?

    Hello,
    i did create a table with a column that is an object type, the contenu of the object type does not show when you browse the table's data.
    Is there an easy way to show the content of the 'object_column' ?
    I know that in eg. toad you can do by doubleclicking the column, then a seperate window appears showing all the entrys in the dataset.
    As far as i know, SQL developer does not show the content ?
    here the objects as i did create them :
    create type language_spoken_obj as object
    (language_code varchar2(5)
    ,language_level varchar2(10)
    create type spoken_language_list_col
    as table of language_spoken_obj
    create table people_info
    (ppl_id number(10) NOT NULL
    ,ppl_first_name varchar2(35) not null
    ,ppl_last_name varchar2(50) not null
    ,ppl_nationality varchar2(3)
    ,ppl_languages_spoken spoken_language_list_col
    )NESTED TABLE ppl_languages_spoken STORE AS languages_tab;
    insert into people_info
    (ppl_id
    ,ppl_first_name
    ,ppl_last_name
    ,ppl_nationality
    ,ppl_languages_spoken
    values
    (1
    ,'Emiel'
    ,'Bonaventure'
    ,'BLG'
    ,spoken_language_list_col(language_spoken_obj('BE-NL','GOOD'))
    desc people_info
    select * from people_info
    greetings to all,
    Emiel

    In the upcoming release of 1.5 (currently available as EA), the content gets displayed as:
    USER.LANGUAGE_SPOKEN_OBJ(USER.LANGUAGE_SPOKEN_OBJ(BE-NL,GOOD))
    Is that enough?
    K.

  • Nested Tables Repeat Header Row RTF Output Not Working v5.6.2(PDF does)

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

    All,
    Has anyone used nested tables in heading rows where they are set to repeat nested table header row across page breaks for RTF output ? This seems to work for PDF generation (line breaking enforcement doesn't) but I don't even get RTF Header ROWS indicated in my RTF output document. I have enabled them in my RTF template for the outer table row plus the inner nested table. Is this possible for RTF output or have I not indicated something in my RTF template or grouping clause ??
    Thanks,
    Tom

  • Problem in creating a nested table

    Hi i am working on Oracle 10g and cleint is sqlplus.
    Now while creating a nested table following error occured.
    This is the script for your reference.:
    CREATE OR REPLACE TYPE sec_pwd_hist_table
    AS
    TABLE OF sec_pwd_history_type
    index by binary_integer
    Warning: Type created with compilation errors.
    SQL> show error
    Errors for TYPE SEC_PWD_HIST_TABLE:
    LINE/COL ERROR
    0/0      PL/SQL: Compilation unit analysis terminated
    3/1      PLS-00355: use of pl/sql table not allowed in this context
    Please help on this issue
    Regards,
    Vikas Kumar

    > but i want to know just one thing why its working when i am removing "INDEX BY binaty_integer"
    Vikas, I trust I answered that question when I said? :
    "Do not confuse the two. Do not attempt to use PL/SQL array struct definition syntax in the SQL engine for defining an ADT collection. Which is why I referred you to the manual to see how an ADT is defined in SQL."
    In other words, you are trying to apply a PL/SQL concept and PL/SQL syntax to a definition of a data type in SQL.
    SQL is not PL/SQL.
    SQL ADTs are not PL/SQL arrays/tables.
    It is not even a syntax issue - it is a basic concept issue. SQL does not support PL/SQL arrays/tables. Period.

  • IN operator in nested tables

    Hi,
    Does anyone can redo an IN operator in nested tables example?
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28371/adobjcol.htm#sthref396
    My example returns no row...
    CREATE TYPE Pilote_elt_nt_type AS OBJECT
    (brevet VARCHAR(4), nomPil VARCHAR(15),
    MAP MEMBER FUNCTION get_brevet RETURN VARCHAR)
    CREATE TYPE BODY Pilote_elt_nt_type AS
    MAP MEMBER FUNCTION get_brevet RETURN VARCHAR IS
    BEGIN
    RETURN brevet;
    END get_brevet ;
    END;
    CREATE TYPE Pilotes_nt_type AS TABLE OF Pilote_elt_nt_type
    CREATE TABLE Compagnie
    (numComp VARCHAR2(2) PRIMARY KEY,
    nomComp VARCHAR2(20),
    commandants_nt Pilotes_nt_type,
    instructeurs_nt Pilotes_nt_type,
    pilotes_nt Pilotes_nt_type)
    NESTED TABLE commandants_nt STORE AS commandants_tabnt
    NESTED TABLE instructeurs_nt STORE AS instructeurs_tabnt
    NESTED TABLE pilotes_nt STORE AS pilotes_tabnt;
    INSERT INTO Compagnie
    VALUES ('C1','Air France',
    Pilotes_nt_type (
              Pilote_elt_nt_type ('PL-1','C. Sigaudes'),
    Pilote_elt_nt_type ('PL-3','A. Bidal'),
    Pilote_elt_nt_type ('PL-2','S. Payrissat')
    Pilotes_nt_type (
              Pilote_elt_nt_type ('PL-2','S. Payrissat')
    Pilotes_nt_type (          
    Pilote_elt_nt_type ('PL-3','A. Bidal'),
    Pilote_elt_nt_type ('PL-1','C. Sigaudes'),
              Pilote_elt_nt_type ('PL-4','F. Périssel')) );
    SELECT p.nomPil
    FROM Compagnie, TABLE(commandants_nt) p;
    SELECT p.nomPil
    FROM Compagnie, TABLE(instructeurs_nt) p;
    SELECT p.nomPil
    FROM Compagnie, TABLE(pilotes_nt ) p;
    --no row !
    SELECT p.nomPil
    FROM Compagnie, TABLE(commandants_nt) p
    WHERE commandants_nt IN (pilotes_nt,instructeurs_nt);

    Actually, my general advices are not my original advices, but (mostly) C.J.Date's advices.
    I'm IT practitioner (not IT scientists), but I highly appreciate work (theoretical and practical) of IT scientists like
    Edsger W.Dijkstra, C.Antony.R Hoare, John W.Backus, Peter Naur, Ole-Johan Dahl, Kristen Nygaard, Donald E.Knuth,
    Niklaus E.Wirth, Alan C.Kay, Edgar F.Codd, Christopher J.Date, Bertrand Meyer ... and many more.
    I like OOPL's, especially Eiffel. But mostly I like relational model and relational DBMS's.
    My motto is: “Thou shall not do in the Middle Tier, what thou could have done in the Data Tier”
    (Toon Koppelaars in "A first JDeveloper project: Choices made, lessons learned", Oracle World 2002).
    First, I don't like to use REF's in Oracle (relational) DBMS.
    C.J.Date in "An introduction to Database Systems" (eighth edition, 2004, chapter 26) says:
    - "The Second Great Blunder consists of mixing pointers [REF's] and relations"
    - "The Second Great Blunder undermines the conceptual integrity of the relational model in numerous ways"
    Second, using nested tables in relational database is "legal". In the same book (page 373) Date says:
    "... it is possible for a relation to include an attribute whose values are relations in turn...
    Historically, in fact, such relvars [relation variables] were not even legal -
    they were said to be unnormalized, meaning they were not even regarded as being in 1NF".
    But, note that on the same page Date says:
    "From the point of view of database design, however, such relvars are usually contraindicated,
    because they tend to be asymmetric ... and such asymmetry can lead to various practical problems".
    So, we can use nested tables (relational-valued attributes), but very very sparingly, and I agree with Billy (Verreynne):
    I also think this design of yours (using nested tables instead of normal relational tables) it a very much flawed approach. Third, I use object types as domains. In the same book (page 885) Date says:
    "... object/relational systems ... are, or should be, basically just relational systems that support the relational domain concept (i.e., types) properly
    - in other words, true relational systems, meaning in particular systems that allow users to define their own types".
    Here is my attempt to use Oracle "object-relational" features "in the proper way" (in Date's sense) - to use object type as domain:
    “OR(DBMS) or R(DBMS), That is the Question”
    http://www.quest-pipelines.com/pipelines/plsql/tips.htm#OCTOBER
    Date says that "The First Great Blunder" is to equate object classes and relational variables,
    simply speaking - to have object tables (tables in which each row represents an object).
    I must say that I'm not 100% sure about "The First Great Blunder" in Oracle (see Re: to REF or not to REF? or Re: difference between value and deref clause in oop).
    Date says that one consequence of "The First Great Blunder" is to have subtables and supertables.
    Subtables and supertables exists in SQL:1999 standard. But, in Oracle we can't say (SQL:1999 syntax):
    CREATE TABLE programmer_obj_tab OF programmer_type UNDER emp_obj_tab;
    Oracle hasn't (explicit) subtables and supertables.
    I recommend to you Billy's threads - you can find many excellent advices and opinions.
    Regards,
    Zlatko

  • Nested Tables, Forms and Portal

    I am trying to implement a form in Portal that accesses a nested table. I can access normal tables but not my nested table. The nested table within the master table are object tables.
    When trying to access from the designer page I get an error indicating that table does not exist even though it was displayed in the pick list.
    Has anyone had success with this and can it be done.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chetan.kashyap ([email protected]):
    Actually nested tables are not supported by portal till now.<HR></BLOCKQUOTE>
    Chetan, can you be a bit more specific. What do you mea by 'till now'. Does this mean the next release can do it, or the current release shipped with Oracle 9i Application Server 1.0.2.0.0 for linux that I received.

  • Nested Tables and XSU

    Does anyone know if XSU supports the use of nested tables?
    I have looked at the examples in the documentation that show how to use XSU with an object-relational schema. They work great if you have a fairly simple schema, (no nested tables). The XML documents I am trying to get into my database are a bit more complex and contain collections of repeating elements. I have created a schema that includes nested tables to support these repeating elements. My problem is when I try to access the object table via XSU. As long as I don't reference the nested table columns all works fine. Am I trying to do something that is not supported by XSU?

    Steve,
    What release is your database server?
    XSU should work fine with nested tables. Did you check out samples in http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96621/adx08xsu.htm#1014730?
    Regards,
    Geoff

  • Nested table in the table

    Hi,
    I have a table that has a column which is actually a nested table. How can I create a form based on that table ? Can a table have more than one nested tables ? If yes, then how do we create blocks for such table ?
    I am using Oracle 9.0.2 database and forms builder Version 9.0.2.7.0.
    I have an example:
    create type sh_obj as object(
    street varchar2(10),
    state char(2),
    zip varchar2(9));
    create type sh_add as table of sh_obj;
    create table sh_tab(id number(2),
    fname char(5),
    addresses sh_add)
    NESTED TABLE
    addresses
    STORE AS
    sh_addresses;
    So my main table is 'sh_tab' and nested table is 'sh_addresses'. Would I create two blocks seperately ? If yes, then do I need to define any relationship between them ?
    Thanks!
    Shalu

    Forms does not support Nested Tables. All you can do is to base the block on a stored procedure and then manually handle the mapping in the stored procedure.

  • Nested table type in object view on 8.1.7

    Object views seem to be the ideal way to deliver XML datagrams from database queries with nested data.
    I need to create a datagram that contains nested data within another nested set of data eg. a family has many people, each person may have many hobbies.
    The following code taken from Oracle documentation would create the Types I need, but this does not work on 8.1.7 (gets PLS-00534 error). Can someone advise if nested tables within a table type is a new Oracle 9 feature?
    CREATE TYPE project_t AS OBJECT
    ( projname VARHCAR2(20)
    , mgr VARHCAR2(20));
    CREATE TYPE nt_project_t AS TABLE OF project_t;
    CREATE TYPE emp_t AS OBJECT
    ( ename VARCHAR2(20)
    , salary NUMBER
    , deptname VARHCAR2(20)
    , projects nt_project_t);
    CREATE TYPE nt_emp_t AS TABLE OF emp_t;
    CREATE TYPE dept_t AS OBJECT
    ( deptno NUMBER
    , deptname VARHCAR2(20)
    , emps nt_emp_t);
    Thks, Matt. (asked same question in XML forum but maybe more appropriate here).
    null

    Matthew,
    Value-based multi-level collections, such as the one you have here, were not supported in 8.1.7. You have two choices:
    1. Upgrade to 9i to take advantage of value-based multi-level collections (see http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a88878/adobjbas.htm#462243), type inheritance, type evolution and other new features.
    2. Use REFs in 8.1.7 to build a reference-based multi-level collections (see http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a76976/adobjdes.htm#446229).
    Regards,
    Geoff

  • Nested Table in Reports

    Using Oracle 8i and Reports 6i
    I looked at the few Reports forum items on this subject but wonder if someone could give me more detailed information.
    Among the tables in my database I have an invoice table with an invoice number, booking number and a nested table of user-defined item objects.
    I want to create a Group Above report with Name, Address and other customer information on Level 1, and the list of charges from the Invoices table below followed by a simple total of charges.
    Can I do this in Report Builder with a nested table? With the nested table you seem to lose the Master-Detail relationship between tables, since for every booking there is one invoice, but of course the nested table contains potentially many items.
    I understand that the Report Wizard does not support nested tables, so do I need to base the report on a single, very complex SQL query? In that case, am I not losing the advantages of an application like Report Builder since I'm back with the limitations of SQL aggregate functions, namely SUM?
    In every case, the results of my query will produce one invoice. Can I manually place the results of the query in the Reports layout using text boxes, as in the Oracle document Building an Invoice Report (http://otn.oracle.com/products/reports/htdocs/getstart/docs/B10310_01/orbr_invoice.htm) but I'm not sure if I can do the same thing in Oracle 8i.
    Thank for your help.

    Using Oracle 8i and Reports 6i
    I understand that the Report Wizard does not support nested tables, so do I need to base the report on a single, very complex SQL query? In that case, am I not losing the advantages of an application like Report Builder since I'm back with the limitations of SQL aggregate functions, namely SUM?Since the wizard doesn't support nested tables you will need to use more complex SQL queries. It's not immediately clear to me, however, why this is more limiting with the aggregate functions.
    In every case, the results of my query will produce one invoice. Can I manually place the results of the query in the Reports layout using text boxes, as in the Oracle document Building an Invoice Report (http://otn.oracle.com/products/reports/htdocs/getstart/docs/B10310_01/orbr_invoice.htm) but I'm not sure if I can do the same thing in Oracle 8i.
    There should be no problems doing this. Since the data and the layout are separate the version of the database and the features being used have little impact on the layout in this way.
    Hope this helps,
    Danny

  • Query nested table?

    Let's say I have an object type "pair" with elements "name" and "value". I create a nested table type "pairtable" of type "pair". Then I create a view, "view", that has a column "nametable". The values in "nametable" are the result of a function that takes the value in the first column of the view, "id", and builds a nested table of type "pairtable" with the "names" and "values" associated with "id" that are stored in other tables. Clear as mud, yes?
    If I type this into SQL+
    select * from view where id = 100
    I get
    id col2 col3 col4 nametable
    100 A B C pairtable(pair(aname, avalue)),pairtable(pair(bname, bvalue)),...
    What I want is a cursor that contains only the "names" and "values" from a select number of "id"s.
    What is the syntax?
    Database is 8i, client is 9.2.
    (p.s. Eventually I will want to call these name value pairs from .NET as a REF Cursor. For now I will settle for something that works in PL/SQL)

    Ross,
    OLEDB does not support object types or nested table. This restriction is limited by the Microsoft OLEDB specfication.
    This forum is for ODP.NET. You may want to post this question to OLEDB forum.
    Thanks
    Martha

  • Trying to UNION two views with nested tables

    I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod, and my objective is to generate some XML. What I have been doing in the past, is to create a view, and then pass that view to the DBMS_XMLQuery routine. This gives me a CLOB that I pass along to the application. A typical object would be something like:
    create or replace type XML_UGroup_Member_Type as object (
         username          varchar2(128),
         group_key          varchar2(128));
    create or replace type XML_UGroup_Member_List
        as table of XML_UGroup_Member_Type;
    show errors
    Create or replace type XML_UGroup_Type as object (
         Group_Space     varchar2(32),
         group_key     varchar2(128),
         group_name     varchar2(255),
         members          XML_UGroup_Member_List);
    /This particular application will be doing stuff with group information. Pretty simply types - a group with a name and a few other keys, and a list of members. A sample view would be like:
    create or replace view xml_department_ugroup_view of xml_ugroup_type
      with object identifier ( group_key ) as
      Select 'Department',
          'Department:' || orgn_code,
          'Department_' || orgn_name
          cast ( multiset (
               select  Username, person_id,
                        'Department:' ||  effective_orgn
                from directory_master dm, logins l
               where effective_orgn = dd.orgn_code
                 and dm.person_id = l.owner)
                as XML_UGroup_Member_List )
             as members
       from directory_departments dd
      where dept_include = 'Y';
    can select from this view, and I can pass it to the DBMS_XMLQUERY package and get a nice XML document. What I want to is essentially put several of these views together, like
    Select * from XML_Department_Ugroup_View
    Union
    Select * from XML_Portfolio_Ugroup_View;But UNION does not work with nested tables:
    ERROR at line 1: ORA-00932: inconsistent datatypes: expected - got SIMON.XML_UGROUP_MEMBER_LIST
    What I was hoping to do, was to develop a set of sub views for each of the group "spaces", and then generate a view/object that includes all of the sub views, and be able to operate with that single object.
    Thoughts on how to make this work, or on alternate approaches? I have considered calling XMLQuery on each of the sub views and concatenating the XML documents and returning that to the application, but I was hoping to find a more "unified" approach.

    I modified my approach a bit - I changed the base views to return an XMLType object, like:
    create or replace view xml_portfolio_ugroup_xml
    as
    Select XMLElement("group",
             xml_ugroup_type(
          'Portfolio',
             'Portfolio:' || coas_code || ':' || orgn_Code,
          cast ( multiset (
               select  Username,
                from directory_master dm, logins l
               where ( effective_orgn, effective_coas ) in
               where effective_orgn = dd.orgn_code
                  and dm.person_id = l.owner
                as XML_UGroup_Member_List ))) as grp
       from directory_departments dd
      where dept_include = 'Y';and then I combined them with something like the following (I expect to adjust this as I learn more about the XML DB support)
    create or replace view xml_ugroup_xml as
      select xmlconcat(
         (select xmlagg(grp) from xml_department_ugroup_xml),
         (select xmlagg(grp) from xml_portfolio_ugroup_xml)
         ) as GROUPS
         from dualand as I define more group branches, I can add them into the XMLConCat stanzas. I am still open to suggestions as to ways of doing this better or cleaner, but this at least gets the project moving forward again.

Maybe you are looking for

  • Problem with utube it says verify web address after buffering help!

    When I want to watch a video on youtube it starts buffering then writes verify the web address if valid then stops. What's the solution?

  • What can I do about AirTunes fading in and out repeatedly?

    I have a persistent problem when playing music via AirTunes. The primary symptom is that the music levels fades down to almost nothing and then fades back into regular volume. I am using an iPad (original 3G) over airport express modem. I ave had thi

  • I can't set SPPrmsLOB

    I am running a Visual Basic 6 program that connects to an Oracle database and works OK until I try to store a clob via a package. When attemting to set .. cmd.Properties("SPPrmsLOB") = True .. I get the error "Item cannot be found in the collection c

  • I can't paste in Photoshop CS6

    I'm probably missing something obvious, but I can't figure this out. I created a selection around a face in one photo, then copied it and tried to paste it into another photo, but it won'd paste no matter what I try. The photo I'm copying from is onl

  • Re: Oracle on Solaris 8

    Good Morning, Could someone please tell me if Oracle is supported on Solaris 8? If so, which versions of Oracle. Thanks, Desira