Database Reference
In-Depth Information
Copying database files
1% complete
[...]
74% complete
Creating Pluggable Databases
79% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/apclu/apclu.log" for further details.
[oracle@rac12node1 bin]$
pluggable Databases (pDBs) are one of the most interesting new features in oracle 12c. You can read more
about the technical details pertaining to pDBs in Chapter 7.
Note
The silent creation of a database is a very powerful command; refer to the online help or the official
documentation set for more information about its options.
Registering the Database with Clusterware
As part of its creation, the database will be registered in Clusterware as a single instance database resource. In all
normal circumstances that would be a much appreciated service, but in this special case it needs changing. An Oracle
single instance database deployed on a multi-node cluster does not have the ability to “move” around in the cluster.
When created, the instance sticks to the cluster node where it was created.
To gain some flexibility, a new custom resource needs created. This resource will allow the database to be started
on more than one cluster node: in the event of a node failure it will be relocated to the surviving node without user
intervention. Since the database files all reside in ASM—a cluster file system concurrently mounted on all nodes—no
time consuming file system integrity check is needed. The first step is to remove the database configuration from the
Cluster registry:
[oracle@rac12node1 ~]$ srvctl stop database -d apclu
[oracle@rac12node1 ~]$ srvctl remove database -d apclu
Remove the database apclu? (y/[n]) y
Note that this command cleans the entry from the oratab file as well. The following steps require a little more
planning. Recap from the introduction that Clusterware manages resources during their life cycle. The major states
the resource can be in are:
Stopped: the resource is stopped, either intentionally or because it crashed.
Started: the resource is up and running.
Intermediate: something went wrong when starting the resource.
 
 
Search WWH ::




Custom Search