create tablespace wm
datafile 'E:\SQL\oracle\oradata\wm.dbf' size 50M
default storage (initial 500K
next 500K
minextents 1
maxextents unlimited
pctincrease 0);----first 创建表空间wm
create user wmdb identified by wmdb default tablespace wm;---创建用户mysql
grant resource,connect to wmdb;----授予用户mysql权限
drop tablespace test including contents and datafiles;----删除表空间
drop user test cascade;---删除表空间
alter tablespace test add datafile 'E:\SQL\oracle\oradata\test1.dbf' size 200M;---更改表空间
create user statdba identified by password;---修改mysql用户密码
alter user statdba identified by statdba;----修改statdba用户密码
grant dba to mysql;--授予mysql DBA权限
grant unlimited tablespace to mysql;--授予mysql不限制的表空间
grant select any table to mysql;--授予mysql查询任何表
grant select any dictionary to mysql;
取消
评论