Linux oracle10g 静默安装(二)

2014-11-24 11:49:00 · 作者: · 浏览: 4
ost.localdomain

主DNS解析域名为:202.96.209.5

第二DNS为:202.96.209.133 DNS

搜寻路径:ocaldomain

不然在安装的过程中同样会报checking network configuration requirements is: Not executed的错误提示

还需修改 vi /etc/hosts 文件

在安装oracle 10g的过程中,遇到了checking network configuration requirements is: Not executed的错误提示。发现是

/etc/hosts中没有指定静态ip地址导致,检测/etc/hosts发现果真如此,修改如下配置

127.0.0.1 localhost.localdomain localhost

#::1

192.168.18.192 localhost6.localdomain6 localhost6

---192.168.18.192是linux redhat 的ip地址不是windows ip 地址

重新检测,显示正常

需要将虚拟机连接方式设置为:桥接,而不是NAT,Host-only 的连接方式,不然也不能上网

10、 配置enterprise.rsp文件

mv /root/database /home/oracle/

chown –R oracle:oinstall /home/oracle/database

vi /home/oracle/database/response/enterprise.rsp

修改以下值

RESPONSEFILE_VERSION=2.2.1.0.0

UNIX_GROUP_NAME="oinstall"

ORACLE_HOME_NAME="OraDb10g_home1"

ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1"

SHOW_INSTALL_PROGRESS_PAGE= true

SHOW_END_OF_INSTALL_MSGS= true

COMPONENT_LANGUAGES={"zh_CN"}

s_nameForDBAGrp= "dba"

s_nameForOPERGrp="dba"

INSTALL_TYPE="EE"

n_configurationOption=3

RESTART_SYSTEM=false

RESTART_REMOTE_SYSTEM=false

说明:这几项要视情况而定比如说 UNIX_GROUP_NAME="oinstall" 和s_nameForDBAGrp= "dba" s_nameForOPERGrp="dba"还有环境变量都要参照前面自己定义好的来

11、正式安装

su - oracle

/home/oracle/database/runInstaller -silent -responseFile /home/oracle/database/response/enterprise.rsp

Installation in progress (Mon Sep 21 23:37:00 CST 2009)

............................................................... 18% Done.

............................................................... 36% Done.

............................................................... 54% Done.

............................................................... 72% Done.

................ 76% Done.

Install successful

Linking in progress (Mon Sep 21 23:39:49 CST 2009)

Link successful

Setup in progress (Mon Sep 21 23:43:11 CST 2009)

.............. 100% Done.

Setup successful

End of install phases.(Mon Sep 21 23:43:20 CST 2009)

WARNING:A new inventory has been created in this session. However, it has not yet been

registered as the central inventory of this system.

To register the new inventory please run the script

'/u01/app/oracle/oraInventory/orainstRoot.sh' with root privileges.

If you do not register the inventory, you may not be able to update or patch the products you installed.

The following configuration scripts /u01/app/oracle/product/10.2.0/db_1/root.sh

need to be executed as root for configuring the system. If you skip the execution of the

configuration tools, the configuration will not be complete and the product wont function

properly.

In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

The installation of Oracle Database 10g was successful.

(恭喜你成功了如果没这个提示就看看他说的日志继续修改下ok)

Please check '/u01/app/oracle/oraInventory/logs/silentInstall2009-09-21_11-36-22PM.log' for more details.

12、接下来按提示操作, root身份登录

su root

sh /u01/app/oracle/oraInventory/orainstRoot.sh

sh /u01/app/oracle/product/10.2.0/db_1/root.sh

13、安装网络监听器

vi /home/oracle/database/response/netca.rsp

修改以下值:

INSTALL_TYPE=""custom"" #安装的类型

LISTENER_NUMBER=1 #监听器数量

LISTENER_NAMES={"LISTENER"} #监听器的名称列表

LISTENER_PROTOCOLS={"TCP;1521"} # 监听器使用的通讯协议列表

LISTENER_START=""LISTENER"" # 监听器启动的名称

su - oracle

$ORACLE_HOME/bin