Ubuntu静默安装mysql_RedHatlinux5.8X64位静默安装oracle11G

The following or later version of

packages for Oracle Linux 5, Red Hat Enterprise Linux 5, and

Asianux Server 3 must be installed:

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

compat-libstdc++-33-3.2.3 (32 bit)

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-24

glibc-2.5-24 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5 (32 bit)

glibc-headers-2.5

ksh-20060214

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libaio-devel-0.3.106 (32 bit)

libgcc-4.1.2

libgcc-4.1.2 (32 bit)

libstdc++-4.1.2

libstdc++-4.1.2 (32 bit)

libstdc++-devel-4.1.2

make-3.81

sysstat-7.0.2

On Oracle Linux 5, Red Hat

Enterprise Linux 5, and Asianux Server 3:

unixODBC-2.2.11 (32-bit) or

later

unixODBC-devel-2.2.11

(64-bit) or later

unixODBC-2.2.11 (64-bit) or

later

搭建本地光盘yum源,安装以上软件包执行命令如下:

yum install binutils* -y;

yum install compat-libcap1* -y;

yum install compat-libstdc++* -y;

yum install gcc* -y;

yum install glibc* -y;

yum install ksh  -y;

yum install libgcc* -y;

yum install libstdc++* -y;

yum install libaio* -y;

yum install make* -y;

yum install sysstat* -y;

yum install elfutils* -y ;

yum install unixODBC* -y ;

yum 安装unixODBC包失败问题及解决:

error message : 如下

Error: unixODBC64-devel conflicts with

unixODBC-devel

Error:

unixODBC64 conflicts with unixODBC

You could try using --skip-broken to

work around the problem

You could try running: package-cleanup

--problems

package-cleanup --dupes

rpm -Va

--nofiles --nodigest

The

program package-cleanup is found in the yum-utils

package.

挂载光盘

使用绝对对路径安装

yum install

/media/Server/unixODBC-2.2.11-10.el5.i386.rpm -y

;

yum install

/media/Server/unixODBC-2.2.11-10.el5.x86_64.rpm -y

;

yum install

/media/Server/unixODBC64-devel-2.2.14-3.el5.x86_64.rpm -y

;

yum install

/media/Server/unixODBC-devel-2.2.11-10.el5.x86_64.rpm -y

;

安装完成使用rpm -qa ,这里请认真核对,你装的安装包是否完整,只要装了,版本高的话,可以忽略,(只要装了就ok,版本高会向下兼容)。

例如 rpm -qa | grep binutils

[root@localhost ~]# rpm -q binutils compat-libstdc++-33

elfutils-libelf elfutils gcc gcc-c++ glibc-2.5

\

glibc-common glibc-devel

glibc-headers ksh libaio libaio-devel libgcc libstdc++

libstdc++-devel make \

sysstat unixODBC unixODBC-devel

binutils

2.新建oracle用户,oracle用户组,

groupadd dba

groupadd oper

groupadd oinstall

useradd -d /home/oracle -m -g

oinstall -G oper,dba -p 123 oracle

解释:创建oracle用户 默认组为oinstall

附属组为dba,oper ,密码为123,

3.修改oracle需要的参数(示例)

官网参考链接

001)修改/etc/sysctl.conf(vi /etc/sysctl.conf), 添加:(参考参数)

[root@localhost install]# 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 =

9000 65500

net.core.rmem_default =

262144

net.core.rmem_max =

4194304

net.core.wmem_default =

262144

net.core.wmem_max =

1048576

修改后运行sysctl -p 命令使得内核改变立即生效;

002)设置oracle对文件的要求:

官网文档参考:

编辑文件:vi /etc/security/limits.conf 加入以下语句:(参考参数)

oracle soft nproc 2047

oracle hard nproc

16384

oracle soft nofile

1024

oracle hard nofile

65536

3.创建oracle安装路径,上传安装包

在 根目录下创建/u01目录,将oracle安装包解压

unzip linux.x64_11gR2_database_1of2.zip

unzip linux.x64_11gR2_database_2of2.zip

安装软件解压在 database 目录

安装前规划:

创建oracle安装目录

mkdir -p /u01/app/

mkdir -p /u01/app/product/11.2.0/dbhome_1

mkdir -p /u01/oracle/oraInventory

chown -R oracle:oinstall /u01/app

4创建文件

/etc/oraInst.loc,内容如下:

ventory_loc=/u01/oracle/oraInventory

inst_group=oinstall

更改文件权限

chown oracle:oinstall

/etc/oraInst.loc

chmod 664

/etc/oraInst.loc

5,配置oracle环境变量

执行 切换到oracle 用户下,执行:

su - oracle

