Wednesday, October 29, 2014

Patching your Oracle database – Critical Patch Update (CPU) or Patch Set Update (PSU)

Keeping your Oracle database software up to date is a critical and time-consuming task for DBAs.  For many years now, Oracle has been releasing Critical Patch Updates on a quarterly basis.  These patches, as the name implies, contain critical updates to the software, often released in response to a newly found security vulnerability.  More recently, Oracle has also been releasing Patch Set Updates on a quarterly basis.  These also contain important fixes to the Oracle software.  However, there is confusion about the difference between the two and more importantly, confusion about which one needs to be applied.  So whats the difference and which one should you apply?
 According to Oracle Support article ID 1446582.1: Frequently Asked Questions (FAQ) Patching Oracle Database Server:
“A PSU is a collection of proactive, stabilizing cumulative patches for a particular product version (base release or patch set).  PSUs are cumulative and include all of the security fixes from CPU patches, plus additional fixes.  Critical Patch Updates are the primary means of releasing security fixes for Oracle products. CPUs are cumulative with respect to prior CPUs and generally contain only security fixes.” Read the patch types to know the difference between the types of oracle Database patches.
So, there you have it.  CPUs are smaller and more focused than PSU and mostly deal with security issues.  PSUs contain bug fixes AND they contain the security fixes from the CPU.  When you download a PSU, it will tell you which CPU it contains.  PSUs are on the same quarterly schedule as the Critical Patch Updates (CPU), specifically the Tuesday closest to the 17th of January, April, July, and October.  One thing to keep in mind, however, is that once a PSU has been installed, the recommended way to get future security content is to apply subsequent PSUs.  Reverting from PSU back to CPU, while possible, would require significant effort and so is not advised.  So with this in mind, why would someone choose to apply a CPU rather than a PSU?  I suppose for folks who are concerned only with security fixes and not functionality fixes, a CPU-only approach may be best.  It does seem to be the more conservative approach as a CPU is (in theory) less like to cause trouble than a PSU, simply because it has less code changes in it.

5-Number Versions

Oracle version number looks like this: 11.2.0.4.0 or 12.1.0.1.1. What are these numbers and what do they represent?
  • The first 3 numbers are the release number (or base release, or base version) which represents the version itself. For example: 10gR2 is 10.2.0, 11g is 11.1.0 and 12c is 12.1.0.
  • The 4th number is the patchset, which is a full patch of the software. Until 11.1, patchset was a package that we downloaded and installed on an existing Oracle Home. From 11.2 onwards, the patchset comes as a full installation into a new Oracle Home.
  • We will talk about the 5th number in a minute…

 

Patch Types

In Oracle there are quite a few different types of patches. Let’s review them quickly:
  • Patchset – as we saw above, it is a large and significant patch (the 4th number of the full version). The patchset is installed using the familiar Universal Installer.
  • One-off Patch – this is a small patch for fixing a single specific bug. The One-off patch is installed using opatch, a tool for patch installation which exists in every Oracle Home.
  • CPU (Critical Patch Update) or SPU (Security Patch Update) – this specific patch is released every quarter and includes security fixes. The CPU (SPU) is also installed using the opatch tool.
  • PSU (Patch Set Update) in UNIX/Linux or PB (Patch Bundle) in Windows – a package of One-off patches that was built to make the patching process easier and eliminate conflicts between different one-off patches. The last number of the full version (as I promised to explain) is the PSU or PB level. The PSU and PB are also installed using the opatch tool.
    Note that the PSU and PB are cumulative, meaning that PSU 11.2.0.3.8 includes all the fixes from 11.2.0.3.1 to 11.2.0.3.7. On top of that, they include all the CPU (or SPU) up to the PSU release date.

Behavior Changes

After upgrading and patching the database, we often run into different behavior changes or problems with the new version. So how does patching influence our database?
  • Patchset in this context is a bit risky. Patchsets rarely contain new features, but they might (bringing bugs with them sometimes). However, behavior changes of specific components (such as the optimizer) are more frequent, as well as changes in parameters’ default values, new parameters and other general changes that can influence how the database behaves.
  • All the other patches (PSU, PB, CPU, One-off patch) aren’t supposed to change the database behavior (unless a specific behavior itself was a bug and the fix changed it). The fixes here are bug specific; new features, new parameters and new default values should not be introduced.

What’s new?

11.2

