Oracle nested object table

I've posted this question in sql/plsql forum but it may belong here.
My question is how can i individually initialize/assign record to my nested table type wf_acts_t or wf_trans_t( either one or the other)?
It maybe simply a case where I dont know how to accomplish this goal but I've got a workaround.
CREATE TYPE wf_act_t IS OBJECT (
a_NAME VARCHAR2 (100)
CREATE TYPE wf_acts_t IS
TABLE OF wf_act_t
CREATE TYPE wf_tran_t IS OBJECT (
wf_name VARCHAR2 (100)
CREATE TYPE wf_trans_t IS
TABLE OF wf_tran_t
CREATE TYPE act_t IS OBJECT (
act wf_acts_t,
tran wf_trans_t
create type bunch_of_act is table of act_t
declare
my_acts bunch_of_act := bunch_of_act();
v_loop_count BINARY_INTEGER := 1;
begin
for wf_lkup_rec in(select * from wf_activities_lkup)
loop
my_acts.extend;
/*here you cannot address wf_acts_t or wf_trans_t individually*/
my_acts(v_loop_COUNT) :=
act_t(
wf_acts_t(wf_act_t(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)
wf_trans_t ( wf_tran_t (null))
v_loop_count :=
v_loop_count +1;
end loop;
v_loop_count := 1;
dbms_output.put_line (my_acts (1).act(1).a_name);
end;

It can be something like that (I'm sorry for
very silly example):
SQL> declare 
  2     my_acts bunch_of_act := bunch_of_act(); 
  3     v_loop_count BINARY_INTEGER := 1; 
  4     ptr1 wf_acts_t; 
  5     ptr2 wf_trans_t; 
  6  begin     
  7 
  8    for wf_lkup_rec in(select e.* from emp e where rownum < 3) loop   
  9 
10     /* Declare new table object*/
11      ptr1 := wf_acts_t();
12 
13     /* Here we fill table individually */
14     -- Add some loop:
15 
16      for k in 1..2 loop
17       ptr1.extend;    
18       ptr1(ptr1.last) := wf_act_t(wf_lkup_rec.ename);        
19      end loop;
20 
21     /* Declare new table object*/    
22      ptr2 := wf_trans_t();
23 
24     /* Here we fill table individually */    
25     -- Add some loop
26     for k in 1..2 loop
27       ptr2.extend;
28       ptr2(ptr2.last) := wf_tran_t(wf_lkup_rec.empno);    
29     end loop;      
30 
31     my_acts.extend;
32     my_acts(my_acts.last) :=  act_t(ptr1, ptr2);
33 
34    end loop;
35 
36    /* Individually take elements */
37 
38    for j in 1..my_acts.count loop
39    
40       dbms_output.put_line('Element ' || j || ' of top colletion contains '); 
41 
42       for k in 1..my_acts(j).act.count loop
43           dbms_output.put_line(' act with name ' || my_acts(j).act(k).a_name); 
44       end loop;
45 
46       dbms_output.put_line('and');
47 
48       for k in 1..my_acts(j).tran.count loop
49           dbms_output.put_line(' tran with id ' || my_acts(j).tran(k).wf_name);
50       end loop;
51    
52    end loop;
53    
54  end;
55  /
Element 1 of top colletion contains
act with name SMITH
act with name SMITH
and
tran with id 7369
tran with id 7369
Element 2 of top colletion contains
act with name ALLEN
act with name ALLEN
and
tran with id 7499
tran with id 7499
&nbsp
PL/SQL procedure successfully completed.Rgds.

Similar Messages

  • Join parent with child on nested object table

    We made a nested table in Oracle 8i with two object types and collection type.
    We manipulating with it - no problem.
    However trying to join parent with the child cause the problem in PL/SQL
    This sintax is OK for Oracle SQL and returns right result:
    select
    matl.barcode_id,
    matl.LAST_MOD_TSP,
    dtl.matl_nbr,
    bmm.matl_dsc,
    dtl.asn_qty,
    dtl.mfg_dt
    from
    asn_barcode_matl_ot matl,
    table(matl.asn_barcode_matl_dtl) dtl,
    wms_brwy_matl_mstr bmm
    where
    matl.rcpt_seq_id = 1
    and matl.brwy_cd = bmm.brwy_cd
    and dtl.matl_nbr = bmm.matl_nbr;
    But stored procedure with this statement doesn't compile and giving the error:
    PLS-00201: identifier 'MATL.ASN_BARCODE_MATL_DTL' must be declared
    Looks like a bug? What is wrong?

    It is not possible. You can do this with trigger code, or preferably by adjusting your delete procedure api. A delete of the master record will often fail because other children records exists, so you have to catch that exception and do something that is useful to you in this situation.
    Regards,
    Rob.

  • OBJECT TABLES in DATA WAREHOUSE

    Can anyone give a high level response of the benefits as well as
    drawbacks of using Nested object tables as a permanent means of
    storage in an ORACLE data warehouse. In particular, is there a
    performance enhancement/degradation, maintenance problems,
    scalability etc in comparison to standard HEAP tables.
    Most books that I have read suggest NOT to use object tables as
    a permanent means of storage.
    Thanks for any help that you can provide.

    Hi Hakan,
    it's not easy to give a quick answer here.
    a) you want to compare warehouse tables with spatial tables
    To answer this very well you should define what is a warehouse table and what is a spatial table. In this forum you will get for spatial tables the definition "A spatial table is a table with one or more columns of type SDO_GEOMETRY". How do you define a spatial table and how do you define a warehouse table?
    b) you ask for performance
    Performance is not depending only on table type. Performance is depending on a lot of steps. For example on the work which has to be done to answer the question, can data read from buffer cache or must they be read from physical devices, execution plan .....
    I don't know if there is a official statement from Oracle which is usefull to answer your query.
    Can you ask a little bit particular please?
    In my experience there it is not adviseable to store tables in different databases (instances) when I have to query it together. If you split the tables in different instances, the execution has much more overhead because you have to talk to 2 instances and it will very hard for the optimizer to find the best execution plan.
    Regards
    U. Martin

  • Only oracle object tables to create object oriented database

    Can we use only oracle object tables for a database and if it can be done, can we create pure object oriented database with oracle. How it can be done?
    help..
    thank you..

    PriyashanthaHP wrote:
    I have no my own definitions for OODB. There are lot in the internet. I'm asking, can't we use that OODB concept with oracle. And gave you an example with 'employee' and 'department' tables. I asked that can we create object tables for these two tables keeping their relationship
    thank you..
    There is no way to answer that without knowing what YOU mean by OODB.
    See the database concepts doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/schema.htm
    Nested Tables
    You can create a table with a column whose datatype is another table. That is, tables can be nested within other tables as values in a column. The Oracle database server stores nested table data out of line from the rows of the parent table, using a store table that is associated with the nested table column. The parent row contains a unique set identifier value associated with a nested table instance.
      Oracle Database Object-Relational Developer's Guidefor further information on nested tables
      Oracle Database Advanced Application Developer's Guide

  • Adding nested table to object table

    if I alter an object type and add a nested table to it, there seem to be no syntax to add "STORE AS" clause for that nested table in the object table containing the altered object type. E.G.:
    ALTER TYPE fd_dao ADD ATTRIBUTE Own_Name Own_Name_ntt;
    where Own_Name_ntt is a nested table type, then
    ALTER TABLE FD_DOT NESTED TABLE Own_Name STORE AS Own_Name_ntab;
    does not work but the table FD_DOT can not be used since it lacks the storage for the newly added nested table.

    Check your syntax.
    CREATE TYPE Own_Name_ntt AS TABLE OF VARCHAR2(25);
    CREATE TYPE fd_dao AS OBJECT
    (col1        date
    ,col2        number);
    CREATE TABLE fd_dot(cola varchar2(10)
                       ,colb date);
    ALTER TYPE fd_dao ADD ATTRIBUTE Own_Name Own_Name_ntt;
    ALTER TABLE FD_DOT ADD (Own_Name Own_Name_ntt)
        NESTED TABLE Own_Name STORE AS Own_Name_ntab;
    SQL> CREATE TYPE Own_Name_ntt AS TABLE OF VARCHAR2(25);
      2  /
    Type created.
    SQL>
    SQL> CREATE TYPE fd_dao AS OBJECT
      2   (col1        date
      3   ,col2        number);
      4  /
    Type created.
    SQL>
    SQL> CREATE TABLE fd_dot(cola varchar2(10)
      2                     ,colb date);
    Table created.
    SQL>
    SQL> ALTER TYPE fd_dao ADD ATTRIBUTE Own_Name Own_Name_ntt;
    Type altered.
    SQL>
    SQL> ALTER TABLE FD_DOT ADD (Own_Name Own_Name_ntt)
      2      NESTED TABLE Own_Name STORE AS Own_Name_ntab;
    Table altered.
    SQL> desc fd_dot
    Name                                                                          Null?    Type
    COLA                                                                                   VARCHAR2(10)
    COLB                                                                                   DATE
    OWN_NAME                                                                               OWN_NAME_NTT
    SQL> desc fd_dao
    Name                                                                          Null?    Type
    COL1                                                                                   DATE
    COL2                                                                                   NUMBER
    OWN_NAME                                                                               OWN_NAME_NTT
    SQL> disconnect
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining options
    SQL> CREATE TYPE Own_Name_ntt AS TABLE OF VARCHAR2(25);
      2  /
    Type created.
    SQL>
    SQL> CREATE TYPE fd_dao AS OBJECT
      2   (col1        date
      3   ,col2        number);
      4  /
    Type created.
    SQL>
    SQL> CREATE TABLE fd_dot(cola varchar2(10)
      2                     ,colb date);
    Table created.
    SQL>
    SQL> ALTER TYPE fd_dao ADD ATTRIBUTE Own_Name Own_Name_ntt;
    Type altered.
    SQL>
    SQL> ALTER TABLE FD_DOT ADD (Own_Name Own_Name_ntt)
      2      NESTED TABLE Own_Name STORE AS Own_Name_ntab;
    Table altered.
    SQL> desc fd_dao
    Name                                                                          Null?    Type
    COL1                                                                                   DATE
    COL2                                                                                   NUMBER
    OWN_NAME                                                                               OWN_NAME_NTT
    SQL> desc fd_dot
    Name                                                                          Null?    Type
    COLA                                                                                   VARCHAR2(10)
    COLB                                                                                   DATE
    OWN_NAME                                                                               OWN_NAME_NTT
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.3.0 - Production

  • Help ! Cannot retrieve Object table data from Oracle 8i

    Dear All,
    Created the object and object table in SQL*Plus. If query from SQL*Plus, return rows selected.
    But if query from SQL*Plus worksheet and ODBC Test program, return "0 rows selected".
    Similary, if created the object and object table in SQL*Plus worksheet and query from SQL*Plus worksheet, return rows selected.
    But if query from SQL*Plus or ODBC Test program, return "0 rows selected".
    Appreciate advice from anyone. Thanks in advance.
    Oracle version. 8i Enterprise Edition Release 2
    Scrip to create object and insert record:
    CREATE TYPE stockitem_objtyp AS OBJECT (
    STOCKNO NUMBER,
    PRICE NUMBER,
    TAXRATE NUMBER
    CREATE TABLE stock_objtab of stockitem_objtyp (stockno primary key) object id primary key;
    INSERT INTO Stock_objtab VALUES (1, 1000, 3);
    select * from stock_objtab;
    null

    First, I suspect that this question probably belongs on the ODBC forum, since it doesn't appear to be at all related to the JVM.
    That said, I don't seem to have any problem retrieving the data, either through ODBC or SQL*Plus. If you post your question to the ODBC forum, perhaps some other folks will be able to try this and we can narrow down the problem.
    Justin Cave
    ODBC Development

  • How to upload and checkin  oracle objects(tables,functons etc)

    we are using scm repository and uploading and chicking in
    oracle forms and reports . want to know the steps to upload and check in oracle database objects like tables,functions,procedures etc which we already have in our database.
    plz help us .

    Rashid,
    for all structured objects you need Oracle Designer as frontend to SCM Repository. In Designer use the design editor und choose from the GENERATE Menu the item CAPTURE DESIGN OF. There you will find SERVER MODEL.
    regards
    Rainer

  • Don't  Oracle SQL Developer show Object tables ?

    Hi
    when I create a table of an object in oracle the SQL Developer don't show it in Tables tree
    my mean is that SQL Developer don't show object tables that are defined in user_object_tables or dba_object_tables
    in Tables tree (while other tools such as PL/SQL Developer do it)
    do you know that is there any solution for showing object tables in Table tree in SQL Developer ?
    thanks

    Any updates on this? I have the same problem. "Types" only shows the object types, but not the tables based on these object types.
    Erwin

  • Queue Table on Nested Objects

    Queue Table with Nested Objects
    I need to create a queue table based on nested object
    These are my declarations
    TYPE TESTATATYPE AS OBJECT (
    CODICE VARCHAR2(5),
    DESCRIZIONE VARCHAR2(30)
    TYPE DETTAGLIOTYPE AS OBJECT (
    CODICE VARCHAR2(5),
    DESCRIZIONE VARCHAR2(30),
    VALORE NUMBER
    TYPE DETTAGLITYPE IS TABLE OF DETTAGLIOTYPE
    TYPE MESSAGGIOTYPE AS OBJECT (
    TESTATA TESTATATYPE,
    DETTAGLI DETTAGLITYPE
    Now i'm trying to create queue table
    DBMS_AQADM.CREATE_QUEUE_TABLE(queue_table => 'MsgQTab',
    queue_payload_type => 'MessaggioType',
    storage_clause => 'NESTED TABLE
    dettagli STORE AS dettagli_tab_Q',
    sort_list => 'priority,enq_time'
    but I get
    ORA-00904: invalid column name
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2012
    ORA-06512: at "SYS.DBMS_AQADM", line 55
    ORA-06512: at line 3
    maybe the problem is storage clause, can you help me ?
    null

    Andrea,
    You cannot currently use a nested table even as an embedded object within a message payload.
    However, you can create an object type that contains one or more VARRAYs, and create a queue table that is founded on this object type. I guess this might be the problem you are facing.

  • Function based indexes on object tables

    Hi,
    I am trying to create a function based index on an object table. I am getting the following error:
    SQL> create index cell1_indx on cell1(create_cell1(id)) indextype is mdsys.spatial_index;
    create index cell1_indx on cell1(create_cell1(id)) indextype is mdsys.spatial_index
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Stmt-Execute Failure: SELECT num_rows from all_tables where owner='ASHE' and table_name=
    'CELL1'
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    Here cell1 is an object table.
    Is the procedure for creating function based indexes on object tables different from relational tables?
    Chinni

    One of the many new features in Oracle 8i is the Function-Based Index (we will refrain from using FBI, but only just). This allows the DBA to create indexes on functions or expressions; these functions can be user generated pl/sql functions, standard SQL functions (non-aggregate only) or even a C callout.
    A classic problem the DBA faces in SQL Tuning is how to tune those queries that use function calls in the where clause, and result in indexes created on these columns not to be used.
    Example
    Standard B-Tree index on SURNAME with cost based optimizer
    create index non_fbi on sale_contacts (surname);
    analyze index non_fbi compute statistics;
    analyze table sale_contacts compute statistics;
    SELECT count(*) FROM sale_contacts
    WHERE UPPER(surname) = 'ELLISON';
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=3 Card=1 Bytes=17)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (FULL) OF 'SALES_CONTACTS' (Cost=3 Card=16 Bytes=272)
    Now we use a function based index
    create index fbi on sale_contacts (UPPER(surname));
    analyze index fbi compute statistics;
    analyze table sale_contacts compute statistics;
    SELECT count(*) FROM sale_contacts WHERE UPPER(surname) = 'ELLISON';
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=17)
    1 0 SORT (AGGREGATE)
    2 1 INDEX (RANGE SCAN) OF 'FBI' (NON-UNIQUE) (Cost=2 Card=381 Bytes=6477)
    The function-based index has forced the optimizer to use index range scans (retuning zero or more rowids) on the surname column rather than doing a full table scan (non-index lookup). Optimal performance does vary depending on table size, uniqueness and selectivity of columns, use of fast full table scans etc. Therefore try both methods to gain optimal performance in your database.
    It is important to remember that the function-based B*Tree index does not store the expression results in the index but uses an "expression tree". The optimizer performs expression matching by parsing the expression used in the SQL statement and comparing the results against the expression-tree values in the function-based index. This comparison IS case sensitive (ignores spaces) and therefore your function-based index expressions should match expressions used in the SQL statement where clauses.
    Init.ora Parameters
    The following parameter must be set in your parameter file: QUERY_REWRITE_INTEGRITY = TRUSTED
    QUERY_REWRITE_ENABLED = TRUE
    COMPATIBLE = 8.1.0.0.0 (or higher)
    Grants
    Grants To create function-based indexes the user must be granted CREATE INDEX and QUERY REWRITE, or alternatively be granted CREATE ANY INDEX and GLOBAL QUERY REWRITE. The index owner must have EXECUTE access on the function used for the index. If execute access is revoked then the function-based index will be "disabled" (see dba_indexes).
    Disabled Indexes
    If your function-based index has a status of "disabled" the DBA can do one of the following:
    a) drop and create the index (take note of its current settings)
    b) alter index enable, function-based indexes only, also use disable keyword as required
    c) alter index unusable.
    Queries on a DISABLED index fail if the optimizer chooses to use the index.Here is an example ORA error:
    ERROR at line 1: ORA-30554: function-based index MYUSER.FBI is disabled.
    All DML operations on a DISABLED index also fail unless the index is also marked UNUSABLE and the initialization parameter SKIP_UNUSABLE_INDEXES is set to true.
    Some more Examples
    CREATE INDEX expression_ndx
    ON mytable ((mycola + mycolc) * mycolb);
    SELECT mycolc FROM mytable
    WHERE (mycola + mycolc) * mycolb <= 256;
    ..or a composite index..
    CREATE INDEX example_ndx
    ON myexample (mycola, UPPER(mycolb), mycolc);
    SELECT mycolc FROM myexample
    WHERE mycola = 55 AND UPPER(mycolb) = 'JONES';
    Restriction & Rule Summary
    The following restrictions apply to function based indexes. You may not index:
    a) LOB columns
    b) REF
    c) Nested table column
    d) Objects types with any of the above data types.
    Function-based indexes must always follow these rules:
    a) Cost Based optimizer only, must generate statistics after the index is created
    b) Can not store NULL values (function can not return NULL under any circumstance)
    c) If a user defined pl/sql routine is used for the function-based index, and is invalidated, the index will become "disabled"
    d) Functions must be deterministic (always return the same value for a known input)
    e) The index owner must have "execute" access on function used in the function-based index. Revocation of the privilege will render the index "disabled"
    f) May have a B-Tree and Bitmap index type only
    g) Can not use expressions that are based on aggregate functions, ie. SUM, AVG etc.
    h) To alter a function-based index as enabled, the function used must be valid, deterministic and the signature of the function matches the signature of the function when it was created.
    Joel P�rez

  • Insert/Update/Delete in forms6i using Objects table in Oracle9i server

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    user563114,
    As James (padders) told you in his reply to a similar question that you posted (Typed tables is treated in the same way as a relational table?) in the Typed tables is treated in the same way as a relational table? forum, the only way you can tell for sure is to try it out both ways, measure and compare the times.
    Of-course, there are many factors that effect the time, apart from whether you use a nested table or a regular table.
    Good Luck,
    Avi.

  • How to inherit attribute values in object tables?

    I am trying to implement object inheritance with oracle 10g express. What i have done so far is created some types and subtypes. And some tables based on those types and sub types. So far i have understood that the subtypes inherit the attributes and methods from its super types.
    But is there a way to inherit the attribute values from the object table of the super type to the object table of the sub type?
    For example: The object O1 , explicitly labeled with (sIPO1 , wIPO1) , also inherits the intended purpose (sIPT 1 wIPT 1) from T1 . Similarly, the object O3 inherits the intended purposes from T3 , O1 and T1 . Note, however, that O2 , which is not labeled, inherits the intended purpose from T2 , but not from O1 nor T1 , as the intended purposes are not inherited through the reference-of relation.
    _a visual of the above description [http://picasaweb.google.com/lh/photo/1YBAQbCMQMBmd8oyw9SyNw?feat=directlink]_
    How can the types and objects be labeled as mentioned above? And how can these labels be made inheritable by the subtypes and objects based on those subtypes?
    Possible Solution*
    Only way which i could think of is using relational tables, like this: type_label(type_name, label1, label2) and a similar table table_label(table_name, label1, label2) for labeling the object tables. Then refer to these labels through some java programming. Will this be a right approach. I doubt that this will defeat the very intentions of the object database. And i hope there is a straight solution in Object Relational methods instead of java programming.
    nested tables and vararrays... will using them help solving the above problem some how?

    From those examples i can see that although the nested tables will have the super type attributes and values with them, if i have to change those attribute values the values in the whole table gets changed.
    is it possible to change the super type attribute values which is corresponding to the nested table values alone and not disturb the over all table?

  • Mapping object tables

    HI Gentlemen,
    I needed so badly a JDeveloper/Toplink mapping to object tables. Unfortunately, even the latest version (11g) does not support them; however, according to documentation, there is a solution by means of Java programming. What can I do? If not, how long is it to wait for the next release?
    Thank you very much, kind regards from
    Dr. Miklos HERBOLY
    Software engineer

    Yes,
    these are user-defined types including nested tables of NOT ONLY REFs but real objects; arrays and so on. This would be very helpful because pure relational storage requires me to set up a large number of tables.
    Suppose, for example, in a medical care record there is an attribute 'psycholgogical treatment' and this has a set of dates associated with it. I am not allowed to restrict the user to say, 5 dates which would yield a non- normalized relational table, rather I have to set up a separate table for the unknown number of dates and a foreign key link to its master table. And this occurs many-many times in different situations with considerably more complex types than just a simple date. However, if I could use a nested table for the date, Oracle would arrange the whole linkage internally and transparently for me, so that I could select the WHOLE treatment record with those nasty dates implied. That's it.
    If you have anything for me, I am very grateful to you.
    Kind regards from
    Miklos

  • IN_WRONG_TABLESPACE, object: table/index

    Hi all,
    Apologies for the repost of this topic. I have seen it a few times but without resolutions. My problem is as follows.
    BR0970W Database administration alert - level: WARNING, type: IN_WRONG_TABLESPACE, object: (index) SAPSR3.D010INC~1, value: PSAPSR346C       
    BR0970W Database administration alert - level: WARNING, type: IN_WRONG_TABLESPACE, object: (table) SAPSR3.D010L, value: PSAPSR346C
    This is IAORA.
    TABART
    TABSPACE
    PCTINC
    OFREELIST
    OPCTFREE
    APPL0
    PSAPSR3
    0000
    1
    10
    APPL1
    PSAPSR3
    0000
    1
    10
    APPL2
    PSAPSR3
    0000
    1
    10
    CLUST
    PSAPSR3
    0000
    1
    10
    POOL
    PSAPSR3
    0000
    1
    10
    SDIC
    PSAPSR3
    0
    1
    10
    SDOCU
    PSAPSR3
    0000
    1
    10
    SLDEF
    PSAPSR346D
    0000
    1
    10
    SLEXC
    PSAPSR346D
    0000
    1
    10
    SLOAD
    PSAPSR3
    0000
    1
    10
    SPROT
    PSAPSR3
    0000
    1
    10
    SSDEF
    PSAPSR346D
    0000
    1
    10
    SSEXC
    PSAPSR346D
    0000
    1
    10
    SSRC
    PSAPSR3
    0000
    1
    10
    TEMP
    PSAPSR3
    0000
    1
    10
    USER
    PSAPSR3USR
    0000
    1
    10
    USER1
    PSAPSR3USR
    0000
    1
    10
    This is TAORA.
    TABART
    TABSPACE
    PCTINC
    OFREELIST
    OFREEGROUP
    OPCTFREE
    OPCTUSED
    APPL0
    PSAPSR3
    0000
    001
    01
    10
    40
    APPL1
    PSAPSR3
    0000
    1
    1
    10
    40
    APPL2
    PSAPSR3
    0000
    1
    1
    10
    40
    CLUST
    PSAPSR3
    0000
    1
    1
    10
    40
    POOL
    PSAPSR3
    0000
    1
    1
    10
    40
    SDIC
    PSAPSR3
    0
    1
    1
    10
    40
    SDOCU
    PSAPSR3
    0000
    1
    1
    10
    40
    SLDEF
    PSAPSR346D
    0000
    1
    1
    10
    40
    SLEXC
    PSAPSR346D
    0000
    1
    1
    10
    40
    SLOAD
    PSAPSR3
    0000
    1
    1
    10
    40
    SPROT
    PSAPSR3
    0000
    1
    1
    10
    40
    SSDEF
    PSAPSR346D
    0000
    1
    1
    10
    40
    SSEXC
    PSAPSR346D
    0000
    1
    1
    10
    40
    SSRC
    PSAPSR3
    0000
    1
    1
    10
    40
    TEMP
    PSAPSR3
    0000
    1
    1
    10
    40
    USER
    PSAPSR3USR
    0000
    1
    1
    10
    40
    USER1
    PSAPSR3USR
    0000
    1
    1
    10
    40
    select tablespace_name from dba_tablespaces;
    SYSTEM,PSAPUNDO,SYSAUX,PSAPTEMP,PSAPSR3,PSAPSR346C,PSAPSR3USR
    Tablespace does exist as you can see above now to determine type of tablespace, and as per below query you can see it contains
    both data and indexes.
    select distinct(segment_type), tablespace_name from dba_segments order by tablespace_name;
    SEGMENT_TYPE       TABLESPACE_NAME
    INDEX              PSAPSR3
    TABLE              PSAPSR3
    INDEX              PSAPSR346C
    TABLE              PSAPSR346C
    TABLE              PSAPSR3USR
    TYPE2 UNDO         PSAPUNDO
    INDEX              SYSAUX
    INDEX PARTITION    SYSAUX
    LOB PARTITION      SYSAUX
    LOBINDEX           SYSAUX
    LOBSEGMENT         SYSAUX
    As per note 655162 option 1 and 2 are applicable to me. But as this tablespace seems to be both a data and index tablespace I am thinking I need to create the tablespace entry in IAORA and TAORA.
    How would I correctly edit these table entries and which of the following tables might also have to be edited?
    DDART and DARTT are used to maintain the classes ( tabarts)
    DD09L maps the tables to each class ( tabart)
    TAORA/IAORA maps the classes to the tablespaces
    TSORA lists the tablespaces.
    As a non dba I find the sap note a bit confusing please advise.
    Kind Regards,
    Johan

    Hi guys,
    For clarification:
    disp+work information
    kernel release                46D
    kernel make variant           46D_EXT
    DBMS client library           OCI_920__OCI_7_API
    DBSL shared library version   46D.00
    compiled on                   Linux 2.6.5-7.202.5-smp #1_SMP_Thu_Aug_25_06:20:45_UTC_2005 x86_64
    compiled for                  64 BIT
    compile time                  Aug 10 2008 21:39:12
    update level                  0
    patch number                  2415
    source id                     0.2415
    supported environment
    database (SAP, table SVERS)   46A
                                  46B
                                  46C
                                  46D
    DBMS server                   ORACLE 8.0.5..
                                  ORACLE 8.0.6..
                                  ORACLE 8.1.6..
                                  ORACLE 8.1.7..
                                  ORACLE 9.2.0..
                                  ORACLE 10.2.0..
    operating system              Linux 2.6
                                  System build information:
                                  LCHN  :
    System components:
    ST-PI     2008_1_46C
    ST-A/PI     01J_R3_46C
    SAP_NOTES     46C
    SAP_HR     46C
    SAP_BASIS     46C
    SAP_APPL     46C
    SAP_ABA     46C
    Regards,
    J

  • How to insert subtype data from another table in  a object table ?

    Hi all
    I have been looking at the differences answers there are about insert data form a subtype in a object table of a supertype ,but have not found a solution yet.
    I hope you can help me.
    I my code Action_Logs is the object table and CloseStore_Logs_t is a subtype of Action_Logs_t
    My code is
    insert into Action_Logs(CloseStore_Logs_t (action_logs_id , physicalstores.physicalstores_id , brandedstores.BRANDEDSTORES_ID ,physicalstores.COMPANIES_ID ,brandedstores.CREATED_BY ,
    brandedstores.CREATED_DATE , brandedstores.DELETED ,brandedstores.CLOSED_DATE as brandedstore_closedate,
    physicalstores.CLOSED_DATE as physicalstore_closedate)
    select CloseStore_Logs_t((null as action_logs_id , physicalstores.physicalstores_id , brandedstores.BRANDEDSTORES_ID ,physicalstores.COMPANIES_ID ,brandedstores.CREATED_BY ,
    brandedstores.CREATED_DATE , brandedstores.DELETED ,brandedstores.CLOSED_DATE as brandedstore_closedate,
    physicalstores.CLOSED_DATE as physicalstore_closedate)
    from physicalstores , brandedstores ,companies
    where physicalstores.physicalstores_id = brandedStores.PHYSICALSTORES_ID and
    physicalstores.COMPANIES_ID = companies.COMPANIES_ID and
    brandedstores.closed_date is not null
    oracle gives a ora _917 fault about a missing comma , but I can not se what is wrong.
    I will be glad, if you can give me an example with a right syntax where a subtype is selected from other/s tables an inserted in table of its supertype.
    kinds regards
    steen ostersen

    Hi
    I see two problems with your statement:
    1) The utilization of the values clause is not permitted along with a subquery.
    2) The AS are not allowed.
    So, something like that should work:
    insert into Action_Logs
    select CloseStore_Logs_t(null,
    physicalstores.physicalstores_id,
    brandedstores.BRANDEDSTORES_ID,
    physicalstores.COMPANIES_ID,
    brandedstores.CREATED_BY,
    brandedstores.CREATED_DATE,
    brandedstores.DELETED,
    brandedstores.CLOSED_DATE,
    physicalstores.CLOSED_DATE)
    from physicalstores , brandedstores ,companies
    where physicalstores.physicalstores_id = brandedStores.PHYSICALSTORES_ID and
    physicalstores.COMPANIES_ID = companies.COMPANIES_ID and
    brandedstores.closed_date is not null
    HTH
    Chris

Maybe you are looking for

  • A question about Logical Disk Performace collection Rules and how the Data is displayed in a Report view

    Hello I am currently on SCOM 2007 R2 CU6 and Window Server Operating System MP version 6.0.6989.0 (I cannot use the latest version of the MP as we still have some Windows 2000 Servers we need to support, yes I know :( ) Any way the issue is, I have n

  • Stacks behaving strangely.

    http://i547.photobucket.com/albums/hh461/mattiieeee/Picture2.png The black background is missing when I use this feature. It's rather hard to read the labels on the icons this way. I need the black part back. Thanks in advance.

  • Hebrew on the Lumia 800

    Hi, I live in Israel and considering to purchase the Lumia 800. I know it does not have support for writing it Hebrew, but my question is wether or not it can display hebrew in incoming SMS and Emails. I am looking for someone with the Lumio 800 who

  • What does this startup error msg mean?

    I'm getting the following message in my console upon startup. Everything seems to work ok, but I'm curious as to what the weblogic.xml file is. I don't seem to have a copy on my installation. [HttpServer] : Directory e:\xxx\ does not contain WEB-INF/

  • Is there some way to copy a playlist from an IPOD nano to the IPOD touch.

    Is there some way to copy a playlist from an IPOD nano to the IPOD Touch?  Thanks