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

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條評論
主站蜘蛛池模板: 四虎免费看 | 亚洲九九精品 | 奇米四色在线视频 | www.夜夜骑 | 精品一区二区久久久久久久网精 | 激性欧美激情在线播放16页 | 2022国产男人亚洲欧美天堂 | 中文字幕久久精品波多野结 | 福利不卡 | www色综合| 久热亚洲 | 久久99精品国产麻豆不卡 | 成人在线免费网站 | 黄色免费看视频 | 成人看片黄a毛片 | 欧美成人免费tv在线播放 | 爱操视频在线观看 | 亚洲 欧美 日韩 在线 香蕉 | 一级毛片a免费播放王色 | 久久不雅视频 | 日韩欧美一区二区三区 | 97se亚洲综合在线 | 久久免费视屏 | 色综合久久夜色精品国产 | 一本到视频在线观看 | 国内精品福利视频 | 99视频99 | 91视频亚洲 | 亚洲欧洲第一页 | 亚洲另类精品综合 | 久久91精品国产91久久跳舞 | 日日天天 | 一区二区三区不卡在线 | 久久精品免视国产 | 精品四虎免费观看国产高清午夜 | 四虎影院的网址 | 日本在线观看永久免费网站 | 无遮挡无遮挡91桃色在线观看 | 色综合网亚洲精品久久久 | α片毛片 | 99久久免费中文字幕精品 |