12
返回列表 发新帖
楼主: snowhite2000

oracle export: 请有环境的朋友测试一下

[复制链接]
论坛徽章:
12
ITPUB元老
日期:2005-02-28 12:57:00福特
日期:2013-08-12 09:40:06迷宫蛋
日期:2013-06-03 13:48:41生肖徽章2007版:鸡
日期:2009-11-11 14:03:05BLOG每日发帖之星
日期:2009-06-17 01:01:03BLOG每日发帖之星
日期:2009-06-16 01:01:04生肖徽章2007版:龙
日期:2009-01-13 11:06:03参与2007年甲骨文全球大会(中国上海)纪念
日期:2007-08-06 15:19:02ITPUB北京香山2007年会纪念徽章
日期:2007-01-24 14:35:02会员2006贡献徽章
日期:2006-04-17 13:46:34
11#
发表于 2001-11-5 14:49 | 只看该作者
环境同上

倒出:
$ exp lyf/lyf@ora8i file=lyf.dmp owner=lyf rows=y compress=n

Export: Release 7.3.4.0.0 - Production on Mon Nov  5 13:31:56 2001

Copyright (c) Oracle Corporation 1979, 1996.  All rights reserved.


Connected to: Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
Export done in ZHS16CGB231280 character set

About to export specified users ...
About to export LYF's objects ...
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export LYF's tables via Conventional Path ...
. . exporting table                        MQ_BILL       2114 rows exported
. . exporting table                      MQ_BRANCH          2 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting referential integrity constraints
. exporting triggers
. exporting posttables actions
Export terminated successfully without warnings.


倒入:
$ imp system/manager@ora7 file=lyf.dmp fromuser=lyf touser=system

Import: Release 7.3.4.0.0 - Production on Mon Nov  5 13:34:19 2001

Copyright (c) Oracle Corporation 1979, 1996.  All rights reserved.


Connected to: Oracle7 Server Release 7.3.4.0.0 - Production
PL/SQL Release 2.3.4.0.0 - Production

Export file created by EXPORT:V07.03.04 via conventional path

Warning: the objects were exported by LYF, not by you

. . importing table                      "MQ_BILL"       2114 rows imported
. . importing table                    "MQ_BRANCH"          2 rows imported
Import terminated successfully without warnings

验证:
sqlplus system/manager@ora7
SQL> select count(*) from mq_bill;

  COUNT(*)
----------
      2114

SQL> select count(*) from mq_branch;
  COUNT(*)
----------
         2

结论:用户级别的倒入/倒出也可以

使用道具 举报

回复
论坛徽章:
126
咸鸭蛋
日期:2011-08-22 23:47:37优秀写手
日期:2013-12-18 09:29:152014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:142015年新春福章
日期:2015-03-04 14:19:11
12#
 楼主| 发表于 2001-11-5 23:38 | 只看该作者
thanks, zhyuh.

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
13#
发表于 2001-11-6 00:11 | 只看该作者
1) Always use a version of the EXPORT utility that is equal to the
   lowest version of either the source or the target database.
2) Always use a version of the IMPORT utility that is equal to the
   version of the target database.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表