标签云
asm恢复 bbed bootstrap$ dul In Memory kcbzib_kcrsds_1 kccpb_sanity_check_2 MySQL恢复 ORA-00312 ORA-00607 ORA-00704 ORA-00742 ORA-01110 ORA-01555 ORA-01578 ORA-01595 ORA-08103 ORA-600 2131 ORA-600 2662 ORA-600 3020 ORA-600 4000 ORA-600 4137 ORA-600 4193 ORA-600 4194 ORA-600 16703 ORA-600 kcbzib_kcrsds_1 ORA-600 KCLCHKBLK_4 ORA-15042 ORA-15196 ORACLE 12C oracle dul ORACLE PATCH Oracle Recovery Tools oracle加密恢复 oracle勒索 oracle勒索恢复 oracle异常恢复 Oracle 恢复 ORACLE恢复 ORACLE数据库恢复 oracle 比特币 OSD-04016 YOUR FILES ARE ENCRYPTED 勒索恢复 比特币加密文章分类
- Others (2)
- 中间件 (2)
- WebLogic (2)
- 操作系统 (103)
- 数据库 (1,743)
- DB2 (22)
- MySQL (75)
- Oracle (1,591)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (162)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (68)
- Oracle Bug (8)
- Oracle RAC (54)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (28)
- Oracle备份恢复 (582)
- Oracle安装升级 (95)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (84)
- PostgreSQL (28)
- pdu工具 (5)
- PostgreSQL恢复 (9)
- SQL Server (30)
- SQL Server恢复 (11)
- TimesTen (7)
- 达梦数据库 (2)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (37)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (20)
-
最近发表
- PostgreSQL运行日志管理
- ora-600 kdsgrp1 错误描述
- GAM、SGAM 或 PFS 页上存在页错误处理
- ORA-600 krhpfh_03-1208
- VMware勒索加密恢复(vmdk勒索恢复)
- ORA-39773: parse of metadata stream failed故障处理
- sql数据库备份失败—失败: 23(数据错误(循环冗余检查)
- vmdk文件被加密恢复(虚拟机文件加密)
- 差点被误操作的ORA-600 kcratr_nab_less_than_odr故障
- win平台19c 打patch遭遇2个小问题汇总
- pg单个数据库目录恢复-pdu恢复单个数据库目录数据
- pg删除数据恢复—pdu恢复pg delete数据
- .[OnlyBuy@cyberfear.com].REVRAC勒索mysql恢复
- 表dml操作权限授权给public,导致只读用户失效
- 21c数据库恢复遭遇ora-600 ktugct: corruption detected
- pg_control丢失/损坏处理
- 当前主流数据库版本服务支持周期-202503
- pg启动报invalid checkpoint record处理
- 删除redo导致ORA-00313 ORA-00312故障处理
- Navicat连接postgresql时出现column “datlastsysoid” does not exist错误解决
月归档:五月 2013
一次侥幸的OSD-04016 O/S-Error异常恢复
一台数据库因为异常断电导致硬盘IO出现O/S-Error: (OS 23) 数据错误(循环冗余检查)错误,使得datafile 6无法完成实例恢复.使用dbv检查该数据文件也出现类似错误,尝试copy该文件,也出现了类似的错误.尝试dd拷贝完整,发现dd也只能拷贝81951个block.
Tue May 14 15:32:10 2013 Completed redo scan 16941 redo blocks read, 1106 data blocks need recovery Tue May 14 15:32:17 2013 Errors in file d:\oracle\product\10.2.0\admin\water\bdump\water_p002_1472.trc: ORA-01115: IO error reading block from file 6 (block # 81951) ORA-01110: data file 6: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\WATER\YD_DATA01.DBF' ORA-27070: async read/write failed OSD-04016: 异步 I/O 请求排队时出错。 O/S-Error: (OS 23) 数据错误(循环冗余检查)。
因为该数据库有一天前的备份,而且他们只要求恢复其中三张核心表的数据,通过分析数据字典,确定出来相关表的block均不在block 81951之上,也就是说,如果数据库只是该block异常了,可以通过跳过该block,从而copy相关block,来实现数据库恢复,因为是一个文件的中间部分异常了,所以决定使用dd来copy文件正常部分
dd if=D:\ORACLE\PRODUCT\10.2.0\ORADATA\WATER\YD_DATA01.DBF bs=8192 count=81951 of=h:\dd\yd_data01_1.dbf dd if=D:\ORACLE\PRODUCT\10.2.0\ORADATA\WATER\YD_DATA01.DBF bs=8192 skip=81952 of=h:\dd\yd_data01_2.dbf
dd出来文件之后,因为我们跳过了block 81952(block 0 数据库为记录),所以我们需要通过dd来构造block 81952,并且把他们合并到一起
dd if=/dev/zero of=h:\dd\yd_data01_1.dbf seek=81951 bs=8192 count=1 dd if=h:\dd\yd_data01_2.dbf seek=81952 bs=8192 of=h:\dd\yd_data01_1.dbf
然后使用dul工具抽出来客户需要的三张核心表的数据,恢复工作算完成。
针对本次恢复,如果需求是open数据库,通过设置隐含参数,bbed之类原则上也可以实现.
这次的恢复算是比较侥幸:1.客户有一天前的exp,只需要恢复三张核心表数据;2.三张表的数据恰好都不在损坏的block中;3.数据库就损坏了一个block.
如果出现不幸情况,那可能需要先硬盘恢复,然后数据库恢复,最后折腾数据.
总之再次提醒各位:数据库备份很重要,很重要.对于需求是不能丢失数据的系统备份,一定要rman的方式备份,千万别选择exp/expdp
关于ORACLE 11G密码大小写敏感猜想(USER$.SPARE4)
从11.1开始密码大小写敏感了,同时可以设置sec_case_sensitive_logon参数可以忽略大小写敏感。
通过朋友咨询的不设置sec_case_sensitive_logon参数让密码大小写不敏感的实验这篇文章疑惑,同时也感谢朋友让我学习到了新知识,我通过测试证明了如下结论:
1.password_versions的优先级大于sec_case_sensitive_logon
2.通过修改USER$.SPARE4为空实现了屏蔽ORACLE 11g密码大小写敏感
10g创建用户导出数据
SQL> create user ora10g identified by xifenfei; User created. SQL> grant connect to ora10g; Grant succeeded. C:\Documents and Settings\Administrator>expdp \"/ as sysdba \" DIRECTORY=exp_dp DUMPFILE=chf.dmp schemas=ora10g Export: Release 10.2.0.1.0 - Production on 星期三, 15 5月, 2013 22:59:45 Copyright (c) 2003, 2005, Oracle. All rights reserved. 连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options 启动 "SYS"."SYS_EXPORT_SCHEMA_01": "/******** AS SYSDBA" DIRECTORY=exp_dp DUMPF ILE=chf.dmp schemas=ora10g 正在使用 BLOCKS 方法进行估计... 处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA 使用 BLOCKS 方法的总估计: 0 KB 处理对象类型 SCHEMA_EXPORT/USER 处理对象类型 SCHEMA_EXPORT/ROLE_GRANT 处理对象类型 SCHEMA_EXPORT/DEFAULT_ROLE 处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA 已成功加载/卸载了主表 "SYS"."SYS_EXPORT_SCHEMA_01" ****************************************************************************** SYS.SYS_EXPORT_SCHEMA_01 的转储文件集为: C:\CHF.DMP 作业 "SYS"."SYS_EXPORT_SCHEMA_01" 已于 23:00:19 成功完成
11g创建用户
SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE 11.2.0.3.0 Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - Production SQL> show parameter logon NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ sec_case_sensitive_logon boolean TRUE SQL> create user ora11g identified by xifenfei; User created. SQL> grant connect to ora11g; Grant succeeded. SQL> conn ora11g/xifenfei Connected. SQL> conn ora11g/XIFENFEI ERROR: ORA-01017: invalid username/password; logon denied Warning: You are no longer connected to ORACLE.
这里证明,在sec_case_sensitive_logon=true的情况下,数据库密码是大小写敏感
导入10g创建用户dmp文件
[oracle@localhost ~]$ impdp '"/ as sysdba"' directory=exp_dp dumpfile=CHF.DMP Import: Release 11.2.0.3.0 - Production on Wed May 15 23:07:20 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Master table "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded Starting "SYS"."SYS_IMPORT_FULL_01": "/******** AS SYSDBA" directory=exp_dp dumpfile=CHF.DMP Processing object type SCHEMA_EXPORT/USER Processing object type SCHEMA_EXPORT/ROLE_GRANT Processing object type SCHEMA_EXPORT/DEFAULT_ROLE Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA Job "SYS"."SYS_IMPORT_FULL_01" successfully completed at 23:07:21
查询ora10g和ora11g用户区别
SQL> conn ora10g/xifenfei Connected. SQL> conn ora10g/XIFENFEI Connected. SQL> conn / as sysdba Connected. SQL> select t.username,t.account_status,t.password_versions from dba_users t where t.username in ('ORA11G','ORA10G'); USERNAME ACCOUNT_STATUS PASSWORD ------------------------------ -------------------------------- -------- ORA11G OPEN 10G 11G ORA10G OPEN 10G SQL> select name,password,spare4 from SYS.USER$ t where name in ('ORA11G','ORA10G'); NAME PASSWORD SPARE4 ------------------------------ ------------------------------ ---------------------------------------------------------------- ORA10G F3CF2F0CB35CB6CA ORA11G 559D84354181EB8E S:BFE2625310D9382E9AEA6EE0AA2988E82C17B3EA23E3DAC23800490C2621
这里可以发现我们从低版本(10g)导入到11g中的用户登录是不区分大小写,而11g本身创建的用户是区分大小写,而他们的区别仅仅是在dba_users.password_versions中有不一样,跟踪到基表发现就是USER$.SPARE4列不一样(10g的该列为空).
猜想:password_versions的优先级大于sec_case_sensitive_logon这个参数
验证猜想
如果是password_versions的优先级大于sec_case_sensitive_logon那么,如果我修改了USER$.SPARE4,使得dba_users.password_versions变成和10g导入的库一样,是否就可以实现不区分密码大小写的问题,如果不缺乏证明:password_versions的优先级大于sec_case_sensitive_logon这个参数,反之失败.
SQL> update SYS.USER$ t set SPARE4='' where name='ORA11G'; 1 row updated. SQL> COMMIT; Commit complete. SQL> alter system flush shared_pool; System altered. SQL> conn ora11g/XIFENFEI Connected. SQL> conn ora11g/xifenfei Connected.
由此得出两个结论:
1.password_versions的优先级大于sec_case_sensitive_logon
2.通过修改USER$.SPARE4为空实现了屏蔽ORACLE 11g密码大小写敏感
windows Patch list
32-Bit Patches :
Patch |
Patch Location | Bug Fix List | Notes |
11.2.0.3.0 Patch 20 | Target date End May 2013 | ||
11.2.0.3.0 Patch 19 | Bug:16656150 Patch:16656150 | Note:1114533.1 | Requires 11.2.0.3.0 |
11.2.0.3.0 | Bug:10404530 Patch:10404530 | ReadMe | |
11.2.0.2.0 Patch 26 | Target date End May 2013 | ||
11.2.0.2.0 Patch 25 | Bug:16345845 Patch:16345845 | Note:1114533.1 | Requires 11.2.0.2.0 |
11.2.0.2.0 | Bug:10098816 Patch:10098816 | ReadMe | |
11.2.0.1.0 Patch 15 | Bug:13329696 Patch:13329696 | Note:1114533.1 | Requires 11.2.0.1.0 |
11.1.0.7.0 Patch 53 | Target date Mid July 2013 | ||
11.1.0.7.0 Patch 52 | Bug:16345861 Patch:16345861 | Note:560295.1 |
Requires 11.1.0.7.0 |
11.1.0.7.0 | Bug:6890831 Patch:6890831 | ReadMe | |
11.1.0.6.0 Patch 18 | Bug:8970709 Patch:8970709 | Note:560295.1 |
Requires 11.1.0.6.0 |
10.2.0.5.0 Patch 22 | Target date Mid July 2013 | ||
10.2.0.5.0 Patch 21 | Bug:16345855 Patch:16345855 | Note:342443.1 | Requires 10.2.0.5.0 |
10.2.0.5.0 | Bug:8202632 Patch:8202632 | ReadMe | |
10.2.0.4.0 Patch 50 | Bug:15834695 Patch:15834695 | Note:342443.1 |
Requires 10.2.0.4.0 |
10.2.0.4.0 Patch 49 | Bug:13928775 Patch:13928775 | Note:342443.1 |
Requires 10.2.0.4.0 |
10.2.0.4.0 | Bug:6810189 Patch:6810189 | ReadMe | |
10.2.0.3.0 Patch 31 | Bug:8288852 Patch:8288852 | Note:342443.1 |
Requires 10.2.0.3.0 |
10.2.0.3.0 | Bug:5337014 Patch:5337014 | ReadMe | |
10.2.0.2.0 Patch 18 | Bug:7213940 Patch:7213940 | Note:342443.1 |
Requires 10.2.0.2.0 |
10.2.0.2.0 | Bug:4547817 Patch:4547817 | ReadMe | |
10.2.0.1.0 Patch 9 | Bug:5695784 Patch:5695784 | Note:342443.1 | |
10.1.0.5.0 Patch 45 | Not planned |
Requires 10.1.0.5.0 Standalone Database Home |
|
10.1.0.5.0 Patch 44 | Bug:13413002 Patch:13413002 | Note:276548.1 |
Applicable to Standalone Database Oracle Homes. |
10.1.0.5.0 | Bug:4505133 Patch:4505133 | ReadMe | |
9.2.0.8.0 Patch 32 | Not planned | ||
9.2.0.8.0 Patch 31 | Bug:14666190 Patch:14666190 | Note:211268.1 |
Requires 9.2.0.8.0 |
9.2.0.8.0 CFS RAC | Bug:5388107 Patch:5388107 |
Cluster File System / RAC Clusterware bundle |
|
9.2.0.8.0 | Bug:4547809 Patch:4547809 | ReadMe |
64-Bit x64 Patches :
Patch |
Patch Location | Bug Fix List | Notes |
11.2.0.3.0 Patch 20 | Target date End May 2013 | ||
11.2.0.3.0 Patch 19 | Bug:16656151 Patch:16656151 | Note:1114533.1 | Requires 11.2.0.3.0 |
11.2.0.3.0 | Bug:10404530 Patch:10404530 | ReadMe | |
11.2.0.2.0 Patch 26 | Target date End May 2013 | ||
11.2.0.2.0 Patch 25 | Bug:16345846 Patch:16345846 | Note:1114533.1 | Requires 11.2.0.2.0 |
11.2.0.2.0 | Bug:10098816 Patch:10098816 | ReadMe | |
11.2.0.1.0 Patch 16 | Bug:13423278 Patch:13423278 | Note:1114533.1 | Requires 11.2.0.1.0. Patch 16 is only available on x64 Windows due a build issue. |
11.1.0.7.0 Patch 53 | Target date Mid July 2013 | ||
11.1.0.7.0 Patch 52 | Bug:16345862 Patch:16345862 | Note:560295.1 |
Requires 11.1.0.7.0 |
11.1.0.7.0 | Bug:6890831 Patch:6890831 | ReadMe | |
11.1.0.6.0 Patch 18 | Bug:8970710 Patch:8970710 | Note:560295.1 |
Requires 11.1.0.6.0 |
10.2.0.5.0 Patch 22 | Target date Mid July 2013 | ||
10.2.0.5.0 Patch 21 | Bug:16345857 Patch:16345857 | Note:342443.1 | Requires 10.2.0.5.0 |
10.2.0.5.0 | Bug:8202632 Patch:8202632 | ReadMe | |
10.2.0.4.0 Patch 49 | Bug:13928776 Patch:13928776 | Note:342443.1 |
Requires 10.2.0.4.0 |
10.2.0.4.0 | Bug:6810189 Patch:6810189 | ReadMe | |
10.2.0.3.0 Patch 31 | Bug:8288854 Patch:8288854 | Note:342443.1 |
Requires 10.2.0.3.0 |
10.2.0.3.0 | Bug:5337014 Patch:5337014 | ReadMe | |
10.2.0.2.0 Patch 18 | Bug:7213942 Patch:7213942 | Note:342443.1 |
Requires 10.2.0.2.0 |
10.2.0.2.0 | Bug:4547817 Patch:4547817 | ReadMe | |
10.2.0.1.0 Patch 9 | Bug:5695786 Patch:5695786 | Note:342443.1 |
64-Bit Itanium Patches :
Patch |
Patch Location | Bug Fix List | Notes |
10.2.0.5.0 Patch 22 | Target date Mid July 2013 | ||
10.2.0.5.0 Patch 21 | Bug:16345856 Patch:16345856 | Note:342443.1 | Requires 10.2.0.5.0 |
10.2.0.5.0 | Bug:8202632 Patch:8202632 | ReadMe | |
10.2.0.4.0 Patch 47 | Bug:12914909 Patch:12914909 | Note:342443.1 |
Requires 10.2.0.4.0 |
10.2.0.4.0 | Bug:6810189 Patch:6810189 | ReadMe | |
10.2.0.3.0 Patch 32 | Bug:8504486 Patch:8504486 | Note:342443.1 |
Requires 10.2.0.3.0 |
10.2.0.3.0 | Bug:5337014 Patch:5337014 | ReadMe | |
10.2.0.2.0 Patch 18 | Bug:7213941 Patch:7213941 | Note:342443.1 |
Requires 10.2.0.2.0 |
10.2.0.2.0 | Bug:4547817 Patch:4547817 | ReadMe | |
10.2.0.1.0 Patch 9 | Bug:5695785 Patch:5695785 | Note:342443.1 | |
10.1.0.5.0 Patch 45 | Not planned | ||
10.1.0.5.0 Patch 44 | Bug:13413003 Patch:13413003 | Note:276548.1 |
Applicable to Standalone Database Oracle Homes. |
10.1.0.5.0 | Bug:4505133 Patch:4505133 | ReadMe | |
9.2.0.8.0 Patch 31 | Not planned | ||
9.2.0.8.0 Patch 30 | Bug:9683645 Patch:9683645 | Note:211268.1 |
Requires 9.2.0.8 |
9.2.0.8.0 CFS RAC | Bug:5689499 Patch:5689499 | ||
9.2.0.8.0 | Bug:4547809 Patch:4547809 | ReadMe |
发表在 Oracle
评论关闭