Solved

Parse

Posted on 2016-11-15
5
41 Views
Last Modified: 2016-11-17
Thanks
0
Comment
Question by:gs79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

695 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