Sunday, February 11, 2024

Oracle EBS : Enable Unified Auditing

 






Intro

Database auditing is a critical component of data security, providing vital insights into user activity, changes made to the database, and potential threats lurking within the system. By monitoring user actions and tracking modifications, auditing ensures regulatory compliance and helps identify anomalies that may signify malicious or unauthorized activities.

Through meticulous auditing, organizations can detect suspicious behavior and promptly intervene to mitigate risks and prevent potential damage. This proactive approach not only safeguards sensitive data but also enhances overall security posture by addressing vulnerabilities and enforcing access controls effectively.
    Security:
    Auditing helps ensure the security of sensitive data stored within databases. By monitoring and tracking access to databases, organizations can detect and prevent unauthorized access, potential data breaches, or insider threats. It helps in identifying suspicious activities and potential security vulnerabilities that need to be addressed promptly.
  1. Compliance:
    Many industries and organizations are subject to regulatory requirements and compliance standards (such as GDPR, HIPAA, PCI DSS, etc.) that mandate the auditing and monitoring of database activities. Auditing helps organizations demonstrate compliance with these regulations by providing detailed records of who accessed what data, when, and for what purpose.
  2. Risk Management:
    Auditing assists in risk management by providing insights into potential risks associated with data handling and access. By identifying patterns of unauthorized access or unusual activities, organizations can take proactive measures to mitigate risks and strengthen their overall security posture.
  3. Data Integrity:
    Auditing ensures the integrity of data stored in databases by tracking changes made to the data. It helps maintain data accuracy and reliability by providing a trail of modifications, updates, and deletions, which is crucial for data quality assurance and maintaining trust in the information stored within the database.
  4. Forensic Analysis: 
    In the event of a security incident or data breach, auditing provides a valuable source of information for forensic analysis. Detailed audit logs can be used to reconstruct events leading up to the incident, identify the root cause, and facilitate incident response and recovery efforts.
  1. Performance Monitoring:
    Auditing can also contribute to performance monitoring and optimization of database systems. By analyzing audit logs, organizations can identify bottlenecks, optimize queries, and improve overall database performance.

    Accountability and Transparency:
    Auditing promotes accountability and transparency within organizations by holding individuals accountable for their actions regarding database access and usage. It creates a culture of responsibility and ensures that employees understand the importance of adhering to data access policies and procedures.
Oracle Database Auditing is a comprehensive feature that allows organizations to monitor and record activities occurring within the Oracle database environment. It provides detailed information about user actions, system changes, and access to sensitive data, enabling organizations to maintain security, ensure compliance with regulatory requirements, and detect and respond to potential threats effectively.

What is Oracle Unified Auditing? 

Oracle Unified Auditing is a comprehensive auditing solution introduced in Oracle Database 12c that consolidates database auditing into a single, unified framework. It replaces the traditional auditing mechanisms, such as the AUDIT_TRAIL parameter and the AUDIT command, with a more streamlined and efficient approach to auditing.

Unified Auditing comes standard with Oracle Enterprise Edition; no additional license is required. It is installed by default, but not fully enabled by default. 

There are two modes of operation to allow for a transition from pre-12c auditing 

  • Mixed Mode: default 12c option. All pre-12c log and audit functionality and configurations work as before. New Unified Auditing functionality is also available. Log data is available in both the traditional locations as well as a new view SYS.UNIFIED_AUDIT_TRAIL. Also, log data continues to be written in clear text when Syslog is used.


                                              Figure 1: Oracle unified auditing mix mode.


  • Full Mode or PURE modeenabled only by stopping the database and relinking the Oracle kernel. Once enabled, pre-12c log and audit configurations are ignored, and audit data is saved using the Oracle SecureFiles, which is a proprietary file format. Because of this, Syslog is not supported. All audit data can be found in the view SYS.UNIFIED_AUDIT_TRAIL.


                                                   Figure 2: Oracle unified auditing Pure Mode

In this article, I will elaborate on how we can enable unified auditing in Oracle E-Businees Suite.

This is the Oracle meta link note to enable unified auditing in EBS :  

Enabling Unified Auditing in Oracle E-Business Suite Release 12.2 with Oracle Database 19c or 12c (Doc ID 2777404.1)

Pre-Requisites:

EBS application-level patches:

 Validate the patches are applied before enabling the unified patching:

·         At a minimum, R12.AD.C.delta.13 Patch 32394134 and R12.TXK.C.delta.13 Patch 32392507 is needed. See Document 1617461.1, Applying the Latest AD and TXK Release Update Packs to Oracle E-Business Suite Release 12.2

One of the following

             or 

  • Oracle E-Business Suite Release 12.2.3 through Release 12.2.10 and the EBS System Schema Migration Consolidated Patch (Patch 31817501:12.2.0). See Document 2774309.1, Applying the Oracle E-Business Suite Consolidated Patch for EBS System Schema Migration.

Database level patches

  • Validate the database patches for known issues. For the 19c instance, we need to make sure 32969863 is applied.


How to validate patches have been applied to the EBS instance:

Apply patches: Oracle Application Manager Patch Wizard Does Not Show Patches Applied Via Downtime Mode Or Hotpatch Mode (Doc ID 2061618.1)


select ad_patch.is_patch_applied('R12',-1,32394134) from dual;
select ad_patch.is_patch_applied('R12',-1,32392507) from dual;
select ad_patch.is_patch_applied('R12',-1,31856789) from dual;
    

EXPLICIT = applied

NOT APPLIED = not applied/aborted)



SQL>  select ad_patch.is_patch_applied('R12',-1,32394134) from dual;

AD_PATCH.IS_PATCH_APPLIED('R12',-1,32394134)
--------------------------------------------------------------------------------
EXPLICIT

SQL> select ad_patch.is_patch_applied('R12',-1,32392507) from dual;

AD_PATCH.IS_PATCH_APPLIED('R12',-1,32392507)
--------------------------------------------------------------------------------
EXPLICIT

SQL> select ad_patch.is_patch_applied('R12',-1,31856789) from dual;

AD_PATCH.IS_PATCH_APPLIED('R12',-1,31856789)
--------------------------------------------------------------------------------
EXPLICIT


Validate database patches. 


Check the current database patch level.



[oracle@ebs-12-2-12 ~]$ /u01/install/APPS/19.0.0/OPatch/opatch lspatches
35638318;JDK BUNDLE PATCH 19.0.0.0.231017
35239280;DSTV42 UPDATE - TZDATA2023C - NEED OJVM FIX
35648110;OJVM RELEASE UPDATE: 19.21.0.0.231017 (35648110)
35643107;Database Release Update : 19.21.0.0.231017 (35643107)
29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

OPatch succeeded.


Check 32969863 patches are applied to the database

Note: Make sure this patch is applied on the database home binary.

/u01/install/APPS/19.0.0/OPatch/opatch lsinventory -oh $OH | grep ^Patch | grep 32969863

[oracle@ebs-12-2-12 ~]$ /u01/install/APPS/19.0.0/OPatch/opatch lsinventory -oh $OH  | grep 32969863
     32969466, 32969863, 32970478, 32972633, 32972716, 32973035, 32973406
[oracle@ebs-12-2-12 ~]$

How to apply Application level unified patch.

This Patch 33339495:R12.FND.C is available to assist you with creating and enabling recommended unified auditing policies in your Oracle E-Business.

