145
by Jacco H. Landlust SecureFile LOBs Lessons Learned while Pushing the Limits of @ dinsdag 9 april 13

Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

by Jacco H. Landlust

SecureFile LOBs

Lessons Learned while Pushing the Limits of

@

dinsdag 9 april 13

Page 2: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Jacco H. Landlust• 36 years old

• Deventer, the Netherlands

2

dinsdag 9 april 13

Page 3: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Jacco H. Landlust / iDBA• Degree in Business Informatics and Economics

• Architecture, Clustering, High Availability, Performance & Management

• Oracle since 2000

• Oracle ACE since 2006

• Independent Red Stack Administrator since 2010

3

dinsdag 9 april 13

Page 4: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

This is not a “SecureFile LOB overview”

presentation!

4

dinsdag 9 april 13

Page 5: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Agenda• WebCenter Content / UCM

• Short introduction of SecureFile LOBs

• Test some SecureFile LOB features

• Q & A

5

dinsdag 9 april 13

Page 6: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter Content

6

dinsdag 9 april 13

Page 7: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration

7

dinsdag 9 april 13

Page 8: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

7

dinsdag 9 april 13

Page 9: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

• Concurrency issues: Lots of row lock contention

7

dinsdag 9 april 13

Page 10: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

• Concurrency issues: Lots of row lock contention

7

Fixed in 11g

dinsdag 9 april 13

Page 11: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

• Concurrency issues: Lots of row lock contention

• 40 million unique documents ~= 24 TB

7

Fixed in 11g

dinsdag 9 april 13

Page 12: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

• Concurrency issues: Lots of row lock contention

• 40 million unique documents ~= 24 TB

• Metadata and content separated, content was stored on GPFS

7

Fixed in 11g

dinsdag 9 april 13

Page 13: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

10g configuration• 35k online users

• Concurrency issues: Lots of row lock contention

• 40 million unique documents ~= 24 TB

• Metadata and content separated, content was stored on GPFS

7

Fixed in 11g

One database withSecureFile LOBs

dinsdag 9 april 13

Page 14: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs

8

dinsdag 9 april 13

Page 15: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs

8

• SecureFile LOBs eliminate the distinction between structured and unstructured content storage.

dinsdag 9 april 13

Page 16: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs

8

• SecureFile LOBs eliminate the distinction between structured and unstructured content storage.

• SecureFile LOBs is a new re-architecture featuring entirely new disk formats, network protocol, space management, redo and undo formats, buffer caching, and I/O subsystem.

dinsdag 9 april 13

Page 17: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs

8

• SecureFile LOBs eliminate the distinction between structured and unstructured content storage.

• SecureFile LOBs is a new re-architecture featuring entirely new disk formats, network protocol, space management, redo and undo formats, buffer caching, and I/O subsystem.

• SecureFile LOBs delivers substantially improved performance along with optimized storage for unstructured data inside the Oracle database.

dinsdag 9 april 13

Page 18: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs

9

dinsdag 9 april 13

Page 19: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs• Tablespaces must be managed by ASSM

9

dinsdag 9 april 13

Page 20: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs• Tablespaces must be managed by ASSM

• Easier management, lesser user-tuned parameters

9

dinsdag 9 april 13

Page 21: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs• Tablespaces must be managed by ASSM

• Easier management, lesser user-tuned parameters

• One database parameter (plus some hidden ones)

9

dinsdag 9 april 13

Page 22: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs• Tablespaces must be managed by ASSM

• Easier management, lesser user-tuned parameters

• One database parameter (plus some hidden ones)

• Lobs from Oracle Database 10g and prior releases are still supported and will now be referred to as ‘BasicFiles’.

9

dinsdag 9 april 13

Page 23: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Introducing SecureFile LOBs• Tablespaces must be managed by ASSM

• Easier management, lesser user-tuned parameters

• One database parameter (plus some hidden ones)

• Lobs from Oracle Database 10g and prior releases are still supported and will now be referred to as ‘BasicFiles’.

