EMCA fails with error "ORA-01017: invalid username/password; logon denied"

Creation of dbcontrol repository fails when execute

$ emca -config dbcontrol -repos create

With error:

Database connection through listener failed. Fix the error and run EM Configuration Assistant again.

Some of the possible reasons may be:

1) Listener port 1521 provided is incorrect. Provide the correct port.
2) Listener is not up. Start the Listener.
3) Database service <DBSID> is not registered with listener. Register the database service.
4) Listener is up on physical host and ORACLE_HOSTNAME environment variable is set to virtual host. Unset ORACLE_HOSTNAME environment variable.
5) Listener is up on virtual host. Set environment variable ORACLE_HOSTNAME=<virtual host>.
6) /etc/hosts does not have correct entry for hostname.

In emca_.log file:

Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: , oracleHome: /u01/app/oracle/product/11.2.0.3/db_1, and user: SYS
Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
WARNING: ORA-01017: invalid username/password; logon denied

Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.EMConfig perform
SEVERE:

Database connection through listener failed. Fix the error and run EM Configuration Assistant again.

Some of the possible reasons may be:

1) Listener port 1521 provided is incorrect. Provide the correct port.
2) Listener is not up. Start the Listener.
3) Database service is not registered with listener. Register the database service.
4) Listener is up on physical host and ORACLE_HOSTNAME environment variable is set to virtual host. Unset ORACLE_HOSTNAME environment variable.
5) Listener is up on virtual host. Set environment variable ORACLE_HOSTNAME=.
6) /etc/hosts does not have correct entry for hostname.

Refer to the log file at /u01/app/oracle/cfgtoollogs/emca/emca_2014_09_24_09_26_58.log for more details.
Sep 24, 2014 9:30:56 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException:

Database connection through listener failed. Fix the error and run EM Configuration Assistant again.

Some of the possible reasons may be:

1) Listener port 1521 provided is incorrect. Provide the correct port.
2) Listener is not up. Start the Listener.
3) Database service is not registered with listener. Register the database service.
4) Listener is up on physical host and ORACLE_HOSTNAME environment variable is set to virtual host. Unset ORACLE_HOSTNAME environment variable.
5) Listener is up on virtual host. Set environment variable ORACLE_HOSTNAME=.
6) /etc/hosts does not have correct entry for hostname.

Cause

SYS password is invalid.

Solution

1) drop existing dbcontrol
  $ emca -deconfig dbcontrol db -repos drop
2) reset SYS password (also in password file, if using)
3) create the dbcontrol
  $ emca -config dbcontrol -repos create

尝试上述步骤无效后,发现remote_login_passwordfile参数在之前的测试中被修改了,改回后终于成功

SQL> show parameter remote

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_dependencies_mode             string      TIMESTAMP
remote_listener                      string
remote_login_passwordfile            string      NONE
remote_os_authent                    boolean     FALSE
remote_os_roles                      boolean     FALSE
result_cache_remote_expiration       integer     0
SQL> alter system set remote_login_passwordfile=‘exclusive‘;
alter system set remote_login_passwordfile=‘exclusive‘
                 *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified

SQL> alter system set remote_login_passwordfile=‘exclusive‘ scope=spfile;

System altered.

SQL> shutdown immediate

时间: 2024-11-10 18:03:29

EMCA fails with error "ORA-01017: invalid username/password; logon denied"的相关文章

sqlplus登录Oracle时ORA-01017: invalid username/password; logon denied的错误

今天用scott用户登录Oracle数 据库时,竟然出现了ORA-01017: invalid username/password; logon denied错误,原以为是因为我的scott用户没有解锁,后用system用户登录,然后用alter user scott account unlock语句对scott用户进行解锁,可是解锁后依然不能进入,还是报告ORA-01017: invalid username/password; logon denied错误,仔细想了一会,感觉应该是我在对sc