As I wrote before, starting with 11.2 (for those of you who don’t know), the patchset is not an installation on top of an existing Oracle Home, but as a full installation package. If you needed to install 10.2.0.5, you installed 10.2.0.1 base release, then downloaded and installed 10.2.0.5 patchset to the same Oracle Home. To install 11.2.0.4, all we need to do is to download 11.2.0.4 installation from MOS (My Oracle Support, f.k.a. metalink) and install it into a new Oracle Home. There is still an option to install a patchset into an existing Oracle Home, but this is not that common.

12.1

Starting with 12.1, Oracle probably decided that there are too many patch types (and I guess they are right…), so they decided to cancel the CPU (SPU). From now on, the quarterly patch is the PSU and the PB and they will contain bug fixes including the quarterly security bug fixes.

My personal preference is to apply PSUs and not worry about CPUS.
The patch may be CPU or PSU but the following steps are same for everything.
First fully read the readme.txt of your patch to know if any pre-requisite patch is needed or not.
1. Ensure that the Oracle Database on which you are installing the patch or from which you are rolling back the patch is Oracle Database 11g Release 11.2.0.3.0.
2. Oracle recommends you to use the latest version of OPatch. 
 If you do not have the latest version, then follow the instructions outlined in the My Oracle Support note 224346.1 available at: https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=224346.1 
3. Ensure that you set the ORACLE_HOME environment variable to the Oracle home of the Oracle Database.
4. Ensure that you set the PATH environment variable to include the location of the unzip executable, and the <ORACLE_HOME>/bin and the <ORACLE_HOME>/OPatch directories present in the Oracle home of the Oracle Database.
5. Ensure that you verify the Oracle Inventory because OPatch accesses it to install the patches. To verify the inventory, run the following command. If the command displays some errors, then contact Oracle Support and resolve the issue.
        $ opatch lsinventory 
6. Ensure that you shut down all the services running from the Oracle home.
Note:
 - For a Non-RAC environment, shut down all the services running from the Oracle home. 
 - For a RAC environment, shut down all the services (database, ASM, listeners, nodeapps, and CRS daemons) running from the Oracle home of the node you want to patch. After you patch this node, start the services on this node.Repeat this process for each of the other nodes of the Oracle RAC system. OPatch is used on only one node at a time.
7.  shutdown
(2) Installation
To install the patch, follow these steps:
Note:
  - In case of an Oracle RAC environment, perform these steps on each of the nodes.
1. Maintain a location for storing the contents of the patch ZIP file. In the rest of the document, this location (absolute path) is referred to as <PATCH_TOP_DIR>.
2. Extract the contents of the patch ZIP file to the location you created in Step (1). To do so, run the following command:
 $ unzip -d <PATCH_TOP_DIR> p14013094_112030_Generic.zip
3. Navigate to the <PATCH_TOP_DIR>/14013094 directory:
 $ cd <PATCH_TOP_DIR>/14013094
4. Install the patch by running the following command:
 $ opatch apply
 Note:
 When OPatch starts, it validates the patch and ensures that there are no conflicts with the software already installed in the ORACLE_HOME of the Oracle Database. OPatch categorizes conflicts into the following types: 
 - Conflicts with a patch already applied to the ORACLE_HOME - In this case, stop the patch installation and contact Oracle Support Services.
 - Conflicts with a patch already applied to the ORACLE_HOME that is a subset of the patch you are trying to apply  - In this case, continue with the patch installationbecause the new patch contains all the fixes from the existing patch in the ORACLE_HOME. The subset patch will automatically be rolled back prior to the installation of the new patch.
5. Start the services from the Oracle home.
(3) Post Installation
After you install the patch, reload the packages into the Oracle Database.
startup
conn / as sysdba
execute @prvtstas.plb @prvtstai.plb @prvtstat.plb in same order
shutdown;
startup
Note
   - In case of an Oracle RAC environment, reload the packages on one of the nodes.
(4) De-installation
To deinstall the patch, follow these steps:
Note
   - In case of an Oracle RAC environment, perform these steps on each of the nodes.
1. Navigate to the <PATCH_TOP_DIR>/14013094 directory:
 $ cd <PATCH_TOP_DIR>/14013094
2. Deinstall the patch by running the following command:
 $ opatch rollback -id 14013094
3. Start the services from the Oracle home.
(5)Post de-installation
After you de-install the patch, reload the packages into the Oracle Database.
startup
conn / as sysdba
execute @prvtstas.plb @prvtstai.plb @prvtstat.plb in same order
shutdown;
startup
Note:
  - In case of an Oracle RAC environment, reload the packages on one of the nodes.