• Certain features require extra licenses (deduplication, compression, encryption)

9

dinsdag 9 april 13

Page 24: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today

10

dinsdag 9 april 13

Page 25: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

10

dinsdag 9 april 13

Page 26: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

10

dinsdag 9 april 13

Page 27: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

10

dinsdag 9 april 13

Page 28: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

10

No thin provision to minimize VM

overhead

dinsdag 9 april 13

Page 29: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

• Oracle Enterprise Linux 5.8

10

No thin provision to minimize VM

overhead

dinsdag 9 april 13

Page 30: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

• Oracle Enterprise Linux 5.8

• kernel 2.6.39-300.17.3.el5uek

10

No thin provision to minimize VM

overhead

dinsdag 9 april 13

Page 31: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

• Oracle Enterprise Linux 5.8

• kernel 2.6.39-300.17.3.el5uek

• Oracle RDBMS 11.2.0.2.6 with ASM external redundancy

10

No thin provision to minimize VM

overhead

dinsdag 9 april 13

Page 32: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Test setup today• VirtualBox VM

• 2 cores, 4 GB RAM, 3 virtual disks (OS, Software, ASM)

• ASM disk is fully allocated

• Oracle Enterprise Linux 5.8

• kernel 2.6.39-300.17.3.el5uek

• Oracle RDBMS 11.2.0.2.6 with ASM external redundancy

10

No thin provision to minimize VM

overhead

Had to upgrade to 11.2.0.3 because of bug 13775960 - "enqueue hash chains" latch contention for delete/insert

Securefile workloaddinsdag 9 april 13

Page 33: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database

11

dinsdag 9 april 13

Page 34: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database• AL32UTF8

11

dinsdag 9 april 13

Page 35: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database• AL32UTF8

11

Mandatory by Fusion Middleware

installers

dinsdag 9 april 13

Page 36: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database• AL32UTF8

• MEMORY_TARGET=2G

11

Mandatory by Fusion Middleware

installers

dinsdag 9 april 13

Page 37: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database• AL32UTF8

• MEMORY_TARGET=2G

11

Mandatory by Fusion Middleware

installers

Automatic unless

dinsdag 9 april 13

Page 38: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Database• AL32UTF8

• MEMORY_TARGET=2G

• In archivelog mode

11

Mandatory by Fusion Middleware

installers

Automatic unless

dinsdag 9 april 13

Page 39: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository

12

dinsdag 9 april 13

Page 40: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

12

dinsdag 9 april 13

Page 41: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

12

Replace with bigfile tablespace

dinsdag 9 april 13

Page 42: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

• By default 8k blocksize

12

Replace with bigfile tablespace

dinsdag 9 april 13

Page 43: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

• By default 8k blocksize

12

Replace with bigfile tablespace

Choose based on content (typically 8k turns out okay)

dinsdag 9 april 13

Page 44: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

• By default 8k blocksize

• By default basicfile LOB

12

Replace with bigfile tablespace

Choose based on content (typically 8k turns out okay)

dinsdag 9 april 13

Page 45: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

• By default 8k blocksize

• By default basicfile LOB

• FileStorage table created from within WebCenter Content

12

Replace with bigfile tablespace

Choose based on content (typically 8k turns out okay)

dinsdag 9 april 13

Page 46: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

WebCenter repository• By default smallfile tablespaces

• By default 8k blocksize

• By default basicfile LOB

• FileStorage table created from within WebCenter Content

12

Replace with bigfile tablespace

Replace with SecureFile LOB

Choose based on content (typically 8k turns out okay)

dinsdag 9 april 13

Page 47: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

ASM: compatible.rdbms

13

Redundancy compatible.rdbms=10.1 compatible.rdbms=11.1

External 16 TB 140 PB

Normal 5.8 TB 23 PB

High 3.9 TB 15 PB

dinsdag 9 april 13

Page 48: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

ASM: compatible.rdbms

13

