ibre5041 / ibre5041.ansible_oracle_modules / 3.2.0 / module / oracle_jobclass Manage DBMS_SCHEDULER job classes in Oracle database | "added in version" 2.2.1 of ibre5041.ansible_oracle_modules" Authors: Ilmar Kerm, ilmar.kerm@gmail.com, @ilmarkermibre5041.ansible_oracle_modules.oracle_jobclass (3.2.0) — module
Install with ansible-galaxy collection install ibre5041.ansible_oracle_modules:==3.2.0
collections: - name: ibre5041.ansible_oracle_modules version: 3.2.0
Manage DBMS_SCHEDULER job classes in Oracle database
Can be run locally on the controlmachine or on a remote host
--- - hosts: localhost vars: oraclehost: 192.168.56.101 oracleport: 1521 oracleservice: orcl oracleuser: system oraclepassword: oracle oracle_env: ORACLE_HOME: /usr/lib/oracle/12.1/client64 LD_LIBRARY_PATH: /usr/lib/oracle/12.1/client64/lib tasks: - name: job class oracle_jobclass: hostname: "{{ oraclehost }}" port: "{{ oracleport }}" service_name: "{{ oracleservice }}" user: "{{ oracleuser }}" password: "{{ oraclepassword }}" state: present name: testclass logging: failed runs history: 14 environment: "{{ oracle_env }}"
mode: choices: - normal - sysdba default: normal description: - The mode with which to connect to the database required: true name: description: - Job class name required: true port: default: 1521 description: - The listener port number on the host required: false user: description: - The Oracle user name to connect to the database, must have DBA privilege required: false state: choices: - present - absent description: - If present, job class is created if absent then job class is removed required: true history: description: - Number of days the logs for this job class are retained - If set to 0, no logs will be kept required: false type: int logging: choices: - 'off' - runs - failed runs - full default: failed runs description: - How much information is logged service: description: - Database service under what jobs run as required: false comments: description: - Comment about the class required: false hostname: default: localhost description: - The Oracle database host required: false password: description: - The Oracle user password for 'user' required: false service_name: description: - The database service name to connect to required: true resource_group: description: - Resource manager resource consumer group the class is associated with required: false