<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: an oracle question on Linux forum in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210769#M51429</link>
    <description>You could set the same hostname to both hosts, and configure an alias IP. Resolving by DNS you could have a entry for each host with it's IP address, and a generic entry for the virtual IP. For example:&lt;BR /&gt;&lt;BR /&gt;host1:&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;db.domain.com&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;192.168.0.1 dbnode1.domain.com&lt;BR /&gt;192.168.0.2 dbnode2.domain.com&lt;BR /&gt;192.168.0.3 db.domain.com &lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;IPADDR=192.168.0.1&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:0&lt;BR /&gt;DEVICE=eth0:0&lt;BR /&gt;IPADDR=192.168.0.3&lt;BR /&gt;ONBOOT=NO&lt;BR /&gt;&lt;BR /&gt;host2:&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;db.domain.com&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;192.168.0.1 dbnode1.domain.com&lt;BR /&gt;192.168.0.2 dbnode2.domain.com&lt;BR /&gt;192.168.0.3 db.domain.com &lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;IPADDR=192.168.0.2&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:0&lt;BR /&gt;DEVICE=eth0:0&lt;BR /&gt;IPADDR=192.168.0.3&lt;BR /&gt;ONBOOT=NO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When you perform a "failover", you just need to:&lt;BR /&gt;&lt;BR /&gt;node1# ifdown eth0:0&lt;BR /&gt;node2# ifup eth0:0&lt;BR /&gt;&lt;BR /&gt;To avoid confusion, set the PROMPT manually on each host.</description>
    <pubDate>Sat, 21 Nov 2009 14:27:48 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2009-11-21T14:27:48Z</dc:date>
    <item>
      <title>an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210768#M51428</link>
      <description>I know this question is purely a Oracle question, but I am posting it here, because I know a lot many persons here are also well aware with oracle.&lt;BR /&gt;&lt;BR /&gt;server1 hostname dbhost1&lt;BR /&gt;server2 hostname dbhost2&lt;BR /&gt;&lt;BR /&gt;I ran the Oracle(oracle10gR2) installer on server1(dbnode1), and install/place every thing(db and oracle binaries) on file system "/oracle" which is on SAN.&lt;BR /&gt;After installation completes, I unmount the /oracle(SAN), and then mount /oracle on server2(dbnode2), but oracle gives error and does not starts.&lt;BR /&gt;&lt;BR /&gt;To start Oracle on server2, I have to change the hostname of server2 from 'dbnode2'  to 'dbnode1'.(dbnode1 is server, where I ran the oracle installer)&lt;BR /&gt;&lt;BR /&gt;is there any specific method to install oracle(any special option I have to provide to the 'runInstaller' ) so that I can start oracle on/from either node ?&lt;BR /&gt;&lt;BR /&gt;on both, dbnode1 and dbnode2, /etc/hosts is following&lt;BR /&gt;# cat /etc/hosts&lt;BR /&gt;dbnode1 192.168.0.236&lt;BR /&gt;dbnode2 192.168.0.238&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sat, 21 Nov 2009 14:03:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210768#M51428</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-11-21T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210769#M51429</link>
      <description>You could set the same hostname to both hosts, and configure an alias IP. Resolving by DNS you could have a entry for each host with it's IP address, and a generic entry for the virtual IP. For example:&lt;BR /&gt;&lt;BR /&gt;host1:&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;db.domain.com&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;192.168.0.1 dbnode1.domain.com&lt;BR /&gt;192.168.0.2 dbnode2.domain.com&lt;BR /&gt;192.168.0.3 db.domain.com &lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;IPADDR=192.168.0.1&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:0&lt;BR /&gt;DEVICE=eth0:0&lt;BR /&gt;IPADDR=192.168.0.3&lt;BR /&gt;ONBOOT=NO&lt;BR /&gt;&lt;BR /&gt;host2:&lt;BR /&gt;/etc/sysconfig/network&lt;BR /&gt;db.domain.com&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;192.168.0.1 dbnode1.domain.com&lt;BR /&gt;192.168.0.2 dbnode2.domain.com&lt;BR /&gt;192.168.0.3 db.domain.com &lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;BR /&gt;IPADDR=192.168.0.2&lt;BR /&gt;&lt;BR /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0:0&lt;BR /&gt;DEVICE=eth0:0&lt;BR /&gt;IPADDR=192.168.0.3&lt;BR /&gt;ONBOOT=NO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When you perform a "failover", you just need to:&lt;BR /&gt;&lt;BR /&gt;node1# ifdown eth0:0&lt;BR /&gt;node2# ifup eth0:0&lt;BR /&gt;&lt;BR /&gt;To avoid confusion, set the PROMPT manually on each host.</description>
      <pubDate>Sat, 21 Nov 2009 14:27:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210769#M51429</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-11-21T14:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210770#M51430</link>
      <description>&amp;gt;&amp;gt;, but oracle gives error and does not starts.&lt;BR /&gt;&lt;BR /&gt;What error did it give?</description>
      <pubDate>Sat, 21 Nov 2009 15:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210770#M51430</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-11-21T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210771#M51431</link>
      <description>Hi Ivan thank for help&lt;BR /&gt;&amp;gt;You could set the same hostname to both hosts&lt;BR /&gt;but I need to set the unique hostname for both server.&lt;BR /&gt;Actually I have to configure a two node active/passive Linux HA&lt;BR /&gt;cluster... and to configure a cluster all the member nodes must&lt;BR /&gt;have a unique name.&lt;BR /&gt;So I have to install Oracle in such a way, that Oracle bind itself&lt;BR /&gt;to virtual-hostname/virtual-IP, and doesnt bind/attached itself to&lt;BR /&gt;the physical hostname of any node.&lt;BR /&gt;&lt;BR /&gt;e.g on both nodes&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;192.168.0.1 dbnode1  ## physical hostname and IP of server1&lt;BR /&gt;192.168.0.2 dbnode2  ## physical hostname and IP of server2&lt;BR /&gt;&lt;BR /&gt;192.168.0.2 dbserver ## virtual hostname and IP of Cluster&lt;BR /&gt;&lt;BR /&gt;and I want to install oracle in such a way, that Oracle bind itself with the virtual-hostname(dbserver) and not with the physical hostname of the machine&lt;BR /&gt;where I run the OUI(runInstaller)&lt;BR /&gt;&lt;BR /&gt;I have done a active/passive Linux HA cluster of SAP, and normally&lt;BR /&gt;SAP also binds itself to the physical hostname of machine where we run&lt;BR /&gt;the SAP installer, but we if we provide the&lt;BR /&gt;SET_VIRTUAL_HOSTNAME=virtualhostname option to the installer&lt;BR /&gt;then SAP binds itself to virtual-hostname provided, and not with the&lt;BR /&gt;physical-hostname(default)&lt;BR /&gt;&lt;BR /&gt;I am looking for the method to install Oracle so that Oracle bind&lt;BR /&gt;itself with virtual-hostname, and not with the physical hostname.&lt;BR /&gt;&lt;BR /&gt;Hi Patrick&lt;BR /&gt;&amp;gt;&amp;gt; but oracle gives error and does not starts.&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;What error did it give?&lt;BR /&gt;&lt;BR /&gt;when I try to start listner service on dbnode2, I got the following error. To avoid this error, and to start oracle I have to set the hostname of this machine as 'dbnode1'&lt;BR /&gt;&lt;BR /&gt;oracle@dbnode-2:~&amp;gt; lsnrctl start&lt;BR /&gt;&lt;BR /&gt;LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 22-NOV-2009 14:52:59&lt;BR /&gt;&lt;BR /&gt;Copyright (c) 1991, 2005, Oracle.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;Starting /oracle/product/10.2/db_1/bin/tnslsnr: please wait...&lt;BR /&gt;&lt;BR /&gt;TNSLSNR for Linux: Version 10.2.0.1.0 - Production&lt;BR /&gt;System parameter file is /oracle/product/10.2/db_1/network/admin/listener.ora&lt;BR /&gt;Log messages written to /oracle/product/10.2/db_1/network/log/listener.log&lt;BR /&gt;Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))&lt;BR /&gt;Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbnode-1.site)(PORT=1521)))&lt;BR /&gt;TNS-12545: Connect failed because target host or object does not exist&lt;BR /&gt; TNS-12560: TNS:protocol adapter error&lt;BR /&gt;  TNS-00515: Connect failed because target host or object does not exist&lt;BR /&gt;   Linux Error: 99: Cannot assign requested address&lt;BR /&gt;&lt;BR /&gt;Listener failed to start. See the error message(s) above.</description>
      <pubDate>Sun, 22 Nov 2009 12:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210771#M51431</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-11-22T12:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210772#M51432</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbnode-1.site)(PORT=1521)))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you are logged on dbnode-2 and tries to start listener listening on dbnode-1, what is of course not possible.&lt;BR /&gt;&lt;BR /&gt;it's not problem of how did you install oracle, it's just listener configuration problem.&lt;BR /&gt;&lt;BR /&gt;however, I would as well suggest let listener to work on virtual hostname and IP. if you move your instance between nodes you have to move this virtual hostname and IP as well. this is quite common configuration. it's possible to tweak listener or its starting scripts to bind to physical hostname/IP but then your client's configuration has to consider that as well and try to connect to both nodes everytime (what can casue unwanted delays).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;emha.</description>
      <pubDate>Mon, 23 Nov 2009 09:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210772#M51432</guid>
      <dc:creator>emha_1</dc:creator>
      <dc:date>2009-11-23T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210773#M51433</link>
      <description>Thanks Ivan, Patrick, and emha for help/support. I always appreciate your valuable feedbacks and help.&lt;BR /&gt;&lt;BR /&gt;I have found the solution :)&lt;BR /&gt;&lt;BR /&gt;Solution:&lt;BR /&gt;--------&lt;BR /&gt;&lt;BR /&gt;server1 physical hostname = dbnode1&lt;BR /&gt;server2 physical hostname = dbnode2&lt;BR /&gt;virtual hostname = dbserver&lt;BR /&gt;&lt;BR /&gt;on both hosts&lt;BR /&gt;# cat /etc/hosts&lt;BR /&gt;dbnode1 192.168.0.236 ## Phys hostname&lt;BR /&gt;dbnode2 192.168.0.238 ## Phys hostname&lt;BR /&gt;dbserver 192.168.0.245 ## virtual/cluster hosyname and IP&lt;BR /&gt;&lt;BR /&gt;before running the 'runInstaller', on dbnode1, temporarily set the physical hostname of server1 from 'dbnode1' to 'dbserver'&lt;BR /&gt;&lt;BR /&gt;# echo dbserver &amp;gt; /proc/sys/kernel/hostname&lt;BR /&gt;&lt;BR /&gt;then temporarily assign the virtual/cluster IP to the server1.&lt;BR /&gt;&lt;BR /&gt;# ip address add 192.168.0.245 brd + dev eth0&lt;BR /&gt;&lt;BR /&gt;now run the OUI(runInstaller), and place every thing(db, and oracle binaries) on SAN.&lt;BR /&gt;Once the installation completes, remove the virtual IP and virtual hostname from server1.&lt;BR /&gt;&lt;BR /&gt;now before starting oracle, just assign the virtual IP, to the node(either dbnode1 or dbnode2), and listner/oracle will start without complains. ;-)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Mon, 23 Nov 2009 17:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210773#M51433</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-11-23T17:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: an oracle question on Linux forum</title>
      <link>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210774#M51434</link>
      <description>see the above post</description>
      <pubDate>Mon, 23 Nov 2009 17:22:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/an-oracle-question-on-linux-forum/m-p/5210774#M51434</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-11-23T17:22:02Z</dc:date>
    </item>
  </channel>
</rss>

