Friday, 4 September 2020

How to De-Installation of OLAP CATALOG 11.2.0.4.0 with Option Off

======================================

OLAP CATALOG

======================================

SQL > set lines 133 pages 133

SQL > col COMP_NAME format a40

SQL> select comp_name,version,status from dba_registry;

 

COMP_NAME                                VERSION                        STATUS

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

Oracle Machine Generated Data            12.1.0.2.0                     VALID

OLAP Catalog                             11.2.0.4.0                     OPTION OFF

Oracle XML Database                      12.1.0.2.0                     VALID

Oracle Text                              12.1.0.2.0                     VALID

Spatial                                  12.1.0.2.0                     VALID

Oracle Multimedia                        12.1.0.2.0                     VALID

Oracle Database Catalog Views            12.1.0.2.0                     VALID

Oracle Database Packages and Types       12.1.0.2.0                     VALID

Oracle Real Application Clusters         12.1.0.2.0                     OPTION OFF

JServer JAVA Virtual Machine             12.1.0.2.0                     VALID

Oracle XDK                               12.1.0.2.0                     VALID

Oracle Database Java Packages            12.1.0.2.0                     VALID

OLAP Analytic Workspace                  12.1.0.2.0                     VALID

Oracle OLAP API                          12.1.0.2.0                     VALID

Oracle Data Mining                       12.1.0.2.0                     VALID

 

15 rows selected.

[oracle@dbsc admin]$ cd

[oracle@dbsc ~]$ cd $ORACLE_HOME/

[oracle@dbsc 12.1.0]$ cd olap/

[oracle@dbsc olap]$ ls

admin  api  mesg

[oracle@dbsc olap]$ cd admin/

[oracle@dbsc admin]$ ls

apsdbmig.sql  apse920.sql   apsu111.sql   awmxsrol.sql  catnothing.sql  dbmsawx.sql   olapidrp.plb  olap.sql      utlolaplog.sql  xoqe102.sql   xoqrelod.sql  xoqu111.sql

apse101.sql   apspatch.sql  apsu112.sql   cataps.sql    catnoxoq.sql    dbmscbu.sql   olapidsm.plb  prvtawx.plb   xoqawmd.sql     xoqe111.sql   xoqroles.sql  xoqu112.sql

apse102.sql   apsrelod.sql  apsu920.sql   catawxml.sql  catxoq.sql      dbmscoad.sql  olapiecm.plb  prvtcbu.plb   xoqdbmig.sql    xoqe112.sql   xoqsys.sql    xoqu920.sql

apse111.sql   apsu101.sql   apsviews.sql  catnoamd.sql  catxoqsys.sql   olapiboo.plb  olapilib.plb  prvtcoad.plb  xoqdrop.sql     xoqe920.sql   xoqu101.sql   xumuts.plb

apse112.sql   apsu102.sql   awmcrxdb.plb  catnoaps.sql  creatind.sql    olapidcm.plb  olapimdm.plb  prvtcoas.plb  xoqe101.sql     xoqpatch.sql  xoqu102.sql

[oracle@dbsc admin]$ ls catno

catnoamd.sql    catnoaps.sql    catnothing.sql  catnoxoq.sql

[oracle@dbsc admin]$ ls catnoamd.sql

catnoamd.sql

[oracle@dbsc admin]$ sqlplus / as sysdba

 

SQL*Plus: Release 12.1.0.2.0 Production on Thu Jan 16 19:46:56 2020

 

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

 

 

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP and Real Application Testing options

 

SQL> @catnoamd.sql

 

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

Synonym dropped.

 

PL/SQL procedure successfully completed.

 

 

1 row deleted.

 

SQL>

SQL> col COMP_NAME format a40

SQL> set lines 133 pages 133

SQL> select comp_name,version,status from dba_registry;

 

COMP_NAME                                VERSION                        STATUS

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

Oracle Machine Generated Data            12.1.0.2.0                     VALID

OLAP Catalog                             11.2.0.4.0                     REMOVED

Oracle XML Database                      12.1.0.2.0                     VALID

Oracle Text                              12.1.0.2.0                     VALID

Spatial                                  12.1.0.2.0                     VALID

Oracle Multimedia                        12.1.0.2.0                     VALID

Oracle Database Catalog Views            12.1.0.2.0                     VALID

Oracle Database Packages and Types       12.1.0.2.0                     VALID

Oracle Real Application Clusters         12.1.0.2.0                     OPTION OFF

JServer JAVA Virtual Machine             12.1.0.2.0                     VALID

Oracle XDK                               12.1.0.2.0                     VALID

Oracle Database Java Packages            12.1.0.2.0                     VALID

OLAP Analytic Workspace                  12.1.0.2.0                     VALID

Oracle OLAP API                          12.1.0.2.0                     VALID

Oracle Data Mining                       12.1.0.2.0                     VALID

15 rows selected.

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP and Real Application Testing options

[oracle@dbsc admin]$ cd $ORACLE_HOME

[oracle@dbsc 12.1.0]$ cd rdbms/admin/

[oracle@dbsc admin]$ sqlplus / as sysdba


SQL*Plus: Release 12.1.0.2.0 Production on Thu Jan 16 19:48:13 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP and Real Application Testing options

 

SQL> @utlrp.sql

 

