Complete Upgrade Steps on 11.0.3 to 11i Upgrade

bash-2.05b$ echo $ORACLE_HOME
/u01/app/oracle/product/806

bash-2.05b$ echo $ORACLE_SID
dev

bash-2.05b$ echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/oracle/bin:/usr/bin/X11:/sbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:.:/u01/app/oracle/product/806/bin::/u01/app/oracle/product/806/bin:/u01/app/oracle/product/806/bin

b-2.05b$ echo $LD_LIBRARY_PATH
/u01/app/oracle/local/java/jre1.1.6/lib:/u01/app/oracle/product/806/lib:


bash-2.05b$ svrmgrl

Oracle Server Manager Release 3.0.6.0.0 - Production

(c) Copyright 1999, Oracle Corporation. All Rights Reserved.

Oracle8 Enterprise Edition Release 8.0.6.3.0 - Production
PL/SQL Release 8.0.6.3.0 - Production

SVRMGR> connect internal
Connected.
SVRMGR> startup nomount pfile=/u01/app/oracle/product/806/dbs/initdev.ora
ORACLE instance started.
Total System Global Area 1919251520 bytes
Fixed Size 50240 bytes
Variable Size 1069846528 bytes
Database Buffers 838860800 bytes
Redo Buffers 10493952 bytes
SVRMGR> @/u01/app/oracle/product/bmcntl.sql
Statement processed.

SVRMGR> ALTER DATABASE OPEN RESETLOGS;
Statement processed.


SVRMGR> SELECT STATUS,LOGINS,INSTANCE_NAME FROM V$INSTANCE;
STATUS LOGINS INSTANCE_NAME
------- ---------- ----------------
OPEN ALLOWED dev
1 row selected.



Sys Passwd Change
orapwd file=$ORACLE_HOME/dbs/orapwdev password=oracle entries=5


Configure Tnsnames and Listeners


Subject: Migrating Apps Release 11.0 from UNIX Host To A Second UNIX Host
Doc ID: Note:74838.1

select distinct LOGFILE_NODE_NAME from fnd_concurrent_requests;
select distinct OUTFILE_NODE_NAME from fnd_concurrent_requests;



SVRMGR> select distinct LOGFILE_NODE_NAME from fnd_concurrent_requests;
LOGFILE_NODE_NAME
------------------------------
Atlas

update fnd_concurrent_requests set LOGFILE_NODE_NAME='instancezu'
where LOGFILE_NODE_NAME='atlas'

SVRMGR> select distinct LOGFILE_NODE_NAME from fnd_concurrent_requests;
LOGFILE_NODE_NAME
------------------------------
instancezu

2 rows selected.

SVRMGR> select distinct OUTFILE_NODE_NAME from fnd_concurrent_requests;
OUTFILE_NODE_NAME
------------------------------
atlas

update fnd_concurrent_requests set OUTFILE_NODE_NAME='instancezu'
where OUTFILE_NODE_NAME='atlas'


SVRMGR> update fnd_concurrent_requests set OUTFILE_NODE_NAME='instancezu'
where OUTFILE_NODE_NAME='atlas';

18313 rows processed.

SVRMGR> select distinct OUTFILE_NODE_NAME from fnd_concurrent_requests;
OUTFILE_NODE_NAME
------------------------------
instancezu


OLD_HOST
/u01/app/applmgr/1103/prod/admin/logprod/l31706384.req
/u01/app/applmgr/1103/prod/admin/outprod/INVMANG.31706384

NEW_HOST
/u01/app/applmgr/1103/dev/admin/logdev
/u01/app/applmgr/1103/dev/admin/outdev


LOGFILE_NAME

update fnd_concurrent_requests set
LOGFILE_NAME=replace(LOGFILE_NAME,'/u01/app/applmgr/1103/prod/admin/logprod/','/u01/app/applmgr/1103/dev/admin/logdev')


OUTFILE_NAME

update fnd_concurrent_requests set
OUTFILE_NAME=replace(OUTFILE_NAME,'/u01/app/applmgr/1103/prod/admin/outprod','/u01/app/applmgr/1103/dev/admin/outdev')


FND_CONCURRENT_PROCESSES

The logfile name of the concurrent managers is stored in
fnd_concurrent_processes.LOGFILE_NAME

The nodename of the concurrent managers is stored in
FND_CONCURRENT_PROCESSES.NODE_NAME