被拒--悲剧之ORA-01017: invalid username/password; logon denied 错误

本地没有安装oracle,安装了oracle客户端和PL/SQL Developer.来实现对oracle数据库的可视化操作. 在使用在登录PL/SQL无法登录,提示错误:ORA-01017: invalid username/password; logon denied 错误(程序中的用户和密码无法登录,登录被拒). 找出悲剧原因的历程: 1 看用户名和密码是否正确,经检查后,没有问题.提示:如果你使用的是IDE开发工具进行连接的数据库,不要忽视空格检查.如果系统用户可以登录,可以登录后查看用

ORA-01017: invalid username/password; logon denied 解决办法

ORA-01017: invalid username/password; logon denied解决办法 环境介绍:操作系统RHEL6.4 X64.数据库:ORACLE 11.2.0.4.0:在现有环境下手动创建数据库,在数据库的手动创建过程中没有大的问题,但在数据库创建完成后出现在本地可以登录数据库用户包括管理员账户,通过客户端远端无法登录报如下错误: 通过测试,或者在数据库系统中更换用户账户口令都无法解决问题,至此想到了ORACLE的密码口令文件, [[email protected] 

ORA-01017: invalid username/password; logon denied异常的分析

今天在整合SpringMVC与mybatis的时候遇到了一个异常: 四月 24, 2017 10:37:31 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet [springDispatcherServlet] in context with path [/Test0424SM_zhenghe] threw exception [Request processing

(oracle)invalid username/password:logon denied

1.在cmd中输入sqlplus/nolog: 2.connect username/password as sysdba;会显示连接(管理员不用密码登录) 3.改密码:alter user you_username identified by you_password; eg:alter user system identified by 123456

ORA-01017 invalid username/password;logon denied (密码丢失解决方案)

一: 1.先确认是否输错 用户名和密码 2.如果的确是丢失密码的话: 查看ORACLE_BASE\ORACLE_HOME\NETWORK\ADMIN的sqlnet.ora文件 sqlnet.ora 如果是 SQLNET.AUTHENTICATION_SERVICES= (NONE) , 需更改为SQLNET.AUTHENTICATION_SERVICES= (NTS) 在SQL*Plus中执行如下命令:   SQL>sql/plus sysdba (操作系统认证登录)   SQL>alter

ORA-01017 invalid username/password;logon denied

一般来说这个是密码丢失问题,但也许是因为你的用户名或密码写错啦,所以先检查下用户名和密码,觉得没错的话就去查看 sqlnet.ora (在 安装盘下面的:oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN) 如果是 SQLNET.AUTHENTICATION_SERVICES= (NONE) , 需更改为SQLNET.AUTHENTICATION_SERVICES= (NTS) 然后在SQL*Plus中执行如下命令:   SQL>conn/as   sysd

Oracle SQLDeveloper ORA-01017 invalid username/password;logon denied (密码丢失解决方案)

oracle sys账号用sql developer工具无法登陆 用户名和密码不一致 如果的确是丢失密码的话:在SQL*Plus中执行如下命令:   SQL>conn/as sysdba (操作系统认证登录)   SQL>alter user system identified by 密码; (回车后用户system的密码会更改为你的密码)  如果所改的密码为数字的话,要用引号括起来 eg:SQL>alter user  system identified by   “123456”;

在客户端机器上使用PlSql,登录dba账号提示ORA-01031:insufficient privileges或 ORA-01017: invalid username/password; logon denied错误。

首先考虑的就是使用的账号本身有没有DBA权限 然后就是客户端计算机用户有没有被加入到ora_dba用户组 然后就是服务端机器有没有启用来宾账号,并且计算机用户有没有被加入到ora_dba用户组 修改用户组之后要注销机器重新登录,最好是直接重启 参考如下链接 https://www.cnblogs.com/grisa/p/10045101.html 原文地址:https://www.cnblogs.com/MrDW/p/12107285.html