Redhat64下安装oracle11g.docx

上传人:b****6 文档编号:3016083 上传时间:2022-11-17 格式:DOCX 页数:34 大小:3.20MB
下载 相关 举报
Redhat64下安装oracle11g.docx_第1页
第1页 / 共34页
Redhat64下安装oracle11g.docx_第2页
第2页 / 共34页
Redhat64下安装oracle11g.docx_第3页
第3页 / 共34页
Redhat64下安装oracle11g.docx_第4页
第4页 / 共34页
Redhat64下安装oracle11g.docx_第5页
第5页 / 共34页
点击查看更多>>
下载资源
资源描述

Redhat64下安装oracle11g.docx

《Redhat64下安装oracle11g.docx》由会员分享,可在线阅读,更多相关《Redhat64下安装oracle11g.docx(34页珍藏版)》请在冰豆网上搜索。

Redhat64下安装oracle11g.docx

Redhat64下安装oracle11g

Linux下安装Oracle11g服务器

1:

配置环境

1.1用IP与主机名相对应:

vim/etc/hosts

192.168.208.40racle

1.检查redhat内核版本

[root@localhostDesktop]#uname-r

2.6.32-220.el6.i686

2.rpm包检测

[root@localhostDesktop]#rpm-qa|grepbinutils

binutils-2.20.51.0.2-5.28.el6.i686

[root@localhostDesktop]#rpm-qa|grepcompat-libstdc++

[root@localhostDesktop]#rpm-qa|grepelfutils-libelf

elfutils-libelf-0.152-1.el6.i686

[root@localhostDesktop]#rpm-qa|grepglibc

glibc-common-2.12-1.47.el6.i686

glibc-headers-2.12-1.47.el6.i686

glibc-2.12-1.47.el6.i686

glibc-devel-2.12-1.47.el6.i686

[root@localhostDesktop]#rpm-qa|greplibaio

libaio-0.3.107-10.el6.i686

[root@localhostDesktop]#rpm-qa|greplibgcc

libgcc-4.4.6-3.el6.i686

[root@localhostDesktop]#rpm-qa|greplibstdc++

libstdc++-4.4.6-3.el6.i686

[root@localhostDesktop]#rpm-qa|grepsysstat

sysstat-9.0.4-18.el6.i686

[root@localhostDesktop]#rpm-qa|grepunixODBC

[root@localhostDesktop]#

通过以上命令得到的已安装的rpm包与官方文档要求的做比对,然后将缺少的rpm包补全

2.修改内核参数,在/etc/sysctl.conf中添加如下内容必须用ROOT用户

kernel.shmall=268435456

kernel.shmmni=4096

kernel.sem=25032000100128

net.ipv4.ip_local_port_range=900065500

net.core.rmem_default=4194304

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048576

fs.aio-max-nr=1048576

fs.file-max=6815744

修改完成后,:

wq保存执行sysctl–p使其立即生效

3.创建ORACLE用户及组,设置ORACLE用户密码

[root@localhostDesktop]#groupaddoinstall(建组1)

[root@localhostDesktop]#groupadddba(建组2)

[root@localhostDesktop]#useradd-goinstall-Gdbaoracle(建用户)

[root@localhostDesktop]#passwdoracle(设置密码)

Changingpasswordforuseroracle.

Newpassword:

BADPASSWORD:

itisbasedonadictionaryword

BADPASSWORD:

istoosimple

Retypenewpassword:

passwd:

allauthenticationtokensupdatedsuccessfully.

4.创建ORACLE安装目录

[root@localhostDesktop]#mkdir-p/home/oracle/app

[root@localhostDesktop]#chown-Roracle:

oinstall/home/oracle/app

[root@localhostDesktop]#chmod-R755/home/oracle/app

5.为ORACLE用户创建环境变量

[root@localhostDesktop]#su-loracle

[oracle@localhost~]$vi.bash_profile

TMP=/tmp;exportTMP

TMPDIR=$TMP;exportTMPDIR

exportORACLE_BASE=/home/oracle/app

exportORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

exportORACLE_SID=dlsc

exportORACLE_OWNER=oracle

