Is Object Table a true Reference Table?

Does Object table only contain reference of each row objects within the table?
Does the Object Table take up the same disk space as compare to relational table with the same number of rows?
Your help in the above two questions is very appreciated!
Fred.
null

VB.Net is object oriented in the same sense as C++ is. It provides objects but doesn't require them. Java goes further by requiring that all code must be in classes and Smalltalk goes all the way by treating primitive types as objects as well.
VB.Net is much more object oriented than VB6, which didn't have classes but did have components. All of VB, C# and Managed C++ run under the Common Language Runtime so share a lot of structure.

Similar Messages

  • How do I reference the instance in a constraint on an object table?

    I want to create a unique constraint that involves the result of a deterministic member function.
    I can do it just fine if I create table with a column of the object type:
    drop table test_table1;
    drop table test_table2;
    drop type test_type;
    create type test_type as object (
         alpha varchar2(30),
         member function get_beta return varchar2 deterministic
    show errors;
    create type body test_type as
         member function get_beta return varchar2 deterministic is
         begin
              return 'Beta';
         end;
    end;
    show errors;
    create table test_table1 (
         test_instance mattk.test_type,
         beta varchar2(4000) as (test_type.get_beta(test_instance)),
         constraint test_table1_pk primary key (beta)
    insert into test_table1 (test_instance) values (test_type('Alpha'));
    commit;
    insert into test_table1 (test_instance) values (test_type('Gamma'));
    commit;As I said, this works just fine, and the second insert statement produces the following error:
    insert into test_table1 (test_instance) values (test_type('Gamma'))
    ORA-00001: unique constraint (MATTK.TEST_TABLE1_PK) violatedHowever, I'd really like my table to be an object table.
    If I do that:
    create table test_table2 of test_type;How do I then reference the object instance that the row represents?

    I've got it all worked out now. Thanks everyone for the helpful advice.
    I changed the type definition slightly. I added an Attribute for Beta, in addition to keeping the deterministic member function.
    drop table test_table2;
    drop type test_type;
    create type test_type as object (
         alpha varchar2(30),
         beta varchar2(30),
         member function get_beta return varchar2 deterministic
    show errors;
    create type body test_type as
         member function get_beta return varchar2 deterministic is
         begin
              if (self.beta <> 'Beta') then
                   raise_application_error(-20000, 'Beta is not properly set.');
              end if;
              return 'Beta';
         end;
    end;
    show errors;
    create table test_table2 of test_type;
    alter table test_table2 add (
         constraint test_table2_pk primary key (alpha, beta)
    create unique index test_table2_idx1 on test_table2(test_type.get_beta(object_value));
    insert into test_table2 values (test_type('Alpha', 'Beta'));
    commit;
    insert into test_table2 values (test_type('Gamma', 'Beta'));
    update test_table2 t set t.beta = 'BETA';
    insert into test_table2 values (test_type('Delta', 'Delta'));Correctly produces the following errors:
    insert into test_table2 values (test_type('Gamma', 'Beta'))
    ORA-00001: unique constraint (MATTK.TEST_TABLE2_IDX1) violated
    update test_table2 t set t.beta = 'BETA'
    ORA-20000: Beta is not properly set.
    ORA-06512: at "MATTK.TEST_TYPE", line 5
    insert into test_table2 values (test_type('Delta', 'Delta'))
    ORA-20000: Beta is not properly set.
    ORA-06512: at "MATTK.TEST_TYPE", line 5The presence of the unique index over the deterministic member function guarantees that function will be called on any insert or update, which gives it the opportunity to error out if the attribute is not properly set.
    The reason I was interested in doing this is because Oracle does not support constant attribute values.
    Again, thanks everyone for the helpful replies.

  • Loading TestStand Engine reference into the runnable objects table

    Has anyone ever used the Running Objects Table (ROT) to store the TestStand execution reference so other running programs have access to it?
    I have a test sequence that instantiates an ActiveX Exe script engine, then calls the script engine using the activeX adapter steps to run script files.  I need to access TestStand context variables from inside one of these scripts, but I can only pass (space delimited) string parameters to the scripts, (I didn't write the interface...)  so I don't believe I can pass ThisContext directly.
    I'd really appreciate a reply from anyone who has experience storing TestStand references in the ROT (& knows whether this would work), or using any other method of making the TestStand reference available to another running program.
    I don't really understand how the ROT works, but I found some DLL calls that register and unregister references in it.  I've stumbled about with trying it, but don't really understand what I'm doing.
    thanks - Mark

    Sorry, found the answer already at this forum.

  • Object tables and stored proecedures

    I am trying to find something about retrieving data from object tables using functions/stored procedures. I have tried a couple of things but, my code throws an "illegal column datatype" error when I try to fill the dataset.
    I am sure there is a way to do have a function or SP return object types to C# code, what ways work best?
    Thanks in advance,

    You could use a result set...I have done this using Pipelined functions that return a table of objects and used the Table() function to wrap the function return as a table in a select statement...
    open cursor for select * from table(my_function)
    where my_function returns a table of objects (see pipelined row functions).
    You may be able to reference your object directly (Ref / Value) if it is a nested object.

  • 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

  • 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?

  • Object tables/associative arrays are using lots of memory what is alternate

    I'm using mostly object tables/associative arrays in my package and it is using lots of server memorey so i want to use a different technicque to save momorey .
    like using create global temporary table or nested Table Store as or creating table run time at the start and droping it in the end .
    do have any suggestion for this ?
    for this package i'm retriving data from different table into object tables and do calculation in memorey before i send data to front end for reporting using reference cursor .
    give me your suggetion or if you know any example code for this type of process using different technique please let us know .
    thank you very much
    regards
    shailen Patel

    You can create a global temporary table like this:
    CREATE GLOBAL TEMPORARY TABLE AR_TRIAL_RCPT(
      LOC_ACCT_ID NUMBER(12),  
      ACCT_ID NUMBER(12),  
      CURRENCY_ID NUMBER(12),  
      AMT NUMBER(13,   4),  
      AMT_PRIMARY NUMBER(13,   4)
    [ON COMMIT PRESERVE ROWS]
    ;If you want the table truncated on COMMITs leave out the part in brackets other wise leave off the brackets and the table won't be truncated until your session terminates or you explicitly truncate the table.
    You can also define indexes, primary keys, foreign keys, check constraints, etc. on your temporary table if need be to improve processing.
    Now when it comes to inserting into your newly minted global temporary table, you should be able to use one of insert statements from the following anonymous PL/SQL block:
    CREATE GLOBAL TEMPORARY TABLE AR_TRIAL_RCPT(
      LOC_ACCT_ID NUMBER(12),  
      ACCT_ID NUMBER(12),  
      CURRENCY_ID NUMBER(12),  
      AMT NUMBER(13,   4),  
      AMT_PRIMARY NUMBER(13,   4)
    --[ON COMMIT PRESERVE ROWS]
    CREATE GLOBAL succeeded.
    declare
    l_open_receipt_select_1 varchar2(4000) :=
        'select 1, 1, 1, 12.05, 12.05 from dual';
    l_open_receipt_select_2 varchar2(4000) :=
        'select 2, 2, 1, 17.05, 17.05 from dual';
    l_open_receipt_select_3 varchar2(4000) :=
        'select 3 loc_acct_id,
      1 currency_id,
      27.05 amt,
      3 acct_id,
      27.05 amt_primary
      from dual';
    l_open_receipt_select_4 varchar2(4000) :=
        'select 4 loc_acct_id,
      1 currency_id,
      24.35 amt,
      4 acct_id,
      24.35 amt_primary
      from dual';
    l_ins_stmt varchar2(4000);
    begin
      -- If the column order is known ahead of time and is consistent
      -- You can use this form:
      l_ins_stmt :=
        'insert into ar_trial_rcpt (
      loc_acct_id, acct_id, currency_id, amt, amt_primary
      ) '||l_open_receipt_select_1||
      ' union all '||
      l_open_receipt_select_2;
      execute immediate l_ins_stmt;
      -- If the column order is NOT known ahead of time or is INconsistent
      -- You can use this form:
      l_ins_stmt :=
        'insert into ar_trial_rcpt (
      loc_acct_id, acct_id, currency_id, amt, amt_primary
      select loc_acct_id
      , acct_id
      , currency_id
      , amt
      , amt_primary
      from ('||l_open_receipt_select_3||')
      union all
      select loc_acct_id
      , acct_id
      , currency_id
      , amt
      , amt_primary
      from ('||l_open_receipt_select_4||')';
      execute immediate l_ins_stmt;
    end;
    anonymous block completed
    select * from ar_trial_rcpt
    LOC_ACCT_ID ACCT_ID  CURRENCY_ID AMT    AMT_PRIMARY
    1           1        1           12.05  12.05      
    2           2        1           17.05  17.05      
    3           3        1           27.05  27.05      
    4           4        1           24.35  24.35      
    4 rows selected

  • Mix object tables with relational tables?

    Hallo,
    is it possible to mix object tables with relational tables in one database?
    I didn't succeed in assigning a foreign key from a relational table to an object table.
    Is this only working with column objects in relational tables?

    Hi
    is it possible to mix object tables with relational tables in one database?
    Every database contains both types of tables. So, it is basically not a problem.
    I didn't succeed in assigning a foreign key from a relational table to an object table.
    Is this only working with column objects in relational tables?It would be interesting to know how you tried... e.g. what error you get... Here an example (executed on 11.1).
    SQL> create or replace type tt as object ( n number );
      2  /
    SQL> create table ot of tt (constraint ot_pk primary key (n));
    SQL> create table rt (n number, constraint rt_ot_fk foreign key (n) references ot (n));
    SQL> insert into ot values (tt(1));
    SQL> insert into rt values (1);
    SQL> insert into rt values (2);
    insert into rt values (2)
    ERROR at line 1:
    ORA-02291: integrity constraint (OPS$CHA.RT_OT_FK) violated - parent key not foundHTH
    Chris

  • Using REF with object table in SQL Developer

    When i create object tables and fill them with data, then in SQL Developer de REF value isn't displayed.
    I did the following:
    CREATE TYPE adres_type AS OBJECT
    (straat VARCHAR2(20)
    ,nummer VARCHAR2(10)
    ,postcode VARCHAR2(6)
    ,plaats VARCHAR2(50));
    CREATE TABLE adressen of adres_type;
    CREATE TYPE locatie_type AS OBJECT
    (nr NUMBER
    ,naam VARCHAR2(20)
    ,adres REF adres_type);
    CREATE TABLE locaties OF locatie_type;
    CREATE TABLE locaties OF locatie_type
    (SCOPE FOR (adres) IS adressen);
    insert into adressen values (adres_type('Arnhemsestraatweg', '33','6881ND','Velp'));
    insert into locaties values (1,'Directie', (select ref (a) from adressen a where a.plaats = 'Velp'))
    Then in SQL Developer de REF(A) column is empty, while in SQL*Plus it displays the REF value:
    In SQL Developer: SELECT a.*, REF(a) FROM adressen a;
    STRAAT NUMMER POSTCODE PLAATS REF(A)
    Arnhemsestraatweg 33 6881ND Velp
    In SQLPLUS: SELECT a.*, REF(a) FROM adressen a;
    STRAAT NUMMER POSTCODE PLAATS REF(A)
    Arnhemsestraatweg 33 6881ND Velp 0000280209C70341FBB96B4F77813B27B50E53BB4332382E22ADD64AD9B755F651D416B6DA010134
    Is this a bug or is there another reason why the ID doesnt display in SQL Developer.
    (this didnt work in all the previous SQL Developer releases and still not in de 2.1 E.A. version)

    Hi <not sure of your first name>,
    I have replicated the issues and logged a bug against this
    Bug 9102579 - FORUM: REF FUNCTION NOT RETURNING CORRECT RESULT
    Regards,
    Dermot O'Neill
    SQL Developer Team

  • 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 get the List of Database Objects (Table/View) for a given APEX Page.

    Hi,
    I have an application and that consist of pages like page1,2,3,.....
    *1.* I want a report which can give me the list of all the Pages1,2,3,....
    I am using the following query to acheive this.... THIS IS FINE..
    select a.workspace, a.owner, a.application_name, b.page_id, b.page_name
      from apex_applications a,
           apex_application_pages b
    where a.workspace = b.workspace
       and a.application_id = b.application_id*2. Now, I want for each individual page*, the list all the database objects (tables/views), which that page is using.
    I am using ALL_DEPENDENCIES , but I am not getting the result.
    So, want to know if there any view/table, where I can get the Application Pages & there database object list...
    Thanks,
    Deepak

    Hari,
    Thanks for the response.
    The view APEX_APPLICATION_PAGE_DB_ITEMS will only give me the table name related to any Page Items defined to that page..It will not give me all the database objects..
    suppose we have a Page, having a report based on multiple tables and there is no Page items defined on that page, we will not have any value in this ....DB_ITEMS table. same thing if we have define some PL|SQL(using some table/view) in a Process, that will not be populated in .....DB_ITEMS table. I want some thing like all the database objects (table/views/function/procedure/.....) for a particular Page ID.
    Thanks,
    Deepak

  • 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

  • Update statement for object table.

    Hi,
    I have created one type as
    Create type test as object(
    ins_by varchar2(30),
    ins_on date,
    upd_by varchar2( 30),
    upd_on date);
    and then created an object table as
    create table imst(
    i_code number(5),
    i_desc varchar2(35),
    i_op test);
    now i am able to insert record in this table as
    insert into imst values(1,'Hawkins cooker',test(user,sysdate,'',''));
    Above works fine.
    But I would also like to update the record with i_op.upd_by,i_op.upd_on with some other values.
    Can any body help me specifying how to write a plain update statement for the same.
    Regards.
    Soumen

    Check it out:
    SQL> Create type myTest as object(
      2  ins_by varchar2(30),
      3  ins_on date,
      4  upd_by varchar2( 30),
      5  upd_on date);
      6  /
    Type created.
    SQL> create table imst(
      2  i_code number(5),
      3  i_desc varchar2(35),
      4  i_op myTest);
    Table created.
    SQL> insert into imst values(1,'Hawkins cooker', mytest(user,sysdate,'',''));
    1 row created.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', NULL, NULL)
    SQL> update imst i set i.i_op.upd_by = USER, i.i_op.upd_on = add_months(sysdate, 1);
    1 row updated.
    SQL> select * from imst;
        I_CODE I_DESC
    I_OP(INS_BY, INS_ON, UPD_BY, UPD_ON)
             1 Hawkins cooker
    MYTEST('APC_LOAD', '12-JUL-04', 'APC_LOAD', '12-AUG-04')
    SQL> Smoke me a kipper I'll be back before breakfast.
    Cheers, APC

  • Object tables and procedures.

    Hi! I apologize in advance if my question is too trivial. I'm building simple object-relational database, and i would like to move a lot of my programming logic into database. I plan to build object tables based on object types that contain not only attributes but also functions and procedures. Now for example, i have object type "product" that contains some atributes like id ,name, price..., and let say procedure LowerThePrice(Percentage NUMBER) that should change the actual data.
    Now i create table Products of type product and fill it with some data. The question is how can i call/apply this procedure LowerThePrice on rows of products object table? If this scenario is even possible, how can i call that procedure using sql plus, and VB.net 2005 (i have installed and configured ODP.NET and oracle 11g).
    Thanks!

    1. Has been mentioned before - we do have a bug on it. To search across all your pl/sql, there is a report you can use.
    2. We are working on improving errors but I can't make any promises.
    3. We have heard this before but it won't be there for v1.0. You can use the Connections navigator to access the details of the objects that are accessible to you while you have a Worksheet open. You can even drag your Worksheet tab down to place it under the Connections details tab so you can see them both at the same time.
    4. In a post-v1.0 release, we will be looking at additional, alternate navigation.
    5. We have an open bug to not prompt you for the same bind more than once.
    6. I will talk to the Worksheet developer about this one. Not sure we can remember the binds from execution to execution but it would be a great enhancement.
    7. Not sure why this is failing - I will check into it.
    -- Sharon

  • 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

Maybe you are looking for

  • Is there any performance monitoring tool to check content db size ?

    Hello, I have following scenario : Check volume and size of content uploaded onto the SharePoint content DB including some form of resource details like content types,docs. Questions : Can anyone please let me know how can we set alert when SharePoin

  • How to "properly" enable the mic on GT60 Dominator?

    Its not the apps im using its the mic, I tested it with Skype, Steam chat, and window sound recorder they're all have the same result, very poor quality. They sounds like im far away from the laptop even though I was very close to it! I use a headset

  • How to configure ftpadapter JNDI in server Console for oracle soa suite 11g

    Hi All, I need to configure a ftp adapter in one of my bpel process. Could any one guide me pleas ,how to do FTP adapter jndi configure in admin server console? Thank you. Regards, Satish

  • App Store has become unusable

    The App Store recently has become quite unusable: - no more "Latest iPhone Apps" category - no more "Latest free Apps" category - "New" panel doesn't show the latest Apps in the current category - especially in the category "Games" there's no way to

  • Adobe PS CS4 crashes randomly - MSVCR80.dll

    Hello I wonder if someone could help me please. I've got a classroom of about 20 computers all running CS4, on Windows 7 64-bit. Every so often, photoshop will just black screen. Sometimes it will come back, other times it will crash completely with