Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Can a Table be Invalidated?
DA Morgan wrote:
> Jim Smith wrote:
>
>> Would a table which contained an object type whose code wouldn't >> compile be classed as invalid?
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
![]() |
![]() |