vi /etc/rc.d/rc.local #自动启动oracle
echo 502 >/proc/sys/vm/hugetlb_shm_group su - oracle -c 'sh /data/oradata/oracle/startdb.sh' source /etc/rc.d/rc.local
startdb.sh #!/bin/sh sqlplus /nolog <<EOF connect / as sysdba; startup; EOF lsnrctl start
shutdb.sh #!/bin/sh lsnrctl stop sqlplus /nolog <<EOF connect / as sysdba; shutdown transactional; EOF