首先找到自己电脑上的listener.ora文件,将HOST=localhost改为主机名,因为使用localhost不能进行远程访问。.../app/Oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
例如:主机名为AY140316135826Z
将host值设置为oracle所在服务器的主机名
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = AY140316135826Z)(PORT = 1521))
)
)