我的数据库装在本机,虚拟机里面是linux x86 装了oracle 11g 的客户端。目前虚拟机的oracle客户端执行:
sqlplus bill/bill@boss 的时候会报错:
[root@bogon bin]# ./sqlplus bill/bill@boss
SQL*Plus: Release 11.1.0.6.0 - Production on Sat Oct 25 15:07:08 2014
Copyright (c) 1982, 2007, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS:no listener
[root@bogon admin]# vi tnsnames.ora
boss =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.1.104)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mytjfdb)
)
)