Friday, December 22, 2023
Export/Import Oracle Dataguard / Dg Broker Configuration
Saturday, December 9, 2023
Change Oracle database TIME_ZONE
Oracle allows you to specify the database timezone using a time zone name, listed in the V$TIMEZONE_NAMES view, or using a UTC offset (+/-HH:MI).
For performance reasons, Oracle recommends setting the database time zone to UTC (0:00), as no conversion of time zones will be required.
The multitenant architecture allows you to specify a different database time zone for each pluggable database, with the time zone of the container database being used as the default.
Thursday, December 7, 2023
Upgrade DST Time Zone Version in 19C using utltz_upg_apply.sql to avoid ORA-39405 during import
Thursday, November 23, 2023
Tracking Child Sqlid / Session Id executed By Plsql and Procedure using program_id
Its not easy to track and tune Child sql that are executed internally as part of plsql.
Tuesday, October 10, 2023
Oracle Database Connection pooling Strategies : Database Resident Connection Pooling (DRCP)
Thursday, October 5, 2023
Oracle Exadata Cell offloading/ smart scan Not working for sqlid
Tuesday, September 26, 2023
Handling errors faced while Generating Oracle Awr report / Awr snapshots
Monday, September 11, 2023
Oracle sysresv utility to release shared memory / semaphores -- No need for ipcs and ipcrm
Examples:
---------
o Instance is not running:
/u02/app/oracle/product/8.1.7> sysresv
IPC Resources for ORACLE_SID "R817" :
Shared Memory
ID KEY
No shared memory segments used
Semaphores:
ID KEY
No semaphore resources used
Oracle Instance not alive for sid "R817"
o Instance is running:
/u03/app/oracle/product/8.1.6> sysresv
IPC Resources for ORACLE_SID "ORCL" :
Shared Memory:
ID KEY
16437 0xe4efa8dc
Semaphores:
ID KEY
12320802 0x09d48346
Oracle Instance alive for sid "ORCL"
o Attempting to remove memory and semphores using sysresv when Oracle
detects an instance is running:
/u03/app/oracle/product/8.1.6> sysresv -f
IPC Resources for ORACLE_SID "ORCL" :
Shared Memory:
ID KEY
16437 0xe4efa8dc
Semaphores:
ID KEY
12320802 0x09d48346
Oracle Instance alive for sid "ORCL"
SYSRESV-005: Warning
Instance maybe alive - aborting remove for sid "ORCL"
o Removing IPC resources:
[Sysresv shows memory and semaphores exist but Oracle determines the
instance is not alive. Cleanup is needed.]
/u03/app/oracle/product/8.1.6> sysresv
IPC Resources for ORACLE_SID "ORCL" :
Shared Memory:
ID KEY
16837 0xe4efa8dc
Semaphores:
ID KEY
12714018 0x09d48346
Oracle Instance not alive for sid "ORCL"
o Removing IPC resources using sysresv:
/u03/app/oracle/product/8.1.6> sysresv -i
IPC Resources for ORACLE_SID "ORCL" :
Shared Memory
ID KEY
No shared memory segments used
Semaphores:
ID KEY
No semaphore resources used
Oracle Instance not alive for sid "ORCL"
Remove ipc resources for sid "ORCL" (y/n)?y
Done removing ipc resources for sid "ORCL"
/u03/app/oracle/product/8.1.6
Verify the resources were removed:
/u03/app/oracle/product/8.1.6> sysresv
IPC Resources for ORACLE_SID "ORCL" :
Shared Memory
ID KEY
No shared memory segments used
Semaphores:
ID KEY
No semaphore resources used
Oracle Instance not alive for sid "ORCL"
o If you need to remove memory segments, and Oracle detects the
instance is alive through sysresv:
% ipcrm -m <memid>
Where <memid> is the memory id shown in the sysresv output.
Example:
% ipcrm -m 16437
If you need to remove semaphores, and Oracle detects the
instance is alive through sysresv:
% ipcrm -s <semid>
where <semid> is the semaphore id shown in the sysresv output.
Example:
% ipcrm -s 12320802
Reference :
SYSRESV Utility (Doc ID 123322.1)
Startup fail with ORA-29701 & ORA-29702 after the DB crash. (Doc ID 2160481.1)
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=' |