Добро пожаловать в форум, Guest  >>   Войти | Регистрация | Поиск | Правила | В избранное | Подписаться
Все форумы / Oracle Новый топик    Ответить
 EMCA invalid username/password; logon denied  [new]
parusproff
Member

Откуда:
Сообщений: 42
Опишу проблему тут.
Пытаюсь выполнить
emca -config dbcontrol db -repos create

В результате ошибка
STARTED EMCA at 19.06.2020 10:09:17
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

19.06.2020 10:09:19 oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-01017: invalid username/password; logon denied

19.06.2020 10:09:19 oracle.sysman.emcp.DatabaseChecks throwDBUnavailableException
SEVERE:
Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.

Some of the possible reasons may be :

1) Database may not be up.
2) Database is started setting environment variable ORACLE_HOME with trailing '/'. Reset ORACLE_HOME and bounce the database.

For eg. Database is started setting environment variable ORACLE_HOME=/scratch/db/ . Reset ORACLE_HOME=/scratch/db  and bounce the database.


sqlplus заходит под SYS, DBSNMP, SYSMAN
есть подозрение, что ошибки в листнере

версия Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 19-JUN-2020 09:51:57

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=OracleDB)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                02-MAR-2020 14:06:09
Uptime                    108 days 19 hr. 45 min. 47 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=OracleDB)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "TEST" has 1 instance(s).
  Instance "TESTMC", status READY, has 1 handler(s) for this service...
Service "TEST (ORACLE_HOME = /Oracle/Srv11" has 1 instance(s).
  Instance "TESTMC", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 19-JUN-2020 09:52:41

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=OracleDB)(PORT=1521)))
Services Summary...
Service "TESTMC" has 1 instance(s).
  Instance "TEST", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:6 refused:0 state:ready
         LOCAL SERVER
Service "TEST (ORACLE_HOME = /Oracle/Srv11" has 1 instance(s).
  Instance "TEST", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
The command completed successfully


cat listener.ora
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = OracleDB)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = /Oracle

SID_LIST_LISTENER =
    (SID_LIST =
        (SID_DESC =
            (GLOBAL_DBNAME = TEST
            (ORACLE_HOME = /Oracle/Srv11)
            (SID_NAME = TEST)
            (SERVICE_NAME = TEST)
        )
    )


cat tnsnames.ora
TEST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = OracleDB)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = TEST)
    )
  )


cat sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES)

SQLNET.INBOUND_CONNECTION_TIMEOUT = 180

DIAG_ADR_ENABLED = OFF

ADR_BASE = /Oracle


Что в листнере не так??
19 июн 20, 10:10    [22153431]     Ответить | Цитировать Сообщить модератору
 Re: EMCA invalid username/password; logon denied  [new]
parusproff
Member

Откуда:
Сообщений: 42
Переменные выставлял так:
export ORACLE_HOME=/Oracle/Srv11
export ORACLE SID=TEST
19 июн 20, 10:35    [22153455]     Ответить | Цитировать Сообщить модератору
 Re: EMCA invalid username/password; logon denied  [new]
SQL*Plus
Member

Откуда: Россия, Москва
Сообщений: 8062
parusproff,

Переходите на Oracle 12c-18с-19с.
В нем нет EMCA, а значит и всех этих проблем.
19 июн 20, 19:12    [22153924]     Ответить | Цитировать Сообщить модератору
 Re: EMCA invalid username/password; logon denied  [new]
Вячеслав Любомудров
Member

Откуда: Владивосток
Сообщений: 18323
parusproff
cat listener.ora
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = OracleDB)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = /Oracle

SID_LIST_LISTENER =
    (SID_LIST =
        (SID_DESC =
            (GLOBAL_DBNAME = TEST)
            (ORACLE_HOME = /Oracle/Srv11)
            (SID_NAME = TEST)
            (SERVICE_NAME = TEST)
        )
    )


cat tnsnames.ora
TEST =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = OracleDB)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = TEST)
    )
  )


Что в листнере не так??
Как минимум
20 июн 20, 07:40    [22154136]     Ответить | Цитировать Сообщить модератору
Все форумы / Oracle Ответить