Version: 11.2.0.1.0-64bit
After the local machine is installed with Oracle, the link test shows the following situations:
Sqlplus scott/tiger Login
Sqlplus scott/tiger @ orcl Login Failed, prompting ORA-12514 error, it should be unable to recognize service name ORCL
Find the following solutions for this purpose:
-------------------------------------------------------------------
Find the listener file in the oracle installation directory:
The original file is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = d: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS = ONLY: d: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ bin \ lrlr11.dll ")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521 ))
(ADDRESS = (PROTOCOL = TCP) (HOST = idylan) (PORT = 1521 ))
)
)
ADR_BASE_LISTENER = d: \ app \ Administrator
The modification is as follows:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = d: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS = ONLY: d: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ bin \ lrlr11.dll ")
)
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = d: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1)
(SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521 ))
(ADDRESS = (PROTOCOL = TCP) (HOST = idylan) (PORT = 1521 ))
)
)
ADR_BASE_LISTENER = d: \ app \ Administrator
After saving, sqlplus scott/tiger @ orcl can log on normally.
--------------------------
Dylan presents.