linux模拟盘aix盘
vi /etc/rc.d/rc.local
/bin/ln /dev/sda /dev/rhdisk2
/bin/ln /dev/sdb /dev/rhdisk3
/bin/chown grid:oinstall /dev/rhdisk*
chmod 660 /dev/rhdisk*
一、19c安装GI(Standalone Oracle Restart)
su - grid
配置环境变量
vi .profile
export ORACLE_BASE=/oracle/gridbase
export ORACLE_HOME=/oracle/grid/crs_1
export ORACLE_SID=+ASM
export PATH=
O
R
A
C
L
E
H
O
M
E
/
b
i
n
:
ORACLE_HOME/bin:
ORACLEHOME/bin:ORACLE_HOME/OPatch:$PATH
解压:
unzip LINUX.X64_193000_grid_home.zip -d $ORACLE_HOME/
cd $ORACLE_HOME
./gridSetup.sh
OCR盘设置
Root下执行:
/oracle/oraInventory/orainstRoot.sh
/oracle/grid/crs_1/root.sh
1 19c安装DB软件
su - oracle
vi .profile
export ORACLE_BASE=/oracle/app
export ORACLE_HOME=/oracle/app/product/19.3.0/db_1
export ORACLE_SID=orcl
export PATH=
O
R
A
C
L
E
H
O
M
E
/
b
i
n
:
ORACLE_HOME/bin:
ORACLEHOME/bin:ORACLE_HOME/OPatch:$PATH
unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME
cd $ORACLE_HOME
./runInstaller
root用户执行:/oracle/app/product/19.3.0/db_1/root.sh
2 GI Oracle Restart补丁升级19.16
首先备份grid软件,补丁出问题方便回退
方式一:自动打补丁
root用户:
opatch更新
mv /oracle/grid/crs_1/OPatch /oracle/grid/crs_1/OPatchbak
unzip p6880880_190000_Linux-x86-64.zip -d /oracle/grid/crs_1
Chown grid:oinstall /oracle/grid/crs_1/OPatch
补丁升级
export PATH=$PATH:/oracle/grid/crs_1/OPatch
opatchauto apply /oracle/soft/34130714 -oh /oracle/grid/crs_1
方式二:手工打补丁
root用户:
mv /oracle/grid/crs_1/OPatch /oracle/grid/crs_1/OPatchbak
/oracle/grid/crs_1/crs/install/roothas.sh -prepatch
su - grid
unzip p6880880_190000_Linux-x86-64.zip -d
O
R
A
C
L
E
H
O
M
E
<
b
r
/
>
ORACLE_HOME<br />
ORACLEHOME<br/>ORACLE_HOME/OPatch/opatch version
unzip p34130714_190000_Linux-x86-64.zip
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local 34130714/33575402
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local 34130714/34133642
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local 34130714/34139601
$ORACLE_HOME/OPatch/opatch apply -oh O R A C L E H O M E − l o c a l 34130714 / 34160635 < b r / > ORACLE_HOME -local 34130714/34160635<br /> ORACLEHOME−local34130714/34160635<br/>ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local 34130714/34318175
root用户:
/oracle/grid/crs_1/crs/install/roothas.sh -postpatch
3 Db补丁升级
首先备份db软件,补丁失败方便回退
更新opatch软件:
su - oracle
mv /oracle/app/product/19.3.0/db_1/OPatch /oracle/app/product/19.3.0/db_1/OPatchbak
unzip p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
方式一:自动打补丁
root用户下:
export ORACLE_HOME=/oracle/app/product/19.3.0/db_1
export PATH=
P
A
T
H
:
PATH:
PATH:ORACLE_HOME/OPatch
opatchauto apply /oracle/soft/34130714 -oh /oracle/app/product/19.3.0/db_1
方式二:手工打补丁
oracle用户下:
cd /oracle/soft/34130714/34133642
opatch apply
cd /oracle/soft/34130714/34160635
opatch apply