Home » RDBMS Server » Networking and Gateways » Remote connection to Oracle (Oracle 10g)
Remote connection to Oracle [message #303573] Fri, 29 February 2008 18:45 Go to next message
pbazant
Messages: 2
Registered: February 2008
Junior Member
I have local network with two computers: WinXP with Oracle 10g and Vista with Oracle Client tools. I need to connect to the Oracle 10g from the client PC with sqlplus and with Enterprise Manager Console. Sqlplus returns ORA-12154 error, EM console returns ORA-12541 error.

Is the problem in configuration of listener.ora, tnsnames.ora and sqlnet.ora on the server side and on the client side? They look like this:

Server side:
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
-----------------------------------------------------------------
# sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
-----------------------------------------------------------------
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
)
)

-----------------------------------------------------------------
-----------------------------------------------------------------
Client side:
# tnsnames.ora Network Configuration File:
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.9)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
-----------------------------------------------------------------
# sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0
SQLNET.AUTHENTICATION_SERVICES= (NTS, EZCONNECT)
NAMES.DIRECTORY_PATH= (TNSNAMES)
-----------------------------------------------------------------

Are these files configured fine? Or do I have to configure also something else? When I do tnsping 10.0.0.9 from the client, the result is OK. So what is wrong? Thanks a lot for help, Petr.
Re: Remote connection to Oracle [message #303584 is a reply to message #303573] Fri, 29 February 2008 21:25 Go to previous messageGo to next message
mshrkshl
Messages: 242
Registered: September 2006
Location: New Delhi
Senior Member
ORA-12154: TNS:could not resolve the connect identifier specified
Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
Action: - If you are using local naming (TNSNAMES.ORA file):

- Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)

- Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.

- Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.

- Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.

- If you are using directory naming:

- Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).

- Verify that the LDAP directory server is up and that it is accessible.

- Verify that the net service name or database name used as the connect identifier is configured in the directory.

- Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier

- If you are using easy connect naming:

- Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).

- Make sure the host, port and service name specified are correct.

- Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

Re: Remote connection to Oracle [message #303610 is a reply to message #303584] Sat, 01 March 2008 01:58 Go to previous message
pbazant
Messages: 2
Registered: February 2008
Junior Member
I am trying from the left, from the right but it does not work. The point is that it already worked, at least via sqlplus, but then I started to play with those xxx.ora files (in order to make work Enterprise Manager Console connection) and it stopped to work. So the problem must be in xxx.ora files.

If I copy sqlnet.ora and tnsnames.ora from the server computer to client pc - will it help? Should these files look same on both sides? Could you please look to listings of the files in my first message? What should be changed there?

Thank you very much.
Previous Topic: Cannot insert through database link from 10g to 8.1.7
Next Topic: Problems connecting to 8i
Goto Forum:
  


Current Time: Sun Dec 21 14:30:24 CST 2014

Total time taken to generate the page: 0.05756 seconds