TIMESTAMP

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

COMP_TIMESTAMP UTLRP_BGN  2020-01-16 19:48:20

 

DOC>   The following PL/SQL block invokes UTL_RECOMP to recompile invalid

DOC>   objects in the database. Recompilation time is proportional to the

DOC>   number of invalid objects in the database, so this command may take

DOC>   a long time to execute on a database with a large number of invalid

DOC>   objects.

DOC>

DOC>   Use the following queries to track recompilation progress:

DOC>

DOC>   1. Query returning the number of invalid objects remaining. This

DOC>      number should decrease with time.

DOC>         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);

DOC>

DOC>   2. Query returning the number of objects compiled so far. This number

DOC>      should increase with time.

DOC>         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;

DOC>

DOC>   This script automatically chooses serial or parallel recompilation

DOC>   based on the number of CPUs available (parameter cpu_count) multiplied

DOC>   by the number of threads per CPU (parameter parallel_threads_per_cpu).

DOC>   On RAC, this number is added across all RAC nodes.

DOC>

DOC>   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel

DOC>   recompilation. Jobs are created without instance affinity so that they

DOC>   can migrate across RAC nodes. Use the following queries to verify

DOC>   whether UTL_RECOMP jobs are being created and run correctly:

DOC>

DOC>   1. Query showing jobs created by UTL_RECOMP

DOC>         SELECT job_name FROM dba_scheduler_jobs

DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>

DOC>   2. Query showing UTL_RECOMP jobs that are running

DOC>         SELECT job_name FROM dba_scheduler_running_jobs

DOC>            WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>#

 

PL/SQL procedure successfully completed.

 

 

TIMESTAMP

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

COMP_TIMESTAMP UTLRP_END  2020-01-16 19:49:01

 

DOC> The following query reports the number of objects that have compiled

DOC> with errors.

DOC>

DOC> If the number is higher than expected, please examine the error

DOC> messages reported with each object (using SHOW ERRORS) to see if they

DOC> point to system misconfiguration or resource constraints that must be

DOC> fixed before attempting to recompile these objects.

DOC>#

 

OBJECTS WITH ERRORS

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

                  5

 

DOC> The following query reports the number of errors caught during

DOC> recompilation. If this number is non-zero, please query the error

DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors

DOC> are due to misconfiguration or resource constraints that must be

DOC> fixed before objects can compile successfully.

DOC>#

 

ERRORS DURING RECOMPILATION

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

                          5

 

Function created.

 

PL/SQL procedure successfully completed.

 

Function dropped.

 

PL/SQL procedure successfully completed.

 

SQL>

 

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP and Real Application Testing options

[oracle@dbsc admin]$ sqlplus / as sysdba

 

SQL*Plus: Release 12.1.0.2.0 Production on Thu Jan 16 19:47:23 2020

 

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

 

 

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP and Real Application Testing options

 

SQL> col COMP_NAME format a40

SQL> set lines 133 pages 133

SQL> select comp_name,version,status from dba_registry;

 

COMP_NAME                                VERSION                        STATUS

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

Oracle Machine Generated Data   12.1.0.2.0                     VALID

Oracle XML Database                      12.1.0.2.0                     VALID

Oracle Text                                        12.1.0.2.0                     VALID

Spatial                                                12.1.0.2.0                     VALID

Oracle Multimedia                           12.1.0.2.0                     VALID

Oracle Database Catalog Views    12.1.0.2.0                     VALID

Oracle Database Packages and Types       12.1.0.2.0        VALID

Oracle Real Application Clusters   12.1.0.2.0                     OPTION OFF

JServer JAVA Virtual Machine        12.1.0.2.0                     VALID

Oracle XDK                                         12.1.0.2.0                     VALID

Oracle Database Java Packages     12.1.0.2.0                     VALID

OLAP Analytic Workspace              12.1.0.2.0                     VALID

Oracle OLAP API                               12.1.0.2.0                     VALID

Oracle Data Mining                         12.1.0.2.0                     VALID

 

14 rows selected.

 

SQL>


Wednesday, 2 September 2020

Oracle E-Business Suite R12 12.2.9 Weblogic Console & EM Is Not Open

 ISSUE

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


CAUSE:

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

  <connection-filter-rule>upgebs.oracle.com * * allow</connection-filter-rule>
  <connection-filter-rule>0.0.0.0/0 * * 
deny</connection-filter-rule>

Note: When you apply Critical Patch Update (CPU) released in April 2019 or TXK Delta 11 so your weblogic console and weblogic em getting shutdown on browser automatically for security reason. 

SOLUTION

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

Step -1 Source Run File System 

$ cd /u01/applmgr/upg/

$ source EBSapps.env run

  E-Business Suite Environment Information

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

  RUN File System                             : /u01/applmgr/upg/fs2/EBSapps/appl

  PATCH File System                         : /u01/applmgr/upg/fs1/EBSapps/appl

  Non-Editioned File System           : /u01/applmgr/upg/fs_ne

  DB Host: upgebs.oracle.com Service/SID: DELL

  Sourcing the RUN File System...

Step -2 Go to config.xml Location & Take Backup First Then Changes

$ cd $FMW_HOME/user_projects/domains/EBS_domain/config/ 

$ ls config.xml

config.xml

