• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Enable or Disable Veritas ODM for Oracle database 12.1.0.2, 18c and 19c

by admin

This post describes the procedures for Enable/Disable Oracle Disk Manager driver for Oracle Database 12.1.0.2, 18c, and 19c.

We assume the Veritas ODM driver is already installed, mounted, and available. Follow the steps outlined below to enable/disable ODM for the Oracle database (note that with different versions of the Solaris OS, the path may change to the ODM files).

Example location of Veritas ODM library on some platforms:

For Linux: /opt/VRTSodm/lib64/libodm.so
For Solaris SPARC: /usr/lib/sparcv9/libodm.so
For Solaris x86: /usr/lib/amd64/libodm.so

The example given here below is for the Linux platform.

Enable ODM

1. Log in as RDBMS Home Owner OS user.

2. Shut down the database.

3. Change directories:

$ cd $ORACLE_HOME/rdbms/lib

4. Take a backup of existing original ODM library (if this is an old set up).

$ mv $ORACLE_HOME/rdbms/lib/odm/libodm[software_version].so $ORACLE_HOME/rdbms/lib/odm/libodm[software_version].so.org

For example, in 12c [software_version] = 12:

$ mv $ORACLE_HOME/rdbms/lib/odm/libodmlibodm12.so $ORACLE_HOME/rdbms/lib/odm/libodm12.so.org

5. On new set up, create the odm directory if it is not there:

$ mkdir –p odm
$ cd odm

6. create a symbolic link to veritas ODM library:

$ ln -s /opt/VRTSodm/lib/libodm.so $ORACLE_HOME/rdbms/lib/odm/libodm[software_version].so

For example, in 12c [software_version]=12:

$ ln -s /opt/VRTSodm/lib/libodm.so $ORACLE_HOME/rdbms/lib/odm/libodm12.so

For example, in 19c:

$ ln -s /opt/VRTSodm/lib64/libodm.so $ORACLE_HOME/rdbms/lib/odm/libodm19.so
Note: In 19c, no changes required for the default link present inside /lib/libodm19.so which point to [ORACLE_HOME]/lib/libodmd19.so. Create a new link inside [ORACLE_HOME]/rdbms/lib/odm/libodm19.so pointing /opt/VRTSodm/lib64/libodm.so.

7. Start the database and check the alert.log for the below message:

Oracle instance running with ODM: VERITAS 4.1 ODM Library, Version 1.1

8. Also validate the DBWR is opening /dev/odm/ctl files:

$ ps -aef | grep -i ora_dbw0_t12
oracle 19706 1 0 12:44 ? 00:00:00 ora_dbw0_t12101
$ lsof -p 19706 | grep -i odm
ora_dbw0_ 19706 oracle mem REG 8,3 69205 20259040 /opt/VRTSodm/lib64/libodm.so
ora_dbw0_ 19706 oracle 8r REG 0,19 0 3 /dev/odm/ctl
ora_dbw0_ 19706 oracle 10r REG 0,19 0 3 /dev/odm/ctl
ora_dbw0_ 19706 oracle 25r REG 0,19 0 3 /dev/odm/ctl

On 19c, following sample output for ‘lsof -p [pid of dbwr process] | grep -i odm’

$ lsof -p [pid of dbwr process] | grep -i odm
ora_dbw0_ 25556 oracle mem REG 253,143 70718 27670121 /opt/VRTSodm/lib64/libodm.so
ora_dbw0_ 25556 oracle mem REG 199,5000 17848 34127 [ORACLE_HOME]/lib/libodmd19.so
ora_dbw0_ 25556 oracle 6r REG 0,41 0 3 /dev/odm/ctl
ora_dbw0_ 25556 oracle 7r REG 0,41 0 3 /dev/odm/ctl
ora_dbw0_ 25556 oracle 14r REG 0,41 0 3 /dev/odm/ctl 

Disable ODM

Just remove the symbolic link from the respective directory so that the link to the Veritas ODM library present at the OS directory is broken.

1. Log in as an RDBMS Home Owner OS user. Shut down the database.

2. Remove the link:

$ cd $ORACLE_HOME/rdbms/lib/odm
$ rm libodm[software_version].so

3. Copy the original $ORACLE_HOME/rdbms/lib/odm/libodm[software_version].so file back to disable the ODM library:

$ cp $ORACLE_HOME/rdbms/lib/libodm[software_version].so.oracle $ORACLE_HOME/rdbms/lib/libodm[software_version].so
$ ls -l libodm[software_version].*

4. Start the database and check the alert.log.

How to Enable or Disable Veritas ODM for Oracle database 11g
How to Enable or Disable Veritas ODM for Oracle database 12.1.0.1

Filed Under: 18c, oracle, oracle 12c, Oracle 19c, VCS

Some more articles you might also be interested in …

  1. Oracle Multitenant: How to Create CDB and PDB
  2. How to convert Linux dd .img to .VDI, VMDK, VHD with VIrtualBox Command
  3. How to convert NON-OMF to OMF files ( Oracle Managed File conversion – NON-ASM )
  4. Beginners Guide to Oracle Database In-Memory in RAC
  5. VCS cluster 5.1 LAB using VMware workstation : Configuring openfiler
  6. How to Switch to a New Undo Tablespace in Oracle Database
  7. Truncate Table Statement: REUSE STORAGE VS DROP STORAGE
  8. VCS (Infoscale Availability) : How to online and offline a Service Group
  9. ORA-01506: missing or illegal database name
  10. New Connections to the Database lead to ORA-12518 or TNS-12518

You May Also Like

Primary Sidebar

Recent Posts

  • netselect-apt Command Examples in Linux
  • netselect-apt: command not found
  • nethogs Command Examples in Linux
  • nethogs: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright