|
|
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
Всем привет! Перерыл интернеты. Не врубаюсь, что не так, девелопер не видит базы. PL\SQL Developer 32 битный, клиент поставил 32 битный. service name проверил, все как надо. Переменную окружения TNS_ADMIN добавил. В девелопере указал home и oci.dll. Внизу привожу listener.ora и tnsnames.ora. P.S. Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Oracle Client 12.1.0.2.0 32 bit listener: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = E:\app\israel\product\12.1.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:E:\app\israel\product\12.1.0\dbhome_1\bin\oraclr12.dll") ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) TNSNAMES: LISTENER_ORCL = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) (CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) ) ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 11:21 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
lsnrctl services? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 11:24 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 11:27 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, E:\app\israel\product\12.1.0\dbhome_1\BIN>lsnrctl services LSNRCTL for 64-bit Windows: Version 12.1.0.2.0 - Production on 20-SEP-20 :24 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT= Services Summary... Service "CLRExtProc" has 1 instance(s). Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this servi Handler(s): "DEDICATED" established:0 refused:0 LOCAL SERVER Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Handler(s): "DEDICATED" established:1 refused:0 state:ready LOCAL SERVER Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Handler(s): "D000" established:0 refused:0 current:0 max:1022 state:ready DISPATCHER <machine: ISRAELSHAMIR, pid: 1164> (ADDRESS=(PROTOCOL=tcp)(HOST=israelshamir)(PORT=49168)) The command completed successfully ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 11:55 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
K790, прописал вместо localhost свой ip - не помогло ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 12:00 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 12:30 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
israelshamir, куда прописали и что есть "свой ip" ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 12:44 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
israelshamirK790, прописал вместо localhost свой ip - не помогло я правильно понимаю - что все это делаете в пределах одного хоста? т.е. и сервер и клиент - один хост... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 12:53 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCatну и как подключаемся? пробовал tnsping orcl sqlplus user/pass@orcl? вот это все и еще посмотреть содержимое sqlnet.ora ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 13:30 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, да, sqlplus цепляется нормально, коннекчусь так israel/ilikemilk22@orcl as sysdba. результат tnsping orcl: C:\Users\israel_shamir>tnsping orcl TNS Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 20-SEP-2 016 18:32:15 Copyright (c) 1997, 2014, Oracle. All rights reserved. Used parameter files: E:\app\israel\product\12.1.0\dbhome_1\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168. 251.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl ))) TNS-12541: TNS:no listener C:\Users\israel_shamir> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 18:39 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, да, все делаю в пределах одного хоста. инстанс и девелопер на одном компе стоят ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 18:41 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
K790, ipconfig'ом посмотрел ip хоста на котором стоят и экземпляр и девелопер. и в listener.ora и в tnsnames.ora вместо localhost прописал полученный ip ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 18:43 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
Rinka777, вот так выглядит sqlnet: # sqlnet.ora Network Configuration File: E:\app\israel\product\12.1.0\dbhome_1\network\admin\sqlnet.ora # Generated by Oracle configuration tools. # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 18:45 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
israelshamir(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) israelshamir(HOST = 192.168.251.101) где то ты нас обманываешь! откуда тут 192.168...? 127.0.0.1 - это локалхост. уж разберись там! tnsping написал откуда берет файлы параметров. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 19:38 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, сделал все по новой, как здесь описано http://sergdankov.blogspot.ru/2012/05/oracle-instant-client.html теперь девелопер видит базу, но не получается залогиниться - пишет: ORA-01017: invalid username/password; logon denied в sqlplus коннекчусь без проблем под той же учеткой ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 21:28 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, ip, кстати, заменил обратно на localhost в listener и tnsnames ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 21:30 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, результат tnsping orcl теперь такой: E:\app\israel\product\12.1.0\dbhome_1\BIN>tnsping orcl TNS Ping Utility for 64-bit Windows: Version 12.1.0.2.0 - Production on 20-╤┼═-2 016 21:33:40 Copyright (c) 1997, 2014, Oracle. All rights reserved. Used parameter files: E:\app\israel\product\12.1.0\dbhome_1\network\admin\sqlnet.ora Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhos t)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl))) OK (20 msec) E:\app\israel\product\12.1.0\dbhome_1\BIN> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 21:34 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
israelshamirтеперь девелопер видит базу, но не получается залогиниться - пишет: ORA-01017: invalid username/password; logon denied 32bit клиент тоже 12c? и не забываешь "as sysdba" в девелопере указать? сейчас в эту сторону смотри, настройки лисенера не трогай уже. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 21:35 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, да, клиент тоже 12c 32bit. as sysdba не забываю. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.09.2016, 21:47 |
|
||
|
ORA-12154: TNS:could not resolve the connect identifier specified
|
|||
|---|---|---|---|
|
#18+
CrazyCat, разобрался благодаря этой статье https://www.experts-exchange.com/questions/27859821/Can-connect-as-sysdba-using-sqlplus-but-not-sql-developer-ORA-01017.html я не знал, что есть такой нюанс! А можете носом ткнуть, что почитать, чтобы также разбираться в этом(в архитектуре - как клиент коннектится и почему случился какой либо факап) как вы? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.09.2016, 07:05 |
|
||
|
|

start [/forum/topic.php?fid=52&msg=39312299&tid=1887420]: |
0ms |
get settings: |
7ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
181ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
59ms |
get tp. blocked users: |
1ms |
| others: | 207ms |
| total: | 486ms |

| 0 / 0 |
