RedHat6.4安装Oracle11g 11.2.0.4

# vi /etc/hosts
这里要把本机IP和主机名加入hosts文件中

VMWare设置CD/DVD处勾选[color=blue]已连接[/color]并指定RedHat6的ISO安装包
#mkdir /mnt/cdrom
#mount -o loop /dev/cdrom /mnt/cdrom
#yum list|grep vsftpd

# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
# su - oracle


[oracle@foglight /]$ cd /home
[oracle@foglight home]$ ls
lost+found oracle software
[oracle@foglight home]$ ll
total 24
drwx------. 2 root root 16384 Jul 20 09:26 lost+found
drwx------ 4 oracle dba 4096 Jul 20 17:45 oracle
drwxr-xr-x 2 root root 4096 Jul 20 17:40 software

[oracle@foglight home]$ su - root
Password:
# cd /etc
#


# vi sysctl.conf
# Controls the maximum shared segment size, in bytes
# kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
# kernel.shmall = 4294967296

kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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 = 1048576


# lsmod|grep bridge
# modprobe bridge
# lsmod|grep bridge
bridge 79078 0
stp 2218 2 bridge,garp
llc 5546 3 bridge,garp,stp

# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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 = 1048576


以上几个内核参数的大致含义如下――
kernel.shmma:最大共享内存段,以字节为单位,物理内存*1024*1024*2,为物理内存的2倍。
kernel.shmmni:共享内存段的最大数目。
kernel.shmall:共享内存总量,以页为单位。
kernel.sem:每个信号对象集的最大信号对象数;系统范围内最大信号对象数;每个信号对象支持的最大操作数;系统范围内最大信号对象集数。
fs.file-max:文件句柄数,表示在Linux系统中可以打开的文件数量。
net.ipv4.ip_local_port_range:应用程序可使用的IPv4端口范围。

# su - oracle
[oracle@foglight ~]$ cd /home/oracle/
[oracle@foglight ~]$ mkdir /home/oracle/product
[oracle@foglight ~]$ mkdir /home/oracle/product/11gR2
[oracle@foglight ~]$ su - root
Password:
#
# chown -R oracle:dba //home/oracle/product
# chown -R 775 //home/oracle/product


[oracle@foglight ~]$ rpm -q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel | sort

[oracle@foglight ~]$ su - root
Password:
#
# rpm -ivh elfutils-libelf-devel-static-0.152-1.el6.x86_64.rpm --nodeps


# mv p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip D_PAO_Agent_70500_Linux_x64.bin /home/oracle/

# su - oracle
[oracle@foglight ~]$ ls
D_PAO_Agent_70500_Linux_x64.bin p13390677_112040_Linux-x86-64_2of7.zip
p13390677_112040_Linux-x86-64_1of7.zip product
[oracle@foglight ~]$
[oracle@foglight ~]$ unzip p13390677_112040_Linux-x86-64_1of7.zip
[oracle@foglight ~]$ unzip p13390677_112040_Linux-x86-64_2of7.zip


[oracle@foglight ~]$ cd database/
[oracle@foglight database]$ ls
install readme.html response rpm runInstaller sshsetup stage welcome.html
[oracle@foglight database]$
[oracle@foglight database]$ su - root
Password:
# xhost +
access control disabled, clients can connect from any host
# cd /home
# ls
lost+found oracle software
# cd oracle/
# ls
database p13390677_112040_Linux-x86-64_1of7.zip product
D_PAO_Agent_70500_Linux_x64.bin p13390677_112040_Linux-x86-64_2of7.zip
# chown -R oracle:dba /home/oracle/product/
# ll
total 2487216
drwxr-xr-x 7 oracle oinstall 4096 Aug 27 2013 database
-rwxr-xr-x 1 root root 0 Jul 20 13:11 D_PAO_Agent_70500_Linux_x64.bin
-rwxr-xr-x 1 root root 1395582860 Jul 20 12:09 p13390677_112040_Linux-x86-64_1of7.zip
-rwxr-xr-x 1 root root 1151304589 Jul 20 12:42 p13390677_112040_Linux-x86-64_2of7.zip
drwxr-xr-x 3 oracle dba 4096 Jul 20 18:08 product
# exit


