Domanda

Perché Oracle Enterprise Manager azzerare il mio conto SYSMAN lo stato di blocco (a tempo)?

Ho provato a ricostruire Enterprise Manager, e ri-installazione di Enterprise Manager, che funziona sempre, fino al successivo riavvio, e di nuovo al punto di partenza ...

È stato utile?

Soluzione

Benoit, è in realtà aveva una risposta parziale, tutto quello che diceva era corretto, ma dopo il riavvio successivo, l'account bloccato. Dopo diverse ore di più ricerca, il seguente problema è stato scoperto, con la risoluzione appropriata.

Enterprise Manager ha avuto la password predefinita SYSMAN memorizzata per le sue credenziali, e stava cercando di bloccare con quella password in rapida successione (300 volte al minuto o poco più a seconda del registro eventi). Quindi, dopo diversi tentativi rapidi con la stessa password sbagliata, Oracle blocca l'account.

L'impostazione di una nuova password in SQL * Plus o SQL Developer non reimpostare la password utilizzata per accedere al Enterprise Manager, per reimpostare la password nel responsabile di impresa, è necessario aprire un prompt dei comandi e procedere come segue:

emctl config oms sso -remove
emctl stop oms
emctl start oms

Nel corso dei comandi di cui sopra, sarà chiesto di inserire la password SYSMAN corrente, che si può entrare, e dovrebbe rimuovere la password SYSMAN utilizzato dal Console di Enterprise Manager, sostituendolo con quello appena inserito.

Altri suggerimenti

The status "LOCKED(TIMED)" means that the account has been locked because the password has expired and must be changed.

This has nothing to do with OEM. It is related to the profile assigned to your SYSMAN account.

You can run the following query (need read on DBA_* views) to check:

select
    p.profile as "Profile",
    p.limit as "Limit"
from
    dba_profiles p,
    dba_users u
where
    u.USERNAME='SYSMAN'
    and u.profile=p.profile
    and p.resource_name='PASSWORD_LIFE_TIME'
;

It will give you the name of the profile and the amount of time (in days) after which the password must be changed.

You can remove the password life time with the following:

alter profile "<PROFILE NAME>" limit password_life_time unlimited;

EDIT: "Locked(TIMED)" means the account has been locked because a wrong password has been entered to many time. It the password would have expired, the status would be "EXPIRED(GRACE)".

If Grid Control doesn't have the good password, you can modify the configuration using the following documentation: http://download.oracle.com/docs/cd/E11857_01/em.111/e16790/repository.htm#i1029558 (for OEM 11gR1).

If you are using Oracle with EM Console on Windows, your SYSMAN account will get locked periodically. This happens due to unordered start of DB Instance, DB Listener and EM Console. Correct order should be:

  1. Listener
  2. DB Instance
  3. EM Console

In case if you have your SYSMAN account locked, do following:

  • To confirm the account is locked:

    select account_status from dba_users where username='SYSMAN';

  • Shutdown EM Console service.

  • Unlock the SYSMAN account (if you don't know the password for SYSMAN, it may be good time to assign it yourself):

    alter user SYSMAN [identified by PWD] account unlock;

  • Start regedit to put correct order of Oracle services startup.

  • In regedit find
    My Computer/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/*<OracleDB Instance Service name>*
  • Create new Multi-string value named "DependOnService" and put name of your the depends on.
  • Find
    My Computer/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/*<EM Console Service name>*

  • Create new Multi-string value named "DependOnService" and put name of your the EM Console serves.


NOTE: Exact names of Oracle services can be obtained from Windows Services Management Console.

You should reset SYSMAN password in EM Console files, the easiest way would be running following command:

emctl setpasswd dbconsole


*NOTE: Enter SYSMAN password (PWD) when prompted. You may also need to set ORACLE_SID before running emctl.*

Now start the EM Console service and see if it works. Reboot the server to make sure everything still operates normally.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a dba.stackexchange
scroll top