How to force the Oracle Installer to use a virtual hostname rather than the 'real' hostname when installing an OracleAS instance? solutionTo ensure that the Oracle Installer picks up the desired hostname follow the steps below: ORACLE_HOSTNAME=virtualhost.oracle.com; export ORACLE_HOSTNAME 2. Edit the operating system hosts file and ensure that the virtual hostname is listed before the real host name (the file can be changed back after the install is complete) e.g /etc/hosts 3. Install OracleAS using the runInstaller command line: ./runInstaller OUI_HOSTNAME=virtualhost.oracle.com 4. During the install you may hit 3.1.24 Additional Step Required When Installing OracleAS Web Cache on Multihomed (Multi-IP) Computers 1. Setting OUI_HOSTNAME will change the ServerName HTTP Server directive to the value specified for OUI_HOSTNAME. You will still find, however, that the HTTP Server, Web Cache and AS Console components still listen on the ANY ip address, not just the particular IP address associated with the virtual hostname. It is expected behaviour and means that if you have 2 IP addresses on a machine, post install an OracleAS instance will be accessible via both IPs. The HTTP Server, Web Cache and AS Console can be re-configured post install to listen only on a specific IP address. a) HTTP Server: configure the Listen directive. Reference: b) Oracle Web Cache: configure the Listen Port section to specify a particular ip address c) AS Console: The console is accessed via it's own 'oc4j-based' lightweight listener. To force the AS Console to listen for requests against a particular ip address. <web-site host="[ALL]" port="18100" display-name="Oracle Enterprise Manager iAS Console Website" secure="false"> to <web-site host="11.22.33.444" port="18100" display-name="Oracle Enterprise Manager iAS Console Website" secure="false"> where in this example the chosen ip address is 11.22.33.444. - Start the AS Console 2. Let's say a machine, configured with multiple network cards (NICs) / virtual hosts, is to host two OracleAS instances. The business requirement is to have one OracleAS instance configured against one virtual host and the other OracleAS instance The answer is no. The staticports.ini cannot be the same for both instances at install time. This is because using OUI_HOSTNAME at install time will only change the ServerName HTTP Server directive to the value specified for OUI_HOSTNAME. As stated above the HTTP Server, Web Cache and AS Console components listen on the ANY ip address, not a particular IP address. Consequently there is a potential for port conflict, for example:
|
1 comment:
Hi Rasheed,
No need of setting ORACLE_HOSTNAME if u have the privilege of editing the /etc/host.
steps are follows.
1. edit /etc/host with the first entry as vrtualhost.oracle.com
2.start the installation, application server will directly take the /etc/hosts first entry and you will get the AS URL with virtualhost name.
Regards
falah
Post a Comment