Monday, September 1, 2014

Steps to setup RMAN


This article is tested in oracle11gR2. How do we setup the RMAN in oracle? There are couple of ways, we can setup the RMAN. We can use control file to store backup catalog info or we can have separate database to store catalog info. Here I am using separate database to store backup catalog
information.

I am using Linux OS. Please remember, the directories and folder might change based on the operating system and environment. But the below steps are pretty much same for any environment.

Here i am using ORCL as primary database and CATDB as catalog database.

 Step1 Enabling Archive log. See the following link for the First step


Step2 Create the tablespace and user in catalog database to hold backup information.

SQL> CONNECT sys/password@catdb AS SYSDBA
Connected.

SQL> CREATE TABLESPACE RMAN
2 DATAFILE '/DBA_Test/d02/app/oracat/oradata/catdb/rman01.dbf' SIZE 6208K REUSE
3 AUTOEXTEND ON NEXT 64K MAXSIZE 32767M
4 EXTENT MANAGEMENT LOCAL
5 SEGMENT SPACE MANAGEMENT AUTO;

Tablespace created.

SQL> CREATE USER rman IDENTIFIED BY rman
2 TEMPORARY TABLESPACE temp
3 DEFAULT TABLESPACE rman
4 QUOTA UNLIMITED ON rman;

User created.

SQL> GRANT connect, resource, recovery_catalog_owner TO rman;

Grant succeeded.

SQL>

Step3 Create the recovery catalog in catalog database.

SQL>rman catalog=rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 09:59:26 2009

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

connected to recovery catalog database


Sometimes you'll face the issue while trying to connect RMAN using the above mentioned command, probably the error would be 


SP2-0734: unknown command beginning "rman catal..." - rest of line ignored.

Follow the below given steps to overcome this issue.

[oracat@localhost ~]$ rman

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 15:59:12 2009

Copyright (c) 1982, 2005, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect catalog rman@oracat

recovery catalog database Password:

RMAN> create catalog tablespace "RMAN";

recovery catalog created

RMAN> exit

Recovery Manager complete.

[oracat@server1 ~]$

Step4 Register the database with Catalog database. Each database should be registered to catalog database to run RMAN backup.

[oracat@server1 ~]$rman target / catalog rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 10:02:01 2009

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

connected to target database: CATDB (DBID=1215124933)
connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete

RMAN> exit

Recovery Manager complete.

[oracat@server1 ~]$

[oraint@server1 ~]$ rman target / catalog rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 10:02:01 2009

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

connected to target database: ORCL (DBID=1215124933)
connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete

RMAN> exit

Recovery Manager complete.

[oraint@server1 ~]$

Step5 Configure the persistent parameters.
[oraint@server1 ~]$ rman target / catalog rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Tue May 19 18:46:40 2009

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

connected to target database: ORCL (DBID=1215054467)
connected to recovery catalog database

RMAN> configure retention policy to recovery window of 2 days;

new RMAN configuration parameters:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete

RMAN> configure default device type to disk;

new RMAN configuration parameters:
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete

RMAN> configure controlfile autobackup on;

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete

RMAN> configure channel device type disk format 'DBA_Test/rmanbackup/Backup%d_DB_%U_%T_%s_%t';
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'DBA_Test/rmanbackup/Backup_DB_%d_DB_%U_%T_%s_%t';
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete

RMAN>


 Step 6 Take database full backup. The full database backup should be taken        first time. Afterwards, archivelog backup will be taken.
[oraint@server1 ~]$ rman target / catalog rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 10:16:09 2009

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

connected to target database: ORCL (DBID=1215124933)
connected to recovery catalog database

RMAN> run{
2> backup database plus archivelog;
3> delete noprompt obsolete;
4> }

