亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

How to Deinstall and Reinstall XML Database

系統 1896 0

Csdn 論壇的一個朋友發了貼,說是 exp 的時候報錯。錯誤信息如下:

EXP-00056:ORACLEerror4063encountered
ORA-04063:packagebody"XDB.DBMS_XDBUTIL_INT"haserrors
ORA-06508:PL/SQL:couldnotfindprogramunitbeingcalled:"XDB.DBMS_XDBUTIL_INT"
ORA-06512:atline1
EXP-00056:ORACLEerror4063encountered
ORA-04063:packagebody"XDB.DBMS_XDBUTIL_INT"haserrors
ORA-06508:PL/SQL:couldnotfindprogramunitbeingcalled:"XDB.DBMS_XDBUTIL_INT"
ORA-06512:atline1
EXP-00000:Exportterminatedunsuccessfully

一看又是 XDB.DBMS_XDBUTIL_INT 包的問題。 之前也看到過這個問題,也整理了篇文章來說明:

Oracle9iEXPXDB.DBMS_XDBUTIL_INTmustbedeclared
http://blog.csdn.net/tianlesoftware/archive/2010/04/17/5491811.aspx

樓主說這個對象是無效的,并且不能編譯。 看來就只能重新安裝了。在 metalink 上搜了一下。相關信息如下。


HowtoDeinstallandReinstallXMLDatabase(XDB)[ID243554.1]

Appliesto:

OracleServer-EnterpriseEdition-Version:9.2.0.1to10.2.0.5
OracleServer-PersonalEdition-Version:9.2.0.1to10.2.0.5
OracleServer-StandardEdition-Version:9.2.0.1to10.2.0.5
Informationinthisdocumentappliestoanyplatform.

Purpose

ThisarticleprovidesthestepstomanuallydeinstallandinstalltheXMLDatabasefeatureintoadatabasethatisversion9iR2through10grelease2.THISNOTEISNOTFOR11Gandabove.

WARNINGFORALLREADERS:IftheXMLDBfeaturesarecurrentlybeingutilizedandyouhaveexperiencedaninvalidXMLDBrepositoryorinstallation,point-in-timerecoverytoapointpriortowhentheproblemoccurredisrecommended.XDBshouldnotbereinstalledifthefeatureisbeingused.PleaseconfirmwhetherXDBisbeingusedinyourenvironmentpriortoattemptingreinstall.

Inaddition,thefollowingDBfeaturesalsouseXDB:OracleIntermediaEXIFmetadata,OracleGEORASTER,EXFSYS,OracleLocator

WARNINGFOR10gR2:Forversions10.2andnewer,ifXDBisinvalidthexdbrelod.sqlscriptshouldbeattemptedfirst.Reinstallationproceduresshouldonlybeperformedwhenxdbrelod.sqlwasnotsuccessfulinresolvingtheissue.

WARNINGFOR11G:ThisNoteisnotfor11g.

ScopeandApplication

ThisarticleisforDBA'sthatneedtoremove,installand/orreinstalltheXDBfeatureintoanexistingOracledatabase.
HowtoDeinstallandReinstallXMLDatabase(XDB)

XDBReloadProceduresfor10.2andabove.

SQL>conn/assysdba

SQL>ShutdownImmediate;

SQL>Startupupgrade;

SQL>@?/rdbms/admin/xdbrelod.sql

alternativelyxdbpatch.sqlcanberunbothxdbpatchandxdbrelodperformthesameactions.

SQL>ShutdownImmediate;

SQL>Startup

SQL>@?/rdbms/admin/utlrp.sql

Thenchecktheerrorconditionsthatnecessitatedthestepsinthefirstplace.Iftheerrorconditionisnotresolvedconsiderpointintimerecoverybacktobeforetheerrorstateexisted.Ifthatisnotanoptionproceedtoremovalandreinstallifonversion10.2andbelowandyouhavereadallthewarnings.

XDBSCHEMAREMOVALSTEPS:

WARNING:ThestepstoremovetheXMLDatabasefeature(XDBschema)willcompletelyremovetheXDBrepositoryincludinganyuserdefinedinformationcontainedwithinit.
Therefore,ifthereareanyregisteredschemasorXMLDatabaseitemscreated,youwillberequiredtorecreateallofyouruserdefinedstructures,dataandre-registerallschemaspreviouslyregistered.

IfyouarerunningOracleApplicationswithiSetupseeNOTE:402785.1linkedbelow.

WARNING:Ifyouareondatabaserelease10.1.xor10.2.xtheXDBFeatureisMandatoryinordertouseanyofthememberfunctionsoftheXMLTYPE.Thisistrueevenifyouarenotusingtherepository,orregisteredschemaaspectsoftheXDBfeature.

WARNING:Thisisnotfor11g.

1.Shutdownandrestartthedatabase.
2.Connectassysdbaandrunthecatnoqm.sqlscript.Maintainaspoolofthe
scriptrunning:

UNIX:$ORACLE_HOME/rdbms/adminsubdirectory
WINDOWS:$ORACLE_HOME/rdbms/adminsubdirectory


ForExample:

SQL>setechoon
SQL>spoolxdb_removal.log
SQL>@?/rdbms/admin/catnoqm.sql

3.Modifytheinit.orafileorspfiletoincludethefollowingminimumstopreparetheDBforreinstallingtheXDBschema:

shared_pool_size=150M
java_pool_size=150M

4.TurnonAUTOEXTENDontheXDBtablespace.
Ifyoudonotwanttodothis,makesureyoutargetatablespacewithat
least
.100MBoffreespacefornon-UTF8DB
.150MBoffreespaceforanAL32UTF8DB

