19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UseServerEncoding data source property. Since there is no disadvantage to using<br />

UseServerEncoding=1, we recommend you should always have this property set, especially if<br />

your <strong>DB2</strong> system is using MIXED=NO.<br />

4.8 Data encryption<br />

<strong>DB2</strong> V8 ships a number of built-in functions which allow you to encrypt and decrypt data. <strong>IBM</strong><br />

also offer an encryption tool called the <strong>IBM</strong> Data Encryption Tool <strong>for</strong> IMS and <strong>DB2</strong><br />

Databases, program number 5799-GWD, also mentioned in 10.8, “Data Encryption <strong>for</strong> IMS<br />

and <strong>DB2</strong> Databases” on page 369. The per<strong>for</strong>mance implications <strong>for</strong> encryption are roughly<br />

similar to data compression when only considering CPU overhead. In this section, we<br />

introduce both <strong>DB2</strong> encryption and the <strong>IBM</strong> Data Encryption Tool and discuss recent<br />

hardware enhancements that improve encryption per<strong>for</strong>mance.<br />

Today, many organizations are paying much more attention to the security of their data, to<br />

comply with various security regulations or as a result of emerging new technologies, <strong>for</strong><br />

example, the emergence of the internet, Storage Area Networks (SAN) and more intelligent<br />

storage controllers. (Do you trust your storage vendor not to look at your data?)<br />

However, data encryption has a number of challenges; including making changes to your<br />

application to encrypt and decrypt the data, encryption key management and the<br />

per<strong>for</strong>mance overhead of encryption.<br />

Machines prior to the z990 have a Cryptographic Coprocessor Feature to improve the<br />

per<strong>for</strong>mance of encryption and decryption. However, only CPU 0 and 1 could per<strong>for</strong>m<br />

encryption. To encrypt and decrypt data, tasks running on other processors need to be<br />

redispatched to run on CPU 0 or 1. Per<strong>for</strong>mance is there<strong>for</strong>e a problem if there is contention<br />

among tasks (<strong>for</strong> example, parallel query). In addition, dedicated LPARs might not be able to<br />

use the encryption hardware feature.<br />

The z990 introduced a new hardware instruction, CP Assist <strong>for</strong> Cryptographic Function<br />

(CPACF), which can run on all CPUs and is a feature available only on the z990 hardware and<br />

later, not the older z900. The z990 also introduces a PCIXCC card which is needed <strong>for</strong> the<br />

<strong>IBM</strong> Data Encryption Tool, but not <strong>for</strong> the <strong>DB2</strong> encryption function. Now, we briefly introduce<br />

these two encryption functions.<br />

<strong>DB2</strong> column level encryption<br />

<strong>DB2</strong> V8 ships a number of built-in functions which allow you to encrypt data at the cell level.<br />

These functions are ENCRYPT_TDES (or ENCRYPT), DECRYPT_BIN, DECRYPT_CHAR,<br />

and GETHINT. The SET ENCRYPTION PASSWORD statement allows you to specify a<br />

password as a key to encryption. Because you can specify a different password <strong>for</strong> every row<br />

that you insert, you can really encrypt data at the cell level in your tables. However, you are<br />

responsible <strong>for</strong> managing all these keys. So, make sure you have a mechanism in place to<br />

manage the passwords that are used to encrypt the data. Without the password, there is<br />

absolutely no way to decrypt the data. These encryption functions use the Triple Data<br />

Encryption Standard (Triple DES) to per<strong>for</strong>m the encryption.<br />

The <strong>DB2</strong> built-in encryption functions require:<br />

► <strong>DB2</strong> V8<br />

► Integrated Cryptographic Service Facility (ICSF)<br />

► On z990, CPACF is required (PCIXCC card is not, unless DRDA encryption is necessary)<br />

► Pre-z990, cryptographic coprocessor is required.<br />

188 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!