静默方式安装database vault 10.2.0.4

1. 修改配置文件
response file在database vault的软件加压目录

cd /software/datavault/response/
cp dv.rsp dv.rsp.bak

vi dv.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
s_dbSIDSelectedForUpgrade=dv
s_sysPass=oracle
s_dvOwner=dbvault_owner
s_ownerPasswd=dv_12345
s_ownerPasswdAgain=dv_12345
COMPONENT_LANGUAGES={"en"}
#s_racSid=
############################################
# DO NOT MODIFY THE VALUES UNDER THIS LINE #
############################################
FROM_LOCATION="../stage/products.xml"
TOPLEVEL_COMPONENT={"oracle.dv","10.2.0.4.0"}
DEINSTALL_LIST={"oracle.dv","10.2.0.4.0"}
SHOW_SPLASH_SCREEN=TRUE
SHOW_WELCOME_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=true
SHOW_INSTALL_PROGRESS_PAGE=true
SHOW_REQUIRED_CONFIG_TOOL_PAGE=true
SHOW_CONFIG_TOOL_PAGE=true
SHOW_RELEASE_NOTES=true
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=true
SHOW_EXIT_CONFIRMATION=true
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=true
SHOW_DEINSTALL_PROGRESS=true
ACCEPT_LICENSE_AGREEMENT=true
INSTALL_TYPE="EE"
##############################################################################
# Dialog: SELECT CONFIGURATION OPTION
##############################################################################
n_configurationOption=3
s_ASMSYSPassword=""
s_ASMSYSPasswordAgain=""
s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
##########################################
# DO NOT MODIFY THE VALUE OF THIS VARIABLE
##########################################
b_showUpgradeDialog=false
b_launchDVCA=true
s_mountPoint="/tmp"
SHOW_NODE_SELECTION_PAGE=false

2. 执行静默安装,输出部分在后面附上

图形安装完成后会将当前ORACLE_SID的数据库配置database valut,静默安装不能做到自动配置,手工执行dvca。个人感觉这样更可控些。
执行之前需要将当前运行的ORACLE实例shutdown

[oracle@snowlab datavault]$ chmod 700 dv.rsp 
[oracle@snowlab datavault]$ ./runInstaller -silent -responseFile /software/datavault/response/dv.rsp

3. dvca配置目标数据库database valut

[oracle@snowlab response]$ export DISPLAY=127.0.0.1:0.0

[oracle@snowlab response]$ dvca -action option -oh /u01/app/oracle/product/10.2.0/db_1 -owner_account dbvault_owner -owner_passwd dv_12345 -nodecrypt -jdbc_str jdbc:oracle:oci:@ dv   dv  -sys_passwd oracle

4. 验证database valut

sys用户已经没有权限创建用户
sqlplus / as sysdba
SQL> create user u1 identified by u1;
create user u1 identified by u1
                             *
ERROR at line 1:
ORA-01031: insufficient privileges

database valut管理员用户可以创建域
SQL> conn dbvault_owner/dv_12345
Connected.
SQL> exec dvsys.dbms_macadm.create_realm('myrealm','myrealm','y',1);

PL/SQL procedure successfully completed.


下面是静默安装时的屏幕输出
[oracle@snowlab datavault]$ ./runInstaller -silent -responseFile /software/datavault/response/dv.rsp
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-25_08-20-32AM. Please wait ...[oracle@snowlab datavault]$ Oracle Universal Installer, Version 10.2.0.4.0 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.

You can find a log of this install session at:
 /u01/app/oracle/oraInventory/logs/installActions2015-04-25_08-20-32AM.log
.................................................................................................... 100% Done.


Loading Product Information
............................................................... 100% Done.


