Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Syed Saad Ali

Oracle ACE Pro

Oracle Solution Architect

Oracle E-Business Suite

Oracle Cloud Infrastructure

Oracle Fusion Middleware

Oracle Database Administration

Oracle Weblogic Administration

Installations/Configurations-Applications

June 14, 2017 How to Create a Read-Only APPS Schema?
Installations/Configurations-ApplicationsOracle APPS DBA

How to Create a Read-Only APPS Schema?

 

We are going to create a schema similar to the APPS schema having only read-only privileges.

 

Step 1. Create the user for the required schema:

  • SQL> connect system/manager
  • SQL> create user <your_user> identified by <your_user_password> default tablespace;
  • SQL><tablespace_to_assign_to_user> temporary tablespace temp;

 

Step 2. Grant connect and resource privileges to your user:

  • SQL> connect system/manager
  • SQL> grant connect, resource to <your_user>;

 

Step 3. Use the following select statement to generate a script that will grant privileges on APPS objects to your User.

This select statement would generate a script that will grant almost all required permissions to a user called READONLY.

SELECT 'GRANT ' 
       || Decode(O.object_type, 'TABLE', 'SELECT', 
                                'VIEW', 'SELECT', 
                                'EXECUTE') 
       || ' ON ' 
       || Decode(O.owner, 'PUBLIC', '', 
                          O.owner 
                          || '.') 
       || '"' 
       || O.object_name 
       || '"' 
       || ' TO MYUSER;' COMMAND 
FROM   all_objects O 
WHERE  O.object_type IN ( 'TABLE', 'PACKAGE', 'PACKAGE BODY', 'PROCEDURE', 
                          'VIEW', 'FUNCTION' ) 
UNION 
SELECT 'GRANT ' 
       || Decode(O2.object_type, 'TABLE', 'SELECT', 
                                 'VIEW', 'SELECT', 
                                 'EXECUTE') 
       || ' ON ' 
       || Decode(O.owner, 'PUBLIC', '', 
                          O.owner 
                          || '.') 
       || '"' 
       || O.object_name 
       || '"' 
       || ' TO READONLY;' COMMAND 
FROM   all_objects O, 
       all_objects O2, 
       dba_synonyms S 
WHERE  O.object_type = 'SYNONYM' 
       AND O.object_name = S.synonym_name 
       AND O2.object_name = S.table_name 
       AND O2.object_type IN ( 'TABLE', 'PACKAGE', 'PACKAGE BODY', 'PROCEDURE', 
                               'VIEW', 'FUNCTION' )

 

Now, Use the following select statement to generate a script that will create synonyms in <your_user> schema for all objects owned by APPS.

SELECT ‘CREATE SYNONYM MYUSER.’ || O.OBJECT_NAME || ‘ FOR APPS.’ || O.OBJECT_NAME || ‘;’ COMMAND FROM DBA_OBJECTS O WHERE O.Owner = ‘APPS’

 

Run the above two scripts as SYS user.

 

 

 

June 12, 2017 How to get table information? How to get About this Page link in OA page in R12
Installations/Configurations-ApplicationsOracle APPS DBA

How to get table information? How to get About this Page link in OA page in R12

How to find supplier related view / table information in web page environment?

Step 1. Navigate to the Supplier Page

Step 2. Click on the About this page link

Step 3. Click Expand All

Step 4. You will be seeing SuppSrchVO, SupplierVO and SitesVO

Step 5. If you click on that view it will show you the query used.

How to get the About this Page link in OA page?

To get the About this Page Link, Please ensure the below Profile option is set to Yes at site level:

  • FND: Diagnostics
  • System Administrator > Profile > System

The FND: Diagnostics profile option controls whether the Diagnostics button is rendered.

It also controls the display of the About this Page link.

You may also set below

  • Personalize Self-Service Defn : Yes
  • FND: Personalization Region Link Enabled : Yes 
  • FND: Diagnostics : Yes

 

Add the below responsibilities to the user:

System Administrator > Security > User > Define

  • FND Html Forms
  • Functional Administrator
  • Functional Developer

1. Once done bounce the apache

2. Retest the issue

3. Migrate the solution to other environments as appropriate.

 

 

May 31, 2017 How to restart ADOP from FAILED session – R12.2 Online Patching
APPS DBAInstallations/Configurations-Applications

How to restart ADOP from FAILED session – R12.2 Online Patching

Sometimes during prepare or apply phase of ADOP, some error occurs and you wants to Restart the ADOP session.

Perform following steps.:

