如何诊断ORA-125XX连接问题

ORA-12560

以下这个Action Script是我收集的在解决ORA-125XX(如ORA-12560)这类网络链接故障时的一些思路,主要包括 现有的网络配置(client & server side)、监听日志、SQLNET Client trace等信息– How to troubleshooting ORA-125** connection issues:

 

 

# CHECK FIREWALL, WINDOWS FIREWALL , ANTI-Virus Software First ! ping hostname tnsping TNS trcroute TNS telnet <hostname> <port>

tracert hostname

client side sqlplus scott/tiger@TNS

& server side sqlplus scott/tiger@TNS

cat /etc/hosts cat /etc/resolv.conf cat /etc/nsswitch.conf ipconfig . . . → Read More: 如何诊断ORA-125XX连接问题

Oracle为何会发生归档日志archivelog大小远小于联机重做日志online redo log size的情况?

《rac不到redo大小就切换是什么原因?》

 

这个帖子详细讨论了RAC或单机环境中归档日志没到online redolog size 大小就马上切换问题的成因, 主要是由于oracle内部算法所决定的, 一般不会造成实例 性能或可用性问题, 唯一的困扰可能是 生成了较多的小归档日志。

 

Know more about RBA redo block address

A “Redo Block Address” (RBA) describes a physical location within a redo log file. An RBA consists of the following:

Log sequence number Block number within log file Byte offset within block

The structure of the redo block address is given below : 1 – The number of the redo log. [4 bytes]

2 – . . . → Read More: Know more about RBA redo block address

9i中DG remote archive可能导致Primary Database挂起

9i中若dg的remove archive stuck卡住可能即便在Max Performance最大性能模式下也会导致Primary database 主库的local archive 本地归档无法正常进行, 进而导致Primary db hang挂起。

Solaris sparce 64 平台上的9.2.0.5 库 的相关日志:

 

Verifying the issue in the alert log Fri Oct 28 08:10:12 2011 ALTER SYSTEM SET log_archive_dest_1=’location=/u24/app/oradata/temp_arch’ SCOPE=BOTH; Fri Oct 28 08:10:51 2011 ORACLE Instance maclean – Can not allocate log, archival required Fri Oct 28 08:10:51 2011 . . . → Read More: 9i中DG remote archive可能导致Primary Database挂起

Oracle数据库升级与补丁

以下是Maclean.Liu 编写或收集的数据库升级(Upgrade)与补丁(patch fix)方面的知识:

 

甲骨文发布2012 1月数据库安全补丁Critical Patch Update January 2012 Oracle数据库版本10.2实际进入扩展支持Extended Support周期 Patch Set Update and Critical Patch Update October 2011补丁更新发布了 11.2.0.3 Patch Set – List of Bug Fixes by Problem Type 快速升级Oracle 11.2.0.2 RAC到11.2.0.3 Upgrade GI/CRS 11.1.0.7 to 11.2.0.2. Rootupgrade.sh Hanging Oracle补丁集的补丁号Patch ID/Number速查 Oracle 11gR2发布11.2.0.3 Patchset补丁集-又一重量级更新 Slide:11g新特性-在线实施补丁online patching Slide:Oracle数据库升级前必要的准备工作 深入了解Oracle数据字典升级脚本catupgrd.sql调用过程 Slide:如何安装Oracle one-off . . . → Read More: Oracle数据库升级与补丁

利用Oracle Enterprise Manager Cloud Control 12c创建DataGuard Standby

Oracle Enterprise Manager Cloud Control 12c在对数据库管理(Database Management)的各个方面相比11g Grid Control都有所增强, 具体可以参考《New Features In Oracle Enterprise Manager Cloud Control 12c》。

 

下面我们利用 EM Cloud Control 12c来创建一个物理备库 physical Standby :

 

1. 首先确保Primary Database处于归档模式下 archivelog mode下 , 且EM至少拥有2个以上的host target, 确认在standby host上已安装与primary database 版本一致的数据库软件ORACLE_HOME

 

2. 正式创建 physical standby

 

登录OEM界面,点击target=>Database=>选择你要创建standby的数据库名=> 点击Availability => Add Standby Database:

 

. . . → Read More: 利用Oracle Enterprise Manager Cloud Control 12c创建DataGuard Standby

Oracle数据库实用脚本

以下是Maclean.Liu所编写或收集的Oracle数据库实用脚本的列表,在这里分享一下:

 

Script:收集Enterprise Manager Grid Control/Agent/Database Control诊断信息 Script:收集Exadata诊断信息 Script:收集RAC诊断信息 Script:收集自动SGA内存管理ASMM诊断信息 Script:Collect vip resource Diagnostic Information 11g新特性:hangdiag.sql实例hang诊断脚本 Script:verify Oracle Object timestamp discrepancy Script:SQL调优健康检查脚本 Script:列出本会话的细节信息 利用rowid分块实现非分区表的并行update与delete Script:计算Oracle Streams进程所占用的内存大小 利用RMAN检测数据库坏块的脚本 Script:利用外部表实现SQL查询Oracle告警日志Alert.log Script: 收集RAC DRM 诊断信息 Script:10g中不用EM显示Active Session Count by Wait Class Script:数据库最近的性能度量 Script:收集数据库中用户的角色和表空间等信息 Script:收集介质恢复诊断信息 Script:收集Flashback Database Log诊断信息 Script:列出Oracle每小时的redo重做日志产生量 Script:收集11g Oracle实例IO性能信息 Script:检查数据库当前是否有备份操作在执行中 Script:List Schema/Table Constraints Script:RAC Failover检验脚本loop.sh . . . → Read More: Oracle数据库实用脚本

Mysql存储引擎特性比较

下表列出了Mysql 主要数据引擎架构(如myisam、innodb Storage Engine )的特性比较:

 

Feature MyISAM NDB Archive InnoDB Memory Storage Limits No Yes No 64TB Yes Transactions No Yes No Yes No Locking granularity Table Row Row Row Table MVCC snapshot read No No No Yes No Geospatial support Yes No Yes Yes No Data caches No Yes No Yes NA Index . . . → Read More: Mysql存储引擎特性比较