Oracle 19c installation using RPM
Hello everyone, I would like to share this LAB test that I performed recently, the main idea here is to create a lab environment to test some scenarios and I was getting some issues to run the oracle Graphical interface to install the oracle binaries and nowadays I don’t have much more patience to spend so I moved forward to find some workaround that could make possible install the oracle binaries without any Graphical interface.
In the old days of my career, I used to do it using a response file but I’m not a big fan f this approach.
So I remember that Oracle released the rpm install and I never tried it before, good time to try right?
First of all, to be very fast I used the automatic setup:
[root@osboxes ~]# yum install -y oracle-database-preinstall-19c
This will perform all pre-install steps making my life much easier and just in case I ran a full update of my centos 8 too:
[root@osboxes ~]# yum update –y
In my case, I went to the oracle website and downloaded the 19c rpm
This one => oracle-database-ee-19c-1.0-1.x86_64.rpm
Here is the link
With the rpm in place let move to the rpm installation:
[root@osboxes ~]# rpm -Uvh oracle-database-ee-19c-1.0-1.x86_64.rpm
Preparing...??????????????????????????????????????????################################# [100%]
Updating / installing...
??1:oracle-database-ee-19c-1.0-1????################################# [100%]
[INFO] Executing post installation scripts...
[INFO] Oracle home installed successfully and ready to be configured.
To configure a sample Oracle Database you can execute the following service configuration script as root: /etc/init.d/oracledb_ORCLCDB-19c configure
Next step is make some adjusts on this file: /etc/sysconfig/oracledb_ORCLCDB-19c.conf
[root@osboxes ~]# vi /etc/sysconfig/oracledb_ORCLCDB-19c.conf
# change default settings if you need
# listening port for Listener
LISTENER_PORT=1521
# data location
ORACLE_DATA_LOCATION=/opt/oracle/oradata
# EM_EXPRESS_PORT: Oracle EM Express listener
# listening port for Enterprise Manager
EM_EXPRESS_PORT=5500
[root@osboxes ~]# cat /etc/hosts
127.0.0.1??localhost localhost.localdomain localhost4 localhost4.localdomain4
::1????????localhost localhost.localdomain localhost6 localhost6.localdomain6
领英推荐
192.168.56.101?osboxes????????osboxes
[root@osboxes ~]# /etc/init.d/oracledb_ORCLCDB-19c configure
Configuring Oracle Database ORADB01.
Prepare for db operation
8% complete
Copying database files
31% complete
Creating and starting Oracle instance
32% complete
36% complete
40% complete
43% complete
46% complete
Completing Database Creation
51% complete
54% complete
Creating Pluggable Databases
58% complete
77% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
?/opt/oracle/cfgtoollogs/dbca/ORADB01.
Database Information:
Global Database Name: ORADB01
System Identifier(SID): ORADB01
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORADB01/ORADB01.log" for further details.
Database configuration completed successfully. The passwords were auto-generated, you must change them by connecting to the database using 'sqlplus / as sysdba' as the oracle user.