Note
This view is available starting with V4.2.0.
Overview
Displays the list of files for external tables to which the current user has access.
Columns
Column |
Type |
Is NULL |
Description |
|---|---|---|---|
| TABLE_NAME | varchar(256) | NO | External Table Name |
| TABLE_SCHEMA | varchar(128) | NO | Database name where external table is located |
| PARTITION_NAME | varchar(2) | NO | PARTITION NAME of External Table |
| FILE_URL | varbinary(16384) | NO | File URL of External Table |
| FILE_SIZE | bigint(20) | NO | The size of this file, in bytes. |
Sample query
Query the file list of external tables to which the current user has access.
obclient [oceanbase]> SELECT * FROM oceanbase.ALL_OB_EXTERNAL_TABLE_FILES;
The query result is as follows:
+-------------------------------+------------------+----------------+-------------------------------+-----------+
| TABLE_NAME | TABLE_SCHEMA | PARTITION_NAME | FILE_URL | FILE_SIZE |
+-------------------------------+------------------+----------------+-------------------------------+-----------+
| __all_external_alert_log_info | sys_external_tbs | P0 | 172.xx.xxx.xxx:2882%alert.log | 6473 |
+-------------------------------+------------------+----------------+-------------------------------+-----------+
1 row in set