select distinct(NODE_NAME) from fnd_concurrent_processes;

update fnd_concurrent_processes set NODE_NAME = 'instancezu';


SVRMGR> select distinct(NODE_NAME) from fnd_concurrent_processes;
NODE_NAME
------------------------------
Atlas

1 row selected.


SVRMGR> update fnd_concurrent_processes set NODE_NAME = 'instancezu';
63 rows processed.


SVRMGR> select distinct(NODE_NAME) from fnd_concurrent_processes;
NODE_NAME
------------------------------
instancezu
1 row selected.


update global_name set global_name='DEV.WORLD' where global_name='PROD.WORLD'


/u01/app/applmgr/1103/dev/html/html/US
Change PROD to DEV
ICXUDUL_DEV.htm



2.0 Pre Upg tasks on 11.0.3 instance

2.0.1. Apply the Patch 1268797
cd $FND_TOP/patch/110/sql
sqlplus / @afstatrn.sql True

1- sqlplus applsys/xxxx@afstatdr.sql applsys xxxx
2- sqlplus applsys/xxxxx @afstatsg.sql oracle apps
3- imp parfile=afstats2.dat userid=applsys/xxxxxx
Or
3-imp userid=applsys/xxxxxx file=afstats2.dmp ignore=y grants=n full=y commit=n buffer=8000000
4- sqlplus applsys/xxxxxx @afstatgt.sql applsys xxxxxx apps xxxxxx
5- sqlplus apps/xxxxxx @AFSTATSS.pls
6- sqlplus apps/xxxxxx @fndpker.sql apps xxxxxx PACKAGE FND_STATS
7- sqlplus apps/xxxxxx @AFSTATSB.pls
8- sqlplus apps/xxxxxx @fndpker.sql apps xxxxxx PACKAGE_BODY FND_STATS


2.0.2. Apply the TUMS patch 3422686

cd $AD_TOP/patch/110/sql
sqlplus apps/app @adtums.sql /u10/app/convr11/tmp

2.0.3 Set the File attachments

2.0.4 . Submit “Purge Concurrent
Requests” with a retention
period of 7 days

2.0.5. Check for rows in

ALR_ACTION_HISTORY Table
Select count(*) from apps. ALR_ACTION_HISTORY;

If No rows then Apply the Patch 451137




2.0.6. Disabled all the Custom Triggers and
Alerts

2.0.7 Disabled Database Audit trial in init.ora
file

Audit_trial= false or comment out the line.



2.0.8 Validate and Compile Apps Schema
Use adadmin Utility

2.0.9 Backup the INVALIDS in a Table

Create table BEFORE_PREUPG_INVALIDS as select * from dba_objects where status=’INVALID’;

2.0.10. Make a note of passwords for following
users

SYSADMIN
GUEST
Oracle user - APPS
Oracle user – SYSTEM


3.0 Pre Upgrade Tasks on 11i Instance


3.0.1. Run Rapid install on DB tier and Apps Tier
./rapidwiz

3.0.3 Apply the Forms Patch set 18


If Reuired will Apply
3.0.4 Install 9.2.0.7 software on DB tier (4163445)
./runInstaller

3.0.5 Install Latest Opatch 2617419 on DB Tier
Unzip *2617419*.zip in $OARCLE_HOME

3.0.6 Applied Database patch 4192148 for Import
Issue

3.0.7 Update the .profile in MT and DB Tiers .
On MT :
- /<>/applmgr/r11i<>appl/APPSORA.env
On DB
- $ORACLE_HOME/ R11i<> _ .env

3.0.8 InstallPrep.sh script as per Note 189256.1


3.0.9 Configured tnsnames.ora on MT to connect to 8.1.7 database of 11.0.3 instance

3.0.10. Login to MT tier and perform following pre
upgrade tasks

Verify custom index privileges

cd $APPL_TOP/admin/preupg
sqlplus apps/oracle11i afindxpr.sql applsys
sqlplus apps/oracle11i afpregdi.sql

Make sure orders are in a supported status

cd $ONT_TOP/patch/115/sql
sqlplus apps/oracle11i@ontexc07.sql

Review Item Validation Org settings

cd $ONT_TOP/patch/115/sql
sqlplus apps/oracle11i@ontexc05.sql

Close open pick slips/picking batches or open deliveries/departures