$ cp config.xml config.xml_org_28022020

$ vi config.xml

Before:

 <connection-filter-rule>upgebs.oracle.com * * allow</connection-filter-rule>

    <connection-filter-rule>0.0.0.0/0 * * deny</connection-filter-rule> 

After:

<connection-filter-rule>upgebs.oracle.com * * allow</connection-filter-rule>

    <connection-filter-rule>0.0.0.0/0 * * allow </connection-filter-rule>

Save

Note: This changes perform as some on Patch File System.

OR

Only Allow Access to Oracle WebLogic Server Administration Ports from Trusted Hosts

Step -3

Note: When you want to access weblogic console and em so you just add your system hostname or IP in Config.xml like below so you can access weblogic console/em.

$ cd $FMW_HOME/user_projects/domains/EBS_domain/config/

$ ls config.xml

config.xml

$ cp config.xml config.xml_org_28022020

$ vi config.xml

Before:

<connection-filter-rule>upgebs.oracle.com * * allow</connection-filter-rule>

    <connection-filter-rule>0.0.0.0/0 * * deny</connection-filter-rule>

After:

<connection-filter-rule>upgebs.oracle.com * * allow</connection-filter-rule>

<connection-filter-rule>140.1.25.65 * * allow</connection-filter-rule>

    <connection-filter-rule>0.0.0.0/0 * * allow </connection-filter-rule>

Step -4 Re-Bounce Application & Check weblogic console/em URL

$ cd $ADMIN_SCRIPTS_HOME

$ ./adstpall.sh apps/apps

Enter the WebLogic Server password: manager

$ ./adstrtal.sh apps/apps

Enter the WebLogic Server password: manager

Weblogic Console

URL:  http://upgebs.oracle.com:7002/console


 Weblogic Enterprise Manager

 URL: http://upgebs.oracle.com:7002/em


How To Apply Consolidated Upgrade Patch (CUP American Patch) For E-Business Suite 12.2.x

 Note: We will follow this document for CUP Patch and AMERICAN Patch “Oracle E-Business Suite Release Notes, Release 12.2 (Doc ID 1320300.1)”

Section 3: Instructions for Upgrade Customers

3.1 Apply Consolidated Upgrade Patch and Run 12.2.0 Upgrade (required)

 Source Application Environment and unzip CUP Patch with check RUN File Edition

Step-1

$ source /u01/applmgr/upg/fs1/EBSapps/appl/APPSDELL_upgebs.env

$ echo $FILE_EDITION

run

$ cd /u01/install/patches/apps/cup_patches/

$ unzip -o  p28853097_12.2.0_R12_LINUX.zip

Apply CUP Patch

Step-2 

$ cd /u01/install/patches/apps/cup_patches/28853097

$

$ adpatch preinstall=y

Filename [adpatch.log] : 28853097.log

The default directory is [/u01/install/patches/apps/cup_patches/28853097] :

Please enter the name of your AutoPatch driver file : u28853097.drv

AutoPatch is complete.

AutoPatch may have written informational messages to the file

/u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/log/28853097.lgi

Errors and warnings are listed in the log file

/u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/log/28853097.log

and in other log files in the same directory.

[oracle@upgebs 28853097]$

During American Patch Errors & Solution (Fixing) 

Note: Before Apply American Patch we will have fixes all issues as per below Errors.

##### ERROR #####

