標籤:
配置好本地YUM源
[[email protected] ~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]#
[[email protected] yum.repos.d]# vi local.repo
[Local]
Name=local
baseurl=file:///mnt/Server
enable=1
gpgcheck=0
[[email protected] yum.repos.d]# yum list
安裝所需軟體包
# yum -y install binutils-2.* compat-libstdc++-3* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* kernel-headers-2.* *ksh* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-4.* make-3* sysstat-7.*
建立使用者
[[email protected] yum.repos.d]# groupadd dba
[[email protected] yum.repos.d]# groupadd oinstall
[[email protected] yum.repos.d]# groupadd oper
[[email protected] yum.repos.d]# useradd -g oinstall -G dba,oper oracle
[[email protected] yum.repos.d]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
建立相關目錄
[[email protected] yum.repos.d]# mkdir /u01
[[email protected] yum.repos.d]# chmod 777 /u01/
[[email protected] yum.repos.d]# su - oracle
[[email protected] ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11gr2/dbs
export ORACLE_SID=prod
export NLS_LANGE="AMERICAN_AMERICA.ZHS16GBK"
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
來自為知筆記(Wiz)
Linux 安裝 Oracle 11g