The below scripts is for creating FND User using standard oracle API.
-- ****************************************************************
-- Filename - CreateFndser.sql
-- Purpose - Script to create fnd user
-- Module - System Administrator
-- ****************************************************************
DECLARE
l_user_name VARCHAR2(100) := 'TestUser;
l_user_password VARCHAR2(100) := 'Oracle123';
l_user_start_date DATE := TO_DATE('01-JAN-2012');
l_user_end_date VARCHAR2(100) := NULL;
l_password_date VARCHAR2(100) := TO_DATE(''01-JAN-2012');
l_password_lifespan_days NUMBER := 70;
l_person_id NUMBER := 21855;
l_email_address VARCHAR2(100) := 'TestUser@test.com';
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
END;
/
-- ****************************************************************
-- Filename - CreateFndser.sql
-- Purpose - Script to create fnd user
-- Module - System Administrator
-- ****************************************************************
DECLARE
l_user_name VARCHAR2(100) := 'TestUser;
l_user_password VARCHAR2(100) := 'Oracle123';
l_user_start_date DATE := TO_DATE('01-JAN-2012');
l_user_end_date VARCHAR2(100) := NULL;
l_password_date VARCHAR2(100) := TO_DATE(''01-JAN-2012');
l_password_lifespan_days NUMBER := 70;
l_person_id NUMBER := 21855;
l_email_address VARCHAR2(100) := 'TestUser@test.com';
BEGIN
fnd_user_pkg.createuser
( x_user_name => l_user_name,
x_owner => NULL,
x_unencrypted_password => l_user_password,
x_start_date => l_user_start_date,
x_end_date => l_user_end_date,
x_password_date => l_password_date,
x_password_lifespan_days => l_password_lifespan_days,
x_employee_id => l_person_id
);
COMMIT;
fnd_user_pkg.createuser
( x_user_name => l_user_name,
x_owner => NULL,
x_unencrypted_password => l_user_password,
x_start_date => l_user_start_date,
x_end_date => l_user_end_date,
x_password_date => l_password_date,
x_password_lifespan_days => l_password_lifespan_days,
x_employee_id => l_person_id
);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
DBMS_OUTPUT.PUT_LINE(SQLERRM);
END;
/
All given info was wonderful and it's very helpful for everyone.It's impressive that you are getting thoughts from this Blog.
ReplyDeleteOracle Fusion financial