How can i find Oracle Procedure File [message #190503] |
Thu, 31 August 2006 02:11  |
amit.pandey
Messages: 64 Registered: August 2006 Location: Bangalore, India
|
Member |
|
|
Hi All,
Can anybody tell me, how can i find the oracle procedure text.
Actually i've created a procedure in oracle using sql plus. i compiled it successfully. After sometime i want to change some parameters of the same, i don't have any tool and i want to change it from sql*plus only, i'm not using OEM, TOAD etc.
Please let me know if someone has the solution for that.
Thanks in Advance.
Amit
|
|
|
Re: How can i find Oracle Procedure File [message #190505 is a reply to message #190503] |
Thu, 31 August 2006 02:18   |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
Well, in a proper development environment, you'd go to your source control software and get a copy of the procedure code.
You'd then edit the code, compile it into the Db, test the changes, and check the new version back into the source control.
Somehow I'm guessing this isn't the answer you're looking for.
If the only copy of the procedure you've got is in the database then
a) You'd better hope your backups work, or you risk losing everything
b) you can get at the source code with this query:
SELECT text
FROM user_source
WHERE name = <procedure name>
AND type = 'PROCEDURE'
ORDER BY line;
|
|
|
|
|
|
|
Re: How can i find Oracle Procedure File [message #190781 is a reply to message #190522] |
Fri, 01 September 2006 03:36   |
amit.pandey
Messages: 64 Registered: August 2006 Location: Bangalore, India
|
Member |
|
|
Hi,
I tried this
DBMS_METADATA('PROCEDURE','TXN_ADD','SCY') then it throws an error, which i cannot rectify, the error is
ORA-06502 :-PL/SQL: numeric or value error
ORA-31605 :- the following was returned from LpxXSLResetAllVars in routine kuxsResetPa.
Can u help me out.
Thanks & Regards
Amit
|
|
|
|