cd $WSH_TOP/patch/115/sql
sqlplus apps/oracle11i@wshbdord.sql

Validate inventory organization data

cd $WSH_TOP/patch/115/sql

sqlplus apps/oracle11i@wshpre00.sql

Review cycles that may not be upgraded

cd $ONT_TOP/patch/115/sql
sqlplus apps/oracle11i@ontexc08.sql

Clear open interface tables

cd $APPL_TOP/admin/preupg
sqlplus apps/oracle11i@
Run above sql for each of the following scripts:
Requisitions Open Interface (pocntreq.sql)
Purchasing Documents Open Interface (pocntpoh.sql)
Receiving Open Interface (pocntrcv.sql)

Import and purge Invoice Import Interface expense reports and invoices

cd $APPL_TOP/admin/preupg
sqlplus apps/oracle11i@apuinimp.sql

Diagnose problems in the data

cd $AR_TOP/patch/115/sql
sqlplus apps/oracle11i@ar115chk.sql

Identify potential ORACLE schema conflicts

cd $APPL_TOP/admin/preupg
sqlplus applsys/oracle11i@adpuver.sql

3.0.10 Apply Family Consolidated Upgrade Patch for Financials - 3993353 with preinstall


Please Find the 806 - 9i Upgrade Steps

Subject: Complete Upgrade Checklist for Manual Upgrades from 8.X / 9.0.1 to Oracle9iR2 (9.2.0) Doc ID: Note: 159657.1


Setup the Enterprise Edition for Oracle 9i

These scripts create objects required by the RDBMS and other technology stack components on the database server Login to 11i Database Tier

Check for output of dba_registry is as given below

col comp_name for a40
col version for a15
select comp_name, version, status FROM dba_registry;

Created folder $ORACLE_HOME/appsutil/admin

Copied addb920.sql, adsy920.sql, adjv920.sql, admsc920.sql, and adgrants.sql from $APPL_TOP/admin to $ORACLE_HOME/appsutil/admin

sqlplus /nolog
connect SYSTEM/oracle11idev
@addb920.sql -- Sets up database SYS schema

sqlplus /nolog
connect SYSTEM/oracle11idev
@adsy920.sql -- Sets up database SYSTEM schema

sqlplus /nolog
connect SYSTEM/oracle11idev
@adjv920.sql - Installs Java Virtual Machine


sqlplus /nolog
connect SYSTEM/oracle11idev
@admsc920.sql FALSE CTXD TEMP $ORACLE_HOME/ctx/lib/libctxx9.so

Check for output of dba_registry is as given below

col comp_name for a40
col version for a15
select comp_name, version, status FROM dba_registry;







Change Roll Back to UNDO Tablespace

select segment_name,tablespace_name,status from dba_rollback_segs;

SEGMENT_NAME TABLESPACE_NAME
------------------------------ ------------------------------
SYSTEM SYSTEM
ROLL301 RBS3
ROLL302 RBS3



select file_name,tablespace_name, bytes from dba_data_files where tablespace_name = 'RBS3';


select 'alter rollback segment ' SEGMENT_NAME' offline;' from dba_rollback_segs;

SQL> select 'alter rollback segment ' SEGMENT_NAME' offline;' from dba_rollback_segs;

SEGMENT_NAME
=============

alter rollback segment ROLL301 offline;
alter rollback segment ROLL302 offline;


SQL> alter rollback segment ROLL302 offline;

alter rollback segment ROLL303 offline;

Rollback segment altered.


SQL> alter rollback segment ROLL304 offline;

alter rollback segment ROLL305 offline;
alter rollback segment ROLL306 offline;

Rollback segment altered.



SQL> alter rollback segment ROLL307 offline;

Rollback segment altered.

SQL> alter rollback segment ROLL308 offline;

Rollback segment altered.



SQL> drop rollback segment ;

select 'drop rollback segment ' SEGMENT_NAME';' FROM from dba_rollback_segs;


SQL> select 'drop rollback segment ' SEGMENT_NAME';' FROM dba_rollback_segs;

'DROPROLLBACKSEGMENT'SEGMENT_NAME';'
------------------------------------------------------

drop rollback segment ROLL301;
drop rollback segment ROLL302;

alter tablespace RBS3 offline;


SQL> alter tablespace RBS3 offline;
alter tablespace RBS2 offline;

drop tablespace RBS2;


