Showing posts with label EBS. Show all posts
Showing posts with label EBS. Show all posts

May 23, 2026

Changing Oracle Applications User Password Using FNDCPASS – Step-by-Step Guide

As an oracle apps dba , we often need to reset password for apps user in E-Business suite . FNDCPASS is an Oracle E-Business Suite utility used to change application user passwords, Oracle schema passwords, and APPS/APPLSYS passwords while keeping Oracle EBS metadata synchronized.     

 

Steps to change:-

1.      First ensure application is not running or shutdown application by

Invoke application environment from run file system


[oracle@ebstest VIS]$ cd /u01/oracle/VIS/fs1/EBSapps/appl

[oracle@ebstest VIS]$ . APPSVIS_ebstest.env

[oracle@ebstest sql]$ cd $ADMIN_SCRIPTS_HOME

[oracle@ebstest sql]$  ./adstpall.sh



1.      Change the APPLSYS password using

Syntax:- FNDCPASS apps/<appspwd> 0 Y system/<system_manager> SYSTEM APPLSYS <new_apps_passwd>

 

[oracle@ebstest sql]$  FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS apps123#

 



1.      Run autoconfig on appstier

[oracle@ebstest VIS]$ cd /u01/oracle/VIS/fs1/EBSapps/appl

[oracle@ebstest VIS]$ . APPSVIS_ebstest.env

[oracle@ebstest scripts]$ cd $ADMIN_SCRIPTS_HOME

[oracle@ebstest scripts]$ adautocfg.sh

……

……

AutoConfig completed successfully

 



1.      Now start weblogic admin server using following script

[oracle@ebstest scripts]$ pwd

/u01/oracle/VIS/fs1/inst/apps/VIS_ebstest/admin/scripts 

[oracle@ebstest scripts]$ sh adadminsrvctl.sh start

You are running adadminsrvctl.sh version 120.10.12020000.2

 Enter the WebLogic Admin password:

Enter the APPS Schema password:

 


Confirm the admin server running status. Don’t start any other application services.

[oracle@ebstest scripts]$ sh adadminsrvctl.sh status 

You are running adadminsrvctl.sh version 120.10.12020000.2

 Enter the WebLogic Admin password:

Enter the APPS Schema password:

  The AdminServer is running 

adadminsrvctl.sh: exiting with status 0

 adadminsrvctl.sh: check the logfile /u01/oracle/VIS/fs1/inst/apps/VIS_ebstest/logs/appl/admin/log/adadminsrvctl.txt for more information ...

 


1.      Now login to weblogic console from browser


Click on Lock and Edit button



Now under Domain structure, click on services - > Data Sources



Now click on “EBSDataSource”




Now on the page of “Settings of EBSDataSoure” click on connection pool and  provide the changed apps password and save it.






Click on Activate changes.



Start the application services.

[oracle@ebstest appl]$ pwd

/u01/oracle/VIS/fs1/EBSapps/appl

 [oracle@ebstest appl]$ adstrtal.sh

 You are running adstrtal.sh version 120.24.12020000.6

 Enter the APPS username: apps 

Enter the APPS password:

Enter the WebLogic Server password:

….

….

All enabled services for this node are started.

 adstrtal.sh: Exiting with status 0

 


1.      Verify the WLS Datastore changes by doing followings


Log in to WLS Administration Console.

In the Domain Structure tree, expand Services, then select Data Sources.

On the "Summary of JDBC Data Sources" page, select EBSDataSource.

In the "Settings for EBSDataSource" page, select Monitoring > Testing

 



Select "oacore_server1".

 Click Test DataSource

 Look for the message "Test of EBSDataSource on server oacore_server1 was successful".





May 22, 2026

A Real-World Oracle EBS OCI Migration: Why We Picked WebLogic UCM

 

Recently, one of my long-time customers, who has been running Oracle E-Business Suite (EBS R12.2 with Oracle 19c) on-premises for many years, started discussing a long overdue infrastructure refresh. Their existing servers had aged considerably, and continuing with the same setup no longer looked practical.

Since I had worked with them for quite some time, they reached out to discuss possible options and get my thoughts on the best way forward.

One thing was very clear from the beginning that is although they wanted to modernize the environment, they were not keen on maintaining annual support costs (ATS) or investing heavily in upfront licensing again.

