Tuesday, August 22, 2023
Oracle Solaris Zone management
Friday, August 18, 2023
Oracle Database SQLTXPLAIN (SQLT) Installation and report generation
Monday, August 14, 2023
Tracing Oracle Database PLSQL using DBMS_HPROF and PLSQL Profiler
Saturday, August 12, 2023
Oracle Rac Node failover Testing
As part of new build we need to do node failover testing hence documenting some steps known to me
Objective
|
Action |
Expectations
|
To test
accidental change of |
Modify
etc/hosts and change |
The
cluster must not be able to |
To test
the failure of ASM instance |
On Node
1, kill the processes |
The
cluster must not be affected |
To test
the failover of the network |
Plug out
one of the cableconnecting |
The ping
from the client |
To test
the stability of the db by killing a
ora server process |
kill off
a process related to the |
The sql
session should not be |
To test
thecomplete failover of the session in event of a node(e.g. sudden shutdown |
1.
Connect from the client to the database via sqlplus. |
The sql
session should not be |
To test
the failover session of a |
1.
Connect from a client to node1 in the RAC Environment usingsqlplus. |
The sql
connection should be able to |
To test
Crash of Grid Processes |
Kill
Lmon process on rac node |
They
must be restarted |
To Test for automatically shifting of |
Reboot
Node 1 using the OS |
1. When
noe 1 goes down all scan |
To test
storage crash |
Forcibly
make scan disk unvisible to |
The
cluster must go down and |
TAF
failoer test |
to test
sql and session failover |
|
Tuesday, August 8, 2023
Oracle Database Performance Hub report using DBMS_PERF
Syntax
DBMS_PERF.REPORT_PERFHUB ( is_realtime IN NUMBER DEFAULT NULL, outer_start_time IN DATE DEFAULT NULL, outer_end_time IN DATE DEFAULT NULL, selected_start_time IN DATE DEFAULT NULL, selected_end_time IN DATE DEFAULT NULL, inst_id IN NUMBER DEFAULT NULL, dbid IN NUMBER DEFAULT NULL, monitor_list_detail IN NUMBER DEFAULT NULL, workload_sql_detail IN NUMBER DEFAULT NULL, addm_task_detail IN NUMBER DEFAULT NULL, report_reference IN VARCHAR2 DEFAULT NULL, report_level IN VARCHAR2 DEFAULT NULL, type IN VARCHAR2 DEFAULT 'ACTIVE', base_path IN VARCHAR2 DEFAULT NULL); RETURN CLOB;
REPORT_PERFHUB Function Parameters
Parameter | Description |
---|---|
| If 1, then real-time. If |
| Start time of outer period shown in the time selector. If
|
| End time of outer period shown in the time selector. If
|
| Start time period of selection. If
|
| End time period of selection. If
|
| Instance ID to for which to retrieve data
|
|
|
| Top N in SQL monitor list for which to retrieve SQL monitor details.
|
| Top N in Workload Top SQL list to retrieve monitor details,
|
| Maximum N latest ADDM tasks to retrieve
|
| Must be |
|
|
| Report type:
|
| URL path for HTML resources since flex HTML requires access to external files. This is only valid for type=' |