def findOwner(cursor, tableName):
    """
    Finds the owner of a table.
    """
    cursor.execute("""SELECT OWNER
FROM ALL_OBJECTS
WHERE object_name = '"""+tableName.upper()+"'")
    return cursor.fetchone()[0]