环境:redhat 5.5+oracle 10g rac+netapp
首先碰到DMM问题,netapp存储通过DMM软件mapping过来的设备 oracle无法识别 报如下错误:
the location /dev/mapper/ocr1 ,entered for the oracle cluster registry(OCR) is not shared across all the nodes in the cluster…
起初怀疑是device 无法共享, 分别在两个node进程dd if-of操作 发现导入内容在另一个节点可以识别,确保磁盘是共享的,查看mu[……]
Read more
11G新特性 IO Calibration可以帮我们估算出存储的读写性能,在使用这个特性之前 我们需要满足一些条件:
.在linux系统中默认是不开启异步IO的
SQL> show parameter filesystemio_options
NAME TYPE VALUE
———————————— ———– ——————————
filesystemio_options string none
可以通过以下语句查找asynchrono[……]
Read more
今天新上线的系统物理备库出现以下错误:
[oracle@db-15 ~]$ sqlplus ‘/as sysdba’
SQL*Plus: Release 10.2.0.5.0 – Production on Fri Dec 16 20:37:38 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 – 64bit Production
With t[……]
Read more
Purpose of this document is to show a complete 9i to 10g upgrade of an Oracle database on
AIX 5L using DBUA ( Database Uprgrade Assistant)
3.2 TECHNICAL SOLUTION
10g upgrade from 9.2.06 to 10.2.0.3 for any database -:
Check the init.ora parameter file in the 9I ORACLE_HOME/dbs
Make sure the[……]
Read more
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
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
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
通过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
最近看到同事的一个案例,觉得很有趣 现在测试下:
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
通过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