MYSQL网页编程之ORA-00257: archiver error. Connect i...
与数据库相关的流程的逐渐标准化,使得解决方案提供商能以更便捷的方式提供服务、部署应用程序、规划容量和管理资源。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----------
AUTOMATICARCHIVINGHASNOTRESUMEDAFTERSPACEISFREEDUPServerAdministrationGuide:Chapter7
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年的时间。 可能有的朋友会抱怨集成的orderby,其实如果使用ranking函数,Orderby是少不了的。如果担心Orderby会影响效率,可以为orderby的字段建立聚集索引,查询计划会忽略orderby操作(因为本来就是排序的嘛)。 这一点很好的加强了profiler的功能。但是提到profiler提醒大家注意一点。windows2003要安装sp1补丁才能启动profiler。否则点击没有反应。 where子句的作用是在对查询结果进行分组前,将不符合where条件的行去掉,即在分组之前过滤数据,条件中不能包含聚组函数,使用where条件显示特定的行。 但换公司用MSSQL2K感觉自己好像根本就不了解MSSQL。什么DTS触发器以前根本没用过。 如果你是从“学习某一种数据库应用软件,从而获得应聘的资本和工作机会”的角度来问的话。 习惯敲命令行的朋友可能会爽一些。但是功能有限。适合机器跑不动SQLServerManagementStudio的朋友使用。 备份方面可能还是一个老大难的问题。不能单独备份几个表总是感觉不爽。灵活备份的问题不知道什么时候才能解决。
页:
[1]