Stumble point when installing Oracle Database 19c from zip in CentOS7 environment

Stumble point when installing Oracle Database 19c with zip in CentOS7 environment

Purpose

To qualify for Bronze DBA Oracle Database Fundamentals. Installing from RPM is probably easier, but zip it with reference to the installation procedure in Kuromoto Installation-> database creation-> sqlplus startup confirmation.

Error when creating installation / DB

Can't connect to X11 window server using 〇〇 as the value of the DISPLAY variable.


When I try to check the DISPLAY function with echo $ DISPLAY as an oracle user, a blank is returned.

Workaround

<1> Log in as root and

root


$ echo $DISPLAY
〇〇(The DISPLAY function when logged in as root is displayed)

$ xhost +

(access control disabled, clients can connect from any host.
OK)
<2> Return to oracle user

oracle


$ cd /u01/app/oracle/product/19.3.0/dbhome_1(Where you unzipped the zip file)

$ export DISPLAY=〇〇(DISPLAY function confirmed by root)

$ echo $DISPLAY
〇〇(The DISPLAY function you typed earlier is reflected)

OK if the installer or dbca starts without any problem

SQL * Plus command not found

Workaround

oracle


 $ sqlplus
The command was not found
↓
$ORACLE_HOME/bin/Start confirmation with sqlplus

The cause was that the environment variables were not set correctly.

Environment construction reference

[Oracle] Oracle 19c installation Compactly build an Oracle database (19c) on Linux on VirtualBox

Recommended Posts

Stumble point when installing Oracle Database 19c from zip in CentOS7 environment
Install lsb_release from the command line when lsb_release fails in docker environment