Redundancy compatible.rdbms=10.1 compatible.rdbms=11.1

External 16 TB 140 PB

Normal 5.8 TB 23 PB

High 3.9 TB 15 PB

Default value

dinsdag 9 april 13

Page 49: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

ORA-15095: reached maximum ASM file size (16384 GB)

14

dinsdag 9 april 13

Page 50: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

ORA-600: internal error code, arguments: [krccfl_bitmap_too_small], [19], [4294340465], [4], [4366], [4366], []

15

dinsdag 9 april 13

Page 51: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

ORA-600: internal error code, arguments: [krccfl_bitmap_too_small], [19], [4294340465], [4], [4366], [4366], []

15

Only when using block change tracking

dinsdag 9 april 13

Page 52: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

redo_log & log_buffer

16

dinsdag 9 april 13

Page 53: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

redo_log & log_buffer

16

• Set log_buffer to maximum (256MB on 64-bit Linux) to handle peak/burst load

dinsdag 9 april 13

Page 54: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

redo_log & log_buffer

16

• Set log_buffer to maximum (256MB on 64-bit Linux) to handle peak/burst load

Only penalty seems small

memory overhead

dinsdag 9 april 13

Page 55: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

redo_log & log_buffer

16

• Set log_buffer to maximum (256MB on 64-bit Linux) to handle peak/burst load

• Default redo_log files too small for high concurrency and lots of data loading, enlarge to at least 1GB with 3 logfiles Only penalty

seems small memory overhead

dinsdag 9 april 13

Page 56: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

redo_log & log_buffer

16

• Set log_buffer to maximum (256MB on 64-bit Linux) to handle peak/burst load

• Default redo_log files too small for high concurrency and lots of data loading, enlarge to at least 1GB with 3 logfiles

1 GB is arbitrary number, Monitor log file

switches in alert log

Only penalty seems small

memory overhead

dinsdag 9 april 13

Page 57: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning

17

dinsdag 9 april 13

Page 58: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning• Similar to regular tables / BasicFile LOBs

17

dinsdag 9 april 13

Page 59: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning• Similar to regular tables / BasicFile LOBs

• All LOB segment partitions must have same blocksize

17

dinsdag 9 april 13

Page 60: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning• Similar to regular tables / BasicFile LOBs

• All LOB segment partitions must have same blocksize

17

LOB segment may differ from table

dinsdag 9 april 13

Page 61: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning• Similar to regular tables / BasicFile LOBs

• All LOB segment partitions must have same blocksize

• Can ease backup & recovery strategy, e.g. by interval partition

17

LOB segment may differ from table

dinsdag 9 april 13

Page 62: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Partitioning• Similar to regular tables / BasicFile LOBs

• All LOB segment partitions must have same blocksize

• Can ease backup & recovery strategy, e.g. by interval partition

17

LOB segment may differ from table

When moving subpartition on interval partitioned table:ORA-00600: internal error code, arguments: [kkpod nextFrag], [10], [20], [1], [1], [93891], [], [], [], [], [], []

dinsdag 9 april 13

Page 63: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Investigating SecureFile LOB

features

18

dinsdag 9 april 13

Page 64: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool

19

dinsdag 9 april 13

Page 65: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool• Used for large I/O operations on SecureFile Lobs

19

dinsdag 9 april 13

Page 66: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool• Used for large I/O operations on SecureFile Lobs

• Shared memory segment

19

dinsdag 9 april 13

Page 67: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool• Used for large I/O operations on SecureFile Lobs

• Shared memory segment

19

Automatic Shared Memory Management

required

dinsdag 9 april 13

Page 68: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool• Used for large I/O operations on SecureFile Lobs

• Shared memory segment

• If Shared IO Pool is exhausted, memory is claimed from PGA

19

Automatic Shared Memory Management

required

dinsdag 9 april 13

Page 69: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Shared IO Pool• Used for large I/O operations on SecureFile Lobs

• Shared memory segment