Starting backup at 22-SEP-05
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=21 RECID=2 STAMP=569633386
input archived log thread=1 sequence=22 RECID=3 STAMP=569642984
input archived log thread=1 sequence=23 RECID=4 STAMP=569643339
input archived log thread=1 sequence=24 RECID=5 STAMP=569643519
channel ORA_DISK_1: starting piece 1 at 22-SEP-05
channel ORA_DISK_1: finished piece 1 at 22-SEP-05
piece handle=/DBA_Test/rmanbackup/BackupORCL_DB03gv84g2_1_1_%S_%P tag=TAG20050922T021841 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-SEP-05
Starting backup at 22-SEP-05
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/Integration/app/oraint/oradata/orcl/system01.dbf
input datafile file number=00002 name=/Integration/app/oraint/oradata/orcl/sysaux01.dbf
input datafile file number=00008 name=/Integration/app/oraint/oradata/orcl/TEST_iasactivities.dbf
input datafile file number=00009 name=/Integration/app/oraint/oradata/orcl/TEST_urmserver.dbf
input datafile file number=00015 name=/Integration/app/oraint/oradata/orcl/TEST_ocs.dbf
input datafile file number=00005 name=/Integration/app/oraint/oradata/orcl/example01.dbf
input datafile file number=00010 name=/Integration/app/oraint/oradata/orcl/TEST_iaswebcenter.dbf
input datafile file number=00006 name=/Integration/app/oraint/oradata/orcl/TEST_ipm.dbf
input datafile file number=00003 name=/Integration/app/oraint/oradata/orcl/undotbs01.dbf
input datafile file number=00011 name=/Integration/app/oraint/oradata/orcl/TEST_ocssearch.dbf
input datafile file number=00012 name=/Integration/app/oraint/oradata/orcl/TEST_iasjive.dbf
input datafile file number=00013 name=/Integration/app/oraint/oradata/orcl/TEST_orairm.dbf
input datafile file number=00014 name=/Integration/app/oraint/oradata/orcl/TEST_mds.dbf
input datafile file number=00007 name=/Integration/app/oraint/oradata/orcl/TEST_webcenter_portlet.dbf
input datafile file number=00004 name=/Integration/app/oraint/oradata/orcl/users01.dbf
channel ORA_DISK_1: starting piece 1 at 22-SEP-05
channel ORA_DISK_1: finished piece 1 at 22-SEP-05
piece handle=/DBA_Test/rmanbackup/BackupORCL_DB04gv84g6_1_1_%S_%P tag=TAG20050922T021844 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05
Finished backup at 22-SEP-05

Starting backup at 22-SEP-05
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=25 RECID=6 STAMP=569643592
channel ORA_DISK_1: starting piece 1 at 22-SEP-05
channel ORA_DISK_1: finished piece 1 at 22-SEP-05
piece handle=/DBA_Test/rmanbackup/BackupORCL_DB05gv84ic_1_1_%S_%P tag=TAG20050922T021955 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-SEP-05

Starting Control File and SPFILE Autobackup at 22-SEP-05
piece handle=/Integration/app/oraint/product/11.2.0/dbhome_1/dbs/c-1097368849- 20050922-00 comment=NONE
Finished Control File and SPFILE Autobackup at 22-SEP-05

RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 2 days
using channel ORA_DISK_1
no obsolete backups found

RMAN> exit


Recovery Manager complete.
[oraint@server1 ~]$


Now the RMAN setup is completed successfully. Here are the info about RMAN.

Primary DB = ORCL
Catalog DB = CATDB
RMAN Backup location = /DBA_Test/rmanbackup.
Now the full backup is taken. Every day, the below script should run and backup the new archive log files.

[oraint@server1 ~]$rman target / catalog rman/rman@catdb

Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 21 10:25:40 2009

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

connected to target database: ORCL (DBID=1215124933)
connected to recovery catalog database

RMAN> run{
2> delete noprompt obsolete;
3> backup archivelog all;
4> }

Enabling Archive log in RMAN


This article is tested in oracle11gR2. How do we setup the RMAN in oracle? There are couple of ways, we can setup the RMAN. We can use control file to store backup catalog info or we can have separate database to store catalog info. Here I am using separate database to store backup catalog
information.

I am using Linux OS. Please remember, the directories and folder might change based on the operating system and environment. But the below steps are pretty much same for any environment.

Here i am using ORCL as primary database and CATDB as catalog database.

Step1 Enable the archive log in ORCL database.

Step 1.1 We need to build the pfile from spfile to add new entries. If you already have recent pfile, the you do not need to do this step.

Login as sys user and execute this to create pfile.

create pfile='/Integration/app/oraint/product/11.2.0/dbhome_1/dbs/pfile.ora' from spfile;

Step 1.2 Once pfile is created, then edit the pfile and add the below two parameters.

log_archive_format=Log_%s_%t_%r.arc
log_archive_dest='/Integration/app/oraint/product/11.2.0/dbhome_1/database/archive'

