Home » RDBMS Server » Server Administration » Invalid Table
Invalid Table [message #169538] Thu, 27 April 2006 09:06 Go to next message
kjm0001
Messages: 11
Registered: February 2006
Junior Member
I was trying to do a full db export and discovered some errors referencing exp-00056 and upon further investigation discovered ora-04063 errors on the tables...which I discovered that there was a column with no datatype which shows the table as being invalid after querying dba_objects...If one can not create a table without datatypes then how do these tables exist?
Re: Invalid Table [message #169546 is a reply to message #169538] Thu, 27 April 2006 09:47 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
04063, 00000, "%s has errors"
// *Cause: Attempt to execute a stored procedure or use a view that has
// errors. For stored procedures, the problem could be syntax errors
// or references to other, non-existent procedures. For views,
// the problem could be a reference in the view's defining query to
// a non-existent table.
// Can also be a table which has references to non-existent or
// inaccessible types.
// *Action: Fix the errors and/or create referenced objects as necessary.
It appears that are confused & not understanding what you are seeing.
Re: Invalid Table [message #169577 is a reply to message #169546] Thu, 27 April 2006 11:24 Go to previous messageGo to next message
kjm0001
Messages: 11
Registered: February 2006
Junior Member
i realize what the error means, i wanted to know how the table object could exist if one can not create a table without specifying a datatype...
Re: Invalid Table [message #169580 is a reply to message #169577] Thu, 27 April 2006 11:32 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Please show us something to work with.
>> I discovered that there was a column with no datatype
Post your sql and concerned output.
Re: Invalid Table [message #169582 is a reply to message #169580] Thu, 27 April 2006 11:37 Go to previous messageGo to next message
kjm0001
Messages: 11
Registered: February 2006
Junior Member
QUERY USED:
select a.owner, a.object_name, a.object_type, a.created, a.status, b.column_name, b.data_type
from dba_objects a, (select owner,table_name,column_name, data_type from dba_tab_columns
where data_type is null) b
where object_type = 'TABLE'
and status = 'INVALID'
and a.owner = b.owner
and a.object_name = b.table_name

OUTPUT:
OBJECT_NAME                    OBJECT_TYPE  CREATED   STATUS  COLUMN_NAME   DATA_TYPE
------------------------------ ------------ --------- ------- ------------- ----------
QS_ORDERS_PR_MQTAB             TABLE        12-MAY-02 INVALID USER_DATA
QS_ORDERS_SQTAB                TABLE        12-MAY-02 INVALID USER_DATA
QS_WS_ORDERS_MQTAB             TABLE        12-MAY-02 INVALID USER_DATA
QS_WS_ORDERS_PR_MQTAB          TABLE        12-MAY-02 INVALID USER_DATA
QS_ES_ORDERS_MQTAB             TABLE        12-MAY-02 INVALID USER_DATA
QS_ES_ORDERS_PR_MQTAB          TABLE        12-MAY-02 INVALID USER_DATA
QS_OS_ORDERS_MQTAB             TABLE        12-MAY-02 INVALID USER_DATA
QS_OS_ORDERS_PR_MQTAB          TABLE        12-MAY-02 INVALID USER_DATA
QS_CBADM_ORDERS_MQTAB          TABLE        12-MAY-02 INVALID USER_DATA
QS_CBADM_ORDERS_SQTAB          TABLE        12-MAY-02 INVALID USER_DATA
QS_CS_ORDER_STATUS_QT          TABLE        12-MAY-02 INVALID USER_DATA

[Updated on: Thu, 27 April 2006 11:42] by Moderator

Report message to a moderator

Re: Invalid Table [message #169584 is a reply to message #169538] Thu, 27 April 2006 12:03 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Do you remember what actually the datatype was of column "USER_DATA", if it was any user defined object/type then first check the status of that. Is there anything weird in alert.log?? According to me these should be the first steps to approach this. Also give us the output of "DESC" command on these tables.

Daljit Singh
Re: Invalid Table [message #169588 is a reply to message #169582] Thu, 27 April 2006 12:16 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Just wierd.
If an user defined type is been force dropped, the concerned column should also be dropped. I have no idea what is happening.
Re: Invalid Table [message #169590 is a reply to message #169584] Thu, 27 April 2006 12:18 Go to previous messageGo to next message
kjm0001
Messages: 11
Registered: February 2006
Junior Member
the problem is that, this is one of our test db, so we don't really keep up with it, as far as maintaining the validity of objects and reading the alert log, maintaing backups or archiving...it just happens that the developers now want a copy of the db on another server...i will go ahead and check these steps to see if something shows up...i am guessing that these tables at one time were valid and somehow the column referencing a non-existent datatype did have a datatype...i was just curious as to what might have possibly caused this situation...
Re: Invalid Table [message #169594 is a reply to message #169590] Thu, 27 April 2006 12:25 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
This may be also a different issue.
Are you exporting/importing between versions?
Is your client version( exp version) same as database version?
Could you post the exact message on your export log (first 10 lines and just the concerned error message)

Re: Invalid Table [message #169596 is a reply to message #169594] Thu, 27 April 2006 12:31 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
And, seems these objects that are failing belong to EXAMPLE schema ( one of those optional pre-built demo schemas).
Unless your developers are explicitly worthing this schema, you can ignore this. Just export the schema you want.
Re: Invalid Table [message #169597 is a reply to message #169594] Thu, 27 April 2006 12:36 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
If the object owner is QS, then ***most probably**** it belongs to the demo database SHIPPING.
Just ignore~!. Export only what you want.
Re: Invalid Table [message #169862 is a reply to message #169597] Sat, 29 April 2006 11:36 Go to previous message
kjm0001
Messages: 11
Registered: February 2006
Junior Member
thanks...after looking into it, the tables are part of the demo pkg...will ignore those errors...thanks again
Previous Topic: truncate / drop an on line table
Next Topic: Oracle 9i Win XP Pro SP2 + Time Zone problem
Goto Forum:
  


Current Time: Fri Sep 20 12:28:29 CDT 2024