on 03-30-2008 10:48 AM
Hi,
in a BI system just copied I found some invalid object, I post the output of : SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE STATUS = 'INVALID';
/BI0/0400027280
/BI0/0400003010
/BI0/0400018987
/BI0/0400002996
/BI0/0400007708
/BI0/0400031992
/BI0/0400027879
/BI0/0400027880
/BI0/0400027128
/BI0/0400027852
/BI0/0400027853
/BI0/0400027906
/BI0/0400027907
/BI0/0400029629
All obj are PROCEDURE and are in ABAP schema... I try with: alter <object_type> schemaname.<object_name> compile;
withour success ... Oracle see: procedure not found.
Any idea ?
Regards.
Ganimede Dignan.
Oracle 10.2.0.2 patch 17 Win 32.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ganimede,
are you sure that the /BI0/ objects are pl/sql procedures?
> SQL> SELECT OBJECT_NAME, OBJECT_TYPE FROM ALL_OBJECTS WHERE STATUS = 'INVALID';
I think that these objects are temporary BW tables.
If these objects are TABLES .. please take a look at sapnote #648203 and run the report SAP_DROP_TMPTABLES to fix/delete the INVALID objects.
Sapnote #449891 is describing the temp objects and its prefixes.
Regards
Stefan
OBJECT_NAME OBJECT_TYPE
-
-
/BI0/0400027280 PROCEDURE
/BI0/0400003010 PROCEDURE
/BI0/0400018987 PROCEDURE
/BI0/0400002996 PROCEDURE
/BI0/0400007708 PROCEDURE
/BI0/0400031992 PROCEDURE
/BI0/0400027879 PROCEDURE
/BI0/0400027880 PROCEDURE
/BI0/0400027128 PROCEDURE
/BI0/0400027852 PROCEDURE
/BI0/0400027853 PROCEDURE
OBJECT_NAME OBJECT_TYPE
-
-
/BI0/0400027906 PROCEDURE
/BI0/0400027907 PROCEDURE
/BI0/0400029629 PROCEDURE
14 rows selected.
Stefan, i had a diff assumption.
Pls check Note 648203 - Database objects with INVALID status
Before dropping them, find out what type of objects they are, and see if you can scrutinize them to determine why they are not valid.
if they are views, they can be recreated; if such attempts fail, the views may be referencing non-existent rows in the tables they refer to
if they are procedures, they can be recompiled. If they fail to recompile, the code for the procedures should be reviewed.
One way to change the status from invalid to valid is to use the ALTER VIEW statement with the COMPILE option.
The view should be compiled if its status is invalid.
>Try to log in to the database as the database user that owns those invalid objects.
>Do an 'alter procedure <procedure_name> compile;'
>
>If it compiles with warnings/errors, type 'show err' to get more information of what's the compilation trouble.
>
>Regards
>Audun
Hi,
I try with on obecjt:
sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 21 15:14:36 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show error
No errors.
SQL> alter procedure SAPNBU."/BI0/0400018987" compile;
Warning: Procedure altered with compilation errors.
SQL> show err
Errors for PROCEDURE SAPNBU."/BI0/0400018987":
LINE/COL ERROR
----
1/3081 PL/SQL: SQL Statement ignored
1/3093 PL/SQL: ORA-00942: table or view does not exist
1/3241 PL/SQL: SQL Statement ignored
1/4102 PL/SQL: ORA-00942: table or view does not exist
SQL>
Have you got any idea ?
Regards.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.