用户
1连接oracle数据库,需要用户账户和口令,防止非授权用户的访问,确保数据库的安全.
创建用户
语法
create user user_name
identified by password

【default tablespace default_tablespace |
temporary tablespace temp_space |
profile profile
quota 【number K | M 】 | unlimited on tablespace
| password expire
| account lock | unlock】;

user_name:用户名
password:为创建的用户指定口令
default_tablesPace:为创建的用户指定默认表空间
temp_space:为创建的用户指定临时表空间
profile:指定资源文件,该文件必须在创建用户之前进行创建
quota 【number K | M | unlimited on tablespace :指定能使用多大的表空间
password expire:这个用户在每一次连接数据库时必须更换口令
account lock | unlock:设置用户状态,只有解锁状态的用户才能使用。默认是unlock。

举例
create user zhou6–用户名
identified by zhou6–口令
default tablespace users–默认表空间
temporary tablespace temp–临时表空间
/–能使用默认表空间的大小为10M/
quota 10M on users;
这里写图片描述

posted on 2017-05-25 15:06  2637282556  阅读(70)  评论(0编辑  收藏  举报