# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)
2、配置服务器端的listener.ora
[oracle@linuxoracle admin]$ vi listener.ora
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 19 17:31:52 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务
3、配置完后,sqlplus连接
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:Documents and Settings ew>sqlplus system/lijie123@linuxoracle
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 19 17:19:48 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS: 无法解析指定的连接标识符
报这样的错误,说明sqlplus不能正确解析linuxoracle,可能hosts或DNS的问题!!!
用记事本打开hosts
内容如下(省略了一部分):
..............................................................
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
修该为:
...............................................................
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
192.168.1.61 linuxoracle
4、sqlplus连接oracle服务器
C:Documents and Settings ew>sqlplus system/lijie123@linuxoracle
SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 9月 19 18:37:51 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production