I want to export my procedures,functions,packages only and import them on other box. Can any one help me how to do this? this is most urgent please. My OS is linux 7.1 and oracle9.0.1
Hi Shestakov,
Thanks a lot for your reply. But i've got near about 150 procedures,packages,functions in all. If there are 1 or 2 ..10, i think then we can use this DBMS_METADATA. For this huge numbers, isn't it a cumbersome task. Please advice me.
How many owners u have.
U can write programm script that generate script for unload store objects like:
spool unload_store.sql
select 'dbms_metadata.....(' ||owner||'.'||object_name||');'
from all_objects where owner = 'UR_OWNER'
and object_type in ('PACKAGE','PACKAGE BODY','PROCEDURE','FUNKTION');
If you are going to use DBMS_METADATA.GET_DDL() function you won't be able to get the code of your package bodies, only package specifications. At least I couldn't make it work with OBJECT_TYPE => 'PACKAGE BODY'.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
CREATE OR REPLACE PACKAGE "TRAIN"."ABC" is
function f(a number) return number;
end;
CREATE OR REPLACE PACKAGE BODY "TRAIN"."ABC" is
function f(a number) return number is
begin
return 1;
end;
end;
Bookmarks