$adop phase=abort
Enter the APPS password:

Enter the SYSTEM password:

Enter the WLSADMIN password:

Please wait. Validating credentials…

.
.
.
.
.
.
.
.
adop phase=abort – Completed Successfully

Log file: /u01/appltest/fs_ne/EBSapps/log/adop/40/adop_20141257_01987.log
adop exiting with status = 0 (Success)
$

May 31, 2017 Oracle APPLICATION R12 Log File Locations
APPS DBAInstallations/Configurations-Applications

APPS R12 LOG FILE LOCATIONS

 

Log files are useful in troubleshooting issues in Oracle Applications. Below is the given list of Log file location in Oracle Applications for Startup/Shutdown, Cloning, Patching, DataBase & Apps Listener and various components in ORACLE  Apps R12/11i:

1.Startup/Shutdown Log files for Application Tier in R12

Instance Top is new TOP added in R12

Startup/Shutdown error message text files like adapcctl.txt, adcmctl.txt

  • $INST_TOP/apps/$CONTEXT_NAME/logs/appl/admin/log

Startup/Shutdown error message related to tech stack (10.1.2, 10.1.3 forms/reports/web)

  • $INST_TOP/apps/$CONTEXT_NAME/logs/ora/ (10.1.2 & 10.1.3)
  • $INST_TOP/apps/$CONTEXT_NAME/logs/ora/10.1.3/Apache/error_log[timestamp]
  • $INST_TOP/apps/$CONTEXT_NAME/logs/ora/10.1.3/opmn/ (OC4J~…,oa*,opmn.log)
  • $INST_TOP/apps/$CONTEXT_NAME/logs/ora/10.1.2/network/ (listener log)
  • $INST_TOP/apps/$CONTEXT_NAME/logs/appl/conc/log (CM log files)

2. Cloning Log files in R12

Preclone log files  in source instance

Database Tier

  • $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/(StageDBTier_MMDDHHMM.log)

Application Tier

  • $INST_TOP/apps/$CONTEXT_NAME/admin/log/ (StageAppsTier_MMDDHHMM.log)

Clone log files in target instance

Database Tier

  • $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/ApplyDBTier_.log

Apps Tier

  • $INST_TOP/apps/$CONTEXT_NAME/admin/log/ApplyAppsTier_.log

 

3. Patch related log files in R12

Application Tier adpatch log

  • $APPL_TOP/admin/$SID/log/

Developer (Developer/Forms & Reports 10.1.2) Patch

  • $ORACLE_HOME/.patch_storage

Web Server (Apache) patch

  • $IAS_ORACLE_HOME/.patch_storage

Database Tier opatch log

  • $ORACLE_HOME/.patch_storage

 

4. Autoconfig related log files in R12

Database Tier Autoconfig log :

  • $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/MMDDHHMM/adconfig.log
  • $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/MMDDHHMM/NetServiceHandler.log

Application Tier Autoconfig log –

  • $INST_TOP/apps/$CONTEXT_NAME/admin/log/$MMDDHHMM/adconfig.log

Autoconfig context file location in R12 –

  • $INST_TOP/apps/$CONTEXT_NAME/appl/admin/$CONTEXT_NAME.xml

 

5. Other log files in R12

1.Database Tier

  •  Relink Log files :
  • $ORACLE_HOME/appsutil/log/$CONTEXT_NAME /MMDDHHMM/ make_$MMDDHHMM.log
  • Alert Log Files
  • $ORACLE_HOME/admin/$CONTEXT_NAME/bdump/alert_$SID.log
  • Network Logs :
  • $ORACLE_HOME/network/admin/$SID.log
  • OUI Inventory Logs :
  • $ORACLE_HOME/admin/oui/$CONTEXT_NAME/oraInventory/logs

2.Application Tier

  • $ORACLE_HOME/j2ee/DevSuite/log
  • $ORACLE_HOME/opmn/logs
  • $ORACLE_HOME/network/logs
  • Tech Stack Patch 10.1.3 (Web/HTTP Server)
  • $IAS_ORACLE_HOME/j2ee/forms/logs
  • $IAS_ORACLE_HOME/j2ee/oafm/logs
  • $IAS_ORACLE_HOME/j2ee/oacore/logs
  • $IAS_ORACLE_HOME/opmn/logs$IAS_ORACLE_HOME/network/log
  • $INST_TOP/logs/ora/10.1.2
  • $INST_TOP/logs/ora/10.1.3
  • $INST_TOP/logs/appl/conc/log
  • $INST_TOP/logs/appl/admin/log