Home  >  Article  >  Database  >  oracle数据库删除和导入方法

oracle数据库删除和导入方法

WBOY
WBOYOriginal
2016-06-07 16:22:461043browse

1、开始》运行》cmd,然后输入sqlplus / as sysdba;连上数据库; 2、删除用户:在dos窗口输入drop user eqm cascade; 3、删除tablespace:在dos窗口输入DROP TABLESPACE EQM INCLUDING CONTENTS AND DATAFILES;如果报错说有表还在使用此表空间,查出那些表然

   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;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn