USER MANAGEMENT AND DATABASE SECURITY in Font

Print QR-Code in Font USER MANAGEMENT AND DATABASE SECURITY

CHAPTER 11 USER MANAGEMENT AND DATABASE SECURITY
QR Code JIS X 0510 Generation In None
Using Barcode maker for Font Control to generate, create QR Code ISO/IEC18004 image in Font applications.
www.OnBarcode.com
Create Code 3 Of 9 In None
Using Barcode creation for Font Control to generate, create Code 39 image in Font applications.
www.OnBarcode.com
2. Create a pair of logon and logoff triggers: SQL> CREATE OR REPLACE TRIGGER logon_audit_trig 2 AFTER LOGON 3 ON DATABASE 4 BEGIN 5 INSERT INTO logon_audit 6 VALUES 7 (user, 8 sys_context('userenv', 'sessionid'), 9 sysdate, 10 null, 11 sys_context('userenv', 'host')); 12* END; Trigger created. SQL> CREATE OR REPLACE TRIGGER logoff_audit_trig 2 AFTER LOGON 3 ON DATABASE 4 BEGIN 5 INSERT INTO logon_audit 6 VALUES 7 (user, 8 sys_context('userenv', 'sessionid'), 9 null, 10 sysdate, 11 sys_context('userenv', 'host')); 12* END; Trigger created. SQL> 3. Review your users login/logout details: SQL> SELECT * FROM logon_audit; USER_NAME SESS_ID LOGON_TIME LOGOFF_TIME HOST_NAME ---------------------------------------------------------------------SYSTEM 347 13-JUN-2005 07:00:30 NTL-ALAPATI HR 348 13-JUN-2005 07:10:31 NTL-ALAPATI HR 348 13-JUN-2005 07:32:17 NTL-ALAPATI SQL> You could also use a DDL trigger to capture changes made to objects by users, including modification, creation, and deletion of various types of objects. You can capture a large number of attributes about the event and the user that sets off a DDL trigger. To capture some of the important attributes of a user event, you first need to create a table to log DDL changes. Once you have done that, you can create a DDL trigger like the one shown in Listing 11-16. In this example, the table is named DDL_LOG and the trigger is DDL_LOG_TRIG. Listing 11-16. Using DDL Triggers to Audit Users SQL> 2 3 4 5 CREATE OR REPLACE TRIGGER ddl_log_trig AFTER DDL ON DATABASE BEGIN INSERT INTO ddl_log
Encoding Data Matrix 2d Barcode In None
Using Barcode maker for Font Control to generate, create Data Matrix ECC200 image in Font applications.
www.OnBarcode.com
Code 128 Generator In None
Using Barcode maker for Font Control to generate, create Code 128C image in Font applications.
www.OnBarcode.com
CHAPTER 11 USER MANAGEMENT AND DATABASE SECURITY
Barcode Generator In None
Using Barcode generator for Font Control to generate, create Barcode image in Font applications.
www.OnBarcode.com
UPC Symbol Maker In None
Using Barcode creation for Font Control to generate, create UPCA image in Font applications.
www.OnBarcode.com
6 (username, 7 change_date, 8 object_type, 9 object_owner, 10 database 11 ) 12 VALUES 13 (ora_login_user, 14 sysdate, 15 ora_dict_obj_type, 16 ora_dict_obj_owner, 17 ora_database_name) 16* END; Trigger created. SQL> Once the trigger is in use, you can query the ddl_log table to see the changes. As you can see here, users HR and SYSTEM have made several DDL-based changes to the database: SQL> SELECT * FROM ddl_log; USERNAME CHANGE_DATE OBJECT_TYPE OBJECT_OWNER DATABASE_NAME --------------------------------------------------------------------HR 11-JUN-05 SYNONYM HR NINA SYSTEM 11-JUN-05 OBJECTPRIVILEGE SYSTEM NINA HR 11-JUN-05 TRIGGER HR NINA SQL>
Drawing EAN-13 In None
Using Barcode printer for Font Control to generate, create EAN 13 image in Font applications.
www.OnBarcode.com
Code11 Maker In None
Using Barcode generator for Font Control to generate, create USD - 8 image in Font applications.
www.OnBarcode.com
Using Flashback Features for Auditing
Scanning QR Code ISO/IEC18004 In None
Using Barcode reader for Software Control to read, scan read, scan image in Software applications.
www.OnBarcode.com
Denso QR Bar Code Creation In None
Using Barcode creation for Word Control to generate, create QR Code image in Office Word applications.
www.OnBarcode.com
In addition to using the standard Oracle auditing features described in the previous sections, you can also take advantage of Oracle s Flashback capabilities to audit changes made to a table s rows. For example, you can use the Flashback Query feature to examine a table s data at a past point in time. Using the Flashback Transaction Query, you can find out all the changes made to a row since a past point in time or an SCN. The Flashback Versions Query will return each version of a row that existed in the specified period. You can easily identify the user and the specific operation that resulted in any inappropriate or unauthorized modifications to data. Using the transaction details from this query, you can go ahead and identify the entire transaction(s) with the help of another flashback feature, Flashback Transaction Query. The Flashback Query, Flashback Versions Query, and Flashback Transaction Query features rely on undo data and are discussed in detail in 6.
ANSI/AIM Code 39 Creation In Visual C#.NET
Using Barcode printer for Visual Studio .NET Control to generate, create Code39 image in VS .NET applications.
www.OnBarcode.com
Drawing Code 128 In Visual Studio .NET
Using Barcode creation for Reporting Service Control to generate, create Code 128 Code Set C image in Reporting Service applications.
www.OnBarcode.com
Fine-Grained Auditing
Encode EAN13 In .NET Framework
Using Barcode drawer for VS .NET Control to generate, create EAN / UCC - 13 image in Visual Studio .NET applications.
www.OnBarcode.com
Code 128A Recognizer In .NET Framework
Using Barcode recognizer for .NET Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
Suppose you re interested in using auditing to find out whether users are viewing data in a table they re not really supposed to access. For example, say a manager is supposed to be able to see salary-related information for employees working for him. Can you tell whether the manager is also looking at the salary information of his superiors Do you need to audit all the SELECT statements done by the manager Auditing all SELECT statements would lead to a colossal amount of audit data, but fortunately there s an easy out. Oracle lets you audit actions in the database on the basis of content. That is, you can specify that the audit records be written not for all SELECT, INSERT, UPDATE, and DELETE statements, but only for statements that meet certain criteria. Instead of trying to determine policy
Generating Code 128 Code Set A In None
Using Barcode maker for Online Control to generate, create Code 128C image in Online applications.
www.OnBarcode.com
ANSI/AIM Code 39 Creator In Java
Using Barcode encoder for Java Control to generate, create Code 3/9 image in Java applications.
www.OnBarcode.com
Barcode Generator In .NET Framework
Using Barcode drawer for ASP.NET Control to generate, create Barcode image in ASP.NET applications.
www.OnBarcode.com
Recognize EAN-13 In VS .NET
Using Barcode scanner for .NET Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
European Article Number 13 Creation In Java
Using Barcode drawer for BIRT reports Control to generate, create EAN13 image in BIRT reports applications.
www.OnBarcode.com
Code 3 Of 9 Creation In Objective-C
Using Barcode printer for iPhone Control to generate, create Code 3/9 image in iPhone applications.
www.OnBarcode.com
Copyright © OnBarcode.com . All rights reserved.