Solved

Parse

Posted on 2016-11-15
5
32 Views
Last Modified: 2016-11-17
Thanks
0
Comment
Question by:gs79
  • 2
5 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 250 total points
ID: 41888534
you can search for object dependencies with

select * from dba_dependencies where referenced_name = 'UTL_MAIL'

or, if you want to read the code

select * from dba_source where upper(text)  like '%UTL_MAIL%'
0
 
LVL 32

Assisted Solution

by:awking00
awking00 earned 250 total points
ID: 41888556
Something along the following lines might do it -
declare
v_sql varchar2(255);
v_name varchar2(30);
begin
for o in
(select distinct object_name name
 from dba_objects
 where object_type in
 ('FUNCTION','PROCEDURE','PACKAGE BODY')
 and status = 'VALID'
)
loop
v_sql := 'select '||o.name||' from da_source where text like ''%utl_smpt%'' ';
execute immediate v_sql into v_name;
dbms_output.put_line(v_name);
end loop;
end;
/
You will probably need to add some other filters to the select statement to eliminate unwanted or unnecessary objects (e.g where owner = 'SYSTEM').
0
 
LVL 32

Expert Comment

by:awking00
ID: 41888559
Typo - da_source should be dba_source
0
 

Author Comment

by:gs79
ID: 41888995
ok..i had figured out the solution which was by querying all source table.I wanted to delete it since since the tool gives an option to delete before any response is posted. Since i didnt find that optionni thought mods would come along and delete it. Anyway since its been answered, i will award the points.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question