Tablespace altered.


create undo tablespace

create undo tablespace APPS_UNDOTS1 datafile '/db2/oradata/dev/data/undodbs01.dbf' size 3000M reuse extent management local;

ALTER TABLESPACE APPS_UNDOTS1 ADD DATAFILE '/db2/oradata/dev/data/undodbs02.dbf' size 3000M;

create undo tablespace APPS_UNDOTS2 datafile '/db2/oradata/dev/data/undodbs04.dbf' size 3000M reuse extent management local;

ALTER TABLESPACE APPS_UNDOTS2 ADD DATAFILE '/db2/oradata/dev/data/undodbs05.dbf' size 2000M;



CREATE TEMPORARY TABLESPACE

alter tablespace temp offline;

SQL> alter tablespace temp offline;

SQL> drop tablespace temp;


CREATE TEMPORARY TABLESPACE temp
TEMPFILE '/db2/oradata/dev/data/temp01.dbf' SIZE 3000M
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 16M;

ALTER TABLESPACE temp
ADD TEMPFILE '/db2/oradata/dev/data/temp02.dbf' SIZE 2000M REUSE;


select * from dba_temp_files;
SELECT * FROM DATABASE_PROPERTIES where PROPERTY_NAME='DEFAULT_TEMP_TABLESPACE';

Set Default TEMP TBS

ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;


Convert existing tablespaces to local extent management


We recommend using local extent management to increase performance. To
convert all non-SYSTEM tablespaces from Data Dictionary extent management to
local extent management, run the following script:

UNIX:
$ cd $APPL_TOP/admin/preupg
$ sqlplus system/finalf @adtbscnv.pls finalf


SQL> desc dba_tablespaces;
SQL> select EXTENT_MANAGEMENT, count(*) from dba_tablespaces group by EXTENT_MANAGEMENT;


bash-2.05b$ pwd
/u012/11i/ora/oracle/devsappl/admin
adsysapp2.sql

bash-2.05b$ sqlplus system/finalf@dev

SQL> @adsysapp2.sql
Enter value for 1: finalf



alter database datafile '/db2/oradata/dev/data/system01.dbf' resize 10000M;



To continue to use the existing tablespace model (OFA-compliant):

Run adgnofa.sql as follows. On the command line, indicate the as
NEW to create new product tablespaces (tablespaces for existing products are
not affected), or ALL to create tablespaces for new products and resize existing
product tablespaces.

UNIX:
$ cd $AD_TOP/patch/115/sql
$ sqlplus apps/xxxxxx @adgnofa.sql ALL

$sqlplus "/as sysdba"
@/u012/11i/ora/oracle/devsappl/ad/11.5.0/patch/115/sql/adcrtbsp.sql


alter database datafile '/db2/oradata/dev/index/jax01.dbf' resize 50M;


CREATE TABLESPACE APPLSYSD
DATAFILE '/db2/oradata/dev/data/applsysd01.dbf' size 200M
EXTENT MANAGEMENT LOCAL
UNIFORM SIZE 1M;

CREATE TABLESPACE APPLSYSX
DATAFILE '/db2/oradata/dev/data/applsysx01.dbf' size 200M
EXTENT MANAGEMENT LOCAL
UNIFORM SIZE 1M;


CREATE TABLESPACE CTXD DATAFILE '/db2/oradata/dev/data/ctxd01.dbf' SIZE 100M; AUTOEXTEND ON NEXT 5 MAXSIZE 200m;.








