利用dbca複製執行個體可以不用像資料泵還原那樣繁瑣,建資料表空間,建使用者,授權,拷貝然後還原,跟rman類似,但在效率上跟rman還是有差距的
在我們建立執行個體的時候可以儲存為模板,其實也可以直接用DBCA命令來建立我們的執行個體模板,並且利用這個功能進行執行個體的複製。只是這個功能很少被關注
這裡我們選擇ManageTemplate:
注意建立模板的三種類型,官網也有相關的說明:
Installing Oracle Database and Creating aDatabase
http://docs.oracle.com/cd/E11882_01/server.112/e10897/install.htm#ADMQS023
(1)From an existing template
Using anexisting template, you can create a new template based on the predefinedtemplate settings. You can add or change any template settings such asinitialization parameters, storage parameters, or whether to use customscripts.
--根據已經存在的模板來建立新的模板,在此基礎之上可以修改舊模板的參數。
(2)From an existing database(structure only)
You can create anew template that contains structural information from an existing database,including database options, tablespaces, data files, and initializationparameters. User-defined schemas and their data will not be part ofthe created template. The source database can be either local or remote. Selectthis option when you want the new database to be structurally similar to thesource database, but not contain the same data.
--根據已經存在的資料庫執行個體來建立新的模板,這種只包含structural 的資訊,如database options,tablespaces,datafiles 和initialization parameters。 使用者定義的schemas 和data 不會被包含在模版中。因此這種模板只包含基本的架構資訊。