EBS R12安装升级(FRESH)(五)

7.4.5 用DBUA升级

Database Upgrade Assistant提供图形界面进行升级。

将zysong.ttf复制到

/u01/oracle/TEST/db/tech_st/11.2.0/jdk/jre/lib/fonts/fallback

否则图形界面会乱码

如果出现ORA-01408错误,参考“删除索引enabled$indexes,REPCAT$_AUDIT_COLUMN_IDX1”一节

虚拟机做个snapshot

(切换用户后,不加载环境变量,手动进入11gR2的home目录下的bin目录)

下一步:

选择oratab文件里面定义的老数据库目录,下一步:

等待几分钟:

检查这些警告,确认可以略过后点击是:

等待几秒:

勾选“在升级结束后重新编译无效对象”、“升级时区版本。。。”,新数据库就不备份了,下一步:

不移动,下一步:

勾选指定快速恢复区,容量先设个80G左右,下一步:

不用OEM,下一步:

浏览一遍信息,完成:

等待几个小时:

查看是否全部打勾通过,确定:

确认升级的所有信息,关闭:

dbua升级结束。

7.4.6 创建11gR2的listener.ora和tnsnames.ora

把文件中的11.1.0改成11.2.0

替换方法:


7.4.7 修改11gR2初始化参数

把11.1.0都改成11.2.0

替换方法:

参考配置文件(100用户以内),注意后面写着11gR2del的应该被注释掉

############## general
db_name=”TEST”
control_files = /u01/oracle/TEST/db/apps_st/data/cntrl01.dbf,/u01/oracle/TEST/db/apps_st/data/cntrl02.dbf,/u01/oracle/TEST/db/apps_st/data/cntrl03.dbf
db_block_size = 8192 #MP
_system_trig_enabled = TRUE #MP
o7_dictionary_accessibility = FALSE #MP
#### nls_language = american #11gR2del
nls_territory = america
nls_date_format = DD-MON-RR #MP
nls_numeric_characters = “.,”
nls_sort = binary #MP
nls_comp = binary #MP
nls_length_semantics = BYTE #MP
# audit_trail = TRUE
#### user_dump_dest = /ebiz/prodr12/udump #11gR2del
#### background_dump_dest = /ebiz/prodr12/bdump #11gR2del
#### core_dump_dest = /ebiz/prodr12/cdump #11gR2del
max_dump_file_size = 20480
#### timed_statistics = TRUE #11gR2del
_trace_files_public = TRUE
processes = 200
sessions = 400
db_files = 512
dml_locks = 10000
cursor_sharing = EXACT #MP
open_cursors = 600
session_cached_cursors = 500
sga_target = 2G #MP
db_block_checking = FALSE
db_block_checksum = TRUE
log_checkpoint_timeout = 1200
log_checkpoint_interval = 100000
log_buffer = 10485760
log_checkpoints_to_alert = TRUE
shared_pool_size = 400M
shared_pool_reserved_size = 40M
#### _shared_pool_reserved_min_alloc = 4100 #11gR2del
# cursor_space_for_time = FALSE
utl_file_dir=/usr/tmp, /usr/tmp, /u01/oracle/TEST/db/tech_st/11.2.0/appsutil/outbound/TEST_test, /usr/tmp
aq_tm_processes = 1
job_queue_processes = 2
LOG_ARCHIVE_DEST_1 = ‘LOCATION=/u01/archive’
#LOG_ARCHIVE_DEST_2 = ‘SERVICE=standby1′
parallel_max_servers = 4
parallel_min_servers = 0
_sort_elimination_cost_ratio =5 #MP
_like_with_bind_as_equality = TRUE #MP
_fast_full_scan_enabled = FALSE #MP
_b_tree_bitmap_plans = FALSE #MP
optimizer_secure_view_merging = FALSE #MP
#### _sqlexec_progression_cost = 2147483647 #MP #11gR2del
cluster_database = FALSE
pga_aggregate_target = 2G
workarea_size_policy = AUTO #MP
olap_page_pool_size = 4194304
############## 11gR2
compatible = 11.2.0
diagnostic_dest=/u01/oracle/TEST/db/tech_st/11.2.0/admin/TEST_test
undo_management=AUTO #MP
undo_tablespace=APPS_UNDOTS1
#plsql_code_type = NATIVE
_optimizer_autostats_job=FALSE #MP
parallel_force_local=TRUE #MP
sec_case_sensitive_logon = FALSE
db_recovery_file_dest=/u01/oracle/TEST/fast_recovery_area
db_recovery_file_dest_size=86696263680
##############
IFILE=/u01/oracle/TEST/db/tech_st/11.2.0/dbs/TEST_test_ifile.ora
##############