• If Shared IO Pool is exhausted, memory is claimed from PGA

19

Can be monitored from

v$securefile_timer

Automatic Shared Memory Management

required

dinsdag 9 april 13

Page 70: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Demo: Shared IO Pool

20

dinsdag 9 april 13

Page 71: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

dinsdag 9 april 13

Page 72: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

dinsdag 9 april 13

Page 73: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

• CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations

dinsdag 9 april 13

Page 74: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

• CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations

• NOCACHE - LOB data is not placed in the buffer cache

dinsdag 9 april 13

Page 75: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

• CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations

• NOCACHE - LOB data is not placed in the buffer cache

• CACHE and NOLOGGING not supported as combination

dinsdag 9 april 13

Page 76: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

• CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations

• NOCACHE - LOB data is not placed in the buffer cache

• CACHE and NOLOGGING not supported as combination

For read consistency

dinsdag 9 april 13

Page 77: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Caching

21

• CACHE - LOB data is placed in the buffer cache

• CACHE READS - LOB data in only placed in buffer cache during read operation, not write operations

• NOCACHE - LOB data is not placed in the buffer cache

• CACHE and NOLOGGING not supported as combination

• NOCACHE when lots of documents are stored but not often retrieved For read

consistency

dinsdag 9 april 13

Page 78: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management

22

dinsdag 9 april 13

Page 79: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

22

dinsdag 9 april 13

Page 80: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

• Wnnn processes are SMCO slaves

22

dinsdag 9 april 13

Page 81: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

• Wnnn processes are SMCO slaves

• Tablespace-level space (extent) pre-allocation

22

dinsdag 9 april 13

Page 82: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

• Wnnn processes are SMCO slaves

• Tablespace-level space (extent) pre-allocation

• SecureFile LOB segment pre-allocation

22

dinsdag 9 april 13

Page 83: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

• Wnnn processes are SMCO slaves

• Tablespace-level space (extent) pre-allocation

• SecureFile LOB segment pre-allocation

• SecureFile LOB segment space reclamation

22

dinsdag 9 april 13

Page 84: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Space Management• SMCO background process

• Wnnn processes are SMCO slaves

• Tablespace-level space (extent) pre-allocation

• SecureFile LOB segment pre-allocation

• SecureFile LOB segment space reclamation

22

Sessions don’s have to wait for space allocation / deallocation

operations, because this is proactivly done

dinsdag 9 april 13

Page 85: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Demo: Space Management

23

dinsdag 9 april 13

Page 86: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents

24

dinsdag 9 april 13

Page 87: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents• Minimal extent size is 5 blocks (8Kb blocksize = 40Kb)

24

dinsdag 9 april 13

Page 88: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents• Minimal extent size is 5 blocks (8Kb blocksize = 40Kb)

• ORA-60019: Creating initial extent of size 5 in tablespace of extent size 14

24

dinsdag 9 april 13

Page 89: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents• Minimal extent size is 5 blocks (8Kb blocksize = 40Kb)

• ORA-60019: Creating initial extent of size 5 in tablespace of extent size 14

• So minimum extent size is 14 blocks (8Kb blocksize = 112Kb)

24

dinsdag 9 april 13

Page 90: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents• Minimal extent size is 5 blocks (8Kb blocksize = 40Kb)

• ORA-60019: Creating initial extent of size 5 in tablespace of extent size 14

• So minimum extent size is 14 blocks (8Kb blocksize = 112Kb)

• ORA-00600: internal error code, arguments: [ktsladdfcb-bsz], [3], [], [], [], [], [], [], [], [], [], []

24

dinsdag 9 april 13

Page 91: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Small extents• Minimal extent size is 5 blocks (8Kb blocksize = 40Kb)

• ORA-60019: Creating initial extent of size 5 in tablespace of extent size 14

• So minimum extent size is 14 blocks (8Kb blocksize = 112Kb)

