Redian新闻
>
How to get all tables in a schema in Oracle 9i using its JDBC driver?
avatar
How to get all tables in a schema in Oracle 9i using its JDBC driver?# Java - 爪哇娇娃
f*4
1
I tried DatabaseMetaData.getTables(catalog, schema, "%", new String[]{"TABLE
"}) and got nothing.
I used ResultSetMetaData.getSchemaName(column) and got an empty String.
Anything wrong with the code or Oracle 9i JDBC driver hasn't implemented
those APIs properly?
avatar
f*4
2
TABLE
I got it, that was because I didn't specify catalog properly. BTW: I found
out the catalog names using DatabaseMetaData.getSchemas().
But the problem now is, the tables I got are like this
ATSI_CODES
BIN$J5XxEKjaSRfgQAtua5lq1w==$0
BIN$J5XxEKjkSRfgQAtua5lq1w==$0
BIN$J5XxEKjvSRfgQAtua5lq1w==$0
COUNTRY_CODES
ESL_PHASES
EVIDENCE_TYPES
What are those with '$' in them ?
Any nice way to filter them out from the ResultSet?
avatar
M*r
3

They are deleted tables in Oracle recyclebin.

【在 f*******4 的大作中提到】
: TABLE
: I got it, that was because I didn't specify catalog properly. BTW: I found
: out the catalog names using DatabaseMetaData.getSchemas().
: But the problem now is, the tables I got are like this
: ATSI_CODES
: BIN$J5XxEKjaSRfgQAtua5lq1w==$0
: BIN$J5XxEKjkSRfgQAtua5lq1w==$0
: BIN$J5XxEKjvSRfgQAtua5lq1w==$0
: COUNTRY_CODES
: ESL_PHASES

avatar
s*o
4
purge recyclebin

【在 f*******4 的大作中提到】
: TABLE
: I got it, that was because I didn't specify catalog properly. BTW: I found
: out the catalog names using DatabaseMetaData.getSchemas().
: But the problem now is, the tables I got are like this
: ATSI_CODES
: BIN$J5XxEKjaSRfgQAtua5lq1w==$0
: BIN$J5XxEKjkSRfgQAtua5lq1w==$0
: BIN$J5XxEKjvSRfgQAtua5lq1w==$0
: COUNTRY_CODES
: ESL_PHASES

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。