Wednesday, 7 August 2013
Oracle Database 12c: Oracle Database 12c New AWR Report Sections
Oracle Database 12c: Oracle Database 12c New AWR Report Sections: Below are a few new sections I found in the Oracle Database 12c AWR Report This sections contains info on GoldenGate component...
Oracle Database 12c: ASM 12101 Normal Redundancy Testing
Oracle Database 12c: ASM 12101 Normal Redundancy Testing: We will be testing normal ASM redundancy using ASM 12c. The test will simulate a device failure for one of the devices used by ASM disk. I...
Oracle Database 12c: Upgrade Grid Infrastructure Cluster 11203 to 12101...
Oracle Database 12c: Upgrade Grid Infrastructure Cluster 11203 to 12101...: This is an out-of-place upgrade, which will create a new GI home and leave old home untouched for us to rollback/downgrade easily. My Set...
Oracle Database 12c: Create Oracle Database 12c Container Database (CDB...
Oracle Database 12c: Create Oracle Database 12c Container Database (CDB...: In this demo I show how to create a CDB using DBCA If you have not read or heard about CDB or PDB I recommend a few references below. C...
Oracle Database 12c: Install Oracle Database 12c Single Instance Softwa...
Oracle Database 12c: Install Oracle Database 12c Single Instance Softwa...: Install Oracle Database 12c Single Instance Software Only Installing Oracle Database 12c Software Only 1. ./runInstaller 2. N...
Oracle Database 12c: Oracle Database 12c Multitenant Architecture Part ...
Oracle Database 12c: Oracle Database 12c Multitenant Architecture Part ...: Now that Oracle Database 12c has been release everyone wants to know about the new multitenant architecture. In part 1 of the multitenant A...
Oracle Database 12c: Provision Cross Platform non-CDB 11gr2 to Pluggabl...
Oracle Database 12c: Provision Cross Platform non-CDB 11gr2 to Pluggabl...: In this demo I will show how to provision PDB on RedHat Linux from a non-CDB 11gr2 on Solaris. You maybe ask what the reason is for mov...
Oracle Database 12c: Use Database 12c Net Manager to Configure TNS for ...
Oracle Database 12c: Use Database 12c Net Manager to Configure TNS for ...: In this demo I will show how to use the well known Net Manager utility to configure the local TNS file on the Multitenant environment. The N...
Oracle Database 12c: RMAN Backup for Multitenant Architecture
Oracle Database 12c: RMAN Backup for Multitenant Architecture: In this demo I will show how to handle different types of RMAN backups in a Multitenant environment. In a Multitenant environment for c...
Oracle Database 12c: Startup and Shutdown of a Container Database
Oracle Database 12c: Startup and Shutdown of a Container Database: In this demo I show how to shutdown and start the container database. I also show what you need to do with your pluggable databases after a ...
Thursday, 11 July 2013
Hemant's Oracle DBA Blog: Interesting Bugs in 12cR1
Hemant's Oracle DBA Blog: Interesting Bugs in 12cR1: Oracle has documented known bugs in 12.1 Some that I find interesting (without having tested them, but only relying on the documentation)...
Hemant's Oracle DBA Blog: 12c RMAN Restrictions -- when connected to a PDB
Hemant's Oracle DBA Blog: 12c RMAN Restrictions -- when connected to a PDB: From the 12c documentation, it is clear that a Pluggable Database does not have (a) it's own instance (b) it's own redo and archive...
Wednesday, 3 July 2013
The Momen Blog: Upgrading Oracle Database 11.2.0.3 to 12.1.0 (Orac...
The Momen Blog: Upgrading Oracle Database 11.2.0.3 to 12.1.0 (Orac...: There are different ways of upgrading to the latest release of Oracle database and Oracle provides multiple methods to upgrade. Few are lis...
Friday, 21 June 2013
Hemant's Oracle DBA Blog: Getting the ROWIDs present in a Block
Hemant's Oracle DBA Blog: Getting the ROWIDs present in a Block: Here is a demonstration of getting the ROWIDs present in a block. First I start with a new Table and identify its OBJECT_ID and Blo...
Tuesday, 18 June 2013
Data Warehousing and Big Data from an Oracle Perspective: Oracle Wins Big Data Company of the Year 2013
Data Warehousing and Big Data from an Oracle Perspective: Oracle Wins Big Data Company of the Year 2013: Great news from the Storage Awards 2013. Oracle won the "Big Data Company of the Year 2013" award. The event took place on 6 June ...
Friday, 14 June 2013
The Arup Nanda Blog: Primary Keys Guarantee Uniqueness? Think Again.
The Arup Nanda Blog: Primary Keys Guarantee Uniqueness? Think Again.: When you create a table with a primary key or a unique constraint, Oracle automatically creates a unique index, to ensure that the column do...
Monday, 10 June 2013
The Momen Blog: OOW-2012: Very Large Databases (VLDB): Challenges ...
The Momen Blog: OOW-2012: Very Large Databases (VLDB): Challenges ...: I would like to thank all the attendees for attending my session "Very Large Databases (VLDB): Challenges and Opportunities". I am...
The Momen Blog: Bug: ORA-00979: not a GROUP BY expression
The Momen Blog: Bug: ORA-00979: not a GROUP BY expression: Bugs and performance degradation are part of database upgrade stories and we have witnessed yet another post-upgrade bug after upgrading our...
The Momen Blog: Exporting Multiple Tables on a Common Filter
The Momen Blog: Exporting Multiple Tables on a Common Filter: To be frank, I consider myself novice when it comes to advanced export/import requirements. This is because I don’t deal with these utilit...
The Momen Blog: Connecting to Oracle Database Even if Background P...
The Momen Blog: Connecting to Oracle Database Even if Background P...: Yesterday, I received an email update from MOS Hot Topics Email alert regarding a knowledge article which discusses how to connect to an Ora...
Sunday, 9 June 2013
The Arup Nanda Blog: Switching Back to Regular Listener Log Format
The Arup Nanda Blog: Switching Back to Regular Listener Log Format: Did you ever miss the older listener log file format and want to turn off the ADR-style log introduced in 11g? Well, it's really very si...
The Arup Nanda Blog: Application Design is the only Reason for Deadlock...
The Arup Nanda Blog: Application Design is the only Reason for Deadlock...: [Updated on 4/20/2013 after feedback from Charles Hooper , Jonathan Lewis , Lau rent Schneider and Mohamed Houri and with some minor cosm...
The Arup Nanda Blog: Streams Pool is only for Streams? Think Again!
The Arup Nanda Blog: Streams Pool is only for Streams? Think Again!: If you don’t use the automatic SGA (i.e. set the sga_target=0 ) - something I frequently do - and don’t use Streams, you probably have set t...
The Arup Nanda Blog: Demystifying Big Data for Oracle Professionals
The Arup Nanda Blog: Demystifying Big Data for Oracle Professionals: Ever wonder about Big Data and what exactly it means, especially if you are already an Oracle Database professional? Or, do you get lost in ...
Tuesday, 21 May 2013
Exadata Smart Flash Cache - a note of understanding
I thought of publishing this post to serve as a note of understanding on Smart Flash Cache in an Exadata database system. It outlines the general behavior and working mechanism of flash in co-ordination with storage intelligence. Here we go -
Exadata Smart Flash Cache
The Oracle Exadata is meant to deliver high performance through its smart features. One of its smartly carved out feature is intelligent and very smart flash cache. The flash cache is a hardware component configured in the exadata storage cell server which delivers high performance in read and write operations. There are four flash cards in each of the storage cell and each flash card contains a flash disk. In total, there are 16 flash disk contained by a single storage cell server.
In Exadata x3 version, the flash cache capacity has been increased by four times, 40 times the response speed and 100GB/sec scan rates. In X3 version, the Sun flash F40 PCIe cards total upto 22.4 TB of flash compared to 5.4TB from the X2 version. In addition, they are capable of scanning the data 1.4 times faster than X2 version. The flash belongs to eMLC category (enterprise grade multi-level cell) which employs different techniques to improve flash health, endurance and most importantly, accommodate more write cycles (20k to 30k). (Write cycle – transparent process of making room for the new incoming data by flushing out old one)
Flash Cache Hardware details
Exadata X2 version – [Sun F20 cards]
Capacity = 4(no of flash cards in a cell) * 4 (no of flash disk per card) * 24GB (single flash disk capacity) = 384GB per storage cell
Exadata X3 version – [Sun F40 cards]
Capacity = 4(no of flash cards in a cell) * 4 (no of flash disk per card) * 100GB (single flash disk capacity) = 1600GB per storage cell
The motivation and how the Flash works?
The IO operations on the disk are mechanical as a block has to travel a specified path and sit at a specific location. Being a static memory, the disk operation to place a block are significantly costlier. Flash cache is a volatile memory which enables huge reduction in IO operations by replacing them fast and rapid cache operations. In an OLTP system, the database is read write intensive and data grows at an uneven rate. The flash cache is designed to reduce the IO bottlenecks and yield atleast 20x benefits by speeding up IO operations. The cache operations are fully redundant and transparent to the end user except the statistics. The flash cache can also be worked in co ordination with IORM to control the use of flash in case of multiple databases. This feature enables the customers to reserve flash for the critical databases and ensure transparent performance benefits.
The smartness of the flash comes with the fact that it has a peculiar ability to understand the type of IO(s). Its because of this intelligence that it knows what IO(s) to cache and which one to skip. Flash cache caches IO pertaining to control files, file headers, data blocks and index blocks while it skips the IO(s) incurred in backups, mirroring, data pumps, and large table scans.
Important: Do not confuse the exadata smart flash cache with the flash cache option in Oracle database 11gr2 on solaris or linux. The "database flash cache" is an extension to SGA to expand buffer cache area on the database server. But the exadata smart flash cache resides on the storage server to cache the frequently accessed data and speed up the read (also write with X3) operations by reducing disk IO(s).
The exadata X3 series makes a considerable software level changes to the flash cache by speeding up not only read operations but write operations as well. It is capable of supporting 1 million 8k flash write per second and reading 1.5 million 8k blocks. This makes the new flash 20x more efficient than the X2 or V2 series flash. So now the cache is not only capable of keeping the hot data but in fact, all the data whatever comes in from the database. The credit goes to the new working policy adopted by the flash – known as Write Back Cache.
Make the flash persistent by partitioning flash disk into grid disk
The flash memory dumps the cachable hot data which can be lost once the power goes off (by virtue of being a volatile memory). Optionally, a portion of flashcache can be partitioned and utilized as persistent logical flash disks. Thereafter, the flash disks can be used to store (not cache) the hot data and shield it from power risks. Grid disks can be carved out of the flash based cell disks which can be further assigned to an ASM disk group. The partitioning and assigning process is very similar to the physical disks partitioning.
Though the flash based grid disks defeat the purpose of cache, but it can be used as a reserve disks in case of highly intensive write operations on the disk where the existing configuration of the disk is not sufficient. Another points which discourages partitioning the disk is that the flash storage will be trimmed to half to respect the mirroring.
Flash cache working policies – WTC and WBC
There are two working mechanisms for flash cache – write through and write back. The exadata systems before X3 release worked with write through policy. It was during the announcement of X3 exadata systems in OOW 12, it was learnt that the flash cache will also support write back caching mechanism too.
Write Through Cache (Read/Write)
The older mechanism was pretty direct and straight. The data is written directly to the disk without the intervention of flash in any ways. The acknowledgment is sent back to the database by CELLSRV via iDB. Thereafter, if the data block qualifies the caching criteria – it is written to flash as well.
While reading the data blocks, the cellsrv maintains a hash lookup to map the data blocks agains the target destination i.e. flash or disk. If flash is hit, requested data is sent to the database. If cache miss, the data is read from the disk, and once again it is validated against the caching criteria. If the block qualifies to be "hot", the block is retained in the flash cache.
What is the caching criteria? An IO comes with two metadata values – 1) the
The metadata contains the
The database adds another caching hint based on purpose of the IO. It can be CACHE, NOCACHE or EVICT. The first two are pretty straight and direct. The third one EVICT hints that the specific block has to be flushed out of cache.
Write Back Cache (Read/Write)
With Exadata x3 announcement, the smart flash cache adopts WBC mechanism to speed up the read as well as write operations with backward compatibility support. This implies that WBC feature can be enabled on earlier exadata systems (X2 or V2) as well by upgrading the storage cell software version and db version. The WBC feature is supported for cell storage version is 11.2.3.2 onwards and db version 11.2.0.3 BP 9 onwards. By default, it is disabled.
The flash cache can directly service the write operations on the database. During first time inserts, a block written to the flashcache is marked as "dirty" to signify the latest copy of the block. If the database requests to update a block which doesn't resides in flash, it is pulled from the disk into the cache, updated and marked as "dirty". If the database requests for a block, it is read directly from the cache, thus reducing the heavy IO operations. A block written in flash and frequently accessed can stay upto years in the flash. However, if the block is rarely accessed, only its primary copy can be retained in the flash. The rest of the data can be copied back to the disk.
Steps to enable the flash in Write Back mode -
The Write Back Cache mode can be reverted back to the Write Through Cache mode by manually flushing all the dirty blocks back to the disk
As I am finishing the blog post, I am realizing that I have scope of publishing one more post detailing on Write Back Cache. I shall be back with more details on Write Back Cache working and some hands on
References
http://www.oracle.com/technetwork/server-storage/engineered-systems/exadata/exadata-smart-flash-cache-366203.pdf
http://www.youtube.com/watch?v=6Sv70I9UMYo
http://flashdba.com/history-of-exadata/smart-flash-cache/
http://structureddata.org/2011/10/12/exadata-smart-flash-logging-explained/
http://www.infosysblogs.com/oracle/2011/07/exadata_smart_flash_cache.html
http://uhesse.com/2011/02/02/exadata-part-iv-flash-cache/
Exadata Smart Flash Cache
The Oracle Exadata is meant to deliver high performance through its smart features. One of its smartly carved out feature is intelligent and very smart flash cache. The flash cache is a hardware component configured in the exadata storage cell server which delivers high performance in read and write operations. There are four flash cards in each of the storage cell and each flash card contains a flash disk. In total, there are 16 flash disk contained by a single storage cell server.
In Exadata x3 version, the flash cache capacity has been increased by four times, 40 times the response speed and 100GB/sec scan rates. In X3 version, the Sun flash F40 PCIe cards total upto 22.4 TB of flash compared to 5.4TB from the X2 version. In addition, they are capable of scanning the data 1.4 times faster than X2 version. The flash belongs to eMLC category (enterprise grade multi-level cell) which employs different techniques to improve flash health, endurance and most importantly, accommodate more write cycles (20k to 30k). (Write cycle – transparent process of making room for the new incoming data by flushing out old one)
Flash Cache Hardware details
Exadata X2 version – [Sun F20 cards]
Capacity = 4(no of flash cards in a cell) * 4 (no of flash disk per card) * 24GB (single flash disk capacity) = 384GB per storage cell
Exadata X3 version – [Sun F40 cards]
Capacity = 4(no of flash cards in a cell) * 4 (no of flash disk per card) * 100GB (single flash disk capacity) = 1600GB per storage cell
The motivation and how the Flash works?
The IO operations on the disk are mechanical as a block has to travel a specified path and sit at a specific location. Being a static memory, the disk operation to place a block are significantly costlier. Flash cache is a volatile memory which enables huge reduction in IO operations by replacing them fast and rapid cache operations. In an OLTP system, the database is read write intensive and data grows at an uneven rate. The flash cache is designed to reduce the IO bottlenecks and yield atleast 20x benefits by speeding up IO operations. The cache operations are fully redundant and transparent to the end user except the statistics. The flash cache can also be worked in co ordination with IORM to control the use of flash in case of multiple databases. This feature enables the customers to reserve flash for the critical databases and ensure transparent performance benefits.
The smartness of the flash comes with the fact that it has a peculiar ability to understand the type of IO(s). Its because of this intelligence that it knows what IO(s) to cache and which one to skip. Flash cache caches IO pertaining to control files, file headers, data blocks and index blocks while it skips the IO(s) incurred in backups, mirroring, data pumps, and large table scans.
Important: Do not confuse the exadata smart flash cache with the flash cache option in Oracle database 11gr2 on solaris or linux. The "database flash cache" is an extension to SGA to expand buffer cache area on the database server. But the exadata smart flash cache resides on the storage server to cache the frequently accessed data and speed up the read (also write with X3) operations by reducing disk IO(s).
The exadata X3 series makes a considerable software level changes to the flash cache by speeding up not only read operations but write operations as well. It is capable of supporting 1 million 8k flash write per second and reading 1.5 million 8k blocks. This makes the new flash 20x more efficient than the X2 or V2 series flash. So now the cache is not only capable of keeping the hot data but in fact, all the data whatever comes in from the database. The credit goes to the new working policy adopted by the flash – known as Write Back Cache.
Make the flash persistent by partitioning flash disk into grid disk
The flash memory dumps the cachable hot data which can be lost once the power goes off (by virtue of being a volatile memory). Optionally, a portion of flashcache can be partitioned and utilized as persistent logical flash disks. Thereafter, the flash disks can be used to store (not cache) the hot data and shield it from power risks. Grid disks can be carved out of the flash based cell disks which can be further assigned to an ASM disk group. The partitioning and assigning process is very similar to the physical disks partitioning.
Though the flash based grid disks defeat the purpose of cache, but it can be used as a reserve disks in case of highly intensive write operations on the disk where the existing configuration of the disk is not sufficient. Another points which discourages partitioning the disk is that the flash storage will be trimmed to half to respect the mirroring.
Flash cache working policies – WTC and WBC
There are two working mechanisms for flash cache – write through and write back. The exadata systems before X3 release worked with write through policy. It was during the announcement of X3 exadata systems in OOW 12, it was learnt that the flash cache will also support write back caching mechanism too.
Write Through Cache (Read/Write)
The older mechanism was pretty direct and straight. The data is written directly to the disk without the intervention of flash in any ways. The acknowledgment is sent back to the database by CELLSRV via iDB. Thereafter, if the data block qualifies the caching criteria – it is written to flash as well.
While reading the data blocks, the cellsrv maintains a hash lookup to map the data blocks agains the target destination i.e. flash or disk. If flash is hit, requested data is sent to the database. If cache miss, the data is read from the disk, and once again it is validated against the caching criteria. If the block qualifies to be "hot", the block is retained in the flash cache.
What is the caching criteria? An IO comes with two metadata values – 1) the
CELL_FLASH_CACHE parameter setting defined at the segment or partition level 2) the CACHE hint associated by the database.The metadata contains the
CELL_FLASH_CACHE parameter setting for the object. Based on its value, the data block can be cached. DEFAULT means the smart flash cache has the authority to decide whether to cache it or not. KEEP means the smart flash cache must cache the data on priority. NONE means the data block caching is not required. A huge object with DEFAULT setting will not be cached. The KEEP and DEFAULT have different retention policies. Also, the upper ceiling limit for KEEP cached blocks is 80% of the total flash cache size. In addition, the unused KEEP cached blocks are flushed off from the cache if they fail the aging criteria.The database adds another caching hint based on purpose of the IO. It can be CACHE, NOCACHE or EVICT. The first two are pretty straight and direct. The third one EVICT hints that the specific block has to be flushed out of cache.
Write Back Cache (Read/Write)
With Exadata x3 announcement, the smart flash cache adopts WBC mechanism to speed up the read as well as write operations with backward compatibility support. This implies that WBC feature can be enabled on earlier exadata systems (X2 or V2) as well by upgrading the storage cell software version and db version. The WBC feature is supported for cell storage version is 11.2.3.2 onwards and db version 11.2.0.3 BP 9 onwards. By default, it is disabled.
The flash cache can directly service the write operations on the database. During first time inserts, a block written to the flashcache is marked as "dirty" to signify the latest copy of the block. If the database requests to update a block which doesn't resides in flash, it is pulled from the disk into the cache, updated and marked as "dirty". If the database requests for a block, it is read directly from the cache, thus reducing the heavy IO operations. A block written in flash and frequently accessed can stay upto years in the flash. However, if the block is rarely accessed, only its primary copy can be retained in the flash. The rest of the data can be copied back to the disk.
Steps to enable the flash in Write Back mode -
CellCli> drop flashcache
CellCLI> alter cell shutdown services cellsrv
CellCLI> alter cell flashCacheMode = WriteBack
CellCLI> alter cell startup services cellsrv
CellCLI> create flashcache allThe Write Back Cache mode can be reverted back to the Write Through Cache mode by manually flushing all the dirty blocks back to the disk
CellCLI> alter flashcache all flush
CellCLI> drop flashcache
CellCLI> alter cell shutdown services cellsrv
CellCLI> alter cell flashCacheMode=Writethrough
CellCLI> alter cell startup services cellsrvAs I am finishing the blog post, I am realizing that I have scope of publishing one more post detailing on Write Back Cache. I shall be back with more details on Write Back Cache working and some hands on
References
http://www.oracle.com/technetwork/server-storage/engineered-systems/exadata/exadata-smart-flash-cache-366203.pdf
http://www.youtube.com/watch?v=6Sv70I9UMYo
http://flashdba.com/history-of-exadata/smart-flash-cache/
http://structureddata.org/2011/10/12/exadata-smart-flash-logging-explained/
http://www.infosysblogs.com/oracle/2011/07/exadata_smart_flash_cache.html
http://uhesse.com/2011/02/02/exadata-part-iv-flash-cache/
Subscribe to:
Posts (Atom)