plsql: add getTableType