检查系统环境:
[root@localhost ~]# grep MemTotal /proc/meminfo #物理内存不低于1GB
MemTotal: 1491520 kB
[root@localhost ~]# grep SwapTotal /proc/meminfo #交换分区为物理内存的1.5-2陪;物理内存为2-16GB时,交换分区与物理内存相同
SwapTotal: 2097148 kB
安装oracle依赖软件:
yum install -y binutils compat-libcap1-1.10-1 compat-libstdc++-33 gcc gcc-c++ glibc glibc glibc-devel glibc-devel ksh libgcc libgcc libstdc++ libstdc++ libstdc++-devel libstdc++-devel libaio libaio libaio-devel libaio-devel make sysstat elftils-libelf unixODBC unixODBC unixODBC-devel elfutils-libelf elfutils-libelf-devel
修改系统环境:
groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle echo "qwe123"| passwd root --stdin mkdir /opt/oracle chown -R oracle:oinstall /opt/oracle/ chmod -R 755 /opt/oracle/ [root@localhost ~]# vim ~oracle/.bash_profile umask 022 export ORACLE_BASE=/opt/oracle export ORACLE_SID=/orc1 export DISPLAY=:0.0 export LANG=zh_CN.UTF-8 [root@localhost ~]# vim /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 [root@localhost ~]# vim /etc/security/limits.conf oracle soft nproc 8192 oracle hard nofile 65536 oracle soft nofile 32768 oracle hard nproc 16384 [root@localhost ~]# xhost + [root@localhost ~]# su oracle [oracle@localhost root]$ cd /opt/oracle/database/ [oracle@localhost database]$ ./runInstaller -jreLoc /usr/lib/jvm/jre-1.6.0
图形界面安装:
1.看到安装界面,“yes”再下一步就行了。
2.创建并配置一个数据库
3.选择服务器类型4.单实例安装
5.这里我选择“典型安装”
8.配置密码和安装路径
9.自动检查环境参数和安装
安装完成以后提示用root初始化:
添加oracle的路径:
[root@localhost ~]# vim ~oracle/.bash_profile
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
[root@localhost bin]# dbstart /home/oracle/app/oracle/product/11.2.0/dbhome_1/
进入数据库:
[root@localhost bin]# su oracle
[oracle@localhost bin]$ sqlplus sys/Benet4.0 AS SYSDBA
SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 30 19:46:37 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。