SQL> host oerr ora 12514
12514, 00000, "TNS:listener does not currently know of service requested in connect descriptor"
// *Cause: The listener received a request to establish a connection to a
// database or other service. The connect descriptor received by the listener
// specified a service name for a service (usually a database service)
// that either has not yet dynamically registered with the listener or has
// not been statically configured for the listener. This may be a temporary
// condition such as after the listener has started, but before the database
// instance has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which services are currently known by the listener by executing:
// lsnrctl services
// - Check that the SERVICE_NAME parameter in the connect descriptor of the
// net service name used specifies a service known by the listener.
// - If an easy connect naming connect identifier was used, check that
// the service name specified is a service known by the listener.
// - Check for an event in the listener.log file.
--最近先后1在11g和10g平台遭遇12514错误。
通过查找都是listener.ora有问题,手动修改,做个记录。
增加
SID_DESC =
(GLOBAL_DBNAME = dgtest)
(ORACLE_HOME =/u01/app/oracle/product/11.1.6)
(SID_NAME = dgtest)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/46907/viewspace-1000398/ ,如需转载,请注明出处,否则将追究法律责任。