create tablespace test datafile 'E:\OracleDataBaseFile\database\tablespace\test.dbf' size 50m autoextend on;
创建一个新用户,并指向表空间(ps:带有特殊字符的密码需要加上"",另外需要注意密码大小问题)
create user test identified by "123" default tablespace test;
给新创建的用户赋予权限
grant dba to test;-- 给用户赋予所有权限、connect是赋予连接数据库的权限,resource 是赋予用户只可以创建实体但是没有创建数据结构的权限。
grant create session to 用户名--这个是给用户赋予登录的权限。
grant create table to 用户名 --给用户赋予表操作的权限
grant unlimited tablespace to 用户名 --给用户赋予表空间操作的权限
grant select any table to 用户名 --给该用户赋予访问任务表的权限 同理可以赋予update 和delete 的