• ORA-00600: internal error code, arguments: [ktsladdfcb-bsz], [3], [], [], [], [], [], [], [], [], [], []

• Real minimum extent size for SecureFile LOBs = (14 * 8Kb) + 1 = 112Kb + 1 = 114689

24

dinsdag 9 april 13

Page 92: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage

25

dinsdag 9 april 13

Page 93: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage• Virtual keeper of time provides wall-clock time and reference

time for other sessions/processes

25

dinsdag 9 april 13

Page 94: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage• Virtual keeper of time provides wall-clock time and reference

time for other sessions/processes

• Gets system time every 10 ms

25

dinsdag 9 april 13

Page 95: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage• Virtual keeper of time provides wall-clock time and reference

time for other sessions/processes

• Gets system time every 10 ms

• Process priority tunable by modifying _high_priority_processes parameter

25

dinsdag 9 april 13

Page 96: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage• Virtual keeper of time provides wall-clock time and reference

time for other sessions/processes

• Gets system time every 10 ms

• Process priority tunable by modifying _high_priority_processes parameter

• _high_priority_processes = [VKTM|LMS*|LGWR]

25

dinsdag 9 april 13

Page 97: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

high VKTM CPU usage• Virtual keeper of time provides wall-clock time and reference

time for other sessions/processes

• Gets system time every 10 ms

• Process priority tunable by modifying _high_priority_processes parameter

• _high_priority_processes = [VKTM|LMS*|LGWR]

25

VKTM|LMS* by default on single instance

dinsdag 9 april 13

Page 98: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Bunch of SR’sSR 3-5003949261: Heavy Library cache lock contention on 11.2.0.2 RAC database|--- SR 3-5249785361: High average times on gc waits|--- SR 3-5312761310: enq: HW - contention excessive avg. wait time in rac4W|--- SR 3-5255677303: Process waiting on disk file i/o operation and blocking 30 sessions

SR 3-4963615411: 11.2.0.2 RAC database: Adding disks to Diskgroup, causes enq HW:Contention on the database Inserts|--- SR 3-5128746431: LOB insert causing high "enq: HW - contention" waits|--- SR 3-5257318187: NAR : Child SR for RAC Performance

26

dinsdag 9 april 13

Page 99: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Suggested changes by support1) Increase db_writer_processes from 2 to 42) Reduce the "db_multiblock_read_count to 83) Set _buffer_busy_wait_timeout=2 (= 20 ms) due to Bug 11930616 - sporadic buffer busy waits4) Suggestion to implement jumbo frames4) Apply patches: -- Patch 9801919: ENQ: HW - CONTENTION WAIT TIME IS VERY LONG Patch 9671271 - All active instances used in calculation of dop when parallel_force_local=true / High version count on PX_MISMATCH5) Bug 13698526 : 11.2.0.2 RAC DATABASE: ADDING DISKS TO DISKGROUP, CAUSES ENQ HW:CONTENTION --> has no update by ASM development team.6) Tune log file sync -- probably seperate diskgroup for redo and adjust the storage FA ports to assign less busy ports.7) Trying to create partition (qespcCreatePartition) which explains why we need library cache lock in exclusive mode. Other processes are waiting for file resize - kfncSlaveFileResize in stack. Slave process spawned dynamically by SMCO (Smco (Space Management Coordinator) And Autoextend On Datafiles (Doc ID 743773.1))

27

dinsdag 9 april 13

Page 100: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

dinsdag 9 april 13

Page 101: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

Preallocate 5% space until max 90% of tablespace maxsize

dinsdag 9 april 13

Page 102: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

Preallocate 5% space until max 90% of tablespace maxsize

Preallocate based on autoextent next size

dinsdag 9 april 13

Page 103: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

Preallocate 5% space until max 90% of tablespace maxsize

Preallocate based on autoextent next size

example: 50M preallocation = ceil(50M / 1M) = 50 operations

dinsdag 9 april 13

Page 104: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

Preallocate 5% space until max 90% of tablespace maxsize