这个地方要退出root用户重新用oracle用户登录,不能在root用户下面直接su - oracle
[oracle@foglight ~]$ cd database/
[oracle@foglight database]$ ls
install readme.html response rpm runInstaller sshsetup stage welcome.html
[oracle@foglight database]$ export DISPLAY=192.168.10.14:0.0
[oracle@foglight database]$ ./runInstaller
[img]http://dl2.iteye.com/upload/attachment/0110/4633/bb903a7d-33da-3514-ac4d-de0189df6130.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4635/ccd0bfbd-6e38-3c87-b14c-1b95d2339e01.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4637/a656800c-1272-369a-a955-01c9ae34f728.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4639/45056220-570a-3b98-a970-7caeee399ce8.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4641/844fcf08-ed2f-32c6-a4bc-6452a3477454.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4644/42afdd2a-74ae-3e5b-9063-877391b602a3.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4646/d15a3731-bb48-3ed3-bc0e-1d005b374a03.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4648/1b63d945-3198-3f63-8dc3-b890abe32710.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4650/f39ef3c0-f6fc-34a5-be77-f0e0df8d9019.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4652/224a5fb1-115c-365a-9adf-500a588e2280.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4654/8c93e67f-d47a-3667-9ad5-155464d1bf73.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4656/b479fe8f-af24-3404-b5fb-5139ad2ddbac.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4658/742135ea-9155-3059-8511-65d46d1a0a1c.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4660/2a00434c-0258-35e6-a002-3839393c7655.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4662/9857ec3c-4810-38ff-9a8e-0e3e8a3ceb5c.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4664/346652d6-5a35-3e55-b4e9-e442fee8a21d.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4666/0f2a4574-f8d9-3aed-adaa-b907d07ada0c.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4668/e3b2594f-4b8d-3b69-8934-2aedc8acea14.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4670/d76dcded-bc82-34bb-aea5-bc959e1631cd.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4672/074ca849-b83a-3f72-9a7b-c04754a443f5.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4674/b4943745-d80b-3d10-81ff-25772009c273.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4676/ff28085c-12fb-3839-b246-33dc74ea6fcc.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4678/e2c70d6c-0c3d-3ac1-ba17-a9c27b21a589.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4680/7b0b52a4-c40a-3164-ad45-56d1406a7df3.jpg[/img]
【[color=blue]注[/color]】:上述步骤先不要急着单击OK按钮,要以root用户登录执行完Number1和2两个脚本后再单击OK按钮才可以。
[img]http://dl2.iteye.com/upload/attachment/0110/4682/6fd0734d-a982-3303-a23d-524e2ec3f144.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4684/8614f907-138b-3d84-bc60-90f83c71dd29.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4686/fa67ed11-5fd4-3cff-a7d7-4240c3b45fff.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4712/838ee58a-4f30-31f1-abce-40513b01847e.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4690/d349fdde-1514-3d15-bfb8-f4fca75a26e6.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4692/abe2a94f-5291-36f8-86d2-d781c73831be.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4694/4a5180a4-fcee-3b3e-acca-830d6ffe7700.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4696/ce19fac0-e6d4-3d19-b5dc-cf0d4781be5f.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4698/6ce25ee3-aab8-364c-aec6-767f7da74ebb.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4700/1ca7c20b-574f-3b0c-817e-363989753693.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4702/7ce1e698-aae8-33d3-88f1-a5d742fbc77c.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4704/50902357-0088-3ad7-a485-7bf45addd648.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4706/f073fba9-1efa-35e5-aa15-95cdbbf66c2c.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4708/d5a3c192-2065-3838-af41-c6c72638d35a.jpg[/img]
[img]http://dl2.iteye.com/upload/attachment/0110/4710/61dfc070-ae29-36f5-81a1-251b2cfa7c90.jpg[/img]

[oracle@foglight ~]$ vi .bash_profile
安装好的oracle的sid信息就保存在这个文件里

# su - oracle
[oracle@foglight ~]$ vi .bash_profile
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=paoracle
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib

# PATH=$PATH:$HOME/bin
# export PATH
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:.
export LANG=en_US
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

[oracle@foglight ~]$ source .bash_profile
[oracle@foglight ~]$ which lsnrctl
/usr/bin/which: no lsnrctl in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin:.)

[oracle@foglight ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 24-JUL-2015 17:49:22

Copyright (c) 1991, 2013, Oracle. All rights reserved.

TNS-01106: Listener using listener name LISTENER has already been started


# ls
ContentsXML logs oraInst.loc orainstRoot.sh oui
# sh orainstRoot.sh
Changing permissions of /home/oracle/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /home/oracle/app/oraInventory to dba.
The execution of the script is complete.


# pwd
/home/oracle/app/oracle/product/11.2.0/dbhome_1
# sh root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/app/oracle/product/11.2.0/dbhome_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: 直接输入Enter
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.


[oracle@foglight bin]$ pwd
/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
[oracle@foglight bin]$ vi dbstart
# ORACLE_HOME_LISTNER=$1
ORACLE_HOME_LISTNER=$ORACLE_HOME
[oracle@foglight bin]$ vi dbshut
# ORACLE_HOME_LISTNER=$1
ORACLE_HOME_LISTNER=$ORACLE_HOME
[oracle@foglight bin]$ vi /etc/oratab
# paoracle:/home/oracle/app/oracle/product/11.2.0/dbhome_1:N
paoracle:/home/oracle/app/oracle/product/11.2.0/dbhome_1:Y


[oracle@foglight bin]$ su - root
Password:
# vi /etc/rc.d/rc.local 在最下面添加如下两行
su -oracle -c 'dbstart'
su -oracle -c 'lsnrctl start'


安装结束后如果没有配置Database Configuration Assistant,可以像下面这样操作:
[oracle@foglight admin]$ [color=red]dbca[/color]
会出现图形界面配置实例
[oracle@foglight admin]$ [color=red]netca[/color]
会出现配置Oracle Net Services Configuration的图形界面配置


[oracle@foglight ~]$ system-config- (加Tab键就会出现所有system-config-开头的命令,其中有一项是system-config-date)
[oracle@foglight ~]$ system-config-date (在xmanager下直接回车就可以验证是否可以调用图形界面了)


[url]http://m.blog.youkuaiyun.com/blog/keaihuilang/43086411[/url] (oracle11g 11.2.0.4下载)
[url]http://wenku.baidu.com/link?url=NgVzkAedd2t5Qg29eWP9xCDRANgx_x-ize4qJQ6Pv0rlJZ1p0VP8Z5nXAj7m_DOSg_pPsArv22v9vozm4MVXdUHuKAmzvSKvInsXxq4uDlW[/url]
[url]http://blog.youkuaiyun.com/gyming/article/details/7799370[/url]


oracle11g_11.2.0.4和redhat6.4在笔者360云盘shihuan830619@163.com里有。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值