ORA-12505, TNS:listener does not currently know of SID given in connect des

♀尐吖头ヾ 提交于 2019-11-29 05:11:02
Isra Habibi

I have same problem, but I run on oracle linux. After searching and testing, i can connect sqldeveloper to my oracle11g without setting my listener.ora or else

here is the syntax that i run on terminal sql

alter system set LOCAL_LISTENER='(DESCRIPTION_LIST =  (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))))';

then

alter system register;

i get the tutorial here

  1. Open Net Manager. In Oracle Net Configuration, open Local, and then, open Listeners.
  2. Select your Listener.
  3. In the upper right ComboBox, select Database Services.
  4. Clic Add Database.
  5. Fill the 3 fields: Global Database Name (i.e. ORCL.NET. In SQL Plus type SELECT * FROM GLOBAL_NAME), Oracle Home Directory (i.e. C:\app\User\product\11.2.0\dbhome_1) and SID (i.e. orcl)
  6. File > Save Network Configuration.
  7. Restart the OracleOraDb11g_home1TNSListener service.
hitman1000

For SQL Developer maybe you need to add these parameters

AddVMOption -Duser.language=en

AddVMOption -Duser.region=US

in the file

$SQLDEVELOPER_HOME\sqldeveloper\bin\sqldeveloper.conf

if u r using oracle 11g enterprise edition, then do one thing, u just uninstall it, and again reinstall oracle 11g. do all the steps carefully. when installation will finish, then go to start menu-oracle 11g-configuration & migration tool-database configuration assistance. open this & again do configuration here u will give a sid name . that sid will be used when u will create a connection in sql developer insteade of xe. execept this above dont change other. i hope it will be definitely work.

If you Still getting this Error message:

Status : Failure -Test failed: Listener refused the connection with the following error:

ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

Do following steps: 1. open cmd prompt. 2. c:/ services.msc 3. its navigate to system services console there it self once you check it the OracleServiceXE status. 4.then starts the service status(rightclick>start) wait till status showing the running.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!