|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
与数据库相关的流程的逐渐标准化,使得解决方案提供商能以更便捷的方式提供服务、部署应用程序、规划容量和管理资源。DBaaS模式还有助于减少数据和数据库的冗余度并提升整体服务质量。error
情况:winxp+oracle9.2.0.1客户端
win2003+oracle9.2.0.5服务端
1、堕落历程:
在客户端实行以下语句:
connscott/tiger@pgjt
declare
inumber;
begin
selects.nextvalintoifromdual;
whilei<1000
loop
insertintobvalues(i);
endloop;
end;
呈现毛病,客户端呈假逝世机征象。
新开一个窗口:
SQL>connscott/tiger@pgjt
已毗连。
SQL>selectsid,serial#,usernamefromv$session;
SIDSERIAL#USERNAME
------------------------------------------------
11
21
31
41
51
61
71
81
91
101
111
1214
135SCOTT
1415SCOTT
154
161
171
181
191
204NCCWGS
已选择20行。
已用工夫:00:00:00.01
SQL>altersystemkillsession13,5;
体系已变动。
已用工夫:00:00:00.00
SQL>
反复下面步骤也许3次后,
SQL>connscott/tiger@pgjt
ERROR:
ORA-00257:archivererror.Connectinternalonly,untilfreed.
没法毗连数据库。
2、ProblemDescription-------------------
Thedatabaseisrunninginarchivelogmodewithautomaticarchivingturnedon.Whenthearchivelogdestinationdiskspacebecomesfulltheautomaticarchivingwillstop.Thisisexpectedtohappen.Atthispointamessageshouldappearonthescreen:ORACLEInstancev816-Cannotallocatelog,archivalrequiredWhenalloftheonlineredologsarefilledup,thedatabasewillbeinahangstate.Afterfreeingupdiskspacetheonlineredologsarestillnotarchiving.InmostcasesthisistheCORRECTbehaviour.
Ifyouattempttomanuallyarchivethefilesyoumayreceivethefollowingerrors:
SVRMGR>archivelognextORA-16014:log1sequence#199notarchived,noavailabledestinationsORA-00312:onlinelog1thread1:C:ORACLEORADATAV816REDO01.LOG
SVRMGR>archivelogallORA-16020:lessdestinationsavailablethanspecifiedbyLOG_ARCHIVE_MIN_SUCCEED_DEST
SolutionDescription--------------------
Someofthepossiblewaystofixthisproblem:
1.Usethecommand:
altersystemarchivelogalltoc:oracleoradatav816archive;*NOTE:YouMUSTspecifyalocationref-ora-16014
2.Shutdownandrestartthedatabase.ItmaybenecessarytodoaShutdownabort.
3.UsetheREOPENattributeoftheLOG_ARCHIVE_DEST_ninit.oraparameter.
LOG_ARCHIVE_DEST_n=
REOPEN=30Orrunthefollowingcomand:
altersystemsetLOG_ARCHIVE_DEST_n=reopen
4.Usethecommands:
altersystemarchivelogstop;altersystemarchivelogstart;
Explanation-----------
Theerrorora-16014istherealclueforthisproblem.Oncethearchivedestinationbecomesfullthelocationalsobecomesinvalid.NormallyOracledoesnotdoarechecktoseeifspacehasbeenmadeavailable.
1.Usingthecommand:altersystemarchivelogalltoc:oracleoradatav816archive;givesOracleavalidlocationforthearchivelogs.Evenafterusingthisthearchivelogdestinationparameterisstillinvalidandautomaticachivedoesnotwork.Thissolutionisbestforsystemsthatdonotarchiveregularlybutcannotbeshutdown.YoucanalsousethistoallowyoutodoaShutdownimmediateinsteadofShutdownabort.
2.Shutdownandrestartofthedatabaseresetsthearchivelogdestinstationparametertobevalid.Donotforgettomakediskspaceavailablebeforestartingthedatabase.
3.UsetheREOPENattributeoftheLOG_ARCHIVE_DEST_nparametertodeterminewhetherandwhenARCnattemptstore-archivetoafaileddestinationfollowinganerror.REOPENappliestoallerrors,notjustOPENerrors.REOPEN=nsetstheminimumnumberofsecondsbeforeARCnshouldtrytoreopenafaileddestination.Thedefaultvaluefornis300seconds.Avalueof0isthesameasturningofftheREOPENoption,inotherwords,ARCnwillnotattempttoarchiveafterafailure.IfyoudonotspecifytheREOPENkeyword,ARCnwillneverreopenadestinationfollowinganerror.TheServerAdministrationGuidehasmoreinformationonREOPEN.
References----------
[BUG:1271752]AUTOMATICARCHIVINGHASNOTRESUMEDAFTERSPACEISFREEDUPServerAdministrationGuide:Chapter7
[NOTE:74324.1]AutoArchiveStopped-8iLOG_ARCHIVE_DEST_nIssues.
3、成绩办理
回档日记利用的磁盘空间已满。删除一些老的磁盘回档文件
SQL>shutdownabort;
ORACLEinstanceshutdown.
SQL>startup
ORACLEinstancestarted.
TotalSystemGlobalArea542712360bytes
FixedSize455208bytes
VariableSize427819008bytes
DatabaseBuffers109051904bytes
RedoBuffers5386240bytes
Databasemounted.
Databaseopened.
SQL>connscott/tiger
Connected.
SQL>
怀疑这些功能在MySQL5.0中的成熟性。充其量它们在MySQL中被支持的时间也就一年左右,而在MySQL学习教程其他关系型数据库中则已经存在了近10年的时间。 |
|