Patch 33339495:R12.FND.C includes the recommended guidelines for enabling unified auditing policies in your Oracle E-Business Suite database. The creation and enablement of predefined Oracle E-Business Suite unified auditing policies and predefined Oracle Database unified auditing policies as defined in this section and as provided in Patch 33339495:R12.FND.C is not mandatory.
 
Applying this patch will generate scripts to create pre-defined policies.  



Patch applying commands : 

This is the hot patch and can be apply this to directly to run the file system.


cd /u01/install/APPS/fs_ne/EBSapps/patch
cp ~/PATCHES/p33339495_R12.FND.C_R12_GENERIC.zip .
unzip p33339495_R12.FND.C_R12_GENERIC.zip
adop phase=apply patches=33339495 hotpatch=yes

######## Apply patch

Patch 33339495: PATCH REQUEST FOR EBS 12.2 UNIFIED AUDITING POLICY SCRIPTS
 
. /u01/install/APPS/EBSapps.env run

adop phase=apply patches=33339495 hotpatch=yes


Expected output 



  
[oracle@ebs-12-2-12 patch]$ adop phase=apply patches=33339495 hotpatch=yes

Enter the APPS password:
Enter the EBS_SYSTEM password:
Enter the WLSADMIN password:

Validating credentials.

Initializing.
    Run Edition context  : /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml
    Patch edition context: /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml
    Patch file system free space: 107.90 GB

Validating system setup.
    Node registry is valid.

Checking for existing adop sessions.
        [INFO] ICM is not down
        [INFO] Connection to http://ebs-12-2-12.sub10241841160.oemvcn.oraclevcn.com:8000 successful
    [WARNING]   You should only specify hotpatch mode when directed to by the patch readme.
    No pending session exists.
    Starting new adop session.

===========================================================================
ADOP (C.Delta.14)
Session ID: 118
Node: apps
Phase: apply
Log: /u01/install/APPS/fs_ne/EBSapps/log/adop/118/20240125_163513/adop.log
===========================================================================

Applying patch 33339495.
    Log: /u01/install/APPS/fs_ne/EBSapps/log/adop/118/20240125_163513/apply/apps/33339495/log/u33339495.log

Running finalize actions for the patches being applied.
    Log: @ADZDSHOWLOG.sql "2024/01/25 16:36:14"

Running cutover actions for the patches being applied.
    Creating workers to process cutover DDL in parallel
    Log: /u01/install/APPS/fs_ne/EBSapps/log/adop/118/20240125_163513/apply/apps/log/cutover.log
    Performing database cutover in Quick mode

Generating post apply reports.

Generating log report.
    Output: /u01/install/APPS/fs_ne/EBSapps/log/adop/118/20240125_163513/apply/apps/adzdshowlog.out

The apply phase completed successfully.


adop exiting with status = 0 (Success)
[oracle@ebs-12-2-12 patch]$
  
  

Unified Auditing Policies for Oracle E-Business Suite Databases

  • Policy Name: This column provides the name of the predefined Oracle Database unified auditing policy or the recommended name for the Oracle E-Business Suite recommended unified auditing policy.
  • Policy Type - This column states whether the policy is a predefined Oracle Database unified auditing policy or one recommended by Oracle E-Business Suite.
  • Description - This column provides a brief description of the unified auditing policy.
  • Policy Location - This column describes whether the policy is created, enabled, or both, in an Oracle E-Business Suite multitenant database in a PDB, CDB, or in a non-multitenant database.




Enable Pure Unified Auditing

Steps to enable unified auditing parameter

  1. Shut down the EBS application Tire.
  2. Disable the audit trail parameter.
  3. Shut down the EBS database Tire.
  4. Relink the unified auditing binary.
  5. Startup the database Tier.
  6. Startup the application Tire

Shutdown the application

We need to stop the application before making any changes at the database level.  For this unified auditing change need to take downtime.

[oracle@ebs-12-2-12 sql]$ $ADMIN_SCRIPTS_HOME/adstpall.sh

You are running adstpall.sh version 120.22.12020000.7

Enter the APPS username: apps

Enter the APPS password:
Enter the WebLogic Server password:

The logfile for this session is located at /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adstpall.log


Disable the audit trail parameter

We are disabling the audit trail parameter to use pure unified auditing mode.

SQL> alter system set audit_trail=none scope=spfile;

System altered.


Shutdown the EBS database Tire

As we need to perform a relinking to enable unified auditing, we need to shut down the database.


