Impact of Logging INDEX on Nologging object(TABLE) at the time of Recoveryt

Hi All,
If I have a TABLE which is of NOLOGGING Mode and the index on this table is of LOGGING Mode. If I want to Recover this table in case of its lost. How It will impact? Will it give any Error? Please Explain.....
Thanks in Advance.

You could always do this at the time of the backup to ensure no logging objects are recoverable from the backup at that point in time.......
"alter database force logging "......... this enables the DBA to override no logging to ensure recoverability.

Similar Messages

  • 10g -  Most detailed table in the time dimension table source is not unique

    hi, experts,
    I cannot find any solution from google. please help
    ERRORS:
    BUSINESS MODEL ERP:
    [38093] Most detailed table in the time dimension table source 'ERP_YEAR_MONTH' is not unique.

    Hi Forreging,
    the time key is incorrectly specified at the lowest level. In the 'ERP_YEAR_MONTH' table, have you correctly specified the primary key for the table?
    For example, if the lowest level of granularity is MONTH, then the appropriate key is probably a combination of YEAR and MONTH (not simply MONTH).
    Hope this helps,
    Justin

  • Impossible to create an index with an object table

    Is it possible to use object tables with Oracle Spatial ?
    With Oracle 8.1.7.0.0, here is the example where I encounter a problem (this example works of course with an equivalent relational table) :
    create or replace type zonegeo as object (
    id integer, definitionGeo MDSYS.SDO_GEOMETRY
    create table essaigeo of zonegeo (id PRIMARY KEY)
    OBJECT ID PRIMARY KEY;
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('ESSAIGEO','DEFINITIONGEO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 47680.000, 1197822.000, 0.005),
    MDSYS.SDO_DIM_ELEMENT('Y', 1620431.000, 2677441.000, 0.005)
    NULL -- SRID
    CREATE INDEX ESSAIGEO_SPATIAL_IDX
    ON ESSAIGEO(DEFINITIONGEO)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS ('SDO_LEVEL = 6);
    ERREUR ` la ligne 1 :
    ORA-29855: erreur d'exicution de la routine ODCIINDEXCREATE
    ORA-13203: ichec de lecture de la table USER_SDO_GEOM_METADATA
    ORA-13203: ichec de lecture de la table USER_SDO_GEOM_METADATA
    ORA-06512: ` "MDSYS.SDO_INDEX_METHOD", ligne 8
    ORA-06512: ` ligne 1

    In Oracle 8.1.7 you cannot embed a geometry type in another type and index it.
    In 9i, you can , but not in the way you've defined it, i.e. you have to create a regular
    table, and have a column of type zonegeo, and make a few other changes, i.e.:
    create or replace type zonegeo as object (
    id integer, definitionGeo MDSYS.SDO_GEOMETRY
    create table essaigeo (zone zonegeo);
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES ('ESSAIGEO','ZONE.DEFINITIONGEO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 47680.000, 1197822.000, 0.005),
    MDSYS.SDO_DIM_ELEMENT('Y', 1620431.000, 2677441.000, 0.005)
    NULL -- SRID
    CREATE INDEX ESSAIGEO_SPATIAL_IDX
    ON ESSAIGEO(ZONE.DEFINITIONGEO)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS ('SDO_LEVEL = 6);

  • BUG ? Create index on a partitioned table drops the complete table !

    Hi ...
    now i had twice the problem when i tried to create a local index (with 2 fields) on a partitioned table .
    I set initrans to 1 and maxtrans to 255 (i know - initrans has to be at least 2).
    I got an error - and the table (including the data) was gone ... :-((
    Has anybody the same behavior and is it a bug ??
    Christian

    See 1.5 Bad bug when creating index fails.
    Have fun,
    K.

  • How to create an object alive all the time on a server side

    Hi,
    I work on an Intranet with J2EE technologies. I need an object to do several tasks in background on the server side. Like start scheduled processes on a database and files, stocked on the server. What is the way to do this. I thought to use the JNDI by declaring the object in the Deployement Descriptor, and to manage a timer within.
    I don't know if this works.
    Anyway, my question is how to create an object on the server that is ALIVE ALL THE TIME and visible by the other objects running in the same VM.
    Thank's.

    This may not be the correct design, but I had success doing the following:
    1. Create an Stateless EJB that does a task, i.e. update a database table.
    2. Create a subclass of java.util.TimerTask to call the EJB methods.
    3. Kick off the TimerTask from a servlet.init method.
    Seems to work pretty well to do scheduled tasks, such as refreshing lookup tables. I would imagine the same could be done with an MBean, but I haven't had time to fully understand JMX yet. (It's on the list).
    As for event driven procedures, that can be done through a servlet interface.
    You may also wish to review a scheduler here: http://www.part.net/quartz.html. Note, I have NOT even looked at it yet, so I have no clue if it's any good. But, it is on my list of tools to evaluate (that's a long list) someday when my head's above water. Have a look, and caveat emptor.
    Hope this helps,
    Perry Tew

  • How can I build a table with the time values of a timer from a while loop

    Hi:
    I have a question concerning building a table:
    Every 100ms I read a value from a sensor (while loop with a timer). I would like to build a table with the actual time and the concerning value. For example:
    0msec         1V
    100msec     2V
    200msec     3V
    300msec     4V
    etc.
    If I use the Express VI for building a table, I always get the date and time, but I don't need the date and the time is in the following format: HH:MMS, which is nonsensical for me as I can't differentiate within msec. Can I change the format anywhere?
    Can I also save the table to a file or even to an Excelsheet? How can I do that?
    Thanks for your help!

    Hi Craig:
    thank you very much. To solve the mystery : ) :
    I want to drive a stepper motor with a specific frequency. To get the current degree value of the motor I would like to measure the current time (from the beginning of the move on). (With a formula I get the degree value out of the time)
    Concurrently I would like to get data from a torque sensor and from a pressure sensor. That's why I asked you about the time and the table. The measurement should start with the movement of the motor. How can I do that? Right now I have different block diagrams (different while loops) (see attachment) and I would like to put them in one.
    I haven't done the block diagram for the pressure sensor yet, so there is only the one for the torque sensor and the one for the motor.
    I also would like to set a mark in the table when the voltage value of an analog input gets under a specific threshold value. Is that possible?
    I'm sorry, I'm a novice in LabVIEW. But maybe you can help me.
    Thank you very much!
    Steffi
    Attachments:
    motor.vi ‏238 KB
    sensor.vi ‏59 KB

  • Updation of tables at the time of saving PO

    HI,
    When I save the Purchase Order with account assignment (K),cost center and G/L account.Then which tables are updated.
    Please suggest the table list.
    Thanks & regards,
    Goraksh Dhikale.

    Check for EKKN i.e. Account Assignment in Purchasing Document
    Also following Tables get updated after creation of PO;
    EKAB     Release Documentation
    EKAN     Vendor Address: Purchasing Document
    EKBE     History per Purchasing Document
    EKBEH    Removed PO History Records
    EKBO     Index of Docs. for Price Determ./Updating, Subsequent Sett.
    EKBZ     History per Purchasing Document: Delivery Costs
    EKBZH    History per Purchasing Document: Delivery Costs
    EKCC     Index Table for CCP Process
    EKEH     Scheduling Agreement Release Documentation
    EKEK     Header Data for Scheduling Agreement Releases
    EKES     Vendor Confirmations
    EKET     Scheduling Agreement Schedule Lines
    EKETH    Scheduling Agreement Schedules: History Tables
    EKKI     Purchasing Condition Index
    EKKN     Account Assignment in Purchasing Document
    EKKO     Purchasing Document Header
    EKPA     Partner Roles in Purchasing
    EKPB     "Material Provided" Item in Purchasing Document (If Subcontracting PO)
    EKPO     Purchasing Document Item
    EKPV     Shipping Data For Stock Transfer of Purchasing Document Item (In case of STO)
    EKRS     ERS Procedure: Goods (Merchandise) Movements to be Invoiced
    EKUB     Index for Stock Transport Orders for Material (In case of STO)
    Note: - Table Names in BOLD are updated after saving PO

  • Ship to record not populated in the CDHDR table at the time of creation

    HI
    I have created the Ship to party in R/3 and automatically i couldnt found the customer number entry with Change object as " I " in the table CDHDR. but ideally all the master data creation entries will be written in the CDHDR table with " I ".
    Please help me out here.
    Helpful answers will be rewarded.
    Regards,
    Ram.

    In that case, try maintaining only the dates in that table and execute.  Once the data is populated, ensure that transaction code is XD01 and not XD02.  Moreover, I am not sure, system will show the creation time there.  May be you can try in KNA1 where also, you can see the creation date but not time.
    As an alternative, execute XD02 for that ship to party where from top menu bar, click on Environment => Account changes => All fields.  Again double click on "Entries", so that system will display the creation and changes made to that customer with date.  Double click on the first record so that system will show when that particular activity was taken place and at what time.
    thanks
    G. Lakshmipathi

  • How to update a table with the time of insert instead of time of commit

    dear,
    i have 10 record at source side which needs to be injected in a target table ;
    the record creation date is injected with the systimestamp -
    when commiting it takes for all the same timestamp for all records( at commit time ) however I would like to insert the timestamp at INSERT moment to have a unique timestamp - id est at INSERT time.
    Can anyone please adviseN?
    Thanks
    Erik
    Edited by: 845498 on 29-aug-2012 1:36

    845498 wrote:
    dear,
    when commiting it takes for all the same timestamp for all records( at commit time ) Not true about commit time. True about same time. Function SYSDATE is always calculated once for SQL statement no matter how many times and for how many rows it is referenced. So when you issue:
    insert
      into target(insert_date)
      select sysdate
        from  source
    /All inserted rows will have same insert_date. Now keep in mind, Oracle date datatype precision is one second. So unless your insert of 10 rows takes more than a second (which would be a problem on its own), date precision will not give you what you want. You would need timestamp. But again, same as SYSDATE, SYSTIMESTAMP is called once per statement. To call it row each row and reference you need to create user-defined function:
    create or replace
      function get_systimestamp
        return timestamp
        is
        begin
            return systimestamp;
    end;
    /Now:
    SQL> select  systimestamp,
      2          get_systimestamp
      3    from  hr.employees
      4  /
    SYSTIMESTAMP                        GET_SYSTIMESTAMP
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.671000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    SYSTIMESTAMP                        GET_SYSTIMESTAMP
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.687000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000
    29-AUG-12 01.55.23.656000 PM -04:00 08/29/2012 13:55:23.765000000.
    .SY.

  • Downloaded version 10, when I log on it wants to restart all the time. It has shut down and restarted at least 10 times and the same message still comes up "Your system has to be rebooted." and when you do the same message comes up?

    Cannot logon to Firefox now that version 10 has been installed. I cannot even delete the program from my system. To delete it gives the same message "Your system has to be rebooted" What is going on?

    Hi Cot230tage,
    Usually the only reason it will ask you to reboot is if there is a file that must be modified that the updater doesn't currently have access to. You should try running the Firefox program once as Administrator:
    * Right-click the icon and choose ''Run as Administrator''
    If that doesn't help then do a clean reinstall.
    # Download a fresh copy of Firefox from the [http://www.mozilla.org/firefox/fx/ Mozilla download page] and save the file to the desktop.
    # [[Uninstalling Firefox|Uninstall]] your current version of Firefox and remove the Firefox program folder before running the new installer.
    # Run installer
    Remember that you don't want to remove personal data when uninstalling. That way you'll still have your personal information.
    Hopefully this helps!

  • 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

  • New Index on 550 Gb table - suggstions please

    Hello friends,
    i have to create a new Index in Oracle 11g db for a table of size around 550GB. please give me your expert suggestions.
    I have checked SAP Note 334224 and plan to do with SQl
    Create the index using SQLPLUS with the following command:
    create index <index name> on <table name> ( <field1, field2, ...> )
    nologging tablespace <tablespace name>
    parallel (degree <number>)
    ..........online;
    questions:
    1. How much Temp tablespace is required for this.
    2. Any suggestions for parallel (degree <number>) parameter.. we have 4 CPU.
    3. Should i use parameter nologging or complete nologging tablespace <tablespace name> ? does it have any problems ? Database is in archivelog mode.. and is it required for complete tablespace ?
    thanks
    ashish

    ashish vikas wrote:
    > 1. How much Temp tablespace is required for this.
    > 2. Any suggestions for parallel (degree <number>) parameter.. we have 4 CPU.
    > 3. Should i use parameter nologging or complete nologging tablespace <tablespace name> ? does it have any problems ? Database is in archivelog mode.. and is it required for complete tablespace ?
    Hi,
    1) I think, when using parallel DDL, it always uses direct path i/o and then it goes directly to temp.
    Never saw anything different when doing this. Always had "direct path write temp" as wait event in ST04 during creation.
    Check the index name on DB level in the development system. If the tablename is long, the activation
    of the transport imported later might change the name to make it fit into the namespace and therefore
    might shorten some names.
    I e. ODS-Table name
    /BIC/ABCD_GH_JKL
    Index 010
    leads to an index name
    /BIC/ABCD_GH_JKL10
    on DB level. It depends on the length of the table name. In this case /BIC/ABCD_GH_JKL~010 would be too long.
    If you plan to import the corresponding transport afterwards, make sure, that the index name fit the one that
    will be generated on DB level. Otherwise you might get an error that this fieldlist is already indexed.
    Keep in mind that allthough you create online, it requires a short exclusive lock to start. Just had that last week.
    My statement waited about 25 minutes in ST04 before it kicked off the PQ slaves.
    2) If you are nearly alone, and your CPUs are speedy,  I'd go parallel 8. This will create 16 PQ slaves for the statement,
    8 beinig busy pumping data to temp, 8 waiting until these are ready and then doing reading temp and writing target.
    If there is activity on the system, 2 or 4 might be a better choice.
    3) NEVER set the TS nologging. But yes, you can use NOLOGGING in the create statement. Check the brrecover docu.
    It is capable of handling NOLOGGING indexes after a restore, but in general it should be avoided,
    esp. if the index is not re-created all the time (as i.e. in BW dataloads).
    Volker
    Oh, and as for the discussion of temp files:
    I thought since oracle 10g you can simply drop empty datafiles and tempfiles.
    So I'd extend PSAPTEMP as needed and simply drop the files back out afterwards.
    Keep in mind these are SPARSE Files that may not use the shown space in the filesystem until utilized!
    I mind I have read somewhere that change of a schema owner is a development request for version 12.
    Edited by: Volker Borowski on Sep 27, 2011 8:23 PM

  • How to implement search help instead of match code objects table in program

    Hi,
    We are now in upgrade process of code remediation ( From 4.6c to EC6.0).
    We have created search helps instead of matchcode object table. This match code object table M_VMVLC has been deleted
    in EC6.0.  And search help VMVLC is available.
    In the program, they have used <M_VMVLC > -<fieldname> i.e. <tablename> - <fieldname> in declaring parameters,
    in the 'into' clause of select statement, in the 'from' clause of select statement, in the 'write' statement.
    I want to know how to replace this matchcode object table with the search help in the program.
    Thanks,
    Abirami.

    Hi,
    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Amit

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

  • 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

Maybe you are looking for

  • Issues with pagination when using Adobe table with Web dynpro for ABAP

    Hi All, I am facing strange issue with table text. I have three cols in table, one is of type Char255 and other two cols are of type string. The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination

  • New OS Needs ALL Updates, Must Install Offline

    I'm new to working in this field and I have just been assigned the task of collecting all updates for Windows 7/2008 R2 into a singular file so that every time we install a fresh OS, we can apply these updates offline. As you can imagine, for securit

  • How to create multiple segments on the target structure of an IDOC

    Hi All    I am working on the Shipment Confirmation Interface( Message Type SHPCON ) which is FILE to IDOC Scenario. I have a segment called E1EDL18 which occurs only once on the target side of the idoc. Now I have to created multiple E1EDl18 segment

  • Lumia 820 Call+SMS Filter

    I have up data to amber but I cannot find call+smsfilter Moderator's note: We have provided a subject-related title to help other forum users easily view and respond to this post.

  • BDC (Background processing in call transaction )

    Frnds how to go for background processing in " call transaction method" We know that " NO display" mode is there but any other method is there in real time. > in session method while data is getting uploaded suddenly server stops then how to upload t