'Execute a query against an Oracle database.'

def execute_query(self, query):

    logger.debug('[DBOracle]    Execute    Oracle    query    %s\n', query)
    try:
        self.db_cursor.execute(query)
        self.db.commit()
    except IntegrityError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    an    integrity    error:    %s,    %s', query, exp)
    except ProgrammingError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    a    programming    error:    %s,    %s', query, exp)
    except DatabaseError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    a    database    error:    %s,    %s', query, exp)
    except InternalError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    an    internal    error:    %s,    %s', query, exp)
    except DataError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    a    data    error:    %s,    %s', query, exp)
    except OperationalError_exp as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    an    operational    error:    %s,    %s', query, exp)
    except Exception as exp:
        logger.warning('[DBOracle]    Warning:    a    query    raise    an    unknown    error:    %s,    %s', query, exp)
        logger.warning(exp.__dict__)
