|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这种服务也提供了足够的监控功能来跟踪性能和使用情况,在问题发生时将发出通知并生成一定深度的分析报告。error|oracle|办理
【毛病情形】
[oracle@ccdevsvradmin]$expwmap/pass@jackeydb
Export:Release8.1.7.4.0-ProductiononFriOct811:28:372004
(c)Copyright2000OracleCorporation.Allrightsreserved.
Connectedto:Oracle9iRelease9.2.0.1.0-Production
JServerRelease9.2.0.1.0-Production
Enterarrayfetchbuffersize:4096>
Exportfile:expdat.dmp>host
(2)U(sers),or(3)T(ables):(2)U>u
Exportgrants(yes/no):yes>
Exporttabledata(yes/no):yes>
Compressextents(yes/no):yes>
ExportdoneinWE8ISO8859P1charactersetandUTF8NCHARcharacterset
serverusesZHS16GBKcharacterset(possiblecharsetconversion)
.exportingpre-schemaproceduralobjectsandactions
.exportingforeignfunctionlibrarynamesforuserWMAP
.exportingobjecttypedefinitionsforuserWMAP
AbouttoexportWMAPsobjects...
.exportingdatabaselinks
.exportingsequencenumbers
.exportingclusterdefinitions
.abouttoexportWMAPstablesviaConventionalPath...
EXP-00008:ORACLEerror904encountered
ORA-00904:"SPOLICY":invalididentifier
EXP-00000:Exportterminatedunsuccessfully
[oracle@ccdevsvradmin]$
【办理办法一】
BookmarkGotoEnd
fact:OracleServer-EnterpriseEdition
symptom:ORA-00904:Invalidcolumnname
symptom:EXP-00008:ORACLEerror%sencountered
cause:Thepackageismissing,invalidorcorrupt
fix:
HowtohandleORA-00904errorsonExport
========================================
Whenrunningfulldatabaseexportthefollowingerrorswillbereturned:
exp80user/passwordfull=yfile=D:DB-BackupORCLexpORCL.dmp
log=D:DB-BackupORCLexpORCL.logconsistent=ybuffer=40960000
EXP-00008:ORACLEerror904encountered
ORA-00904:invalidcolumnname
TogetacluewhathasforcetheseORA-00904message,followthefollowing
steps:
1.Connectasprivilegeduserandrunthefollowingcommandinsidean
SQLPLUSsession:
SQL>altersystemsetevents=904tracenameerrorstack;
--------------------------------Note------------------------------------
ThiseventwillworkstartingwithOracle8i.IfrunningaOracledatabase
versionbelowOracle8i,youllgetORA-02065errorsreturned,when
specifyingthisevent.InOracleversionsbelow8iyoullhavetoinsert
thefollowingentryintoINIT.ORA
event="904tracenameerrorstack"
--------------------------------------------------------------------------
2.RetrytheFULLexport.WhentheORA-00904occurs,atracefilewillbe
writtentothestoragelocationspecifiedbytheINIT.ORAparameter
user_dump_dest.AssoonastheORA-00904hasbeenreturnedtoyour
exportsession,youcanaborttheexportandexaminethetraceinformation.
3.Disableeventtracingbyrunningthefollowingcommand:
SQL>altersystemsetevents=904tracenameerrorstackoff;
OnOracleversionsbelow8.1.5returntheevententryfromINIT.ORA
4.Examinethetracefile:
***SESSIONID:(9.3)2001.11.21.15.28.00.494
***2001.11.21.15.28.00.494
ksedmp:internalorfatalerror
ORA-00904:invalidcolumnname
CurrentSQLstatementforthissession:
SELECTfname,fsize,maxextend,incFROMsys.exu8filWHEREtsid=:1
===========
a)aproblemwithobjectEXU8FILhasbeendetected
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Inthisexample,theresaproblemwiththeEXE8FILview.Toexamine,
whetherthisobjectexist,runthefollowingcommand:
SQL>selectowner,object_name,object_type,object_id,status
fromdba_objects
whereobject_name=EXU8FIL;
IftheproblemisontheEXU8FILobjectyousimplycanrecreatethe
objectbyrunningtheCATEXP.SQLscript.
b)aproblemwithobjectDBMS_JAVAorDBMS_JAVA_TEST
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ksedmp:internalorfatalerror
ORA-00904:invalidcolumnname
CurrentSQLstatementforthissession:
SELECTSYNNAM,DBMS_JAVA.LONGNAME(SYNNAM),DBMS_JAVA.LONGNAME(SYNTAB),...
OnsystemswheretheJavaServerhasbeeninstalledthetracefilecould
containinformationonafailingselectstatementonDBMS_JAVApackages.
ForreferenceonfixingerrorsrelatingtoDBMS_JAVA,pleasefollow
<Note:1017276.102>.
【办理办法二】
Ifthiserror(ORA-904invalidcolumnname)occursafterapplyingapatch,thiswouldprobablyfixtheproblem.
1.First,runCATEXPasINTERNAL.Thenretrytheexport.Oftentimesthiswillfixtheproblemandthenexportwillrunwithouterror.ThereasonbeingaproblemwithobjectEXU8FILviewhasbeendetected.
Toexamine,whetherthisobjectexist,runthefollowingcommand:
SQL>selectowner,object_name,object_type,object_id,status
fromdba_objects
whereobject_name=EXU8FIL;
IftheproblemisontheEXU8FILobjectyousimplycanrecreatetheobjectbyrunningtheCATEXP.SQLscript.
通过支付一定费用,客户可以得到优先的24/7支持,访问内容丰富的在线知识库和联系一个专门的技术负责经理。 |
|