校长的博客 -- 凡事包容,凡事相信,凡事盼望,凡事忍耐。http://blog.yesky.com/Blog/eric1945/复制地址

安能摧眉折腰事权贵,使我不得开心颜!

控制面板
日历
<2008年8月>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456
留言簿(9)
文章分类
文章档案

Exp命令估计是一个oracleDBA 职业生涯中用得最多的命令之一。

使用当中,常常出现一个比较“经典”的问题:

Exp一个表的时候,系统提示exp-00003 错误!

$ oerr exp 00003

00003, 00000, "no storage definition found for segment(%lu, %lu)"

// *Cause:  Export could not find the storage definitions for a cluster,

//          index, or table.

// *Action: Record the accompanying messages and report this as an Export

//          internal error to customer support.

 

造成以上问题原因比较多,但最常见的有以下两种:

1、  在出问题的表上,有一些对象的owner不是当前用户。(估计是两个用户权限差异引起的)

如一个索引,是system用户创建的。可以用类似下面的SQL来检查:

select a.owner,a.index_name from dba_indexes a where a.table_name=‘xxx’;

如果的确有上述情况,可以先drop掉再exp。

 

2、  用9205以前的版本导出其后版本的表,且此表中有带LOB字段时,也会出现exp-00003错误。

解决方法是:

更改数据库服务器端的oracle系统视图EXU9TNE的定义,

该视图定义为: $cat $ORACLE_HOME/rdbms/admin/catexp.sql

CREATE OR REPLACE VIEW EXU9TNE
(tsno, fileno, blockno, length)
AS
SELECT  ts#, segfile#, segblock#, length
        FROM    sys.uet$
        WHERE   ext# = 1

 

以sys用户登录数据库服务器重新建立该视图:

CREATE OR REPLACE VIEW EXU9TNE
(tsno, fileno, blockno, length)
AS
SELECT  ts#, segfile#, segblock#, length
FROM    sys.uet$
WHERE   ext# = 1
UNION ALL select * from sys.exu9tneb

 

PS:不要随意改动Oracle系统视图,执行完后,应立刻恢复。切记!!

 

*********************************************************************

附:metalink文档

 

Subject: Getting EXP-00003 Errors While Exporting a Transport Set to Create the .dmp File

  Doc ID: Note:316215.1 Type: PROBLEM

  Last Revision Date: 11-JUL-2005 Status: MODERATED

 

Applies to:

Portal - Version: 9.0.2 to 9.0.4

This problem can occur on any platform.

 

 

Symptoms

You are using Portal Export/Import utilities under the following scenario:

 

Your Portal is installed in a custom database version 9.2.0.5 or higher.

You are running the export script from your transport set from the MIDTIER_HOME.

The export log file generated by the export from the command line shows the following error:

EXP-00003: no storage definition found for segment(%lu, %lu)

 

Note: The export log file is created in the same directory where you run the export script.

 

Cause

The error is caused by the following database bug:

 

Bug 3784697 EXPORT OF LOB FROM 9205 WITH PRE-9205 EXP GIVES EXP-3 (NO STORAGE DEF FOUND)

 

Solution

Workaround 1

 

Run the export script from the DATABASE_HOME.

 

Workaround 2

 

Apply the Workaround from the following note to run the export script from the MIDTIER_HOME:

 

Note 274076.1 EXP-00003 When Exporting From 9.2.0.5.0 or 10.1.0.2.0 with a Pre-9.2.0.5.0 Export Utility

 

References

Bug 3784697 - Export Of Lob From 9205 With Pre-9205 Exp Gives Exp-3 (No Storage Def Found)

Note 274076.1 - EXP-00003 When Exporting From 9.2.0.5.0 or any Higher Release with a Pre-9.2.0.5.0 Export Client

 

 

Errors

EXP-3 "no storage definition found for segment(%lu, %lu)"v


作者:校长 阅读() 评论()  编辑 发表于:2007-07-19 10:26
相关内容
文章评论

  • # re: 关于EXP-00003 错误
  • 心理测试 
    一个很准的心理测试:按下面的步骤一步一步做,不要作弊,否则你的希望会落空(用3分钟完成)发送这个留言的人说:她的愿望在十分钟内变成现实,记住:不要有欺骗行为。这个戏的结果非常有趣,注意:按顺序往下读,不能跳跃地往下读(只要花3分钟,值得一试)首先拿一枝笔和一张纸,当你在作出选择时,如果是人物,保证是你认识的,无论是数字或人物,必须是123;第1直觉,每次向下移动一行――记住:不要跳行往下读! 





    一、首先,在一列中写下1到11的序号(即1、2、3、4、5、6、7、8、9、10、11) 





    二、在序号1和2的旁边,写下你所想的任意两个数字 





    三、在序号3和7的旁边,写下任意两个异性的名字。(注意:不要跳跃的向下看) 





    四、在序号4、5、6的旁边,写下朋友或亲戚的名字幕(不要有欺骗行为) 





    五、在序号8、9、10、11的旁边,写下4首歌的名字。 





    六、最後,许一个愿。 





    结果: 
    1. 你必须把这个游戏告诉给(序号2旁边写下的数字)个人。 
    2. 序号3是你所爱的人。 
    3. 序号7是你所喜欢的但不能与之相伴的人。 
    4. 序号4是你最关心的人。 
    5. 序号5是非常了解你的人。 
    6. 序号6是你重要的人。 
    7. 序号8的歌适合序号3的人。 
    8. 序号9的歌适合序号7的人。 
    9. 序号10的歌最能代表你的想法。 
    10. 序号11的歌是你对生活的感受。 
    读完这个结果之後,在一个小时之内转载到2个论坛,如果照此做,了你的许愿就会变成现实,否则,就会事与愿违
    天极博友 | 2007-09-19 11:41
  • # re: 关于EXP-00003 错误
  • http://www.110wf.com
    www.110wf.com | 2008-01-25 00:54

    发表评论
    标题 *  
    姓名 *  
    内容 *  
       验证码: *       
           
    版权声明:天极是本Blog托管服务提供商。如本文牵涉版权问题,天极不承担相关责任,请版权拥有者直接与文章作者联系解决。
    Powered by:

    Copyright © 校长