存储过程
create [or place] procedure_name(
result out char,
param1 type,
param2 type
) as
-- 变量声明
...
begin
-- 操作
...
-- 异常
exception
when other then
-- 操作
...
...
(1) 查询数据库名:SQL> select name from v$database;(2) 查询数据库实例名:SQL> select instance_name from v$instance;(3) 查询数据库服务名:SQL> select value from v$parameter where name='service...