1.手工归档时报出如下错误
sys@orcl> alter system archive log current;
alter system archive log current
*
ERROR at line 1:
ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
2.alert警告日志中同样记录了这个错误
Sun Apr 18 14:08:40 2010
Errors in file /oracle/admin/orcl/udump/orcl_ora_25744.trc:
ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
3.关于ORA-00258错误的解释信息
1)使用oerr工具查看该错误描述
orcl@luckystardb /home/oracle$ oerr ora 258
00258, 00000, "manual archiving in NOARCHIVELOG mode must identify log"
// *Cause: The database is in NOARCHIVELOG mode and a command to manually
// archive a log did not specify the log explicitly by sequence
// number, group number or filename.
// *Action: Specify log by filename, by group number or by thread and
// sequence number.
2)MOS中的描述信息
OERR: ORA 258 manual archiving in NOARCHIVELOG mode must identify log [ID 18327.1]
Error: ORA 258
Text: manual archiving in NOARCHIVELOG mode must identify log
-------------------------------------------------------------------------------
Cause: An attempt was made to archive a redo log file manually without
specifying the sequence number, group number, or filename while the
database was in NOARCHIVELOG mode.
Action: The name, group number, or thread and sequence number of redo log
files must be specified to archive redo log files manually while the
database is in NOARCHIVELOG mode.
4.问题处理
1)第一种处理方法
问题原因是数据库没有处于归档模式,最根本的解决方法是修改数据库为归档模式,具体操作步骤请参见文章《【ARCHIVE】单机环境修改数据库为非归档模式》http://space.itpub.net/519536/viewspace-660184。
2)第二种处理方法(意义不大)
既然错误提示“ORA-00258: manual archiving in NOARCHIVELOG mode must identify log”,那我们就可以使用带有指定日志组的SQL命令完成归档操作。
(1)查看数据库的归档目录位置
sys@ora10g> show parameter log_archive_dest_1
NAME TYPE VALUE
--------------------- ----------------------------------------
log_archive_dest_1 string location=/oracle/arch/ora10g
log_archive_dest_10 string
(2)查看当前数据库日志情况
sys@ora10g> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- --- -------- ------------- -------------------
1 1 1528 209715200 1 NO CURRENT 476386158 2010-04-20 13:20:13
2 1 1526 209715200 1 YES INACTIVE 476094078 2010-04-14 16:00:07
3 1 1527 209715200 1 NO INACTIVE 476248931 2010-04-17 22:00:54
(3)尝试归档第一组日志
sys@ora10g> alter system archive log group 1;
alter system archive log group 1
*
ERROR at line 1:
ORA-00259: log 1 of open instance ora10g (thread 1) is the current log, cannot archive
错误提示很显然,当前日志组不允许归档。
(4)尝试归档第二组日志
sys@ora10g> alter system archive log group 2;
alter system archive log group 2
*
ERROR at line 1:
ORA-16013: log 2 sequence# 1526 does not need archiving
因为归档状态是“YES”,因此该组日志无需归档。
(5)尝试归档第三组之日
sys@ora10g> alter system archive log group 3;
System altered.
归档成功。
(6)确认归档文件
sys@ora10g> !ls -l /oracle/arch/ora10g/
total 194652
-rw-r----- 1 oracle oinstall 199121920 Apr 21 06:38 1_1527_688786498.arch
(7)有关手工归档操作补充内容
以上我们使用的是数据库指定的路径存放手工归档生成的文件,我们还可以指定归档写入的路径
方法如下
sys@ora10g> alter system archive log group 3 to '/home/oracle';
System altered.
sys@ora10g> !ls -l /home/oracle/1_1527_688786498.arch
-rw-r----- 1 oracle oinstall 199121920 Apr 21 06:45 /home/oracle/1_1527_688786498.arch
5.有关“alter system archive log”命令的语法参考
Oracle 10gR2官方文档中有关归档命令用法的参考如下:
ARCHIVE LOG
[ INSTANCE 'instance_name' ]
{ { SEQUENCE integer
| CHANGE integer
| CURRENT [ NOSWITCH ]
| GROUP integer
| LOGFILE 'filename'
[ USING BACKUP CONTROLFILE ]
| NEXT
| ALL
| START
}
[ TO 'location' ]
| STOP
}
参考链接:http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/img_text/archive_log_clause.htm
6.小结
本文描述的问题根本原因是数据库没有运行在归档模式下,强烈建议重要的数据库运行在归档模式,同时部署可行的备份恢复策略。
Good luck.
secooler
10.04.21
-- The End --
- 浏览: 1467977 次
- 性别:
- 来自: 大连
文章分类
- 全部博客 (460)
- java (148)
- javascript (34)
- Flex文章 (4)
- css+div (2)
- ajax (6)
- extjs (11)
- 人生感悟 (9)
- struts2.0 (6)
- IT之路,生活 (15)
- hibernate (6)
- struts1 (1)
- spring (5)
- j2ee错误 (3)
- Dwr (5)
- Linux (33)
- C++ (3)
- SWT Win32 (2)
- EJB (1)
- JPA (4)
- C语言和LinuxC (7)
- SQL (13)
- 项目经理 (6)
- db2 (2)
- java数据结构 (2)
- 网页播放器flv (1)
- 数据库 (24)
- 用户体验设计学习 (2)
- 网络电话 (5)
- 军事理论 (4)
- android (3)
- oracle (18)
- oracle ebs form (11)
- oracle ebs oaf (4)
- erp (20)
- DBA (9)
- java中URL 的编码和解码函数 (1)
- 铁血丹心 (1)
- excel 单元格格式不能立即生效 (1)
- Java调用bat文件 (1)
- 如何把本地outlook中的邮件上传到网络邮箱中 (1)
- java 报表 打印 (1)
- 创建dblink (1)
- 图标前台框架 (1)
- vnc (1)
- FORM (1)
- MYSQL (1)
最新评论
-
July01:
推荐用StratoIO打印控件,支持网页、URL、图片、PD、 ...
web打印不显示页眉页脚 -
July01:
推荐用StratoIO打印控件,浏览器和系统的兼容性都很好,而 ...
Javascript网页打印大全 -
hardyer:
大哥写的很实在,受教了,提前祝你元旦快乐!
黎活明给程序员的忠告 -
cxysilahi:
请问WIN7 64位,调用报错Exception in thr ...
JNative的初步使用 -
action1949:
好东西,解决问题
JFreeChart乱码解决方法
发表评论
-
隐含参数
2016-02-05 20:21 775http://blog.csdn.net/haiross/a ... -
Using Integrated SOA Gateway in Oracle EBS
2014-04-22 15:44 2722Oracle EBS如何与第三方系统相集成?比如这样的需求, ... -
如何开始学习ADF和Jdeveroper 11g
2013-11-22 16:22 1424http://blog.csdn.net/genexujin ... -
Oracle EBS R12 客户表结构
2013-09-25 14:18 3173R12 客户表结构客户表/ ... -
startup,startup mount,startup nomount之间的区别
2013-07-12 17:05 1422startup nomount选项:( ... -
IBM TSM磁带管理操作小记一则
2013-07-02 11:32 3249在进行数据库备份例行检查时,发现磁带空间已经耗尽了。暂时又没 ... -
rman本库恢复性测试
2013-07-02 11:31 1392在实际工作当中,有很多数据库是使用的unix平台,但又没有多 ... -
解决WEB ADI打开EXCEL文档时一直停留在"Your document is being created"界面的问题
2013-05-28 14:22 1649解决WEB ADI打开EXCEL文档时一直停留在" ... -
RMAN参考使用手册(转)
2013-05-24 09:46 994RMAN的概念与体系结构Ora ... -
GL_SETS_OF_BOOKS 帐簿表
2013-05-14 13:27 1492GL_SETS_OF_BOOKS 账簿表 SET_OF_B ... -
EBS GL表结构学习
2013-05-14 13:26 2114gl_code_combinations:科目组合 ... -
Oracle Apps AutoConfig
2013-05-14 11:49 0Background Oracle Apps的 ... -
DBA
2013-03-21 20:39 1168DBA 一、DBA. 21.11捕 ... -
DBMS_OUTPUT包学习
2012-06-26 11:18 0http://www.blogjava.net/decode3 ... -
oracle查询约束
2012-05-09 22:49 1107select distinct constraint_type ... -
220: Unable to set NLS_LANGUAGE
2012-03-31 14:59 1538220: Unable to set NLS_LANGUAGE ... -
解决ora-12514 问题
2012-03-23 17:11 16680.同时修改了/etc/hosts 文 ... -
协议适配器错误的解决方法
2012-03-22 22:49 2427Case: Microsoft Windows [版本 ... -
utl_url.escape方法
2011-12-13 12:47 4415说明:一:utl_url.escape这个方法必须放在一个函数 ...
相关推荐
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
在运行查询SELECT * FROM V$SESSION 会出现ORA-29275:部分多字节字符的错误,这是什么原因开始我不得其解,网上也没有介绍什么好办法。本文给出答案。
ORA-12154: TNS: 无法解析指定的连接标识符的解决方法
ORA-32001:write to spfile requested but no spfile is in use请求写入spfile,但没有使用spfile的解决方法 在输入以下语句中报了这样的错误: SQL>alter system set control_files=’/u01/app/oracle/oradata/prod/...
ORA-00031:标记要终止的会话解决方案; ORA-00031:标记要终止的会话解决方案;
ORA-01036:非法的变量名/编号 oracle特有的错误
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
oracle12c程序连接时异常: ORA-01017: 用户名/口令无效; 登录被拒绝 的解决方案。
oracle 12 c ORA-01017: 用户名/口令无效; 登录被拒绝
-- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... ...
NULL 博文链接:https://3w1h.iteye.com/blog/1211779
oracle报错ora-12541:TNS无监听程序
解决ORACLE TNS: 无法解析指定的连接标识符; 里面有步骤
前言 最近在工作中遇到了一个问题,错误是...DBCA报错,首先看DBCA的日志,日志中也是报ORA-12547: TNS:lost contact 于是再sqlplus / as sysdba敲回车,也是报ORA-12547: TNS:lost contact, 基于之前的工程经验,先
错误描述:oracle远程连接服务器出现 ORA-12170 TNS:连接超时 错误检查:有很多是oracle自身安装的问题,但是我这里服务器配置正常,监听正常,服务正常,远程可以ping通服务器。 这里主要是防火墙问题,解决办法: ...
ora-12514:TNS:监听程序当前无法识别连接描述符中请求的服务bug,解决文档.
CLOB字段类型报错 ORA-01704:文字字符串过长的解决
oracle19c缺少的函数
ORA-12541 TNSno listener 的解决方案 ORA-12541 TNSno listener 的解决方案
ORA-12518 TNS:监听程序无法分发客户机连接,在您安装好数据库后配置连接数据库的过程中遇到这类问题应该很头疼吧,不过,当您还是四处查资料来解决您遇到的另你头疼的问题时,如果不经意间看到了这则贴子,那请您升...