You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, installs a single instance 12.2.0.1 database on filesystem. Just put the following file in /tmp on the control-machine
8
+
9
+
-`linuxx64_12201_database.zip`
8
10
9
-
</b>
10
11
11
-
At the moment you can install Oracle RAC, RAC One Node and normal single instances.
12
-
You can take a freshly installed machine and configure it from ground up. It'll configure users, profiles, kernel parameters, storage and install the database server and create one or more databases.
13
-
It also supports role separation when installing Grid Infrastructure, meaning a 'grid' user owns and runs the GI and the 'oracle' user owns and runs the databases.
14
12
15
-
By default, you can install a single instance 12.1.0.2 database on filesystem, without having to change any parameters. Just put the following files in /tmp on the control-machine:
16
-
- linuxamd64_12102_database_1of2.zip
17
-
- linuxamd64_12102_database_2of2.zip
13
+
### Getting started
18
14
19
-
I'm creating a bunch of examples which illustrates how to use/run the different roles. They can be found here: http://oravirt.wordpress.com/category/ansible-oracle.
15
+
Pre-requisites:
16
+
17
+
- Ansible >= 2.1
18
+
- Oracle Linux (or any RHEL-based Linux System) >= 6.4
As this is based on the EL6 platform the lowest supported Oracle version will be 11.2.0.3, as per Oracle's certification matrix.
22
21
23
-
<b>Note: </b>
24
-
- You'll need to manually download the Oracle software and make it available to the control-machine (either locally or on a web-server, or through a nfs-share) before running the playbook. By default the
25
-
path to the software is /tmp on the control-machine.
26
-
- All roles are built on Oracle Linux 6, but should work with any EL6-based system.
27
-
- Storage options only supports block devices at the moment (FS & ASM). Will add support for NFS
22
+
### Roles
28
23
29
-
<b>The different roles are:</b>
24
+
**common**
30
25
31
-
<b> common: </b>
32
26
This will configure stuff common to all machines
33
-
- Install some generic packages
34
-
- Configure ntp
35
-
- Possibly add a default/deploy user.
27
+
- Install some generic packages
28
+
- Configure ntp
29
+
30
+
31
+
**orahost**
36
32
37
-
<b>orahost:</b>
38
33
This will configure the host specific Oracle stuff:
39
34
- Add a user & group
40
35
- Create directory structures
41
-
- Generate ssh-keys and set up passwordless ssh between clusternodes in case of RAC/RAC One node
42
36
- Handle filesystem storage (partition devices, creates vg/lv and a filesystem (ext4, xfs, btrfs) etc). If you want to create your database on a filesystem (instead of ASM) this is where you define the layout.
43
37
- Install required packages
44
38
- Change kernel paramemeters
@@ -47,66 +41,123 @@ This will configure the host specific Oracle stuff:
47
41
- Disables transparent hugepages
48
42
- Disables NUMA (if needed)
49
43
- Configures the interconnect network (if needed)
50
-
- Configures Oracle ASMLib
44
+
- Configures Oracle ASMLib
45
+
46
+
47
+
**orahost-ssh**
48
+
49
+
Configures passwordless ssh between clusternodes if setting up RAC (`configure_cluster=True`)
50
+
- Uses existing ssh-keys
51
+
52
+
53
+
**orahost-storage**
51
54
52
-
<b>orahost-storage:</b>
53
55
This role configures storage that shoud be used by ASM.
54
56
- Partitions devices (using parted)
55
57
- Create ASMlib labels or sets up udev-rules for device name persistence
56
58
57
-
<b>oraswgi-install:</b>
58
-
This role will install and configure Oracle Grid Infrastructure. Tested with 12.1.0.1/12.1.0.2 & 11.2.0.4/11.2.0.3
59
+
60
+
**oraswgi-install**
61
+
62
+
This role will install and configure Oracle Grid Infrastructure (RAC/SI)
59
63
- Adds a .profile_grid to the oracle user
60
64
- Sets up directory structures
61
65
- Copies the install-files to the servers, or installs from a remote location (e.g nfs share)
62
66
- Install Oracle Grid Infrastructure
63
67
64
68
69
+
**oraasm-createdg**
65
70
66
-
<b>oraasm-configureasm:</b>
67
-
This role will create and configure the ASM-instance with an initial diskgroup.
71
+
This role will create the diskgroup(s) that should be used for database storage. Uses asmca to create diskgroups.
72
+
- Generates a shellscript that uses asmca to create the diskgroups.
68
73
69
-
- Generates a shellscript that uses asmca to create the ASM instance
70
74
71
-
<b>oraasm-createdg:</b>
72
-
This role will create the diskgroup(s) that should be used for database storage. Uses asmca to create diskgroups.
73
-
- Generates a shellscript that uses asmca to create the diskgroups.
75
+
**oraswdb-install**
74
76
75
-
<b>oraswdb-install:</b>
76
77
This role will install the oracle database server(s). It is possible to run more than 1 database from each home. It performs both Single Instance/RAC installations.
77
-
- Creates a .profile_databasename
78
+
- Creates a .profile with the correct environment
78
79
- Creates directory structures
79
-
- Transfers installfiles to server(s)
80
80
- Installs the database-server(s)
81
81
82
-
<b>oradb-create:</b>
82
+
83
+
**oradb-manage-db**
84
+
85
+
This role creates/deletes databases
86
+
- Generates a responsefile to be used by dbca
87
+
- Creates the db using dbca
88
+
89
+
90
+
_**oradb-create (deprecated - use oradb-manage-db instead)**_
91
+
83
92
This role creates the databases (RAC/RAC One Node, Single Instance). Possible to create container databases. Performs a dbca silent run to create the database.
84
-
Note:
85
-
At the moment there is no listener configured when creating a database on a filesystem (i.e no grid infrastructure present). Will be added later though.
86
93
- Generates a responsefile to be used by dbca
87
94
- Creates the db using dbca
88
95
- Changes parameters based on input.
89
96
90
97
91
-
<b>oraswgi-opatch:</b>
92
-
This role will use opatch to apply a patch to a Grid Infrastructure home. At the moment it is basically written to apply PSU's, not one-off patches. It'll probably work but it is not designed for that.
98
+
_**oradb-delete (deprecated - use oradb-manage-db instead)**_
99
+
100
+
This role deletes a database
101
+
102
+
103
+
**oraswgi-opatch**
104
+
105
+
This role will use opatch to apply a patch to a Grid Infrastructure home. At the moment it is basically written to apply PSU's, not one-off patches. It'll probably work but it is not designed for that at the moment.
93
106
Does an initial check to see if the patches are already applied, and skips through all steps if they are.
94
107
95
108
96
-
<b>*** THE FOLLOWING ROLES ARE NOT FINISHED/NOT WORKING PROPERLY YET ****</b>
109
+
**cxoracle**
110
+
111
+
Installs cx_Oracle in preparation for using [ansible-oracle-modules](https://github.com/oravirt/ansible-oracle-module)
112
+
113
+
114
+
**orahost-cron**
115
+
116
+
Configures cron schedules if needed
117
+
118
+
119
+
**orahost-logrotate**
120
+
121
+
By default sets up logrotate for alert logs and listener logs
122
+
123
+
124
+
125
+
### Note
97
126
98
-
<b>oraswgi-clone:</b>
99
-
This role will use a previously installed/patched Grid Infrastructure installation to perform a new Grid Infrastructure installation using the clone method
127
+
These are the Oracle binaries that are pre-configured to be used. They have to be manually downloaded and made available (either locally, from a web endpoint or through a nfs-share)
100
128
101
-
<b>oraswracdb-clone:</b>
102
-
This role will take a previously installed/patched Oracle Database Server installation to perform a new database server installation using the clone method.
0 commit comments