I am trying to accessing my Oracle database over Network. I have Google a lot and found many solutions, but those doesn\'t work for me.
The problem is
Create an entry in TNSNAMES.ORA file on the system from which you are trying to connect to the database. (TNSNAMES.ORA is located in ORACLE_INSTALLATION_PATH/Network/Admin/ folder)
Sample entry:
DB_HOST_NAME =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DB_HOST_NAME)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
If you have more than one Oracle clients installed, you might need to update this in all those TNSNAMES.ORA
Whenever you are sufering with this kind of errors while creating remote access for you database, do following things before.
lsnrctl status
. This will give you all currently running Listeners List, find out the one which you created just before.Host Name
and Port Number
for your Listener.lsnrctl status
Enjoy the Things, Some challenges needs Afforts, Once you fall back from it, it will be never solved.
I am really thankful to those all Guys who answered and Commented to this Question, this all Material made my Challenge easy..
Thank You @Alex, @ Lalit, @TenG and @S.Krishna Thank You so Much Guys.
If your host name and port number is listener then You could try this option by enabling port number in firewall settings.