Category Archives: Oracle

Unable to reserve the .lok file for Integrated WebLogic Server (IntegratedWebLogicServer) in Jdeveloper

If you face the error Unable to reserve the .lok file for Integrated WebLogic Serve then the first is you have to kill the process in Task Manager. Open Task Manager & check for java.exe process for higher memory consumption. End the process.

IF above does not help then go to C:\Users\RRA\AppData\Roaming\JDeveloper\system11.\DefaultDomain . Delete the edit.lok file.

This error happens due to JDeveloper closes unexpected without shutting down IntegratedWebLogicServer



Environment Sourcing of Oracle apps in Windows

As most of the DBA’s prefer Linux Environment for Oracle apps. However some due to other support may go to windows. So as a developer perspective they have to navigate to different application which are called as tops for example $AU_TOP. However in windows to access this we have to do a step called Environment Sourcing in windows command to access the top.

So in order to do it. First we have to find out the environment variable file which will be installed during Installation and configuration time.

cd E:\test\testappl

Now once invoked the “envshell.cmd” code then we will be able to access the Application top.

Now try to go to AU_TOP by giving the below command

E:\test\testappl>cd %AU_TOP%

E:\test\testappl>cd %FND_TOP%

Thank you


FRM-92120 Registry.dat is missing

We have changed the IP address of the servers and then we checked in the server the forms was working. But when we checked in the system it was not working. We got a error as shown in the below screenshot.

After I checked the below steps helped me

Step : 1 Clearing Java cache:
Go to Control Panel |Java | General Tab | Temporary Internet Files > Settings…. > Delete Files… A popup with two item should be checked (Applications and Applets and Trace and Logfiles).  Leave the items selected and click OK.

Step : 2 Clearing IE cache:
Go to Tools | Internet Options > in the General tab under Browsing history, select Delete… and delete Temporary Internet files, Cookies and History.


App-Pay-33238: Error PTO_CARRY_OVER_FF Opening Absence Form – system cannot calculate accruals for this date because the employee’s payroll did not exist

As we this error in with our  and when I checked in oracle support I got this document number Doc ID 418621.1


When attempting to access the absence screen the following error occurs as per the below screenshot

APP-PAY-33238 An error has occurred in a user defined
function at line 65 of the formula PTO_PAYROLL_CARRYOVER.
The error text associated with the function call is: The
system cannot calculate accruals for this date because the
employee’s payroll did not exist for the full accrual term…

Please correct the problem with the function call, or
contact your system administrator or support representative.
Steps to Reproduce:
The issue can be reproduced at will with the following steps:

Responsibility: XX HRMS Manager
1. People > Enter and maintain > Other Button
2. Choose the absence option


The payroll period needs to be extended. This is explained in the error message shown.


To implement the solution, please execute the following steps:

1. Go into a HRMS responsibility.

2. Navigate to Payroll > Description.

3. Extend the value in the number of years field as shown in the below screenshot.

4. Retest the issue.

5. Migrate the solution as appropriate to other environments.


Salary Management rollback the proposed Salary

To rollback the proposed salary which has been uploaded by webadi in Salary Management we have to use API to delete the uploaded Records.

So first query the records that has been uploaded in the backend by the below Query

select * from per_pay_proposals where change_date = :p_date;

Once you are sure to remove the records use the below

CURSOR fetch_det
FROM   per_pay_proposals
WHERE   TRUNC (change_date) = trunc(sysdate-73);

