How to Rename Ethernet Interface to eth0 in Linux on VM

Sometime you may need to change the Network Interface Name on your system. I faced issue while I was cloning a node to prepare a new node for RAC Environments on Oracle Linux 6.5.

When you clone a VM, you need to reassign the Network device means it will assign new UUID for the device and it will create new Network Interface at OS level. But For RAC, You need to set same name of Network Interface for all nodes. I got below error while was trying install GI (Grid Infrastructure) with different Network Interface Name.

Continue reading

Copy Password File From Primary ASM to Standby ASM on Oracle 12c

If create a database using DBCA, usually password file create on ASM Diskgroup. For RAC, this is also recommended to use ASM Diskgroup for spfile and password file. In this topic, I will show how to copy password file from ASM of Primary database to Standby on ASM.

Password File location on Primary Database:

[oracle@ocmnode1 ~]$ . oraenv

[oracle@ocmnode1 ~]$ asmcmd pwget --dbuniquename ORCL
Continue reading

Unable To Load Module Oracleasm in Oracle 12c

CRS (Cluster Ready Service) is not starting and getting ‘FATAL: Module oracleasm not found’ error on log files.

[root@ocmnode1 ~]# cat /var/log/messages

Aug 12 01:32:08 ocmnode1 modprobe: FATAL: Module oracleasm not found.
Aug 12 01:32:33 ocmnode1 modprobe: FATAL: Module oracleasm not found.
Aug 12 01:34:32 ocmnode1 modprobe: FATAL: Module oracleasm not found.

After checked in details found that oracleasm package / RPM was not working.

[root@ocmnode1 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"
Continue reading

Migrating OCR, Voting Disk and MGMTDB to another ASM DiskGroup in 12c RAC

Sometime DBA need to move or migrate below mentioned files or DB to different ASM DiskGroup for difference reason. I will show how to move or migrate below mentioned files or DB from one ASM DiskGroup to Another:

  • How to move or migrate OCR and Voting Disk from one ASM Diskgroup to another.
  • How to move or migrate SPFILE and PWDFILE from one ASM Diskgroup to another.
  • How to move or migrate MGMTDB from one ASM Diskgroup to another.
Continue reading

Adding a Node to Oracle RAC 12c

Complete below list of tasks:

DBA may need to add a new node or existing node (which got deleted from cluster) into Clusterware.

List of tasks for New Node:

  • Install same version of OS
  • Setup environment variable
  • Install all required package including Oracleasm
  • Configure Networking (IP and others)
  • Check Time Synchronization 
  • Change Recommended Kernel Parameters for Oracle
  • Create Group and User (make sure these are same with existing Nodes)
  • Setup SSH configuration for grid user or (user which was used for GRID installation) between new node and other nodes.
Continue reading

Deleting a Node to Oracle RAC 12c

A node in the cluster may crash due to hardware or OS problems and is not recoverable. So DBA needs to delete a problematic node from clusterware. In this topic I will show discuss how to delete a node from two nodes RAC.

Two Nodes: ocmnode1 will be deleted

  • ocmnode1
  • ocmnode2

Deinstall Oracle Home:

Continue reading

Oracle Exadata Smart Flash Cache

Smart Flash Cache:

  • Oracle Exadata Smart Flash Cache stores frequently access data in Flash Storage which is very fast than other storage. This happens automatically and user don’t need to take any action to use this feature.
  • Flash Cache is Smart – it avoids caching data which will not be reused or which is too big to fit in cache.
  • The Exadata Storage Server Software also provides the Exadata Smart Flash Logging feature to speed database log I/O
Continue reading

Hybrid Columnar Compression

About Exadata Hybrid Columnar Compression

  • Oracle introduced basic compress feature from Oracle 9i version.
  • Exadata Hybrid Columnar Compression can be specified at Table or Table Partition and Tablespace Level.
  • Not Suitable for data which is frequently changing.
  • Locking at CU level instead of row level so potentially many rows could be locked instead of single row
  • Data needs to be loaded using direct path loads like Parallel DML, INSERT /*+ APPEND*/, direct path SQL Loader
Continue reading

Configure Distributed Command Line Interface (DCLI)

To manger and monitor Exadata Storage we can use two utility.

  • DCLI

CELLCLI: Each Exadata Storage Cell is administered individually by using cellcli. But this utility can connect a local cell server. cellcli works with MS process to perform the administration task like creation of cell or grid disk.

DCLI: DCLI utility enables execution of commands on multiple database and storage servers.

Continue reading

Storage Indexes in Exadata System

What is Storage Index in Exadata System?

Storage Index in Exadata is another important feature which helps to reduce useless I/Os for query execution.

A storage index is a memory-based structure that reduces the amount of physical I/O performed in an Exadata cell. The storage index keeps track of minimum and maximum column values of a chunk in GRID Disk and this information us used to avoid useless I/Os.

Continue reading