[oracle@ebs-12-2-12 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jan 25 16:54:42 2024
Version 19.21.0.0.0

Copyright (c) 1982, 2022, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.21.0.0.0

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 ebsdb                          READ WRITE NO
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.21.0.0.0

Relinked the unified auditing binary.

Relinking commands: 

$ cd $ORACLE_HOME/rdbms/lib$ make -f ins_rdbms.mk uniaud_on ioracle ORACLE_HOME=$ORACLE_HOME

Expected output for relinking :

  
  [oracle@ebs-12-2-12 ~]$ cd $ORACLE_HOME/rdbms/lib
[oracle@ebs-12-2-12 lib]$ make -f ins_rdbms.mk uniaud_on ioracle ORACLE_HOME=$ORACLE_HOME
/usr/bin/ar d /u01/install/APPS/19.0.0/rdbms/lib/libknlopt.a kzanang.o
/usr/bin/ar cr /u01/install/APPS/19.0.0/rdbms/lib/libknlopt.a /u01/install/APPS/19.0.0/rdbms/lib/kzaiang.o
chmod 755 /u01/install/APPS/19.0.0/bin
cd /u01/install/APPS/19.0.0/rdbms/lib/;\
/usr/bin/ar r  /u01/install/APPS/19.0.0/rdbms/lib/libknlopt.a `/usr/bin/ar t /u01/install/APPS/19.0.0/rdbms/lib/libknlopt.a` ;

 - Linking Oracle
rm -f /u01/install/APPS/19.0.0/rdbms/lib/oracle
/u01/install/APPS/19.0.0/bin/orald  -o /u01/install/APPS/19.0.0/rdbms/lib/oracle -m64 -z noexecstack -Wl,--disable-new-dtags -L/u01/install/APPS/19.0.0/rdbms/lib/ -L/u01/install/APPS/19.0.0/lib/ -L/u01/install/APPS/19.0.0/lib/stubs/   -Wl,-E /u01/install/APPS/19.0.0/rdbms/lib/opimai.o /u01/install/APPS/19.0.0/rdbms/lib/ssoraed.o /u01/install/APPS/19.0.0/rdbms/lib/ttcsoi.o -Wl,--whole-archive -lperfsrv19 -Wl,--no-whole-archive /u01/install/APPS/19.0.0/lib/nautab.o /u01/install/APPS/19.0.0/lib/naeet.o /u01/install/APPS/19.0.0/lib/naect.o /u01/install/APPS/19.0.0/lib/naedhs.o /u01/install/APPS/19.0.0/rdbms/lib/config.o  -ldmext -lserver19 -lodm19 -lofs -lcell19 -lnnet19 -lskgxp19 -lsnls19 -lnls19  -lcore19 -lsnls19 -lnls19 -lcore19 -lsnls19 -lnls19 -lxml19 -lcore19 -lunls19 -lsnls19 -lnls19 -lcore19 -lnls19 -lclient19  -lvsnst19 -lcommon19 -lgeneric19 -lknlopt -loraolap19 -lskjcx19 -lslax19 -lpls19  -lrt -lplp19 -ldmext -lserver19 -lclient19  -lvsnst19 -lcommon19 -lgeneric19 `if [ -f /u01/install/APPS/19.0.0/lib/libavserver19.a ] ; then echo "-lavserver19" ; else echo "-lavstub19"; fi` `if [ -f /u01/install/APPS/19.0.0/lib/libavclient19.a ] ; then echo "-lavclient19" ; fi` -lknlopt -lslax19 -lpls19  -lrt -lplp19 -ljavavm19 -lserver19  -lwwg  `cat /u01/install/APPS/19.0.0/lib/ldflags`    -lncrypt19 -lnsgr19 -lnzjs19 -ln19 -lnl19 -lngsmshd19 -lnro19 `cat /u01/install/APPS/19.0.0/lib/ldflags`    -lncrypt19 -lnsgr19 -lnzjs19 -ln19 -lnl19 -lngsmshd19 -lnnzst19 -lzt19 -lztkg19 -lmm -lsnls19 -lnls19  -lcore19 -lsnls19 -lnls19 -lcore19 -lsnls19 -lnls19 -lxml19 -lcore19 -lunls19 -lsnls19 -lnls19 -lcore19 -lnls19 -lztkg19 `cat /u01/install/APPS/19.0.0/lib/ldflags`    -lncrypt19 -lnsgr19 -lnzjs19 -ln19 -lnl19 -lngsmshd19 -lnro19 `cat /u01/install/APPS/19.0.0/lib/ldflags`    -lncrypt19 -lnsgr19 -lnzjs19 -ln19 -lnl19 -lngsmshd19 -lnnzst19 -lzt19 -lztkg19   -lsnls19 -lnls19  -lcore19 -lsnls19 -lnls19 -lcore19 -lsnls19 -lnls19 -lxml19 -lcore19 -lunls19 -lsnls19 -lnls19 -lcore19 -lnls19 `if /usr/bin/ar tv /u01/install/APPS/19.0.0/rdbms/lib/libknlopt.a | grep "kxmnsd.o" > /dev/null 2>&1 ; then echo " " ; else echo "-lordsdo19 -lserver19"; fi` -L/u01/install/APPS/19.0.0/ctx/lib/ -lctxc19 -lctx19 -lzx19 -lgx19 -lctx19 -lzx19 -lgx19 -lclscest19 -loevm -lclsra19 -ldbcfg19 -lhasgen19 -lskgxn2 -lnnzst19 -lzt19 -lxml19 -lgeneric19 -locr19 -locrb19 -locrutl19 -lhasgen19 -lskgxn2 -lnnzst19 -lzt19 -lxml19 -lgeneric19  -lgeneric19 -lorazip -loraz -llzopro5 -lorabz2 -lorazstd -loralz4 -lipp_z -lipp_bz2 -lippdc -lipps -lippcore  -lippcp -lsnls19 -lnls19  -lcore19 -lsnls19 -lnls19 -lcore19 -lsnls19 -lnls19 -lxml19 -lcore19 -lunls19 -lsnls19 -lnls19 -lcore19 -lnls19 -lsnls19 -lunls19  -lsnls19 -lnls19  -lcore19 -lsnls19 -lnls19 -lcore19 -lsnls19 -lnls19 -lxml19 -lcore19 -lunls19 -lsnls19 -lnls19 -lcore19 -lnls19 -lasmclnt19 -lcommon19 -lcore19  -ledtn19 -laio -lons  -lmql1 -lipc1    -lfthread19    `cat /u01/install/APPS/19.0.0/lib/sysliblist` -Wl,-rpath,/u01/install/APPS/19.0.0/lib -lm    `cat /u01/install/APPS/19.0.0/lib/sysliblist` -ldl -lm   -L/u01/install/APPS/19.0.0/lib `test -x /usr/bin/hugeedit -a -r /usr/lib64/libhugetlbfs.so && test -r /u01/install/APPS/19.0.0/rdbms/lib/shugetlbfs.o && echo -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 -lhugetlbfs`
rm -f /u01/install/APPS/19.0.0/bin/oracle
mv /u01/install/APPS/19.0.0/rdbms/lib/oracle /u01/install/APPS/19.0.0/bin/oracle
chmod 6751 /u01/install/APPS/19.0.0/bin/oracle
(if [ ! -f /u01/install/APPS/19.0.0/bin/crsd.bin ]; then \
    getcrshome="/u01/install/APPS/19.0.0/srvm/admin/getcrshome" ; \
    if [ -f "$getcrshome" ]; then \
        crshome="`$getcrshome`"; \
        if [ -n "$crshome" ]; then \
            if [ $crshome != /u01/install/APPS/19.0.0 ]; then \
                oracle="/u01/install/APPS/19.0.0/bin/oracle"; \
                $crshome/bin/setasmgidwrap oracle_binary_path=$oracle; \
            fi \
        fi \
    fi \
fi\
);

  

Startup database and validate the unified auditing parameter:

As the relinking is complete, we validate the unified auditing parameter.

  
[oracle@ebs-12-2-12 lib]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jan 25 16:56:16 2024
Version 19.21.0.0.0

Copyright (c) 1982, 2022, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup;
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.

Total System Global Area 6442448952 bytes
Fixed Size                  9181240 bytes
Variable Size            3640655872 bytes
Database Buffers         2566914048 bytes
Redo Buffers              225697792 bytes
Database mounted.
Database opened.
SQL>


SQL> show parameter audit

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest                      string      /u01/install/APPS/diag/admin/e
                                                 bscdb/adump
audit_sys_operations                 boolean     TRUE
audit_syslog_level                   string
audit_trail                          string      NONE
unified_audit_common_systemlog       string
unified_audit_sga_queue_size         integer     1048576
unified_audit_systemlog              string
SQL> SELECT VALUE FROM V$OPTION WHERE PARAMETER = 'Unified Auditing';

VALUE
----------------------------------------------------------------
TRUE

SQL>


We need to create two users for creating policies. One common user c##audit and pdb local user ebsuaad .

For EBS it's better to have this user segregate roles. For multitenant databases create common users as mentioned below.

CDB/PDB level common user:

create user c##audit identified by manager;
grant CREATE SESSION to c##audit container=all;
grant AUDIT_ADMIN to c##audit container=all;
grant SELECT_CATALOG_ROLE to c##audit container=all;
grant CREATE PROCEDURE to c##audit container=all;
grant AUDIT SYSTEM to c##audit container=all;
grant AUDIT ANY to c##audit container=all;
grant SELECT on SYS.audit_unified_contexts to c##audit container=all;
grant SELECT on SYS.audit_unified_policies to c##audit container=all;
grant SELECT on SYS.audit_unified_enabled_policies to c##audit container=all;

PDB Level local user :

create user ebsuaad identified by Welcome1;
grant CREATE SESSION to ebsuaad;
grant AUDIT_ADMIN to ebsuaad;
grant SELECT_CATALOG_ROLE to ebsuaad;
grant CREATE PROCEDURE to ebsuaad;
grant AUDIT SYSTEM to ebsuaad;
grant AUDIT ANY to ebsuaad;
grant SELECT on SYS.audit_unified_contexts to ebsuaad;
grant SELECT on SYS.audit_unified_policies to ebsuaad;
grant SELECT on SYS.audit_unified_enabled_policies to ebsuaad;

Execute scripts to create policies


Once you apply the EBS Patch scripts are located under $FND_TOP.


cd $FND_TOP/patch/115/sql/
/u01/install/APPS/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql

-rwxr-xr-x. 1 oracle oinstall  19K Jan 25 16:35 fnd_UA_queries.sql
-rwxr-xr-x. 1 oracle oinstall  16K Jan 25 16:35 fnd_drop_UA_policies.sql
-rwxr-xr-x. 1 oracle oinstall  18K Jan 25 16:35 fnd_disable_UA_policies.sql
-rwxr-xr-x. 1 oracle oinstall  50K Jan 25 16:35 fnd_create_UA_policies.sql

Note: First create in CDB level as C##AUDIT user and then PDB level create policies as ebsuaad user.

  
SQL> show parameter db_uni

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_unique_name                       string      ebscdb
SQL> show pdbs
SP2-0382: The SHOW PDBS command is not available
SQL> show pdbs
SP2-0382: The SHOW PDBS command is not available
SQL> @fnd_create_UA_policies.sql



Start Time: JAN-25-2024 17:37:48

Spool File: [ fnd_create_UA_policies_CDB.txt ]
Script information: $Header: fnd_create_UA_policies.sql 120.0.12020000.9 2021/12/09 15:21:20 emiranda noship $
----------------------------------------------
User                 : C##AUDIT
DB-version           : 19.0
Instance Name        : ebscdb
Multitenant instance : YES
CDB Name             : ebscdb
Container Name       : CDB$ROOT
OS User              : oracle
Client IP Address    : 10.1.1.131
Server Hostname      : ebs-12-2-12
Client Hostname      : ebs-12-2-12
----------------------------------------------
.

Procedure created.

.
.. Execution start => Date/time: JAN-25-2024 / 17:37:48
.. .. SECTION-01
-- Command: [ 2 ]
.. .. SECTION-02
-- Command: [ 8 ]
.. .. SECTION-03
-- Command: [ 10 ]
.. .. SECTION-04
"ORA_SECURECONFIG" : auditing policy
"ORA_ACCOUNT_MGMT" : auditing policy
.. .. SECTION-05
.. .. SECTION-06
-- Command: [ 19 ]
-- Command: [ 21 ]
.. .. SECTION-07
-- Command: [ 25 ]
.. .. SECTION-08
-- Command: [ 29 ]
-- Command: [ 31 ]
.. .. SECTION-09
-- Command: [ 32 ]
-- Command: [ 33 ]
"ORA_DATABASE_PARAMETER" : auditing policy
.. Execution end => Date/time: JAN-25-2024 / 17:37:50
.

PL/SQL procedure successfully completed.

. Enable policies - table audit_unified_policies:
----------------------------------------
EBS_CDB_AUDIT_DATAPUMP
EBS_CDB_TABLESPACE_CHANGES
ORA_ACCOUNT_MGMT
ORA_DATABASE_PARAMETER
ORA_LOGON_FAILURES
ORA_SECURECONFIG
----------------------------------------
.
. ------------------------------------------------
. Created policies - table audit_unified_policies:
.
Policy_name                              Audit_condition      Common               Inherited            Object_type          Audit_only_toplevel         Total
---------------------------------------- -------------------- -------------------- -------------------- -------------------- -------------------- ------------
EBS_CDB_ACTIONS_BY_NAMED_USERS           NONE                 NO                   NO                   NONE                 NO                              1
EBS_CDB_ACTIONS_BY_PRIV_USERS            NONE                 NO                   NO                   NONE                 YES                             1
EBS_CDB_AUDIT_DATAPUMP                   NONE                 NO                   NO                   NONE                 NO                              2
EBS_CDB_AUDIT_SCHEMA_CHANGES             NONE                 NO                   NO                   NONE                 NO                             85
EBS_CDB_DIRECT_DB_ACCESS                 (SYS_CONTEXT ('USERE NO                   NO                   NONE                 YES                             1
EBS_CDB_TABLESPACE_CHANGES               NONE                 NO                   NO                   NONE                 NO                              3
ORA_ACCOUNT_MGMT                         NONE                 NO                   NO                   NONE                 NO                              9
ORA_CIS_RECOMMENDATIONS                  NONE                 NO                   NO                   NONE                 NO                             35
ORA_DATABASE_PARAMETER                   NONE                 NO                   NO                   NONE                 NO                              3
ORA_DV_AUDPOL                            NONE                 NO                   NO                   FUNCTION             NO                            174
ORA_DV_AUDPOL                            NONE                 NO                   NO                   LIBRARY              NO                             16
ORA_DV_AUDPOL                            NONE                 NO                   NO                   PACKAGE              NO                            105
ORA_DV_AUDPOL                            NONE                 NO                   NO                   PROCEDURE            NO                             33
ORA_DV_AUDPOL                            NONE                 NO                   NO                   SEQUENCE             NO                             75
ORA_DV_AUDPOL                            NONE                 NO                   NO                   TABLE                NO                            594
ORA_DV_AUDPOL                            NONE                 NO                   NO                   VIEW                 NO                           1183
ORA_DV_AUDPOL2                           NONE                 NO                   NO                   REALM                NO                              6
ORA_DV_AUDPOL2                           NONE                 NO                   NO                   RULE_SET             NO                             13
ORA_LOGON_FAILURES                       NONE                 NO                   NO                   NONE                 NO                              1
ORA_RAS_POLICY_MGMT                      NONE                 NO                   NO                   NONE                 NO                             35
ORA_RAS_SESSION_MGMT                     NONE                 NO                   NO                   NONE                 NO                             14
ORA_SECURECONFIG                         NONE                 NO                   NO                   NONE                 NO                             47
ORA_SECURECONFIG                         NONE                 NO                   NO                   PACKAGE              NO                              1
ORA_SECURECONFIG                         NONE                 NO                   NO                   PROCEDURE            NO                              1
. -----------------------------------------
.

PL/SQL procedure successfully completed.

Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.21.0.0.0
[oracle@ebs-12-2-12 sql]$

Once you create the policies you can validate which policies are enabled by default.



SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         3 ebsdb                          READ WRITE NO
SQL> SELECT policy_name FROM audit_unified_enabled_policies order by policy_name;

POLICY_NAME
--------------------------------------------------------------------------------------------------------------------------------
EBS_ACTIONS_ON_SEC_OBJ
EBS_ACTIONS_ON_SENSITIVE_OBJ
EBS_AUDIT_DATAPUMP
EBS_OLS_POLICY_CHANGES
EBS_REDACTION_POLICY_CHANGES
EBS_TABLESPACE_CHANGES
EBS_VPD_POLICY_CHANGES
ORA_ACCOUNT_MGMT
ORA_DATABASE_PARAMETER
ORA_LOGON_FAILURES

10 rows selected.



How to query the unified auditing records

You can use the below-mentioned queries to get the audit records.

  
 SELECT *
FROM (SELECT unified_audit_policies policy,
statement_id,
to_char(event_timestamp, 'mm/dd/yy hh24:mi') audit_time,
userhost,
action_name,
return_code,
object_schema,
object_name,
--    OS_PROCESS,
dbusername,
client_identifier fnd_user,
sql_text
FROM unified_audit_trail
WHERE 1 = 1
--and event_timestamp > SYSDATE - 1
--and action_name='UPDATE'
--and unified_audit_policies like '%EBS_ACTIONS_ON%'
--and unified_audit_policies like 'EBS_AUDIT_DB_SCHEMA_CHANGES'
--and object_name='FND_PROFILE_OPTIONS'
--and dbusername='SYS'
AND unified_audit_policies IS NOT NULL
ORDER BY audit_time DESC,
statement_id)
WHERE rownum  50;
  
  

Sample output :


Conclusion

In summary, database auditing plays a critical role in maintaining the security, compliance, integrity, and performance of database systems, while also facilitating forensic analysis and promoting accountability within organizations.

Friday, February 2, 2024

OEM : Agent installation ( Agent registration password issue )

 







Intro 

Monitoring plays a major part in mission-critical environments. As the environments are critical IT administrators need to make sure database and application servers are up and running 24X7. OEM (Oracle Enterprise Manager) plays a critical role in monitoring and administration, For the Oracle database this best product for addressing issues proactively. 

Migrating everything to the cloud at once can be a complex and challenging process for many organizations, which is why a hybrid approach is often adopted. This involves integrating on-premises infrastructure with cloud services, allowing for a gradual transition. 

In the case of Database Cloud Service (DBCS), there are typically no restrictions on integrating it with Oracle Cloud Infrastructure (OCI) OEM (Oracle Enterprise Manager) or on-premises OEM. This means that organizations can manage their database instances both in the cloud and on-premises using the same management tool, providing flexibility and ease of management.

Monitoring Oracle Cloud Infrastructure (OCI) Database Cloud Service (DBCS) involves tracking various performance metrics, identifying potential issues, and ensuring the overall health and efficiency of your database. Here are some key aspects and tools you can use for monitoring OCI DBCS:

  • Oracle Cloud Infrastructure Console:DB System Details Page: 
Access the OCI console and navigate to your DBCS instance. The DB System Details page provides a summary of your database system, including performance metrics, status, and alerts.

  • Oracle Cloud Infrastructure Metrics:
OCI provides a set of performance metrics that you can monitor. These include CPU utilization, memory utilization, disk I/O, network I/O, and more. You can view these metrics in the OCI console or use the OCI Monitoring service.

  • OCI Monitoring Service:
Utilize the OCI Monitoring service to set up custom alarms based on specific metrics. Alarms can notify you when certain thresholds are breached, allowing you to proactively address potential issues.


Oracle Enterprise Manager (OEM) Cloud Control:

OEM Cloud Control is a comprehensive management tool for Oracle databases. It provides in-depth monitoring, administration, and diagnostics. You can configure and receive alerts, view performance metrics, and perform various administrative tasks.


In this article, I will elaborate on the issues faced during agent installation. 

Installation

Installing OEM agent manually is easy, highly high-risk systems do not allow port 22 from the OMS server for the installation. In those scenarios, we need to install an agent manually. 

First, Check the status of the OMS server and open the required ports. To get a clear understanding of the port https://docs.oracle.com/cd/E24628_01/install.121/e24089/firewalls.htm.

About ports: EM 13c, EM 12c: The Default Ports Used in Enterprise Manager Cloud Control OMS Configuration and their Directionality (Doc ID 2362242.1)



                                  Figure 1: OEM ports need to be enabled through the firewall.





[oracle@oracle-oms]$ ./emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
Console Server Host        : oracle12c.cepeo.local
HTTP Console Port          : 7788
HTTPS Console Port         : 7802
HTTP Upload Port           : 4889
HTTPS Upload Port          : 4903
EM Instance Home           : /u01/app/oracle/gc_inst1/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 2
Console URL: https://oracle12c.cepeo.local:7802/em
Upload URL: https://oracle12c.cepeo.local:4903/empbs/upload

WLS Domain Information
Domain Name            : GCDomain
Admin Server Host      : oracle12c.cepeo.local
Admin Server HTTPS Port: 7102
Admin Server is RUNNING

Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: oracle12c.cepeo.local
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up

Secondly, Get the supported agent version from the OEM. 


[oracle@oracle-oms]$ export MW_HOME=/u01/app/oracle/Middleware13.5/
[oracle@oracle-oms]$ $MW_HOME/bin/emcli login -username=sysman
Enter password
Login successful
[oracle@oracle-oms]$ $MW_HOME/bin/emcli sync
Synchronized successfully
[oracle@oracle-oms]$ $MW_HOME/bin/emcli get_supported_platforms
-----------------------------------------------
Version = 13.5.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Version = 13.4.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Version = 13.3.0.0.0
 Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
[oracle@oracle12c Middleware13.5]$


Download the agent software

You can download the software using 
emcli get_agentimage -destination=/stage/OEM_AGNET_PATCH -platform="Linux x86-64" -version="13.5.0.0.0".


[oracle@oracle-om]$ $MW_HOME/bin/emcli get_agentimage -destination=/stage/OEM_AGNET_PATCH -platform="Linux x86-64" -version="13.5.0.0.0"
 === Partition Detail ===
Space free : 119 GB
Space required : 1 GB
Check the logs at /u01/app/oracle/gc_inst1/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2023-12-21_10-24-41-AM.log
Downloading /stage/OEM_AGNET_PATCH/13.5.0.0.0_AgentCore_226.zip
File saved as /stage/OEM_AGNET_PATCH/13.5.0.0.0_AgentCore_226.zip
Downloading /stage/OEM_AGNET_PATCH/13.5.0.0.0_Plugins_226.zip
File saved as /stage/OEM_AGNET_PATCH/13.5.0.0.0_Plugins_226.zip
Downloading /stage/OEM_AGNET_PATCH/unzip
File saved as /stage/OEM_AGNET_PATCH/unzip
Executing command: /stage/OEM_AGNET_PATCH/unzip /stage/OEM_AGNET_PATCH/13.5.0.0.0_Plugins_226.zip -d /stage/OEM_AGNET_PATCH
Archieving agentImage and plugins.
Exit status is:0
Agent Image Download completed successfully.
[oracle@oracle-oms]$

Installation


Once you download the agent installation binary copy it to the database server and install using below mentioned commands.


/u01/app/oracle/Software_Agent/agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent13c \
-force \
-ignorePrereqs \
-invPtrLoc /etc/oraInst.loc  \
AGENT_PORT=3872 \
EM_UPLOAD_PORT=4903 \
OMS_HOST=oracle-oms.example.com \
ORACLE_HOSTNAME=test-db.privatesubnetce.test.oraclevcn.com \
AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent13c/agent_inst \
AGENT_REGISTRATION_PASSWORD=Welcome1 \
SCRATCHPATH=/tmp


Error

Installation failed with trying to secure the connection with OMS. Please find the error below.



Validated the oms host and port :- oracle12c.cepeo.local----4903
Getting Inet Addresses for host test-cepeo-1.privatesubnetce.test.oraclevcn.com
** Agent Port Check completed successfully.**
Validated the agent port :- ----3872
shared agent value is :false
chain install is :false
SEVERE:emctl secure agent command has failed with status=1
SEVERE:emctl secure agent command has failed with status=1
SEVERE:emctl secure agent command has failed with status=1
Agent configuration has failed
/u01/app/oracle/product/agent13c/agent_13.5.0.0.0/cfgtoollogs/agentDeploy/agentDeploy_2024-01-16_13-58-04-PM.log

Solution

This happens because the registration password is not stored in the OMS, you need to add this password for the agent registration. 

Settings > Security > Registration password > Create registration password.

How to add a registration password.

Figure 2 shows how to navigate to register a password page.



                                                 Figure 2: Navigate to registration password

Figure 3 shows how you can add the registration password.


                                           Figure 3:  Create agent registration password.


Conclusion


By integrating DBCS with OEM, organizations can gain centralized management capabilities, monitoring, and performance tuning across their entire database environment, whether it's in the cloud or on-premises. This hybrid approach allows organizations to leverage the benefits of cloud services while still maintaining control over their on-premises infrastructure.

Oracle EBS Vision Instance using OCI market place image

 






Intro 

Oracle E-Business Suite (EBS) is a comprehensive suite of integrated business applications developed by Oracle Corporation and Oracle E-Business Suite is one of Oracle Corp's major product lines. Also known as Oracle EBS. It encompasses a wide range of modules that cover various aspects of enterprise resource planning (ERP), including financial management, human capital management, supply chain management, procurement, project management, customer relationship management (CRM), and more. Oracle EBS is designed to streamline business processes, improve efficiency, and provide insights to help organizations make informed decisions.

Key components of Oracle E-Business Suite include:

  • Financial Management: Modules such as General Ledger, Accounts Payable, Accounts Receivable, Fixed Assets, Cash Management, and Treasury Management help organizations manage their financial operations, including accounting, budgeting, and financial reporting.
  • Human Capital Management (HCM): This module includes functionalities for managing human resources, payroll, benefits, talent acquisition, performance management, and workforce development.
  • Supply Chain Management (SCM): Oracle EBS offers modules for supply chain planning, procurement, order management, inventory management, manufacturing, and logistics to optimize the flow of goods and services across the supply chain.
  • Procurement: Procurement modules cover purchasing, supplier management, self-service procurement, and procurement contracts to streamline the purchasing process and manage supplier relationships.
  • Project Management: Project Management modules help organizations plan, execute, and monitor projects, including project costing, billing, resource management, and project analytics.
  • Customer Relationship Management (CRM): This module includes applications for managing sales, marketing, service, and partner relationships to improve customer engagement and satisfaction.
  • Enterprise Asset Management (EAM): EAM modules support the management of physical assets throughout their lifecycle, including maintenance, tracking, and depreciation.
  • Business Intelligence (BI): Oracle EBS integrates with Oracle Business Intelligence Enterprise Edition (OBIEE) to provide comprehensive reporting, analytics, and business intelligence capabilities, allowing organizations to gain insights into their operations and performance.

For testing purposes, Applications DBAs have been asking Oracle for an EBS appliance. Oracle came up with an appliance called Oracle EBS Vision Instance. An Oracle E-Business Suite (EBS) Vision Instance is a pre-configured environment provided by Oracle for demonstration, testing, and training purposes. It allows users to explore the features and functionalities of Oracle EBS without affecting production environments. The Vision Instance typically comes with sample data and configurations that represent a fictitious company, enabling users to understand how different modules and processes work within Oracle EBS.

We are in the cloud era and organizations are leveraging the maximum out of the cloud. For EBS testing Applications DBAs can use the cloud, Oracle introduces Oracle marketplace image for Oracle EBS vision instance. you can provision an EBS vision instance within 30 min. 

In this article, I will elaborate on how you can provision vision instances in the Oracle Cloud.
Please find the two main Oracle Metalink notes to start the EBS Vision cloud journey.

Getting Started with Oracle E-Business Suite on Oracle Cloud (MOS Doc ID 2066260.1)

Provision a New Oracle E-Business Suite Installation on a Single Node on Oracle Cloud Infrastructure (Doc ID 2764690.1)

First, navigate to Oracle Cloud Marketplace and type 12.2. This will list down all the EBS Demo images.




                                                 Figure 1: Marketplace navigation.


Figure 2 shows all the EBS-related vision images.


                                                
 Figure 2: EBS Demo images.
                                               

Once you select the EBS Demo instance version, launch the vision instance in the respective compartment.


                                            Figure 3: Launch the EBS Demo instance.                                            

The next step is to create a compute instance.  Select the compartment and respective availability domain.

Figure 4: Select the availability domain.


Select a shape for VM shape for the EBS demo instance.


                                                        
                                                 Figure 5: Select shape.

Now select the VCN network and subnet you want to connect, As this is testing I'm creating this in the public subnet.


                                           Figure 6: Network configuration.

                                              
                                        Figure 7:  Network configuration.

Now add the ssh keys for the instance. 


                                                        Figure 8:  Ass ssh keys

The next section is to configure live migration.  I will keep this setting enabled.


                                          
                                                        Figure 9: Live migration feature.

This section is to add any other additional cloud-init script.  


                                                           Figure 10: cloud scripts

Now you can spin up the EBS demo instance.  Once the server is ready you can validate the server login.

Note: Everything is scripted now you need to configure the demo instance.

                                
                                                Figure 11: Access OEM demo instance.

Now Enable In-gress the firewall setting in the server to allow port 8000.  Also, you need to enable this on the server side as well.


                                               Figure 12: Allow port 8000.


Starting from here we need to meta link note: Provision a New Oracle E-Business Suite Installation on a Single Node on Oracle Cloud Infrastructure (Doc ID 2764690.1) for post-installation steps.


Perform Post-Installation Steps.

How to enable port 8000 from the server side.

Use below below-mentioned commands to enable the firewall rule.

firewall-cmd --add-port=8000/tcp --permanent
systemctl restart firewalld
firewall-cmd --list-all

Expected output :
  
[root@ebs-12-2-12 ~]# firewall-cmd --add-port=8000/tcp --permanent
Warning: ALREADY_ENABLED: 8000:tcp
success
[root@ebs-12-2-12 ~]# systemctl restart firewalld
[root@ebs-12-2-12 ~]# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens3
  sources:
  services: dhcpv6-client ssh
  ports: 8000/tcp
  protocols:
  forward: no
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:
[root@ebs-12-2-12 ~]#

Update Hostname.

This: /u01/install/scripts/updatehosts.sh script needs to be run as the root user.  Your hostname must be updated to reflect the current VCN network configuration. While still logged on as the root user, perform a required hostname update using the following.


-- As root user 

[root@ebs-12-2-12 ~]# /u01/install/scripts/updatehosts.sh
Updating hosts file with the current IPFully Qualified Hostname for this server is : apps.example.com
IP Address Configured for this server is    : 10.1.1.131

Hosts  file update completed\DOMAIN_NAME is sub10241841160.oemvcn.oraclevcn.com . Proceeding with the configuration...

Updating variable s_physical_hostname in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  ebs-12-2-12

Updating variable s_physical_hostname in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  ebs-12-2-12

Updating variable s_webentryhost in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  ebs-12-2-12

Updating variable s_webentryhost in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  ebs-12-2-12

Updating variable s_webentrydomain in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  sub10241841160.oemvcn.oraclevcn.com

Updating variable s_webentrydomain in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  sub10241841160.oemvcn.oraclevcn.com

Updating variable s_login_page in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://ebs-12-2-12.sub10241841160.oemvcn.oraclevcn.com:8000/OA_HTML/AppsLogin

Updating variable s_login_page in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://ebs-12-2-12.sub10241841160.oemvcn.oraclevcn.com:8000/OA_HTML/AppsLogin
Warning: ALREADY_ENABLED: 8000:tcp
success
[root@ebs-12-2-12 ~]#


Enable and Change the SYSADMIN Password.

Use the below-mentioned commands to switch the user to Oracle. 
sudo -i -u oracle

To start the database use: /u01/install/APPS/scripts/startdb.sh




[oracle@ebs-12-2-12 ~]$ /u01/install/APPS/scripts/startdb.sh
Logfile: /u01/install/APPS/19.0.0/appsutil/log/ebsdb_apps/adcdblnctl.txt

You are running adcdblnctl.sh version 120.0.12020000.4


Starting listener process ebscdb ...


LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 23-JAN-2024 16:30:33

Copyright (c) 1991, 2023, Oracle.  All rights reserved.

Starting /u01/install/APPS/19.0.0/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 19.0.0.0.0 - Production
System parameter file is /u01/install/APPS/19.0.0/network/admin/listener.ora
Log messages written to /u01/install/APPS/19.0.0/log/diag/tnslsnr/ebs-12-2-12/ebscdb/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebs-12-2-12.sub10241841160.oemvcn.oraclevcn.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=apps.example.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     ebscdb
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                23-JAN-2024 16:30:33
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/install/APPS/19.0.0/network/admin/listener.ora
Listener Log File         /u01/install/APPS/19.0.0/log/diag/tnslsnr/ebs-12-2-12/ebscdb/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebs-12-2-12.sub10241841160.oemvcn.oraclevcn.com)(PORT=1521)))
The listener supports no services
The command completed successfully