l_salary_warning   BOOLEAN;
l_err_msg          VARCHAR2 (500);
FOR i IN fetch_det
hr_maintain_proposal_api.delete_salary_proposal (
p_pay_proposal_id         => i.pay_proposal_id,
p_business_group_id       => i.business_group_id,
p_object_version_number   => i.object_version_number,
p_validate                => FALSE,
p_salary_warning          => l_salary_warning
DBMS_OUTPUT.put_line (
‘Proposal has been Deleted: ‘ || i.pay_proposal_id

l_err_msg := SQLERRM;
DBMS_OUTPUT.put_line (‘Inner Exception: ‘ || l_err_msg);
l_err_msg := SQLERRM
DBMS_OUTPUT.put_line (‘Main Exception: ‘ || l_err_msg);

Adding Sequence in Receipt Number in Oracle Applications by Form Personalization

As we have a good advantage in using oracle apps forms that is easy to customize. I had a requirement to create a sequence number in Receipt number on receivables. So I have followed the below steps while customizing I came through a error by which the seeded functionality was overriding. However i have resolved it, check the below steps for more Information.

Step 1 : Create a function or a package with Sequence Number

As I have created a function and my below sql statement will give the sequence number.

select xxhw_Invoice_status.gen_receipt_sequence_number from dual

Step 2 : Note the Block and the Field that we are going to customize.

Step 3 : Go the Personalize form and add the rules as shown in the screenshot.

Step 4 : After adding the rules and condition add the action as shown in the below screenshot

From the above screenshot the sequence will be added to the value of the


Oracle BI Uploading RPD in 12c

In the previous version we are having provision to upload the RPD in the server whereas in 12c we have to upload rpd via command line

Below is the syntax of the datamodel command


uploadrpd -I <RPDname> [-W <RPDpwd>] -SI <service_instance> -U <cred_username> [-P <cred_password>] [-S <hostname>] [-N <port_number>] [-SSL] [-H]

I specifies the name of the repository that you want to upload.
W is the repository’s password. If you do not supply the password, then you will be prompted for the password when the command is run. For security purposes, Oracle recommends that you include a password in the command only if you are using automated scripting to run the command.
SI specifies the name of the service instance.
U specifies a valid user’s name to be used for Oracle BI EE authentication.
P specifies the password corresponding to the user’s name that you specified for U. If you do not supply the password, then you will be prompted for the password when the command is run. For security purposes, Oracle recommends that you include a password in the command only if you are using automated scripting to run the command.
S specifies the Oracle BI EE host name. Only include this option when you are running the command from a client installation.
N specifies the Oracle BI EE port number. Only include this option when you are running the command from a client installation.
SSL specifies to use SSL to connect to the WebLogic Server to run the command. Only include this option when you are running the command from a client installation.
H displays the usage information and exits the command.


Below is the screenshot and example of my RPD in server.



Delete/End Date Element Entry – HRMS APIs

Below is the script for Deleting Element Entry in HRMS


ld_effective_start_date      date;
ld_effective_end_date       date;
lb_delete_warning             boolean;
ln_element_entry_id          number;
ln_object_version_number number;
ln_assin_id                          number;

lc_element_name       pay_element_types_f.element_name%type := ‘Clothing For Official Mission’;
— lc_emp_num             varchar2(6) := ‘005746’;

cursor c is   select pee.element_entry_id
from per_all_people_f        per
,per_all_assignments_f   paf
,pay_element_entries_f   pee
,pay_element_types_f_tl  petl
,pay_element_types_f     pet
where 1=1– per.employee_number = lc_emp_num
and trunc(sysdate) between per.effective_start_date and per.effective_end_date
and paf.person_id       = per.person_id
and trunc(sysdate) between paf.effective_start_date and paf.effective_end_date
and pee.assignment_id   = paf.assignment_id
and pee.element_type_id = pet.element_type_id
and trunc(sysdate) between pee.effective_start_date and pee.effective_end_date
and petl.element_name   = lc_element_name
and petl.language       = ‘US’
and pet.element_type_id = petl.element_type_id;


/* Date Track modes
DELETE             >> end date element entry
DELETE_NEXT_CHANGE >> delete next changes
FUTURE_CHANGE      >> delete future changes
ZAP                >> completely remove element entry from the database
for i in c loop

dbms_output.put_line(‘Values are element_entry_id’||i.element_entry_id||’ assignment_id ‘||i.assignment_id);
(p_validate                     => false
,p_datetrack_delete_mode        => ‘DELETE’
,p_effective_date               => trunc(sysdate-17)
,p_element_entry_id             => i.element_entry_id
,p_object_version_number        => i.object_version_number
,p_effective_start_date         => ld_effective_start_date
,p_effective_end_date           => ld_effective_end_date
,p_delete_warning               => lb_delete_warning
) ;

end loop;
when others then
dbms_output.put_line(‘Error: ‘||sqlerrm);

How can an element be deleted or end dated in Oracle HRMS Payroll


The element may be deleted if the element has never been processed.

1) Purge the links for may have been created for the element.

How to delete Element Links Procedure

2) if the element has been assigned to an employee, purge it from the employee’s element entries.

How to delete Element Entries Procedure

To purge the links

  •  Navigate: Total Compensation   > Element Link.
  •  Query the element.
    Select the red X icon.
  •  Select Purge.
  •  Save.

To delete or end date an element:

  •  Navigate: Total Compensation  >  Element Description.
  •  Query your element.
  •  Select the red X icon.

Leave a comment for any query.



Query to find the Concurrent Program attached to Responsibility

Below is Query to find the Concurrent Program that has been attached to Responsibility.

SELECT frt.responsibility_name, frg.request_group_name,
FROM fnd_Responsibility fr, fnd_responsibility_tl frt,
fnd_request_groups frg, fnd_request_group_units frgu,
fnd_concurrent_programs_tl fcpt
WHERE frt.responsibility_id = fr.responsibility_id
AND frg.request_group_id = fr.request_group_id
AND frgu.request_group_id = frg.request_group_id
AND fcpt.concurrent_program_id = frgu.request_unit_id
AND fcpt.user_concurrent_program_name = :conc_prg_name
ORDER BY 1,2,3,4