oracle 建表空间用户及赋权

前端之家收集整理的这篇文章主要介绍了oracle 建表空间用户及赋权前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. --ORACLE建表空间用户及赋权
  1. --建表空间
  2. CREATE tablespace weijl
  3. datafile "E:\APP\ADMINISTRATOR\ORACLE\ORCL\weijl.DBF"
  4. size 10M
  5. autoextend on next 5M;
  6.  
  7. --删除表空间
  8. drop tablespace weijl including contents and datafiles;
  9.  
  10. --建用户
  11. CREATE USER weijl identified by weijl
  12. default tablespace weijl
  13. temporary tablespace temp;
  14.  
  15. --赋权
  16. grand dba,resource,connect to weijl;
  17.  
  18. --删除用户
  19. drop user weijl;

  1. --大象数据库备份还原
  2. --cd postgresql/bin目录下,备份数据库
  3. pg_dump -h localhost -U postgresql puc > C:/backup-2017.bak


ORACLE导入导出语句:

  1. exp hytera/hytera@192.168.10.78 file=D:\2017-08-17.dmp
  2.  
  3. imp hytera/hytera@192.168.10.200 file=D:\2017-08-17.dmp fromuser=hytera touser=hytera full=y

猜你在找的Oracle相关文章