如何重置Exadata cell上的flash cache的内容

如何重置Exadata cell上的flash cache的内容?

可以通过以下命令实现:


cellcli
CellCLI: Release 11.2.3.1.1 - Production on Sun Sep 02 07:29:08 EDT 2012

Copyright (c) 2007, 2011, Oracle.  All rights reserved.
Cell Efficiency Ratio: 527

CellCLI> LIST FLASHCACHECONTENT where objectnumber=17425 detail
         cachedKeepSize:         8755838976
         cachedSize:             8757706752
         dbID:                   2080757153
         dbUniqueName:           DBM
         hitCount:               12940
         hoursToExpiration:      21
         missCount:              78488
         objectNumber:           17425
         tableSpaceNumber:       7

仅需要设置immediate cellsrv.cellsrv_flashcache(Reset,0,0,0) event,event的设置语法与普通的 RDBMS十分相似

CellCLI> alter cell events = "immediate cellsrv.cellsrv_flashcache(Reset,0,0,0)"
Cell dm01cel01 successfully altered

CellCLI> LIST FLASHCACHECONTENT where objectnumber=17425 detail


其他一些有用的命令:

将flashcache的状态转储到trace file中:

CellCLI> alter cell events = “immediate cellsrv.cellsrv_flashcache(dumpStats,0,0,12345)”

重置状态信息

CellCLI> alter cell events = “immediate cellsrv.cellsrv_flashcache(resetStats,0,0,0)”

关注dbDao.com的新浪微博

扫码关注dbDao.com 微信公众号:

Speak Your Mind

TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569