Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查当前安装在我的系统中的 oracle DB 中的功能是否有效
像这样
select * from dual where function_name = 'sum'
SELECT status FROM all_objects WHERE object_name = 'MYFUNCTIONNAME' AND object_type = 'FUNCTION';
替换MYFUNCTIONNAME为您要检查的函数的名称。这将返回VALID或INVALID。如果该函数对当前用户不可见,它将不返回任何行。
MYFUNCTIONNAME
VALID
INVALID