The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need to call 3 stored procedure at the same time mac4rfree Shell Programming and Scripting 1 03-26-2009 08:40 AM
calling a PL/SQL stored procedure from KSH BlAhEr Shell Programming and Scripting 1 10-09-2007 05:18 AM
Calling MYSQL Stored Procedure? kshelluser Shell Programming and Scripting 3 12-19-2006 09:59 PM
Stored Procedure on NT/SQLServer mayohan Shell Programming and Scripting 3 08-09-2005 05:29 AM
Oracle stored procedure. kamil UNIX for Advanced & Expert Users 2 11-05-2003 01:39 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
justchill justchill is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 11
Question Help with pl/sql stored procedure

Hi,

Can anyone please let me know where to check if a particular stored procedure exists.

If the procedure exists I want to display some message and if the procedure does not exists i want to exit with error message.

checking from dba_objects doesnt help. suprisingly the procedure i created is not available there and i get "no rows selected".
  #2 (permalink)  
Old 2 Weeks Ago
rwuerth rwuerth is offline
Registered User
  
 

Join Date: Jan 2009
Location: Va. Beach
Posts: 64
Seems like Oracle, and in Oracle, the stored procedures are located in user_objects, which means, you should be able to track it down if you have access to dba_objects.

So, if you are not finding what you are looking for there, it probably doesn't exist.

When searching for the object name, test out your search using "like" just in case you spelled something wrong. It happens! ;-)
  #3 (permalink)  
Old 2 Weeks Ago
justchill justchill is offline
Registered User
  
 

Join Date: Oct 2009
Posts: 11
Hey
thanks for your suggestion. Yes ive done mistake.. but not in spelling but in CASE. Shoule have searched my procedure name in uppercase

Also, The same information is available from user_source data dictionary.

thanks anyways.
  #4 (permalink)  
Old 5 Days Ago
brandedfundoo brandedfundoo is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 24
Accessing user_source or all_source is always the preferable location to search if the to-be-searched object is a procedure.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0