版本:Tested on R12.0.6/R12.1.1
注意:请根据具体环境调整GUEST用户密码,默认情况都是ORACLE。 GUEST用户的密码可以在$CONTEXT_FILE文件中找到:
view $CONTEXT_FILE
51 <oa_user type="GUEST">
52 <username oa_var="s_guest_user">GUEST</username>
53 <password oa_var="s_guest_pass">ORACLE</password>
54 </oa_user>
用法:编译package,调用函数即可。
CREATE OR REPLACE PACKAGE apps.xxdba_fnd_security
AUTHID CURRENT_USER
AS
-- guest login can be retrieved from profile GUEST_USER_PWD(Guest User Password) or $CONTEXT_FILE
FUNCTION get_user_pass (p_fnd_user IN VARCHAR2
,p_guest_login IN VARCHAR2 DEFAULT 'GUEST/ORACLE')
RETURN VARCHAR2;
FUNCTION get_apps_pass (p_guest_login IN VARCHAR2 DEFAULT