yum install -y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
useradd -d /home/oracle -m oracle
echo "export ORACLE_BASE=/opt/oracle" >> /home/oracle/.bashrc echo "export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1" >> /home/oracle/.bashrc echo "export ORACLE_SID=orcl" >> /home/oracle/.bashrc echo "export PATH=$PATH:$ORACLE_HOME/bin" >> /home/oracle/.bashrc echo "export LD_LIBRARY_PATH=$ORACLE_HOME/lib" >> /home/oracle/.bashrc source /home/oracle/.bashrc
echo "kernel.shmmax=4294967296" >> /etc/sysctl.conf echo "kernel.shmall=2097152" >> /etc/sysctl.conf echo "kernel.shmmni=4096" >> /etc/sysctl.conf echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf echo "fs.file-max=65536" >> /etc/sysctl.conf echo "net.ipv4.ip_local_port_range=1024 65000" >> /etc/sysctl.conf sysctl -p
mkdir /opt/oracle chown -R oracle:oracle /opt/oracle
su - oracle unzip 10201_database_linux_x86_64.zip cd database ./runInstaller
su - oracle dbca
vi $ORACLE_HOME/network/admin/listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = orcl) (ORACLE_HOME = /opt/oracle/product/10.2.0/db_1) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) ADR_BASE_LISTENER = /opt/oracle
lsnrctl start
vi $ORACLE_HOME/network/admin/tnsnames.ora ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )
vi /etc/oratab orcl:/opt/oracle/product/10.2.0/db_1:Y
本文链接:http://task.lmcjl.com/news/1513.html