exportPATH=/usr/sbin:

$ORACLE_HOME/bin:

$PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:

/lib:

/usr/lib:

/usr/local/lib

exportLD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:

$ORACLE_HOME/jlib:

$ORACLE_HOME/rdbms/jlib

CLASSPATH=$CLASSPATH:

$ORACLE_HOME/network/jlib

exportCLASSPATH

[oracle@localhost~]$source.bash_profile

6.设置ShellLimits

Ⅰ在/etc/security/limits.conf文件中加入下列行:

oraclesoftnofile65536

oraclehardnofile65536

oraclesoftnproc16384

oraclehardnproc16384

Ⅱ在/etc/pam.d/login文件中加入下列行,如果里面没有的话:

sessionrequired/lib/security/pam_limits.so

sessionrequiredpam_limits.so

Ⅲ在/etc/profile后加入以下语句:

用root用户

vi/etc/profile

if[$USER="oracle"];then

if[$SHELL="/bin/ksh"];then

ulimit-p16384

ulimit-n16384

else

ulimit-u16384-n16384

fi

fi

7.安装ORACLE软件

通过unzip命令解压安装文件

[oracle@localhost~]$unziplinux_11gR2_database_1of2.zip

[oracle@localhost~]$unziplinux_11gR2_database_2of2.zip

执行命令安装

[oracle@localhost~]$./runInstaller

 

5:

开始安装

使用Xmanager->Xftp传输Oracle11g安装包,使用Xstart进行安装:

注销Linux,切换到用户oracle下

注意:

必须以oracle用户登录Linux,不要用suoracle来进行安装

用oracle用户,将linux版64位的oracle安装包上传到Linux中,进入到上传目录中解压缩:

#cpio-idmv<10201_database_linux_x86_64.cpio

注:

Oracle的安装包有这样几种格式

Zip格式:

这种格式最好解压缩,直接使用命令unzip文件名即可

cpio.gz格式:

这种格式有这样几种解压缩方式

#zcatXXXX.cpio.gz|cpio-idmv 

#gunzipXXXX.cpio.gz//解压出XXXX.cpio文件

#cpio-idvm

oracle@localhostdatabase]$exportDISPLAY=10.138.20.215:

0.0

oracle@localhostdatabase]$/oracle/soft/database/runInstaller.sh

正在启动OracleUniversalInstaller...

检查临时空间:

必须大于80MB。

实际为7283MB通过

检查交换空间:

必须大于150MB。

实际为1498MB通过

检查监视器:

监视器配置至少必须显示256种颜色

>>>无法使用命令/usr/bin/xdpyinfo自动检查显示器颜色。

请检查是否设置了DISPLAY变量。

未通过<<<<选择

未通过某些要求检查。

必须先满足这些要求,

然后才能继续安装,那时将重新检查这些要求。

是否继续?

(y/n)[n]y

正在重新检查安装程序要求....

准备从以下地址启动OracleUniversalInstaller

点击Next

有提示后点击Yes后再点击Next继续即可

NEXT

NEXT

NETX

选择简体中文和英语

用root在服务器上执行1,2两个脚本,脚本执行后点击OK基本环境就搭建好了

rpm-ivh--nodeps强制安装rpm包

6:

以下为创建数据库监听

#su–oracle

$dbca

NEXT

设置Password

NEXT

只选前两个,点击OK,NEXT

注意:

以上一定要选对。

Next

注意:

上图中的4、5可以被创建。

Next

点击Exit至此完成数据库的安装.

7:

修改NLS_LENG参数

切换至Oracle用户执行以下命令

$su–oracle

$sqlplus/assysdba

SQL>showparameternls_leng;

SQL>Byte

SQL>altersystemsetnls_length_semantics=charscope=both;

SQL>shutdownimmediate

SQL>startup

SQL>showparameternls_leng;

SQL>CHAR

附8:

Linux常用命令

1.修改权限

chmod-R777/home/app//777所有权限

2.修改文件夹的所有者

chown–Roracle:

oinstall/home/app

3.查看文件或者文件夹属性

ll/home/app

4.查看文件或者文件夹属性

ll

5.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1