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

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條評論
主站蜘蛛池模板: 一本岛高清v不卡免费一三区 | 亚洲精品字幕一区二区三区 | 99亚洲精品 | 一级特级女人18毛片免费视频 | 免费区欧美一级毛片精品 | 国产婷婷| 青青草a | 亚洲精品99久久久久中文字幕 | 婷婷色九月综合激情丁香 | 天天爱天天做久久天天狠狼 | 黄片毛片免费在线观看 | 午夜国产精品久久影院 | 亚洲黄色激情视频 | 久久精品一区二区三区日韩 | 国产高清一级视频在线观看 | 久久成人在线视频 | 国产精品视频一区二区猎奇 | 色爱区综合五月激情 | 一级特级欧美aa毛片免费 | 国产精品久久久久999 | 最近中文日本字幕免费完整 | 二区视频 | 久久这里只有精品免费播放 | 天天夜天干天天爽 | 麻豆精品视频 在线视频 | 免费国产阿v视频在线观看 免费国产不卡午夜福在线 免费国产不卡午夜福在线观看 | 色综合综合 | 国产精品欧美日韩一区二区 | 黄页网址在线免费观看 | 国产欧美一区二区精品性色99 | 欧日韩美香蕉在线观看 | 全高清特级毛片 | 国产在线成人精品 | 天天操天天干天天射 | 亚洲国产精品日韩在线观看 | 国产性生活 | 91热视频在线 | 日日碰日日摸日日澡视频播放 | 中文精品视频一区二区在线观看 | 四虎永久免费地址 | 老司机午夜视频在线观看 |