71.5. Silence Install - Client

本文介绍如何定制安装 Oracle 11g R2 客户端,包括设置主机名、安装路径、语言选择等关键参数,并通过脚本自动创建所需用户组、设置环境变量及完成客户端的静默安装。
		
###############################################################################
## Copyright(c) Oracle Corporation 1998,2008. All rights reserved.           ##
##                                                                           ##
## Specify values for the variables listed below to customize                ##
## your installation.                                                        ##
##                                                                           ##
## Each variable is associated with a comment. The comment                   ##
## can help to populate the variables with the appropriate                   ##
## values.							             ##
##                                                                           ##
###############################################################################

#-------------------------------------------------------------------------------
# Do not change the following system generated value.
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=http://www.oracle.com/2007/install/rspfmt_clientinstall_response_schema_v11_2_0

#-------------------------------------------------------------------------------
# This variable holds the hostname of the system as set by the user.
# It can be used to force the installation to use an alternative
# hostname rather than using the first hostname found on the system
# (e.g., for systems with multiple hostnames and network interfaces).
ORACLE_HOSTNAME=wcs.example.com
#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
UNIX_GROUP_NAME=oinstall
#-------------------------------------------------------------------------------
# Inventory location.
INVENTORY_LOCATION=/opt/oracle/oraInventory
#-------------------------------------------------------------------------------
# Specify the languages in which the components will be installed.
#
# en   : English                  ja   : Japanese
# fr   : French                   ko   : Korean
# ar   : Arabic                   es   : Latin American Spanish
# bn   : Bengali                  lv   : Latvian
# pt_BR: Brazilian Portuguese     lt   : Lithuanian
# bg   : Bulgarian                ms   : Malay
# fr_CA: Canadian French          es_MX: Mexican Spanish
# ca   : Catalan                  no   : Norwegian
# hr   : Croatian                 pl   : Polish
# cs   : Czech                    pt   : Portuguese
# da   : Danish                   ro   : Romanian
# nl   : Dutch                    ru   : Russian
# ar_EG: Egyptian                 zh_CN: Simplified Chinese
# en_GB: English (Great Britain)  sk   : Slovak
# et   : Estonian                 sl   : Slovenian
# fi   : Finnish                  es_ES: Spanish
# de   : German                   sv   : Swedish
# el   : Greek                    th   : Thai
# iw   : Hebrew                   zh_TW: Traditional Chinese
# hu   : Hungarian                tr   : Turkish
# is   : Icelandic                uk   : Ukrainian
# in   : Indonesian               vi   : Vietnamese
# it   : Italian
#
# Example : SELECTED_LANGUAGES=en,fr,ja
SELECTED_LANGUAGES=en
#-------------------------------------------------------------------------------
# Complete path of the Oracle Home
ORACLE_HOME=/opt/oracle/product/11.2.0.1/client
#-------------------------------------------------------------------------------
# Complete path of the Oracle Base.
ORACLE_BASE=/opt/oracle
#------------------------------------------------------------------------------
#Name       : INSTALL_TYPE
#Datatype   : String
#Description: Installation type of the component.
#
#             The following choices are available. The value should contain
#             only one of these choices.
#             InstantClient : InstantClient
#             Administrator : Administrator
#             Runtime       : Runtime
#             Custom        : Custom
#
#Example    : INSTALL_TYPE = "Administrator"
#------------------------------------------------------------------------------
oracle.install.client.installType=Administrator
#-------------------------------------------------------------------------------
# Name       : oracle.install.client.customComponents
# Datatype   : StringList
#
# This property is considered only if INSTALL_TYPE is set to "Custom"
#
# Description: List of Client Components you would like to install
#
#   The following choices are available. You may specify any
#   combination of these choices.  The components you choose should
#   be specified in the form "internal-component-name:version"
#   Below is a list of components you may specify to install.
#
# oracle.sqlj:11.2.0.1.0 -- "Oracle SQLJ"
# oracle.rdbms.util:11.2.0.1.0 -- "Oracle Database Utilities"
# oracle.javavm.client:11.2.0.1.0 -- "Oracle Java Client"
# oracle.sqlplus:11.2.0.1.0 -- "SQL*Plus"
# oracle.dbjava.jdbc:11.2.0.1.0 -- "Oracle JDBC/THIN Interfaces"
# oracle.ldap.client:11.2.0.1.0 -- "Oracle Internet Directory Client"
# oracle.rdbms.oci:11.2.0.1.0 -- "Oracle Call Interface (OCI)"
# oracle.precomp:11.2.0.1.0 -- "Oracle Programmer"
# oracle.xdk:11.2.0.1.0 -- "Oracle XML Development Kit"
# oracle.network.aso:11.2.0.1.0 -- "Oracle Advanced Security"
# oracle.assistants.oemlt:11.2.0.1.0 -- "Enterprise Manager Minimal Integration"
# oracle.oraolap.mgmt:11.2.0.1.0 -- "OLAP Analytic Workspace Manager and Worksheet"
# oracle.network.client:11.2.0.1.0 -- "Oracle Net"
# oracle.ordim.client:11.2.0.1.0 -- "Oracle Multimedia Client Option"
# oracle.ons:11.2.0.0.0 -- "Oracle Notification Service"
# oracle.odbc:11.2.0.1.0 -- "Oracle ODBC Driver"
# oracle.has.client:11.2.0.1.0 -- "Oracle Clusterware High Availability API"
# oracle.dbdev:11.2.0.1.0 -- "Oracle SQL Developer"
# oracle.rdbms.scheduler:11.2.0.1.0 -- "Oracle Scheduler Agent"
#
# Example    : oracle.install.client.customComponents="oracle.precomp:11.2.0.1.0","oracle.ons:11.2.0.0.0","oracle.oraolap.mgmt:11.2.0.1.0","oracle.rdbms.scheduler:11.2.0.1.0"
#-------------------------------------------------------------------------------
oracle.install.client.customComponents=
#-------------------------------------------------------------------------------
#Name       : MTS_PORT
#Datatype   : int
#Description: Port number to be used for by the Oracle MTS Recovery Service to listen
#		  for requests. This needs to be entered in case oracle.ntoramts is
#	        selected in the list of custom components in custom install
#
#
#Example    : MTS_PORT = 2030
#------------------------------------------------------------------------------
oracle.install.client.oramtsPortNumber=

