본문 바로가기

DB/ORACLE

[펌] 네임스페이스에서 이름생성 방법(Within a namespace, no two objects can have the same name)

반응형

Within a namespace, no two objects can have the same name.

 

# The following schema objects share one namespace:

 

 - Tables

 - Views

 - Sequences

 - Private synonyms

 - Stand-alone procedures

 - Stand-alone stored functions

 - Packages

 - Materialized views

 - User-defined types

 

# Each of the following schema objects has its own namespace:

 

 - Indexes

 - Constraints

 - Clusters

 - Database triggers

 - Private database links

 - Dimensions

 

Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, tables and indexes are in different namespaces. Therefore, a table and an index in the same schema can have the same name.

 

Each schema in the database has its own namespaces for the objects it contains. This means, for example, that two tables in different schemas are in different namespaces and can have the same name.

 

# Each of the following nonschema objects also has its own namespace:

 

 - User roles

 - Public synonyms

 - Public database links

 - Tablespaces

 - Profiles

 - Parameter files (PFILEs) and server parameter files (SPFILEs)

 

Because the objects in these namespaces are not contained in schemas, these namespaces span the entire database.

 

출처 : Schema Object Names and Qualifiers

반응형