登陆 sqlplus / as sysdba
接下来,我们看看您当前的数据库文件一般都是放在哪里的:
select name from v$datafile;
//创建表空间
create tablespace test
datafile 'E:\alia\workspace\oracle\ecom\test.dbf' size 50M
default storage(initial 500K
Next 500k
minextents 1
maxextents unlimited
pctincrease 0);
//创建用户
create user jxclub identified by jxclub default tablespace test;
//授权
grant resource,connect,dba to jxclub ;
//删除表空间
drop tablespace test including contents and datafiles
//删除用户
drop user jxclub cascade
//增加表空间
alter tablespace test add datafile 'E:\alia\workspace\oracle\ecom\addtest.dbf' size 200M
---------------------------------------
//创建用户
create user lxg identified by password
//给用户授权
grant dba to lxg;--授予DBA权限
grant unlimited tablespace to lxg;--授予不予限制的表空间
grant select any table to lxg;--授予查询任何表
grant select any dictionary to lxg;--授予查询任何字典
2、Oracle 表空间设置为自增长