Question

IFS database has 4 Invalid Views

  • 13 September 2021
  • 7 replies
  • 187 views

Userlevel 2
Badge +3

I have had a message stating that ‘IFS database has 4 Invalid Views’

 

How to i find what these invalid views are?

i am currently using IFS 7.5 SP6


This topic has been closed for comments

7 replies

Userlevel 6
Badge +12

HI MickCOI,

 

If you have plsql developer try the following.

Log into the database via plsql developer

In the menu tools select Compile invalid objects.

 

 

 

This should show you the invalid views.

 

Regards,

Sahan

Userlevel 2
Badge +3

I have done this but it does not tell me the invalid views it just compiles the objects

Userlevel 6
Badge +12

I have done this but it does not tell me the invalid views it just compiles the objects

It doesn’t show you any invalid objects is it? this is a example if you have invalids in the database.

when did you receive the message installing a delivery?

Userlevel 2
Badge +3

silly question but does this resolve any issue with ‘invalid bodies’ also?

Userlevel 5
Badge +6

silly question but does this resolve any issue with ‘invalid bodies’ also?

Hi @MickCOl,

If the bodies are invalid, they’ll also appear in the “compile Invalid Object” window. To answer your questions, yes, recompiling will should ideally resolve all invalids, including package bodies.

 

Userlevel 7
Badge +18

It’s worth asking (1) why objects are becoming invalid and (2) whether those invalidations are actually causing you trouble.

 

You might want to check out this other thread:

I want to run invalid packages periodically with DBMS task. | IFS Community

Userlevel 6
Badge +18

I have done this but it does not tell me the invalid views it just compiles the objects

Hi,

This query can be run (as Oracle SYS user) against the DB to get list of invalid objects in the App Owner schema:

SELECT owner, object_type, object_name
FROM all_objects
WHERE status = 'INVALID'
AND owner = '<APPOWNER>';

Compile invalid objects will compile all the objects. The objects may still be invalid if there are any ORA- errors and you can check associated errors by compiling each invalid object from the above list.