oracle数据库系统账号密码oracle(1)验证机制以及用户创建、修改

oracle(1)验证机制以及用户创建、修改

 

数据库的三种验证机制:

 操作系统验证

 密码文件验证

 数据库验证

注意:sys用户只有操作系统验证、密码文件验证

linux下oracle的启动过程

lsnrctl start

//sqlplus sys/oracle as sysdba

sqlplus /nolog

conn sys/oracle as sysdba

startup  www.2cto.com  

window下oracle的启动过程

lsnrctl start

默认进行操作系统验证,验证成功就登录不再进行密码文件验证了

密码文件验证中的文件的路径 D:\oracle\product\10.2.0\db_1\database\PWD+实例名.ora

 

sys密码恢复 可以先把PWDorcl.ora删了 在用命令生成

orapwd file=D:\oracle\product\10.2.0\db_1\database\PWDorcl.ora password=123456 entries=10

select * from v$pwfile_users;

普通用户的密码修改

alter user scott identified by tiger

**oracle 实例没有启动 通过操作系统验证也能登录

 

创建用户

 create User 用户名

 identified by 密码

 default tablespace 默认表空间

 Temporary tablespace 临时表空间

 Quota 整数 K|M|Limited on 表空间

PS:

create user kyle

 identified by kyle

 default tablespace kylespace

 Temporary tablespace Temp

 Quota 50M on kylespace

  www.2cto.com  

注意:下面不能把unlimited 用在Temp上(因为Temp是临时表空间,用来表排序之类才用到)

 create user kyle

 identified by kyle

 default taboracle账号lespace kylespace

 Temporary tablespace Temp

 Quota unlimited on Temp

 

修改

 alter user kyle

 identified by kyle

 default tablespace kylespace

 Temporary tablespace Temp

 Quota unlimited on kylespace

 

 

作者 kyle8525_nsn

此条目发表在oracle metalink账号分类目录,贴了, 标签。将固定链接加入收藏夹。