def sizeFlat(self, flatTable): connection = self.getConnection() cursor = connection.cursor() size_total = oracleops.getSizeTable(cursor, flatTable) size_indexes = oracleops.getSizeUserIndexes(cursor) connection.close() return self.formatSize(size_total, size_indexes)
def sizeBlocks(self, blockTable, baseTable): connection = self.getConnection() cursor = connection.cursor() try: size_total = oracleops.getSizeTable(cursor, [blockTable, baseTable]) size_indexes = oracleops.getSizeUserSDOIndexes(cursor, blockTable) except Exception, err: print traceback.format_exc() size_total = None size_indexes = None