plsql启动出错:ora-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
#listener.oraNetworkConfigurationFile:G:\oracle\product\10.2.0\db_1\network\admin\lis...
# listener.ora Network Configuration File: G:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = GHOST-PC)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCPS)(HOST = GHOST-PC)(PORT = 2484))
)
)
这是listener.ora代码。
# tnsnames.ora Network Configuration File: G:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = GHOST-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ntrs =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.61.241)(PORT = 1521))
)
(CONNECT_DATA =
(SID = efss)
(SERVICE_NAME = ntrs)
)
)
这是tnsnames.ora代码
我要访问的是ntrs的数据库,可就是一值报错,数据库不是在本机,需要同过IP去连接的!但就是一直访问不了,求高手帮助! 展开
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = GHOST-PC)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCPS)(HOST = GHOST-PC)(PORT = 2484))
)
)
这是listener.ora代码。
# tnsnames.ora Network Configuration File: G:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = GHOST-PC)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
ntrs =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.61.241)(PORT = 1521))
)
(CONNECT_DATA =
(SID = efss)
(SERVICE_NAME = ntrs)
)
)
这是tnsnames.ora代码
我要访问的是ntrs的数据库,可就是一值报错,数据库不是在本机,需要同过IP去连接的!但就是一直访问不了,求高手帮助! 展开
展开全部
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
) --- 以上 为系统自动建立的不用管它 ---- 一下内容是需要我们手动添加的
(SID_DESC =
(SID_NAME = efss) -- 生产库的ORACLE_SID
(ORACLE_HOME = ) --生产库的ORACLE_HOME
(GLOBAL_NAME = ntrs) --生产库对外提供的全局服务名可以与ORACLE_SID不一样
)
)
TNS:
ntrs =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.61.241)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ntrs)
)
)
注意:每次修改LISTENER文件之后, 需要重启监听服务!!
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
) --- 以上 为系统自动建立的不用管它 ---- 一下内容是需要我们手动添加的
(SID_DESC =
(SID_NAME = efss) -- 生产库的ORACLE_SID
(ORACLE_HOME = ) --生产库的ORACLE_HOME
(GLOBAL_NAME = ntrs) --生产库对外提供的全局服务名可以与ORACLE_SID不一样
)
)
TNS:
ntrs =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.61.241)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ntrs)
)
)
注意:每次修改LISTENER文件之后, 需要重启监听服务!!
追问
那个oracle home我不知道
是填写那个ip 还是本机的oracle home?还是服务器上的??
追答
服务器上的 ORACLE_HOME 地址
展开全部
要连接哪个数据库,其他人机器上的pl/sql能通过这个IP连接过去吗,如果不行,那这个IP上的数据库服务没有打开
更多追问追答
追问
是啊,其他人都要通过这个ip去连接,他们就能上了
追答
你看一下这个OracleOraDb10g_home1TNSListener服务启动了吗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
解决oracle中初学者常见问题ORA-12514远程连接数据库出错
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
代码看不明白 一直手动配置
本地net服务设置了吗
本地net服务设置了吗
追问
你说的这个我在win7上操作过,不过我在xp点这个的时候系统毫无反应..........
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询