After understanding their requirements, I suggested a simpler approach: use Oracle DBCS for hosting the Oracle Database and consider an Oracle WebLogic Suite UCM image for the EBS application tier. This allowed them to move to OCI without the burden of managing separate WebLogic licensing upfront.

Here is how we launched the instance from oci console :-

Login to cloud.oracle.com and click on navigation menu.



In the Search field, type "Oracle WebLogic Suite UCM Image".


Click "Launch instance", and on the top right of  screen, to launch the instance.



Choose the OS version on which the instance would be launched. Click on Launch instance




Select instance name and compartment under which the instance would be launched




If you wish to change the shape of the instance, you can do so by clicking on change shape option. And click on Next.


'' failed to upload. Invalid response: RpcError

In the network section, provide vcn and subnet as per your environment. Ensure vcn and subnet is already created before launching the instance. and click on next.



Since our VM is associated with a private subnet and I chose the option “Automatically assign private ipv4 address” 



In the Add SSH keys region, select Choose generate a pair for me and download the keys.




In the Boot volume section, you can either accept the default volume size or change it if desired.





And Click Create to create your Compute instance.

 

Once the instance is launched, log in to the instance as the opc user via SSH and perform the following steps: Remove the oracle user by entering the following commands:

Remove the oracle user by entering the following commands:

$ sudo userdel -rf oracle

$ sudo usermod --shell /bin/bash root

 

Install the Oracle E-Business Suite RPM using the following command: For Oracle Linux 8 installation, use the following yum command:

$ dnf install oracle-ebs-server-R12-preinstall.x86_64

 

Create the required soft link for the motif library:

sudo ln -s /usr/lib/libXm.so.4 /usr/lib/libXm.so.2

 

Run the following commands to perform required cleanup

$ sudo dnf history redo last

$ sudo dnf remove --duplicates

$ sudo dnf update

   

Use the following commands to remove the content of the

/u01 directory:

[opc@ebs_ucm u01]$

pwd

/u01

[opc@ebs_ucm u01]$

ls -lrt

total 0

drwxrwxr-x. 5 oracle oracle 65 May  22 10:57 zips

drwxrwxr-x. 2 oracle oracle 6 May 22 10:57 logs

$ sudo rm -rf

 

Now our ucm instance is ready for EBS installation or migration. The path is straightforward and same as we perform for any EBS application migration. 

 

Reference: Doc id : 2766854.1



June 9, 2025

How to Recreate the Patch File System in Oracle EBS R12.2 – Step-by-Step Guide


Env details:-

EBS Version: R12.2.5

AD/TXK Delta Patch level: 10

OS : OEL 7.9

Step 1: Source the Run Edition Environment

Before beginning, source the environment of the currently active run edition:

[appltest@testapp ~]$ . /apdata/erp/EBSapps.env run

 

 

  E-Business Suite Environment Information

  ----------------------------------------

  RUN File System           : /apdata/erp/fs2/EBSapps/appl

  PATCH File System         : /apdata/erp/fs1/EBSapps/appl

  Non-Editioned File System : /apdata/erp/fs_ne

 

 

  DB Host: testdb.suprajit.com  Service/SID: TEST

 

 

  Sourcing the RUN File System ...

 

Step 2. Verify Admin Server Status:

[appltest@testapp ~]$ $ADMIN_SCRIPTS_HOME/adadminsrvctl.sh status

 

You are running adadminsrvctl.sh version 120.10.12020000.10

 

Enter the WebLogic Admin password:

Enter the APPS Schema password:

 

 The AdminServer is not running

 

 

If not running, start it:

[appltest@testapp ~]$ $ADMIN_SCRIPTS_HOME/adadminsrvctl.sh start

Enter the WebLogic Admin password:

Enter the APPS Schema password:

Starting WLS Admin Server...

 

 

 

Step 3. Execute Preclone on Apps Tier:

[appltest@testapp ~]$ cd $INST_TOP/admin/scripts

[appltest@testapp scripts]$ perl adpreclone.pl appsTier

 

 

Step 4: Detach Existing Patch Oracle Homes

Navigate to the OUI Binary Directory:

[appltest@testapp scripts]$  cd $FMW_HOME/oracle_common/oui/bin

 

