如何使用 SQLPlus 查看 Oracle 存储过程?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7000224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 03:27:25  来源:igfitidea点击:

How to View Oracle Stored Procedure using SQLPlus?

oraclestored-proceduresoracle10gsqlplus

提问by Madam Zu Zu

How can I view the code of a stored procedure using sqlplus for Oracle 10g?

如何使用 sqlplus for Oracle 10g 查看存储过程的代码?

When I type in:

当我输入:

desc daily_update; 

it shows me the parameter, but when I try to do the following:

它向我显示了参数,但是当我尝试执行以下操作时:

select * from all_source where name = 'daily_update';

I get

我得到

no rows selected

未选择任何行

What am I doing wrong?

我究竟做错了什么?

回答by Harrison

check your casing, the name is typically stored in upper case

检查您的大小写,名称通常以大写形式存储

SELECT * FROM all_source WHERE name = 'DAILY_UPDATE' ORDER BY TYPE, LINE;

SELECT * FROM all_source WHERE name = 'DAILY_UPDATE' ORDER BY TYPE, LINE;