oracle
https://www.youtube.com/watch?v=n5SfzJeqMuk
** Please use the root user to edit the files and execute the commands unless further notice. **
Prerequisite
Install the latest VirtualBox and the VirtualBox Extension Pack.
Download CentOS Linux release 8.1.1911.
Create a new virtual machine and install the CentOS to the virtual machine. Select
Workstationas Base Environment, selectContainer Management,Development ToolsandGraphical Administration Toolsas Additional software for Selected Environment.
Download Packages and Software
Hostname and Host File
Open the file
/etc/hostname, change the content to update the hostname.
ol8-19.localdomainOpen the file
/etc/hosts, add your IP address and hostname.
Install Required Packages
Perform a yum update to update every currently installed package.
Add execute permission to the downloaded rpm files.
Install the libcapl library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.
Inatll the libstdc++ package which contains compatibility standard C++ library from GCC 3.3.4.
Install the below required packages.
Install Oracle Installation Prerequisites
Install the OIP package.
Open the
/etc/groupfile, update the GID of the below items.
Open the
/etc/passwdfile, update both the UID and GID of accountoracle.
Update the password of account
oracle.
Set secure Linux to permissive by editing the
/etc/selinux/configfile.
Set the secure Linux change right now.
Disable the firewall.
Setup Oracle User Profile
Create Oracle directories.
Create a new directory for Oracle user.
Create filese for Oracle user.
Set the environment when the Bash runs whenever it is started interactively.
Create and Add New Swap File
Run the following command, with
oracleuser, to create and apply new swap file.
Apply the swap by executing the following command with
rootuser.
Install Oracle Database
Set the DISPLAY variable with
oracleuser.
Unzip the archive with
oracleuser.
"Cheat" the installer about the distribution with
oracleuser.
Run the installer, with
oracleuser, to install Oracle database.
If the setup is success, the following message should be printed on screen.
Execute the below scripts, with
rootuser, to update the permission of Oracle directories and set the environment variables.
Database Creation
Start the listener with
oracleuser.
Create a database with
oracleuser.
Listener Update
Replace or edit the
listener.orafile, withoracleuser, to set the correct hostname, port number and SID name.
Reload the Oracle Listener.
Post Installation
Edit the
/etc/oratabfile, withrootuser, to update the restart flag from 'N' to 'Y'.
Configure the Database instance "orcl" with auto startup.
Enable Oracle Managed Files (OMF) and make sure the PDB starts when the instance starts.
Execute the following commands, with
rootuser, to start the Oracle Listener automatically.
Use the following command, with
oracleuser, to edit the crontab file.
Put the following cron job in the first line of crontab file, then press the keys
:wqto save and exit.
Healthcheck
Login as
oracleuser and then execute the following commands one-by-one.
Create New User and Tablespace
Login as Sysdba with SqlPlus.
Update the seesion setting
_ORACLE_SCRIPTtotrueto allow common user comes withoutc##as prefix.
Create a new tablespace with an automatic extensible size
100MB, maximum10Gin size.
Create a new user.
Grant permissions to the new user.
[Optional] Grant DBA to the new user.
References
Last updated
Was this helpful?