1、开始—》运行—》cmd,然后输入sqlplus / as sysdba;连上数据库;
2、删除用户:在dos窗口输入drop user eqm cascade;
3、删除tablespace:在dos窗口输入DROP TABLESPACE EQM INCLUDING CONTENTS AND DATAFILES;如果报错说有表还在使用此表空间,查出那些表然后删除,查询方法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、新建用户
create user eqm identified by eqm default tablespace eqm;
6、给用户授予权限
Grant dba to eqm;
时间: 2024-09-22 06:01:51