收藏 分销(赏)

会计实务:如何启动或关闭数据库的归档模式.doc

上传人:天**** 文档编号:2165281 上传时间:2024-05-21 格式:DOC 页数:5 大小:27KB 下载积分:6 金币
下载 相关 举报
会计实务:如何启动或关闭数据库的归档模式.doc_第1页
第1页 / 共5页
会计实务:如何启动或关闭数据库的归档模式.doc_第2页
第2页 / 共5页


点击查看更多>>
资源描述
如何启动或关闭数据库的归档模式 Oracle数据库可以运行在2种模式:归档模式(archivelog)和非归档模式(noarchivelog)归档模式可以提高Oracle数据库的可恢复性,生产数据库都应该运行在此模式下,归档模式应该和相应的备份策略相结合,只有归档模式没有相应的备份策略只会带来麻烦。 Oracle数据库可以运行在2种模式:归档模式(archivelog)和非归档模式(noarchivelog)归档模式可以提高Oracle数据库的可恢复性,生产数据库都应该运行在此模式下,归档模式应该和相应的备份策略相结合,只有归档模式没有相应的备份策略只会带来麻烦。 下面为大家简单介绍如何启用和关闭数据库的归档模式。 1.shutdown normal或shutdown immediate关闭数据库 [oracle@jumper oracle]$ sqlplus “/ as sysdba” SQL*Plus:Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005 Copyright(c)1982,2002,Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production With the Partitioning option JServer Release 9.2.0.4.0 - Production SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. 2.启动数据库到mount状态 SQL> startup mount; ORACLE instance started. Total System Global Area 101782828 bytes Fixed Size 451884 bytes Variable Size 37748736 bytes Database Buffers 62914560 bytes Redo Buffers 667648 bytes Database mounted. 3.启用或停止归档模式 如果要启用归档模式,此处使用 alter database archivelog 命令。 SQL> alter database archivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list; Database log mode Archive Mode Automatic archival Enabled Archive destination /opt/oracle/oradata/conner/archive Oldest online log sequence 148 Next log sequence to archive 151 Current log sequence 151如果需要停止归档模式,此处使用: alter database noarchivelog 命令。 SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount; ORACLE instance started. Total System Global Area 101782828 bytes Fixed Size 451884 bytes Variable Size 37748736 bytes Database Buffers 62914560 bytes Redo Buffers 667648 bytes Database mounted. SQL> alter database noarchivelog; Database altered. SQL> alter database open; Database altered. SQL> archive log list; Database log mode No Archive Mode Automatic archival Enabled Archive destination /opt/oracle/oradata/conner/archive Oldest online log sequence 149 Current log sequence 152 4.修改相应的初始化参数 Oracle10g之前,你还需要修改初始化参数使数据库处于自动归档模式。 在pfile/spfile中设置如下参数: log_archive_start = true 重启数据库此参数生效,此时数据库处于自动归档模式。 也可以在数据库启动过程中,手工执行: archive log start 使数据库启用自动归档,但是重启后数据库仍然处于手工归档模式。 小编寄语:会计学是一个细节致命的学科,以前总是觉得只要大概知道意思就可以了,但这样是很难达到学习要求的。因为它是一门技术很强的课程,主要阐述会计核算的基本业务方法。诚然,困难不能否认,但只要有了正确的学习方法和积极的学习态度,最后加上勤奋,那样必然会赢来成功的曙光。天道酬勤嘛!
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 管理财经 > 财经会计

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服