Tuesday, May 22, 2012
ORACLE 11G work with IPv6 addresses in addition to IPv4
ORACLE 11G work with IPv6 addresses in addition to IPv4
These are the simple steps that will make your DB 11g instance work with IPV6 environment.
Configure Linux
To configure Linux with this specific IPv6 address, you modify the /etc/sysconfig/network-scripts/ifcfg-{device name} file.
In my case I modified the ifcfg-eth0 file. I had previously added an IPv6 address and will add a secondary IPv6 address for the IPv4 Mapped Address.
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:50:43:ac:11:a2
TYPE=Ethernet
USERCTL=no
IPV6INIT=yes
PEERDNS=yes
NETMASK=255.255.0.0
IPADDR=192.168.110.77
GATEWAY=192.168.255.254
IPV6ADDR=2001:DB8::200C:417A/64
IPV6ADDR_SECONDARIES=::ffff:192.168.110.77/64
Configure the Database Listener
The next step is to configure the Listener for this IPv6 address.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2001:db8::200c:417a)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.110.77)(PORT = 1521))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
)
)
Configuring the Client
The last step is to create an appropriate TNS entry for your application
AVI =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 2001:db8::200c:417a)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DB11g)
)
)
AVI2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.110.77)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DB11g)
)
)
Test the Connection
use the utility TNSPING
database-server :/u/app/oracle/v11.2.0/network/admin > tnsping AVI
database-server :/u/app/oracle/v11.2.0/network/admin > tnsping AVI2
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.110.77)(PORT = 1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DB11g)))
OK (10 msec)
database-server :/u/app/oracle/v11.2.0/network/admin
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment