Create Database
Once the server software is installed, proceed with creating a database using the tool dbca. I have found that it doesn't work very well for creating custom databases. It was easier to copy a template file first and edit it to suit our needs.
Altering a template
- Copy the general purpose template and edit it.
cd $ORACLE_HOME/assistants/dbca/templates
cp -p General_Purpose.dbc lcg.dbc
Using dbca
- Login as user 'oracle' and confirm that your environment has ORACLE_HOME, ORACLE_BASE and ORACLE_SID set.
- Launch the Database Configuration Assistant:
$ dbca - Pick 'Custom Database', and enter in the Global Database Name as the server name (fts.triumf.ca) and choose the same SID as set in your environment (lcg)
- Set up Database Control with email notifications (smtp server: localhost, email addr: trteam @ lcfg.triumf.ca); do not enable daily backups.
- Select 'Use the same password for all accounts' and set it.
- For the storage mechanism choose 'File System', then 'Use Oracle-Managed Files'. The database area should be set to: /oradata1 and muliplex location for the redo logs and control files should be set to: /oradata1, /oradata2, /oradata3
- Next enable Automatic Archiving of filled redo log files. Set 2 archive log destinations: /oradata2/archives and /oradata3/archives
- Proceed with other choices by accepting the defaults. When you get to Database Storage, select the redo log groups and set the file sizes to be 20480 instead of 10240 KB. Review your choices, then proceed to finish.