Beejartha

Categories
ORACLE E-BUSINESS SUITE (EBS)

Change Schema Account Passwords

Introduction

The Oracle E-Business Suite provides a command line utility, AFPASSWD, to change passwords for E-Business Suite schema accounts.

E-Business Suite schema accounts are those database accounts related to and used by an application. For example, there are database accounts for each individual product provided within E-Business Suite (AR, AP, GL, etc.). There are also special database accounts for shared components (APPS, APPLSYS, APPS_NE).

These accounts have an entry in the FND_ORACLE_USERID and FND_USER tables. Because of this you cannot change their passwords like an ordinary database account. In other words, do not use the “alter user … identified by …” command to change the passwords of these accounts.

Also note that you cannot use AFPASSWD to change the passwords of normal database accounts (SYS, SYSTEM, SCOTT, etc.).

Change a Schema Account Password

Use this command to change the password of one schema account provided by Oracle E-Business Suite products (AR, AP, BEN, GL, PAY, etc.).

Step 1: Source the Applications Run environment

As the applmgr user

unix> . /opt/app/oracle/apps/EBSapps.env run

Step 2: Backup the FND_USER and FND_ORACLE_USERID tables

As the applmgr user

unix> sqlplus apps
SQL>create table FND_USER_BACKUP as select * from FND_USER;
SQL>create table FND_ORACLE_USERID_BACKUP as select * from FND_ORACLE_USERID;
SQL>exit;

Step 3: Change the password with the AFPASSWD utility

As the applmgr user

unix> AFPASSWD -o <SCHEMA_ACCOUNT_NAME>

Answer prompts as shown below

Enter the ORACLE password of Application Object Library 'APPSUSER':<Enter the current APPS password>
Enter the password for your 'SYSTEM' ORACLE schema: <Enter the current SYSTEM password>
Enter new password for user: <Enter the new APPS password>
Verify new password for user: <Enter the new APPS password>

Change All Schema Accounts Passwords

Use this command to change the passwords of ALL schemas provided by Oracle E-Business Suite products (AR, AP, BEN, GL, PAY, etc).

Step 1: Source the Applications Run environment

As the applmgr user

unix> . /opt/app/oracle/apps/EBSapps.env run

Step 2: Backup the FND_USER and FND_ORACLE_USERID tables

As the applmgr user

unix> sqlplus apps
SQL>create table FND_USER_BACKUP as select * from FND_USER;
SQL>create table FND_ORACLE_USERID_BACKUP as select * from FND_ORACLE_USERID;
SQL>exit;

Step 3: Change the password with the AFPASSWD utility

As the applmgr user

unix> AFPASSWD -a
Answer prompts as shown below
Enter the ORACLE password of Application Object Library 'APPSUSER': <Enter the current APPS password>
Enter the password for your 'SYSTEM' ORACLE schema: <Enter the current SYSTEM password>
Enter new password for user: <Enter the new APPS password>
Verify new password for user: <Enter the new APPS password>

Change the APPS Schema Account Password

Perform the following stepsto change the password for the APPS schema. Note:

  • Passwords for the APPS, APPLSYS, and APPS_NE schemas must be the same
  • AFPASSWD will automatically synchronize the passwords for all three accounts
  • The Applications tier will need to be shut down
  • You must change APPS password in the Oracle WebLogic Server

Step 1: Source the Applications Run environment

As the applmgr user

unix> . /opt/app/oracle/apps/EBSapps.env run

Step 2: Backup the FND_USER and FND_ORACLE_USERID tables

As the applmgr user

unix> sqlplus apps
SQL>create table FND_USER_BACKUP as select * from FND_USER;
SQL>create table FND_ORACLE_USERID_BACKUP as select * from FND_ORACLE_USERID;
SQL>exit;

Step 3: Shutdown the Applications tier

As the applmgr user

unix> $INST_TOP/admin/scripts/adstpall.sh

Step 4: Change the APPS/APPLSYS/APPS_NE password