adcdblnctl.sh: exiting with status 0

adcdblnctl.sh: check the logfile /u01/install/APPS/19.0.0/appsutil/log/ebsdb_apps/adcdblnctl.txt for more information ...


You are running adcdbctl.sh version 120.0.12020000.1


Starting the container database ebscdb ...


SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jan 23 16:30:33 2024
Version 19.21.0.0.0

Copyright (c) 1982, 2022, Oracle.  All rights reserved.

Connected to an idle instance.
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.

Total System Global Area 6442448952 bytes
Fixed Size                  9181240 bytes
Variable Size            3640655872 bytes
Database Buffers         2566914048 bytes
Redo Buffers              225697792 bytes
Database mounted.
Database opened.
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.21.0.0.0

adcdbctl.sh: exiting with status 0

[oracle@ebs-12-2-12 ~]$




To start Application Tier: /u01/install/APPS/scripts/startdb.sh




[oracle@ebs-12-2-12 ~]$ /u01/install/APPS/scripts/startapps.sh


==================================================
 Running autoconfig as part of boot
==================================================

The log file for this session is located at: /u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/log/01231632/adconfig.log


wlsDomainName: EBS_domain
WLS Domain Name is VALID.
AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /u01/install/APPS/fs1/inst/apps/ebsdb_apps
        Classpath                   : /u01/install/APPS/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/install/APPS/fs1/EBSapps/comn/java/classes

        Using Context file          : /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

        Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
        Configuring AD_TOP........COMPLETED
        Configuring FND_TOP.......COMPLETED
        Configuring ICX_TOP.......COMPLETED
        Configuring MSC_TOP.......COMPLETED
        Configuring IEO_TOP.......COMPLETED
        Configuring BIS_TOP.......COMPLETED
        Configuring CZ_TOP........COMPLETED
        Configuring SHT_TOP.......COMPLETED
        Configuring AMS_TOP.......COMPLETED
        Configuring CCT_TOP.......COMPLETED
        Configuring WSH_TOP.......COMPLETED
        Configuring CLN_TOP.......COMPLETED
        Configuring OKE_TOP.......COMPLETED
        Configuring OKL_TOP.......COMPLETED
        Configuring OKS_TOP.......COMPLETED
        Configuring CSF_TOP.......COMPLETED
        Configuring IBY_TOP.......COMPLETED
        Configuring JTF_TOP.......COMPLETED
        Configuring MWA_TOP.......COMPLETED
        Configuring CN_TOP........COMPLETED
        Configuring CSI_TOP.......COMPLETED
        Configuring WIP_TOP.......COMPLETED
        Configuring CSE_TOP.......COMPLETED
        Configuring EAM_TOP.......COMPLETED
        Configuring GMF_TOP.......COMPLETED
        Configuring PON_TOP.......COMPLETED
        Configuring FTE_TOP.......COMPLETED
        Configuring ONT_TOP.......COMPLETED
        Configuring AR_TOP........COMPLETED
        Configuring AHL_TOP.......COMPLETED
        Configuring IES_TOP.......COMPLETED
        Configuring OZF_TOP.......COMPLETED
        Configuring CSD_TOP.......COMPLETED
        Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.
