# Oracle 12C hangs with while doing unattended installation

**URL:** <https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [September 21, 2018, 11:10am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625 "2018-09-21T11:10:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 21, 2018, 11:10am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/1 "2018-09-21T11:10:33Z")

</div>

Oracle 12C hangs while doing unattended installation.

setup.exe keeps on running and there is no progress with it on the Windows Server 2012.

the tasks that I am using is :

- name: install oracle 12c database  
win\_command: c:\database\setup.exe -silent -waitforcompletion ‘-responseFile c:\database\db\_1.rsp’  
args:  
chdir: c:\database

Can someone let me know what the issue maybe?

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [September 21, 2018, 11:14am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/2 "2018-09-21T11:14:01Z")

</div>

Try running it without ansible… There’s probably a requirement which is not OK, so the installer ask for input but it is not possible in ansible

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 21, 2018, 11:38am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/3 "2018-09-21T11:38:03Z")

</div>

Works when run manually.  
Even with ansible, when we run the playbook the setup.exe is running but it’s 0% CPU and  
I am not sure typically how long it would take for the installation would complete but hours on end it’s just running on ansible.

but locally it got completed within a few hours.

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 2:21pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/4 "2018-09-23T14:21:38Z")

</div>

Can someone please help? The system still gets stuck with setup.exe at 0 % CPU and keeps the installation of Oracle 12 c running.  
but it’s not moving forward at all.

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [September 23, 2018, 2:38pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/5 "2018-09-23T14:38:59Z")

</div>

Make sure that you have removed ALL Oracle-related environment variables and try it again manually. I reckon there is something that is NOT in the response file, but that is supplied via another channel such as an environment variable when you do it manually.

It definitely sounds as if the setup is waiting for manual input.

You need a logfile showing the process…

Regards, K.

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 3:05pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/6 "2018-09-23T15:05:17Z")

</div>

I have tried it several times manually with proper cleanup and it has worked everyone with this answer file. What I see while installing through Ansible is it starts the setup.exe but the other screen of command line Oracle universal installer doesn’t pop up during installation through Ansible. Is there anyway I can set this up for Ansible? I am new to Ansible, please help.

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [September 23, 2018, 3:13pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/7 "2018-09-23T15:13:17Z")

</div>

What exactly are you expecting to see “pop up”?

Regards, K.

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 3:27pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/8 "2018-09-23T15:27:30Z")

</div>

Thanks for the quick reply. I see Oracle universal installer window open up when I run this manually through power shell or command line. I didn’t see either anything popping up while installing through sensible nor is the installation moving forward. No app folder is created or setup.exe also does not use any CPUs i am using -waitforcompletion switch and -ignoreSysPrereqs switch as well apart from -silent and responsefile

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 4:39pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/9 "2018-09-23T16:39:06Z")

</div>

Anyone else online? Please help with this issue.

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [September 23, 2018, 4:50pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/10 "2018-09-23T16:50:26Z")

</div>

Can you install it remotely via invoke-command?

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 5:19pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/11 "2018-09-23T17:19:09Z")

</div>

I have just tried it locally and manually and it works every time. I just created a couple of new Windows servers and installing it with ansible hangs again so it does not seem to be a cleanup issue.

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [September 23, 2018, 5:27pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/12 "2018-09-23T17:27:28Z")

</div>

That wasn’t my question though.

If you can run it remotely from another windows vm you should be able to see where it breaks side-by-side. Also, is there a reason you’re not using win\_package?

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 23, 2018, 5:37pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/13 "2018-09-23T17:37:06Z")

</div>

For SQL we used win\_command so I thought that should work for Oracle but it doesn’t seem to work. Should I try through remote power shell ?

---

<div class="post-metadata">