As the applmgr user

unix> AFPASSWD -s APPS
Answer prompts as shown below
Enter the ORACLE password of Application Object Library 'APPSUSER': <Enter the current APPS password>
Enter the password for your 'SYSTEM' ORACLE schema: <Enter the current SYSTEM password> 
Enter new password for user: <Enter the new APPS password>
Verify new password for user: <Enter the new APPS password>

Step 5: Run AutoConfig on the database tier

As the oracle use

unix> $ORACLE_HOME/appsutil/scripts//adautocfg.sh
Answer prompts as shown below
Enter the APPS user password: <Enter the new APPS password>

Step 6: Run AutoConfig on the application tier

As the applmgr user

unix> $INST_TOP/admin/scripts/adautocfg.sh
Answer prompts as shown below
Enter the APPS user password: <Enter the new APPS password>

Step 7: Start the WebLogic Administration Server

As the applmgr user

unix> $INST_TOP/admin/scripts/adadminsrvctl.sh start
Answer prompts as shown below
Enter the WebLogic Admin password: <Enter the current WEBLOGIC password>
Enter the APPS Schema password: <Enter the new APPS password>

Step 8: Change the APPS password in WebLogic Data Source and ISG Data Source

Connect to the WebLogic Server Administration Console and log in as the weblogic user

 

Click Lock & Edit in the Change Center

 

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

On the Summary of JDBC Data Sources page, select EBSDataSource

On the Settings for EBSDataSource page, select the Connection Pool tab

Enter the new APPS password in the Password field

Enter the new APPS password in the Confirm Password field

Click Save

 

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

On the Summary of JDBC Data Sources page, select OAEADatasource

On the Settings for OAEADatasource page, select the Connection Pool tab

Enter the new APPS password in the Password field

Enter the new APPS password in the Confirm Password field

Click Save

 

Click Activate Changes in Change Center

Log out of the WebLogic Service Administration Console

Step 9: Start the Application Tier

As the applmgr user

unix> $INST_TOP/admin/scripts/adstrtal.sh
Answer prompts as shown below
Enter the APPS username: apps
Enter the APPS password: <Enter the new APPS password>
Enter the WebLogic Server password: <Enter the current WEBLOGIC password>

Categories
ORACLE E-BUSINESS SUITE (EBS)

Downloading RTF Files

XDOLoader is an Oracle E-Business Suite tool you can use to upload/download RTF files in XML Publisher.

To download an RTFfile, you would use the following command:


unix>javaoracle.apps.xdo.oa.util.XDOLoader DOWNLOAD \
-DB_USERNAME <username> \
-DB_PASSWORD <password> \
-JDBC_CONNECTION <jdbc_connect> \
-LOB_TYPE <lob_type> \
-APPS_SHORT_NAME <application_short_name> \
-LOB_CODE <lob_code> \
-LANGUAGE <language>

Suppose you have a custom template called BEEJARTHA in the DEVL database on the ebs.beejartha.com server. You could download it with the following command:


unix>javaoracle.apps.xdo.oa.util.XDOLoader DOWNLOAD \
-DB_USERNAME apps \
-DB_PASSWORD appspass \
-JDBC_CONNECTION ebs.beejartha.com:1521:DEVL \
-LOB_TYPE TEMPLATE \
-APPS_SHORT_NAME XXCUS \
-LOB_CODE BEEJARTHA \
-LANGUAGE en

If you would like to get a list of all custom templatesto download you can do the following:


unix>sqlplus apps/appspass@DEVL
SQL> select lob_code
from xdo_lobs
where lob_type = 'TEMPLATE_SOURCE'
and application_short_name = 'XXCUS';

We needed to download all our custom templates so we created this script:


