| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
This was shown using the netstat command:
sjoerd@oraclebox:/home/sjoerd>netstat -na | grep 1521 tcp4 0 0 10.10.10.100.1521 *.* LISTEN tcp4 0 0 10.10.10.100.1521 10.10.10.1.1429 ESTABLISHED tcp4 0 0 10.10.10.100.1521 10.10.10.100.32782 ESTABLISHED tcp4 0 0 10.10.10.100.32782 10.10.10.100.1521 ESTABLISHED tcp4 0 0 10.10.10.100.1521 10.10.10.100.32871 ESTABLISHED
And indeed, when trying to do a 'telnet localhost 1521' we got an connection refused error.
sudo cat /opt/oracle/product/10.2/network/admin/listener.ora.old
# listener.ora Network Configuration File: /opt/oracle/product/10.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.100)(PORT = 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = comp01.company.local)
(ORACLE_HOME = /opt/oracle/product/10.2)
(SID_NAME = comp01)
)
)
Modified oracle listener file:
sudo cat /opt/oracle/product/10.2/network/admin/listener.ora
# listener.ora Network Configuration File: /opt/oracle/product/10.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraclebox)(PORT = 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = comp01.company.local)
(ORACLE_HOME = /opt/oracle/product/10.2)
(SID_NAME = comp01)
)
)
lsnrctl stop lsnrctl start
Of course, these commands should be issued by the oracle user.
tcp4 0 0 *.1521 *.* LISTEN
Discussion