This step is performed from the RUN file-system which will detach oracle_homes on the PATCH file-system

Replace {oracle_home_path} with the actual paths:

Please note that we are removing ORACLE_HOME registered with patch file system only.

 

./runInstaller -detachhome ORACLE_HOME={oracle_home_path} -silent

 

For example:

[appltest@testapp bin]$ ./runInstaller -detachhome ORACLE_HOME=/apdata/erp/fs1/FMW_Home/Oracle_EBS-app1 -silent

 

[appltest@testapp bin]$ ./runInstaller -detachhome ORACLE_HOME=/apdata/erp/fs1/FMW_Home/webtier -silent

 

[appltest@testapp bin]$ ./runInstaller -detachhome ORACLE_HOME=/apdata/erp/fs1/FMW_Home/oracle_common -silent

 

 

Remove the 10.1.2 Oracle Home

[appltest@testapp bin]$ ./runInstaller -removeHome ORACLE_HOME=/apdata/erp/fs1/EBSapps/10.1.2 -silent

 

 

Step 5: Replicate Run File System to Patch File System

Ensure Run Environment is Down (optional but recommended):

[appltest@testapp bin]$ $ADMIN_SCRIPTS_HOME/adstpall.sh

 

 

 

Copy directories from RUN to Patch filesystem

[appltest@testapp bin]$ cd $RUN_BASE

[appltest@testapp fs2]$ pwd

/apdata/erp/fs2

[appltest@testapp fs2]$ ls

EBSapps  FMW_Home  inst

[appltest@testapp fs2]$ cp -r EBSapps /apdata/erp/fs1/

 

Remove Existing FMW_Home in Patch File System:

[appltest@testapp]$  rm -rf /apdata/erp/fs1/FMW_Home

 

Step 6: Disable ebs_logon Trigger

Connect to the Database:

[oratest@testdb ~]$ sqlplus / as sysdba

 

SQL> ALTER TRIGGER system.ebs_logon DISABLE;

 

Trigger altered.

 

Step 7: Configure the Patch File System

Login to application server and open a new termina.

Unset any application environment file

Navigate to Clone Directory:

[appltest@testapp ~]$ cd /apdata/erp/fs1/EBSapps/comn/clone/bin/

[appltest@testapp bin]$ perl adcfgclone.pl appsTier

 

                     Copyright (c) 2002, 2015 Oracle Corporation

                        Redwood Shores, California, USA

 

                        Oracle E-Business Suite Rapid Clone

 

                                 Version 12.2

 

                      adcfgclone Version 120.63.12020000.60

 

                ***********************************************************

                In AD-TXK Delta 7, we recommend you clone the run and patch

                file systems in a single operation using the 'dualfs' option.

                Separate cloning of the run and patch file systems will be deprecated

                ************************************************************

 

Enter the APPS password :

 

Enter the Weblogic AdminServer password :

 

Do you want to add a node (yes/no) [no] :

 

 

Running: Context clone...

 

Log file located at /apdata/erp/fs1/EBSapps/comn/clone/bin/CloneContext_0607140046.log

 

Target System File Edition type [run] : patch

 

Enter the full path of Run File System Context file : /apdata/erp/fs2/inst/apps/TEST_testapp/appl/admin/TEST_testapp.xml

 

Provide the values required for creation of the new APPL_TOP Context file.

 

Target System Fusion Middleware Home set to /apdata/erp/fs1/FMW_Home

 

Target System Web Oracle Home set to /apdata/erp/fs1/FMW_Home/webtier

 

Target System Appl TOP set to /apdata/erp/fs1/EBSapps/appl

 

Target System COMMON TOP set to /apdata/erp/fs1/EBSapps/comn

 

Target System Instance Top set to /apdata/erp/fs1/inst/apps/TEST_testapp

 

Target System Port Pool [0-99] : 21

  

During the prompts:

  • Add a Node: no
  • Run File System Context File: Provide the absolute path.
  • Port Pool: Choose a value different from the run file system (e.g., if run uses 0, patch can use 10).

Step 8: Verify File System Roles

 

[appltest@testapp bin]$ source /apdata/erp/EBSapps.env patch

 

[appltest@testapp bin]$ echo $FILE_EDITION

Patch

 

 

Step 9: Synchronize File Systems Using fs_clone

