fnd_ldap_wrapper.update_用户异常,而使用fnd_用户\u pkg.UPDATEUSER oracle应用程序api
我们正在尝试使用fnd_user_pkg.UPDATEUSER更新用户,并得到以下错误。API是从自定义过程调用的fnd_ldap_wrapper.update_用户异常,而使用fnd_用户\u pkg.UPDATEUSER oracle应用程序api,oracle,oracle11g,oracle-apps,Oracle,Oracle11g,Oracle Apps,我们正在尝试使用fnd_user_pkg.UPDATEUSER更新用户,并得到以下错误。API是从自定义过程调用的 create or replace procedure change_name as begin fnd_user_pkg.UPDATEUSER ( x_user_name => 'ALDELEON', x_owner => 'CUST', x_description => 'dragonssss' ); END; / SHOW ERRORS;
create or replace procedure change_name as
begin
fnd_user_pkg.UPDATEUSER (
x_user_name => 'ALDELEON',
x_owner => 'CUST',
x_description => 'dragonssss'
);
END;
/
SHOW ERRORS;
SQL> exec change_name
BEGIN change_name; END;
*
ERROR at line 1:
ORA-20001: Unable to update user ALDELEON with userid 5523 for the following
reason: Unabled to call fnd_ldap_wrapper.update_user due to the following
reason:
ORA-20001: Unabled to call fnd_ldap_wrapper.update_user due to the following
reason:
An unexpected error occurred. Please contact your System Administrator.
(USER_NAME=ALDELEON). (USER_NAME=ALDELEON).
ORA-06512: at "APPS.APP_EXCEPTION", line 72
ORA-06512: at "APPS.FND_USER_PKG", line 570
ORA-06512: at "APPS.FND_USER_PKG", line 1811
ORA-06512: at "APPS.CHANGE_NAME", line 4
ORA-06512: at line 1
当从匿名块调用fnd_user_pkg.UPDATEUSER时,对于同一用户,更新正常
begin
fnd_user_pkg.UPDATEUSER (
x_user_name => 'ALDELEON',
x_owner => 'CUST',
x_description => 'dragonssss'
);
END;
请注意,过程和匿名块都是从应用程序架构调用的。该过程也在应用程序模式中编译
是否需要进行设置才能从过程中执行API
我们使用的是Oracle Apps R12.2技术堆栈请尝试以下代码。使用正确的值初始化用户id、责任id和责任应用程序id
create or replace procedure change_name
as
ln_user_id NUMBER := '124';
ln_resp_id NUMBER := '1234';
ln_resp_appl_id NUMBER := '12';
begin
fnd_global.apps_initialize(ln_user_id,ln_resp_id,ln_resp_appl_id);
fnd_user_pkg.UPDATEUSER (
x_user_name => 'ALDELEON',
x_owner => 'CUST',
x_description => 'dragonssss'
);
commit;
EXCEPTION WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE ('Error: '|| sqlerrm);
END;
匿名阻止由相同的用户应用程序执行?是。匿名块由应用程序执行。用户结束日期是否在OID内?您是否尝试在OIDAS中删除此用户的结束日期?