1、開(kāi)始—》運(yùn)行—》cmd,然后輸入sqlplus / as sysdba;連上數(shù)據(jù)庫(kù);
2、刪除用戶(hù):在dos窗口輸入drop user eqm cascade;
3、刪除tablespace:在dos窗口輸入DROP TABLESPACE EQM INCLUDING CONTENTS AND DATAFILES;如果報(bào)錯(cuò)說(shuō)有表還在使用此表空間,查出那些表然后刪除,查詢(xún)方法select distinct owner,segment_name, segment_type from dba_extents where tablespace_name='EQM';
4、新建表空間:
create tablespace eqm logging
datafile 'D:oracleproduct10.2.0oradataEQM.DBF'
size 4096m
autoextend on
next 150m maxsize 20480m
extent management local;
5、新建用戶(hù)
create user eqm identified by eqm default tablespace eqm;
6、給用戶(hù)授予權(quán)限
Grant dba to eqm;
更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