安裝平臺centos6.5 + oracle 11g
聲明:本文爲本身筆記整理,非完整安裝步驟,僅供參考;;;;
步驟一:指定主機名和規劃IP地址(需重啓系統)
主機名:xyhdb 修改#vim /etc/hosts文件 添加xyhdb xyhdb.xyh
系統IP地址:ip 192.168.0.233/24 網關X.1 #setup
建立相關文件夾和oracle用戶
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
mkdir -p /u01/app
mkdir /u01/oradata
mkdir /u01/oraInventory
chown -R oracle:oinstall /u01/app/
chown -R oracle:oinstall /u01/oradata
chown -R oracle:oinstall /u01/oraInventory
chmod -R 775 /u01/app/
chmod -R 775 /u01/oradata
passwd oracle
================================================
添加環境變量:修改/home/oracle目錄下的.bash_profile
export ORACLE_BASE=/u01/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2/db_home
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export ORACLE_SID=orcl
使用root帳戶修改參數
Add the following lines to the "/etc/security/limits.conf" file.
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
==============================================================
使用oracle帳戶解壓數據庫文件
unzip p13390677_112040_Linux-x86-64_1of7.zip
unzip p13390677_112040_Linux-x86-64_2of7.zip
啓動安裝命令[oracle@xyhdb database]$ ./runInstaller
==============================================================
yum安裝軟件包
yum install gcc gcc-c++ libaio-devel compat-libstdc++ libstdc++-devel -y
rpm
rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
rpm -ivh pdksh-5.2.14-30.x86_64.rpm
----------------------------------------------------------------------------------
其它相關命令:
dbca 建立數據庫
netca 配置監聽
lsnrctl status 查看監聽狀態c++