Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can a Table be Invalidated?

Re: Can a Table be Invalidated?

From: Maxim Demenko <mdemenko_at_gmail.com>
Date: Sat, 16 Jul 2005 13:12:13 +0200
Message-ID: <dbaq1j$b10$05$1@news.t-online.com>


DA Morgan wrote:
> Jim Smith wrote:
>

>> Would a table which contained an object type whose code wouldn't 
>> compile be classed as invalid?

>
>
> Why are you asking us to tell you the answer to something you could
> determine yourself in 15-20 seconds?

Well, i was a little bit confused about the documentation

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c19depnd.htm#CNCPT119

<quote>
To manage dependencies among schema objects, all of the schema objects in a database have a status.

       Only dependent objects can be invalid. Tables, sequences, and synonyms are always valid.
</quote>

so, i decided to invest that 15 sec ;-) with the result:

SQL> create type test_type as object

   2 (test_att char(20));
   3 /

Typ wurde erstellt.

SQL> create table test_tab of test_type;

Tabelle wurde angelegt.

SQL> alter type test_type add attribute(test_att2 char(10)) invalidate;

Typ wurde geändert.

SQL> select object_name,object_type,status from obj where status = 'INVALID'; OBJECT_NAME OBJECT_TYPE STATUS
--------------- --------------- ---------- TEST_TAB TABLE INVALID SQL> alter table test_tab upgrade;

Tabelle wurde geändert.

SQL> select count(*),status from obj group by status;

   COUNT(*) STATUS
---------- ----------

       1700 VALID SQL> Best regards

Maxim Received on Sat Jul 16 2005 - 06:12:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US