Hallo Sina,
zuerst einmal zu den Procedures:
ACCEPT a\_schema PROMPT 'schema : '
SELECT procedure\_name
FROM dba\_objects
WHERE owner = &a\_schema
AND object\_type = 'PROCEDURE'
/
Wenn du dann die Source deiner Procedure benötigst:
SET ECHO OFF
SET FEEDBACK OFF
SET HEADING OFF
SET VERIFY OFF
ACCEPT a\_name PROMPT 'Please enter the objects name : '
ACCEPT a\_schema PROMPT 'schema : '
SET TERMOUT OFF
SPOOL &a\_name.\_source.sql
SELECT 'CREATE OR REPLACE '||text
FROM dba\_source
WHERE name = UPPER('&a\_name')
AND line = 1;
AND owner = &a\_schema
SELECT text
FROM user\_source
WHERE name = UPPER('&a\_name')
AND line \> 1
AND owner = &a\_schema
ORDER BY line;
PROMPT /
SPOOL OFF
SET FEEDBACK ON
SET HEADING ON
SET TERMOUT ON
Da ich derzeit keine Oracleinstanz am Laufen habe, konnte ich die Skripte nicht testen.
Bei Rückfragen einfach nochmal posten.
Gruß der Janus