OCP-1Z0-052-V8.02-110题

来源:互联网 发布:不会编程能学数据库吗 编辑:程序博客网 时间:2024/04/28 10:35

110. Which task would you perform before you run Oracle Universal Installer (OUI) in silent or suppressed

mode for an installation?

A.Run the root.sh script.

B.Create the oraInst.loc file.

C.Create the tnsnames.ora file.

D.Run the oraintRoot.sh script.

Answer: B  

 

答案解析:

 

Creating the oraInst.loc File

If you plan to install Oracle products using Oracle Universal Installer in silent or response file mode,then you must manually create the oraInst.loc file if it does not exist. This file specifies the location of the Oracle Inventory directory where Oracle Universal Installer creates the inventory of Oracle products installed on the system.

Note:

If Oracle software was installed previously on the system, the oraInst.loc file might exist. If the file does exist, you do not have to create a file.

To create the oraInst.loc file, follow these steps:

  1. Switch the user to root:

    $ su - root
  2. Create the /var/opt/oracle directory if it does not exist:

  3. Change the directory:

    # cd /var/opt/oracle
  4. Use a text editor to create the oraInst.loc file, containing the following lines:

    inventory_loc=u01/app/oraInventory
    inst_group=oinstall

    In this example, inventory_loc is the location of the Oracle inventory; and theinst_group parameter shows the name of the Oracle Inventory group (in this example,oinstall).

  5. Enter the following commands to set the appropriate owner, group, and permissions on theoraInst.loc file:

    # chown oracle:oinstall oraInst.loc
    # chmod 664 oraInst.loc
官方参考:http://docs.oracle.com/cd/E11882_01/install.112/e24336/app_nonint.htm#BABDIJJA