Download Oracle Grid Engine User's Guide
Transcript
Planning the ARCo Installation In Figure 2–14, only one database is created with multiple schemas (one per each cluster). There are two users for each schema, arco_write_cluster and arco_ read_cluster. The name of the schema should be the same as the name of the owner (arco_write_cluster). Figure 2–14 One Database With Multiple Schemas on a Single DBMS 2.26.6 Schema Overview A database cluster contains one or more named databases. Any given client connection to the server can access only the data in a single database, the one specified in the connection request. A database can contain one or more named schemas, which in turn contain tables. Schemas also contain other objects, such as views, aliases, indexes and functions. The same object name can be used in different schemas without conflict; for example, both schemas arco_write_denver and arco_write_london may contain the sge_job table. Unlike databases, schemas are not rigidly separated: a user may access objects in any of the schemas in the database to which the user is connected, if the user has privileges to do so. For user to access objects from a different schema, he needs to be granted SELECT privilege on the objects and access them using the fully-qualified name, for example schema_name.table_name. A user does not need to use the fully-qualified names if accessing objects in its own schema. Each database handles the schema notion differently. ■ ■ Oracle - In Oracle, one schema is created automatically for each user. Because there is a 1-to-1 relationship between a user and a schema, these two terms are often used interchangeably. To perform cross-cluster queries, one designated database user (for example, multi_read) needs to be granted SELECT privileges on all the objects (tables, views) from all the other schemas. See Using the Oracle Database. PostgreSQL - In PostgreSQL when a table is created without explicitly specifying schema name, it is automatically put into the default schema called 'public'. Each Using Grid Engine 2-97