Oracle periodic monitoring 2: user object Status Monitoring

Source: Internet
Author: User

In the process of running Oracle, for various reasons, some objects, such as stored procedures and functions, are as follows:

SQL> select distinct object_type from all_objects;

Object_type
------------------
Cluster
Consumer group
Context
Evaluation Context
Function
Index
Index Partition
Library
Lob
Operator
Package

Package body
Procedure
Queue
Resource plan
Sequence
Synonym
Table
Table Partition
Trigger
Type
Type Body
View

23 rows have been selected.

The status of the above objects is sometimes changed to invalid. If you do not pay attention to the monitoring, it sometimes affects production and use.

SQL> select object_name, object_type, status from all_objects where status = 'invalid ';

You can use the following statements to Monitor Invalid objects of databases or users:

View invalid user objects from dba_objects:

SQL> select object_name, object_type, status from dba_objects where status = 'invalid ';

View invalid user objects from the current user:

SQL> select object_name, object_type, status from user_objects where status = 'invalid ';

If an invalid object is found, it must be implemented in a timely manner. For example, stored procedures, packages, and functions can be re-compiled and views must be re-built!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.