Starting the Oracle E-Business Suite Application Tier Services
You are running adstrtal.sh version 120.24.12020000.11


The logfile for this session is located at /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adstrtal.log

Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/jtffmctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running jtffmctl.sh version 120.3.12020000.4

Validating Fulfillment patch level via /u01/install/APPS/fs1/EBSapps/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for ebsdb on port 9300 ...

jtffmctl.sh: exiting with status 0


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adopmnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adopmnctl.sh version 120.0.12020000.2

Starting Oracle Process Manager (OPMN) ...

adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adopmnctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

You are running adapcctl.sh version 120.0.12020000.6

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adapcctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adnodemgrctl.sh start -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running adnodemgrctl.sh version 120.11.12020000.12


Calling txkChkEBSDependecies.pl to perform dependency checks for ALL MANAGED SERVERS
Perl script txkChkEBSDependecies.pl got executed successfully


Starting the Node Manager...
Refer /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adnodemgrctl.txt for details

NodeManager log is located at /u01/install/APPS/fs1/FMW_Home/wlserver_10.3/common/nodemanager/nmHome1

adnodemgrctl.sh: exiting with status 0

adnodemgrctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adnodemgrctl.txt for more information ...


.end std out.
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/rgf/TXK/txkChkEBSDependecies_Tue_Jan_23_16_35_15_2024/txkChkEBSDependecies_Tue_Jan_23_16_35_15_2024.log

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adalnctl.sh start
Timeout specified in context file: 100 second(s)

