Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_STATS, 10 of 41


GET_SYSTEM_STATS Procedure

This procedure gets system statistics from stattab, or from the dictionary if stattab is null.

Syntax

DBMS_STATS.GET_SYSTEM_STATS (
   status    OUT  VARCHAR2,
   dstart    OUT  DATE,
   dstop     OUT  DATE,
   pname          VARCHAR2,
   pvalue    OUT  NUMBER,
   stattab   IN   VARCHAR2 DEFAULT NULL, 
   statid    IN   VARCHAR2 DEFAULT NULL,
   statown   IN   VARCHAR2 DEFAULT NULL);

Parameters

Table 63-11 GET_SYSTEM_STATS Procedure Parameters
Parameter  Description 
status (OUT)
 

Output is one of the following:

COMPLETED:

AUTOGATHERING:

MANUALGATHERING:

BADSTATS:  

dstart (OUT)
 

Date when statistics gathering started.

If status = MANUALGATHERING, the start date is returned. 

dstop (OUT)
 

Date when statistics gathering stopped.

If status = COMPLETE, the finish date is returned.
If status = AUTOGATHERING, the future finish date is returned.
If status = BADSTATS, the had-to-be-finished-by date is returned.  

pname
 

The parameter name to get, which can have one of the following values: sreadtim (wait time to read single block, in milliseconds); mreadtim (wait time to read a multiblock, in milliseconds); cpuspeed (cycles per second, in millions). 

pvalue
 

The parameter value to get 

stattab
 

Identifier of the user stat table where the statistics will be obtained. If stattab is null, the statistics will be obtained from the dictionary. 

statid
 

Optional identifier associated with the statistics saved in the stattab. 

statown
 

The schema containing stattab, if different from the user's schema. 

Exceptions

ORA-20000: Object does not exist or insufficient privileges.

ORA-20002: Bad user statistics table; may need to be upgraded.

ORA-20003: Unable to gather system statistics.

ORA-20004: Parameter does not exist.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback