1. Silent File
[email protected] ~]$ cat create_template_db.rsp [general]responsefile_version = "12.1.0" Operation_type = " Createtemplatefromdb "[createtemplatefromdb]sourcedb =" rhndb "sysdbausername =" System "Sysdbapassword =" abcABC12 " templatename = "RHN_DB_12C"
2. Create silently
[Email protected] ~]$ dbca-silent-responsefile/home/oracle/create_template_db.rsp Creating a template from the Databas e10% complete20% complete30% complete40% complete50% complete60% complete70% complete80% complete90% complete100% Completelook at the log file '/u01/app/oracle/cfgtoollogs/dbca/silent.log_2016-07-11_04-54-15-pm ' for further details.
When the above command finishes, the RHN_DB_12C.DBT file is generated under $oracle_home/assistants/dbca/templates. You can use this template for subsequent bulk db creation. Of course, this template can be manually edited according to the actual requirements.
This article from "candon123" blog, declined reprint!
Create Oracle 12c Template Database in Silent