Preallocate based on autoextent next size

example: 50M preallocation = ceil(50M / 1M) = 50 operations

what if datafile is 10TB?

dinsdag 9 april 13

Page 105: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

28

If available spaces in table is less than 5 %

Preallocate 5% space until max 90% of tablespace maxsize

Preallocate based on autoextent next size

example: 50M preallocation = ceil(50M / 1M) = 50 operations

what if datafile is 10TB?10TB * 5% = 500GBceil(500G / 1M) = 512000 operations

dinsdag 9 april 13

Page 106: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

29

What if my users insert would trigger an

extent creation and SMCO starts pre-allocating?

dinsdag 9 april 13

Page 107: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

29

What if my users insert would trigger an

extent creation and SMCO starts pre-allocating?

enq: TX contention until SMCO is finished pre-allocating

dinsdag 9 april 13

Page 108: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

29

What if my users insert would trigger an

extent creation and SMCO starts pre-allocating?

enq: TX contention until SMCO is finished pre-allocating

when using partitioning: library cache lock

dinsdag 9 april 13

Page 109: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

SMCO: pre-allocate extent

30

- AUTOEXTEND Grows To Full Size Without Reason [ID 1459097.1]- Wnnn processes consuming high CPU [ID 1492880.1]- Bug 11710238 - Instance crash due to ORA-600 [1433] for SMCO

messages [ID 11710238.8]- SMCO (Space Management Coordinator) For Autoextend On

Datafiles And How To Disable/Enable [ID 743773.1]

dinsdag 9 april 13

Page 110: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Solution?

31

dinsdag 9 april 13

Page 111: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Solution?• Configure _enable_space_preallaction, but has unintended side

effects

31

dinsdag 9 april 13

Page 112: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Solution?• Configure _enable_space_preallaction, but has unintended side

effects

• Pre-allocate space manually so SMCO doesn’t kick in

31

dinsdag 9 april 13

Page 113: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Solution?• Configure _enable_space_preallaction, but has unintended side

effects

• Pre-allocate space manually so SMCO doesn’t kick in

31

Can be automated

dinsdag 9 april 13

Page 114: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging

32

dinsdag 9 april 13

Page 115: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

32

dinsdag 9 april 13

Page 116: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

32

Even with nologging operation some redo

is created

dinsdag 9 april 13

Page 117: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

• SecureFile LOBs only logs metadatasimilar to metadata journaling of file systems

32

Even with nologging operation some redo

is created

dinsdag 9 april 13

Page 118: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

• SecureFile LOBs only logs metadatasimilar to metadata journaling of file systems

• Ensures that data is recoverable after server failure

32

Even with nologging operation some redo

is created

dinsdag 9 april 13

Page 119: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

• SecureFile LOBs only logs metadatasimilar to metadata journaling of file systems

• Ensures that data is recoverable after server failure

32

Even with nologging operation some redo

is created

By reading SecureFile LOB index

dinsdag 9 april 13

Page 120: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Filesystem_like_logging• Replaces nologging for SecureFile LOBs

• SecureFile LOBs only logs metadatasimilar to metadata journaling of file systems

• Ensures that data is recoverable after server failure

• force logging overrides filesystem_like_logging

32

Even with nologging operation some redo

is created

By reading SecureFile LOB index

dinsdag 9 april 13

Page 121: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Demo: filesystem_like_logging

33

dinsdag 9 april 13

Page 122: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Block types for SecureFiles1. NGLOB: Lob Extent Header2.NGLOB: Segment Header

- Second block of the first extent- Highwater Mark, Extent Map, Administration of Hash Bucket

Blocks3.NGLOB: Extent Map4.NGLOB: Committed Free Space5.NGLOB: Persistent Undo6.NGLOB: Hash Buckets – variable chunk-size

- 7 Buckets for chunks of different sizes: 2k to 32K, 32k to 64k, 64k to 128k, 128k to 256k, 256k to 512k, 512k to 1m, 1m to 64m

34