然后使用此配置文件:


7.4.8 执行补丁安装后操作

“打11gR2数据库补丁”一节打了一个opatch程序更新补丁和另外9个补丁4247037,9858539,12942119,12960302,12985184,13001379,13004894,13258936,13366268

其中13001379和13366268的后续操作已经在数据库升级过程中执行了,查看其他补丁的readme文件,进行opatch后操作。


4247037

(没有发现无效对象,如果有则运行$ORACLE_HOME/rdbms/admin/utlrp.sql)


9858539


12942119
无后续操作


12960302
无后续操作


12985184
无后续操作


13004894
无后续操作


13258936

(略)Natively compile PL/SQL code (optional)
You can choose to run Oracle E-Business Suite 12.1 PL/SQL database objects in natively compiled mode with Oracle Database 11g. See the “Compiling PL/SQL Program Units for Native Execution” section of Chapter 12 of Oracle Database PL/SQL Language Reference 11g Release 2 (11.2).

7.5 升级数据库后

(开两个终端窗口,其中一个切换到appltest用户加载环境变量,另外一个切换到oratest用户加载环境变量,就不用重复切换用户和加载环境变量了。)

7.5.1 启11gR2数据库监听

如果监听没启动则启动监听


7.5.2 执行adgrants.sql


7.5.3 赋予CTXSYS创建过程权限


7.5.4 设置CTXSYS参数

继续用上面的oratest用户和环境变量


7.5.5 验证工作流规则集

(略)Deregister the current database server (conditional)
If you plan to change the database port, host, SID, or database name parameter on the database server, you must also update AutoConfig on the database tier and deregister the current database server node.
Use SQL*Plus to connect to the database as APPS and run the following command:
$ sqlplus apps/[APPS password]
SQL> exec fnd_conc_clone.setup_clean;

7.5.6 运行autoconfig

复制AutoConfig 到RDBMS ORACLE_HOME

结果应显示

output located at /u01/TEST/inst/apps/TEST_test/admin/out/appsutil.zip
MakeAppsUtil completed successfully.

(略)在数据库层安装JRE
按照下面的步骤,确保应用层和数据库层的JRE 版本至少是1.5或更高版本:
若您使用的是”完全认证” 平台, 请参阅My Oracle Support文件 418664.1 在目录/appsutil 下安装jre.
若您使用的是 ” 只是数据库层” 平台, 请参阅My Oracle Support文件 456197.1 在目录/appsutil 下安装jre.

生成数据库层上下文文件

继续用上面oratest用户和环境变量

输入apps的密码apps

结果应显示

The context file has been created at:
/u01/oracle/TEST/db/tech_st/11.2.0/appsutil/TEST_test.xml

在数据库层运行AutoConfig

(没启应用,如果应用启了停掉,确认数据库和数据库监听都启动)

继续用上面oratest用户和环境变量

输入apps的密码apps

结果应显示

AutoConfig completed successfully.

如果出现错误,重新运行一遍试试。

7.5.7 打ECX补丁9151516(ebs12.1)

把p9151516_R12.ECX.B_R12_GENERIC.zip传到/stage/patch目录下

开启维护模式

adadmin 5 1

9151516.log
manager
确认补丁目录/stage/patch/9151516
u9151516.drv

等待几分钟

关闭维护模式adadmin 5 2

