Solved

Parse

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now