#------------------------------------------------------------------------------
# Host name to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
#
# Example    : oracle.install.client.schedulerAgentHostName = acme.domain.com
#------------------------------------------------------------------------------
oracle.install.client.schedulerAgentHostName=

#------------------------------------------------------------------------------
# Port number to be used for by the Oracle Scheduler Agent.
# This needs to be entered in case oracle.rdbms.scheduler is selected in the
# list of custom components during custom install
#
# Example: oracle.install.client.schedulerAgentPortNumber = 1500
#------------------------------------------------------------------------------
oracle.install.client.schedulerAgentPortNumber=
		
		
		
#!/bin/bash
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
echo "oracle:oracle" | chpasswd
id oracle

mkdir -p /opt/oracle
chown oracle.oinstall /opt/oracle

cat >> /etc/sysctl.conf <<EOF
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 32768 61000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_max=262144
EOF
/sbin/sysctl -p

cat >> /home/oracle/.bash_profile <<\EOF
export TMP=/tmp
export TMPDIR=/tmp
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/client
export PATH=$ORACLE_HOME/bin:$PATH
EOF

cat >> /home/oracle/.bashrc <<\EOF
alias sysdba='sqlplus "/ as sysdba"'
EOF
		
		
yum install sysstat libaio-devel glibc-devel elfutils-libelf-devel unixODBC unixODBC-devel

unzip linux.x64_11gR2_client.zip

cd client/
./runInstaller -silent -noconfig -responseFile /home/oracle/client.rsp
		
# /opt/oracle/oraInventory/orainstRoot.sh
# /opt/oracle/product/11.2.0.1/client/root.sh
		





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

