Oracle is very popular database which is used by big enterprises, banks, governments etc. Oracle Database provides a lot of useful features to the MS SQL, PostgreSQL, MySQL etc. Oracle Express is lightweight database server provided by Oracle. We can use Oracle Express Edition without a fee. Oracle Express Edition is named as Oracle XE .
Oracle can be installed into Linux and Unix based operating systems. It is provided as 64 bit application architecture. We will download Oracle Express Edition from following URL.
We can use following URL to download Oracle Express Edition RPM package which can be installed on CentOS, Fedora, RedHat
Install Prerequisites Package oracle-database-preinstall-18c
We will use
rpm command in order to install the downloaded package. Before installing package we need to install prerequisites which is required by the package. The prerequisites are provided by the
First we will download preinstallpackage. This package can be used for CentOS 7 , RedHat 7 , Oracle Linux 7 and sub versions.
$ curl -o oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
Then we will install package with the following command.
$ sudo yum -y localinstall oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm
Install with rpm Command
We will use
rpm command with
-i option and provide the package name. If the package is different then current working path we should provide the full path.
$ sudo rpm -i oracle-database-xe-18c-1.0-1.x86_64.rpm
Initialize and Configure Database
We will use
oracle-xe-18c script in order to configure and initialize the database . We will use default configuration which can be found
$ sudo /etc/init.d/oracle-xe-18c configure
We can see that we will provide root privileges with
sudo command. After that we will provide the password we want to use for SYS, SYSTEM and PDBADMIN accounts. In order to make database more secure use at least 8 character, uppercase,special characters in password. Following will be a secure password.
During the initialization following phases will be completed in row.
- Set Password
- Create Users
- Prepare Database engine
- Copy Database Files
- Create Oracle Instance
- Start Oracle Instance
Oracle is very detailed and complex database server. Event during installation a lot of log and log files are created about the installation and usage. We can list these log files from
$ cd /opt/oracle/cfgtoollogs/dbca/XE/ $ ls
In this example we will list basic installation log which is stored in XE.log file.
$ less XE.log
In order to use Oracle database from different applications we need to use
Connection Strings . This connection string provides connection information to the Oracle Database.
Pluggable database: localhost.localdomain/XEPDB1 Multitenant container database: localhost.localdomain
Oracle Enterprise Manager or Web Based Management
Oracle Enterprise Manager is a web based Oracle database management tool. We can use this tool from browser by navigating following URL. It uses port
5500 . But notice that it requires Adobe Flash which may not enabled or installed in your browser.
Check Oracle Listener Service
We can check Oracle Listener Service with the
ps command. We will filter processes which names contains
$ ps -ef | grep tnslsnr