Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Oracle, is there a query to find whether a function exists?

Tags:

sql

sqlplus

Suppose that I want to find out whether a function called PERIOD_DIFF exists in Oracle SQL.

Is there a way to do so via SQL*Plus , running a query ?

like image 739
Caffeinated Avatar asked Nov 24 '25 07:11

Caffeinated


1 Answers

You can try one of these. user_source dba_source all_source

For example if you have access to dba_source, you can try something like this

 SELECT name from dba_source where type = 'FUNCTION' AND name LIKE '%PERIOD_DIFF%'/
like image 195
Arun Avatar answered Nov 25 '25 21:11

Arun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!