oracle建立表空间用户,导入导出命令

<表空间的创建>

----以下在sqlplus下执行

--创建表空间

create tablespace agri datafile'D:\kfruanjian\bkj\agri.dbf' size 200M

autoextend on next 30M

maxsize unlimited;

--创建用户

create user hmsb identified by hmsb

default tablespace hmsb 

temporary tablespace temp;

--给用户付权限

grant dba to hmsb  资源 or 连接


命令:sqlplus  hmsb/hmsb

      show  user


      exit  

删除表空间及数据文件

drop tablespace hmsb including contents and datafiles;


---以下在命令行窗口执行

---导入数据

imp  agri/agri   file='C:\Users\Administrator\Desktop\省厅工作相关\db\agri.dmp'    full=y  ignore=y



---导出数据

exp  rgsbfx/rgsbfx

exp proj2/proj2@JSZX file=E:\proj2.dmp full=y


你可能感兴趣的:(oracle,user,tablespace)