code: public function init()
      {
          parent::init();
          if (strncmp($this->db->driverName, 'oci', 3) !== 0 && strncmp($this->db->driverName, 'odbc', 4) !== 0) {
              throw new InvalidConfigException('In order to use OracleMutex connection must be configured to use Oracle database.');
          }
      }
docs: Initializes Oracle specific mutex component implementation.
  @throws InvalidConfigException if [[db]] is not Oracle connection.