Posts

Showing posts from October, 2024

ORACLE GG VS ORACLE DR

 ORACLE GG VS DATAGAURD  Query offloading - ORACLE GG(supported) DATAGAURD (supported) High availability - ORACLE GG(supported) DATAGAURD (supported) Unidirection ful replication - ORACLE GG(supported) DATAGAURD (supported) Heterogenious replication - ORACLE GG (supported ) DATAGAURD (not supported) Data transformation - ORACLE GG  (supported) DATAGAURD (not supported) Set of data for replication - ORACLE  GG (supported) DATAGAURD (not supported) Bidirectional replication - ORACLE GG  (supported) DATAGAURD (not supported) Alter database and alter system  -  ORACLE GG (not supported) DATAGAURD (supported) - (Whatever the sys user is doing everything capture by DG)

DATAPUMP (export import) IN ORACLE

----------------------------------- EXPDP (Data Pump Export) Parameters : ------------------------------------ Parameter       Description                                                   Example DIRECTORY   Specifies the directory object where dump files are written. DIRECTORY=DATA_PUMP_DIR DUMPFILE   Specifies the name(s) of the dump file(s).                  DUMPFILE=expdp_dump_%U.dmp (for parallel) LOGFILE       Specifies the name of the log file.                          LOGFILE=expdp.log SCHEMAS       Exports one or more schemas.                                  SCHEMAS=HR,SCOTT TABLES ...

Database Security and Auditing

--------------------------------------------- ### **Oracle Database Security and Auditing** ------------------------------------------- Oracle Database Security and Auditing are mechanisms to protect sensitive data, control access, and monitor user activity within the database. These features ensure compliance with security standards and safeguard against internal and external threats. --- ### **1. Oracle Database Security** : --------------------------------------- Oracle Database Security involves implementing measures to protect data from unauthorized access, alteration, or destruction. Key aspects include: #### **Authentication** - Verifying the identity of users attempting to access the database. - **Techniques**: Passwords, Kerberos, LDAP, PKI certificates, and OS-based authentication. #### **Authorization** - Controlling what authenticated users can do. - **Methods**:    - Roles and privileges (e.g., `GRANT SELECT ON employees TO user1;`).   - Least privilege princ...

PERFORMANCE TUNING ORACLE DATABASE

=============================== LONG RUNNING SQL Query SOLUTION: =============================== * Is there any changes did in I/O Hardware/network/database parameters  * Check CPU, RAM usage and also rman backups and export import  activities are running on cpu. * Is there any stale statistics (missing stats) gather fresh stats  * Check execution plan and plan hash value changed  * Indexes are used or not verify  * Generate AWR report and verify any wait events, locks are holding in database * Cretae ADDM/sqltuning advisory for sql_id and implement the recommendations  1)Identify the Query: Determine which query is running for a long time. You can use Oracle Enterprise Manager, SQL Developer,  or query the V$SQL or V$SESSION views to find the SQL statement causing the slowdown.   2)Analyze Execution Plan: Use the EXPLAIN PLAN command, SQL Developer's Explain Plan feature, or Oracle's SQL Tuning Advisor to analyze  the execution plan of the q...