1,加入我们使用nfs共享安装oracle,

安装oracle需要修改base,data,orainventory等等目录及自目录的属主及权限,一般会继承nfs客户端目录的权限及属主

groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle

chown -R oracle:oinstall $1
chown -R oracle:oinstall $2
#chown -R oracle:oinstall $3
chmod -R 755 $1
chmod -R 755 $2
nfs nobody,nobody 需要在nfs客户端修改从nfs服务器端共享过来的目录怎么办?-LMLPHP

nfs nobody,nobody 需要在nfs客户端修改从nfs服务器端共享过来的目录怎么办?-LMLPHP

存储: DBS100    10.251.209.105

dg主库:    DB100    10.170.211.201

dg备库:    DB200    10.162.200.25

10.251.209.105  DBS100
10.170.211.201  DB100
10.162.200.25   DB200

ORACLE_BASE=/data/DBSoftware/app/oracle
INVENTORY_LOCATION=/data/DBSoftware/app/oraInventory
dataLocation=/data/DBData/oradata

sid=dadifilm
M_unique_name:dadifilma
S_unique_name:dadifilmb

groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle

mkdir -p /data/DBSoftware/app/oracle
mkdir -p /data/DBSoftware/app/oraInventory
mkdir -p /data/DBData/oradata
chown -R oracle:oinstall /data/DBSoftware/app/oracle
chown -R oracle:oinstall /data/DBSoftware/app/oraInventory
chown -R oracle:oinstall /data/DBData/oradata
chmod -R 755 /data/DBSoftware/app/oracle
chmod -R 755 /data/DBSoftware/app/oracle
chmod -R 755 /data/DBData/oradata

mkdir -p /data/DBSoftware/app/oracle
mkdir -p /data/DBSoftware/app/oraInventory

chown -R oracle:oinstall /data/DBSoftware/app/oracle
chown -R oracle:oinstall /data/DBSoftware/app/oraInventory

chmod -R 755 /data/DBSoftware/app/oracle
chmod -R 755 /data/DBSoftware/app/oracle

05-11 11:36