suse 安装oracle11,Suse11安装Oracle11gR2

注:以下采用终端XmanagerEnterprise 4中的Xshell连接

1、安装前参数修改

vi /etc/security/limits.conf    --末尾添加如下

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

vi /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 = 900065500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

--保存退出,执行如下

Sysctl –p

2、使用root登录执行如下

groupadd  -g 501 oinstall    --创建组

useradd  -m oracle -g 501    --创建用户

passwd oracle             --修改oracle用户密码

3、使用root上传oracle安装包

Liunx_for_oracle_1of2_64bit.zip

Liunx_for_oracle_2of2_64bit.zip

unzip Liunx_for_oracle_1of2_64bit.zip

unzip Liunx_for_oracle_2of2_64bit.zip

chown -R oracle:oinstall database

3、使用Oracle登录执行如下

oracle@linux-rmav:~> xhost +

access control disabled, clients canconnect from any host

oracle@linux-rmav:~> cd /soft/database/

oracle@linux-rmav:/soft/database>./runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than120 MB.   Actual 661391 MB    Passed

Checking swap space: must be greater than150 MB.   Actual 32765 MB    Passed

Checking monitor: must be configured todisplay at least 256 colors.    Actual16777216    Passed

Preparing to launch Oracle UniversalInstaller from /tmp/OraInstall2014-03-17_05-01-41PM. Please wait...oracle@linux-rmav:/soft/database>

出现图形界面如下:

(图1.0)

勾选不需要邮件通知时提示,点击“Yes”,点击“Next”

8f4b42273e5720a2f007268991934859.png

(图1.1)

创建与配置一个数据库

748b73973475aaf84c70d626924dd7ef.png

(图1.2)

创建单实例数据库,如果是RAC则选择第二项。

(图1.3)

选择“Advanced install”,后面将会使用配置字符集、内存分配等。

13af7ad988e30a08941b93fc25dade21.png

(图1.4)

默认语言为“English”,再从左边添加“SimplifiedChinese”

c4ec52ee5bfb455199e298fdf12ae5e7.png

(图1.5)

选择安装“Enterprise Edition(企业版)”

(图1.5)

选择Oracle安装路径,目前路径为安装时的默认路径。

(图1.6)

选择数据库类型,默认为“general purpose/transaction processing(通用/事务型)”,这里选择“Data Warehousing(数据仓库型)”。

b0742f119fe9e5906604de06d0ebc9d5.png

(图1.7)

填写全局数据库名与填写数据库服务标识(SID)

(图1.8)

数据库内存大小设置,默认为系统内存的40%,此处为默认。

(图1.9)

选择相应的数据库字符集编码为:ZHS16GBK

302315f1210798c2592518f89dc95e6c.png

(图1.10)

此处为默认

e23e561042d02ccded2e6ae16f0df418.png

(图1.11)

指定数据文件存放路径,此处默认

(图1.12)

是否启用回滚,如果是事务型则需要启用,此处默认

bd7385dd8b8269733e5a1fc3fa7d23cf.png

(图1.13)

设置SYS、SYSTEM、SYSMAN、DBSNMP用户的密码设置,此处统一设置密码

9bd5c2fa5733ea9a3c4d2ec2faad426c.png

(图1.14)

指定数据库管理员组与数据库操作员组,此处指定为oinstall组

f718e6955df03a1d04e5a2a349762269.png

(图1.15)

Oracle会默认检查需要安装的rpm包是否安装,如果没安装则会列出信息,如果没有相应的包则可以在系统安装盘中查找相应的安装包安装。

(图1.16)

f6da1adef89c274d2978ffaafcd5bfa2.png

(图1.17)

开始数据库安装

(图1.18)

数据库实例安装

(图1.19)

数据库安装成功,

f9f044c4c15608f5ed2ff079d1166516.png

(图1.20)

使用root用户登录执行如下:

linux-rmav:~# sh /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh

RunningOracle 11g root.sh script...

Thefollowing environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME= /home/oracle/app/oracle/product/11.2.0/dbhome_1

Enterthe full pathname of the local bin directory: [/usr/local/bin]:

The file"dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file"coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

Entrieswill be added to the /etc/oratab file as needed by

DatabaseConfiguration Assistant when a database is created

Finishedrunning generic part of root.sh script.

Nowproduct-specific root actions will be performed.

Finishedproduct-specific root actions.

(图1.21)

数据库安装完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值