ORACLE9I创建用户

来源:互联网 发布:使用滴滴软件打车 编辑:程序博客网 时间:2024/05/17 04:18

安装Oracle9i之后,以system登陆:

SQL> create user chenzixine identified by hust;    //回车

用户已创建

SQL> grant connect,resource to chenzixine;

授权成功。

注:chenzixine为用户名,hust为密码。

以上的创建用户过程可以使用户的表中没有了系统自动产生的 n 多临时表。

----------------------------------

CPI:

1 创建用户
create user userName identified by password;
创建用户 userName,密码为 password

2 给用户授权

grant dba to userName;            --授予DBA权限
grant unlimited tablespace to userName;   --授予不限制的表空间
grant select any table to userName;      --授予查询任何表
grant select any dictionary to userName;   --授予 查询 任何字典

原创粉丝点击