Qualified Names for Physical Entities (Tables)

Example: Query for returning a list of the qualified names for physical entities (tables) for target servers that use the DB Owner property, such as SQL Server 2000

SELECT SCHEMA_NAME AS 'SCHEMA', TRAN(PHYSICAL_NAME) AS 'TABLE'
FROM EM0.MV_PHYSICAL_ENTITY@
ORDER BY 1, 2

Example: Query for returning a list of the qualified names for physical entities (tables) for target servers that use separate schema objects, such as SQL Server 2005

SELECT S.NAME AS 'SCHEMA', TRAN(E.PHYSICAL_NAME) AS 'TABLE'
FROM EM0.MV_PHYSICAL_ENTITY@ E LEFT JOIN SCHEMA S
ON E.SCHEMA_REF = S.ID@
ORDER BY 1, 2

Back to Top