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
1
|
su
-
oratest
|
(切换用户后,不加载环境变量,手动进入11gR2的home目录下的bin目录)
1
2
|
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
bin
.
/
dbua
-
initParam
"_disable_fast_validate=TRUE"
|
下一步:
等待几分钟:
勾选“在升级结束后重新编译无效对象”、“升级时区版本。。。”,新数据库就不备份了,下一步:
不移动,下一步:
浏览一遍信息,完成:
查看是否全部打勾通过,确定:
dbua升级结束。
1
2
3
|
su
-
oratest
cp
-
r
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.1.0
/
network
/
admin
/
TEST_test
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
|
把文件中的11.1.0改成11.2.0
1
|
vi
listener
.
ora
|
1
|
vi
sqlnet
.
ora
|
1
|
vi
tnsnames
.
ora
|
替换方法:
1
|
:
%
s
/
11.1.0
/
11.2.0
/
g
|
1
2
3
|
su
-
oratest
cp
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.1.0
/
dbs
/
TEST_test_ifile
.
ora
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
dbs
vi
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
dbs
/
initTEST
.
ora
|
把11.1.0都改成11.2.0
替换方法:
1
|
:
%
s
/
11.1.0
/
11.2.0
/
g
|
参考配置文件(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
##############
然后使用此配置文件:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
mkdir
-
p
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
admin
/
TEST_test
sqlplus
/
as
sysdba
shutdown
immediate
create
spfile
=
'/u01/oracle/TEST/db/tech_st/11.2.0/dbs/spfileTEST.ora'
from
pfile
=
'/u01/oracle/TEST/db/tech_st/11.2.0/dbs/initTEST.ora'
;
startup
select
value
from
v
$
parameter
where
name
=
'spfile'
;
quit
|
“打11gR2数据库补丁”一节打了一个opatch程序更新补丁和另外9个补丁4247037,9858539,12942119,12960302,12985184,13001379,13004894,13258936,13366268
其中13001379和13366268的后续操作已经在数据库升级过程中执行了,查看其他补丁的readme文件,进行opatch后操作。
1
2
3
4
5
6
7
8
9
|
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
|
一
4247037
1
2
3
4
|
sqlplus
/
as
sysdba
drop
user
mgdsys
cascade
;
@
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
md
/
admin
/
catmgdidcode
.
sql
@
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
md
/
support
/
patchset_mgdsys_validity
.
sql
|
(没有发现无效对象,如果有则运行$ORACLE_HOME/rdbms/admin/utlrp.sql)
1
|
quit
|
二
9858539
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
rdbms
/
admin
sqlplus
/
as
sysdba
@
@
catnomtt
.
sql
@
@
catnomta
.
sql
@
@
dbmsmeta
.
sql
@
@
dbmsmeti
.
sql
@
@
dbmsmetu
.
sql
@
@
dbmsmetb
.
sql
@
@
dbmsmetd
.
sql
@
@
dbmsmet2
.
sql
@
@
catmeta
.
sql
@
@
prvtmeta
.
plb
@
@
prvtmeti
.
plb
@
@
prvtmetu
.
plb
@
@
prvtmetb
.
plb
@
@
prvtmetd
.
plb
@
@
prvtmet2
.
plb
@
@
catmet2
.
sql
alter
package
dbms_metadata_int
compile
plsql_ccflags
=
'ku$xml_enabled:true'
;
alter
package
dbms_metadata_util
compile
plsql_ccflags
=
'ku$xml_enabled:true'
;
quit
|
三
12942119
无后续操作
四
12960302
无后续操作
五
12985184
无后续操作
六
13004894
无后续操作
七
13258936
1
2
3
4
|
cd
$
ORACLE_HOME
/
ctx
/
admin
/
ctxpatch
/
sqlplus
/
as
sysdba
@
ctxpatch11203
.
sql
quit
|
(略)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).
(开两个终端窗口,其中一个切换到appltest用户加载环境变量,另外一个切换到oratest用户加载环境变量,就不用重复切换用户和加载环境变量了。)
如果监听没启动则启动监听
1
2
3
4
5
6
7
8
9
10
|
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
lsnrctl
start
TEST
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
echo
$
APPL_TOP
/
u01
/
TEST
/
apps
/
apps_st
/
appl
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
cp
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
admin
/
adgrants
.
sql
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
sqlplus
/
as
sysdba
@
adgrants
.
sql
apps
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
echo
$
AD_TOP
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
ad
/
12.0.0
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
cp
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
ad
/
12.0.0
/
patch
/
115
/
sql
/
adctxprv
.
sql
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
sqlplus
apps
/
apps
@
adctxprv
.
sql
manager
CTXSYS
|
继续用上面的oratest用户和环境变量
1
2
3
|
sqlplus
/
as
sysdba
exec
ctxsys
.
ctx_adm
.
set_parameter
(
'file_access_role'
,
'public'
)
;
quit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
echo
$
FND_TOP
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
fnd
/
12.0.0
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
sqlplus
apps
/
apps
@
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
fnd
/
12.0.0
/
patch
/
115
/
sql
/
wfaqupfix
.
sql
APPLSYS
APPS
|
(略)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;
复制AutoConfig 到RDBMS ORACLE_HOME
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
perl
$
AD_TOP
/
bin
/
admkappsutil
.
pl
|
结果应显示
output located at /u01/TEST/inst/apps/TEST_test/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
1
2
3
4
5
6
7
8
9
10
11
12
|
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
cp
/
u01
/
TEST
/
inst
/
apps
/
TEST_test
/
admin
/
out
/
appsutil
.
zip
$
ORACLE_HOME
cd
$
ORACLE_HOME
unzip
-
o
appsutil
.
zip
|
(略)在数据库层安装JRE
按照下面的步骤,确保应用层和数据库层的JRE 版本至少是1.5或更高版本:
若您使用的是”完全认证” 平台, 请参阅My Oracle Support文件 418664.1 在目录/appsutil 下安装jre.
若您使用的是 ” 只是数据库层” 平台, 请参阅My Oracle Support文件 456197.1 在目录/appsutil 下安装jre.
生成数据库层上下文文件
继续用上面oratest用户和环境变量
1
|
perl
$
ORACLE_HOME
/
appsutil
/
bin
/
adbldxml
.
pl
|
输入apps的密码apps
结果应显示
The context file has been created at:
/u01/oracle/TEST/db/tech_st/11.2.0/appsutil/TEST_test.xml
在数据库层运行AutoConfig
(没启应用,如果应用启了停掉,确认数据库和数据库监听都启动)
继续用上面oratest用户和环境变量
1
|
$
ORACLE_HOME
/
appsutil
/
bin
/
adconfig
.
sh
contextfile
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
appsutil
/
TEST_test
.
xml
|
输入apps的密码apps
结果应显示
AutoConfig completed successfully.
如果出现错误,重新运行一遍试试。
把p9151516_R12.ECX.B_R12_GENERIC.zip传到/stage/patch目录下
1
2
3
4
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
cd
/
stage
/
patch
unzip
p9151516_R12
.
ECX
.
B_R12_GENERIC
.
zip
|
开启维护模式
adadmin 5 1
1
2
|
cd
/
stage
/
patch
/
9151516
adpatch
|
9151516.log
manager
确认补丁目录/stage/patch/9151516
u9151516.drv
等待几分钟
关闭维护模式adadmin 5 2
用oratest用户和11gR2环境变量
1
2
3
4
5
6
7
8
9
|
su
-
oratest
export
ORACLE_SID
=
TEST
export
ORACLE_BASE
=
/
u01
/
oracle
/
TEST
export
ORACLE_HOME
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
export
PATH
=
$
ORACLE_HOME
/
bin
:
$
ORACLE_HOME
/
perl
/
bin
:
$
PATH
export
LD_LIBRARY_PATH
=
$
ORACLE_HOME
/
lib
export
PERL5LIB
=
$
ORACLE_HOME
/
perl
/
lib
/
5.10.0
:
$
ORACLE_HOME
/
perl
/
lib
/
site_perl
/
5.10.0
export
ORA_NLS10
=
$
ORACLE_HOME
/
nls
/
data
/
9idata
export
TNS_ADMIN
=
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
network
/
admin
/
TEST_test
|
确认默认临时表有1.5G空闲空间然后继续
修改原来临时表
1
2
3
4
|
sqlplus
/
as
sysdba
ALTER
DATABASE
TEMPFILE
'/u01/oracle/TEST/db/apps_st/data/temp01.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
TEMPFILE
'/u01/oracle/TEST/db/apps_st/data/temp02.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
quit
|
(
或者加临时表
1
2
3
4
5
|
create
temporary
tablespace
TEMP3
tempfile
' /u01/oracle/TEST/db/apps_st/data/temp03.dbf'
size
1600M
reuse
tablespace
group
TEMP
extent
management
local
uniform
size
128K
;
|
)
将$APPL_TOP/admin/adstats.sql复制到数据库目录$ORACLE_HOME:
(用oratest用户和11gR2环境变量)
1
2
3
4
5
|
cp
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
admin
/
adstats
.
sql
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
sqlplus
/
as
sysdba
alter
system
enable
restricted
session
;
@
adstats
.
sql
|
等待半个小时
1
2
3
|
sqlplus
/
as
sysdba
alter
system
disable
restricted
session
;
quit
|
(略)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.
1
2
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
|
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.
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
$
ADMIN_SCRIPTS_HOME
/
adstpall
.
sh
apps
/
apps
|
1
2
3
4
5
|
su
-
oratest
.
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
TEST_test
.
env
cd
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
appsutil
/
scripts
/
TEST
_test
.
/
addlnctl
.
sh
stop
TEST
.
/
addbctl
.
sh
stop
immediate
|
1
2
|
.
/
addbctl
.
sh
start
.
/
addlnctl
.
sh
start
TEST
|
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
$
ADMIN_SCRIPTS_HOME
/
adstrtal
.
sh
apps
/
apps
|
启动数据库和应用后
浏览器打开http://test.ebs.local:8001/OA_HTML/AppsLogin
sysadmin/sysadmin
进入系统管理员职责
并发-请求
提交新请求,单个请求,确定
请求名称:工作流目录服务用户/职责验证
参数:10000 是是 否 (留空)
提交
等待几十秒完成。
(如果提示默认值错误可以忽略,或者手动修改:
并发-方案-定义
F11搜索 程序:工作流目录服务用户/职责验证
参数
选择p_Check_Dangling,默认值改为“否”
选择p_Check_Missing_URA,默认值改为“否”
选择p_UpdateWho,默认值改为“否”)
虚拟机先做snapshot。
用root用户执行xhost +命令,允许所有用户运行图形界面。
1
2
|
su
-
root
xhost
+
|
解决oui中文乱码
1
2
|
su
-
root
mkdir
-
p
/
usr
/
share
/
fonts
/
zh_CN
/
TrueType
/
|
将zysong.ttf复制到/usr/share/fonts/zh_CN/TrueType/
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
inst
/
apps
/
TEST_test
/
ora
/
10.1.3
/
TEST_test
.
env
export
PATH
=
$
ORACLE_HOME
/
ant
/
bin
:
$
PATH
|
(升级数据库时升级了数据库目录下的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以上
1
|
$
ORACLE_HOME
/
OPatch
/
opatch
version
|
显示OPatch Version: 1.0.0.0.57,需要进行升级。
将p6880880_101000_LINUX.zip传到/stage/patch下
(继续用上面的appltest用户和10.1.3环境变量)
1
2
|
cd
/
stage
/
patch
unzip
p6880880_101000_LINUX
.
zip
|
用echo $ORACLE_HOME命令确认是否10.1.3目录/u01/TEST/apps/tech_st/10.1.3
1
2
|
mv
$
ORACLE_HOME
/
OPatch
$
ORACLE_HOME
/
OPatchBackup
mv
/
stage
/
patch
/
OPatch
$
ORACLE_HOME
|
再用$ORACLE_HOME/OPatch/opatch version查看版本OPatch Version: 1.0.0.0.64
将p8626084_101350_LINUX.zip、p8920270_101350_LINUX.zip传到/stage/patch下
(继续用上面的appltest用户和10.1.3环境变量)
1
2
3
|
cd
/
stage
/
patch
unzip
p8626084_101350_LINUX
.
zip
unzip
p8920270_101350_LINUX
.
zip
|
备份源文件后打补丁8920270到8626084的安装文件上
1
2
|
mv
/
stage
/
patch
/
Disk1
/
stage
/
Patches
/
oracle
.
as
.
j2ee
.
top
/
10.1.3.5.0
/
1
/
DataFiles
/
other
.
jar
/
stage
/
patch
/
Disk1
/
stage
/
Patches
/
oracle
.
as
.
j2ee
.
top
/
10.1.3.5.0
/
1
/
DataFiles
/
other
.
jar
.
pre8920270
mv
/
stage
/
patch
/
other
.
jar
/
stage
/
patch
/
Disk1
/
stage
/
Patches
/
oracle
.
as
.
j2ee
.
top
/
10.1.3.5.0
/
1
/
DataFiles
/
|
然后再打8626084
1
2
|
cd
/
stage
/
patch
/
Disk1
.
/
runInstaller
-
invPtrLoc
/
u01
/
TEST
/
apps
/
tech_st
/
10.1.3
/
oraInst
.
loc
|
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)
确认安装包products.xml路径(一般默认),确认10.1.3路径(点路径右边下拉箭头选/u01/TEST/apps/tech_st/10.1.3),下一步:
不接收更新,下一步:
输入oc4jadmin默认密码oafm或secret或在本文中搜索“修改oc4jadmin密码”。下一步:
确定:
另外打开一个终端窗口
用root用户运行
1
2
|
cd
/
u01
/
TEST
/
apps
/
tech_st
/
10.1.3
.
/
root
.
sh
|
如果opatch版本有问题,第一步会出错,用root用户打p6880880_101000_LINUX.zip补丁,然后chown给appltest用户dba组再重试。
打oas升级补丁结束。
停应用:
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
$
ADMIN_SCRIPTS_HOME
/
adstpall
.
sh
apps
/
apps
|
等待十分钟,确认应用进程都已结束
运行应用层autoconfig:
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
$
ADMIN_SCRIPTS_HOME
/
adautocfg
.
sh
|
输入apps的密码apps
将p8999551_101350_Generic.zip传到/stage/patch下
1
2
3
4
5
6
|
su
-
appltest
.
/
u01
/
TEST
/
inst
/
apps
/
TEST_test
/
ora
/
10.1.3
/
TEST_test
.
env
cd
/
stage
/
patch
unzip
p8999551_101350_Generic
.
zip
cd
/
stage
/
patch
/
8999551
opatch
apply
-
invPtrLoc
/
u01
/
TEST
/
apps
/
tech_st
/
10.1.3
/
oraInst
.
loc
|
回车
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.
1
2
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
|
adadmin 1 4 no
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
inst
/
apps
/
TEST_test
/
ora
/
10.1.3
/
TEST_test
.
env
opatch
lsinventory
-
detail
-
invPtrLoc
/
u01
/
TEST
/
apps
/
tech_st
/
10.1.3
/
oraInst
.
loc
|
找到
Oracle Application Server PatchSet 10.1.3.5.0
1
2
3
|
su
-
appltest
.
/
u01
/
TEST
/
apps
/
apps_st
/
appl
/
APPSTEST_test
.
env
$
ADMIN_SCRIPTS_HOME
/
adstrtal
.
sh
apps
/
apps
|
直接打9239090时会报表空间不足的错误:
ORA-01653: unable to extend table APPLSYS.AD_DEFERRED_JOBS by 16 in tablespace APPS_TS_TX_DATA
拓展表空间:
1
2
3
4
5
6
|
su
-
oratest
.
/
u01
/
oracle
/
TEST
/
db
/
tech_st
/
11.2.0
/
TEST_test
.
env
pwd
sqlplus
/
as
sysdba
select
'ALTER DATABASE DATAFILE '
''
||
dd
.
file_name
||
''
' AUTOEXTEND ON NEXT 50M MAXSIZE 4G;'
from
dba_data_files
dd
;
select
'ALTER DATABASE TEMPFILE '
''
||
dt
.
file_name
||
''
' AUTOEXTEND ON NEXT 50M MAXSIZE 4G;'
from
dba_temp_files
dt
;
|
然后用记事本之类复制上面语句的执行结果,删除多余文字、回车、空行,保存到之前pwd显示的目录,文件名ae.sql。
参考内容如下(44 rows selected.2 rows selected.共46行)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system12.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system11.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system10.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system01.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system02.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system03.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system04.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system05.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system06.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system07.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
DATAFILE
'/u01/oracle/TEST/db/apps_st/data/system08.dbf'
AUTOEXTEND
ON
NEXT
50M
MAXSIZE
4G
;
ALTER
DATABASE
|