⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 204.html

📁 关于jsp的一些好文章 主要介绍一些关于JSP的应用技巧方面的东西
💻 HTML
字号:

<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>FAQ汇萃 >> Oracle 专栏 >> 如何启动ARCHIVELOG模式?</title>
</head>
<body >

<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>

<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=../list_thread.php?int_attribute=1>FAQ汇萃</a>
>> <a href=../list_thread.php?forumid=20&int_attribute=1>Oracle 专栏</a>
>> 如何启动ARCHIVELOG模式? [<a href=../forum/showthread.php?goto=newpost&threadid=204>查看别人的评论</a>]<br>

<hr><p>由 webmaster 发布于: 2001-02-03 13:11</p><p><img src="images/icons/icon3.gif" alt="Lightbulb" border=0> </p><p>系统环境: 
<br>1、操作系统:Windows 2000 Server,机器内存128M
<br>2、数据库: Oracle 8i R2 (8.1.6) for NT 企业版
<br>3、安装路径:C:\ORACLE
<br>
<br>实现步骤: 
<br>
<br>1、管理器
<br>SVRMGR&gt; connect internal
<br>SVRMGR&gt; shutdown
<br>SVRMGR&gt; startup mount [dbname]
<br>SVRMGR&gt; alter database [dbname] archivelog;	--起用归档模式
<br>SVRMGR&gt; archive log start			--启动自动归档模式,重起数据库后,按init.ora配置
<br>SVRMGR&gt; alter database [dbname] open;		--打开数据库
<br>SVRMGR&gt; exit
<br>
<br>2、修改数据库初始化参数文件,定义归档模式(自动)、归档日志文件保存路径、归档日志文件命名方法
<br>
<br>3、重新启动数据库
<br>
<br>
<br>具体实例: 
<br>
<br>C:\&gt;svrmgrl
<br>
<br>Oracle Server Manager Release 3.1.6.0.0 - Production
<br>
<br>版权所有 (c) 1997,1999,Oracle Corporation。保留所有权利。
<br>
<br>Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
<br>With the Partitioning option
<br>JServer Release 8.1.6.0.0 - Production
<br>
<br>SVRMGR&gt; connect internal
<br>连接成功。
<br>SVRMGR&gt; shutdown
<br>已关闭数据库。
<br>已卸下数据库。
<br>已关闭 ORACLE 实例。
<br>SVRMGR&gt; startup mount
<br>已启动 ORACLE 实例。
<br>系统全局区域合计有                         57124108个字节
<br>Fixed Size                                          70924个字节
<br>Variable Size                                    40198144个字节
<br>Database Buffers                                 16777216个字节
<br>Redo Buffers                                        77824个字节
<br>已装入数据库。
<br>SVRMGR&gt; alter database archivelog;
<br>语句已处理。
<br>SVRMGR&gt; archive log start
<br>语句已处理。
<br>SVRMGR&gt; alter database open;
<br>语句已处理。
<br>SVRMGR&gt; alter system switch logfile;	--强制系统进行日志切换,可马上观察到归档日志的产生
<br>语句已处理。
<br>SVRMGR&gt; exit
<br>服务器管理程序结束。
<br>
<br>
<br>修改数据库参数文件c:\oracle\admin\oradb\pfile\init.ora,
<br>取消以下语句的#注释
<br>log_archive_start = true
<br>log_archive_dest_1 = "location=C:\Oracle\oradata\oradb\archive"
<br>log_archive_format = %%ORACLE_SID%%T%TS%S.ARC
<br>关闭数据库,重新启动
<br>
<br>
<br>查看C:\Oracle\oradata\oradb\archive目录下,可以看到类似ORADBT001S01201.ARC的文件,说明归档成功
<br>
<br>
<br>
<br>解释init.ora参数文件中关于归档重做日志参数项的含义
<br>
<br>归档模式是自动还是手工,true为自动,false为手工
<br>log_archive_start = true
<br>
<br>归档日志文件所保存的路径
<br>log_archive_dest_1 = "location=C:\Oracle\oradata\oradb\archive"
<br>
<br>归档日志文件的命名方法
<br>log_archive_format = %%ORACLE_SID%%T%TS%S.ARC
<br>
<br>
<br>归档命令:
<br>
<br>启动自动归档模式,系统重起后,将按init.ora中的参数log_archive_start的值设置归档方式
<br>SVRMGR&gt; archive log start
<br>
<br>启动手工归档模式
<br>SVRMGR&gt; archive log stop
<br>
<br>查看归档信息:重做日志是否归档方式、是自动归档还是手工归档、归档路径、最旧的联机日志循序号...
<br>SVRMGR&gt; archive log list
<br>
<br>归档一个已满,但没有归档的联机重做日志
<br>SVRMGR&gt; archive log next
<br>
<br>归档所有已满,但没有归档的联机重做日志
<br>SVRMGR&gt; archive log all
<br>
<br>注意:一个事务即使不被提交,也会被写入到重做日志中
<br>
<br></p></td>
  </tr>
</table>
<p>
<CENTER><a href="../forum/newreply.php?action=newreply&threadid=204">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
				[<a href=javascript:void(0) onclick=window.open("../forum/codeVote.php?threadid=204&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("../forum/codeVote.php?threadid=204&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("../forum/codeVote.php?threadid=204&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>) 
				[<a href=javascript:void(0) onclick=window.open("../forum/codeVote.php?threadid=204&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>

<script language="javascript" src="../include/read_thread_script.php?threadid=204"></script>

<p><CENTER>
Copyright &copy; 2001 - 2009 JSP001.com . All Rights Reserved <P>

<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -