--//给用户授予权限
grant connect,resource to test;
--//删除表空间
drop tablespace test_temp including CONTENTS and datafiles;
--//修改用户密码
alter user test identified by new_password;
--//删除用户
drop user 用户名 cascade; --//执行该语句请小心,会级联删除该用户下所有对象。
--//给用户分配权限
SQL> grant connect to test_user;
SQL> grant resource to test_user;
SQL> grant create view to test_user;
SQL> GRANT DEBUG CONNECT SESSION TO test_user;
SQL> GRANT DEBUG ANY PROCEDURE TO test_user;
实例如下:
数据库用户的创建、权限的分配
数据库安装完成后,有两个系统级的用户:
1、system 默认密码为:manager
2、sys 默认密码为:change_on_install
在安装的数据库目录中找到\oracle\product\9.2\bin 中的sqlplus程序,运行:./sqlplussystem/manager@ora9i
用system用户创建自己的用户、权限;sql语句如下:
1、创建用户:
create user username identified by pwd default tablespace users Temporary TABLESPACE Temp;
2、用户授权
grant connect,resource,dba to business;
3、提交
commit;
取消
评论