Oracle用户锁定等操作
2011-11-10 09:23
495 查看
Change Oracle passwords, expire, and lock unnecessary users
http://www.dba-oracle.com/t_passwords_locking_changing_expiring.htm
There are many users on a full installation of Oracle, most of which you probably won't need. To lock an Oracle user account, you can use the following command:
alter user username account lock;
To unlock the user, simply replace 'lock' with 'unlock'.
Oracle comes with a few default accounts that should never be locked or dropped. These include: SYS, SYSTEM, SYSMAN (Oracle 10g), OUTLN(can't?).
However, you do want always to change the password for these users. The default password for SYS is change_on_install. It is important that you follow these directions. To change the password for a user:
alter user username identified by new_password;
For non-critical users, you can always lock and expire the account. We can change the password for, lock, and expire the account CTXSYS all at once:
alter user ctxsys identified by 0bscur3 account lock password expire;
This will ensure that CTXSYS password has been changed from the self evident default of CTXSYS; on a successful login the password will have to be changed (because it is expired); and because it is locked, he account can't be logged into under any circumstances.
To aid you in this task, here is a list of users that come with a full database installation that are safe to expire and lock if you are not using their functionality:
AURORA$ORB$UNAUTHENTICATED - Jserver user
BI - demo user
CTXSYS - Oracle Text/interMedia administrator
DBSNMP - Oracle Intelligent Agent
DSSYS - Dynamic Services and Syndication Server
HR - demo user
MDSYS - Spatial administrator
ORDSYS/ORDPLUGIN - Object Relational Data user
OE - demo user
PERFSTAT - Statspack administrative user
SCOTT - demo user
SH - demo user
TRACESVR - Oracle trace server
WKSYS - Ultrasearch administrator
The best rule of thumb is to install only the features you need when you install Oracle. If you are not going to use Spatial, interMedia, or UltraSearch, don't install them. Then you will not have to worry about those three users.
http://www.dba-oracle.com/t_passwords_locking_changing_expiring.htm
There are many users on a full installation of Oracle, most of which you probably won't need. To lock an Oracle user account, you can use the following command:
alter user username account lock;
To unlock the user, simply replace 'lock' with 'unlock'.
Oracle comes with a few default accounts that should never be locked or dropped. These include: SYS, SYSTEM, SYSMAN (Oracle 10g), OUTLN(can't?).
However, you do want always to change the password for these users. The default password for SYS is change_on_install. It is important that you follow these directions. To change the password for a user:
alter user username identified by new_password;
For non-critical users, you can always lock and expire the account. We can change the password for, lock, and expire the account CTXSYS all at once:
alter user ctxsys identified by 0bscur3 account lock password expire;
This will ensure that CTXSYS password has been changed from the self evident default of CTXSYS; on a successful login the password will have to be changed (because it is expired); and because it is locked, he account can't be logged into under any circumstances.
To aid you in this task, here is a list of users that come with a full database installation that are safe to expire and lock if you are not using their functionality:
AURORA$ORB$UNAUTHENTICATED - Jserver user
BI - demo user
CTXSYS - Oracle Text/interMedia administrator
DBSNMP - Oracle Intelligent Agent
DSSYS - Dynamic Services and Syndication Server
HR - demo user
MDSYS - Spatial administrator
ORDSYS/ORDPLUGIN - Object Relational Data user
OE - demo user
PERFSTAT - Statspack administrative user
SCOTT - demo user
SH - demo user
TRACESVR - Oracle trace server
WKSYS - Ultrasearch administrator
The best rule of thumb is to install only the features you need when you install Oracle. If you are not going to use Spatial, interMedia, or UltraSearch, don't install them. Then you will not have to worry about those three users.
相关文章推荐
- ORACLE--查询当前连接的用户信息及操作的SQL语句
- Linux环境中Oracle数据导入与导出备份创建用户操作
- Oracle操作用户
- oracle 数据库的基本操作(表空间、表、用户的创建及查询)
- Oracle创建用户,解锁用户,赋予用户权限等操作的设置
- ORACLE 用户锁定问题
- Oracle PL\SQL操作(六)用户和角色
- TimesTen更改CacheGroup管理用户ORACLE结束和TT结束password【TimesTen操作和维修基地】
- oracle对表进行增删查改的操作,以及对用户的一些简单的操作
- Oracle 用户概念与基本操作
- Oracle忘记密码,用户被锁定该怎么办
- oracle-日常小计——连接不上oracle (用户名密码问题)以及用户被锁定解锁
- oracle 数据库普通用户下的基本操作(1)
- oracle创建用户与权限操作(oracle学习笔记一)
- oracle 新建用户,删除用户操作
- Oracle用户锁定解锁
- oracle 用户锁定和解锁的方法
- ORACLE查询当前连接的用户信息及操作的SQL语句
- Oracle用户被锁定解决方法
- oracle用户被锁定