Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete procedure or function from Package

Suppose you create a package in Oracle 10g and has defined a procedure and a function inside the package. Now, How to delete a particular procedure or function in the package created, without physically DROPPING the package?? i.e. without using DROP PACKAGE package_name

I was wondering if i could actually perform the above action. Thank you in advance for any suggestions and solutions.

like image 331
Rishu Shrivastava Avatar asked Mar 09 '12 09:03

Rishu Shrivastava


1 Answers

Since all objects in a package are stored as a unit, Oracle won't allow you to modify, drop or add packages or functions without replacing the whole package body.

You can find some discussion on the subject at the Oracle forums.

like image 68
Joachim Isaksson Avatar answered Sep 17 '22 08:09

Joachim Isaksson