ajout instal_oracle_sw
This commit is contained in:
11
install-oracle-sw/templates/run_db_install.sh.j2
Normal file
11
install-oracle-sw/templates/run_db_install.sh.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
# {{ ansible_managed }}
|
||||
#!/bin/bash
|
||||
|
||||
chkifinstalled=`grep "{{ db_home }}" "{{ oracle_inventory_loc }}/ContentsXML/inventory.xml" |wc -l`
|
||||
if [[ $chkifinstalled == 1 ]]; then
|
||||
echo "Error: ORACLE_HOME: {{ db_home }} already present. Exiting"
|
||||
exit 0
|
||||
else
|
||||
{{ oracle_stage }}/database/runInstaller -responseFile {{ oracle_stage }}/{{ db_response_file }} -ignorePrereq -ignoreSysPrereqs -silent -waitforcompletion
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user