7.5.8 收集SYS统计信息

用oratest用户和11gR2环境变量

确认默认临时表有1.5G空闲空间然后继续

修改原来临时表


或者加临时表

将$APPL_TOP/admin/adstats.sql复制到数据库目录$ORACLE_HOME:

(用oratest用户和11gR2环境变量)

等待半个小时

(略)Create Demantra privileges (conditional)
If you are using Demantra, perform the steps in document 730883.1 on My Oracle Support.

(略)Re-create custom database links (conditional)
没改监听,略过
If the Oracle Net listener in the 11.2.0 Oracle home is defined differently than the one used by the old Oracle home, you
must re-create any custom self-referential database links that exist in the Applications database instance. To check for
the existence of database links, use SQL*Plus on the database server node to connect to the Applications database instance as APPS and run the following query:
$ sqlplus apps/[apps password ]
SQL> select db_link from all_db_links;
The EDW_APPS_TO_WH and APPS_TO_APPS database links, if they exist, should have been updated with the new port number by AutoConfig in the previous step.
If you have custom self-referential database links in the database instance, use the following commands to drop and re-create them:
$ sqlplus apps/[apps password ]
SQL> drop database link [ custom database link ];
SQL> create database link [custom database link ] connect to
[user] identified by [password ] using
‘(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=[hostname ])
(PORT=[port number]))(CONNECT_DATA=(SID=[ ORACLE_SID ])))';
where [custom database link], [user], [password], [hostname], [port number], and [ORACLE_SID] reflect the new Oracle Net listener for the database instance.

7.5.9 重建apps授权和同义词

adadmin 4 2

等待几分钟

(略)Enable Database Vault (conditional)
If you disabled Database Vault, enable it by performing step 7 of Part 2 of document 1091083.1 on My Oracle Support.

7.5.10 重启应用和数据库


7.5.11 同步工作流视图

启动数据库和应用后
浏览器打开http://test.ebs.local:8001/OA_HTML/AppsLogin
sysadmin/sysadmin
进入系统管理员职责
并发-请求
提交新请求,单个请求,确定
请求名称:工作流目录服务用户/职责验证
参数:10000 是是 否 (留空)
提交
等待几十秒完成。

(如果提示默认值错误可以忽略,或者手动修改:
并发-方案-定义
F11搜索 程序:工作流目录服务用户/职责验证
参数
选择p_Check_Dangling,默认值改为“否”
选择p_Check_Missing_URA,默认值改为“否”
选择p_UpdateWho,默认值改为“否”)

8 升级OracleAS到10.1.3.5

虚拟机先做snapshot。

8.1 OUI相关操作

用root用户执行xhost +命令,允许所有用户运行图形界面。

解决oui中文乱码

将zysong.ttf复制到/usr/share/fonts/zh_CN/TrueType/

8.2 加载10.1.3环境变量


8.3 升级opatch

(升级数据库时升级了数据库目录下的opatch,而且用的11.2.0.0.0版本opatch,文件名p6880880_112000_LINUX.zip,这里因为安装程序的oui版本是10.1所以要用10.1.0.0.0版本opatch,文件名p6880880_101000_LINUX.zip)

(继续用上面的appltest用户和10.1.3环境变量)

检查opatch版本,要求1.0.0.0.58以上

显示OPatch Version: 1.0.0.0.57,需要进行升级。

将p6880880_101000_LINUX.zip传到/stage/patch下

(继续用上面的appltest用户和10.1.3环境变量)

用echo $ORACLE_HOME命令确认是否10.1.3目录/u01/TEST/apps/tech_st/10.1.3

再用$ORACLE_HOME/OPatch/opatch version查看版本OPatch Version: 1.0.0.0.64

8.4 打oas升级补丁8626084、8920270

将p8626084_101350_LINUX.zip、p8920270_101350_LINUX.zip传到/stage/patch下

(继续用上面的appltest用户和10.1.3环境变量)

备份源文件后打补丁8920270到8626084的安装文件上

然后再打8626084

y

