Thursday, October 5, 2023

How to create a template that includes a seed database using dbca

This is how you can create a new template which will include the database "mydb01" as a seed database for future installations:
dbca -silent -createCloneTemplate \
  -sourceDB mydb01 \
  -templateName minimal_nonmt_seed \
  -maintainFileLocations true \
  -sysDBAPassword mysecretpassword \
  -sysDBAUserName sys \
  -rmanParallelism 2 \
  -dataFileBackup true \
  -datafileDestination /u01/oracle/oradata/19c/assistants/dbca/templates
  • Make sure there are no trailing spaces after the backslash (\) — that would break the continuation.
  • You can indent the continued lines for readability (as shown above).
  • Quoting and escaping rules are the same as if the command were on a single line.
  • No comments:

    Post a Comment