[root@node01 ~]# useradd -u 1101 -g oinstall -G dba,asmdba oracle
[root@node01 ~]# echo oracle | passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
[root@node01 ~]# id oracle
uid=1101(oracle) gid=1201(oinstall) groups=1201(oinstall),1200(dba),1203(asmdba)
[root@node01 ~]# cat >> /etc/profile <<EOF
if [ \$USER = "oracle" ] || [ \$USER = "grid" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
[root@node01 ~]# cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
[root@node01 ~]# cat >> /etc/pam.d/login <<EOF
session required pam_limits.so
EOF
[root@node01 ~]# mkdir -p /u01/app/oracle
[root@node01 ~]# chown oracle:oinstall /u01/app/oracle
[oracle@node01 ~]$ vi .bash_profile
export ORACLE_SID=core1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export DISPLAY=192.168.1.100:0
stty erase ^H
[root@node02 ~]# useradd -u 1101 -g oinstall -G dba,asmdba oracle
[root@node02 ~]# echo oracle | passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
[root@node02 ~]# id oracle
uid=1101(oracle) gid=1201(oinstall) groups=1201(oinstall),1200(dba),1203(asmdba)
[root@node02 ~]# cat >> /etc/profile <<EOF
if [ \$USER = "oracle" ] || [ \$USER = "grid" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF
[root@node02 ~]# cat >> /etc/security/limits.conf <<EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
[root@node02 ~]# cat >> /etc/pam.d/login <<EOF
session required pam_limits.so
EOF
[root@node02 ~]# mkdir -p /u01/app/oracle
[root@node02 ~]# chown oracle:oinstall /u01/app/oracle
[oracle@node02 ~]$ vi .bash_profile
export ORACLE_SID=core2
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export DISPLAY=192.168.1.100:0
stty erase ^H
[oracle@node01 ~]$ ssh-keygen
[oracle@node01 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@node01
[oracle@node01 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@node02
[oracle@node01 ~]$ (ssh node01 "date;hostname";ssh node02 "date;hostname")
Fri Aug 18 15:06:55 CST 2023
node01
Fri Aug 18 13:57:18 CST 2023
node02
[oracle@node02 ~]$ ssh-keygen
[oracle@node02 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@node01
[oracle@node02 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@node02
[oracle@node02 ~]$ (ssh node01 "date;hostname";ssh node02 "date;hostname")
Fri Aug 18 15:07:54 CST 2023
node01
Fri Aug 18 13:58:22 CST 2023
node02
[oracle@node01 ~]$ unzip p13390677_112040_Linux-x86-64_1of7.zip
[oracle@node01 ~]$ unzip p13390677_112040_Linux-x86-64_2of7.zip
[oracle@node01 ~]$ cd database/
[oracle@node01 database]$ ./runInstaller











[oracle@node01 ~]$ vim $ORACLE_HOME/sysman/lib/ins_emagent.mk
将$(MK_EMAGENT_NMECTL)修改为:$(MK_EMAGENT_NMECTL) -lnnz11


[root@node01 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
[root@node02 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
