Overview

This defined type create’s a startup script for the specified database and enables the service. The end result is that the named Oracle database is restarted after a system restart.

Here is an example on how to use it:

ora_install::autostartdatabase{ 'autostart oracle':
  oracle_home             => '/oracle/product/12.1/db',
  user                    => 'oracle',
  db_name                 => 'test',
}

Attributes

Attribute Name Short Description
db_domain The domain of the database.
db_name The name of the database.
db_policy The srvctl management policy for the database
   
db_type The type of the database used to specify if the database should be started by an init script or srvctl.
group The os group to use for these Oracle puppet definitions.
logoutput log the outputs of Puppet exec or not.
oracle_home A directory to be used as Oracle home directory for this software.
service_name The service name to start.
start_option The srvctl startup options for the database.
user The user used for the specified installation.

db_domain

The domain of the database.

Back to overview of autostartdatabase

db_name

The name of the database.

Back to overview of autostartdatabase

db_policy

The srvctl management policy for the database

Valid values are:

  • AUTOMATIC
  • MANUAL
  • NORESTART

The default value is: AUTOMATIC

Back to overview of autostartdatabase

db_type

The type of the database used to specify if the database should be started by an init script or srvctl.

Valid values are:

  • grid
  • asm
  • database

The default value is: ‘database’

Back to overview of autostartdatabase

group

The os group to use for these Oracle puppet definitions.

The default value is: dba

Back to overview of autostartdatabase

logoutput

log the outputs of Puppet exec or not.

When you specify true Puppet will log all output of exec types.

Valid values are:

  • true
  • false
  • on_failure

Back to overview of autostartdatabase

oracle_home

A directory to be used as Oracle home directory for this software.

Back to overview of autostartdatabase

service_name

The service name to start.

Back to overview of autostartdatabase

start_option

The srvctl startup options for the database.

Valid values are:

  • OPEN
  • MOUNT
  • READ ONLY

The default value is: OPEN

Back to overview of autostartdatabase

user

The user used for the specified installation. The install class will not create the user for you. You must do that yourself.

The default value is: oracle

Back to overview of autostartdatabase