3. 安装11g RAC
3.1 安装 grid infrastructure
在VNC 上登录到grid 用户下,打开安装包中的runInstaller 文件,按照下列步骤进行安装。
安装贴图,我上传不了,在此处就过滤掉了。
SCAN Name 配置的内容就是hosts 中配置的条目,端口可以自定义。
这个信息出现在数据库实例的初始化参数remote_listener 中。(作用未知)
SQL> show parameter listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=serv
1-vip)(PORT=1522))))
remote_listener string serv-scan:1590
- PMON process of each instance registers the database services with the default listener on the local node and with each SCAN listener, which is specified by the REMOTE_LISTENER database parameter.
- Oracle client connects using SCAN name: myscan:1521/sales.example.com
- Client queries DNS to resolve scan_name.
- SCAN listener selects least loaded node (node in this example)
- The client connects to the local listener on node2. The local listener starts a dedicated server process for the connection to the database.
- The client connects directly to the dedicated server process on node2 and accesses the sales2 database instance.
SCAN 的虚拟IP 的解析,Oracle 推荐了两种方法DNS 和GNS 。
l Using DNS
To use the DNS method for defining your SCAN, the network administrator must create a single name that resolves to three separate IP addresses using round-robin algorithms. Regardless of how many systems are part of your cluster, Oracle recommends that 3 IP addresses are configured to allow for failover and load-balancing.
It is important that the IP addresses are on the same subnet as the public network for the server. The other two requirements are that the name (not including the domain suffix) are 15 characters or less in length and that the name can be resolved without using the domain suffix. Also, the IP addresses should not be specifically assigned to any of the nodes in the cluster.
You can test the DNS setup by running an nslookup on the scan name two or more times. Each time, the IP addresses should be returned in a different order:
nslookup mydatabase-scan