

If it isn’t running, we’ll wait 10 seconds and check again, but only for 240 seconds total. If so then we’ll check if there is an ora_pmon_emrep process running (emrep is the name of my OEM repository database). The above first checks to make sure that gcstartup was called with the start argument. # Begin Rich Soule Added Lines # if then counter=0 while do ((counter++)) if ! /usr/bin/ps -e | /usr/bin/grep -q ora_pmon_emrep then echo 'OEM is waiting on Oracle database to start' sleep 10 else break fi done if then echo 'Oracle database did not start in time, exiting OEM startup' exit 1 fi echo 'Oracle database started, waiting 20 more seconds for database to open' sleep 20 echo 'OMS will now attempt to start as per remainer of the /etc/init.d/gcstartup script' fi # End Rich Soule Added Lines # ~]# vim /etc/init.d/gcstartup # Rich Soule # OEM should only startup if the emrep database is already up and running # on the local machine so the below was added to make sure that happens. The content in bold below was added to the out of the box OEM script after the initial comments in the file. If your repository database is running on the same server as your OMS (which isn’t really that big of a deal if your hardware can handle it) that can be fixed by modifying the OEM startup script and adding in a ‘check to make sure your database is up and running before you start OEM’ section. Unfortunately, the OEM scripts always assume that the database is already up and running.

They are the old style System V scripts that run out of /etc/init.d, and it didn’t really seem worth going through the trouble of converting them to the new systemd format.

Unlike the database, Oracle Enterprise Manager comes with ‘out of the box’ scripts to start and stop OEM. While the above worked great to start the database (tested with a reboot of the server), it didn’t address another issue. I then enabled the service using the following: ~]# systemctl ~]# systemctl enable oracle-database # LimitMEMLOCK=infinity LimitNOFILE=65535 Type=oneshot RemainAfterExit=yes User=oracle Group=oinstall Restart=no ExecStart=/usr/bin/echo 'Starting Oracle Databases with Y in /etc/oratab' ExecStart=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbstart /u01/app/oracle/product/12.2.0/dbhome_1 ExecStart=/usr/bin/echo 'dbstart has completed' ExecStop=/usr/bin/echo 'Stopping Oracle Databases' ExecStop=/u01/app/oracle/product/12.2.0/dbhome_1/bin/dbshut /u01/app/oracle/product/12.2.0/dbhome_1 ExecStop=/usr/bin/echo 'dbshut has completed' WantedBy=multi-user.target I created the following file: ~]# vim /usr/lib/systemd/system/rvice Description=The Oracle Database Service After=syslog.target network.target # systemd ignores PAM limits, so set any necessary limits in the service. Tim’s rather fantastic site had the basic framework, but where he used scripts that he called from the service, I wanted to use dbstart and dbshut so that we could maintain startup and shutdown from a single file (/etc/oratab) rather than modifying a script. Since this was a Linux 7 server, I wanted to use the new systemd method. Oracle has documentation on creating services to automatically start up databases on Linux/Unix, but it uses the old System V method for starting services (which, to be fair does still work on Linux 7).

#Oracle start up install#
#Oracle start up update#
When it came time to reboot the server, remove the CD-ROM image and update the configuration before rebooting so the image boots up using the disk.Partition the disk into a 16 GB swap partition, a 10 GB /home partition and then the rest of the disk as the root partition.IP filtering so my ACC students could access the servers while they are in the labs at ACC and I could access the machines from home.A static IP address (I used 10.0.0.15, but you could use anything).Start the image, configuring Oracle Linux 7 with the following:.Create a new blank machine with the following:.
#Oracle start up iso#
Upload the latest Oracle Linux (7.6) ISO that I got from.Previously I’d used Oracle Virtual Box on my local machine and then uploaded the image to Oracle Cloud and used Ravello to give each of my students their own server.
#Oracle start up upgrade#
Recently I created a new virtual machine for the Oracle Database Admin, Install and Upgrade class that I teach at ACC.