script returned:
****************************************************

adalnctl.sh version 120.3.12020000.4

Checking for FNDFS executable.
Starting listener process APPS_ebsdb.

adalnctl.sh: exiting with status 0


adalnctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adalnctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adcmctl.sh start
Timeout specified in context file: 1000 second(s)

script returned:
****************************************************

You are running adcmctl.sh version 120.19.12020000.7

Starting concurrent manager for ebsdb ...
Starting ebsdb_0123@ebsdb Internal Concurrent Manager
Default printer is noprint

adcmctl.sh: exiting with status 0


adcmctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adcmctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/adadminsrvctl.sh start -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running adadminsrvctl.sh version 120.10.12020000.11

Starting WLS Admin Server...
Refer /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adadminsrvctl.txt for details

AdminServer logs are located at /u01/install/APPS/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/AdminServer/logs

adadminsrvctl.sh: exiting with status 0

adadminsrvctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adadminsrvctl.txt for more information ...


.end std out.

.end err out.

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






Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/admanagedsrvctl.sh start forms_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.12

Starting forms_server1...

Server specific logs are located at /u01/install/APPS/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/forms_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adformsctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/admanagedsrvctl.sh start oafm_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.12

Starting oafm_server1...

Server specific logs are located at /u01/install/APPS/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/oafm_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adoafmctl.txt for more information ...


