# groupadd oinstall
# groupadd dba# useradd oracle -g oinstall -G dba# password oracle********指定目录
# mkdir /u01/app/oracle -p# chown oracle.oinstall /u01 -R# vim /etc/redhat-release
新建Xshell oracle用户登录修改环境变量$ vim .bash_profile添加
export EDITOR=vimexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1export PATH=$ORACLE_HOME/bin:$PATH :wq安装
$ ls /var/ftp/(/mnt/hgfs/Desktop_share)$ unzip /var/ftp/***.zip -d /tmp/···$ cd /tmp/database/ ===================================虚拟机挂在光盘终端:
# cd Server/# ls *libXp*# rpm -ivh libXp-1.0.0-8.1.e15.i386.rpm====================================$ source ~/.bash_profile
$ ./runInstaller
GUI ->
Advantced >
>
Custom(自定义) >
>
>
=======================================
改内核参数 == 6345帧 vim /etc/sysctl.conf kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 270000net.core.rmem_max = 270000net.core.wmem_default = 262144net.core.wmem_max = 262144:wq
sysctl -p 使配置文件生效
================================
gcc安装
挂载光盘
mount /dev/scd0 /media编写新文件
vim /etc/yum.repos.d/iso.repo[rhel-Server]
name=5u5_Serverbaseurl=file:///media/Serverenabled=1gpgcheck=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release# yum install gcc
=================================================
修改hosts文件vim /etc/hosts
127.0.0.1 localhost localhost.domain >>
only
>install
============================================
不要急着点ok 执行脚本# cd /u01/app/oracle/
# . oraInventory/orainstRoot.sh# . product/11.2.0/db_1/root.sh
local/bin : 回车
==============================================
ok *********************************************************创建数据库:
dbca命令$ dbca
启动oracle主要分两步:一是启动监听器二是启动实例#su - oracle$cd /$cd /bin$sqlplus /nolog
SQL>connect /as sysdba //连接oracle
SQL>startup //启动数据库SQL>exit //退出sqlplus//启动监听
$cd ORACLE_HOME/bin //进入oracle安装目录$lsnrctl start //启动监听