起因:一个PC已经装了3个数据库,现开发人员要求再建一个测试数据库,想来想去,决定在开发数据库orcl中建立test表空间,test用户,导入测试用户his的数据文件。当测试完毕,drop掉test tablespace及datafile即可。
操作:
1, 导出his用户的数据:
>exp his/his@orcl file='E:orcldmp20100804.dmp' log='E:orcldmp20100804imp.log'
2, 创建test表空间:
SQL>create tablespace TEST datafile 'D:ORADATAORCLTEST01.DBF' size 26000M autoextend on next 50m maxsize unlimited;
3, 建test用户:
SQL>create user test identified by test default tablespace test temporary tablespace temp;
4, 赋予test用户权限:
SQL>grant connect,resource,dba to test;
5, 导入his用户数据:
以上就是本篇文章【网站建设市场分析/磁力猫搜索引擎入口官网】的全部内容了,欢迎阅览 ! 文章地址:http://ww.kub2b.com/news/6581.html
栏目首页
相关文章
动态
同类文章
热门文章
网站地图
返回首页 企库往资讯移动站 http://ww.kub2b.com/mobile/ , 查看更多