How to Understand Missing Tables in Table Explorer
Issue
A table is not visible in the Table Explorer, despite the table being present in the database.
Environment
HVR 6
Resolution
This article demonstrates two scenarios.
- Table Explorer does not list
a1_tpccbecause it is owned by thetpccschema and thehvrhub4schema does not have select privilege on it. - Table Explorer does not list
a1_tempbecause it is a global temporary table. HVR does not support global temporary tables because they are not static.
In the following examples:
- Oracle is the source database
- The schema
hvrhub4is the hub schema a1_tempis a global temporary table present in thehvrhub4schemaa1_tpcctable is owned by thetpccschema
Scenario 1
HVR user hvrhub4 does not have the privilege to select the table a1_tpcc.
Solution: Grant hvrhub4 privilege to select the table a1_tpcc.
Scenario 2:
The table a1_temp is a global temporary table. If the table is visible in the database schema but it is not visible while adding to the replication, it is possible that this table is a temporary table.
HVR does not support global temporary tables because they are not static.
Run the below query to get the DDL of the table a1_temp. The DDL of the table tells if it is a temporary table.
SQL> spool ddl_list.sql; SQL> SET HEADING OFF; SQL> SET ECHO OFF; SQL> SET PAGES 999; SQL> SET LONG 90000; SQL> SPOOL DDL_LIST.SQL ; SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','A1_TEMP','HVRHUB4') FROM DUAL;
Result of the query:
CREATE GLOBAL TEMPORARY TABLE "HVRHUB4"."A1_TEMP" ( "C1" NUMBER(*,0), "C2" VARCHAR2(25 BYTE) ) ON COMMIT DELETE ROWS ;