Database Blog

Query to find out the status of the undo and temp tablespace usage currently at the time of process execution

For undo ———— set lines 130 col SID_SERIAL format a20 col PROGRAM format a25 col Undo format a30 SELECT TO_CHAR(s.sid)||’,’||TO_CHAR(s.serial#) sid_serial, NVL(s.username, ‘None’) orauser, s.program, r.name undoseg, t.used_ublk * TO_NUMBER(x.value)/1024||’K’…

Read More

How to clone Oracle 10g and 11g binaries in silent mode

For the purpose of demonstration, I will clone an existing 11.2.0.2 (11gR2) ORACLE_HOME on the source server. Directories Needed: —————————— Source Server: ———————– hostname=source.com ORACLE_BASE=/opt/app/oracle ORACLE_HOME=/opt/app/oracle/product/11.2.0.2 Staging Directory = /home/oracle/clone…

Read More

Untitled

Creating private database links without user credentials The following process can be followed to create private database link for an user whose login credentials are unknown, Here in this example…

Read More

Untitled

To copy files from one server to another without promting/giving the password. For example there are two servers hosta and hostb to enable passwordless scp from hosta to hostb do…

Read More

Untitled

Recovering a standby database from missing archive logs There would be scenarios where the standby database lags far behind from the primary database leading to Archive Gap. It could be…

Read More

Internal error code, arguments [kcratr_nab_less_than_odr]

Solution for kcratr_nab_less_than_odr argument This error may cause due to improper shutdown and will throws the error  ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr] while issuing the command alter database open Option…

Read More

Enable Auditing for DB user login attempts in 11g

1 – Add initialization parameters & bounce instance: alter system set audit_trail=db scope=spfile; audit_file_dest=’/u01/app/oracle/mysid/mydir/’ 2 – Enable auditing of failed logion attempts : SQL> audit create session whenever not successful;…

Read More

12c database table recovery with rman

Rman 12c new features

Read More

Using adrci Tool in 11g

Oracle 11g introduces adrci tool. This tool is used to examine contents of ADR repository and also to package information related to a specific problem into a compressed (zip) file…

Read More

Instance Caging to Manage CPU Usage in 11g R2

Managing CPU usage can be an issue when trying to consolidate multiple databases on to a single server, because if one database starts to hog all the CPU on the…

Read More