时间 阀门 出温 回温 柜温 现温 设温 回压1 回压2 排压1 排压2 回温1 回温2 排温1 排温2 报警1 报警2 00:00:00 9.9 30.2 28.5 31.4 -71.7 -73 102.8 76.1 1820.4 1552.7 -21.5 -15 41.3 71.5 0 0 00:00:01 9.9 30.2 28.5 31.4 -71.7 -73 102.3 76.3 1820.4 1554.3 -21.5 -15 41.3 71.5 0 0 00:00:02 9.9 30.2 28.5 31.4 -71.7 -73 102.3 76.3 1820.4 1554.3 -21.5 -15 41.3 71.5 0 0 00:00:02 9.9 30.2 28.5 31.4 -71.7 -73 102.3 76.3 1820.4 1554.3 -21.5 -15 41.3 71.5 0 0 00:00:03 9.9 30.2 28.5 31.4 -71.7 -73 102.8 76.3 1821.3 1552.9 -21.5 -15 41.3 71.5 0 0 00:00:03 9.9 30.2 28.5 31.4 -71.7 -73 102.5 76.3 1821.4 1555.8 -21.5 -15 41.3 71.5 0 0 00:00:04 9.9 30.2 28.5 31.4 -71.7 -73 102.5 76.3 1821.4 1555.8 -21.5 -15 41.3 71.4 0 0 00:00:05 9.9 30.2 28.5 31.4 -71.7 -73 102.2 76.3 1821.3 1553.8 -21.5 -15 41.3 71.4 0 0 00:00:05 9.9 30.2 28.5 31.4 -71.7 -73 102.2 76.3 1821.3 1553.8 -21.5 -15 41.3 71.4 0 0 00:00:06 9.9 30.2 28.5 31.4 -71.7 -73 102.6 76.4 1822.2 1556 -21.5 -15 41.3 71.4 0 0 00:00:06 9.9 30.2 28.5 31.4 -71.7 -73 102 76.2 1821.3 1555.5 -21.5 -15 41.3 71.3 0 0 00:00:07 9.9 30.2 28.5 31.4 -71.7 -73 102 76.2 1821.3 1555.5 -21.5 -15 41.3 71.3 0 0 00:00:07 9.9 30.2 28.5 31.4 -71.7 -73 102.3 76.2 1821.6 1553.7 -21.5 -15 41.3 71.3 0 0 00:00:08 9.9 30.2 28.5 31.4 -71.7 -73 102 76.1 1821.4 1554.3 -21.5 -15 41.2 71.3 0 0 00:00:09 9.9 30.2 28.5 31.4 -71.7 -73 102 76.1 1821.4 1554.3 -21.5 -15 41.2 71.3 0 0 00:00:09 9.9 30.2 28.5 31.4 -71.7 -73 102.8 76.1 1821.4 1553.4 -21.5 -15 41.2 71.2 0 0 00:00:10 9.9 30.2 28.5 31.4 -71.7 -73 102.8 76.1 1821.4 1553.4 -21.5 -15 41.2 71.2 0 0 00:00:10 9.9 30.2 28.5 31.4 -71.7 -73 101.8 76 1821.7 1556.1 -21.5 -15 41.2 71.2 0 0 00:00:11 9.9 30.2 28.5 31.4 -71.7 -73 101.8 76 1821.7 1556.1 -21.5 -15 41.3 71.2 0 0 00:00:12 9.9 30.2 28.5 31.4 -71.7 -73 101.8 76.3 1821.4 1553.7 -21.5 -15 41.3 71.2 0 0 00:00:12 9.9 30.2 28.6 31.4 -71.7 -73 102.2 76.1 1821.9 1556.8 -21.5 -15 41.2 71.1 0 0
最新发布
07-17
帮我分析一下改代码<html lang="en"> <!--flag 1: sigpwny{1_welcome_to_sigpwny_university!}--> <html> <head> <title>Congrats!</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Congrats,</h1> <h1>You're a Pwny!</h1> <img src="fireworks.gif"/> <!-- SVG image for flag 2 --> <svg xmlns="http://www.w3.org/2000/svg" class=flag2 version="1.1" width="1134px" height="78px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink"> <g><path style="opacity:0.864" fill="#33cc54" d="M 269.5,-0.5 C 272.167,-0.5 274.833,-0.5 277.5,-0.5C 279.168,1.47865 279.834,3.81198 279.5,6.5C 272.783,5.56615 269.117,8.39949 268.5,15C 269.546,20.4723 269.712,25.9723 269,31.5C 268.086,33.6641 266.919,35.6641 265.5,37.5C 266.333,39.1667 267.167,40.8333 268,42.5C 268.148,48.2488 268.814,53.9155 270,59.5C 271.358,62.7878 273.858,64.2878 277.5,64C 280.842,68.7131 279.508,71.2131 273.5,71.5C 267.67,70.5055 263.837,67.1722 262,61.5C 260.407,56.1902 260.074,50.8568 261,45.5C 258.294,43.2915 256.127,40.6248 254.5,37.5C 255.369,33.796 257.536,31.1293 261,29.5C 261.103,21.7559 261.769,14.0892 263,6.5C 264.018,2.98529 266.185,0.651961 269.5,-0.5 Z"/></g> <g><path style="opacity:0.892" fill="#33cc54" d="M 790.5,-0.5 C 791.167,-0.5 791.833,-0.5 792.5,-0.5C 794.977,1.86018 795.977,4.86018 795.5,8.5C 794.767,23.8232 794.267,39.1566 794,54.5C 793.552,58.803 791.385,60.1363 787.5,58.5C 786.421,39.1689 786.421,19.8356 787.5,0.5C 788.791,0.737305 789.791,0.403972 790.5,-0.5 Z"/></g> <g><path style="opacity:0.889" fill="#33cc54" d="M 1111.5,-0.5 C 1113.83,-0.5 1116.17,-0.5 1118.5,-0.5C 1124.72,2.55132 1127.72,7.71799 1127.5,15C 1124.43,23.4347 1126.43,29.9347 1133.5,34.5C 1133.5,36.1667 1133.5,37.8333 1133.5,39.5C 1131.54,40.9599 1129.7,42.6266 1128,44.5C 1127.67,49.5 1127.33,54.5 1127,59.5C 1124.84,69.3987 1119.17,72.732 1110,69.5C 1108.75,64.2296 1
03-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值