5.Shutdownthedatabaseimmediate,andstartupthedatabasenormal

NOTE:FailuretorestartthedatabaseatthisstepcancauseXDBcatqm.sqlinstallationtofailwithaninternalerrorsimilartothefollowing:ORA-7445[qmr_hdl_copy()+48]


XDBSCHEMAINSTALLSTEPS:

1.Connectassysdbaandrunthecatqm.sqlscript.Maintainaspoolofthe
scriptrunning:

UNIX:$ORACLE_HOME/rdbms/adminsubdirectory
WINDOWS:$ORACLE_HOME/rdbms/adminsubdirectory

Thecatqm.sqlscriptrequiresthefollowingparametersbepassedtoitwhen
run:
A.XDBuserpassword
B.XDBuserdefaulttablespace(Youcanuseanytablespaceotherthansystemundoandtemp.Thistablespacehastoexistpriortorunningthescript.)
C.XDBusertemporarytablespace
Thereforethesyntaxtoruncatqm.sqlwillbe:
SQL>catqm.sqlABC

ForExample:
SQL>setechoon
SQL>spoolxdb_install.log
SQL>@?/rdbms/admin/catqm.sqlXDBXDBTEMP

TheFollowingStepisforRelease9.2.xONLYskiptostep3ifrunning10.1.xorabove

2.ReconnecttoSYSagainandrunthefollowingtoloadtheXDBjavalibrary.

SQL>@?/rdbms/admin/catxdbj.sql

NOTE:InordertoloadtheXDBjavalibrariesincatxdbj.sql,youmustfirsthaveavalidJavaVirtualMachineinstallationintheDB(JVM)andavalidXDK.
Also,makesurethatthedatabaseisstartedwithOracle9iRelease2(9.2.0)compatibilityorhigherfordatabaseversion9.2

3.Ifthefollowinglineisnotalreadyapartofthedatabasesystemparameters(init.ora/spfile).
NOTE: PLEASEREPLACE,instanceid1,2etcwithyouractualvalues

a.Non-RAC
dispatchers="(PROTOCOL=TCP)(SERVICE=<SID>XDB)"
b.RAC
instanceid1.dispatchers="(PROTOCOL=TCP)(SERVICE=<SID>XDB)"
instanceid2.dispatchers="(PROTOCOL=TCP)(SERVICE=<SID>XDB)"
etc...
c.IfyouarenotusingthedefaultListenerensureyouhavesetLOCAL_LISTENERinthe(init.ora/spfile)
asprescribedforRAC/NON-RACinstancesortheendpointswillnotregister.

4.CheckforanyinvalidXDBownedobjects:

SQL>selectcount(*)fromdba_objects whereowner='XDB'andstatus='INVALID';
COUNT(*)
----------
0

5.CheckDBA_REGISTRYforXDBstatus:

SQL>selectcomp_name,status,versionfromDBA_REGISTRYwherecomp_name='OracleXMLDatabase'

Theresultsshouldindicatethecorrectversionandpatchinavalidstatus.

6.RestartdatabaseandlistenertoenableOracleXMLDBprotocolaccess.

NOTE:

Ifforanyreasonthecatqm.sqlscriptfailsyoucanrepeatthesteps.HoweverdoingsoMayresultin:

ORA-04098:trigger'SYS.XDB_INSTALLATION_TRIGGER'isinvalidandfailedre-validation

Ifthisoccursfollowthestepsinarticle:

NOTE:331378.1 -Runningcatqm.sqlLeadstoORA-4098Trigger'SYS.XDB_INSTALLATION_TRIGGER'isInvalid

Click here tolearnaboutXDB/XMLtrainingfromOracleUniversity.

References

NOTE:402785.1 -iSetupdependencywithDeinstallandReinstallofXMLDB
NOTE:558834.1 -HowToRe-registerXMLSchemasAfterXDBHasBeenRe-installed?
NOTE:742014.1 -XDB11gInstallandDeinstallNote

<!--EndFragment-->

How to Deinstall and Reinstall XML Database ORA-04063 XDB.DBMS_XDBUTIL_INT


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 中文字幕久久久久 | 欧美手机手机在线视频一区 | 尹人久久久香蕉精品 | 成人影院wwwwwwwwwww | 一级一片免费播放 | 天天干夜夜撸 | 奇米影视第 | 精品无码久久久久久国产 | 私人午夜影院 | 日韩欧美一区二区在线观看 | 99精品国内不卡在线观看 | 亚洲精品免费在线观看 | 久久亚洲视频 | 亚洲欧美日韩国产色另类 | 国产在线19禁免费观看国产 | 91福利视频网站 | 在线亚洲播放 | 黑人巨大vs日本人优 | 天天干夜夜曰 | 99精品免费视频 | 国内女高中生一级毛片 | 亚洲视频在线一区二区三区 | 亚洲国产精品婷婷久久 | 国产精品美女流白浆视频 | 久久国产精品99久久久久久老狼 | 国产精品夜色视频一区二区 | 日本成人不卡视频 | 伊人网站在线观看 | 亚洲乱码国产乱码精品精98 | 欧美一级毛片国产一级毛片 | 可以免费观看的毛片 | 久草在线视频在线观看 | bbw满足护士 | 深夜福利免费在线观看 | 97成人在线视频 | 99久久综合狠狠综合久久一区 | 亚洲精品天堂 | 久久精品免费大片国产大片 | 99国产精品久久久久久久... | 国产亚洲精品看片在线观看 | 一级做a毛片免费视频 |