datafile Checkpoint cnt

通过dump datafile header 发现每个Checkpoint cnt不同

大致原因如下:

1.tablespace 建立的时间不同 现在我们新建一个tablespace ->liu datafile->liu01.dbf

DATA FILE #10:
(name #14) /u01/liu01.dbf
creation size=128 block size=8192 status=0xe head=14 tail=14 dup=1
tablespace 8, index=8 krfil=10 prev_file=0
unrecoverable sc[……]

Read more

使用dbms_rowid恢复可用数据

最近看到同事的一个案例,觉得很有趣 现在测试下:
SQL> select * from v$version;

BANNER
—————————————————————-
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – Prod
PL/SQL Release 10.2.0.4.0 – Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0[……]

Read more

SYSAUX 表空间问题解决

通过awrinfo.sql 以及 v$sysaux_occupants对SYSAUX空间分析,发现OPTSTAT(历史统计信息)相关的表占用近28G,AWR相关占用空间4G多,经分析OPTSTAT的历史
统计信息系统会自动清理失败有如下原因:因为历史统计信息较多,通过DBMS_STATS.PURGE_STATS清理比较困难,因此与客户沟通后对wri$_optstat_histhead_history
和wri$_optstat_histgrm_history进行TRUNCATE后再通过DBMS_STATS.PURGE_STATS清理其它表的数据,并清理一些无效的ASH数据

一.清理S[……]

Read more

Why ASMLIB and why not?

ASMLIB是一种基于Linux module,专门为Oracle Automatic Storage Management特性设计的内核支持库
(kernel support library)。
长久以来我们对ASMLIB的认识并不全面,这里我们来具体了解一下使用ASMLIB的优缺点。

理论上我们可以从ASMLIB API中得到的以下益处:

总是使用direct,async IO
1.解决了永久性设备名的问题,即便在重启后设备名已经改变的情况下
2.解决了文件权限、拥有者的问题
3.减少了I/O期间从用户模式到内核模式的上下文切换,从而可能降低cpu使用率
4.减少了[……]

Read more

NBU 异机恢复测试

一、搭建恢复测试环境

安装操作系统
操作系统安装,过程略

硬件配置:
# hostname
nbutest
#prtconf
System Model: IBM,7026-B80
Machine Serial Number: 10960AF
Processor Type: PowerPC_POWER3
Number Of Processors: 1
Processor Clock Speed: 375 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: -1 NULL
Memory Size: 4096[……]

Read more

sqlnet.ora 控制访问IP

sqlnet.ora中进行下列参数的设置可以限制或允许用户从特定的客户机连接到数据库中

[root@Hong ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:24:93:F5
inet addr:192.168.1.99 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe24:93f5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX pa[……]

Read more

Using TUNE_MVIEW and EXPLAIN_REWRITE to enable us to tune MV Fast Refreshes and Query Rewrites

We can use the DBMS_MVIEW.EXPLAIN_REWRITE package (which was first introduced in Oracle 9i if memory serves me right) to diagnose why Query redirection to a materialized view is not happening.
We can redirect the output to a table called REWRITE_TABLE which is created via the utlxrw.sql script loca[……]

Read more

exchange 备份错误

错误状态:

之前备份都正常,日志正常清除,NBU配置都正常,找不出可更改选项。
备份时报如下错误,且日志不能清除,造成系统空间报警:
2010-9-3 18:32:41 – Error bpbrm(pid=876580) 从客户端 SHHQ-Mail13: 出错 – failure reading file:
Microsoft Information Store:\First Storage Group\Log files (BEDS 0xE000FE7C: )
2010-9-3 18:33:14 – Error bpbrm(pid=876580) 从客户端 SHHQ-Mai[……]

Read more

Scroll to Top