- person Penulis:
-
Dimas Maryanto
PT. Tabeldata Informatika
- account_balance_wallet Donasi via:
- Saweria a/n Dimas Maryanto
- lock_open Join Premium Members:
- Udemy.com
-
Daftar Materi
-
1. Pengenalan Oracle Database 10
-
1. Silabus Belajar RDBMS Oracle 18c
2. Pengenalan Oracle Database 18c
3. Konsep User dan Schema di Oracle Database 18c
4. Interface untuk Oracle Database
5. Database Interaction dengan SQL
6. Persiapan install Oracle Database 18c
7. Install Oracle 18c XE untuk Windows 10
8. Install Oracle 18c XE untuk Linux
9. Install Oracle 18c XE dengan Docker
10. Install Database Editor untuk Oracle 18c
-
2. SQL - Select Statement 9
-
1. Persiapan Sebelum mulai belajar
2. Aturan Penulisan SQL pada Oracle Database
3. Data Types di Oracle Database
4. Select Statement dalam SQL
5. Pemberian alias pada column dan table
6. Operation Arithmetic di Oracle
7. Menggabungkan column dengan concatnation
8. Handle Null value dengan Coalesce
9. Menghilangkan nilai redundansi dengan klausa Distinct
-
3. SQL - Select with where clause 10
-
1. Klausa where untuk filter data di Oracle
2. Comparison Predicate pada klausa where di Oracle
3. Like Predicate pada klausa where di Oracle
4. Between Predicate pada klausa where di Oracle
5. Null Conditions pada klausa where di Oracle
6. In Predicates pada klausa where di Oracle
7. Exists Condition pada klausa where di Oracle
8. Not Predicate pada klausa where di Oracle
9. Combine Logical pada klausa where di Oracle
10. Mengurutkan data dengan klausa ORDER BY di Oracle
-
4. SQL - Functions 11
-
1. Single Row Function di Oracle
2. Character Single Row Function di Oracle
3. Number Single Row Function di Oracle
4. Date & Time Single Row Function di Oracle
5. Conversion Single Row Function di Oracle
6. Casting Build-In Data Type di Oracle
7. Null-Related Single Row Function
8. Aggregate Functions
9. Klausa Group By di Oracle
10. Where clause dengan Group By Function
11. Having clause dengan Group By Function
-
5. SQL - Join Tables 6
-
6. SQL - Sub Queries 12
-
1. Sub Query di Oracle
2. Sub Query single row result dengan where clause
3. Handle Sub Query Multiple rows Result dengan where operator
4. In Predicates dengan Sub Query di Oracle
5. ANY & SOME dengan Sub Query di Oracle
6. ALL Operator dengan Sub Query di Oracle
7. Sub Query Correlate di Oracle
8. Sub Query EXIST Predicates di Oracle
9. Pairwise Sub Query di Oracle
10. Sub Query Inline View di Oracle
11. Paginate dengan Sub Query di Oracle versi lama
12. Pagination dengan fetch dan offset
-
7. SQL - Expressions 2
-
8. SQL - Data Manipulation Language 11
-
1. Data Manipulation Language (DML)
2. DML - Insert Statement di Oracle
3. DML - Update Statement di Oracle
4. DML - Delete Statement di Oracle
5. DML - Merge Statement di Oracle
6. Transaction Control Language (TCL)
7. TCL - Commit Transaction di Oracle
8. TCL - Rollback Transaction di Oracle
9. TCL - Savepoint di Oracle
10. TCL - Concurrent Transaction
11. TCL - Locking Transaction di Oracle
-
9. SQL - Data Definition Language 19
-
1. Data Definition Language (DDL) di Oracle
2. DDL - Static Data Dictionary View
3. DDL - Membuat Tabel di Oracle
4. DDL - Merubah struktur table
5. DDL - Menghapus table dengan DROP
6. DDL - Truncate Table
7. DDL - Purge Table & Recyclebin
8. DDL - Macam-macam Constraint di Oracle
9. DDL - Not Null Constraint
10. DDL - Unqiue Constraint
11. DDL - Check Constraint
12. DDL - Primary Key Constraint
13. DDL - Foreign Key Constraint
14. DDL - Foreign Key Constraint dengan Options
15. DDL - Enabled, Disabled & Drop Constraints
16. DDL - Deferring Constraint Checks
17. DDL - View di Oracle
18. DDL - Sequences di Oracle
19. Default value untuk Primary Key di Oracle
-
10. Indexing 5
-
11. DDL - User Management 8
-
12. Monitor database activity 5
-
13. Database Design 8
- Lastest Posts
- 09 Apr 23 Working with Deployment object
- 26 Feb 23 Study cases: Microservice apps (...
- 05 Feb 23 Welcome to the Nutanix HCF (Hybr...
- 04 Feb 23 Silabus SRE - Nutanix AHV: Pemul...
- 17 Jan 23 What is Workload Resources?
- 17 Jan 23 Overview Kubernetes Workloads re...
- 15 Jan 23 Getting started with Transaction...
- 14 Jan 23 Overview of Concurrency Control
- 14 Jan 23 Time your practice (part 3)
- 08 Jan 23 Cleanup Data from Table
Predefined Unified Audit Policies
Oracle Database, menyediakan beberapa unified audit policies tentang User Security Settings, diantaranya
- Logon Failures
- Secure Options
- Oracle Database Parameter Changes
- User Account and Privilege Management
- dan Masih banyak lagi… silahkan baca disini
Logon Failures Predefined Unified Audit Policy
Audit ORA_LOGON_FAILURES
melakukan tracking terhadap user yang mencoba login tetapi gagal authentication. Untuk Oracle Database 18c secara default enabled
tetapi di versi sebelumnya belum aktif. Untuk Mengaktifkannya menggunakan perintah berikut:
Secure Options Predefined Unified Audit Policy
Audit ORA_SECURECONFIG
melakukan tracking terhadap perubahan user privileges, roles, dan lain-lain. Untuk Oracle Database 18c secara default statusnya enabled
tetapi di versi sebelumnya ada beberapa yang sudah aktif dan ada juga yang belum. Berikut adalah scriptnya:
Oracle Database Parameter Changes Predefined Unified Audit Policy
Audit ORA_DATABASE_PARAMETER
melakukan tracking terhadap perubahan parameter database, perubahan database
User Account and Privilege Management Predefined Unified Audit Policy
Audit ORA_ACCOUNT_MGMT
melakukan tracking terhadap user management seperti membuat user, alter user, drop user, grant privileges dan lain-lain. Berikut adalah scriptnya:
Berikut adalah object Unified Predefined Policy yang ada di Oracle 18c:
Berikut hasilnya:
-- login as adminstration oracle user
bash-4.2# su oracle
[oracle@b0fc5cd60df4 /]$ sqlplus / as sysdba
SQL*Plus: Release 18.0.0.0.0 - Production on Tue Mar 16 12:56:43 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
SQL> select distinct POLICY_NAME
from AUDIT_UNIFIED_POLICIES
where POLICY_NAME like 'ORA%';
POLICY_NAME
--------------------------------------------------------------------------------
ORA_DV_AUDPOL2
ORA_CIS_RECOMMENDATIONS
ORA_ACCOUNT_MGMT
ORA_DATABASE_PARAMETER
ORA_LOGON_FAILURES
ORA_DV_AUDPOL
ORA_SECURECONFIG
ORA_RAS_SESSION_MGMT
ORA_RAS_POLICY_MGMT
9 rows selected.
SQL> col user_name format a10;
SQL> col policy_name format a25;
SQL> col entity_name format a20;
SQL> select USER_NAME, POLICY_NAME, ENABLED_OPT, ENTITY_NAME, ENTITY_TYPE
from AUDIT_UNIFIED_ENABLED_POLICIES
where POLICY_NAME like 'ORA%';
USER_NAME POLICY_NAME ENABLED ENTITY_NAME ENTITY_
---------- ------------------------- ------- -------------------- -------
ALL USERS ORA_SECURECONFIG BY ALL USERS USER
ALL USERS ORA_LOGON_FAILURES BY ALL USERS USER
SQL> audit policy ORA_ACCOUNT_MGMT;
SQL> select USER_NAME, POLICY_NAME
from AUDIT_UNIFIED_ENABLED_POLICIES
where POLICY_NAME like 'ORA%';
USER_NAME POLICY_NAME
-------------------- ------------------------------
ALL USERS ORA_LOGON_FAILURES
ALL USERS ORA_ACCOUNT_MGMT
ALL USERS ORA_SECURECONFIG
3 rows selected.
SQL> SET LONG 20000 LONGCHUNKSIZE 20000 PAGESIZE 0 LINESIZE 1000 FEEDBACK OFF VERIFY OFF TRIMSPOOL ON
SQL> SET PAGESIZE 14 LINESIZE 100 FEEDBACK ON VERIFY ON
SQL> col os_username format a20
SQL> col object_name format a20
SQL> col dbusername format a15
SQL> col client_program_name format a20
SQL> col action_name format a10
SQL> col sql_text format a30
SQL> select to_char(EVENT_TIMESTAMP, 'dd/MM/yy HH:mm') as executed,
DBUSERNAME,
ACTION_NAME,
SQL_TEXT,
OBJECT_NAME
from UNIFIED_AUDIT_TRAIL
where cast(EVENT_TIMESTAMP as DATE) between current_date - 1 and current_date
order by EVENT_TIMESTAMP desc
fetch next 10 ROWS ONLY;
EXECUTED DBUSERNAME ACTION_NAM SQL_TEXT OBJECT_NAME
-------------- --------------- ---------- ------------------------------ --------------------
17/03/21 05:03 SYS ALTER USER alter user hr identified by * HR
account unlock
17/03/21 05:03 SYSTEM LOGON
17/03/21 05:03 SYS LOGON
10 rows selected.