标签:
配置好本地YUM源
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# vi local.repo
[Local]
Name=local
baseurl=file:///mnt/Server
enable=1
gpgcheck=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 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.
[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 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
标签:
原文地址:http://www.cnblogs.com/houzhiqing/p/5497801.html