oracle默认密码有效期为180天,所以要定时修改或者直接设置为不限制时间
首先启动sqlplus
输入用户名:sqlplus / as sysdba密码空缺
查看密码生存周期:
select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';
修改为不限制并提交修改:
alter profile default limit password_life_time unlimited;
commit;
再次查看是否修改成功,显示为unlimited即可。
修改完成后过期的密码仍需要修改。
如果用户被锁定,记得加上SQL> alter user dbsnmp account unlock;
User altered.
然后修改密码
SQL> alter user dbsnmp identified by dbsnmp;
User altered.
现在就可以用用户名:dbsnmp 密码:dbsnmp登录了。
附oracle默认用户名/密码表
Username | Password | Description | See Also |
CTXSYS | CTXSYS | The Oracle Text account | Oracle Text Reference |
DBSNMP | DBSNMP | The account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the database | Oracle Enterprise Manager Grid Control Installation and Basic Configuration |
LBACSYS | LBACSYS | The Oracle Label Security administrator account | Oracle Label Security Administrator's Guide |
MDDATA | MDDATA | The schema used by Oracle Spatial for storing Geocoder and router data | Oracle Spatial User's Guide and Reference |
MDSYS | MDSYS | The Oracle Spatial and Oracle interMedia Locator administrator account | Oracle Spatial User's Guide and Reference |
DMSYS | DMSYS | The Oracle Data Mining account. | Oracle Data Mining Administrator's Guide Oracle Data Mining Concepts |
OLAPSYS | MANAGER | The account used to create OLAP metadata structures. It owns the OLAP Catalog (CWMLite). | Oracle OLAP Application Developer's Guide |
ORDPLUGINS | ORDPLUGINS | The Oracle interMedia user. Plug-ins supplied by Oracle and third party format plug-ins are installed in this schema. | Oracle interMedia User's Guide |
ORDSYS | ORDSYS | The Oracle interMedia administrator account | Oracle interMedia User's Guide |
OUTLN | OUTLN | The account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines. | Oracle Database Performance Tuning Guide |
SI_INFORMTN_SCHEMA | SI_INFORMTN_SCHEMA | The account that stores the information views for the SQL/MM Still Image Standard | Oracle interMedia User's Guide |
SYS | CHANGE_ON_INSTALL | The account used to perform database administration tasks | Oracle Database Administrator's Guide |
SYSMAN | CHANGE_ON_INSTALL | The account used to perform Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform these tasks. | Oracle Enterprise Manager Grid Control Installation and Basic Configuration |
SYSTEM | MANAGER | Another account used to perform database administration tasks. | Oracle Database Administrator's Guide |