class_docstr: This handler handles connection and execution of the Microsoft SQL Server statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Microsoft","SQL","Server","statements","."]
code: def connect(self) -> Connection:
      if self.is_connected is True:
          return self.connection
      d = None  # default suitable for Linux OS
      oracledb.init_oracle_client(lib_dir=d)
      connection = connect(
          user=self.user,
          password=self.password,
          dsn=self.dsn,
          disable_oob=self.disable_oob,
          mode=self.auth_mode,
      )
  
      self.is_connected = True
      self.connection = connection
      return self.connection
  
imports: from typing import Optional
  from collections import OrderedDict
  import pandas
  import oracledb
  from oracledb import connect, Connection, makedsn
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 2 for calling the OracleHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self