Applied database patch to create / update OWS packages
Login to 11i Database Tier 3835781
mkdir $ORACLE_HOME/appsutil/admin/OWS
cd $ORACLE_HOME/appsutil/admin/OWS
cp /R11isit/staging/patches/*3835781* .
@patch.sql



Installed XML Parser for PL/SQL
Login to 11i Database Tier

mkdir $ORACLE_HOME/appsutil/admin/xmlparser

cd $ORACLE_HOME/appsutil/admin/xmlparser

cp $COMMON_TOP/util/plxmlparser_v1_0_2.zip .
unzip plxmlparser_v1_0_2.zip - This file creates several subdirectories in the current location
cp $COMMON_TOP/util/XSU12_ver1_2_1.zip .
unzip XSU12_ver1_2_1.zip - This file creates subdirectory - OracleXSU12
cd /R11idev/db/9.2.0/appsutil/admin/xmlparser/lib/java
loadjava -user apps/oracle11i-r -v xmlparserv2.jar
loadjava -user apps/oracle11i-r -v xmlplsql.jar
cd ../sql
cat load.sql sqlplus apps/cl_11i_gbook_sta
cd /R11idev/db/9.2.0/appsutil/admin/xmlparser/OracleXSU12/lib
sh oraclexmlsqlload.ksh
mkdir $ORACLE_HOME/appsutil/admin/java
cd $ORACLE_HOME/appsutil/admin/java
cp /R11idev/oradata/R11iEXP/applmgr/r11iexpcomn/java/xmlparserv2.zip .
loadjava -user apps/oracle11i-r -v xmlparserv2.zip



Gathered database information
Login to 11i Mid tier
cd $APPL_TOP/admin/preupg
sqlplus apps/oracle11i@adupinfo.sql


Re-compile Invalids
sqlplus “/ as sysdba”
@$ORACLE_HOME/rdbms/admin/utlrp.sql
create table invalids_after_db_backup as select * from dba_objects where status = ‘INVALID’;



6.0 Auto Upgrade Tasks
Login to 11i Application Tier
Run Autoupgrade using adaimgr

$ adaimgr consolidated_tablespace=N


6.0.1 Post-Autoupgrade tasks
Login to 11i Database Tier
Re-compile Invalids
sqlplus “/ as sysdba”
@$ORACLE_HOME/rdbms/admin/utlrp.sql
create table invalids_after_autoupgrade as select * from dba_objects where status = ‘INVALID’;


6.0.2 Performed cold Backup of
Database


7.0 Autopatch Tasks
Login to 11i Application Tier
Applied AD.I.4 (4712852)

Applied 11.5.10.2 maintenance pack
cd $AU_TOP/patch/115/driver
adpatch options=nocopyportion,nogenerateportion

APPS account was locked and expired

bash-2.05b$ FNDCPASS apps/xxxxx 0 Y system/manager SYSTEM APPLSYS xxxx
APP-FND-01564: ORACLE error 28000 in AFPCOA

Cause: AFPCOA failed due to ORA-28000: the account is locked
.

The SQL statement being executed at the time of the error was: and was executed from the file .



So just unlock the password


SQL> alter user apps account unlock;

User altered.

SQL> conn apps/xxxxx
Connected.



Note 364614.1:Best Practices for Securing the E-Business Suite
Note 114930.1:Oracle Password Management Policy
Note 420001.1:adpatch Ora-28000 Account Locked apps

Upgrade to DB 10g fails with error - cannot generate contextfile

After 9i to 10g upgrade, i am going to Implement and run Autoconfig on the new Database home.
When i was run adbldxml in database, i got following error message.

bash-2.05b$ perl adbldxml.pl tier=db appsuser=apps appspasswd=xxxxx

Starting context file generation for db tier..

JRE_TOP not found at its desired location /u01/11i/uat/oracle/uatdb/10.2.0/jre/1.1.8
Restart adbldxml.pl with value for jtop as an necessary arguement

Then i was try following command.....

bash-2.05b$ perl adbldxml.pl tier=db appsuser=apps appspasswd=xxxx jtop=/u01/11i/uat/oracle/uatdb/9.2.0/jre/1.4.2

Starting context file generation for db tier..
Using JVM from /u01/11i/uat/oracle/uatdb/9.2.0/jre/1.4.2/bin/java to execute java programs..

The log file for this adbldxml session is located at:
/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/log/adbldxml_09060216.log
UnsatisfiedLinkError exception loading native library: njni10

Could not Connect to the Database with the above parameters, Please answer the Questions below


Enter Hostname of Database server: zeus

Enter Port of Database server: 1521

Enter SID of Database server: uat

For errors, Check log file :/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/log/adbldxml_09060216.log

Here i got following error message on logfile.
The Autoconfig log file reports following error :
StackTrace:
java.lang.ArrayIndexOutOfBoundsException: 3 >= 3
at java.util.Vector.setElementAt(Vector.java:543)
at oracle.apps.ad.context.GenerateContext.setJRETOP(GenerateContext.java:7483)
at oracle.apps.ad.context.GenerateContext.InstantiateRestForDB(GenerateContext.java:3057)
at oracle.apps.ad.context.GenerateContext.main(GenerateContext.java:8150)

Then i was applied latest AUTOCONFIG TEMPLATE ROLLUP PATCH. Then i resloved that problem.

Solution

To implement the solution, please execute the following steps :

1. Download and apply Patch 4709948 - 'TXK (FND) AUTOCONFIG TEMPLATE ROLLUP PATCH M (APRIL 2006)', which brings the latest Release of the GenerateContext.java used to build the context file

After Applied this patch, i was sucessfully created in XML file.

2. Synchronize the APPS-Tier files with the DB-Tier - appsutil directory

3. Execute Autoconfig on the DB-Tier

Result
bash-2.05b$ pwd
/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/bin
bash-2.05b$ perl adbldxml.pl tier=db appsuser=apps appspasswd=xxxxxx

Starting context file generation for db tier..
Using JVM from /u01/11i/uat/oracle/uatdb/10.2.0/jdk/bin/java to execute java programs..

The log file for this adbldxml session is located at:
/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/log/adbldxml_09060343.log

Enter the value for Display Variable: zeus:0.0

The context file has been created at:
/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/uat_zeus.xml

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

bash-2.05b$ adconfig.sh

Enter the full path to the Context file: /u01/11i/uat/oracle/uatdb/10.2.0/appsutil/uat_zeus.xml
Enter the APPS user password:
The log file for this session is located at: /u01/11i/uat/oracle/uatdb/10.2.0/appsutil/log/uat_zeus/09060347/adconfig.log

AutoConfig is configuring the Database environment...

AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /u01/11i/uat/oracle/uatdb/10.2.0
Classpath : :/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/charsets.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/core.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/graphics.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmcertpathprovider.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmjaaslm.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmjcefw.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmjgssprovider.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmjssefips.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmjsseprovider.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmorb.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmorbapi.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/ibmpkcs.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/javaplugin.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/security.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/server.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/jre/lib/xml.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/lib/dt.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdk/lib/tools.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jdbc/lib/ojdbc14.jar:/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/java/xmlparserv2.zip:/u01/11i/uat/oracle/uatdb/10.2.0/appsutil/java:/u01/11i/uat/oracle/uatdb/10.2.0/jlib/netcfg.jar:/u01/11i/uat/oracle/uatdb/10.2.0/jlib/ldapjclnt10.jar

Using Context file : /u01/11i/uat/oracle/uatdb/10.2.0/appsutil/uat_zeus.xml

Context Value Management will now update the Context file

Updating Context file...COMPLETED

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

Updating rdbms version in Context file to db102
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...

AutoConfig completed successfully.

Upgrade to DB 10g fails with error - cannot generate contextfile Doc ID: Note:369179.1

Oracle 10g Install Linking Fails with Error on Pw-Syscall.Exp File

INFO: Start output from spawned process:INFO: ----------------------------------INFO:
INFO: Linking /progs2/11i/uat/oracle/uatdb/10.2.0/precomp/lib/proc
INFO: ld: 0706-003 Cannot find or read import file: /progs2/11i/uat/oracle/uatdb/10.2.0/lib/pw-syscall.exp ld:accessx(): A file or directory in the path name does not exist.
INFO: make: 1254-004 The error code from the last command is 255.
Stop.
INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target 'relink' of makefile '/progs2/11i/uat/oracle/uatdb/10.2.0/precomp/lib/ins_precomp.mk'. See '/etc/oraInventory/logs/installActions2008-09-04_10-43-33AM.log' for details.Exception Severity: 1INFO: Exception handling set to prompt user with options to Retry IgnoreUser Choice: RetryINFO: The output of this make operation is also available at: '/progs2/11i/uat/oracle/uatdb/10.2.0/install/make.log'INFO:
INFO: Start output from spawned process:INFO: ----------------------------------INFO:
INFO: Linking /progs2/11i/uat/oracle/uatdb/10.2.0/precomp/lib/proc
INFO: ld: 0706-003 Cannot find or read import file: /progs2/11i/uat/oracle/uatdb/10.2.0/lib/pw-syscall.exp
INFO: ld:accessx(): A file or directory in the path name does not exist.
INFO: make: 1254-004 The error code from the last command is 255.
Stop.
INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target 'relink' of makefile '/progs2/11i/uat/oracle/uatdb/10.2.0/precomp/lib/ins_precomp.mk'. See '/etc/oraInventory/logs/installActions2008-09-04_10-43-33AM.log' for details.Exception Severity: 1bash-2.05b$ pwd/etc/oraInventory/logs




Solutions:

1. Create an empty file pw-syscall.exp under Agent $ORACLE_HOME/lib.

2. Then Click Retry

Changing the Net Listener Port in Oracle Applications Server 10g

Change port number 1521 to 1531 or anyone

Find the step by step that i performed to configure a new listener .

System Overview

10g Application server with infrastructure and middle tier installed on the same box.

Infrastructure Tier Services
OID
HTTP Server

Middle Tier Application
Portal

OS Users

Infrastructure OS user: oracle
Middle Tier OS user: oracle

Task
Current Listener running on port 1521.
Configuring a new listener on port 1531

Shutdown Services.

Shutdown all the infrastructure and middle tier services.

INFRA

$opmnctl stopall
$emctl stop iasconsole

MIDDLE TIER

$opmnctl stopall
$emctl stop iasconsole

Shutdown Your Infrastructure Listener

$lsnrctl stop

Change The Listener Configuration

Make the change to have the new post number in the lsitener.ora file on your infrastructure tier.
bash-2.05b$ more listener.ora
# listener.ora Network Configuration File: /u01/scr/disco10g/OraHome_10/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/scr/disco10g/OraHome_10)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = apollo.doyen.com)(PORT = 1531))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1531))
)
)

)

Change Your TNSNAMES

After this you need to make the change reflecting the new port in your TNSNAMES.ora file on both the infrastructure tier and the middle tier.

bash-2.05b$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/scr/disco10g/OraHome_10/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

BLDISCO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = apollo.doyen.com)(PORT = 1531))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = bldisco.doyen.com)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = apollo.doyen.com)(PORT = 1531))
)
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
)
)

Also replicate this change in middle tier tnsnames.ora.


Start Your Listener
Start your infrastructure tier listener.


$lsnrctl start bldisco

Set The New Listener At The Database Level.

You must execute this command in your infrastructure database to have the parameter local_listener set to your new listener.


$sqlplus "/ as sysdba"
SQL> alter system set local_listener='bldisco';
system altered


Bounce The Database.

Stop and startup your meta data repository database to have it register the new listener name.

Start Your OID On The Infrastructure Tier
$opmnctl startproc ias-component=OID

Change The Port Number In OID.

Start the Oracle Directory Manager from your desktop if you have the client installed else you can use the one on the server at $ORACLE_HOME/bin/oidadmin





Click add button and provide 10g infra hostname



Provide infra username and password

UserName : orcladmin
Password : xxxxxxxx








Click Entry Management –> cn=OraleContext ->bldisco(SID NAME) -> orclnetdescstring chnage the value of the new port here




Change The Other Config Files.

Based on your installation you may need to change the following files also

/u01/scr/disco10g/OraHome_10/sysman/emd/targets.xml
/u01/scr/disco10g/OraHome_10/Apache/modplsql/conf/dads.conf

Managing Your 10g Application Server

Managing the application server primarily the startup and shutdown procedures. I will discuss the opmn tool by Oracle and also the Enterprise Manager

The process described here also holds good for other Oracle products like Oracle Collaboration suite and Oracle SOA suite.

Any application server would necessarily consist of a infrastructure Tier, it may or may not have a middle tier associated.

Starting Application Server Services


Order of Startup

As the middle tier is dependent on your infrastructure it is important that the infrastructure should be up and running before you proceed with the middle tier services.

To start OracleAS Infrastructure:

1. If your OracleAS Infrastructure contains OracleAS Metadata Repository, start it as
follows:

a. Set the ORACLE_HOME environment variable to the OracleAS Infrastructure
Oracle home.

b. Set the ORACLE_SID environment variable to the OracleAS Metadata
Repository SID (default is orcl).

c. Start the Net Listener:

ORACLE_HOME/bin/lsnrctl start

d. Start the OracleAS Metadata Repository instance:

ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> startup


SQL> quit


e. Start the Oracle Enterprise Manager 10g Database Control:

(UNIX)ORACLE_HOME/bin/emctl start dbconsole
(Windows)ORACLE_HOME\bin\emctl start idbconsole


Using runstartupconsole.sh

You can start up the infrastructure tier services using the runstartupconsole.sh script located at your $ORACLE_HOME/bin/ on the machine which contains your infrastructure.


$ cd $ORACLE_HOME/bin
$runstartupconsole.sh start


This command will startup

The AS Meta Data Repository Instance

The Listener

The Enterprise Manager Console

Infrastructure Process Such as OID,OC4J_security,SSO etc.


To startup the middle Tier Services you log in to your middle tier OS user and run the the runstartupconsole.sh from the middle tier ORACLE_HOME.


$ cd $ORACLE_HOME/bin
$runstartupconsole.sh start


This Command will start up

The 10g Enterprise Manager

All OPMN managed process for the middle tier like portal

Using Enterprise Manager Console

You can also use the 10g Enterprise Manager console to start up the infrastructure tier and middle tier services, however you must start up the enterprise manager explicitly before you can use it. The emctl command is used to startup the enterprise manager. The location is $ORACLE_HOME/bin


Start the Application Server Control Console:


(UNIX)ORACLE_HOME/bin/emctl start iasconsole

$emctl start iasconsole



Using OPMN

OPMN stands for the Oracle Process Manager and Notification, is a tool with you can manage the OPMN managed Infrastructure and Middle Tier Porcess. The opmnctl executable is located at the $ORACLE_HOME/opmn/bin.

opmnctl start

This command will start up your opmn process

opmnctl startall


This will start up the opmn process and all process managed by opmn


Start components:

(UNIX) ORACLE_HOME/opmn/bin/opmnctl startall
(Windows) ORACLE_HOME\opmn\bin\opmnctl startall


opmnctl startporc ias-component=component

This will start a specific opmn managed process like SSO
You can also start using the sub-porcess of a component using

opmnctl startproc process-type=process

You could also restart the processs using

opmnctl restartproc ias-component=component

opmnctl restartproc process-type=process



However before using OPMNCTL you must have started your Metadata Respositery Database Instance and the Listener manually.

Shutdown of Application Tier Services


Order Of Shutdown


Your Middle tier Services must be shutdown before you shutdown your infrastructure services.


Using runstartupconsole.sh

You can shutdown the infrastructure tier services using the runstartupconsole.sh script located at your $ORACLE_HOME/bin/ on the machine which contains your infrastructure.

$ cd $ORACLE_HOME/bin

$runstartupconsole.sh stop


This command will stop

All infrastructure tier services

The 10g EM console

The meta data repository instance

The listener

For middle Tier services you must run this command for the middle tier ORACLE_HOME.
Using Enterprise Manager Console

You can also use the 10g EM console to shutdown your middle tier and infrastructure services.

After that you must shutdown your EM console manually using the emctl command

emctl stop iasconsole

Stop the Application Server Control Console:

(UNIX)ORACLE_HOME/bin/emctl stop iasconsole
(Windows)ORACLE_HOME\bin\emctl stop iasconsole




You can also shutdown the Infrastructure services using the EM Console of the infrastructure tier after which you must manually shutdown the EM console manually using emctl at the infrastructure tier.


You must also remember to bring down your Meta Data Repository and Listener manually from the infrastructure home after all the services are brought down.


Using OPMN

Using opmnctl you can shutdown your middle tier services and infrastructure services.

opmnctl shutdown

This shutdown the opmn process and along with it all the managed opmn processes

opmnctl stopall

This command stops all opmn managed process for a particular tier.

Stop components:


(UNIX) ORACLE_HOME/opmn/bin/opmnctl stopall

(Windows) ORACLE_HOME\opmn\bin\opmnctl stopall



You can also stop a specify OPMN managed component using

opmnctl stopproc ias-component=component

or

opmnctl stopproc process-type=process

The EM console on the middle tier and the infrastructure tier needs to be brought down manually using emctl stop iasconsole.
Also the Meta Data Repository Instance and Listener need to be brought down manually.

If your OracleAS Infrastructure contains OracleAS Metadata Repository, stop it as
follows:


a. Set the ORACLE_HOME environment variable to the OracleAS Infrastructure
Oracle home.

b. Set the ORACLE_SID environment variable to the OracleAS Metadata
Repository SID (default is orcl).

c. Stop the OracleAS Metadata Repository instance:


ORACLE_HOME/bin/sqlplus /nolog
SQL> connect SYS as SYSDBA
SQL> shutdown

SQL> quit

d. Stop the Net Listener:

ORACLE_HOME/bin/lsnrctl stop

Managing Log Files on Oracle AS 10g