In case, if you already have the below two entries in the pfile, then we need to remove or comment this below two entries. Since we can not have this below two entry with above new two parameters.

db_recovery_file_dest='/Integration/app/oraint/fast_recovery_area'
db_recovery_file_dest_size=4322230272


Till oracle9i, we use
log_archive_start=true in parameter file. Since from oracle10g, this parameter is deprecated. We should not add this entry in pfile from oracle10g. If we have this entry in oracle10g, we get the below error.

ORA-32004:obsolete and/or deprecated parameter specified.

Step 1.3 Once pfile is edited, then we need to create the spfile with modified pfile. Login as sys user and execute the below command.

create spfile = '/Integration/app/oraint/product/11.2.0/dbhome_1/dbs/XX.ORA' from pfile='/Integration/app/oraint/product/11.2.0/dbhome_1/dbs/PFILE.ORA'

Step 1.4 Rename the original SPFILEORCL.ORA to different name. Then rename the XX.ORA to SPFILEORCL.ORA.

Step 1.5 Login as sys user and shutdown the database and follow the steps.

Mount the database
alter database archivelog
alter database open;

Here is the screen output....

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 188746628 bytes
Database Buffers 415236096 bytes
Redo Buffers 7135232 bytes
Database mounted.
SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination / Integration/app/oraint/product/11.2.0/dbhome_1/ database/archive
Oldest online log sequence 2
Next log sequence to archive 4
Current log sequence 4
SQL>

Tuesday, August 26, 2014

R12 Wallet Creation



This document is used to create a wallet file.

Log into middle tier server by using server username/password

Run OWM command

Click on button "NEW".

Click On button "Yes".

Click On button "Yes".

Wallet Password :xxxxxxxx

Confirm Password :xxxxxxxx

Click on button "OK".

Click on Button "Yes".

Enter the information to create identify.

Common Name :
Organition Unit : 
Organzator :
Locality/city :
state/provience :
country :
Key size :

Click on button "OK".

Click on Button "OK".

Clcik on Save button on the Left side.

Choose the folder directory For Example (/usr/tmp).

Click on Button "OK".


Wallet File setup

Navigation: Fund Capture Setup Administrator --> Payment Setup --> Shared Setup

Click on GO TO Task Link for System Security Options
Click on wallet setup button
Enter New Wallet File location of file name . For Example (/usr/tmp/ewallet.p12)
Enter the Password : xxxxxxxx
Select for the system generated to create security key.
Click on button set system key.



Logfile Locations for 11i & R12


The following log files location could help you to find-out issues and errors from your 


application 11i instance.


 
Database Tier Logs are





Alert Log File location:

$ORACLE_HOME/admin/$CONTEXT_NAME/bdump/alert_$SID.log


  
Trace file location:

$ORACLE_HOME/admin/SID_Hostname/udump


  
Application Tier Logs




Start/Stop script log files location:


$COMMON_TOP/admin/log/CONTEXT_NAME/




 
OPMN log file location


$ORACLE_HOME/opmn/logs/ipm.log



 
Apache, Jserv, JVM log files locations:


$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_engine_log

 
$IAS_ORACLE_HOME/Apache/Apache/logs/ssl_request_log
 

$IAS_ORACLE_HOME/Apache/Apache/logs/access_log
 

$IAS_ORACLE_HOME/Apache/Apache/logs/error_log
 

$IAS_ORACLE_HOME/Apache/JServ/logs



 
Concurrent log file location:
 

$APPL_TOP/admin/PROD/log or $APPLLOG/$APPLCSF


 
Patch log file location:
 

$APPL_TOP/admin/PROD/log



 
Worker Log file location:
 

$APPL_TOP/admin/PROD/log



 
AutoConfig log files location:


Database Tier:
 

$ORACLE_HOME/appsutil/log/SID_Hostname/DDMMTime/adconfig.log


 
Application Tier:


$APPL_TOP/admin/SID_Hostname/log//DDMMTime/adconfig.log


 
Error log file location:

 
Database Tier :
 

$ORACLE_HOME/appsutil/log/SID_Hostname


 
Application Tier:


$APPL_TOP/admin/PROD/log
 










In Oracle Applications R12, the log files are located in $LOG_HOME (which translates to


$INST_TOP/logs)


Below list of log file locations could be helpful for you:


Concurrent Reqeust related logs

 
$LOG_HOME/appl/conc - > location for concurrent requests log and out files


