EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB11542: How to view all tables in the warehouse catalog for a user with access to different schemas in the warehouse database


Community Admin

• Strategy


How to view all tables in the warehouse catalog for a user with access to different schemas in the warehouse database

When opening the warehouse catalog, if a user has access to two schemas in the warehouse database, only the tables from one schema are displayed. However, when using the ODBC test tool, the tables from both schemas are available for querying. To do this, the user must customize the SQL statement that queries the database catalog tables to ensure that the tables from the other schema are also queried.
 
This can be done by accessing the Warehouse catalog Read Settings (options > Catalog > Read Settings), as seen below:

ka04W000000OhTKQA0_0EM440000002JJH.jpeg

 
Click on Settings and change the SQL to include the tables needed:

ka04W000000OhTKQA0_0EM440000002JJK.jpeg

 
Then, adapt the default scripts, provided below as an example:
 
Default table names:
 
SELECT DISTINCT OWNER NAME_SPACE, TABLE_NAME TAB_NAME
FROM ALL_TAB_COLUMNS
WHERE OWNER = `#LOGIN_NAME#`
Default column names:
 
SELECT OWNER NAME_SPACE, TABLE_NAME TAB_NAME, COLUMN_NAME COL_NAME, DATA_TYPE DATA_TYPE, DATA_LENGTH DATA_LEN, DATA_PRECISION DATA_PREC, DATA_SCALE DATA_SCALE
FROM ALL_TAB_COLUMNS
WHERE TABLE_NAME in (#TABLE_LIST#)
ORDER BY 1, 2


Comment

0 comments

Details

Knowledge Article

Published:

May 18, 2017

Last Updated:

May 18, 2017