Exadata migration tips

August 7, 2012 Exadata, migration, oracle No comments

Exadata migration完成 目前采用的是物理DG switch over的方式 采用11g active duplicate 实现整个数据大小为2T左右 总共耗时约为10个小时 每秒达到近60M
采取这种方法的好处为:
1:主库无需停机
2:可以采用exadata最佳性能AU_SIZE=4M
3:复制过程中不会产生集中化IO,不过还是建议在夜里进行操作
4:可以直接switch over 使用原来的库为备库

处理完毕后 我们可以查看主机状态:

[grid@dm01db01 ~]$ crsctl stat res -t
-------------------[......]

Read more

一些数据对象的查找脚本

July 28, 2012 maintain, oracle No comments

在帮银联恢复数据库的时候 客户要求导出库里的一些存储过程,这里整理了一些脚本供大家使用

创建view

select 
  'CREATE OR REPLACE VIEW '||O.NAME||' ('||
   replace(c.cols,',',','||chr(10))||')'||CHR(10)||
  'as'||chr(10), v.text
from
user$ u, obj$ o, view$ v,
( SELECT COL.[......]

Read more

11.2.0.2 EXPDP 遭遇 ORA-4031

July 16, 2012 11g, maintain, oracle No comments

一套oracle 11.2.0.2 数据仓库系统使用expdp导出数据时 进程hang 死 使用kill -9命令杀掉之后 database一直没有释放latch 通过下面的日志可以发现 pmon已经发现 ospid=15038的process dead 但是无法clean 进程在为 “fixed allocation callback” 分配内存时 遭遇了ORA-4031,在这套库中stream_pool_size 并没有显式指定,而从11g开始oracle data pump开始使用Advanced Queue高级队列来控制其job作业,这也就是这个case的root cause。[……]

Read more

EM12c <.BEA-141281> unable to get file lock

July 16, 2012 12c, oracle 1 comment

EM12c OMS端在部署新的agent的时候 agent端无法upload文件到oms端

[oracle@yhdem logs]$ netstat |grep 4900 (EM_UPLOAD_PORT=4900)
[oracle@yhdem logs]$

[oracle@yhdem logs]$ vi /u01/middleware_12c/oms/sysman/prov/agentpush/logs/EMAgentPushLogger2012-07-02_10-55-00-AM.log.0

2012-07-16_09-45-10:INFO:Current OMS Hos[......]

Read more

Some Exadata Docs

July 15, 2012 Exadata, oracle No comments

可以通过以下文档了解exadata软硬件的一些情况,以及troubleshooting时如何收集信息,需要收集怎么样的信息-包括了hardware,software
network,ILOM等。另外还有一些ED的远程容灾建议。

Doc ID 888828.1 Database Machine and Exadata Storage Server 11g Release 2 (11.2) Supported Firmware and Software Versions

Doc ID 1187674.1 Master Note for Oracle Database Machi[……]

Read more

Exadata RDS

July 10, 2012 Exadata, oracle No comments

Oracle RAC RDS reference:

Oracle Real Application Clusters (RAC) allows Oracle Database to run any packaged or custom application, unchanged across a set of clustered servers. This provides high availability and flexible scalability. If a clustered server fails, then database continues running[……]

Read more

Scripts: Monitor smon rollback progress

July 7, 2012 maintain, oracle No comments

this scripts is used to monitor transaction rolling back progress

——————————————————————————-

— Script: rolling_back.sql
— Purpose: to predict when transactions will finish rolling back
— For: 9.0+

— Copyright: (c) Ixora Pty L[……]

Read more

Physical standby Failover

June 28, 2012 oracle, replication No comments

db1 –liu

SQL> select * from v$version;

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

Read more

闰月的威胁

June 26, 2012 linux No comments

来自公司SA组的一封邮件

HI All

简单来说Linux kernel低于2.6.18-164且开启NTP服务的server有自动重启的风险
目前我们大多数的server kernel如下
$ uname -a
Linux xen21-vm04 2.6.18-128.1.10.el5.xs5.5.0.51xen #1 SMP Wed Nov 11 08:31:24 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

10.1.0.99上
#chkconfig –list|grep ntp
ntpd 0:[……]

Read more

Recover physical standby database after loss of archive log(2)

June 20, 2012 oracle, replication No comments

Recover physical standby database after loss of archive log(2)

上次写过一篇DG丢失归档后的处理过程,总体来说就是使用增量备份覆盖gap数据从而跳过gap的archivelog 这里再阐述另一种情况

[oracle@db61 orcl]$ ora si
SQL*Plus: Release 10.2.0.5.0 – Production on Wed Jun 20 14:35:01 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.

Co[……]

Read more