[appltest@testapp bin]$ source /apdata/erp/EBSapps.env run

 

[appltest@testapp scripts]$ adop phase=fs_clone force=yes

 

 

This step ensures both file systems are in sync.

 

Step 10: Re-enable ebs_logon Trigger

[oratest@testdb admin]$ sqlplus / as sysdba

 

SQL> ALTER TRIGGER system.ebs_logon enable;

 

Conclusion

Recreating the patch file system in Oracle EBS R12.2 is a meticulous process that ensures the integrity and availability of your application. By following these steps diligently, you can maintain a robust environment ready for online patching and minimal downtime.

 

 

 

June 6, 2025

Fixing adcfgclone.pl Failure in EBS R12.2 Due to Registered Oracle Homes

 

Error Message

While running adcfgclone.pl on the application tier run file system during a fresh EBS R12.2 clone, the following error occurred:

Below Oracle Homes are already registered in the inventory:

/apdata/erp/fs2/FMW_Home/Oracle_EBS-app1

/apdata/erp/fs2/FMW_Home/webtier

/apdata/erp/fs2/FMW_Home/oracle_common

 Exiting Cloning...

 Ensure that the above Oracle Homes are unregistered from the inventory "/apdata/oraInventory/ContentsXML/inventory.xml" and re-run adcfgclone.pl script

 

Root Cause

The error is self-explanatory: the listed Oracle Homes are already registered in the Oracle Inventory (inventory.xml), which conflicts with the clone process.

This often happens when:

  • A previous clone attempt was incomplete.
  • The file system was restored or copied from another instance without unregistering Oracle Homes.

 

Solution: Unregister the Oracle Homes

To resolve the issue, you need to unregister the listed Oracle Homes from the global inventory using runInstaller.

🔹 Step-by-Step Instructions

  1. Log in to the application server as the OS user (e.g., appltest).
  2. Navigate to the oui/bin directory under $FMW_HOME:

Login to application server

 

 [appltest@testapp ]$ cd $FMW_HOME/oui/bin

 

In this example, $FMW_HOME is /apdata/erp/fs2/EBSapps/10.1.2

3.      Run the following commands to remove each of the registered homes from inventory:

[appltest@testapp ]$./runInstaller -silent -deinstall REMOVE_HOMES={"/apdata/erp/fs2/FMW_Home/Oracle_EBS-app1"}

 

[appltest@testapp ]$./runInstaller -silent -deinstall REMOVE_HOMES={"/apdata/erp/fs2/FMW_Home/webtier"}

 

[appltest@testapp ]$./runInstaller -silent -deinstall REMOVE_HOMES={"/apdata/erp/fs2/FMW_Home/oracle_common"}

 

Each command will unregister one Oracle Home from the central inventory without actually deleting the directory or binaries.

 

Final Step

After unregistering the Oracle Homes successfully, re-run the Application Tier clone:

[appltest@testapp ] $COMMON_TOP/clone/bin/adcfgclone.pl appsTier

 

This time, the script should proceed without encountering the registration error.

May 14, 2025

LsInventorySession failed: Oracle Home inventory cannot be loaded.

Error:-

LsInventorySession failed: Oracle Home inventory cannot be loaded.

 

Recently , while trying to get output from opatch lsinventory we faced following error.

[oratest@non-prod-db OPatch]$ ./opatch lsinventory

Oracle Interim Patch Installer version 12.1.0.1.10

Copyright (c) 2025, Oracle Corporation.  All rights reserved.

 

 

Oracle Home       : /dbtest/dbdata/erp/12.1.0

Central Inventory : /dbtest/dbdata/oraInventory

   from           : /dbtest/dbdata/erp/12.1.0/oraInst.loc

OPatch version    : 12.1.0.1.10

OUI version       : 12.1.0.2.0

Log file location : /dbtest/dbdata/erp/12.1.0/cfgtoollogs/opatch/opatch2025-05-14_14-03-27PM_1.log

 

List of Homes on this system:

 

Inventory load failed... OPatch cannot load inventory for the given Oracle Home.

Possible causes are:

   Oracle Home dir. path does not exist in Central Inventory

   Oracle Home is a symbolic link

   Oracle Home inventory is corrupted

LsInventorySession failed: Oracle Home inventory cannot be loaded.

 

