Suse11安装Oracle11gR2

来源:互联网 发布:java实现建军照合成 编辑:程序博客网 时间:2024/04/29 12:54

注:以下采用终端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

(1.1)

创建与配置一个数据库

(1.2)

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

(1.3)

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

(1.4)

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

(1.5)

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

(1.5)

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

(1.6)

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

 

(1.7)

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

(1.8)

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

(1.9)

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

(1.10)

此处为默认

(1.11)

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

(1.12)

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

(1.13)

设置SYSSYSTEMSYSMANDBSNMP用户的密码设置,此处统一设置密码

(1.14)

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

(1.15)

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

(1.16)

(1.17)

开始数据库安装

(1.18)

数据库实例安装

(1.19)

数据库安装成功,

(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)

数据库安装完成。

0 0
原创粉丝点击