《Oracle Applications DBA 基础》- 14. 从 11i 到 R12的升级
2013-10-11 15:13
639 查看
《Oracle Applications DBA
基础》- 14. 从 11i 到 R12的升级
=======================
参考资料:
1. Oracle Applications Upgrade Guide: Release 11i to Release 12.0.4
http://download.oracle.com/docs/ ... bat/r1204upg11i.pdf
2. <850008.1> Interesting Documents Concerning E-Business Suite 11i to R12 Upgrades
3. <554509.1> Unable To Login To Oracle Applications After Upgrading
from 11.5.10 to R12
4. <403339.1> Oracle 10gR2 Database Preparation Guidelines for
an Oracle E-Business Suite Release 12.0.4 Upgrade
5. http://advait.wordpress.com/2008/03/04/
upgrading-oracle-application-11i-to-e-business-suite-r12/
11i 到 R12 的升级过程比较复杂,下面分planning, preparing, upgrade, after upgrade
几个section 简单介绍一下,只是一个大概的印象。主要还是靠阅读相关的metalink 文档。
除了tech stack的升级外,一部分精力可能还在各个product 升级后,业务可能遇到的bug,
需要其他进一步的patch。不过,好在11i upgrade 通常也不是一两天的工作。
14.1 planning for upgrade
=========================
首先清楚自己在什么版本,一般要求在11.5.10.2 CU2 ,
metalink note <316366.1>: 11.5.10 Oracle E-Business Suite Consolidated Update 2 (CU2) ,
有这样的解释:
"11.5.10.2 Maintenance Pack (3480000.drv). This new release of the maintenance pack
includes CU2. You do not have to apply it separately"
"Like the 11.5.10.2 Maintenance Pack, Rapid Install 11.5.10.2 also includes CU2,
so there is no need to apply it separately. "
相关的11.5.10.2 CU2 的patch number:
Patch 3460000: 11.5.10 ORACLE E-BUSINESS SUITE CONSOLIDATED UPDATE 2
Patch 3480000: ORACLE APPLICATIONS RELEASE 11.5.10.2 MAINTENANCE PACK
检查 11.5.10 CU2 的 level:
select bug_number from apps.ad_bugs where bug_number ='3460000';
检查 AD 的 level:
select patch_level from fnd_product_installations where patch_level like '%AD%';
11i.AD.I.5
检查 check tablespace sizing
select sum(bytes)/1024/1024,TABLESPACE_NAME from
dba_free_space group by TABLESPACE_NAME;
select contents,extent_management,allocation_type
from dba_tablespaces where tablespace_name='TEMP';
检查 OATM Oracle Application Tablespace Model
检查 multiple org 是否enabled
select multi_org_flag from apps.fnd_product_groups;
select * from apps.hr_operating_units;
profile option: "MO:Operating Unit"
检查 db parameters
recyclebin=off
14.2 Preparing for the upgrade
================================
安装 TUMS (Upgrade Manual Script ) patch 5120936, 步骤如下:
adadmin => adpatch
cd $AD_TOP/patch/115/sql
sqlplus apps/welcome @adtums.sql /usr/tmp
注意: /usr/tmp must be in the "utl_file_dir"
安装 AD preparation patch: patch 5726010
cd 5726010
sqlplus apps/welcome @adgncons.sql apps welcome
修改 adcrtbsp.sql to reflect your current tablespace information
sqlplus <SYSTEM>/<SYSTEM PASSWORD> @adcrtbsp.sql
mkdir -p $ORACLE_HOME/appsutil/admin
cp adgrants.sql $ORACLE_HOME/appsutil/admin
sqlplus / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPLSYS
run gather statistics
14.3 upgrade
================================
确认 character sets of APPL_TOP
Character Sets
You have to be careful while selecting the character set for APPL_TOP.
### create /u01 ,/u02, /u03 for the R12 tech stacks.
/u01 => appl_top,common_top, 10.1.3,10.1.2
/u02 => inst_top
/u03 => rdbms home ,10.2.3
chown -R applvis:dba /u01
chown -R applvis:dba /u02
chown -R oravis:dba /u03
第一次运行 rapidwiz 安装新的tech stack:
[root@mis rapidwiz]# pwd
/media/usbdisk/r1204/StageR12/startCD/Disk1/rapidwiz
[root@mis rapidwiz]# ./rapidwiz
选项如下:
=> upgrade to R12 => create upgrade file system => apps/welcome
Configuration file written to: /u02/apps/PROD_mis/conf_PROD.txt
Configuration file written to: /u03/db/tech_st/10.2.0/appsutil/conf_PROD.txt
Database logfile - /u03/db/tech_st/10.2.0/appsutil/log/PROD_mis/12121135.log
Appltop logfile - /u02/apps/PROD_mis/logs/12121135.log
升级数据库 to 10gR2
apply patch 6319846
[oravis@mis 6319846]$ $ORACLE_HOME/OPatch/opatch napply -skip_subset -skip_duplicate
sql>@postinstall.sql
apply patch 6110331
如果 apps account locked ,unlock apps, enable maintenance
source R12's env, apply patch 6604842
#$APPL_TOP/admin/topfile.txt
### apply u6394500.drv
cd $AU_TOP/patch/115/driver
adpatch options=nocopyportion,nogenerateportion
可能问题如下:
1. mkdir admin
2. ORA-02303: cannot drop or replace a type with type or table dependents
metalink: <603952.1> Script jtfpfcreate.sql fails during Upgrade to Release 12.0.4
no dependent objects found for type "JTF_PF_CLIENT_OBJECT"
drop type force for all the type listed in <603952.1>.
drop TYPE APPS.JTF_PF_CLIENT_OBJECT force;
use adctrl to restart failed job
### JTF Java Technology Foundation, used by CRM , iStore,iMarketing
3. ORA-01653: unable to extend table APPLSYS.AD_DEFERRED_JOBS by 16 in tablespace APPS_TS_TX_DATA
restart adpatch
4. /u01/apps/apps_st/appl/jtf/12.0.0/patch/115/sql/jtfpfstart.sql
apparently workaround for point 2 is not good. causing issue here.
just modify the sql and put exit.
5. restart a failed patch process
tell worker to shutdown ;
tell manager that worker failed its job ;
tell manager that worker acknowledges quit ;
restart adpatch;
#######################################
### autoconfig rdbms home
### 第二次运行 rapidwiz 以配置系统。
[root@mis rapidwiz]# ./rapidwiz
Rapid Install Wizard is validating your file system......
4 dvd labels found
Rapid Install Wizard will now launch the Java Interface.....
[root@mis rapidwiz]# Appltop logfile - /u02/apps/PROD_mis/logs/12151909.log
14.4 Upgrade 后可能的问题
#############################
can't open any form after login:
java console get this:
Loaded image:
Following Exception occured: java.lang.IllegalArgumentException: Illegal argument for colorScheme applet parameter
java.lang.IllegalArgumentException: Illegal argument for colorScheme applet parameter
at oracle.forms.engine.Main.initDesktop(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
metalink <858367.1> matches .
just deinstall java 1.5 and then open a form again it will pickup the java 1.6.
and ok.
no FND_COLOR_SCHEME in R12. only "java color scheme", and not set.
############################################################
基础》- 14. 从 11i 到 R12的升级
=======================
参考资料:
1. Oracle Applications Upgrade Guide: Release 11i to Release 12.0.4
http://download.oracle.com/docs/ ... bat/r1204upg11i.pdf
2. <850008.1> Interesting Documents Concerning E-Business Suite 11i to R12 Upgrades
3. <554509.1> Unable To Login To Oracle Applications After Upgrading
from 11.5.10 to R12
4. <403339.1> Oracle 10gR2 Database Preparation Guidelines for
an Oracle E-Business Suite Release 12.0.4 Upgrade
5. http://advait.wordpress.com/2008/03/04/
upgrading-oracle-application-11i-to-e-business-suite-r12/
11i 到 R12 的升级过程比较复杂,下面分planning, preparing, upgrade, after upgrade
几个section 简单介绍一下,只是一个大概的印象。主要还是靠阅读相关的metalink 文档。
除了tech stack的升级外,一部分精力可能还在各个product 升级后,业务可能遇到的bug,
需要其他进一步的patch。不过,好在11i upgrade 通常也不是一两天的工作。
14.1 planning for upgrade
=========================
首先清楚自己在什么版本,一般要求在11.5.10.2 CU2 ,
metalink note <316366.1>: 11.5.10 Oracle E-Business Suite Consolidated Update 2 (CU2) ,
有这样的解释:
"11.5.10.2 Maintenance Pack (3480000.drv). This new release of the maintenance pack
includes CU2. You do not have to apply it separately"
"Like the 11.5.10.2 Maintenance Pack, Rapid Install 11.5.10.2 also includes CU2,
so there is no need to apply it separately. "
相关的11.5.10.2 CU2 的patch number:
Patch 3460000: 11.5.10 ORACLE E-BUSINESS SUITE CONSOLIDATED UPDATE 2
Patch 3480000: ORACLE APPLICATIONS RELEASE 11.5.10.2 MAINTENANCE PACK
检查 11.5.10 CU2 的 level:
select bug_number from apps.ad_bugs where bug_number ='3460000';
检查 AD 的 level:
select patch_level from fnd_product_installations where patch_level like '%AD%';
11i.AD.I.5
检查 check tablespace sizing
select sum(bytes)/1024/1024,TABLESPACE_NAME from
dba_free_space group by TABLESPACE_NAME;
select contents,extent_management,allocation_type
from dba_tablespaces where tablespace_name='TEMP';
检查 OATM Oracle Application Tablespace Model
检查 multiple org 是否enabled
select multi_org_flag from apps.fnd_product_groups;
select * from apps.hr_operating_units;
profile option: "MO:Operating Unit"
检查 db parameters
recyclebin=off
14.2 Preparing for the upgrade
================================
安装 TUMS (Upgrade Manual Script ) patch 5120936, 步骤如下:
adadmin => adpatch
cd $AD_TOP/patch/115/sql
sqlplus apps/welcome @adtums.sql /usr/tmp
注意: /usr/tmp must be in the "utl_file_dir"
安装 AD preparation patch: patch 5726010
cd 5726010
sqlplus apps/welcome @adgncons.sql apps welcome
修改 adcrtbsp.sql to reflect your current tablespace information
sqlplus <SYSTEM>/<SYSTEM PASSWORD> @adcrtbsp.sql
mkdir -p $ORACLE_HOME/appsutil/admin
cp adgrants.sql $ORACLE_HOME/appsutil/admin
sqlplus / as sysdba
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql APPLSYS
run gather statistics
14.3 upgrade
================================
确认 character sets of APPL_TOP
Character Sets
You have to be careful while selecting the character set for APPL_TOP.
### create /u01 ,/u02, /u03 for the R12 tech stacks.
/u01 => appl_top,common_top, 10.1.3,10.1.2
/u02 => inst_top
/u03 => rdbms home ,10.2.3
chown -R applvis:dba /u01
chown -R applvis:dba /u02
chown -R oravis:dba /u03
第一次运行 rapidwiz 安装新的tech stack:
[root@mis rapidwiz]# pwd
/media/usbdisk/r1204/StageR12/startCD/Disk1/rapidwiz
[root@mis rapidwiz]# ./rapidwiz
选项如下:
=> upgrade to R12 => create upgrade file system => apps/welcome
Configuration file written to: /u02/apps/PROD_mis/conf_PROD.txt
Configuration file written to: /u03/db/tech_st/10.2.0/appsutil/conf_PROD.txt
Database logfile - /u03/db/tech_st/10.2.0/appsutil/log/PROD_mis/12121135.log
Appltop logfile - /u02/apps/PROD_mis/logs/12121135.log
升级数据库 to 10gR2
apply patch 6319846
[oravis@mis 6319846]$ $ORACLE_HOME/OPatch/opatch napply -skip_subset -skip_duplicate
sql>@postinstall.sql
apply patch 6110331
如果 apps account locked ,unlock apps, enable maintenance
source R12's env, apply patch 6604842
#$APPL_TOP/admin/topfile.txt
### apply u6394500.drv
cd $AU_TOP/patch/115/driver
adpatch options=nocopyportion,nogenerateportion
可能问题如下:
1. mkdir admin
2. ORA-02303: cannot drop or replace a type with type or table dependents
metalink: <603952.1> Script jtfpfcreate.sql fails during Upgrade to Release 12.0.4
no dependent objects found for type "JTF_PF_CLIENT_OBJECT"
drop type force for all the type listed in <603952.1>.
drop TYPE APPS.JTF_PF_CLIENT_OBJECT force;
use adctrl to restart failed job
### JTF Java Technology Foundation, used by CRM , iStore,iMarketing
3. ORA-01653: unable to extend table APPLSYS.AD_DEFERRED_JOBS by 16 in tablespace APPS_TS_TX_DATA
restart adpatch
4. /u01/apps/apps_st/appl/jtf/12.0.0/patch/115/sql/jtfpfstart.sql
apparently workaround for point 2 is not good. causing issue here.
just modify the sql and put exit.
5. restart a failed patch process
tell worker to shutdown ;
tell manager that worker failed its job ;
tell manager that worker acknowledges quit ;
restart adpatch;
#######################################
### autoconfig rdbms home
### 第二次运行 rapidwiz 以配置系统。
[root@mis rapidwiz]# ./rapidwiz
Rapid Install Wizard is validating your file system......
4 dvd labels found
Rapid Install Wizard will now launch the Java Interface.....
[root@mis rapidwiz]# Appltop logfile - /u02/apps/PROD_mis/logs/12151909.log
14.4 Upgrade 后可能的问题
#############################
can't open any form after login:
java console get this:
Loaded image:
Following Exception occured: java.lang.IllegalArgumentException: Illegal argument for colorScheme applet parameter
java.lang.IllegalArgumentException: Illegal argument for colorScheme applet parameter
at oracle.forms.engine.Main.initDesktop(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
metalink <858367.1> matches .
just deinstall java 1.5 and then open a form again it will pickup the java 1.6.
and ok.
no FND_COLOR_SCHEME in R12. only "java color scheme", and not set.
############################################################
相关文章推荐
- 《Oracle Applications DBA 基础》- 13 - 性能调整基础
- 《Oracle Applications DBA 基础》 - 引子
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing[Z]
- 《Oracle Applications DBA 基础》 1-2 系统概要及安装
- 《Oracle Applications DBA 基础》3- 4 系统架构及基本系统管理知识
- 《Oracle Applications DBA 基础》5- AD 工具 and patching
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing
- 《Oracle Applications DBA 基础》- 7-8 OAM及系统管理
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing
- 《Oracle Applications DBA 基础》- 9 - Concurrent Processing
- 《Oracle Applications DBA 基础》- 10 Custom Application Integration
- 《Oracle Applications DBA 基础》 - 11 - 12 FNDCPASS ,FND_STATS 和 FNDLOAD
- Java Caching for Oracle Applications 11i
- oracle基础笔记-如果不是DBA,作为一个程序设计人员,特别是要使用Oracle的程序人员.非常有必要了解以下
- How to enable Apache, OC4J and OPMN logging in Oracle Applications R12
- 出错场景是升级oracle驱动,将版本从ojdbc14升级到ojdbc6,hibernate执行原生态sql语句会报如下错误
- Oracle DBA课程系列笔记(14)
- General Ledger Useful SQL Scripts – Oracle Applications 11i
- DBA_实践指南系列6_Oracle Erp R12工作流通知邮件配置Email(案例)