- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
如何从oracle的dmp文件中还原数据(How do I restore data from the DMP file in oracle)
如何从oracle的dmp文件中还原数据(How do I restore data from the DMP file in oracle)
xuehongliang by 12 八月, 2007 16: 27
最近用到从oracle的dmp文件中还原数据
由于没有这方面的资料, 在网上搜集了一些, 相信有以下这些资料, 我们可以成功地将dmp文件用命令行的方式还原回去
在这里我用的是oracle10g的版本, 我的机器是512内存的, 运行oracle的web管理程序有一些困难, 所以我选择通过命令行的方式.
以下我的安装完成后, oracle给出的报告
enterprise manager database, url (orcl).
http: / / localhost: 1158 /.
数据库配置文件已经安装到
e: oracleproduct10.2.0.
同时其他选定的安装组件也已经安装到
e: oracleproduct10.2.0db _ 1.
url 为 isql * plus:
http: / / netherlands / isqlplus localhost.
isql dba url 为 * plus:
http: / / localhost: netherlands / isqlplus / dba
下面我们来看一看如何来完成这一任务
第一, 启动服务 (如果数据库处于启动状态, 那么略过这一步)
打开命令行执行以下语句
oracleserviceorcl net start
oracleoradb10g _ home2tnslistener net start
net start oracleoradb10g _ home2isql more
以上方式是在windows服务中启动服务, 当windows服务不能启动数据库实例的时候, 应用以下的语句
set oracle sid = orcl _
yes orcl oradim - startup
sqlplus internal oracle
startup
第二清理以前还原过的痕迹, 如果我们在数据库曾经还原过, 我们先来清理一下, 痕迹.
/ / / / / / / / / / / / / / 删除用户
drop user xxxx series;
/ / / / / / / / / / / / / / 删除表空间
drop tablespace xxxx.
/ / / / / / / / / / / / / / 删除数据库文件
e: xxxxxx.dbf
第三, 接下来, 准备工作做好后, 我们就可以开始还原了
/ / / / / / / / / / / / / / 创建用户
create user 用户名 identified by 密码 default tablespace users temporary tablespace temp
/ / / / / / / / / / / / / / 给予用户权限
grant connect, resource, dba to xxxx
/ / / / / / / / 创建表空间, 并指定文件名, 和大小
create smallfile tablespace xxxx datafile oradataorclxxxx.dbf e:
size a
a autoextend there.
maxsize unlimited
logging extent management local auto segment space management
/ / / / / / / / / / / / / / 执行给予权限的脚本grant.txt, 将权限给予刚才创建的用户
/ / / / / / / / / / / / / / 给予权限
grant create user alter user, drop user, create any view.
on any view, experiment _ full _ database, imp _ full _ database.
dba, connect, resource, create session to xxxx
/ / / / / / / / 开始导入 (完全导入) file: dmp文件所在的位置.
Ignore: does not import the table because some tables already exist.
Add ignore=y at the back. Specify the log file log=e:log.txt
Imp, user/pass@orcl, full=y, file=e:xxx.dmp
您可能关注的文档
- 国学知识竞赛试题(Guoxue knowledge contest).doc
- 国内大事(the affairs of state).doc
- 国家aaaa级风景区(National AAAA class scenic spot).doc
- 国学网站(Sinology website).doc
- 国学必读书目(Sinology reading list).doc
- 国学知识(Sinology knowledge).doc
- 国家分合交替之谜(The mystery of national division and alternation).doc
- 国家图书馆打造数字化图书馆(National Library to build digital library).doc
- 国家秘书考试(三级)复习资料——商务沟通(National secretarial examination (level three) review material -- business communication).doc
- 国家旅游局2011年公布的5a级景区名称及位置(The name and location of 5A class scenic spots released by the National Tourism Administration in 2011).doc
- 如何从小培养孩子的竞争力(How to cultivate children's competitive ability from childhood).doc
- 如何优化代码,让蜘蛛喜欢你的网站(How to optimize the code so that spiders like your site).doc
- 如何优化基因(How to optimize genes).doc
- 如何使pc电脑录音室最佳化(How to optimize the PC computer studio).doc
- 如何使初中课堂快乐起来(How to make junior high school class happy).doc
- 如何使小孩健康(How to make a child healthy).doc
- 如何使用好均衡器(How to use a good equalizer).doc
- 如何使用绣花绷内花边插入技术(How to use embroidery stretch inner lace insertion technique).doc
- 好自然科技有限公司直击水家电市场商务机领域的空白(Good natural science and Technology Co., Ltd. watch the water appliances market, business machine area blank).doc
- 如何使用香水(How to use perfume).doc
文档评论(0)