编辑 .bash_profile 执行vi .bash_profile

export ORACLE_BASH=/u01/app

export ORACLE_HOME=/u01/app/product/11.2.0/dbhome_1

export ORACLE_SID=orcl

export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin

export PATH

保存退出

6.配置oracle脚本安装响应文件

示例如下:具体配置根据自己系统做相应修改

拷贝 /u01/database/response/db_install.rsp 到家目录

执行cp /u01/database/response/db_install.rsp ~/

安装配置文件参考示例:

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0

oracle.install.option=INSTALL_DB_AND_CONFIG

ORACLE_HOSTNAME=wenxiao

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/oracle/oraInventory

SELECTED_LANGUAGES=en

ORACLE_HOME=/u01/app/product/11.2.0/dbhome_1

ORACLE_BASE=/u01/app

oracle.install.db.InstallEdition=EE

oracle.install.db.isCustomInstall=false

oracle.install.db.customComponents=

oracle.install.db.DBA_GROUP=dba

oracle.install.db.OPER_GROUP=oinstall

oracle.install.db.CLUSTER_NODES=

oracle.install.db.config.starterdb.type=GENERAL_PURPOSE

oracle.install.db.config.starterdb.globalDBName=orcl

oracle.install.db.config.starterdb.SID=orcl

oracle.install.db.config.starterdb.characterSet=ZHS16GBK

oracle.install.db.config.starterdb.memoryLimit=2048

oracle.install.db.config.starterdb.memoryOption=true

oracle.install.db.config.starterdb.installExampleSchemas=true

oracle.install.db.config.starterdb.enableSecuritySettings=true

oracle.install.db.config.starterdb.password.ALL=oracle

oracle.install.db.config.starterdb.password.SYS=

oracle.install.db.config.starterdb.password.SYSTEM=

oracle.install.db.config.starterdb.password.SYSMAN=

oracle.install.db.config.starterdb.password.DBSNMP=

oracle.install.db.config.starterdb.control=DB_CONTROL

oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=

oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false

oracle.install.db.config.starterdb.dbcontrol.emailAddress=

oracle.install.db.config.starterdb.dbcontrol.SMTPServer=

oracle.install.db.config.starterdb.automatedBackup.enable=false

oracle.install.db.config.starterdb.automatedBackup.osuid=

oracle.install.db.config.starterdb.automatedBackup.ospwd=

oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE

oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/u01/app/oradata

oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=

oracle.install.db.config.asm.diskGroup=

oracle.install.db.config.asm.ASMSNMPPassword=

MYORACLESUPPORT_USERNAME=

MYORACLESUPPORT_PASSWORD=

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false

DECLINE_SECURITY_UPDATES=true

PROXY_HOST=

PROXY_PORT=

7.开始静默安装

切换到database 目录下:

可执行命令查看帮助命令

[oracle@wenxiao database]$

./runInstaller -help

Preparing to launch Oracle

Universal Installer from /tmp/OraInstall2018-04-08_08-29-59AM.

Please wait ...[oracle@wenxiao database]$

Usage:

runInstaller [-options] [()*]

Where options

include:

-clusterware

oracle.crs,

Version of

Cluster ready services installed.

-crsLocation

Used only

for cluster installs, specifies the path to the crs home location.

Specifying this overrides CRS information obtained from central

inventory.

-invPtrLoc

Unix only.

To point to a different inventory location. The orainst.loc file

contains:

inventory_loc=

inst_group=<>

-jreLoc

Path where

Java Runtime Environment is installed. OUI cannot be run without

it.

-logLevel

To filter

log messages that have a lesser priority level than . Valid options

are: severe, warning, info, config, fine, finer, finest, basic,

general, detailed, trace. The use of basic, general, detailed,

trace is deprecated.

-paramFile

Specify

location of oraparam.ini file to be used by OUI.

-responseFile

Specifies

the response file and path to use.

..............

开始安装:

[oracle@wenxiao ~]$

pwd

/home/oracle

[oracle@wenxiao ~]$

cd /u01/database/

[oracle@wenxiao database]$

ls

doc install response rpm runInstaller sshsetup stage welcome.html

[oracle@wenxiao

database]$

[oracle@wenxiao ~]$ ./runInstaller -silent

-responseFile /home/oracle/db.rsp -invPtrLoc /etc/oraInst.loc

.........................

等待安装成功

8.安装成功

sqlplus 登陆测试

[oracle@wenxiao ~]$ sqlplus

"/as sysdba"

SQL*Plus: Release 11.2.0.1.0

Production on Sun Apr 8 10:37:38 2018

Copyright (c) 1982, 2009,

Oracle. All rights reserved.

Connected to an idle

instance.

SQL>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值