**Author:** ![Varun\_Chopra](https://avatars.discourse-cdn.com/v4/letter/v/54ee81/32.png) [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Post date:** [September 23, 2018, 6:39pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/14 "2018-09-23T18:39:31Z")

</div>

For msi and exe packages - use win\_package as a rule of thumb. If you still have issues with these, you can report an issue here [https://github.com/ansible/ansible/issues](https://github.com/ansible/ansible/issues) because the module’s supported by the community.

win\_command shouldn’t be used for installations as it usually ends up in a hit or a miss situation. If win\_package doesn’t work for you, you can try putting your win\_command arguments as a pwsh script, saving it on the target node, and running that script through a remote powershell session. If you don’t know how to do that, you can look up invoke-command or new-pssession. Ansible uses winrm as well so any issues you have with ansible should be visible by running this script remotely.

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [September 23, 2018, 8:10pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/15 "2018-09-23T20:10:35Z")

</div>

It’s very hard for us to help you in this situation but basically it boils down to you running these checks and finding out what is causing the program to hang;

- Use something like procexp to see if the setup.exe process is spawning any child processes that are running in the background
- Ensure your quoting is not screwing up the install process, in your first example you have quoted the responseFile path arg but you don’t need this quoted.
- Try and replicate this through another WinRM session like PowerShell’s Invoke-Command or Enter-PSSession
- Use Ansible become on the task to escape the boundary of the WinRM logon and run through a psuedo-interactive process
- See if there is any logging you can enable on the Oracle installer, this could tell you the stage it is up to and what it may be waiting on

As for why you cannot see it when running through Ansible, Ansible uses a completely separate session to run your processes as any normal interactive logon. This is not unique to Ansible but how Windows treats things like network logons such as WinRM.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![Will\_McDonald](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Will\_McDonald](https://forum.ansible.com/u/Will_McDonald)\
**Post date:** [September 23, 2018, 9:24pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/16 "2018-09-23T21:24:05Z")

</div>

In addition to Jordan’s recommendations, have you created an oraInventory? I haven’t automated the OUI on Windows but generally, on \*nix platforms you need to manually create an empty OUI inventory with the appropriate ownerships and permissions. (You can work this out from a successful install but on a Linux-based host it would be similar to:

# Make an ORACLE\_BASE

mkdir -p /u01/app/oracle/  
chown -R oracle:oinstall /u01

# Create the Oracle Inventory

cat \> /etc/oraInst.loc \<\<EOF  
inventory\_loc=/u01/app/oracle/oraInventory  
inst\_group=  
EOF  
chown oracle:oinstall /etc/oraInst.loc  
chmod 664 /etc/oraInst.loc

Also, as you’ve been advised more than once, check the OUI logs. This is slightly older 11g documentation but the general gist still applies: [https://docs.oracle.com/cd/B28359\_01/em.111/b31207/b\_oui\_appendix.htm#CHDBDFIF1](https://docs.oracle.com/cd/B28359_01/em.111/b31207/b_oui_appendix.htm#CHDBDFIF1)

Cheers,

Will.

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 24, 2018, 10:00am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/17 "2018-09-24T10:00:08Z")

</div>

Hi,  
Thanks for the replies.  
I have the same issues with the with remote powershell.  
I still see 0% CPU utilization. I am not sure how to move forward. I am still seeing the same issues.

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 24, 2018, 10:16am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/18 "2018-09-24T10:16:44Z")

</div>

Hi,  
Same thing happens with remote Powershell and I understand this may not be Ansible issue.  
Any suggestions? From Oracle 12 c side

---

<div class="post-metadata">

**Author:** ![Isha\_G](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@Isha\_G](https://forum.ansible.com/u/Isha_G)\
**Post date:** [September 24, 2018, 10:39am UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/19 "2018-09-24T10:39:39Z")

</div>

I have found a blog actually and I am working on it.  
Thanks a lot for all the suggestions.

---

<div class="post-metadata">

**Author:** ![anonymus](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anonymus](https://forum.ansible.com/u/anonymus)\
**Post date:** [September 24, 2018, 1:26pm UTC](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625/20 "2018-09-24T13:26:13Z")

</div>

can you please share the blog link. (just for later reference in this thread)

[Next page](https://forum.ansible.com/t/oracle-12c-hangs-with-while-doing-unattended-installation/28625.md?page=2)