OPatch failed with error code 73

 

The Common Causes of above issues are

  1. Oracle Home is not registered in the Central Inventory
  2. Corrupt or missing inventory.xml
  3. Oracle Home is a symbolic link
  4. File permissions issues
  5. Incorrect oraInst.loc path or content

 

 

 

 

Verify oraInst.loc

Check the content of the file:

[oratest@non-prod-db OPatch]$ cat /dbtest/dbdata/erp/12.1.0/oraInst.loc

inventory_loc=/dbtest/dbdata/oraInventory

inst_group=oinstall

 

So the content of oraInst.loc looks fine and pointing to correct Central Inventory directory which actually exists and accessible.

 

Check for the Inventory File

[oratest@non-prod-db OPatch]$ ls -l /dbtest/dbdata/oraInventory/ContentsXML/inventory.xml

ls: cannot access /dbtest/dbdata/oraInventory/ContentsXML/inventory.xml: No such file or directory

 

So while checking the inventory.xml we found that the file is missing. which confirms the central inventory is broken or uninitialized, which is why opatch lsinventory is failing.

 

We will need to re-register Oracle Home with the central inventory using the runInstaller tool.

·         Backup Inventory Directory (Optional but Recommended)

$mv /dbtest/dbdata/oraInventory /dbtest/dbdata/oraInventory_backup_$(date +%Y%m%d)

 

·         Create a Fresh Inventory Directory:-

mkdir -p /dbtest/dbdata/oraInventory/ContentsXML

chown -R oratest:oinstall /dbtest/dbdata/oraInventory

chmod -R 775 /dbtest/dbdata/oraInventory

 

·         Re-register the Oracle Home

[oratest@non-prod-db OPatch]$ /dbtest/dbdata/erp/12.1.0/oui/bin/runInstaller -silent -attachHome ORACLE_HOME="/dbtest/dbdata/erp/12.1.0" ORACLE_HOME_NAME="OraHome1"

Starting Oracle Universal Installer...

 

Checking swap space: must be greater than 500 MB.   Actual 32700 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'AttachHome' was successful.

 

Now , lets try opatch lsinventory

[oratest@non-prod-db OPatch]$ ./opatch lsinventory

Oracle Interim Patch Installer version 12.1.0.1.10

Copyright (c) 2025, Oracle Corporation.  All rights reserved.

 

Oracle Home       : /dbtest/dbdata/erp/12.1.0

Central Inventory : /dbtest/dbdata/oraInventory

   from           : /dbtest/dbdata/erp/12.1.0/oraInst.loc

OPatch version    : 12.1.0.1.10

OUI version       : 12.1.0.2.0

Log file location : /dbtest/dbdata/erp/12.1.0/cfgtoollogs/opatch/opatch2025-05-14_14-08-28PM_1.log

 

Lsinventory Output file location : /dbtest/dbdata/erp/12.1.0/cfgtoollogs/opatch/lsinv/lsinventory2025-05-14_14-08-28PM.txt

 

--------------------------------------------------------------------------------

Local Machine Information::

Hostname: non-prod-db.com

ARU platform id: 226

ARU platform description:: Linux x86-64

 Installed Top-level Products (2):

 

Oracle Database 12c                                                  12.1.0.2.0

Oracle Database 12c Examples                                         12.1.0.2.0

There are 2 products installed in this Oracle Home.

 

 Interim patches (35) :

 

Patch  25305405     : applied on Tue Feb 13 16:12:11 IST 2018

Unique Patch ID:  21701443

   Created on 9 Nov 2017, 03:39:35 hrs PST8PDT

   Bugs fixed:

     25305405

 

Patch  25906117     : applied on Tue Feb 13 16:05:01 IST 2018

Unique Patch ID:  21296770

   Created on 26 May 2017, 03:18:37 hrs PST8PDT

   Bugs fixed:

     25906117

 

--------------------------------------------------------------------------------

 

OPatch succeeded.

 

So, this is how issue was resolved.


Oracle Database 26ai Installation Using RPM on Oracle Linux 9 (OEL 9) – Step-by-Step Guide

  In this post I will describe the installation of Oracle Database 26ai 64-bit on Oracle Linux 9 (OL8) 64-bit. The installation requires a m...