Starting execution of Prerequisites...
Total No of checks: 11

Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2,redhat-5,SuSE-10
Actual Result: redhat-5
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for Packages
Checking operating system package requirements ...
Checking for make-3.81; found make-1:3.81-3.el5.        Passed
Checking for binutils-2.17; found binutils-2.17.50.0.6-14.el5.  Passed
Checking for gcc-4.1; found gcc-4.1.2-51.el5.   Passed
Checking for libaio-0.3.106; found libaio-0.3.106-5.    Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for Kernel
Checking kernel parameters
Checking for semmsl=250; found semmsl=250.      Passed
Checking for semmns=32000; found semmns=32000.  Passed
Checking for semopm=100; found semopm=100.      Passed
Checking for semmni=128; found semmni=128.      Passed
Checking for shmmax=536870912; found shmmax=4294967295. Passed
Checking for shmmni=4096; found shmmni=4096.    Passed
Checking for shmall=2097152; found shmall=1073741824.   Passed
Checking for file-max=65536; found file-max=65536.      Passed
Checking for VERSION=2.6.9; found VERSION=2.6.32-200.13.1.el5uek.       Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. Passed
Checking for rmem_default=262144; found rmem_default=1048576.   Passed
Checking for rmem_max=262144; found rmem_max=1048576.   Passed
Checking for wmem_default=262144; found wmem_default=262144.    Passed
Checking for wmem_max=262144; found wmem_max=262144.    Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for GLIBC
Checking Recommended glibc version
Expected result: ATLEAST=2.5-12 
Actual Result: 2.5-65
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for TotalMemory
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 1228MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for SwapSpace
Checking available swap space requirements ...
Expected result: 1842MB
Actual Result: 2430MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for DetectIfDHCPAssignedIP
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<


Check complete: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.

=======================================================================
Performing check for OracleBase
Validating ORACLE_BASE location (if set) ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for OracleHomeSpace
Checking Oracle Home path for spaces...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for DetectAnyInvalidASMHome
Checking for proper system clean-up....
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CompatibilityChecks
Checking for Oracle Home incompatibilities ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
PrereqChecks complete


Analyzing dependencies 
............................................................... 100% Done.


-----------------------------------------------------------------------------
Summary
Global Settings
    Source: /software/datavault/stage/products.xml
    Oracle Home: /u01/app/oracle/product/10.2.0/db_1 (OraDb10g_home1)
    Installation Type: Enterprise Edition
Product Languages
   English
Space Requirements
   / Required 103MB (includes 80MB temporary) : Available 13.23GB
New Installations (4 products)
   Oracle Database Vault 10.2.0.4.0 
   Oracle Database Vault Scripts 10.2.0.4.0 
   Oracle Label Security 10.2.0.4.0 
   Oracle Database Vault J2EE Application 10.2.0.4.0 
Already Installed (6 products)
   Oracle Enterprise Manager Console DB 10.2.0.1.0 
   Oracle Universal Installer 10.2.0.4.0 
   Oracle One-Off Patch Installer 10.2.0.4.0 
   Installer SDK Component 10.2.0.4.0 
   Java Runtime Environment 1.4.2.14.0 
   Sun JDK 1.4.2.14.0 
-----------------------------------------------------------------------------


Installation in progress (Saturday, April 25, 2015 8:20:38 AM EDT)
..................................................................................                                              82% Done.
Install successful

Linking in progress (Saturday, April 25, 2015 8:20:48 AM EDT)
.                                                                83% Done.
Link successful

Setup in progress (Saturday, April 25, 2015 8:20:53 AM EDT)
....                                                            100% Done.
Setup successful

End of install phases.(Saturday, April 25, 2015 8:20:55 AM EDT)
Starting to execute configuration assistants
Configuration assistant "Oracle Database Vault Configuration Assistant" succeeded 
The installation of Oracle Database Vault was successful.
Please check '/u01/app/oracle/oraInventory/logs/silentInstall2015-04-25_08-20-32AM.log' for more details.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29047826/viewspace-1711958/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29047826/viewspace-1711958/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值