Tuesday, 22 January 2019

PL/Sql script to add System Administrator responsibility


PL/Sql script to add System Administrator responsibility
--------------------------------------------------------------------------------------------------

BEGIN
   fnd_user_pkg.addresp (username         => UPPER ('ramprasath'),
                         resp_app         => 'SYSADMIN',
                         resp_key         => 'SYSTEM_ADMINISTRATOR',
                         security_group   => 'STANDARD',
                         description      => 'DESCRIPTION',
                         start_date       => SYSDATE,
                         end_date         => NULL);
   COMMIT;
   DBMS_OUTPUT.put_line ('Responsibility Added Successfully');
EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.put_line(   'Responsibility is not added due to'
                           || SQLCODE
                           || SUBSTR (SQLERRM, 1, 100));
      ROLLBACK;
END;
/

No comments:

Post a Comment