sqlplus -s APPS/***** @/u01/applmgr/upg/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql '/u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql/affdlredef.sql &un_apps &pw_apps'

Connected.

PL/SQL procedure successfully completed.

     dbms_redefinition.start_redef_table(l_applsys_schema,'FND_DOCUMENTS_LONG_TEXT','FND_DOCUMENTS_LONG_TEXTINT',col_mapping);

      *

ERROR at line 106:

ORA-06550: line 106, column 7:

PLS-00201: identifier 'DBMS_REDEFINITION' must be declared

ORA-06550: line 106, column 7:

PL/SQL: Statement ignored

ORA-06550: line 109, column 7: 

#### SOLUTION ####

SQL> conn system/manager

Connected.

SQL> grant execute on dbms_redefinition to applsys;

change table FND_DOCUMENTS_LONG_TEXT datatype long - clob

run adgrant.sql applsys and apps

run utlrp.sql via sqlplus sys / as sysdba

##### ERROR #####

(This error was not occurring

Connecting to AP......Unable to connect. 

AutoPatch error: The following ORACLE error: 

ORA-28000: the account is locked   occurred while executing the SQL statement:  CONNECT AP/*****

#### SOLUTION ####

select username,ACCOUNT_STATUS,PROFILE from dba_users where username='APPS';

select resource_name, limit from dba_profiles

where resource_type = 'PASSWORD' and profile = 'DEFAULT';

SQL> conn system/manager

Connected.

SQL> alter user ap account unlock;

User altered.

SQL> conn ap/ap

Connected.

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

[oracle@upgebs admin]$

##### ERROR #####

Uploading from the data file /u01/applmgr/upg/fs1/EBSapps/appl/ast/12.0.0/patch/115/import/US/astprofs.ldt

Altering database NLS_LANGUAGE environment to AMERICAN

Dumping from LCT/LDT files (/u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/import/afscprof.lct(120.14), /u01/applmgr/upg/fs1/EBSapps/appl/ast/12.0.0/patch/115/import/US/astprofs.ldt) to staging tables

Dumping LCT file /u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/import/afscprof.lct(120.14) into FND_SEED_STAGE_CONFIG

Dumping LDT file /u01/applmgr/upg/fs1/EBSapps/appl/ast/12.0.0/patch/115/import/US/astprofs.ldt into FND_SEED_STAGE_ENTITY

Dumped the batch (PROFILE AST_SCRIPTING_SERVER , PROFILE AST_WRAPUP_CALL_STATS_END_DATE ) into FND_SEED_STAGE_ENTITY

Uploading from staging tables

  Error loading seed data for PROFILE:  PROFILE_NAME = AST_WRAPUP_CALL_STATS_START_DATE,  ORA-04091: table APPLSYS.FND_PROFILE_OPTIONS is mutating, trigger/function may not see it

ORA-06512: at "APPS.FND_PROFILE", line 177

ORA-06512: at "APPS.FND_PROFILE", line 1716

ORA-06512: at "APPS.ALR_FND_PROFILE_OPTIONS_IAR", line 1

ORA-04088: error during execution of trigger 'APPS.ALR_FND_PROFILE_OPTIONS_IAR'

ORA-06512: at "APPS.FND_PROFILE_OPTIONS_PKG", line 46

ORA-06512: at "APPS.FND_PROFILE_OPTIONS_PKG", line 1238

ORA-01403: no data found

  Error loading seed data for PROFILE:  PROFILE_NAME = AST_WRAPUP_CALL_STATS_END_DATE,  ORA-04091: table APPLSYS.FND_PROFILE_OPTIONS is mutating, trigger/function may not see it

ORA-06512: at "APPS.FND_PROFILE", line 177

ORA-06512: at "APPS.FND_PROFILE", line 1716

ORA-06512: at "APPS.ALR_FND_PROFILE_OPTIONS_IAR", line 1

ORA-04088: error during execution of trigger 'APPS.ALR_FND_PROFILE_OPTIONS_IAR'

ORA-06512: at "APPS.FND_PROFILE_OPTIONS_PKG", line 46

ORA-06512: at "APPS.FND_PROFILE_OPTIONS_PKG", line 1238

ORA-01403: no data found

Concurrent request completed

Current system time is Mon Feb 10 23:00:44 2020

##### SOLUTION #####

ORA-04091: Table APPLSYS.FND_PROFILE_OPTION_VALUES Is Mutating, Trigger/function May Not See

It Error While Running ADOP Prepare Phase from Clone (Doc ID 2481349.1)

[oracle@upgebs log]$ sqlplus apps/apps

SQL*Plus: Release 10.1.0.5.0 - Production on Tue Feb 11 09:34:12 2020

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> Alter TRIGGER APPS.ALR_FND_PROFILE_OPTIONS_IAR disable;

Trigger altered.

SQL>

========================================================================

ERROR (its would be take lots of time during American patch we have applying another patch p20655260_R12.OWF.C_R12_GENERIC.zip)

=========================================================================

 4  Run       AutoPatch R120 pl  wfdspifx.sql                Restarted

sqlplus -s APPS/APPS @/u01/applmgr/upg/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql '/u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql/wfdspifx.sql'

Connected.

PL/SQL procedure successfully completed.

###### SOLUTION ######

E:\upgrade_abc_1213_122x\patches\apps\Pre_patch_owf

p20655260_R12.OWF.C_R12_GENERIC

How To Reduce The Size Of Tables WF_LOCAL_ROLES, WF_LOCAL_USER_ROLES, And WF_USER_ROLE_ASSIGNMENTS ? (Doc ID 1454205.1)

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

The size of tables wf_local_roles, wf_local_user_roles, and wf_user_role_assignment can be reduced by purging adhoc roles,

and their assignments for expired roles This can be done through the use of either of the following API's:

wf_purge.directory(<end_date>, <orig_system>)

wf_purge.AdHocDirectory(<end_date>)

The API's will purge all roles that past the end_date and with no outstanding notification, and it also checks

the ORIGINAL_RECIPIENT as well as the RECIPIENT_ROLE just in case a 'Delegate' happened, the original owner will not get purged.

Even though the naming convention implies that wf_purge.directory allows purge of roles from different orig_system,

but the API has a hard-coded condition that the roles to be purged are those with orig_system set to WF_LOCAL_ROLES,

or WF_LOCAL_USERS, and partition_id set to zero, to ensure that only expired adhoc roles are purged. So, either of them can be used.

This limitation is an intended design to ensure historical data exists of previous assignments of non-adhoc roles.

To execute the API, please run the following to purge all roles that were expired till current date:

sqlplus apps/<apps_password>

exec WF_PURGE.directory(sysdate);

commit;

 To identify the records that are valid for purging, please use the following query:

select local.NAME, local.ORIG_SYSTEM, local.ORIG_SYSTEM_ID,

          local.USER_FLAG

    from  WF_LOCAL_ROLES local

    where PARTITION_ID = 0

    and   ORIG_SYSTEM in ('WF_LOCAL_ROLES', 'WF_LOCAL_USERS')

    and    EXPIRATION_DATE <= sysdate

    and not exists

          (select NULL

           from   WF_ROLE_HIERARCHIES

           where  SUPER_NAME = local.NAME

           or     SUB_NAME   = local.NAME)

    and not exists

          (select NULL

           from   WF_USER_ROLE_ASSIGNMENTS

           where  USER_NAME = local.NAME

           and     RELATIONSHIP_ID <> -1)

    and not exists

          (select NULL

             from WF_NOTIFICATIONS wn

            where wn.RECIPIENT_ROLE = local.NAME

               or wn.ORIGINAL_RECIPIENT = local.NAME)

    and not exists

          (select NULL

             from WF_ITEMS wi

            where wi.OWNER_ROLE = local.NAME);

The tables affected by the API are as follows:

WF_LOCAL_USER_ROLES

WF_USER_ROLE_ASSIGNMENTS

WF_LOCAL_ROLES

###### Extra Steps ######

[oracle@upgebs trace]$ cd /u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql/

[oracle@upgebs sql]$ ls wfdspifx.sql

wfdspifx.sql

[oracle@upgebs sql]$ mv wfdspifx.sql wfdspifx.sql_org

[oracle@upgebs sql]$ pwd

/u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql

File "wfdspifx.sql" copy from

windows directory=E:\upgrade_abc_1213_122x\patches\apps\Pre_patch_owf\p20655260_R12.OWF.C_R12_GENERIC\20655260\fnd\patch\115\sql

to fs1 directory=/u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/patch/115/sql

[oracle@upgebs sql]$ ls wfdspifx.sql

wfdspifx.sql

[oracle@upgebs sql]$ ls wfdspifx.sql*

wfdspifx.sql  wfdspifx.sql_org

[oracle@upgebs sql]$

###### ERROR ######

sqlplus -s APPS/***** @/u01/applmgr/upg/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql '/u01/applmgr/upg/fs1/EBSapps/appl/xla/12.0.0/patch/115/sql/xlaaxuap.sql &un_ax &batchsize'

Connected.

PL/SQL procedure successfully completed.

                AX_DOCUMENT_STATUSES AD,

                *

ERROR at line 549:

ORA-06550: line 549, column 3:

PL/SQL: ORA-00942: table or view does not exist

ORA-06550: line 268, column 9:

PL/SQL: SQL Statement ignored

###### SOLUTION ######

R12 AP/XLA: xlaaxuap.sql Failed With ORA-00942: Table or View Does Not Exist During Upgrade From R12.1.3 To R12.2 (Doc ID 2166763.1)

SQL> conn apps/apps

Connected.

SQL> set lines 250 pages 250

SQL> col OWNER format a20

SQL> col SUBOBJECT_NAME format a20

SQL> col EDITION_NAME format a20

SQL> col EDITION_NAME format a10

SQL> col OBJECT_NAME format a25

SQL> select * from dba_objects where object_name like 'AX_DOCUMENT_STATUSES%';

OWNER      OBJECT_NAME               SUBOBJECT_NAME        OBJECT_ID DATA_OBJECT_ID OBJECT_TYPE             CREATED   LAST_DDL_ TIMESTAMP           STATUS  T G S  NAMESPACE EDITION_NA SHARING       E O

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

AX         AX_DOCUMENT_STATUSES_U1                             48915          48915 INDEX                   14-NOV-10 14-NOV-10 2010-11-14:10:27:04 VALID   N N N          4            NONE        N

AX         AX_DOCUMENT_STATUSES                                48914          48914 TABLE                   14-NOV-10 17-MAY-13 2010-11-14:10:27:04 VALID   N N N          1            NONE        N

SQL> create synonym AX_DOCUMENT_STATUSES for ax.AX_DOCUMENT_STATUSES ;

Synonym created.

SQL>

Apply American Patch (Upgrade Path)

Merge American Upgrade Patch

Step-1

$ cd $AU_TOP/patch/115/driver

$ ls

augenmsg.drvx  ausstats.drvx  u10124646.drv  u10201000.drv

$ admrgpch -d . -preinstall -master u10124646.drv

Executing the merge of the patch drivers

 -- Processing file: /u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/preinstall/u28853097.drv

 -- Done processing file: /u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/preinstall/u28853097.drv

 -- Processing file: u10124646.drv

 -- Done processing file: u10124646.drv

  2 unified drivers merged.

Patch merge completed successfully

Please check the log file at ./admrgpch.log.

$ ls

admrgpch.log  augenmsg.drvx  ausstats.drvx  u10124646.drv  u10201000.drv  u_merged.drv

                                                    Apply American Upgrade Patch

Step-2 

$ adpatch options=nocopyportion,nogenerateportion

Filename [adpatch.log] : 10201000.log

Enter the password for your 'SYSTEM' ORACLE schema: 

Enter the ORACLE password of Application Object Library [APPS] :

The default directory is [/u01/applmgr/upg/fs1/EBSapps/appl/au/12.0.0/patch/115/driver] :

Please enter the name of your AutoPatch driver file : u_merged.drv

sqlplus -s APPS/***** @/u01/applmgr/upg/fs1/EBSapps/appl/ad/12.0.0/patch/115/sql/adsqlwrapper.sql '/u01/applmgr/upg/fs1/EBSapps/appl/ad/12.0.0/sql/adtpurge.sql 10 1000'

Done purging timing information for prior sessions.

AutoPatch is complete.

AutoPatch may have written informational messages to the file

/u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/log/adpatch.lgi

Errors and warnings are listed in the log file

/u01/applmgr/upg/fs1/EBSapps/appl/admin/DELL/log/adpatch.log

and in other log files in the same directory.

[oracle@upgebs driver]$

AMERICAN PATCH Completed.

Note: You can apply this document its alternate of CUP Patch

R12.1 and 12.2 Oracle E-Business Suite Preinstall Patches Report (Doc ID 1448102.2)



(Native Plug-in) JRE UPGRADE In Apps R12.2 FROM JRE 6 TO JRE 8

 Document: Deploying JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 (Doc ID 393931.1)

Step -1 Source RUN File System Environment in Application

$ apps2

  E-Business Suite Environment Information

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

  RUN File System                           : /u01/applmgr/upg/fs2/EBSapps/appl

  PATCH File System                       : /u01/applmgr/upg/fs1/EBSapps/appl

  Non-Editioned File System         : /u01/applmgr/upg/fs_ne

  DB Host: upgebs.hinopak.com  Service/SID: DELL

  Sourcing the RUN File System ...

Step -2 Apply adop Prepare Phase for Applying the Patch

$ adop phase=prepare

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

Step -3 Apply Patch for JRE Upgrade (p26100397_R12.TXK.C_R12_GENERIC.zip)

$ cd /u01/install/Jre_upgrade_12.2.9/

$ cp p26100397_R12.TXK.C_R12_GENERIC.zip /u01/applmgr/upg/fs_ne

$ cd /u01/applmgr/upg/fs_ne/EBSapps/patch/

$ unzip -o p26100397_R12.TXK.C_R12_GENERIC.zip

$ adop phase=apply patches=26100397

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

Step -4 Apply remaining adop Phases

$ adop phase=finalize

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

$ adop phase=cutover

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

$ adop phase=cleanup

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

Step -5 Rename the JRE Plugin File

$ cd /u01/install/Jre_upgrade_12.2.9

$ chmod -Rf 775 jre-8u241-windows-i586.exe

$ ll jre-8u241-windows-i586.exe

-rwxrwxr-x 1 oracle dba 68477472 Mar 11 17:49 jre-8u241-windows-i586.exe

$ cp jre-8u241-windows-i586.exe j2se18241.exe

$ ll *.e

-rwxr-xr-x 1 oracle dba 68477472 Mar 11 17:51 j2se18241.exe

-rwxrwxr-x 1 oracle dba 68477472 Mar 11 17:49 jre-8u241-windows-i586.exe

Step -6 Place the Renamed JRE Plugin on the Web Application Tier

Note: Move the j2se<jversion>.exe file to the web application tier and place it in the following directory in the RUN File System:

$ cd $COMMON_TOP/webappoacore/util/javaplugin

$ ll

-rw-r--r-- 1 oracle dba 16897824 Aug 17  2011 j2se16027.exe

-rw-r--r-- 1 oracle dba      943 Aug 16  2011 readme.html

Note: Above Jre 6 Version j2se16027.exe is currently in use we would be replacing our jre 8 version j2se18241.exe

$ cd /u01/install/Jre_upgrade_12.2.9/

$ cp j2se18241.exe $COMMON_TOP/webapps/oacore/util/javaplugin

$ cd $COMMON_TOP/webapps/oacore/util/javaplugin

$ ll *.exe

-rw-r--r-- 1 oracle dba 16897824 Aug 17  2011 j2se16027.exe

-rwxr-xr-x 1 oracle dba 68477472 Mar 11 18:01 j2se18241.exe

Step -7 Upgrade and Configuration

$ cd  $FND_TOP/bin  ---------------------- (Go to Jre Upgrade Script Directory)

$ ls txkSetPlugin.sh

txkSetPlugin.sh

$ txkSetPlugin.sh 18241    ---------------- (Run Jre Upgrade Script)

Enter the APPS user password: apps

AutoConfig completed successfully.

Done

12CR1 Database JRE Upgrade version 6 to version 7 64bit

 Note: It’s a conditional but in Oracle- EBS R 12.2 using latest jdk 7 and and jre 7 thant`s why we are doing upgrade Database Tier level jre. Upgrade book is referring this Certified Document for Jre Upgrade. “Using the Latest JDK 7.0 Update with Oracle E-Business Suite Release 12.2 (Doc ID 1530033.1)”.

Review & Download certified version of JRE 7

Step-1  

Section 9: Upgrading to Latest JRE 7.0 on Database Tier Node

Step 9.1: Download Latest JRE 7.0 Update

Note: All Java SE Downloads on MOS (Doc ID 1439822.1) download jre from this note and patch below mention.

p15869354_170100_Linux-x86-64.zip

Unzip Patch/un-tar and Rename All JRE Directories in Database Tier Level

Step-2

Step 9.2: Replace JRE Home Used With Oracle E-Business Suite Release 12.2

$ cd $ORACLE_HOME/appsutil

$ cd bin/

$ ./java -version

java version "1.6.0_75"

Java(TM) SE Runtime Environment (build 1.6.0_75-b13)

Java HotSpot(TM) 64-Bit Server VM (build 20.75-b01, mixed mode)

$ cd $ORACLE_HOME/appsutil

$ mv jre/ jre_1.6_old

Note: Above step is enough as per oracle recommendation and documentation but we will perform some extra step for save side because jre is exist other than two locations.

$ cd /u02/oracle/db/tech_st/12.1.0/appsutil/jdk

$ mv jre/ jre_1.6_old

$ cd $ORACLE_HOME/jdk

$ mv jre/ jre_1.6_old

$ cd /u01/install/patches/dbs/jdk_jre/

$ unzip -o p15869354_170100_Linux-x86-64.zip

$ tar -xvf  jre-7u10-linux-x64.tar.gz

$ ls

jdk-7u10-linux-x64.rpm jdk-7u10-linux-x64.tar.gz  jre1.7.0_10  jre-7u10-linux-x64.rpm  jre-7u10-linux-x64.tar.gz  p15869354_170100_Linux-x86-64.zip  readme.txt

Copy JRE Directory in Database Tier Level  

Step-3

$ cp -rf jre1.7.0_10/ $ORACLE_HOME/appsutil

$ cd $ORACLE_HOME/appsutil

$ mv jre1.7.0_10/ jre

$ cd /u01/install/patches/dbs/jdk_jre/

$ cp -rf jre1.7.0_10 /u02/oracle/db/tech_st/12.1.0/appsutil/jdk

$ cd /u02/oracle/db/tech_st/12.1.0/appsutil/jdk

$ mv jre1.7.0_10/ jre

$ cd /u01/install/patches/dbs/jdk_jre/

$ cp -rf jre1.7.0_10/ $ORACLE_HOME/jdk

$ cd $ORACLE_HOME/jdk

$ ls

bin  COPYRIGHT  include  jre_1.6_old  jre1.7.0_10  lib  LICENSE  README.html  THIRDPARTYLICENSEREADME.txt

$ mv jre1.7.0_10 jre

JRE Version Verification

Step-4

Section 10: Verify JRE Installation on Database Tier Node

$ cd $ORACLE_HOME/appsutil

$ cd jre/bin/

$ ./java -version

java version "1.7.0_10"

Java(TM) SE Runtime Environment (build 1.7.0_10-b18)

Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Tuesday, 1 September 2020

Apply Patch 12.2.9 RUB

 

Document: Oracle E-Business Suite Release 12.2.9 Readme (Doc ID 2495027.1)

Solutions of Errors 12.2.9 Patch

############################ ERROR############################

ERROR at line 1: ORA-06501: PL/SQL: program error ORA-06512: at "APPS.HR_API_USER_HOOKS_UTILITY", line 891 ORA-06512: at line 1

################### SOLUTION 1 ########################

Patch 24354016: APPS.HR_API_USER_HOOKS_UTILITY ERRORS DURING UPGRADE TO 12.2.0

Peaddasd.sql error when applying 21900901 (Doc ID 2301823.1)

SR: Provide the Solution Skipe this worker.

[oracle@upgebs ~]$ cd /u01/applmgr/upg/

[oracle@upgebs upg]$ source EBSapps.env run

  E-Business Suite Environment Information

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

  RUN File System           : /u01/applmgr/upg/fs1/EBSapps/appl

  PATCH File System         : /u01/applmgr/upg/fs2/EBSapps/appl

  Non-Editioned File System : /u01/applmgr/upg/fs_ne

  DB Host: upgebs.hinopak.com  Service/SID: DELL

  Sourcing the RUN File System ...

[oracle@upgebs sql]$ sqlplus apps/apps

SQL> BEGIN hr_api_user_hooks_utility.clear_hook_report; END;

  2  /

PL/SQL procedure successfully completed.

##################### SOLUTION 2 ##################

##### Peaddasd.sql error when applying 21900901 (Doc ID 2301823.1) ##### 

1. The job can be skipped by using hidden option 8 in adctrl to skip the failed worker

2. Once the patch is applied, please check if the package HR_PERSON_ADDRESS_BK3 is valid.

select owner,object_name, object_type,status from dba_objects

where object_name = 'HR_PERSON_ADDRESS_BK3';

3. Run peaddasd.sql manually.

$ cd $PER_TOP/patch/115/sql/

$ sqlplus apps/apps

SQL> @peaddasd.sql

####################### ERROR #####################

[oracle@upgebs collect]$ /u01/applmgr/upg/fs1/EBSapps/appl/fnd/12.0.0/bin/fdfcmp apps 0 Y K N

ORACLE Password:

Log filename : L484721.log

Report filename : O484721.out

[oracle@upgebs collect]$ vi O484721.out

[oracle@upgebs collect]$ vi L484721.log

ADWORKER001.log

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

Application Id: 800

    Short Name: PER

          Name: Human Resources

Flexfield Code: CMP

          Name: Competence Flexfield

 Structure Num: 50370

          Code: PENSION_COMPTENCE_FLEXFIELD

          Name: Pension Competence Flexfield

Compilation aborted for current key flexfield...

APP-FND-00668: The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: FDFRKS could not find the structure definition for the flexfield specified by Application = &APPL, Code = CMP and Structure number = 50370 (APPID=800)

FDFBKS: REQUIRED constraint specified for the Default Attribute qualifier is not satisfied

######################### SOLUTION##########################

How To Solve Compiling Competence Flexfield APP-FND-00668 Error ? (Doc ID 473554.1)

Unable to add segments to Competence flexfield - Error "APP-FND-00668: The data that defines the flexfield on this field may be inconsistent" (Doc ID 2571696.1)

Solution from SR request:

To implement the solution, please execute the following steps:

1. Skip the Failed worker

2. After the upgrade completes:

SELECT ID_FLEX_STRUCTURE_CODE from fnd_id_flex_structures

where ID_FLEX_NUM= 50370

3. Navigation: System Administrator

4. > Application > Flexfield > Key > Segments > Competence Flexfield

Unfreeze your structure and set the attribute "Default Attribute" for one segment.

5.. Retest the issue.

6 Migrate the solution as appropriate to other environments. (suggestion is to make the flexfield correction prior to upgrade to avoid the error)

Note: Must Fix Before Apply 12.2.9 RUB Patch.

Step -1 Source the run edition applications environment

$ cd /u01/applmgr/upg/

$ source EBSapps.env run

Step -2 Stop Oracle WebLogic Server's Admin Server and Node Manager Services.

Note: To apply a patch in downtime mode, you must shut down all application tier services, including the Oracle WebLogic Server Admin Server and Node Manager.

A-     Stop the Oracle WebLogic Server Admin Server on the run file system.

$  sh $ADMIN_SCRIPTS_HOME/adadminsrvctl.sh stop

Enter the WebLogic Admin password: Oracle_123

Enter the APPS Schema password: apps

B-     Stop the Oracle WebLogic Server Node Manager Service on the run file system.

$ sh $ADMIN_SCRIPTS_HOME/adnodemgrctl.sh stop

Enter the WebLogic Admin password: Oracle_123

C-     OR we can stop all application serveries

$ sh $ADMIN_SCRIPTS_HOME/adstpall.sh

Enter the APPS username: apps

Enter the APPS password: apps

Enter the WebLogic Server password: Oracle_123

Step -3 Apply Oracle E-Business Suite 12.2.9 Release Update Pack Patch 28840850 on the run edition application environment, using downtime mode.

$ adop phase=apply apply_mode=downtime patches=28840850

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WebLogic Server password: Oracle_123

Step -4 Start all application tier services on the run file system.

$ sh $ADMIN_SCRIPTS_HOME/adstrtal.sh

Enter the APPS username: apps

Enter the APPS password: apps

Enter the WebLogic Server password: Oracle_123

Step -5 Perform adop cleanup action.

$ adop phase=cleanup

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

Step -6 Synchronize file systems

Note: Synchronize the file systems using the command shown below. This action will copy the new run edition code and configuration to the other file system, to ensure that both file systems are in sync before applying patches using the regular adop cycle on the other file system.

$ adop phase=fs_clone

Enter the APPS password: apps

Enter the SYSTEM password: manager

Enter the WLSADMIN password: Oracle_123

Step -7 Post-Update Steps

 A-     Apply Oracle E-Business Suite Release 12.2.9 Online Help

 Note: Apply Oracle E-Business Suite Release 12.2.9 Online Help Patch 28840900 using adop hotpatch mode on the run file system.

$ adop phase=apply patches=28840900 hotpatch=yes

 Enter the APPS password: apps

 Enter the SYSTEM password: manager

 Enter the WebLogic Server password: Oracle_123 

 


Monday, 24 August 2020

Domain might be locked by some other WLS user process


Error:-

Validating configuration on node: [upgebs].

    Log: /u01/applmgr/upg/fs_ne/EBSapps/log/adop/10/20200304_084950/fs_clone/validate/upgebs

[WARNING]: There could be issues while validating the ports used for E-Business Suite instance against ports used in /etc/services. Refer the log file for more details.

               [ERROR]: Domain might be locked by some other WLS user process

    [UNEXPECTED]Error occurred running "perl /u01/applmgr/upg/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPValidations.pl -contextfile=/u01/applmgr/upg/fs2/inst/apps/DELL_upgebs/appl/admin/DELL_upgebs.xml -patchctxfile=/u01/applmgr/upg/fs1/inst/apps/DELL_upgebs/appl/admin/DELL_upgebs.xml -phase=fs_clone -logloc=/u01/applmgr/upg/fs_ne/EBSapps/log/adop/10/20200304_084950/fs_clone/validate/upgebs -promptmsg=hide"

    [UNEXPECTED]Error 1 occurred while Executing txkADOPValidation script on upgebs


Note: When you run adop phase=fs_clone or phase=prepare below error is accruing here.


Solution:-

To resolve the issue test the following steps in a development instance and then migrate accordingly:

1. Start the admin server on the run file system (if not started already).

2. Login in to WLS Admin Console (http(s)://hostname.domain:<adminport>/console)

3. Click on the "Activate Changes" or the "Release Configuration" button (depending on the version) in the "Change Center" region on the top left corner.

4. Logout of the WLS console.

5. Rerun the adop phase=prepare command and confirm adop completes successfully.

Document: 12.2 ADOP Prepare Phase Fails with message " [ERROR]: Domain might be locked by some other WLS user process" and "[UNEXPECTED] Error 1 occurred while Executing txkADOPValidation script" (Doc ID 2042785.1)