Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: system tablespace's extend
Hi,
The idea of the SQL was to show the most recently created objects. Basically, look at the time difference between the rows to see if objects are being created often and/or frequently. Also, if the names appear to be system or application generated (eg, contain numbers or non-alpha characters) then this would be a further clue that you have an automated process generating a lot of new code.
For example, if you saw something like this:
OWNER OBJECT_NAME OBJECT_ID CREATED SCOTT V99999 45645 08/12/2005 06:35:48 SCOTT V99998 42000 08/12/2005 06:34:48 SCOTT V99997 41326 08/12/2005 06:33:48 SCOTT V99996 40546 08/12/2005 06:32:48
Then you can see code is automatically creating views within the SCOTT schema every minute. If this was the case then you'd have to track down the code which is creating these objects. In this case, something like the following:
select * from dba_source where upper(text) like '%CREATE%VIEW%';
might reveal the offending code if they've been nice enough to put the 'CREATE' and 'VIEW' on the same line. Given the state of your DB this query would probably take quite a while.
Hope that helps.
Cheers,
Tim
Hi,
I hava got lots of objects via your sql.and how i can know which object
is the culprit?
> Hi,
>
> This table is used to store PL/SQL and view source code. By chance,
> does your system include a process to dynamically create views or
> PL/SQL objects?
>
> A query like the following may help track down the culprit:
>
> SELECT *
> FROM (SELECT owner
> , object_name
> , object_id
> , created
> FROM dba_objects, (SELECT DISTINCT obj#
> FROM SYS.idl_ub1$)
> WHERE obj# = object_id
> ORDER BY created DESC)
> WHERE ROWNUM < 100;
>
> Cheers,
> Tim
>
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Dec 08 2005 - 05:45:36 CST
![]() |
![]() |