$LOG_HOME/appl/admin - > location for mid tier startup scripts log files





 
Apache Logs (10.1.3 Oracle Home which is equivalent to iAS Oracle Home - Apache,
 

OC4J and OPMN)

 
$LOG_HOME/ora/10.1.3/Apache - > Location for Apache Error and Access log files


$LOG_HOME/ora/10.1.3/j2ee - > location for j2ee related log files

 
$LOG_HOME/ora/10.1.3/opmn - > location for opmn related log files


 
Forms & Reports related logs (10.1.2 Oracle home which is equivalent to 806 Oracle


Home)

 
$LOG_HOME/ora/10.1.2/forms


$LOG_HOME/ora/10.1.2/reports




 
Startup/Shutdown Log files location:

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



 
Patch log files location:



$APPL_TOP/admin/$SID/log/






 
Clone and AutoConfig log files location in Oracle E-Business Suite Release 12



 
Logs for the adpreclone.pl are located: 


 
On the database tier: 


RDBMS $ORACLE_HOME/appsutil/log/< context >/StageDBTier_< timestamp >.log 



 
On the application tier:


$INST_TOP/admin/log/StageAppsTier_< timestamp >.log 



 
Where the logs for the admkappsutil.pl are located?



On the application tier: 

 
$INST_TOP/admin/log/MakeAppsUtil_< timestamp >.log




 
Logs for the adcfgclone.pl are located:


On the database tier: 



RDBMS $ORACLE_HOME/appsutil/log/< context >/ApplyDBTier_< timestamp >.log


 
On the application tier:


$INST_TOP/admin/log/ApplyAppsTier_< timestamp >.log 



 
Logs for the adconfig are located:



On the database tier:


RDBMS $ORACLE_HOME/appsutil/log/< context >/< timestamp >/adconfig.log


RDBMS $ORACLE_HOME/appsutil/log/< context >/< timestamp >/NetServiceHandler.log



 
On the application tier: 


$INST_TOP/admin/log/< timestamp >/adconfig.log 


$INST_TOP/admin/log/< timestamp >/NetServiceHandler.log




 






Degrading JAVA Version


First check whether the instance is UP or DOWN (The Target instance where you are going to upgrade the java version)

It is mandatory that the target instance should be in UP state when you are going to upgrade the JAVA Version.

[root@server2 ~]# cd /usr/java/
[root@server2 java]# ls

You will find the rpm package as follows
jdk-1.6.0_26-fcs.i586.rpm
jdk-1_5_0_08-linux-i586.rpm

Now uninstall the existing JAVA Version before you install the required JAVA with the following command
[root@server2 java]# rpm –e <rpm file name>

Now Install the required JAVA with the following command
[root@server2 java]# rpm –ivh <rpm file name>

After the installation has finished
Connect to winscp as the target’s application user and navigate to the following path to find the CONTEXT_FILE

For 11i: $APPL_TOP/admin and find the .xml file.

For R12: $APPL_TOP/admin and find the .xml file.

Now open the ndev_oraapps.xml file and replace all the occurrence of the old version with new one as follows

Find: /usr/java/jdk1.6.0_26
Replace: /usr/java/jdk1.5.0_08
Now save the file and exit the winscp
Now run the autoconfig file.

Upgrading JAVA Version



First check whether the instance is UP or DOWN (The Target instance where you are going to upgrade the java version)

It is mandatory that the target instance should be in UP state when you are going to upgrade the JAVA Version.

[root@server2 ~]# cd /usr/java/
[root@server2 java]# ls

You will find the rpm package as follows
jdk-1.6.0_26-fcs.i586.rpm
jdk-1_5_0_08-linux-i586.rpm

Install the rpm package using the following command
[root@server2 java]# rpm –ivh <rpm file name>

After the installation has finished
Connect to winscp as the target’s application user and navigate to the following path to find the CONTEXT_FILE

For 11i: $APPL_TOP/admin and find the .xml file

For R12: $APPL_TOPl/admin/ and find the .xml file

Now open the ndev_oraapps.xml file and replace all the occurrence of the old version with new one as follows

Find: /usr/java/jdk1.5.0_08
Replace: /usr/java/jdk1.6.0_26
Now save the file and exit the winscp
Now run the autoconfig file.

IAS Cache initialization failed

 Today I faced an Issue in R12.2 instance. The solution I followed to overcome the issue is very simple, but they are more than one solution...