I have a SP in a package in Oracle 10g. I use Oracle SQL Developer to access the Dbs. How can I rename this SP? One of the solutions is the following command.
create or replace procedure new_procedure_name
as
begin
old_procedure_name;
end;
This was a solution I found on StackOverflow (old post). Also many people suggested that we need to drop and create a new SP. My stuff is in a package and I dont think the above command works there.
Thanks @Ben and @AlejoBrz for taking time to answer my question. This is what a more experienced developer who helped me did. Just go to the package, right click it and compile it, then rename the SP under the Pckg_body to another name, rename the SP under the package, recompile and the name is changed. @AlejoBrz, I was not aware that there is a PCKG and a PCKG_BODy, so I was lost as to why upon right click, I dont get the drop/create option. It occurs only for PCKG and not PCKG_body.