Beruflich Dokumente
Kultur Dokumente
P.O. Box 136513 Jeddah 21313 K.S.A CR. 146883 Tel. 6514556 Fax. 6531218
File: 265913685.doc
Revision Number: 1.0
Distribution Control
Revision Number
Distribution
1.0
Initial version
Entity
Name
Technical Manager
AOT
Hassan Reda
Project Manager
AOT
Ahmed Mansi
AOT
Mohammed Vilayath
AOT
Mostafa Simary
07/04/2015
Date
15/05/2010
Author
Advanced Operations Technology
Revision Description
Initial version
Page 2 of
INTRODUCTION............................................................................................................................5
PREREQUISITES...........................................................................................................................6
Basic Checks..............................................................................................................................6
APPLY ADI PATCH........................................................................................................................7
Multiple Organization................................................................................................................7
Apply Patch AD.I.7....................................................................................................................9
Apply Patch AD.I.7 for NLS (Arabic)......................................................................................12
APPLY TUMS PATCH..................................................................................................................13
AD PREPARATION SCRIPTS OATM....................................................................................14
INSTALL ORACLE SOFTWARE...............................................................................................16
INSTALL ORACLE COMPANION SOFTWARE.....................................................................23
INSTALL PATCH SET 3 (10.2.0.4)..............................................................................................28
CREATE NLS/DATA/9IDATA DIRECTORY............................................................................34
APPLY ADDITIONAL PATCHES 10.2.0.4 RDBMS PATCHES..............................................35
UPGRADE DATABASE 10G R2..................................................................................................36
Shutdown Application Server and database............................................................................36
Prepare Initialization Parameter File.....................................................................................36
Create 10g Listener.................................................................................................................37
Run Database Upgrade Assistant............................................................................................41
ADDITIONAL PATCHES AFTER THE DATABASE UPGRADE..........................................55
Patches.....................................................................................................................................55
INSTALL ORACLE DATA MINING AND OLAP.....................................................................59
FIX KOREAN LEXERS...............................................................................................................60
AUTO EXTEND TABLESPACES/DATAFILES........................................................................61
RUN RAPID INSTALL TO R12 CREATE FILE SYSTEM......................................................63
Staging.....................................................................................................................................63
Run Rapid Install.....................................................................................................................63
CTXSYS..........................................................................................................................................75
DROP MRC SCHEMA (CONDITIONAL).................................................................................76
BACKUP DATABASE & R12 FILE SYSTEM...........................................................................77
GATHER STATISTICS FOR SYS SCHEMA............................................................................78
UPDATE .PROFILE......................................................................................................................79
ENABLE MAINTENANCE MODE............................................................................................80
APPLY AD 12.1.1 UPGRADE DRIVER (REQUIRED) - PART 1...........................................81
07/04/2015
Page 3 of
07/04/2015
Page 4 of
Introduction
This guide describes you step-by-step how to upgrade Oracle E-Business Suite from 11i
(11.5.10.2) to R12 (12.1.1), as per our business requirement we have chosen the
upgrade plan as Upgrade Path A (in one Phase) which will upgrade the whole EBS on
one extended downtime rather splitting into two Phases.
The upgrade is based on the following Oracle Notes:
1. Oracle E-Business Suite Upgrade Guide Release 11i to 12.1.1
2. Database Preparation Guidelines for an Oracle E-Business Suite Release 12.1.1
Upgrade ID 761570.1 March 3, 2010
3. Interoperability Notes Oracle E-Business Suite Release 11i with Oracle
Database 10g Release 2 (10.2.0) [ID 362203.1] January 2010
11i Source Application Information
Description
Values
Operating System
AIX 5.3
11i Version
11.5.10.2
Database Version
9.2.0.8
Current AD.I
11i.AD.I.4
R12 (After the Upgrade)
Description
Operating System
R12 version
Database Version
07/04/2015
Values
AIX 6100-02-00-0000
12.1.1
10.2.0.4
Comments
Comments
Page 5 of
Prerequisites
Please follow prerequisites document AOT_EBS12.xOnAIX_Prereqs_v1.1.doc which is
supplied by AOT.
Basic Checks
Before Start upgrading please verify all the prerequisites as per the prerequisite
document.
07/04/2015
Page 6 of
Multiple Organization
Define Operating Unit :
Create an Operating Unit
Configure Profile - MO:Default Operating Unit (Site Level AOL Profile)
07/04/2015
Page 7 of
Page 8 of
Before converting to MultiOrg, you must first make sure that no one is accessing your
Oracle Applications database, and that the Concurrent Managers have been shut down.
Are you certain you want to convert to MultiOrg now [No] ? y
AD_DEFERRED_JOBS table dropped.
Re-enabling triggers in APPS...
sqlplus -s APPS/***** @/u01/oracle/prodappl/admin/PREPROD/out/orgcnvet.sql
Running sub driver "admocnv.drv"..
Warning: File /u01/oracle/prodappl/ar/11.5.0/patch/115/sql/arhmgmul.sql does not exist
Review the messages above, then press [Return] to continue.
$ sqlplus apps/clone
SQL> Select multi_org_flag from fnd_product_groups;
M
-----Y
<== Converted
Patch Name
Patch Number
Patch Document
AD.I.7
7429271
233044.1
Steps :
# su appldev
$ cd /u02/patches
unzip p7429271_11i_AIX
//Stop application services
$ cd $common_top/..//scripts
07/04/2015
Page 9 of
CREATION_
07/04/2015
Page 10 of
1 appldev dba
# cp -p adgrants.sql /u02/oracle/proddb/9.2.0/appsutil/admin
# cd /u02/oracle/proddb/9.2.0/appsutil/admin
# chown oradev:dba adgrants.sql
su oradev
07/04/2015
Page 11 of
07/04/2015
Page 12 of
TUMS Report
7705743
Prerequisites:
1. Ensure that the database parameter UTL_FILE_DIR is set to a writable
directory <DIRECTORY> where the TUMS for R12 Upgrade report will be
created.
SQL> show parameter utl_file
NAME
TYPE
VALUE
------------------------------------ ----------- -----------------------------utl_file_dir
string
/usr/tmp, /usr/tmp, /u02/oracl
e/proddb/9.2.0/appsutil/outbou
nd/PREPROD_hrdev, /usr/tmp
2. Apply the following driver file using adpatch:
u7705743.drv (This is the unified driver)
$ cd /patches/7705743
$ adpatch
Post Patch Steps:
3. Generate the TUMS report by executing the following command:
$ cd $AD_TOP/patch/115/sql
$ sqlplus <APPS username>/<APPS password> @adtums.sql <DIRECTORY>
Eg:$ sqlplus apps/clone @adtums.sql /usr/tmp
A report file called tumsr12.html will be created in the directory. This
directory path must have been listed in the UTL_FILE_DIR parameter of your
database.
Note : report tumsr12.html had not given us proper information to follow, we ignored this
report and continued following the upgrade documentations.
Time Taken = ( 30 minutes )
07/04/2015
Page 13 of
AD Preparation OATM
7197489
Prerequisites:
No Tasks
AD Preparation scripts OATM
This patch should be used by upgrade customers from 11i to R12 to make OATM
complaint.
There are 2 files that need to be run manually.
adgncons.sql and adgrants.sql (adgrants_nt.sql -NT Only)
# cd patchtop
# chmod appldev:dba p7197489_11i_GENERIC
# su - appldev
$ unzip p7197489_11i_GENERIC
# cd 7197489
1) Run adgncons.sql that is included in this zip file.
Usage:sqlplus <APPS username>/<APPS password> @adgncons.sql apps apps
$ cd /u02/patches/7197489
$ sqlplus apps/clone
SQL>@adgncons.sql apps clone
2) Run adcrtbsp.sql, which is generated by adgncons.sql.
Modify adcrtbsp.sql to reflect your current tablespace information.
# modify the adcrtbsp.sql to specify the path for new tablespaces
-Change path of datafiles to /u04/oracle/proddata
- Add autoextend on next 1m to create tablespaces syntax in this script.
example :sqlplus system/clone
sql>@adcrtbsp.sql
07/04/2015
Page 14 of
3) Run the adgrants.sql script as a user that can connect as SYSDBA to grant privileges
to selected SYS objects and create
PL/SQL profiler objects.
Usage:1.Create $ORACLE_HOME/appsutil/admin on the database server.
(in our case admin directory already existing)
2.Copy adgrants.sql (UNIX) from this patch directory to
$ORACLE_HOME/appsutil/admin.
# cd /u02/patches/7197489
# cp adgrants.sql $ORACLE_HOME/appsutil/admin
# chown oradev:dba $ORACLE_HOME/appsutil/admin/adgrants.sql
3. Set the environment to point to ORACLE_HOME on the database server.
4. Use SQL*Plus to run the script:
su oradev
$ sqlplus /nolog
SQL> connect / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql applsys
Completed successfully
Time Taken = ( 2 hours )
07/04/2015
Page 15 of
07/04/2015
Page 16 of
Welcome Screen
o Choose Advanced Installation
07/04/2015
Page 17 of
: OUHome1
: /u02/oracle/proddb/10.2.0
We got an error at this stage we investigated , required to apply patch before start
of this installation Apply Patch 6613550
Refer : APPENDIX B : Database Patch 6613550
07/04/2015
Page 18 of
07/04/2015
Page 19 of
Summary
o Click Install to continue installation.
Install
07/04/2015
Page 20 of
# /u02/oracle/proddb/10.2.0/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oradev
ORACLE_HOME= /u02/oracle/proddb/10.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
07/04/2015
Page 21 of
End of Installation
07/04/2015
Page 22 of
Run Installer
07/04/2015
Page 23 of
Welcome Screen
07/04/2015
Page 24 of
07/04/2015
Page 25 of
Summary
07/04/2015
Page 26 of
Install
End of Installation
07/04/2015
Page 27 of
runInstaller (OUI)
07/04/2015
Page 28 of
runInstaller (OUI)
Welcome Screen
07/04/2015
Page 29 of
07/04/2015
Page 30 of
Summary
07/04/2015
Page 31 of
Install
# /u02/oracle/proddb/10.2.0/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oradev
07/04/2015
Page 32 of
ORACLE_HOME= /u02/oracle/proddb/10.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
End of Installation
07/04/2015
Page 33 of
Run
$ perl $ORACLE_HOME/nls/data/old/cr9idata.pl
This will create directory as :
$ORACLE_HOME/nls/data/9idata
Check ORACLE_HOME/nls/data/9idata is created and is non-empty.
Set ORA_NLS10
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata
(Check whether files exist in $ORACLE_HOME/nls/data/9idata)
07/04/2015
Page 34 of
07/04/2015
Page 35 of
Prepare to upgrade
Refer Chap 2 of Oracle Database Upgrade Guide 10g R2 (10.2)
If event=38004 trace name context forever, level 1 then remove from init.ora
Unset TNS_ADMIN environment variable.
07/04/2015
Page 36 of
07/04/2015
Page 37 of
07/04/2015
Page 38 of
TCP Protocol
TCP/IP Protocol
07/04/2015
Page 39 of
07/04/2015
Page 40 of
07/04/2015
Page 41 of
07/04/2015
Page 42 of
DBUA Database
DBUA Database
07/04/2015
Page 43 of
DBUA Database
07/04/2015
Page 44 of
07/04/2015
Page 45 of
DBUA Backup
07/04/2015
Page 46 of
07/04/2015
Page 47 of
DBUA Progress
07/04/2015
Page 48 of
DBUA Progress
Upgrade Results
07/04/2015
Page 49 of
07/04/2015
Page 50 of
07/04/2015
Page 51 of
07/04/2015
Page 52 of
07/04/2015
Page 53 of
Verify DBA_REGISTRY
Sqlplus / as sysdba
SQL> select comp_id,comp_name,version,status,modified
2* from dba_registry
COMP_ID
COMP_NAME
VERSION
STATUS
MODIFIED
CATALOG
10.2.0.4.0
VALID
11-APR-2010 19:52:38
CATPROC
10.2.0.4.0
VALID
11-APR-2010 19:52:38
JAVAVM
10.2.0.4.0
VALID
11-APR-2010 19:52:39
CATJAVA
10.2.0.4.0
VALID
11-APR-2010 19:52:39
XML
Oracle XDK
10.2.0.4.0
VALID
11-APR-2010 19:52:40
CONTEXT
Oracle Text
10.2.0.4.0
VALID
11-APR-2010 19:52:40
RAC
10.2.0.4.0
INVALID
11-APR-2010 19:52:40
ORDIM
Oracle interMedia
10.2.0.4.0
VALID
11-APR-2010 19:52:40
SDO
Spatial
10.2.0.4.0
VALID
11-APR-2010 19:52:41
XDB
10.2.0.4.0
VALID
11-APR-2010 19:52:45
EM
10.2.0.4.0
VALID
11-APR-2010 09:06:57
11 rows selected.
SQL> show parameter control
NAME
-----------------------------------control_file_record_keep_time
control_files
TYPE
----------integer
string
VALUE
-----------------------------7
/u03/oracle/proddata/cntrl01.dbf,
/u04/oracle/proddata/cntrl02.dbf,
/u03/oracle/proddata/cntrl03.dbf
NAME
BYTES
--------------------------------------/u03/oracle/proddata/temp01.dbf 5242880000
07/04/2015
Page 54 of
Page 55 of
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
You can use the deinstallation script supplied in the previous version to
deinstall the previous patch, before using opatch to deinstall the patch...
Deinstall an older version of this patch use
connect to the database using sqlplus
connect as / as sysdba
sqlplus> @catnomgdidcode
this will drop the old mgdsys or mgdapp user and their objects
once complete you can check everything has been removed with
the script patchset_mgd*_validity.sql located in
/md/support this should show no objects.
Post Install Instructions :
connect to the database using sqlplus
connect as / as sysdba
sqlplus> @catmgdidcode
If checking with patchset_mgdapp_validity.sql you find invalid objects
please run $ORACLE_HOME/rdbms/admin/utlrp.sql which should resolve any issues.
The patchset_mgdsys_validity.sql script in support was written by
BDE engineer to check the status of the build not by development
$ cd 4247037
$ opatch apply
Once applied with opatch, the files are located in $ORACLE_HOME/md/admin
# and $ORACLE_HOME/md/support for patchset_mgdsys_validity.sql
Time Taken = ( 15 minutes )
07/04/2015
Page 56 of
Patch 6084656 :
$ echo $ORACLE_HOME
/u02/oracle/proddb/10.2.0
$ perl v (v5.8.3)
$ cd /u02/patches/dbpatches
$ unzip p6084656_10204_AIX5L.zip
Shutdown all database services
$ cd 6084656
$ opatch apply
Time Taken = (5 minutes)
Patch 6870937 :
$ echo $ORACLE_HOME
/u02/oracle/proddb/10.2.0
$ cd /u02/patches/dbpatches
$ unzip p6870937_10204_AIX5L.zip
$ cd 6870937
$ opatch apply
Time Taken = ( 5 minutes )
Patch 6991626 :
$ echo $ORACLE_HOME
/u02/oracle/proddb/10.2.0
$ cd /u02/patches/dbpatches
$ unzip p6991626_10204_AIX5L.zip
$ cd 6991626
$ export OBJECT_MODE=32_64
$ opatch apply
$ cd $ORACLE_HOME/bin
$ relink all
Time Taken = (10 minutes )
07/04/2015
Page 57 of
Patch 7014646 :
7014646 (no need to apply this patch)
07/04/2015
Page 58 of
07/04/2015
Page 59 of
07/04/2015
Page 60 of
Auto Extend
Tablespaces/Datafiles
Make all you datafiles autoextend before upgrade starts
For example :SQL>desc dba_data_files
Select file_name,tablespace_name, AUTOEXTENSIBLE,bytes/(1024*1024) size_mb
From dba_data_files
Where AUTOEXTENSIBLE <> YES
Order by tablespace_name
SQL> alter database datafile file_name autoextend on next 5m
Verify temp,undo files
SQL> select file_name,tablespace_name,bytes from dba_temp_files;
FILE_NAME
-------------------------------------------------------------------------------TABLESPACE_NAME
BYTES
------------------------------ ---------/u03/oracle/proddata/temp01.dbf
TEMP
5242880000
select tablespace_name,INITIAL_EXTENT,NEXT_EXTENT,STATUS,CONTENTS
from dba_tablespaces
where tablespace_name like '%UNDO%';
TABLESPACE_NAME
INITIAL_EXTENT NEXT_EXTENT STATUS
CONTENTS
------------------------------ -------------- ----------- --------- --------APPS_UNDOTS1
65536
ONLINE UNDO
Select file_name,tablespace_name, AUTOEXTENSIBLE,bytes/(1024*1024) size_mb
From dba_data_files
Where tablespace_name = APPS_UNDOTS1
FILE_NAME
-------------------------------------------------------------------------------TABLESPACE_NAME
AUT SIZE_MB
------------------------------ --- ---------/u03/oracle/proddata/rbs02.dbf
APPS_UNDOTS1
YES
4100
/u03/oracle/proddata/rbs01.dbf
APPS_UNDOTS1
YES
07/04/2015
2000
Page 61 of
07/04/2015
Page 62 of
root
root
root
root
root
system
system
system
system
system
256
4096
4096
256
4096
Apr 13 05:16
Apr 13 07:49
Apr 14 03:09
Apr 14 03:24
Apr 14 05:20
startCD
oraDB
oraAppDB
oraAS
oraApps
07/04/2015
Page 63 of
$ ./rapidwiz
Rapid Install Wizard is validating your file system......
4 dvd labels found
Rapid Install Wizard will now launch the Java Interface.....
Welcome Screen
07/04/2015
Page 64 of
07/04/2015
Page 65 of
07/04/2015
Page 66 of
07/04/2015
Page 67 of
07/04/2015
Page 68 of
Node Information
07/04/2015
Page 69 of
07/04/2015
Page 70 of
Install in progress
Install in progress
RW-50004 - <<Retry>>
I click <<Retry>> the interface continue, this error is for cloning so safely you can
ignore and continue.
Error Log File : APPENDIX E : RW-50004
07/04/2015
Page 71 of
Install in progress
07/04/2015
Page 72 of
Upgrade File
Database ORACLE_HOME environment file passes instantiated variables test:
File = /u06/oracle/db/tech_st/11.1.0/PREPROD_hrdev.env
TNSNames SQL*Net file passes instantiated variables test:
File = /u06/oracle/db/tech_st/11.1.0/network/admin/PREPROD_hrdev/tnsnames.ora
APPL_TOP environment file passes instantiated variables test:
File = /u06/oracle/apps/apps_st/appl/PREPROD_hrdev.env
ADOVARS environment file passes instantiated variables test:
File = /u06/oracle/apps/apps_st/appl/admin/adovars.env
APPSCONFIG passes instantiated variables test:
File = /u06/oracle/apps/apps_st/appl/admin/adconfig.txt
07/04/2015
Page 73 of
07/04/2015
Page 74 of
CTXSYS
Grant creates procedure privilege on CTXSYS (???)
Copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the
database server node. If you are upgrading to R12, use the R12 version of the file. Use
SQL*Plus to connect to the database as APPS and run the script using the following
command:
$ sqlplus apps/ @adctxprv.sql \CTXSYS
$ su oradev
SQL> alter user apps account unlock;
User altered.
SQL> conn apps/clone;
Connected.
SQL> @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql CTXSYS
SQL> conn apps/apps;
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL> conn apps/clone
Connected.
SQL> @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adctxprv.sql clone
CTXSYS
Connecting to SYSTEM
Connected.
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Note : adctxprv.sql clone CTXSYS clone is system user password
Time Taken = ( 20 minutes )
07/04/2015
Page 75 of
07/04/2015
Page 76 of
07/04/2015
Page 77 of
07/04/2015
Page 78 of
Update .profile
Set Environment Variables for Database and Application Tier
Database environment profile and application environment profile
Refer : APPENDIX D : .profile
Time Taken = ( 10 minutes )
07/04/2015
Page 79 of
07/04/2015
Page 80 of
07/04/2015
Page 81 of
07/04/2015
Page 82 of
//adworker001.log
sqlplus -s APPS/***** @/u06/oracle/apps/apps_st/appl/ad/12.0.0/patch/115/sql/ada
ppsgs.pls &systempwd 1 APPLSYS APPLSYS APPS TRUE FALSE TRUE
Connected.
old 2: ad_apps_private.create_grants_and_synonyms(&2,'&3','&4','&5','FALSE')
;
new 2: ad_apps_private.create_grants_and_synonyms(1,'APPLSYS','APPLSYS','APP
S','FALSE');
begin
*
ERROR at line 1:
ORA-20000: ORA-00955: name is already used by an existing
object:create_grants_and_synonyms(1,APPLSYS,APPLSYS,APPS):
create_base_gs(APPLSYS,APPS): In Synonyms
Loop:create_synonym(APPLSYS,CK_LOG,APPS,CK_LOG):
do_apps_ddl(APPS,CREATE
SYNONYM "CK_LOG" FOR APPLSYS."CK_LOG"):
ORA-06512: at line 5
Solution :
As an apps user:
SQL> alter table cl_log rename to cl_log_bkp
Run again adadmin
Time Taken = ( 5 hours )
07/04/2015
Page 83 of
07/04/2015
Page 84 of
ERROR-02 :
Number of invalid objects: 49
Running SQL scripts and EXEC commands...
Determining which SQL and EXEC commands to run...
Error allocating map record in adptrd()
You should check the file
/u06/oracle/apps/apps_st/appl/admin/PREPROD/log/6678700.log
Solution :
Increase db_cache_size and shared_pool_size to 1GB
Create pfile=$OH/dbs/pfile_17_Apr.ora from spfile;
Create spfile from pfile=$OH/dbs/pfile_17_Apr.ora
ERROR-03
Same error
Solution :
we rebooted the server again we start adpatch from the scratch
$ su appldev
$ export LDR_CNTRL=MAXDATA=0x40000000
Then run adpatch again
( After this LDR_CNTRL this patch continued from the point of failure and applied patch
successfully)
ERROR-04 :
ATTENTION: Please fix the above failed worker(s) so the manager can continue.
Fixed: file hrl2limg.sql on worker 1 for product per username HR.
Restarted: file hrl2limg.sql on worker 1 for product per username HR.
FAILED: file hrl2limg.sql on worker 1 for product per username HR.
ATTENTION: All workers either have failed or are waiting:
FAILED: file hrl2limg.sql on worker 1.
ATTENTION: Please fix the above failed worker(s) so the manager can continue.
07/04/2015
Page 85 of
07/04/2015
Page 86 of
ORA-1630: max # extents 1005 reached in temp segment for tablespace HRD
Mon Apr 19 02:29:34 2010
Solution :
Select
TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,PCT_INCREASE,CONTENTS,
EXTENT_MANAGEMENT ,
Max_extents
from dba_tablespaces
where tablespace_name = 'HRD';
TABLESPACE_NAME
INITIAL_EXTENT NEXT_EXTENT PCT_INCREASE
CONTENTS
------------------------------ -------------- ----------- ------------ --------EXTENT_MAN max_extents
---------HRD
40960
40960
0 PERMANENT
LOCAL 505
SQL> alter tablespace hrd default storage (maxextents unlimited);
Tablespace altered.
SQL> get x1
1 select
TABLESPACE_NAME,INITIAL_EXTENT,NEXT_EXTENT,max_extents,CONTENTS,EXT
ENT_MANAGEMENT from dba_tablespaces
2* where tablespace_name like 'HRD'
SQL> /
TABLESPACE_NAME
INITIAL_EXTENT NEXT_EXTENT MAX_EXTENTS
CONTENTS
------------------------------ -------------- ----------- ----------- --------EXTENT_MAN
---------HRD
40960
40960 2147483645 PERMANENT
LOCAL
07/04/2015
Page 87 of
ERROR-05:
ATTENTION: All workers either have failed or are waiting:
FAILED: file icx_transactions.xdf on worker 1.
Index ICX_TRANSACTIONS_N1 exists under ICX schema.
Control
Worker Code
Context
Filename
Status
------ -------- ----------------- -------------------------- -------------1 Run
AutoPatch R120 pl icx_transactions.xdf
FAILED
Checking for differences
Column_name and Uniqueness match for both file and DB Indexes
The Index in xdf-file and db match perfectly. No alteration necessary.
Index ICX_TRANSACTIONS_U1 does not exist in ICX.
CREATE UNIQUE INDEX "ICX"."ICX_TRANSACTIONS_U1" ON
"ICX"."ICX_TRANSACTIONS" ("TR
ANSACTION_ID")
PCTFREE 10 INITRANS 11 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16384 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
TABLESPACE "APPS_TS_TX_IDX"
PARALLEL NOLOGGING
ALTER INDEX ICX.ICX_TRANSACTIONS_U1 NOPARALLEL LOGGING
Start time for statement above is Mon Apr 19 03:59:09 CDT 2010
Start time for statement above is Mon Apr 19 03:59:10 CDT 2010
ORA-12801 error occured during Index creation.
Updating task with status 1
AD Worker error:
Solution :
skipped with 8 option
and later run manully
adjava -mx512m -nojit oracle.apps.fnd.odf2.FndXdfCmp icx clone apps clone thin
hrdev:1521:PREPROD all icx_transactions.xdf $FND_TOP/patch/115/xdf/xsl
07/04/2015
Page 88 of
ERROR-06 :
Control
Worker Code
Context
Filename
Status
------ -------- ----------------- -------------------------- -------------1 Run
AutoPatch R120 pl PO_VENDORS_OBS_F1.xdf
FAILED
07/04/2015
Page 89 of
ERROR-07 :
ATTENTION: All workers either have failed or are waiting:
FAILED: file zpbremcwm.sql on worker 1.
Control
Worker Code
Context
Filename
Status
------ -------- ----------------- -------------------------- -------------1 Run
AutoPatch R120 pl zpbremcwm.sql
FAILED
2 Run
AutoPatch R120 pl
Wait
3 Run
AutoPatch R120 pl
Wait
//adworker001
sqlplus -s APPS/*****
@/u06/oracle/apps/apps_st/appl/zpb/12.0.0/patch/115/sql/zpbremcwm.sql
cwm2_olap_cube.drop_cube(G_SCHEMA, v_cube.name);
*
ERROR at line 235:
ORA-06550: line 235, column 6:
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CUBE
ORA-06550: line 235, column 6:
PL/SQL: Statement ignored
ORA-06550: line 239, column 6:
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_DIMENSION
ORA-06550: line 239, column 6:
PL/SQL: Statement ignored
ORA-06550: line 243, column 6:
PLS-00904: insufficient privilege to access object OLAPSYS.CWM2_OLAP_CATALOG
ORA-06550: line 243, column 6:
PL/SQL: Statement ignored
ORA-06550: line 247, column 4:
PLS-00904: insufficient privilege to access object
OLAPSYS.CWM2_OLAP_METADATA_REFRESH
ORA-06550: line 247, column 4:
PL/SQL: Statement ignored
Solution :
As per article 744973.1
ZPBREMCWM.SQL Returns Error: PLS-00904: Insufficient Privilege To Access
Object [ID 744973.1]
Grant the following privileges to the user APPS:
grant execute on OLAPSYS.CWM2_OLAP_METADATA_REFRESH to apps;
grant execute on OLAPSYS.CWM2_OLAP_CATALOG to apps;
grant execute on OLAPSYS.CWM2_OLAP_DIMENSION to apps;
07/04/2015
Page 90 of
07/04/2015
Page 91 of
http://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=11250156
Oracle E-Business Suite Release 12.1.1 (with NLS Supplement) Media Pack for IBM
AIX Based Systems (64-bit)
Prerequisites:
1) Patch 8576725: 12.1.1 NLS PATCHING PERFORMANCE FIX
Make sure ftp as bin
$ cd /stage
unzip 8576725
cd /stage/8576725
adpatch
Time Taken = (30 minutes)
Apply NLS Patch u6678700.drv for Arabic
Oracle E-Business Suite NLS Release 12.1.1 Arabic V16151
ftp as bin
cd /u02/patches
$ unzip V16151-01.zip
$ cd /u02/patches/6678700_AR
$ adpatch
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/u02/patches/6678700_AR] :
Please enter the name of your AutoPatch driver file : u6678700.drv
07/04/2015
Page 92 of
07/04/2015
Page 93 of
07/04/2015
Page 94 of
07/04/2015
Page 95 of
07/04/2015
Page 96 of
07/04/2015
Page 97 of
****************************************************
Executing service control script:
/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/adcmctl.sh start
script returned:
****************************************************
You are running adcmctl.sh version 120.17.12010000.3
Starting concurrent manager for PREPROD ...
Starting PREPROD_0421@PREPROD Internal Concurrent Manager
Default printer is noprint
adcmctl.sh: exiting with status 0
adcmctl.sh: check the logfile
/u06/oracle/inst/apps/PREPROD_hrdev/logs/appl/admin/log/adcmctl.txt for more
information ...
.end std out.
.end err out.
****************************************************
Executing service control script:
/u06/oracle/inst/apps/PREPROD_hrdev/admin/scripts/jtffmctl.sh start
script returned:
****************************************************
You are running jtffmctl.sh version 120.3
Validating Fulfillment patch level via /u06/oracle/apps/apps_st/comn/java/classes
Fulfillment patch level validated.
Starting Fulfillment Server for PREPROD on port 9300 ...
jtffmctl.sh: exiting with status 0
.end std out.
.end err out.
****************************************************
07/04/2015
Page 98 of
07/04/2015
Page 99 of
Page 100 of
chown: appsutill.zip: A file or directory in the path name does not exist.
# chown oradev:dba appsutil.zip
# chmod 755 appsutil.zip
$ su oradev
$ pwd
/u02/oracle/proddb/10.2.0
$ ls -l appsutil.zip
-rwxr-xr-x 1 oradev dba
$unzip -o appsutil.zip
creating: appsutil/media/
inflating: appsutil/media/FNDSSCORP.gif
inflating: appsutil/media/eyeglasses_transparent.gif
inflating: appsutil/media/chsd.gif
inflating: appsutil/media/chsu.gif
$ cd appsutil
$ ls
admin bin
html
java
media
perl
sql
template
07/04/2015
Page 101 of
07/04/2015
Page 102 of
Create a <CONTEXT_NAME>
directory under
Create a <CONTEXT_NAME> directory under
$ORACLE_HOME/network/admin, where CONTEXT_NAME is
<ORACLE_SID>_<DB_hostname>. Copy listener.ora and tnsnames.ora from the
$ORACLE_HOME/network/admin directory to the
$ORACLE_HOME/network/admin/<CONTEXT_NAME> directory.
$ cd $ORACLE_HOME/network/admin
$ mkdir PREPROD_hrdev
$ cp listener.ora ./PREPROD_hrdev
$ cp tnsnames.ora ./PREPROD_hrdev
$ pwd
/u02/oracle/proddb/10.2.0/network/admin/PREPROD_hrdev
$ ls -ltr
total 16
-rw-r--r--rw-r--r--
1 oradev dba
1 oradev dba
07/04/2015
Page 103 of
Page 104 of
fi
# periodically.
export ORACLE_HOME=/u02/oracle/proddb/10.2.0
export ORACLE_SID=PREPROD
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:
$PATH:/u02/oracle/proddb/10.2
.0/OPatch
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perl
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata
export TNS_ADMIN=$ORACLE_HOME/network/admin/PREPROD_hrdev
07/04/2015
Page 105 of
07/04/2015
Page 106 of
: /u02/oracle/proddb/10.2.0/appsutil/PREPROD
07/04/2015
Page 107 of
07/04/2015
Page 108 of
07/04/2015
Page 109 of
Start Services
$ cd $INST_TOP/admin/scripts
$adstpal.sh apps/clone
$ adstaral.sh
All status should be 0
Ps ef | grep FNDLIBR
Ps ef | grep FND
Adapcctl.sh status
===========
Problem Description :
At this stage we try to login the EBS but Login Page is not coming up giving
HTTP 500
We stopped all the services and rebooted the server
Workaround :
At this stage we did not find any workaround
07/04/2015
Page 110 of
Human Resources
Installed
Payroll
Installed
Product(s)
-----------------------Human Resources
Payroll
Leg. Data?
---------Installed
Installed
Action
------------Install
Install
07/04/2015
Page 111 of
07/04/2015
Page 112 of
07/04/2015
Page 113 of
Change to :
<appserverid_authentication oa_var="s_appserverid_authentication">OFF</
appserverid_authentication>
<dbc_params>
Stop the application tier services and run autoconfig on apps tier
It Solved out Login Page HTTP 500 Problem, I can login.now
Time Taken = ( 15 minutes )
Concurrent FNDLIBR issue :
$ pf ef | grep FNDLIBR only one FNDLIBR process, suppose to be more
To Fix Concurrent Manager
Goto Adminsiter
Click <<Fixed >> button
And check ps ef | grep FNDLIBR // you will see more than one FNDLIBR
07/04/2015
Page 114 of
07/04/2015
Page 115 of
It gave error while taking Gather Statistics; just remove print option from the program
Again we run after removing print option its Okay
07/04/2015
Page 116 of
07/04/2015
Page 117 of
: 10.16.23.128
: 6000
Request Network People to open the port 6000 for Application Server hrdev
Mention this IP in Appliction CONTEXT FILE s_display variable as :
vi /u06/oracle/inst/apps/PREPROD_hrdev/appl/admin/PREPROD_hrdev.xml
<oa_environment type="generic_service">
<DISPLAY oa_var="s_display" osd="unix">hrdev:0.0</DISPLAY>
<java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headle
ss>
</oa_environment>
Change To :
<oa_environment type="generic_service">
<DISPLAY oa_var="s_display" osd="unix">10.16.23.128:0.0</DISPLAY>
<java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headle
ss>
</oa_environment>
<oa_environment type="generic_service">
<DISPLAY oa_var="s_display" osd="unix">10.16.23.128:0.0</DISPLAY>
<java_awt_headless oa_var="s_java_awt_headless"> true </java_awt_headle
ss>
</oa_environment>
And run autoconfig
07/04/2015
Page 118 of
Step 2:
REP-3000 When Character Set is AL32UTF8 [ID 729585.1}
Solution
To implement the solution, please execute the following steps :
1. Modify $APPL_TOP/${CONTEXT_NAME}.env
Before Change
# Set XENVIRONMENT variable in a UTF8 env
if test "UTF8" = "AL32UTF8"; then
XENVIRONMENT="/r12/crp1/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_UTF8.r
gb"
export XENVIRONMENT
fi
After Change
# Set XENVIRONMENT variable in a UTF8 env
if test "AL32UTF8" = "AL32UTF8"; then
XENVIRONMENT="/r12/crp1/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32U
TF8.rgb"
export XENVIRONMENT
fi
Open both the above files(Tk2Motif.rgb Tk2Motif_AL32UTF8.rgb) and look for the line
!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2
Page 119 of
!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2
Tk2Motif*fontMapCs: iso8859-1=AL32UTF8
save file Tk2Motif_AL32UTF8.rgb.
3. Restart the application services
Page 120 of
export XENVIRONMENT
fi
// Tk2Motif_AL32UTF8.rgb
cd /u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin
vi Tk2Motif_AL32UTF8.rgb
!Tk2Motif*fontMapCs: iso8859-2=EE8ISO8859P2
!Tk2Motif*fontMapCs: iso8859-1=AL32UTF8
Tk2Motif*fontMapCs: iso8859-1=AR8MSWIN1256
Su appldev
$ echo $XENVIRONMENT
/u06/oracle/apps/tech_st/10.1.2/guicommon/tk/admin/Tk2Motif_AL32UTF8.rgb
Finally this changed worked Tk2Motif*fontMapCs: iso8859-1=AR8MSWIN1256
Time Taken = ( 30 minutes )
07/04/2015
Page 121 of
Click <<Find>>
07/04/2015
Page 122 of
07/04/2015
Page 123 of
07/04/2015
Page 124 of
07/04/2015
Page 125 of
Solution :
java.sql.SQLException: ORA-01502: index 'HR.PER_IMAGES_PK' or partition of
such index is in unusable state
The error basically reporting that some indexes are in unusable state
SQL> alter index hr.per_images_pk rebuild online ;
Index altered.
SQL> select owner,index_name,status from dba_indexes
where status = 'UNUSABLE';
2
OWNER
INDEX_NAME
STATUS
------------------------------ ------------------------------ -------HR
PER_IMAGES_UK2
UNUSABLE
SQL> alter index hr.PER_IMAGES_UK2 rebuild online ;
Index altered.
SQL>
SQL>
SQL> select owner,index_name,status from dba_indexes
where status = 'UNUSABLE';
2
no rows selected
Time Taken = ( 10 minutes )
07/04/2015
Page 126 of
07/04/2015
Page 127 of
In FTE field changed to any value for example 2 and try to save
Click Update button
You should not get error :
FRM-40735: ON UPDATE trigger raised unhandled exception ORA-01840
Solution :
Oracle Support is going to provide us with one-off patch we are waiting to get this one.
Finally Oracle Support has given one-off Patch 9691080
p9691080_R12[1].PER.B_R12_GENERIC.zip
Steps to Apply Patch :
# su - appldev
/u02/patches
$ echo $PER_TOP
/u06/oracle/apps/apps_st/appl/per/12.0.0
$ cd $INST_TOP/admin/scripts
$ ./adstpall.sh apps/clone
$ adadmin Enable Maintenance Mode
$ cd /u02/patches/9691080
$ adpatch
07/04/2015
Page 128 of
07/04/2015
Page 129 of
Now I can update Solved this problem after applying one-off patch 9691080.
07/04/2015
Page 130 of
07/04/2015
Page 131 of
Solution :
Oracle Support not assisting this issue because they say it is customized need to sort
out this problem.
Workaround :
BAB team has found some customized workaround.
07/04/2015
Page 132 of
View PAY_PRE_PAYMENTS_V
hangs while SELECT
Problem Description:
When we try to use customize sql query which is using PAY_PRE_PAYMENTS_V , the
query is hanging
Solution :
I run the query supplied by client, it is working taking average 3.18 minutes
First this query was hanged later we applied R12.HR_PF.B.DELTA.2 Patch 8337373
And I tested after that this query worked fine.
Comments:
It means we need to apply patch R12.HR_PF.B.DELTA.2
07/04/2015
Page 133 of
07/04/2015
Page 134 of
07/04/2015
Page 135 of
Patch R12.HR_PF.B.DELTA.2
PATCH 8337373 (Main Patch) Doc ID 949437.1
ORACLE HUMAN RESOURCE MANAGEMENT SYSTEM RELEASE UPDATE PACK 2
FOR 12.1
(R12.HR_PF.B.DELTA.2)
Prerequisites Patches :
1) Apply Patch 8502056 (R12.AD.B.delta.2)
Prerequisites:
Check Readme
$cd admin
$cp adgrants.sql to <rdbms Oh>/appsutil/admin
$su oradev
SQL>@rdbms/appsutil/admin/adgrants.sql apps clone
Maintenance Mode - Enable
$ cd 8502056
$ adpatch
2) Apply Patch 9015132 Enable Invokers Processing
3) Patch 7651091 (R12.ATG_PF.B.delta.2 Document ID : 845809.1 )
$ adpatch options=nocompiledb
Time Taken = (3 hours)
$ adadmin
3. Compile/Reload Applications Database Entities menu.
1.Compile Apps Schema
Time Taken = (3 hours)
4) Patch 7651091 for NLS AR
$ cd /u02/patches/7651091_AR
$ adpatch
Maintenance Mode Disable
Time Taken = (10 minutes )
07/04/2015
Page 136 of
07/04/2015
Page 137 of
Classpath
:
:/u02/oracle/proddb/10.2.0/jdbc/lib/ojdbc14.jar:/u02/oracle/proddb/10.2.0/appsutil/j
ava/xmlparserv2.jar:/u02/oracle/proddb/10.2.0/appsutil/java:/u02/oracle/proddb/10.
2.0/jlib/netcfg.jar:/u02/oracle/proddb/10.2.0/jlib/ldapjclnt10.jar
Using Context file
:
/u02/oracle/proddb/10.2.0/appsutil/PREPROD_hrdev.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.
// I just shutdown the database and startup optional
Run AutoConfig on all nodes with an Appl_Top. This is frequently referred to as the
applications tier or non-database nodes.
UNIX
$ cd $APPL_TOP
$ cp PREPROD_hrdev.env PREPROD_hrdev.env_08May2010
$ cd $INST_TOP/admin/scripts
$ ./adautocfg.sh
Enter the APPS user password:
The log file for this session is located at:
/u06/oracle/inst/apps/PREPROD_hrdev/admin/log/05091555/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location :
/u06/oracle/inst/apps/PREPROD_hrdev
Classpath
:
/u06/oracle/apps/apps_st/comn/java/lib/appsborg2.zip:/u06/oracle/apps/app
s_st/comn/java/classes
Using Context file
:
/u06/oracle/inst/apps/PREPROD_hrdev/appl/admin/PREPROD_hrdev.xml
07/04/2015
Page 138 of
07/04/2015
Page 139 of
//
Time Taken = ( 3 hours )
Human Resources
Payroll
Installed
Installed
07/04/2015
Product(s)
-----------------------Human Resources
Payroll
Leg. Data?
---------Installed
Installed
Action
------------Install
Install
Page 140 of
07/04/2015
Page 141 of
07/04/2015
Page 142 of
S.No
Steps
Time Taken on
TEST - hrdev
(hh:mm:si)
1.
Multiple Organization
00:15:00
2.
00:30:00
3.
00:05:00
4.
00:15:00
5.
00:30:00
6.
02:00:00
7.
01:00:00
8.
00:40:00
9.
00:30:00
10.
00:15:00
11.
01:00:00
12.
12:00:00
13.
01:10:00
14.
00:30:00
15.
00:30:00
16.
00:30:00
17.
02:00:00
18.
CTXSYS
00:20:00
19.
Drop MRC
00:05:00
20.
05:00:00
21.
00:20:00
22.
Update .profile
00:10:00
23.
00:05:00
24.
05:00:00
25.
24:00:00
07/04/2015
Time Taken on
UAT - hrdev
(hh:mm:si)
Page 143 of
26.
02:30:00
27.
00:05:00
28.
00:10:00
29.
00:15:00
30.
00:15:00
31.
00:05:00
32.
00:20:00
33.
00:30:00
34.
00:10:00
35.
00:15:00
36.
00:05:00
37.
Start Services
00:10:00
38.
00:30:00
39.
05:00:00
40.
00:15:00
41.
00:30:00
42.
00:10:00
43.
00:00:00
44.
00:30:00
45.
01:00:00
46.
05:00:00
47.
Patch R12.HR_PF.B.DELTA.2
07:30:00
83:55 :00
07/04/2015
Page 144 of
APPENDIX A: AD Preparation
Script adcrtbsp.sql
Script
: adcrtbsp.sql
Modified
: In this script we added autoextend on next 1m to create tablespaces
commands and changed the patch of all datafiles.
REM ===========================================================
REM adcrtbsp.sql
REM
REM DESCRIPTION
REM Generated from adgncons.sql
REM
REM USAGE
REM
REM This script creates tablespaces required for
REM consolidated tablespace model and increases tablespaces which
REM are below a minimum size.
REM
REM sqlplus <SYSTEM/SYSTEM PASSWORD> @adcrtbsp.sql
REM
REM ===========================================================
SET VERIFY OFF
WHENEVER SQLERROR EXIT FAILURE ROLLBACK
ACCEPT SYSTEM_PWD PROMPT 'Enter password for SYSTEM: ' HIDE
connect system/&&SYSTEM_PWD
REM !mv adcrttbs.log adcrttbs.logO
spool adcrtbsp.log
CREATE TABLESPACE
APPS_TS_TX_DATA
DATAFILE '/u04/oracle/proddata/transaction_table.dbf'
SIZE 1000 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
ALTER TABLESPACE
APPS_TS_TX_DATA
add DATAFILE
'/u04/oracle/proddata/transaction_table_2.dbf'
SIZE 1000 M autoextend on next 1m;
ALTER TABLESPACE
APPS_TS_TX_DATA
07/04/2015
Page 145 of
add DATAFILE
'/u04/oracle/proddata/transaction_table_3.dbf'
SIZE 1000 M autoextend on next 1m;
CREATE TABLESPACE
APPS_TS_TX_IDX
DATAFILE '/u04/oracle/proddata/transaction_index.dbf'
SIZE 1000 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
ALTER TABLESPACE
APPS_TS_TX_IDX
add DATAFILE
'/u04/oracle/proddata/transaction_index_2.dbf'
SIZE 1000 M autoextend on next 1m;
ALTER TABLESPACE
APPS_TS_TX_IDX
add DATAFILE
'/u04/oracle/proddata/transaction_index_3.dbf'
SIZE 1000 M autoextend on next 1m;
ALTER TABLESPACE
APPS_TS_TX_IDX
add DATAFILE
'/u04/oracle/proddata/transaction_index_4.dbf'
SIZE 1000 M autoextend on next 1m;
CREATE TABLESPACE
APPS_TS_SEED
DATAFILE '/u04/oracle/proddata/reference.dbf'
SIZE 1000 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
ALTER TABLESPACE
APPS_TS_SEED
add DATAFILE
'/u04/oracle/proddata/reference_2.dbf'
SIZE 400 M autoextend on next 1m;
CREATE TABLESPACE
APPS_TS_INTERFACE
DATAFILE '/u04/oracle/proddata/interface.dbf'
SIZE 500 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
07/04/2015
Page 146 of
CREATE TABLESPACE
APPS_TS_SUMMARY
DATAFILE '/u04/oracle/proddata/summary.dbf'
SIZE 650 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
CREATE TABLESPACE
APPS_TS_NOLOGGING
DATAFILE '/u04/oracle/proddata/nologging.dbf'
SIZE 50 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
CREATE TABLESPACE
APPS_TS_ARCHIVE
DATAFILE '/u04/oracle/proddata/archive.dbf'
SIZE 500 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
CREATE TABLESPACE
APPS_TS_QUEUES
DATAFILE '/u04/oracle/proddata/aq.dbf'
SIZE 70 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
CREATE TABLESPACE
APPS_TS_MEDIA
DATAFILE '/u04/oracle/proddata/media.dbf'
SIZE 10 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
CREATE TABLESPACE
APPS_TS_TOOLS
DATAFILE '/u04/oracle/proddata/tools.dbf'
SIZE 500 M REUSE autoextend on next 1m
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128 K
SEGMENT SPACE MANAGEMENT AUTO ;
declare
cursor check_ftpi is select 1 from dba_tables
where owner ='APPLSYS'
and table_name ='FND_TS_PROD_INSTS';
l_dummy number;
l_stmt varchar2(1500);
begin
07/04/2015
Page 147 of
open check_ftpi;
fetch check_ftpi into l_dummy;
if check_ftpi%notfound then
l_stmt := 'create table APPLSYS.fnd_ts_prod_insts as '
|| 'select application_id, oracle_id, tablespace, '
|| 'index_tablespace, temporary_tablespace '
|| 'from apps.fnd_product_installations';
begin
execute immediate l_stmt;
exception
when others then
raise_application_error(-20000,
'Error in creating table fnd_ts_prod_insts');
end;
end if;
close check_ftpi;
end;
/
DECLARE
l_dummy number;
begin
select 1 into l_dummy from APPLSYS.fnd_ts_prod_insts
where rownum < 2;
exception
when NO_DATA_FOUND then
insert into APPLSYS.fnd_ts_prod_insts
(APPLICATION_ID, ORACLE_ID, TABLESPACE,
INDEX_TABLESPACE, TEMPORARY_TABLESPACE)
select APPLICATION_ID, ORACLE_ID, TABLESPACE,
INDEX_TABLESPACE, TEMPORARY_TABLESPACE
from apps.fnd_product_installations;
END;
/
DECLARE
CURSOR usr_csr IS
SELECT oracle_id,
oracle_username
FROM apps.fnd_oracle_userid
WHERE read_only_flag in ('E', 'A', 'U')
ORDER by oracle_username;
CURSOR txn_tsp_csr IS
SELECT tablespace
FROM apps.fnd_tablespaces
WHERE tablespace_type = 'TRANSACTION_TABLES';
CURSOR txn_ind_tsp_csr IS
SELECT tablespace
07/04/2015
Page 148 of
FROM apps.fnd_tablespaces
WHERE tablespace_type = 'TRANSACTION_INDEXES' ;
CURSOR tsp_csr IS
SELECT ft.tablespace
FROM apps.fnd_tablespaces ft;
l_string
VARCHAR2(4000);
l_txn_tablespace
VARCHAR2(30);
l_txn_ind_tablespace VARCHAR2(30);
l_count_tab_spc_rows number;
BEGIN
OPEN txn_tsp_csr;
FETCH txn_tsp_csr INTO l_txn_tablespace;
if txn_tsp_csr%NOTFOUND then
raise_application_error(-20001, 'Tablespace of type TRANSACTION_TABLES is n
ot present in FND_TABLESPACES table.');
end if;
CLOSE txn_tsp_csr;
select count(*)
into l_count_tab_spc_rows
from dba_tablespaces
where TABLESPACE_NAME=l_txn_tablespace;
if l_count_tab_spc_rows <= 0 then
raise_application_error(-20001, 'Error: Tablespace
'||l_txn_tablespace||' does not exist.');
end if;
OPEN txn_ind_tsp_csr;
FETCH txn_ind_tsp_csr INTO l_txn_ind_tablespace;
if txn_ind_tsp_csr%NOTFOUND then
raise_application_error(-20001, 'Tablespace of type
TRANSACTION_INDEXES is not present in FND_TABLESPACES table.');
end if;
CLOSE txn_ind_tsp_csr;
select count(*)
into l_count_tab_spc_rows
from dba_tablespaces
where TABLESPACE_NAME=l_txn_ind_tablespace;
if l_count_tab_spc_rows <= 0 then
raise_application_error(-20001, 'Error: Tablespace '
||l_txn_ind_tablespace||' does not exist.');
end if;
FOR usr_rec IN usr_csr
LOOP
07/04/2015
Page 149 of
07/04/2015
Page 150 of
/
spool off
DECLARE
upd_fpg varchar2(300);
col_not_exist exception;
pragma exception_init(col_not_exist, -904);
begin
UPDATE apps.fnd_product_groups
SET is_new_ts_mode = 'Y';
exception when col_not_exist then
raise_application_error(-20000, sqlerrm ||
' :Your DB is missing is_new_ts_mode column in fnd_product_groups'||
' table. You must be on AD.I or later version of AD.');
when others then
raise_application_error(-20000, sqlerrm ||
' :Error updating FPG column');
end;
/
commit;
exit
07/04/2015
Page 151 of
c.
d.
e. $ su f. password:
g. #
h.
i. cd /temp
j.
k. # ./rootpre.sh
2.
3.
$LANG=C
C shell (csh):
% setenv LANG C
a. $ ./runInstaller -ignoreSysPrereqs
07/04/2015
Page 152 of
07/04/2015
Page 153 of
Page 154 of
*.timed_statistics=TRUE
*.undo_management='AUTO'
*.undo_retention=1800
*.undo_tablespace='APPS_UNDOTS1'
*.user_dump_dest='/u02/oracle/proddb/10.2.0/admin/PREPROD_hrdev/udump'
*.utl_file_dir='/usr/tmp','/usr/tmp','/u02/oracle/proddb/10.2.0/appsutil/outbound/PREPROD
_hrdev','/usr/tmp'
*.workarea_size_policy='AUTO'
07/04/2015
Page 155 of
APPENDIX D : .profile
Database .profile
$ su oradev
$ vi .profile
PATH=/usr/bin:/etc:/usr/vac/bin:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:
.
export PATH
set -o vi
#export ORACLE_HOME=/u02/oracle/proddb/9.2.0
#export ORACLE_SID=DEV
#. /u02/oracle/proddb/9.2.0/PREPROD_hrdev.env
#SCRIPTS=/u02/oracle/proddb/9.2.0/appsutil/scripts/PREPROD_hrdev
#export SCRIPTS
#================TSM entry========
#export LD_LIBRARY_PATH=$ORACLE_HOME/lib
#export ORACLE_BDUMP=/u02/oracle/proddb/9.2.0/admin/PREPROD_hrdev/bdump
. /u02/oracle/proddb/10.2.0/PREPROD_hrdev.env
if [ -s "$MAIL" ]
# This is at Shell startup. In normal
then echo "$MAILMSG"
# operation, the Shell checks
fi
# periodically.
export ORACLE_HOME=/u02/oracle/proddb/10.2.0
export ORACLE_SID=PREPROD
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:
$PATH:/u02/oracle/proddb/10.2
.0/OPatch
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
export PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perl
export ORA_NLS10=$ORACLE_HOME/nls/data/9idata
export TNS_ADMIN=$ORACLE_HOME/network/admin/PREPROD_hrdev
07/04/2015
Page 156 of
07/04/2015
Page 157 of
APPENDIX E : RW-50004
RW-50004
$ vi /u06/oracle/inst/apps/PREPROD_hrdev/logs/04170202.log
6% completed
07/04/2015
Page 158 of