首页 > 数据库技术 > 详细

Oracle操作

时间:2016-04-16 12:22:16      阅读:157      评论:0      收藏:0      [点我收藏+]

1、查询表空间地址:

select name from v$datafile;

2、创建表空间:

create tablespace yysspace datafile ‘D:\APP\MIAO\ORADATA\ORCL\YYSSPACE.DBF’ size 500M autoextend on next 50m maxsize unlimited;

3、创建用户并且赋予空间

create user yys identified by yys default tablespace yysspace;

4、给用户赋权限

grant connect,resource to yys;

grant sysdba to yys;

  赋予用户导入导出权限

  grant imp_full_database to yys;grant exp_full_database to yys

  赋予用户创建表,查询,删除等操作权限

  grant create session,create any table,create any view,select any table,drop any table to yys;

5、允许窗口导入导出数据库备份文件*.dmp

导入:imp userid=yys/yys full=y file=f:/yys.dmp

导出:exp userid=yys/yys full=y file=f:/test.dmp

Oracle操作

原文:http://www.cnblogs.com/gm007/p/5397952.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!