.end std out.

.end err out.

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



Executing service control script:
/u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/scripts/admanagedsrvctl.sh start oacore_server1 -nopromptmsg
Timeout specified in context file: -1 second(s)

script returned:
****************************************************

You are running admanagedsrvctl.sh version 120.14.12020000.12

Starting oacore_server1...

Server specific logs are located at /u01/install/APPS/fs1/FMW_Home/user_projects/domains/EBS_domain/servers/oacore_server1/logs

admanagedsrvctl.sh: exiting with status 0

admanagedsrvctl.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adoacorectl.txt for more information ...


.end std out.

.end err out.

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



All enabled services for this node are started.

adstrtal.sh: Exiting with status 0

adstrtal.sh: check the logfile /u01/install/APPS/fs1/inst/apps/ebsdb_apps/logs/appl/admin/log/adstrtal.log for more information ...


Starting ECC Domain Admin Server ...
Started the ECC Admin Server successfully

ZooKeeper JMX enabled by default
Using config: /u01/install/APPS/Oracle/software/zookeeper/bin/../conf/zoo.cfg
Zookeeper is stopped . Starting zookeeper and Managed Server
ZooKeeper JMX enabled by default
Using config: /u01/install/APPS/Oracle/software/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
Starting the eccManaged ...
Started the eccManaged successfully

