Rem Rem $Header: onevacat.sql 27-feb-01.16:34:38 dthompso Exp $ Rem Rem onevacat.sql Rem Rem Copyright (c) Oracle Corporation 2000, 2001. All Rights Reserved. Rem Rem NAME Rem onevacat.sql - all$olap_catalogs Rem Rem DESCRIPTION Rem Catalogs used to categorize cube measures. Rem Rem NOTES Rem Rem Rem MODIFIED (MM/DD/YY) Rem dthompso 02/27/01 - change security implementation Rem dthompso 07/19/00 - use correct classificationentry Rem dthompso 04/26/00 - Initial Version Rem dthompso 01/00/00 - Created Rem CREATE OR REPLACE VIEW all$olap_catalogs AS SELECT c.irid catalog_id , c.name catalog_name , cp.irid parent_catalog_id , c.description description FROM cwm$classification c , cwm$classification cp , cwm$classificationtype cty , cwm$classificationentry ce WHERE cty.irid = c.classificationtype_irid AND cty.name = 'ORACLE_OLAP_CATALOG' AND c.irid = ce.element_irid AND ce.name = 'CATALOG' AND ce.classification_irid = cp.irid UNION ALL SELECT c.irid catalog_id , c.name catalog_name , null parent_catalog_id , c.description description FROM cwm$classification c , cwm$classificationtype cty WHERE cty.irid = c.classificationtype_irid AND cty.name = 'ORACLE_OLAP_CATALOG' AND NOT EXISTS (SELECT null FROM cwm$classificationentry ce WHERE ce.name = 'CATALOG' AND ce.element_irid = c.irid) WITH READ ONLY /