Friday, July 9, 2021

ORACLE DATABASE AUDITING

 

DATABASE AUDITING

 

Database auditing is the monitoring and recording a activities within a database

 

audit_sys_operations True  Enable for sys

 

audit_file_dest /u01/app/oracle/admin/oracledb/adump

audit_trail  True/DB or NONE Enable for normal user

 




Standard Auditing

 

Schema object level Auditing -> specify Schema object to be audited

 

Statement level Auditing   -> Sql Statement to be audited

 

Privilege level Auditing   -> Particular system Privilege to be audited

 

Scope of Auditing

 

by USER/ALL

by session/access

by successful/unsuccessful

 

Statement level auditing

 

dba_audit_session



dba_audit_trail



dba_stmt_audit_opts



 

 





 





 

Disable auditing



 

 

 


 



 

Object level auditing



 

 

 



 

     


 

 

 

 

 



 

Privilege level

 



 





 

 



Friday, June 18, 2021

USER MANAGEMENT IN ORACLE DATABASE

 

User Management in oracle database

 

1)Managing users

2)Managing Privileges

3)Managing Roles

4)Managing Profiles

 

1)Managing users

User->Schema->owner

Table,Sequence,Constraints,indexes,views etc->Objects->Scott/HR->Tablespace->Database

HR -Schema

Tablespace Name ->HRTBS -Data

Tablespace Name ->HRINX -INDEX

Create and alter user

Create new user assigning tablespace



2)Managing Privileges

Types of Privileges

Two types of Oracle user privileges:

• System: Enables users to perform particular actions in the database

• Object: Enables users to access and manipulate a specific object

Describe system privileges


Create user and assign privileges

Create user and assign privilege to that user

Connect that user and check the privilege


Assign Multiple privileges




Revoke privileges


with the ADMIN OPTION

Connect sys user to create 2 other  users , grant create session to one user with admin option

V user grant privilege with admin option

 

Connect v user the admin access can be YES the V user give grant privilege to T user


Sys user not give create session option V user give this permission


Revoke privilege from V user


V user not able to connect


T user is in connection the V user with admin option they give permission to other user that can be access able


Object Privileges

SQL> grant insert,update,delete on a.s to b;

Grant succeeded.

SQL> grant select,insert,update,delete on a.s to b;

Grant succeeded.

SQL> insert into a.s values(1);

1 row created.

SQL> commit;

Commit complete.

Revoke object privileges

SQL> revoke insert on a.s from b;

Revoke succeeded.

SQL> grant select,insert,update,delete on a.s to a with grant option;

Grant succeeded.

3)Managing Roles

Collection of privileges - > Roles

 


Custom roles


Roles with admin option

4)Managing Profiles

Profile 2 types

PASSWORD

KERNEL  

Create new profile and assign to user:


 


FAILED_LOGIN_ATTEMPTS

PASSWORD_LOCK_TIME



Password Expiration and Aging

KERNEL

SESSIONS PER USER





IDLE_TIME

 

Connect time


Beyond No-Code: How Oracle AI Agent Studio Uses MCP, Governance, and AI-Unit Monitoring to Build Production-Ready Industry Agents

  Beyond No-Code: How Oracle AI Agent Studio Uses MCP, Governance, and AI-Unit Monitoring to Build Production-Ready Industry Agents Recentl...