mv '/root/桌面/oracle-xe-11.2.0-1.0.x86_64.rpm.zip' /root
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
yum install libaio* -y
cd Disk1/
useradd oracle
groupadd dba
groupadd oinstall
useradd -m -g oinstall -G dba oracle
grep dba /etc/group
grep oinstall /etc/group
[root@rootroom9pc01 ~]# id oracle
uid=1002(oracle) gid=1005(oinstall) 组=1005(oinstall),1003(dba)
[root@rootroom9pc01 Disk1]# dd if=/dev/zero of=/home/swap2 bs=1024 count=2512000
[root@rootroom9pc01 Disk1]# /sbin/mkswap /home/swap2
[root@rootroom9pc01 Disk1]# /sbin/swapon /home/swap2
vim /etc/fstab
/home/swap2 swap swap defaults 0 0
[root@rootroom9pc01 Disk1]# mount -a
total used free shared buff/cache available
Mem: 15768 1627 8144 712 5996 13126
Swap: 2476 0 2476
vim /etc/profile
# Oracle Settings
TMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/xe; export ORACLE_HOME
ORACLE_SID=XE; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
TNS_ADMIN=$ORACLE_HOME/network/admin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
source /etc/profile
echo $ORACLE_BASE
[root@rootroom9pc01 Disk1]# rpm -i oracle-xe-11.2.0-1.0.x86_64.rpm
[root@rootroom9pc01 Disk1]# /etc/init.d/oracle-xe configure
[oracle@rootroom9pc01 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.2.0 Production on Wed Jul 4 22:10:57 2018Copyright (c) 1982, 2011, Oracle. All rights reserved.
SQL> exit
SQL> conn sys/ as sysdba;
Enter password: password
Connected.
SQL>