File tree Expand file tree Collapse file tree 4 files changed +27
-20
lines changed
roles/oracle_post_install/tasks
test_oracle_tnsnames/tasks Expand file tree Collapse file tree 4 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 11---
22# post instalation tasks
33
4- # - name: python2 cx_Oracle drivers
4+ # - name: python2 oracledb drivers
55# yum:
6- # name=python2-cx_Oracle
6+ # name=python2-oracledb
77# state=latest
88# disable_gpg_check=yes
99
10- - name : Python cx_Oracle platform drivers
11- shell : " /usr/libexec/platform-python -m pip install --user cx_Oracle "
12- failed_when : False # install cx_Oracle drivers for platform python
10+ - name : Python oracledb platform drivers
11+ shell : " /usr/libexec/platform-python -m pip install --user oracledb "
12+ failed_when : False # install oracledb drivers for platform python
1313 become : yes
1414 become_user : " {{ oracle_os_user }}"
1515
16- - name : Python cx_Oracle drivers
16+ - name : Python oracledb drivers
1717 pip :
18- name : cx_Oracle
18+ name : oracledb
1919 extra_args : --user
2020 become : yes
2121 become_user : " {{ oracle_os_user }}"
Original file line number Diff line number Diff line change 1616 << : *con_param
1717 script : |
1818 begin
19- dbms_output.put_line('This is the cx_Oracle manual');
19+ dbms_output.put_line('This is the oracledb manual');
2020 dbms_output.put_line('Demonstrating how to use DBMS_OUTPUT');
2121 end;
2222 /
2323 register : _
2424 failed_when : |
2525 _.failed or
26- 'cx_Oracle manual' not in _.output_lines[0] or
26+ 'oracledb manual' not in _.output_lines[0] or
2727 'Demonstrating' not in _.output_lines[1]
2828
2929 - name : execute procedure with dbms_ouput.put_line() (ignoring case)
3030 oracle_sql :
3131 << : *con_param
3232 script : |
3333 begin
34- dbms_output.PUt_lINe('This is the cx_Oracle manual');
34+ dbms_output.PUt_lINe('This is the oracledb manual');
3535 end;
3636 /
3737 register : _
3838 failed_when : |
3939 _.failed or
40- 'cx_Oracle manual' not in _.output_lines[0]
40+ 'oracledb manual' not in _.output_lines[0]
4141
4242 - name : execute two procedures with dbms_ouput.put_line()
4343 oracle_sql :
4444 << : *con_param
4545 script : |
4646 begin
47- dbms_output.put_line('This is the cx_Oracle manual');
47+ dbms_output.put_line('This is the oracledb manual');
4848 end;
4949 /
5050 begin
5454 register : _
5555 failed_when : |
5656 _.failed or
57- 'cx_Oracle manual' not in _.output_lines[0] or
57+ 'oracledb manual' not in _.output_lines[0] or
5858 'Demonstrating' not in _.output_lines[1]
5959
6060 - name : execute procedure without dbms_ouput.put_line()
Original file line number Diff line number Diff line change 1414 << : *con_param
1515 script : |
1616 begin
17- dbms_output.put_line('This is the cx_Oracle manual');
17+ dbms_output.put_line('This is the oracledb manual');
1818 dbms_output.put_line('Demonstrating how to use DBMS_OUTPUT');
1919 end;
2020 /
2121 register : _
2222 failed_when : |
2323 _.failed or
24- 'cx_Oracle manual' not in _.output_lines[0] or
24+ 'oracledb manual' not in _.output_lines[0] or
2525 'Demonstrating' not in _.output_lines[1]
2626
2727 - name : execute procedure with dbms_ouput.put_line() (ignoring case)
2828 oracle_sql :
2929 << : *con_param
3030 script : |
3131 begin
32- dbms_output.PUt_lINe('This is the cx_Oracle manual');
32+ dbms_output.PUt_lINe('This is the oracledb manual');
3333 end;
3434 /
3535 register : _
3636 failed_when : |
3737 _.failed or
38- 'cx_Oracle manual' not in _.output_lines[0]
38+ 'oracledb manual' not in _.output_lines[0]
3939
4040 - name : execute two procedures with dbms_ouput.put_line()
4141 oracle_sql :
4242 << : *con_param
4343 script : |
4444 begin
45- dbms_output.put_line('This is the cx_Oracle manual');
45+ dbms_output.put_line('This is the oracledb manual');
4646 end;
4747 /
4848 begin
5252 register : _
5353 failed_when : |
5454 _.failed or
55- 'cx_Oracle manual' not in _.output_lines[0] or
55+ 'oracledb manual' not in _.output_lines[0] or
5656 'Demonstrating' not in _.output_lines[1]
5757
5858 - name : execute procedure without dbms_ouput.put_line()
Original file line number Diff line number Diff line change 11{
22 "ANSIBLE_MODULE_ARGS" : {
3- "mode" : " sysdba" ,
3+ "mode" : " normal" ,
4+ "hostname" : " adb.eu-frankfurt-1.oraclecloud.com" ,
5+ "port" : " 1522" ,
6+ "service_name" : " gc7d17cae05_high.adb.oraclecloud.com" ,
7+ "dsn" : " (description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=adb.eu-frankfurt-1.oraclecloud.com))(connect_data=(service_name=gc7d17cae05212a_rx3imkw1cjedzw68_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))" ,
8+ "user" : " TEST" ,
9+ "password" : " Tst123456789" ,
410 "profile" : " TEST_PROFILE" ,
11+ "state" : " absent" ,
512 "attributes" : {
613 "PASSWORD_REUSE_MAX" : " 10"
714 }
You can’t perform that action at this time.
0 commit comments