标签云
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,765)
- DB2 (22)
- MySQL (77)
- Oracle (1,606)
- Data Guard (52)
- EXADATA (8)
- GoldenGate (24)
- ORA-xxxxx (166)
- ORACLE 12C (72)
- ORACLE 18C (6)
- ORACLE 19C (15)
- ORACLE 21C (3)
- Oracle 23ai (8)
- Oracle ASM (69)
- Oracle Bug (8)
- Oracle RAC (54)
- Oracle 安全 (6)
- Oracle 开发 (28)
- Oracle 监听 (29)
- Oracle备份恢复 (588)
- Oracle安装升级 (97)
- Oracle性能优化 (62)
- 专题索引 (5)
- 勒索恢复 (86)
- PostgreSQL (30)
- pdu工具 (6)
- PostgreSQL恢复 (9)
- SQL Server (32)
- SQL Server恢复 (13)
- TimesTen (7)
- 达梦数据库 (3)
- 达梦恢复 (1)
- 生活娱乐 (2)
- 至理名言 (11)
- 虚拟化 (2)
- VMware (2)
- 软件开发 (39)
- Asp.Net (9)
- JavaScript (12)
- PHP (2)
- 小工具 (22)
-
最近发表
- tcp连接过多导致监听TNS-12532 TNS-12560 TNS-00502错误
- 文件系统格式化MySQL数据库恢复
- .sstop勒索加密数据库恢复
- 解决一次硬件恢复之后数据文件0kb的故障恢复case
- Error in invoking target ‘libasmclntsh19.ohso libasmperl19.ohso client_sharedlib’问题处理
- ORA-01171: datafile N going offline due to error advancing checkpoint
- linux环境oracle数据库被文件系统勒索加密为.babyk扩展名溯源
- ORA-600 ksvworkmsgalloc: bad reaper
- ORA-600 krccfl_chunk故障处理
- Oracle Recovery Tools恢复案例总结—202505
- ORA-600 kddummy_blkchk 数据库循环重启
- 记录一次asm disk加入到vg通过恢复直接open库的案例
- CHECKDB 发现了 N 个分配错误和 M 个一致性错误
- 达梦数据库dm.ctl文件异常恢复
- Oracle Recovery Tools修复ORA-00742、ORA-600 ktbair2: illegal inheritance故障
- 可能是 tempdb 空间用尽或某个系统表不一致故障处理
- 11.2.0.4库中遇到ORA-600 kcratr_nab_less_than_odr报错
- [MY-013183] [InnoDB] Assertion failure故障处理
- Oracle 19c 202504补丁(RUs+OJVM)-19.27
- Oracle Recovery Tools修复ORA-600 6101/kdxlin:psno out of range故障
分类目录归档:数据库
Oracle 发布计划—包含Oracle 23ai版本
根据oracle官方公布的Oracle 23ai的发布计划(当然free版本,exadata,cloud版本已经发布),可以确定在2024年上半年即将发布Linux x86-64版本,Oracle Solaris SPARC/Linux on Arm/Microsoft Windows x64 (64-bit)版本将在下版本发布,Oracle Solaris x86-64平台不在发布Oracle 23ai版本数据库,IBM AIX on POWER Systems/IBM Linux on System z/HP-UX Itanium在发布计划中具体时间没有公布。具体参考:Release Schedule of Current Database Releases (Doc ID 742060.1)
Platform | 23aiLong Term Release | 21cInnovation Release | 19cLong Term Release | 18c | 12.2.0.1 | 12.1.0.2 | 12.1.0.1 | 11.2.0.4 | |||
Oracle Public Cloud Releases | |||||||||||
Exadata Express Cloud Service | Not Planned | Not Planned | Not Planned | Not Planned | 18-Sep-2016 | N/A | |||||
Base Database Service1(Previously known as: Database Cloud Service) | 19-Sep-2023 | 08-Dec-2020available on VM (RAC or single-instance)
and Bare Metal (single-instance) |
OCI DB System – VM: Jul-2019OCI DB System – Bare Metal: April 2020 | 1-Mar-2018 | 4-Nov-2016 | Sep-2014 | N/A | Sep-2014 | |||
Exadata Database Service on Dedicated Infrastructure1(Previously known as: Exadata Cloud Service) | 2-May-2024 | N/A | 19-Jun-2019 | Jun-2018 | 4-Nov-2016 | Oct-2015 | N/A | Oct-2015 | |||
Gen 1 Exadata Cloud at Customer1(Previously known as: Exadata Cloud at Customer) | N/A | N/A | 17-Sep-2019 | May-2018 | 2-May-2017 | Dec-2016 | N/A | ||||
Exadata Database Service on Cloud at Customer 1 | 2-May-2024 | N/A | 17-Sep-2019 | N/A | N/A | N/A | N/A | ||||
Autonomous Database on Dedicated Exadata Infrastructure 2 | 1H CY2024 | N/A | 26-Jun-2019 | N/A | N/A | N/A | N/A | ||||
Autonomous Database on Exadata Cloud at Customer 2 | 1H CY2024 | N/A | 08-Jul-2020 | N/A | N/A | N/A | N/A | ||||
Autonomous Database on Shared Exadata Infrastructure 2 | 1H CY2024 | N/A | 15-Mar-2020 | 18-Mar-2018 | N/A | N/A | N/A | ||||
On-Premises Engineered Systems(Same software as released for other platforms but tested on Engineered Systems) | |||||||||||
Oracle Database Appliance | CY2024 | 16-Sep-2021 | 16-Oct-2019 | 7-Mar-2018 | 17-Nov-2017 | Apr 2014 | N/A | Oct 2013 | |||
Exadata | 1H CY2024 | 13-Aug-2021 | 13-Feb-2019 | 16-Feb-2018 | 10-Feb-2017 | Oct 2014 | Mar 2013 | Nov 2013 | |||
Supercluster | TBA | N/A | 26-Apr-2019 | 12-Mar-2018 | 10-Feb-2017 | Nov 2014 | Apr 2014 | Dec 2013 | |||
On-Premises Server Releases (includes client)(Download here) | |||||||||||
Linux x86 | Not Planned | Not Planned | Not planned | Not planned | Not planned | Not planned | Not planned | 28-Aug-2013 | |||
Linux x86-64 | 1H CY2024 | 13-Aug-2021 | 25-Apr-2019 | 23-Jul-2018 | 1-Mar-2017 | 22-Jul-2014 | 25-Jun-2013 | 27-Aug-2013 | |||
Linux on Arm | 2H CY2024 | Not Planned | 28-June-2023 | Not Planned | Not Planned | Not Planned | Not Planned | Not Planned | |||
Oracle Solaris SPARC (64-bit) | 2H CY2024 | See DOC ID 2853097.1 | 26-Apr-2019 | 30-Jul-2018 | 1-Mar-2017 | 22-Jul-2014 | 25-Jun-2013 | 29-Aug-2013 | |||
Oracle Solaris x86-64 (64-bit) | Platform de-supported | Platform de-supported | 07-Nov-2019Terminal Release | 6-Aug-2018 | 1-Mar-2017 | 22-Jul-2014 | 25-Jun-2013 | 29-Aug-2013 | |||
Microsoft Windows x64 (64-bit) | 2H CY2024 | 08-Oct-2021 | 08-Jun-2019 | 21-Aug-2018 | 16-Mar-2017 | 25-Sep-2014 | 9-Jul-2013 | 25-Oct-2013 | |||
OpenVMS Itanium | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Terminal Release | |||
HP-UX Itanium |
TBA | 28-Sept-2021 | 28-May-2019 | 20-Nov -2018 | 13-Apr-2017 | 14-Nov-2014 | 9-Jan-2014 | 10-Oct-2013 | |||
HP-UX PA-RISC (64-bit) | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | Platform de-supported | 2-Jan-2014 | |||
IBM AIX on POWER Systems | TBA | See DOC ID 2766930.1 | 28-May-2019 | 20-Nov -2018 | 13-Apr-2017 | 14-Nov-2014 | 9-Jan-2014 | 10-Oct-2013 | |||
IBM Linux on System z | TBA | See DOC ID 2766930.1 | 06-June-2019 | 20-Nov -2018 | 6-Jun-2017 | 14-Nov-2014 | 9-Jan-2014 | 9-Jan-2014 | |||
Microsoft Windows (32-bit) | Not Planned | Client Only – Oct 2021 | Client only – June 2019 | Not planned | Not planned | Not planned | Not planned | 25-Oct-2013 | |||
Platform | 23ai | 21c | 19 | 18 | 12.2.0.1 | 12.1.0.2 | 12.1.0.1 | 11.2.0.4 | |||
Instant Client-Only Releases | |||||||||||
Apple macOS (Intel) download | 10-Sept-2019 | Mar-2018 | 15-Jan-2018 | 2016 | Not planned | 20-Apr-2014 Download |
|||||
IBM Linux on POWER (Big Endian) | 18-Dec-2015 (download) | 4-Dec-2014 | |||||||||
IBM Linux on POWER (Little Endian)download | Jul-2019download | 31-Oct-2018 (download) |
7-Jun-2017 (download) | 18-Dec-2015 (download) |
|||||||
Linux on Arm | Not Planned | May-2021download | |||||||||
1 Oracle Base Database Service (formerly Oracle Database Cloud Service) and Exadata Database Service (formerly Exadata Cloud Service and Exadata Cloud@Customer) follow the same support life and error correction schedule as on-premises dates unless otherwise noted in Table 1 above (for example, 11.2.0.4 MDS). Also, Extended Support is bundled with both the license-included and BYOL versions of these services and does not require additional fees. These services will not be covered under Sustaining Support and Oracle makes no commitment that any cloud service instances will continue to run after the end of their support life (Premier, extended, error correction, or MDS). We will not disable any installed databases upon the expiration of support, but the underlying infrastructure will continue to be updated. The infrastructure updates may render the unpatched databases inoperable. We make no commitment as to how long any unpatched databases will continue to run.2 Oracle’s current plan for Oracle Autonomous Database – Shared Exadata Infrastructure, Oracle Autonomous Database – Dedicated Exadata Infrastructure, Autonomous Database on Exadata Cloud@Customer services is to support Long Term Release versions for a similar period of time found for those major releases when deployed on-premises. The intent of this plan is to provide stability of service experience for the thousands of critical database deployments found in Oracle Cloud. Additionally, we will at times make available Innovation Releases as part of the Autonomous Database Cloud Services. Innovation Releases, when provided, will be supported for a shorter period of time as compared to a Long Term Release, similar to what is found for those releases when deployed on-premises. Oracle reserves the right to change this plan with changing business requirements. Any change will take into account that stability is of utmost importance to Oracle’s many thousands of mission critical deployments.
References for Client-Only: 32-bit Linux & Windows Instant Clients, https://www.oracle.com/database/technologies/instant-client/linux-x86-32-downloads.html https://www.oracle.com/database/technologies/instant-client/microsoft-windows-32-downloads.html |
Oracle 23ai 变化之—-默认数据文件变为bigfile
oracle把23c变为23ai,引入了很多新特性,今天下载了free版本的虚拟机登录进去第一感觉就是system,sysaux,undo等文件以前版本默认的smallfile变为了bigfile
SQL> select BANNER_FULL from v$version; BANNER_FULL ---------------------------------------------------------------------------------- Oracle Database 23ai Free Release 23.0.0.0.0 - Develop, Learn, and Run for Free Version 23.4.0.24.05 SQL> show pdbs; CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------- ---------- 2 PDB$SEED READ ONLY NO 3 FREEPDB1 READ WRITE NO SQL> select con_id,ts#,name,bigfile from v$tablespace order by 1,2; CON_ID TS# NAME BIG ---------- ---------- ------------------------------ --- 1 0 SYSTEM YES 1 1 SYSAUX YES 1 3 TEMP NO 1 4 USERS YES 1 5 UNDOTBS2 YES 2 0 SYSTEM YES 2 1 SYSAUX YES 2 2 UNDOTBS1 YES 2 3 TEMP NO 3 0 SYSTEM YES 3 1 SYSAUX YES 3 2 UNDOTBS1 YES 3 3 TEMP NO 3 6 USERS NO 14 rows selected. SQL> select con_id,file#,ts#,rfile#,name from v$datafile; CON_ID FILE# TS# RFILE# NAME ---------- ---------- ---------- ---------- ------------------------------------------------------ 1 1 0 1024 /opt/oracle/oradata/FREE/system01.dbf 2 2 0 1024 /opt/oracle/oradata/FREE/pdbseed/system01.dbf 1 3 1 1024 /opt/oracle/oradata/FREE/sysaux01.dbf 2 4 1 1024 /opt/oracle/oradata/FREE/pdbseed/sysaux01.dbf 1 7 4 1024 /opt/oracle/oradata/FREE/users01.dbf 2 9 2 1024 /opt/oracle/oradata/FREE/pdbseed/undotbs01.dbf 3 12 0 1024 /opt/oracle/oradata/FREE/FREEPDB1/system01.dbf 3 13 1 1024 /opt/oracle/oradata/FREE/FREEPDB1/sysaux01.dbf 3 14 2 1024 /opt/oracle/oradata/FREE/FREEPDB1/undotbs01.dbf 3 15 6 15 /opt/oracle/oradata/FREE/FREEPDB1/users01.dbf 1 16 5 1024 /opt/oracle/oradata/FREE/undotbs2.dbf 11 rows selected.
PostgreSQL解析wal日志之—walminer
在oracle数据库中可以通过logminer实现对归档日志的解析,从而分析执行sql语句和undo sql,可以实现某些情况下数据库一些操作的定位(比如日志突然增加,数据突然丢失)以及一些故障的恢复(比如需要把update/delete执行的数据找回)等。在PostgreSQL数据库中walminer可以实现该需求,对pg的预写式日志(wal)的解析,具体见官网:https://gitee.com/movead/XLogMiner/
walminer安装
[postgres@localhost tmp]$ ls -l walminer_x86_64_centos_v4.6.0.tar.gz -rw-r--r--. 1 root root 3866437 Apr 18 10:08 walminer_x86_64_centos_v4.6.0.tar.gz [postgres@localhost tmp]$ tar xzvf walminer_x86_64_centos_v4.6.0.tar.gz walminer_x86_64_centos_v4.6.0/ walminer_x86_64_centos_v4.6.0/bin/ walminer_x86_64_centos_v4.6.0/bin/walminer walminer_x86_64_centos_v4.6.0/lib/ walminer_x86_64_centos_v4.6.0/lib/libpq.so.5.15 walminer_x86_64_centos_v4.6.0/lib/libpq.so.5 walminer_x86_64_centos_v4.6.0/lib/libpq.so walminer_x86_64_centos_v4.6.0/share/ ………… [root@localhost ~]# mkdir -p /usr/local/walminer/ [root@localhost ~]# chown postgres:postgres /usr/local/walminer/ [root@localhost ~]# cp /tmp/walminer/walminer.license /usr/local/walminer/ [postgres@localhost bin]$ cd /tmp/walminer [postgres@localhost walminer]$ cp -rp * /usr/local/walminer/ [postgres@localhost bin]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/walminer/ [postgres@localhost bin]$ cd /usr/local/walminer/bin [postgres@localhost bin]$ ./walminer help walminer [command] [options] COMMANDS --------- #wal2sql options -D dic file for miner -a out detail info for catalog change -w wal file path to miner -t dest of miner result(1 stdout, 2 file, 3 db)(stdout default) -k boundary kind(1 all, 2 lsn, 3 time, 4 xid)(all default) -m miner mode(0 nomal miner, 1 accurate miner)(nomal default) if k=2 -r the relname for single table miner -s start location if k=2 or k=3, or xid if k = 4 if k=2 default the min lsn of input wals if k=3 or k=4 you need input this -e end wal location if k=2 or k=3 if k=2 default the max lsn of input wals if k=3 you need input this -f file to store miner result if t = 2 -d target database name if t=3(default postgres) -h target database host if t=3(default localhost) -p target database port if t=3(default 5432) -u target database user if t=3(default postgres) -W target user password if t=3 --------- #builtdic options -d target database name for connect(default postgres) -h target database host(default localhost) -p target database port(default 5432) -u target database user(default postgres) -W target user password -D dic produce path -f rewrite walminer dic if exists -s only database pointed by -d --------- #showdic options -D dic file to show --------- #avatardic options -r avatar rel that new created -n avatared relfilenode -D avatared walminer dic path -b target database name which contain rel pointed by -r --------- #regress(not support for user) options -w test database wal path(default postgres) -d test database name(default postgres) -h test database host(default localhost) -p test database port(default 5432) -u test database user(default postgres) -P apply database port -W test user password --------- #fosync options -D dic file for miner -w wal file path to miner -t dest of miner result(1 stdout, 2 file, 3 db, 4 apply)(stdout default) -f file to store miner result if t = 2 -l lsn it start fync -d target database name if t=3 or 4(default postgres) -h target database host if t=3 or 4(default localhost) -p target database port if t=3 or 4(default 5432) -u target database user if t=3 or 4(default postgres) -W target user password if t=3 or 4 --------- #pgto options -c configure path -i to init a CDC configure -r to run a CDC configure Below is needed when -i -d source database name(default postgres) -h source database host(default localhost) -p source database port(default 5432) -u source database user(default postgres) -w source user password -D target database name -H target database host -P target database port -U target database user -W target user password -K target database type(1 postgres) (support postgres only currently) -s slot name need for CDC --------- #waldump options -D dic file for miner -w wal file path to dump -t dest of miner result(1 stdout, 2 file)(stdout default) -s start lsn to dump -e end lsn to dump -f file to store miner result if t = 2 -v verbose --------- ################################################# [postgres@localhost bin]$
postgresql创建测试表和插入数据
[postgres@localhost ~]$ psql psql (16.2) Type "help" for help. postgres=# select now(); now ------------------------------- 2024-04-25 10:48:00.602067-04 (1 row) postgres=# postgres=# create table t_walminer(id int,name varchar(100)); CREATE TABLE postgres=# insert into t_walminer values(1,'www.xifenfei.com'); INSERT 0 1 postgres=# insert into t_walminer values(2,'www.orasos.com'); INSERT 0 1 postgres=# insert into t_walminer values(3,'xifenfei'); INSERT 0 1 postgres=# select * from t_walminer; id | name ----+------------------ 1 | www.xifenfei.com 2 | www.orasos.com 3 | xifenfei (3 rows) postgres=# select now(); now ------------------------------- 2024-04-25 10:49:47.036881-04 (1 row) postgres=# select pg_switch_wal(); pg_switch_wal --------------- 0/D5023E8 (1 row)
walminer 生成字典
[postgres@localhost bin]$ ./walminer builtdic -D /usr/local/walminer/xifenfei.dic ################################################# Walminer for PostgreSQL wal Contact Author by mail 'lchch1990@sina.cn' Persional License for posgress ################################################# DIC INFO# sysid:7357852038421105818 timeline:1 dbversion:160002 walminer:4.6
walminer解析这个时间段wal操作
[postgres@localhost bin]$ ./walminer wal2sql -D /usr/local/walminer/xifenfei.dic -w /pg/database/data/pg_arch \ -k 3 -s 2024-04-24 -e 2024-04-26 ################################################# Walminer for PostgreSQL wal Contact Author by mail 'lchch1990@sina.cn' Persional License for posgress ################################################# Switch wal to /pg/database/data/pg_arch/000000010000000000000001 on time 2024-04-25 23:27:07.42721+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000002 on time 2024-04-25 23:27:07.45369+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000003 on time 2024-04-25 23:27:07.453891+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000004 on time 2024-04-25 23:27:07.486403+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000005 on time 2024-04-25 23:27:07.513144+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000006 on time 2024-04-25 23:27:07.538212+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000007 on time 2024-04-25 23:27:07.561455+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000008 on time 2024-04-25 23:27:07.584488+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000009 on time 2024-04-25 23:27:07.606598+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000A on time 2024-04-25 23:27:07.609195+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000B on time 2024-04-25 23:27:07.609344+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000C on time 2024-04-25 23:27:07.609364+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000D on time 2024-04-25 23:27:07.66233+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000E on time 2024-04-25 23:27:07.684666+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000F on time 2024-04-25 23:27:07.684877+08 Switch wal to /pg/database/data/pg_arch/000000010000000000000001 on time 2024-04-25 23:27:07.684899+08 Get start lsn 0/d4eb380 for time range Switch wal to /pg/database/data/pg_arch/00000001000000000000000D on time 2024-04-25 23:27:07.694947+08 [XID]=425507, [TOPXID]=0 [SQLNO]=1 [SQL]=INSERT INTO public.t_walminer(id ,name) VALUES(1 ,'www.xifenfei.com') [UNDO]=DELETE FROM public.t_walminer WHERE id=1 AND name='www.xifenfei.com' [database]=postgres [COMPLETE]=true [LSN]=0/d5021c8 [COMMITLSN]=0/d502218 [COMMITTIME]=2024-04-25 22:48:55.775279+08 ------------------------------------------------------ [XID]=425508, [TOPXID]=0 [SQLNO]=1 [SQL]=INSERT INTO public.t_walminer(id ,name) VALUES(2 ,'www.orasos.com') [UNDO]=DELETE FROM public.t_walminer WHERE id=2 AND name='www.orasos.com' [database]=postgres [COMPLETE]=true [LSN]=0/d502278 [COMMITLSN]=0/d5022c8 [COMMITTIME]=2024-04-25 22:49:10.769752+08 ------------------------------------------------------ [XID]=425509, [TOPXID]=0 [SQLNO]=1 [SQL]=INSERT INTO public.t_walminer(id ,name) VALUES(3 ,'xifenfei') [UNDO]=DELETE FROM public.t_walminer WHERE id=3 AND name='xifenfei' [database]=postgres [COMPLETE]=true [LSN]=0/d502328 [COMMITLSN]=0/d502370 [COMMITTIME]=2024-04-25 22:49:23.382642+08 ------------------------------------------------------ Switch wal to /pg/database/data/pg_arch/00000001000000000000000E on time 2024-04-25 23:27:07.696041+08 Switch wal to /pg/database/data/pg_arch/00000001000000000000000F on time 2024-04-25 23:27:07.696062+08 [postgres@localhost bin]$
通过上述测试证明walminer可以非常好的解析pg的wal日志