Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Phase 1 Implementing Oracle Fine-Grained Auditing (FGA) In a previous lab, you have created DBSEC user and CUSTOMER table. In this lab, you will implement

Phase 1 Implementing Oracle Fine-Grained Auditing (FGA)

In a previous lab, you have created DBSEC user and CUSTOMER table.

In this lab, you will implement a FGA case. The CUSTOMER table will be the one you created on the previous lab. Your task is to design and implement the following auditing functions on the CUSTOMER table.

Track all "SELECT" activities on the CUSTOMER table, including database user, operating system user, and time when the operation is performed.

Track the changes when CREDIT_LIMIT is set to a value above $5,000.

Track the CUSTOMER table when a customer record was deleted.

You need to generate one SQL script file to perform all the following tasks:

Add a policy to implement audit task 1 (SELECT). The policy will be named as AUDIT_POLICY_1_SELECT.

Add a policy to implement audit task 2 (CREDIT_LIMIT). The policy will be named as AUDIT_POLICY_2_CREDIT.

Add a policy to implement audit task 3 (DELETE on CUSTOMER table). The policy will be named as AUDIT_POLICY_3_DELETE.

Turn on the audit function.

Connect to user DBSEC, and perform the following DML functions for testing purpose:

SELECT CUSTOMER_ID, FIRST_NAME,LAST_NAME,CREDIT_LIMIT FROM customer WHERE CUSTOMER_ID=201340;

UPDATE customer SET CREDIT_LIMIT=2500000 WHERE CUSTOMER_ID=201340;

DELETE from CUSTOMER WHERE CUSTOMER_ID=201340;

Show the audit trail including when and who has used/modified the CUSTOMER table.

Roll back the above change.

Tips:

You may use a drop user statement to refresh your database and enable testing. Then, you need to recreate your CUSTOMER table. But, it is not required as a part of this project.

When you need to connect to SYSTEM user, please use a syntax so that it will ask the user to type the password. A typical example will be: "connect system;"

Phase 2

Using an Oracle select an existing user and audit all its activities.

Using Oracle:

Step #1: Connect as SYSTEM and make sure that the following parameters are set:

SQL> show parameter aud

NAME TYPE VALUE

------------------------------------ ----------- -----

audit_sys_operations boolean TRUE

audit_trail string DB

Step #2: Issue audit statement as follows:

AUDIT ALL BY DBSEC_CLERK

Step #3: Connect as DBSEC_CLERK and perform one DDL and DML statement.

Step #4: Connect as SYSTEM and retrieve the content of DBA_AUDIT_TRAIL.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

=+Where does the focus of labor relations lie? Is it collective

Answered: 1 week ago