Search

Top 60 Oracle Blogs

Recent comments

Enterprise Manager Silent Installation

Introduction

This is another post in my series on silent installations using response files. In previous posts, I covered silent installations for the Grid Infrastructure, RDBMS, post installation configuration steps, and creating the listener and database using response files. In this post, I’ll cover installing Enterprise Manager using a response file.

Generating the Response Files

Unlike all the other installations and configurations using response files, for some reason Oracle Corporation in its wisdom has seen fit not to simply provide RSP files for an Enterprise Manager installation – they need to be generated (which probably just extracts them from the zip files, anyway, or am I being far too cynical?!) To do this, use a command like the following:

[oracle@host1 em]$ ./em13200p1_linux64.bin -getResponseFileTemplates -outputLoc /u01/app/em
-bash: ./em13200p1_linux64.bin: Permission denied

Of course, I had FTP’ed the files to this host, and there was no execute permission on the em13200p1_linux64.bin file:

[oracle@host1 em]$ ls -al
total 6808580
drwxr-xr-x. 2 oracle oinstall       4096 Apr 19 11:04 .
drwxrwxr-x. 6 oracle oinstall       4096 Apr 20 10:39 ..
-rw-r--r--. 1 oracle oinstall  564264960 Apr 13 07:02 em13200p1_linux64-2.zip
-rw-r--r--. 1 oracle oinstall  741526563 Apr 13 12:03 em13200p1_linux64-3.zip
-rw-r--r--. 1 oracle oinstall 2084231936 Apr 13 13:24 em13200p1_linux64-4.zip
-rw-r--r--. 1 oracle oinstall  109191154 Apr 13 11:39 em13200p1_linux64-5.zip
-rw-r--r--. 1 oracle oinstall 2146696423 Apr 13 14:47 em13200p1_linux64-6.zip
-rw-r--r--. 1 oracle oinstall  771426157 Apr 13 12:32 em13200p1_linux64-7.zip
-rw-r--r--. 1 oracle oinstall  554606940 Apr 13 11:49 em13200p1_linux64.bin
[oracle@host1 em]$ chmod u+x *.bin
[oracle@host1 em]$ ls -al
total 6808580
drwxr-xr-x. 2 oracle oinstall       4096 Apr 19 11:04 .
drwxrwxr-x. 6 oracle oinstall       4096 Apr 20 10:39 ..
-rw-r--r--. 1 oracle oinstall  564264960 Apr 13 07:02 em13200p1_linux64-2.zip
-rw-r--r--. 1 oracle oinstall  741526563 Apr 13 12:03 em13200p1_linux64-3.zip
-rw-r--r--. 1 oracle oinstall 2084231936 Apr 13 13:24 em13200p1_linux64-4.zip
-rw-r--r--. 1 oracle oinstall  109191154 Apr 13 11:39 em13200p1_linux64-5.zip
-rw-r--r--. 1 oracle oinstall 2146696423 Apr 13 14:47 em13200p1_linux64-6.zip
-rw-r--r--. 1 oracle oinstall  771426157 Apr 13 12:32 em13200p1_linux64-7.zip
-rwxr--r--. 1 oracle oinstall  554606940 Apr 13 11:49 em13200p1_linux64.bin
[oracle@host1 em]$ ./em13200p1_linux64.bin -getResponseFileTemplates -outputLoc /u01/app/em
** The directory "/tmp" does not have enough space. At least 10241 MB of free space are required.
Please input another directory or [Exit]: /u01/app/em
0%.....[/u01/app/em/em13200p1_linux64-2.zip]
  End-of-central-directory signature not found.
Failed to extract disk 2 (rc 2)
......................................................100%
Launcher log file is /u01/app/em/OraInstall2018-04-20_11-26-31AM/launcher2018-04-20_11-26-31AM.log.
Copying response file template(s)
to /u01/app/em ...
  Copying response file template upgrade.rsp
  Copying response file template software_only.rsp
  Copying response file template new_install.rsp
Finished copying response file template(s)

The log(s) can be found here: /u01/app/em/OraInstall2018-04-20_11-26-31AM.

So what went wrong this time? This is the line that tells you:

End-of-central-directory signature not found.

The first zip file didn’t copy correctly. You can also see that from the size of the file, around 540 MB instead of the nearly 2 GB it should be. Notice it did extract three response files anyway, but I couldn’t be sure they were complete (and needed to reload the second file anyway!). So I loaded it again, and again three response files were generated. The Advanced Installation and Configuration Guide tells you to only use new_install.rsp, so ignore the other two files for now. Also, notice the spurious error message about /tmp? If I look at that it would seem to have plenty of free space:

[oracle@host1 em]$ df -h /tmp
Filesystem                Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-tmplv  2.0G   66M  1.8G   4% /tmp

Anyway, I told it another directory (/u01/app/em/stage) which I had to create before running the command successfully.

Using the Response File

Of all the response files I’ve worked with during this series of posts, I have to say the EM response file was the pickiest, most annoying file of the lot! When you look at the file, you’ll see a lot of variables associated with a value. When you start editing the file, they are of this sort of format:

UNIX_GROUP_NAME=

Make sure you have either changed all the parts to something else or get rid of them entirely, as the stupid installer will complain about them otherwise! A couple of other issues I found along the way: