To know the database version :
At times, we can automate some tasks in Oracle Applications such as running a concurrent program, creating a person etc. since the Oracle Applications is a client-server based application, every task we perform using Forms/self service will occur in the context of the user/responsibility. Hence, while performing these tasks from the data base tier, we need to set the application/user/responsibility context in which we are going to perform that particular task. To set this global security context, we need to call fnd_global.apps_initialize api.
The following is a sample call to fnd_global.apps_initialize api, which sets the apps global security context with proper user and responsibility:
fnd_global.APPS_INITIALIZE
(USER_ID => l_user_id — Mode: IN Mandatory: true Data Type: NUMBER
,RESP_ID => l_resp_id — Mode: IN Mandatory: true Data Type: NUMBER
,RESP_APPL_ID => l_resp_appl_id — Mode: IN Mandatory: true Data Type: NUMBER
,SECURITY_GROUP_ID => l_sec_grp_id — Mode: IN Mandatory: false Data Type: NUMBER
,SERVER_ID => l_server_id — Mode: IN Mandatory: false Data Type: NUMBER
);
l_user_id is the user_id in fnd_users table, which will be utilized during the call
l_resp_id is the responsibility id of the user
l_resp_appl_id is the responsibility application id
l_sec_grp_id is the security group id
l_server_id is the server id
l_sec_grp_id and l_server_id are not mandatory and are seldom used.
Gather Statistics:
While processing huge number of records, the system may get exhaustive and the performance decreases due to incorrect statistics in the data base. To avoid this to happen, we need to run ‘Gather Statistics’ regularly.
The following is the pl/sql block which gathers the statistics for an entire schema:
declare
v_st timestamp;
v_end timestamp;
begin
v_st := sysdate;
dbms_output.put_line(v_st);
dbms_stats.gather_schema_stats
(ownname => ‘HR’ — mode: in mandatory: true data type: varchar2
);
v_end := sysdate;
dbms_output.put_line(v_end);
dbms_output.put_line(‘time elapsed’);
dbms_output.put_line(v_end-v_st);
end;
i saw many articles about oracle fusion hcm but this is best information thank you sir, I increase my knowledge when i see this article if you want more information please visit our website.
Oracle Fusion HCM Training in Hyderabad
You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. for more details please visit our website.
Oracle Fusion HCM Technical Training in Hyderabad