仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 769|回复: 7
打印 上一主题 下一主题

[学习教程] MYSQL网页编程之ORA-00257: archiver error. Connect i...

[复制链接]
愤怒的大鸟 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-16 22:43:46 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

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年的时间。
若相依 该用户已被删除
沙发
发表于 2015-1-18 08:45:25 | 只看该作者
可能有的朋友会抱怨集成的orderby,其实如果使用ranking函数,Orderby是少不了的。如果担心Orderby会影响效率,可以为orderby的字段建立聚集索引,查询计划会忽略orderby操作(因为本来就是排序的嘛)。
金色的骷髅 该用户已被删除
板凳
发表于 2015-1-21 14:12:39 | 只看该作者
这一点很好的加强了profiler的功能。但是提到profiler提醒大家注意一点。windows2003要安装sp1补丁才能启动profiler。否则点击没有反应。
飘灵儿 该用户已被删除
地板
发表于 2015-1-30 19:49:21 | 只看该作者
where子句的作用是在对查询结果进行分组前,将不符合where条件的行去掉,即在分组之前过滤数据,条件中不能包含聚组函数,使用where条件显示特定的行。
精灵巫婆 该用户已被删除
5#
发表于 2015-2-6 15:36:11 | 只看该作者
但换公司用MSSQL2K感觉自己好像根本就不了解MSSQL。什么DTS触发器以前根本没用过。
小女巫 该用户已被删除
6#
发表于 2015-2-16 21:55:27 | 只看该作者
如果你是从“学习某一种数据库应用软件,从而获得应聘的资本和工作机会”的角度来问的话。
简单生活 该用户已被删除
7#
发表于 2015-3-5 10:18:27 | 只看该作者
习惯敲命令行的朋友可能会爽一些。但是功能有限。适合机器跑不动SQLServerManagementStudio的朋友使用。
老尸 该用户已被删除
8#
发表于 2015-3-19 17:57:13 | 只看该作者
备份方面可能还是一个老大难的问题。不能单独备份几个表总是感觉不爽。灵活备份的问题不知道什么时候才能解决。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-9-21 12:43

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表