[oracle@ebs-12-2-12 ~]$


Enable sysadmin password.


To log in through the web interface, you must initially set a password of your choice for the SYSADMIN user. Once the sysadmin is active,  we can create new users or unlock existing users.


  
 [oracle@ebs-12-2-12 ~]$ . /u01/install/APPS/EBSapps.env run

  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System           : /u01/install/APPS/fs1/EBSapps/appl
  PATCH File System         : /u01/install/APPS/fs2/EBSapps/appl
  Non-Editioned File System : /u01/install/APPS/fs_ne


  DB Host: apps.example.com  Service/SID: ebsdb


  Sourcing the RUN File System ...

[oracle@ebs-12-2-12 ~]$ mkdir -p ~/logs
[oracle@ebs-12-2-12 ~]$ cd ~/logs



SYSADMIN : 
Password : Eclipsys123#


[oracle@ebs-12-2-12 logs]$ sh /u01/install/APPS/scripts/enableSYSADMIN.sh

This script will let you set a new password for the SYSADMIN EBS Applications User,
the default password most likely was "sysadmin", so pick a different one now.

Enter new password for SYSADMIN:
Re-enter password for SYSADMIN:
Enter password for APPS:
Changing password for SYSADMIN
Log filename : L7715838.log

Report filename : O7715838.out
[oracle@ebs-12-2-12 logs]$

  
 

Enable HTTP Access

As the Oracle user, use the configwebentry.sh script provided in the /u01/install/scripts directory to change the web entry point, which is by default set to the physical hostname of the virtual machine. For instance, you could follow the steps in this example to set the web entry point to apps.example.com and access the application using http://apps.example.com:8000/OA_HTML/AppsLogin:


[oracle@ebs-12-2-12 logs]$ /u01/install/scripts/configwebentry.sh


=====================NOTE=======================================
Web Entry Point refers to the host name which is designated to be used by all users to access the Oracle E-Business Suite Release 12.2 system.  
By default, the web entry point is set to the hostname of the application server where Oracle E-Business Suite is installed. 
This script can be used to configure a Web Entry Point for the E-Business Suite Application. 
The Web Entry Point can be the Public Hostname for the virtual machine apps.example.com or any other device such as a Hardware/Software 
Load Balancer or a reverse proxy server that can route the requests to the virtual machine apps.example.com
Enter the values for the following parameters to configure the Web Entry Point

Enter the Web Entry Protocol (Eg: https/http):http

Enter the Web Entry Host Name(Eg: public):apps

Enter the Web Entry Domain Name:(Eg: domain.com):example.com

Enter the Web Entry Port:(Eg: 443/80):8000

Enter the ORACLE_SID:(Eg: ebsdb):ebsdb


The Web Entry Point Parameters in the context file will be updated with
webentryprotcol=http
webentryhostname=apps
webentrydomain=example.com
webentryport=8000

Updating variable s_webentryurlprotocol in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http

Updating variable s_webentryhost in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  apps

Updating variable s_webentrydomain in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  example.com

Updating variable s_active_webport in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  8000

Updating variable s_login_page in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/OA_HTML/AppsLogin

Updating variable s_external_url in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/OA_HTML/AppsLogin

Updating variable s_chronosURL in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif

Updating variable s_endUserMonitoringURL in context file /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif


Updating Context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml
Updating variable s_webentryurlprotocol in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http

Updating variable s_webentryhost in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  apps

Updating variable s_webentrydomain in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  example.com

Updating variable s_active_webport in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  8000

Updating variable s_login_page in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/OA_HTML/AppsLogin

Updating variable s_external_url in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/OA_HTML/AppsLogin

Updating variable s_chronosURL in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif

Updating variable s_endUserMonitoringURL in context file /u01/install/APPS/fs2/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml with value:  http://apps.example.com:8000/oracle_smp_chronos/oracle_smp_chronos_sdk.gif

Running AutoConfig to complete the configuration
Enter the APPS user password:

The log file for this session is located at: /u01/install/APPS/fs1/inst/apps/ebsdb_apps/admin/log/01231724/adconfig.log


wlsDomainName: EBS_domain
WLS Domain Name is VALID.
AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /u01/install/APPS/fs1/inst/apps/ebsdb_apps
        Classpath                   : /u01/install/APPS/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/u01/install/APPS/fs1/EBSapps/comn/java/classes

        Using Context file          : /u01/install/APPS/fs1/inst/apps/ebsdb_apps/appl/admin/ebsdb_apps.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

        Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
        Configuring AD_TOP........COMPLETED
        Configuring FND_TOP.......COMPLETED
        Configuring ICX_TOP.......COMPLETED
        Configuring MSC_TOP.......COMPLETED
        Configuring IEO_TOP.......COMPLETED
        Configuring BIS_TOP.......COMPLETED
        Configuring CZ_TOP........COMPLETED
        Configuring SHT_TOP.......COMPLETED
        Configuring AMS_TOP.......COMPLETED
        Configuring CCT_TOP.......COMPLETED
        Configuring WSH_TOP.......COMPLETED
        Configuring CLN_TOP.......COMPLETED
        Configuring OKE_TOP.......COMPLETED
        Configuring OKL_TOP.......COMPLETED
        Configuring OKS_TOP.......COMPLETED
        Configuring CSF_TOP.......COMPLETED
        Configuring IBY_TOP.......COMPLETED
        Configuring JTF_TOP.......COMPLETED
        Configuring MWA_TOP.......COMPLETED
        Configuring CN_TOP........COMPLETED
        Configuring CSI_TOP.......COMPLETED
        Configuring WIP_TOP.......COMPLETED
        Configuring CSE_TOP.......COMPLETED
        Configuring EAM_TOP.......COMPLETED
        Configuring GMF_TOP.......COMPLETED
        Configuring PON_TOP.......COMPLETED
        Configuring FTE_TOP.......COMPLETED
        Configuring ONT_TOP.......COMPLETED
        Configuring AR_TOP........COMPLETED
        Configuring AHL_TOP.......COMPLETED
        Configuring IES_TOP.......COMPLETED
        Configuring OZF_TOP.......COMPLETED
        Configuring CSD_TOP.......COMPLETED
        Configuring IGC_TOP.......COMPLETED

AutoConfig completed with errors.

[oracle@ebs-12-2-12 logs]$

Access the EBS web console

Add this entry to the Windows server C:\\Windows\System32\drivers\etc file and access the EBS web console.





Conclusion

Concluding an Oracle E-Business Suite (EBS) Vision instance on Oracle Cloud Infrastructure (OCI) involves similar steps to those outlined for a demo instance but with some additional considerations. The Vision instance is often used for testing, training, or demonstration purposes. For Apps DBA this is a really good environment to play around with EBS in Oracle cloud infrastructure environment (OCI).

Unified Auditing Housekeeping

  Intro  Data is the new currency. It is one of the most valuable organizational assets, however, if that data is not well...