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

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條評論
主站蜘蛛池模板: 精品国产品香蕉在线观看75 | 亚洲毛片在线观看 | 免费人成黄页网站在线观看 | 欧美午夜在线 | 青娱乐国产在线视频 | 久久亚洲一级α片 | 日本免费一区视频 | 久草在线国产 | 这里只有精品在线播放 | 国产福利在线永久视频 | 婷婷第四色 | 国产美女mm131爽爽爽免费 | 国产香港特级一级毛片 | 亚洲日本一区二区三区在线不卡 | 久久亚洲这里只有精品18 | 久久夜色精品国产噜噜小说 | 91探花视频在线观看 | 国产95在线 | 亚洲 | 国产一区在线观看免费 | 涩涩免费播放观看在线视频 | 国产精品爱啪在线线免费观看 | 欧美一区二区在线播放 | 99久久精品国产一区二区三区 | 99久9在线 | 免费 | 玖玖99视频| 亚洲第一成人在线 | 国产成人夜色91 | 99视频全部免费精品全部四虎 | 国产成人香蕉在线视频网站 | 亚洲精品久久九九热 | 日日lu| 91在线短视频| 久久er国产精品免费观看8 | 欧美韩日在线 | 国产精品久久久久久久午夜片 | 成人欧美视频在线观看播放 | 久久精品99精品免费观看 | 国产在热线精品视频国产一二 | 日本不卡高清中文字幕免费 | 成人免费久久精品国产片久久影院 | 亚洲va精品中文字幕动漫 |