EMCA fails with error & quot; ORA-01017: invalid username/password; logon denied & quot;, emcaora-01017

Source: Internet
Author: User

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

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,201 4 9:30:56 AM oracle. sysman. emcp. util. GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
Sep 24,201 4 9:30:56 AM oracle. sysman. emcp. util. GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
Sep 24,201 4 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,201 4 9:30:56 AM oracle. sysman. emcp. util. GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Sep 24,201 4 9:30:56 AM oracle. sysman. emcp. ParamsManager checkListenerStatusForDBControl
WARNING: ORA-01017: invalid username/password; logon denied

Sep 24,201 4 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/export toollogs/emca/emca_2014_09_24_09_26_58.log for more details.
Sep 24,201 4 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


The remote_login_passwordfile parameter was modified in the previous test.



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 = 'clusive ';
Alter system set remote_login_passwordfile = 'clusive'
*
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified


SQL> alter system set remote_login_passwordfile = 'clusive 'scope = spfile;

System altered.

SQL> shutdown immediate


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.