AutoInstallSoftware【ORACLE】
# -*- coding:utf-8 -*-require 'chef/log'require 'socket'hostname = Socket.gethostnameinclude_recipe "oracle::softcheckenv"dbver = "#{node['oracle']['S_ora_version']}"case dbver##############add by ygzhou(Zhou) 2016-06-03 when "11.2.0.3.15" then Chef::Log.info "*"*10...
Oracle DgFailOver
#!/bin/bash## Creater : ygzhou(Zhou)# Date : 2016-05-11# Description : Auto Failover PHYSICAL STANDBY Database############################################################# failover.sh ############################################################## Some important Environment variablesecho ...
shell scripts
[sfdba@cnsz22pl0028:/dba/oracle/diag/rdbms/ecpdbsit/ecpdbsit/trace]$cat /usr/bin/sysauto_SF#!/bin/bash########## 0. Version Information ##########printversion (){LastModify=`cat $0 | grep '^#' | grep '# Last Modified:' | awk '{print $NF}'`Version=`cat $0 | grep '^#' | grep '# Version:' | awk '...
expdp Hit bug( Bug 5879865)
最近计划升级公司运行N年的一套10g数据库,计划升级到11.2.0.4;测试expdp/impdp 升级方案的过程中遇到如下问题:Export: Release 10.2.0.3.0 - 64bit Production on Tuesday, 24 March, 2015 13:33:15 Copyright (c) 2003, 2005, Oracle. All rights reserved. ;;; Connected to: O...
How to migrate data from Oracle to MSSQLSERVER
環境說明: Oracle 11.2.0.1 + Windows 2003 R2 MSSQLServer 2008 R2 老舊系統翻新需,後台數據庫規劃為MSSQLSERER數據庫,這樣就涉及到歷史資料遷移的問題。根據Microsoft MSSQLSERVER提供的遷移工具SQL...
why need Diagnostics Pack + Tuning Pack
参考: Oracle? Database Reference 11g Release 2 (11.2) E40402-15 http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams038.htm#REFRN10296 计划升级数据库版本9i === > 11gDIAGNOSTIC pack 主要包括 AWR, ADDM等 TUNING pack 主要包括SQL Tuning Advisor, SQLAccess Advisor等 1. 优点 DIAGN...
ASM disk group mount fails with ORA-15036
ASM 磁盘组无法mount:Autotune of undo retention is turned on. IMODE=BRILAT =0LICENSE_MAX_USERS = 0SYS auditing is disabledStarting up:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Automatic Storage Management option.ORACLE_HOME = /u01/app/grid/product/...
How to check whether the current database in using Oracle options
1.How to check whether the current database in using Oracle Diagnostics Pack and Oracle Tuning Pack ?10g Enterprise Edition ============================ If the DB version is 10g Enterprise Edition, please using following sql to check whether the Diagnostics Pack and Tuning Pack are in ...
ORA-02049: timeout: distributed transaction waiting for lock
target : 11.2.0.3aux: 11.2.0.1linkdb:SP执行于11.2.0.3版本,通过link执行如下sqloracle对ora-02049解释: 问题处理过程以及分析:SELECT /*+ RULE */ LPAD (' ', DECODE (L.XIDUSN, 0, 3, 0)) || L.ORACLE_USERNAME  ...
what the root cause connect db slow
新接手的几个DB出现问题,折腾一周的问题终于结案,记录在此。2014.08.29日09:52收到 Mail 如下: 第一反应怀疑网络出现延迟掉包: 但是此时tnsping tns延时15000ms,ping ip...
The OracleService$$$ service terminated unexpectedly.
Oracle.exe服务异常直接导致服务关闭:检查DB alert_sid.log无任何有用信息14/06/19/06:40 ------ CHECK TIME : 14/06/19/06:50 ------ CHECK TIME : 14/06/19/07:00 ------ CHECK TIME : 14/06/19/07:10 ------ CHECK TIME : 14/06/19/07:20 ------ CHECK TIME : 14/06/19/07:30 ------ CHECK TIME : 14/06/19/...
ORA-00600: internal error code, arguments: [kpnatdm】
邮件警报数据库遇到ORA-00600异常: 分析dump文件:分析异常SQL:
远程挂载NFS共享目录引发死机问题
2014 02 26 13:30:00收到DB Server DOWN机信息,速度查看无法ping通,机房点检发现黑屏...分析原因该异常为OS bug。
外键引发的异常
2014 02 24 23:15接到公司电话,生产线出现无法运行现象、请一线支援ping 数据库服务器反馈说无法ping通。 立马起床穿衣、飞奔办公室。 23:35抵达办公司,SA组成员还没有到;检查发现服务器没有问题(很怀疑一线支援啊!); &nb...
Windows环境下无缝切换Listener log文件
在Windows环境下当Listener log过大的时候会出现Client端连接异常,在不关闭监听的状态下实现log切换操作。记录一下本次切换log操作,以备忘!
升级引起的 CPU峰值
DBServer 最近在06:00--10:00之间规律的出现CPU峰值,遵循以外的经验首先做DB效能分析、高峰时间段应用情况,从中发现有一个应用每小时响应1800次、单次1.2s,耗用整体CPU使用情况的30%;而其他时间段该应用小时1600次、单次1s。跟用户单位了解到该情况是正常的,上午生产任务一般较重...&nbs...
Using Fullbackup recovery one tablespace
9月份新公司以来的第一篇文章,有关数据恢复需求的记录: 用户需求查询2012年9月份的2笔数据,DBA需要从1.7TB的RMAN备份集中还原出2012-09年的数据。1,目前所有的可利用的设备存储空间为700GB,需还原的DB_SIZE=1.8TB; &nbs...
數據欄位類型匹配
/*<Rev>7</Rev>*/ --========================================================================================== -- Generated By: &...
向大表添加含有默認值的欄位
現有表bigtable ---------10000000筆數據,要求不再不影響應用的情況下向該表添加一個含有默認值的欄位COL_NEW 一、在Oracle11.2.0.3數據庫中: 方...
数据量大引发的disconnect Issue问题
8:30點接到一線支援兄弟電話,生產線出現個別線別部分工站disconnect現象、用戶暴跳......接到電話後、聯繫一線現象描述、根據應用的特性,初步判斷為應用回應時間過長、出現...