Linux 安装 Oracle 11g
配置好本地YUM源
[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost yum.repos.d]#[root@localhost yum.repos.d]# vi local.repo[Local]Name=localbaseurl=file:///mnt/Serverenable=1gpgcheck=0[root@localhost 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.*
创建用户
[root@localhost yum.repos.d]# groupadd dba[root@localhost yum.repos.d]# groupadd oinstall[root@localhost yum.repos.d]# groupadd oper[root@localhost yum.repos.d]# useradd -g oinstall -G dba,oper oracle[root@localhost yum.repos.d]# passwd oracleChanging password for user oracle.New UNIX password:BAD PASSWORD: it is based on a dictionary wordRetype new UNIX password:passwd: all authentication tokens updated successfully.
创建相关目录
[root@localhost yum.repos.d]# mkdir /u01[root@localhost yum.repos.d]# chmod 777 /u01/
[root@localhost yum.repos.d]# su - oracle[oracle@localhost ~]$ vi .bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startup programsexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11gr2/dbsexport ORACLE_SID=prodexport NLS_LANGE="AMERICAN_AMERICA.ZHS16GBK"export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
坚持,专注
浙公网安备 33010602011771号