(终端有提示
Warning: Cannot convert string “-b&h-luxi sans-medium-r-normal–*-140-*-*-p-*-iso8859-1″ to type FontStruct
Warning: Cannot convert string “-isas-song ti-medium-r-normal–*-140-*-*-c-*-gb2312.1980-0″ to type FontStruct
可以正常显示中文所以忽略
与/stage/patch/Disk1/stage/Components/oracle.swd.jre/1.4.2.4.0/1/DataFiles目录中all_except_bin.jar里面/jre/1.4.2/lib/目录的font.properties.zh_CN.Redhat文件有关暂时没找到解决方法,参考http://bbs.csdn.net/topics/44170)

下一步(点击“关于。。。”可以看到oui版本为10.1):

确认安装包products.xml路径(一般默认),确认10.1.3路径(点路径右边下拉箭头选/u01/TEST/apps/tech_st/10.1.3),下一步:

不接收更新,下一步:

是:

输入oc4jadmin默认密码oafm或secret或在本文中搜索“修改oc4jadmin密码”。下一步:

确定:

安装:

等待十分钟,直到提示用root用户运行脚本:

另外打开一个终端窗口

用root用户运行

关闭新开的终端窗口,确定:

如果opatch版本有问题,第一步会出错,用root用户打p6880880_101000_LINUX.zip补丁,然后chown给appltest用户dba组再重试。

退出:

是:

打oas升级补丁结束。

8.5 停应用,运行应用层autoconfig

停应用:

等待十分钟,确认应用进程都已结束

运行应用层autoconfig:

输入apps的密码apps

8.6 打补丁8999551

将p8999551_101350_Generic.zip传到/stage/patch下

回车
y
y

(略)Customers using JDK 1.6.0_29 or higher or JDK 1.7 should also apply the following:
Linux x86 (32bit and 64bit)
Patch 12965674
su – appltest
. /u01/TEST/inst/apps/TEST_test/ora/10.1.3/TEST_test.env
$ORACLE_HOME/jdk/bin/java -fullversion
备用:检查10.1.2 java版本
su – appltest
. /u01/TEST/apps/apps_st/appl/APPSTEST_test.env
$ORACLE_HOME/jdk/bin/java -fullversion
$ADJVAPRG -version
$AFJVAPRG -version

(略)Application of OracleAS 10g Release 3 (10.1.3) Patch Set 5 (10.1.3.5) will rollback required SOA Gateway Integration and JPUB code. Refer to My Oracle Support Knowledge Document 556540.1 for the OracleAS 10.1.3.5 patch numbers.

8.7 重新生成appsborg.zip和appsborg2.zip文件

adadmin 1 4 no

8.8 确认补丁升级结果,启应用

找到

Oracle Application Server PatchSet 10.1.3.5.0


9 升级EBS应用到12.1.3

9.1 拓展表空间

直接打9239090时会报表空间不足的错误:
ORA-01653: unable to extend table APPLSYS.AD_DEFERRED_JOBS by 16 in tablespace APPS_TS_TX_DATA

拓展表空间:

然后用记事本之类复制上面语句的执行结果,删除多余文字、回车、空行,保存到之前pwd显示的目录,文件名ae.sql。

参考内容如下(44 rows selected.2 rows selected.共46行)

然后在sqlplus中执行

检查是否全部显示Database altered.

9.2 打补丁9239089

将p9239089_R12.AD.B_R12_LINUX.zip传到/stage/patch下

停应用

开维护模式

adadmin 5 1

打补丁:

9239089.log
manager
确认目录/stage/patch/9239089
u9239089.drv

等待十分钟

类似/u01/TEST/apps/apps_st/appl/admin/zfaprod.txt does not exist for product “zfa” This product is registered in the database but the above file does not exist in APPL_TOP.的提示可以忽略。

9.3 打12.1.3升级补丁9239090

接着上一步,继续用appltest用户和环境变量,保持应用关闭和维护模式开启

把p9239090_R12_LINUX_1of6.zip、p9239090_R12_LINUX_2of6.zip、p9239090_R12_LINUX_3of6.zip、p9239090_R12_LINUX_4of6.zip、p9239090_R12_LINUX_5of6.zip、p9239090_R12_LINUX_6of6.zip传到/stage/patch下

确认adrelinknew.sh已经修改,参考“重新链接高级供应链规划(ASCP)可执行文件”部分的内容进行其中所有操作。

9239090.log
manager
确认目录/stage/patch/9239090
u9239090.drv
yes

等待十小时

隔几个小时看下状态,是否有错误

接着马上打9239090_ZHS

(如果worker出现failed,查看提示,尝试解决,然后新开一个终端窗口

重新开始对应worker)

(到Compiling invalid objects… adutlrcmp.sql这一步会比较慢
另外新开一个终端窗口

隔几个小时查看一次数量是否减少)

(关掉其他所有程序一般不会出现下面问题:
注意: 当在熵不足的机器上随机数生成速度很慢时,升级过程中,JDBC连接可能超时.
在某些机器上,在某些情况下,与随机数生成相关的熵池可能不足. 这可能会导致JDBC连接进入等待状态,直到超时. 由于超时, AutoPatch 将会失败, 并报(SQLException(“Io exception:连接重置”))的错误. 要变通解决此问题,请使用以下过程来添加urandom作为非阻塞随机数生成器:
1. 确认安装了/dev/urandom.
2. 更新$CONTEXT_FILE中的参数s_adjreopts, 添加如下值: -Djava.security.egd=file:///dev/urandom 或者-Djava.security.egd=file:/dev/./urandom
3. 执行自动配置AutoConfig来填充相关环境文件.
4. 重新启动并继续升级程序.
请注意这个改动在升级完成后要移除掉. 它不能在生产系统中使用, 因为它会导致随机数使用更少的熵.)

(此问题未测试!:
如果遇到FAILED: file egoxslinsert.sql on worker 1 for product ego username EGO.
sqlplus -s APPS/apps @/u01/TEST/apps/apps_st/appl/ego/12.0.0/patch/115/sql/egoxslinsert.sql
ERROR at line 1:
ORA-03113: end-of-file on communication channel
ERROR:
ORA-03114: not connected to ORACLE
log:Exception [type: SIGSEGV, Address not mapped to object]

尝试修改数据库配置文件,

增加下面一行

_disable_logging=false

然后启用此配置文件

或者试试直接改这个参数

9.4 打12.1.3中文升级补丁9239090_ZHS

接着上一步,继续用appltest用户和环境变量,保持应用关闭和维护模式开启

把p9239090_R12_zhs.zip传到/stage/patch下

9239090_ZHS.log
manager
确认目录/stage/patch/9239090_ZHS
u9239090.drv
等待两三个小时

9.5 打帮助补丁9239095

接着上一步,继续用appltest用户和环境变量,保持应用关闭和维护模式开启

把p9239095_R12_GENERIC.zip传到/stage/patch

9239095.log
manager
确认目录/stage/patch/9239095
u9239095.drv

等待一两个小时

9.6 打更新后的强制补丁9817770、9966055

说明:打9817770、9966055前需要打的8919491已经包含在R12.1.3升级包中。

接着上一步,继续用appltest用户和环境变量,保持应用关闭和维护模式开启

把p9817770_R12.ATG_PF.B_R12_LINUX.zip、p9966055_R12.FND.B_R12_GENERIC.zip传到/stage/patch下

9817770.log
manager
确认目录/stage/patch/9817770
u9817770.drv

等待几分钟

9966055.log
manager
确认目录/stage/patch/9966055
u9966055.drv

等待几分钟

关闭维护模式

adadmin 5 2

保持应用关闭状态,保持数据库启动状态,进行下一节操作

9.7 更新数据库节点

先进行应用层autoconfig

输入apps的密码apps

运行admkappsutil.pl工具在目录$INST_TOP/admin/out中生成文件appsutil.zip

将文件传到数据库层home目录,这里应用和数据库都在一个机器上,直接复制即可。

进行数据库层autoconfig

输入apps的密码apps

预克隆:

输入apps的密码apps

(官方12.1.3文档其他信息:
执行相关产品的特定步骤
您完成相应代码级别的所有数据库层节点更新的步骤后,只在你被许可使用这些产品中的任意一个时,执行如下更新后的步骤:
Oracle Complex Maintenance Repair and Overhaul, Oracle Price Protection, Oracle Purchasing, Oracle Shipping Execution, and Oracle Warehouse Management
使用这些产品的客户应按照文件Document 1070257.1完成安装,配置和部署步骤以使用Oracle电子商务套件12.1.3的Oracle BPEL Process Manager 11g .
Oracle Complex Maintenance Repair and Overhaul
CMRO的客户应该执行文件Document 1077188.1Deployment Guide: Complex MRO BPEL Processes, 版本 12.1.3中的步骤.
Oracle E-Business Suite Integrated SOA Gateway
Oracle电子商务套件Integrated SOA Gateway 需要执行手动的更新后的安装步骤。若您想使用Oracle电子商务套件Integrated SOA Gateway 功能来产生,部署,和调用Web服务,需要执行文档Document 556540.1中安装Oracle电子商务套件Integrated SOA Gateway版本12的步骤.
若您计划使用封装了Oracle Forms的逻辑,发布在Oracle Integration Repository中的SCM Web服务, 请参照文档Document 966982.1 Troubleshooting Oracle Supply Chain Management Web Services 获得最新的关于SCM Web services的故障排除信息.
Oracle Manufacturing Operations Center
若您被许可使用Oracle Manufacturing Operations Center, 请执行文档Document 1129366.1Oracle Manufacturing Operations Center Installation Notes, 版本12.1.3 中提到的步骤来启用该产品.
Oracle Product Information Management
PIM发布web服务需要手动的后置安装步骤。若您将使用Oracle Product Hub for Communications的发布功能,请执行文档Document 888696.1中的步骤.
Oracle Purchasing with Oracle Transportation Management
Oracle Purchasing 与Oracle Transportation Management 集成。若您既被许可使用Oracle Transportation Management 也被许可使用Oracle Purchasing,并且与Oracle Purchasing一起使用Oracle Transportation Management,请执行文档Document 1077428.1Oracle Transportation Management Integration with Oracle电子商务套件Post-Update Steps, 版本 12.1.3中所列的更新后的步骤.
Oracle Shipping Execution with Oracle Transportation Management
Oracle Shipping Execution (Oracle Order Management 的一部分)与Oracle Transportation Management集成。若您既被许可使用Oracle Transportation Management 也被许可使用Oracle Order Management 并且与Oracle Shipping Execution一起使用Oracle Transportation Management,请执行文档Document 1077428.1Oracle Transportation Management Integration with Oracle电子商务套件Post-Update Steps, 版本 12.1.3 中所列的更新后的步骤.
Oracle Value Chain Planning
Oracle Value Chain Planning 包含Advanced Supply Chain Planning, Demand Planning, Inventory Optimization, Global Order Promising, Collaborative Planning, Production Scheduling, Strategic Network Optimization, Service Parts Planning, Advanced Planning Command Center 和 Demand Signal Repository。若您被许可使用以上任一产品,请执行文档Document 1157809.1Oracle Value Chain Planning Installation Notes 版本 12.1.3 中相关部分的步骤来启用这些应用产品
Oracle Warehouse Management with Oracle Transportation Management
Oracle Warehouse Management与Oracle Transportation Management集成。若您既被许可使用Oracle Transportation Management 也被许可使用Oracle Warehouse Management 并且与Oracle Warehouse Management一起使用Oracle Transportation Management ,请执行文档Document 1077428.1Oracle Transportation Management Integration with Oracle电子商务套件Post-Update Steps, 版本 12.1.3中所列更新后的步骤.
略)

EBS安装、升级结束。

原文地址:https://www.cnblogs.com/wanghang/p/6299043.html