Professional Documents
Culture Documents
Need For Policy Managed Databases: Importance
Need For Policy Managed Databases: Importance
Need For Policy Managed Databases: Importance
- As the number of nodes become large, DBA’s tasks became very complicated .
- It was not possible to add more instances dynamically to newly added servers .
- It was not possible for additional instances of database to start automatically as some
servers in the cluster became idle.
– It was not possible for a service to be available on newly added nodes dynamically.
Now, from Oracle 11g R.2 RAC all these tasks are automated using server pool , a new
feature of Oracle 11g RAC. Server Pools logically divide the cluster into small segments
that can be used for varying workloads. Now databases and services can be defined to
run in server pools. And servers in the server pools can change dynamically.
Oracle 11g R2 introduced server pools in which we could divide the cluster into smaller
server pools. Each pool could be assigned some attributes:
MAX_SIZE: The maximum number of servers a server pool can contain. Default value
is -1 which indicates means that all the servers in the cluster can be a part of this pool.
MIN_SIZE: The minimum size of a server pool. If the number of servers contained in a
server pool is below the number you specify in this attribute, then Oracle Clusterware
automatically moves servers from other pools into this one until that number is met. The
default value is 0.
r: Read only
w: Modify attributes of the pool or delete it
x: Assign resources to this pool
- Generic Pool: The servers in the pool are used to host Admin Managed databases.
.This is an internally managed server pool and the modification of the attributes of this
pool is not allowed.
Free Pool: All the servers which have not been assigned to any pool are part of this
pool. When the clusterware starts , initially all the servers are assigned to this pool only.
As applications start, servers move from this pool to Generic or user defined pool
dynamically.
Using these mechanisms, server pools can maintain an optimal level of resources
based on current no. of servers that are available.
Simulation:
scenario:
Nodes in the cluster : host01, host02, host03
- check that two servers have been allocated to mypool from free pool
NAME=Free
ACTIVE_SERVERS=host01
NAME=Generic
ACTIVE_SERVERS=
NAME=ora.mypool
ACTIVE_SERVERS=host02 host03
- check that one server has been allocated to mypool1 from free pool
NAME=Free
ACTIVE_SERVERS=
NAME=Generic
ACTIVE_SERVERS=
NAME=ora.mypool
ACTIVE_SERVERS=host02 host03
NAME=ora.mypool1
ACTIVE_SERVERS=host01
- Check that one server has been moved from mypool of lower importance(1) to
mypool of higher importance (2)
[root@host02 host02]# crsctl stat serverpool
NAME=Free
ACTIVE_SERVERS=
NAME=Generic
ACTIVE_SERVERS=
NAME=ora.mypool
ACTIVE_SERVERS=host03
NAME=ora.mypool1
ACTIVE_SERVERS=host01 host02
- Check that one server has been moved from mypool1 to mypool
NAME=Free
ACTIVE_SERVERS=
NAME=Generic
ACTIVE_SERVERS=
NAME=ora.mypool
ACTIVE_SERVERS=host02 host03
NAME=ora.mypool1
ACTIVE_SERVERS=host01
- Cleanup –
Although this type seems to be much simpler, this can’t be used when the number of
nodes pass a number which is difficult to manage by a DBA, for example 100. In that
case, the next type of the 11.2 database would be helpful-Policy Managed database.
For example, if a cluster consisted of eight nodes in total and supported three RAC
databases. Each database would be defined with a minimum and maximum number of
servers. Let’s assume that
If a 9th node were added to the cluster, it would be assigned to DB1 because of the
importance factor and the fact that DB1 has not yet hit its maximum number of servers.