#!/bin/sh
#
# Find custom templates in the XXCUS application.
#
TEMPLATES=$(sqlplus -s /nolog<< SQL_BLOCK
connect apps/appspass@DEVL
set echo off feedback off heading off pagesize 0 trimspool on
select lob_code
from xdo_lobs
where lob_type = 'TEMPLATE_SOURCE'
and application_short_name = 'XXCUS';
exit;
SQL_BLOCK
)
#
# Loop through list and download template.
#
TEMPLATES=$(echo $TEMPLATES | sed s/"Connected."//)
for TEMPLATE in ${TEMPLATES[0]}
do
echo
echo "-------------------- $TEMPLATE --------------------"
echo
java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD \
-DB_USERNAME apps \
-DB_PASSWORD appspass \
-JDBC_CONNECTION ebs.beejartha.com:1521:DEVL \
-LOB_TYPE TEMPLATE \
-APPS_SHORT_NAME XXCUS \
-LOB_CODE $TEMPLATE \
-LANGUAGE en
done

Categories
ORACLE E-BUSINESS SUITE (EBS)

Connecting To Oracle Multitenant Database

Oracle E-Business Suite Release 12.2.3 (and later) with Oracle 19c supports a multitenant architecture. Specifically, this is a single CDB (Container Database) containing a single PDB (Pluggable Database) in EBS.

Connecting to the CDB as SYSDBA is pretty much the same. Connecting to the PDB requires an extra step.

The following are examples of how to connect to your CDB/PDB as SYSDBA on a Linux host.

Connect to the E-Business Suite CDB as SYSDBA

To connect to the CDB using SQL*Plus, you first need to source the CDB environment file.


unix> source $ORACLE_HOME/_.env
unix> sqlplus sys as sysdba

You can confirm your connection with the following command:


SQL> show con_name

You will see the following if you are connected to the CDB:


CON_NAME
--------------------
CDB$ROOT

Connect to the E-Business Suite PDB as SYSDBA

To connect to the PDB using SQL*Plus, you first need to source the CDB environment file and set the ORACLE_PDB_SID environment variable:


unix> source $ORACLE_HOME/CDB_NAME>_.env
unix> export ORACLE_PDB_SID=
unix> sqlplus sys as sysdba

You can confirm your connection with the following command:


SQL> show con_name

You will see the following if you are connected to the PDB:


CON_NAME
--------------------

Research references:
Categories
Oracle Integrated SOA Gateway

Setting up REST on EBS

Oracle E-Business Suite (Release 12.2) provides REST based web services. Below is a quick summary of the setup tasks you need to do.

For detailed information see the following My Oracle Support document:
Installing Oracle E-Business Suite Integrated SOA Gateway, Release 12.2 (Doc ID1311068.1)

Of course, Oracle recommends you are running on the latest AD and TXK releases. Check the note above for any additional patches you may need to install first.

Part 1: Configure EBS for REST Services

Step 1: Source the run file system

unix> source /EBSapps.env run

Step 2: Setup REST

unix> perl $FND_TOP/patch/115/bin/ISGRestSetup.pl

When prompted, enter the APPS username and password
When prompted, enter the WebLogic username and password

Step 3: Copy REST configuration to the patch file system

unix> adop phase=fs_clone

Part 2: Validate setup using backend script

Step 1: Source the run file system

unix> source /EBSapps.env run

Step 2: Run this command and check for errors

unix> ant -f $JAVA_TOP/oracle/apps/fnd/isg/ant/isgDesigner.xml
-Dfile=$JAVA_TOP/oracle/apps/fnd/isg/ant/isg_service.xml -Dverbose=OFF

Check for any errors in the reports created. Reports are located at:

$JAVA_TOP/oracle/apps/fnd/isg/ant

Step 3: Access EBS applications

Use your browser to go to the following URL:

http(s)://:/webservices/rest/provider/isActive/

When prompted, enter the username and password for an EBS administration user. You should then see the following in your browser:

<?xml version = '1.0' encoding = 'UTF-8'?>
<isActive_Output>
<OutputParameters>
<Output>ACTIVE </Output>
...
</OutputParameters>
</isActive_Output>