dinsdag 9 april 13

Page 123: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression

35

dinsdag 9 april 13

Page 124: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

35

dinsdag 9 april 13

Page 125: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

• Oracle automatically detects if data is compressible

35

dinsdag 9 april 13

Page 126: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

• Oracle automatically detects if data is compressible

• NOCOMPRESS | COMPRESS MEDIUM | COMPRESS HIGH

35

dinsdag 9 april 13

Page 127: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

• Oracle automatically detects if data is compressible

• NOCOMPRESS | COMPRESS MEDIUM | COMPRESS HIGH

• For partitioned tables, compression occurs at partition level

35

dinsdag 9 april 13

Page 128: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

• Oracle automatically detects if data is compressible

• NOCOMPRESS | COMPRESS MEDIUM | COMPRESS HIGH

• For partitioned tables, compression occurs at partition level

35

Can configure compression level per

partition

dinsdag 9 april 13

Page 129: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Compression• SecureFile compression != table compression

• Oracle automatically detects if data is compressible

• NOCOMPRESS | COMPRESS MEDIUM | COMPRESS HIGH

• For partitioned tables, compression occurs at partition level

• Cost versus benefit

35

Can configure compression level per

partition

dinsdag 9 april 13

Page 130: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Demo: Compression

36

dinsdag 9 april 13

Page 131: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Deduplication

37

dinsdag 9 april 13

Page 132: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Deduplication

37

• Eliminate multiple redundant copies of the same data

dinsdag 9 april 13

Page 133: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Deduplication

37

• Eliminate multiple redundant copies of the same data

• Duplicate detection does not span across partitions or subpartitions

dinsdag 9 april 13

Page 134: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Deduplication

37

• Eliminate multiple redundant copies of the same data

• Duplicate detection does not span across partitions or subpartitions

• Oracle uses a secure hash index to detect duplicate SecureFile data

dinsdag 9 april 13

Page 135: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Deduplication

37

• Eliminate multiple redundant copies of the same data

• Duplicate detection does not span across partitions or subpartitions

• Oracle uses a secure hash index to detect duplicate SecureFile data

Stored in same tablespace as the

LOB segments

dinsdag 9 april 13

Page 136: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Demo: Deduplication

38

8_deduplication_rate.sql9_deduplication_cost.sql

rerun 9 with complete oracle docs to show that more files means slower dedup

dinsdag 9 april 13

Page 137: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

dinsdag 9 april 13

Page 138: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

dinsdag 9 april 13

Page 139: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

ASM, redo logs, log_buffer, db_securefile

dinsdag 9 april 13

Page 140: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

• Test and analyze licensable features carefully

ASM, redo logs, log_buffer, db_securefile

dinsdag 9 april 13

Page 141: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

• Test and analyze licensable features carefully

ASM, redo logs, log_buffer, db_securefile

compression & deduplication are no

always usefull

dinsdag 9 april 13

Page 142: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

• Test and analyze licensable features carefully

• Develop a sizing strategy & preallocatespace yourself

ASM, redo logs, log_buffer, db_securefile

compression & deduplication are no

always usefull

dinsdag 9 april 13

Page 143: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

• Test and analyze licensable features carefully

• Develop a sizing strategy & preallocatespace yourself

ASM, redo logs, log_buffer, db_securefile

block size,SMCO pre-allocation

compression & deduplication are no

always usefull

dinsdag 9 april 13

Page 144: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Summary

39

• Setup your database with care

• Test and analyze licensable features carefully

• Develop a sizing strategy & preallocatespace yourself

• Monitor your production environment carefully

ASM, redo logs, log_buffer, db_securefile

block size,SMCO pre-allocation

compression & deduplication are no

always usefull

dinsdag 9 april 13

Page 145: Pushing the limits of SecureFile lobs - WordPress.com · Introducing SecureFile LOBs 8 • SecureFile LOBs eliminate the distinction between structured and unstructured content storage

Q & A

40

dinsdag 9 april 13