A real use case provided by DB2 9.7 autonomous transactions

Source: Internet
Author: User

The following articles mainly describe a real use case provided by the DB2 9.7 autonomous transaction, as well as a detailed description of its prerequisites in actual operations, the following is a detailed description of the main content of the article. I hope you will have a better understanding of it after browsing.

A real use case provided by DB2 9.7 autonomous transactions:

Bank B wants to correctly record every query in a table containing sensitive customer data. To achieve this goal, application developers of Bank B obtain a set of interfaces that can be used to access sensitive data. Each interface is implemented as a stored procedure. The stored procedure returns the required information from the table, and records the queried employee user ID and the account number of the queried customer record, including the date and time.

Prerequisites

SQL makes the following assumptions:

Database connection exists

Disable Automatic submission

The statement Terminator is set to % by entering the DB2 CLP statement DB2 + c-td % when a new db2 CLP session is started.

Start

First, create necessary tables. You need to use one table to store sensitive customer information, and the other table to store the information recorded each time you access sensitive information. Listing 3 shows an example.

The above content is an introduction to a real use case provided by DB2 9.7 autonomous transactions. I hope you will gain some benefits.

The above content describes a real use case provided for the DB2 9.7 autonomous transaction, hoping to help you in this regard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.