The following query adds the System Administrator (SYSADMIN) responsibility to a user. The query needs to be run by APPS.
In the following example, I used 'AMOHSIN' as my username.
-------------------------------------------------------------------------------
-- Query to add SYSADMIN responsibility to a user, using
FND_USER_PKG.ADDRESP
-------------------------------------------------------------------------------
BEGIN
FND_USER_PKG.ADDRESP(
USERNAME => 'AMOHSIN', -- User Name -- <change it>
RESP_APP =>
'SYSADMIN', -- Apps Short Name
RESP_KEY =>
'SYSTEM_ADMINISTRATOR', -- Responsibility Key
SECURITY_GROUP => 'STANDARD',
DESCRIPTION =>
NULL,
START_DATE =>
SYSDATE,
END_DATE =>
NULL);
COMMIT;
DBMS_OUTPUT.PUT_LINE('SYSADMIN Responsibility successfully added');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('SYSADMIN responsibility not added due to ' || SQLERRM);
ROLLBACK;
END;
1 comment:
My spouse and I love your blog and find almost all of your posts to be just what I’m looking for. Appreciating the persistence you put into your blog and the detailed information you provide. I found another one blog like you Oracle Cloud Infrastructure .Actually I was looking for the same information on internet for Oracle Cloud Infrastructure and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.
Post a Comment