root # echo "Test message" | mailx -S smtp="smtp.oric.no" -vvv -s "$(hostname) is up" monitoring@oric.no
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Friday, April 21, 2023
How to get verbose output in a call to mailx
Use the -vvv flag to debug your call to mailx:
Monday, April 17, 2023
How to deinstall Oracle 19c database software
If you are deinstalling Oracle on a Linux RHEL 8, set the variable CV_ASSUME_DISTID=OL7 to avoid the error outlined in Doc ID 2738856.1:
export CV_ASSUME_DISTID=OL7Deinstall the binaries:
$ORACLE_HOME/deinstall/deinstallAt the end of the deinstallation, a summary is presented:####################### DEINSTALL CLEAN OPERATION SUMMARY ####################### Successfully detached Oracle home '/u01/oracle/product/19c' from the central inventory on the local node. Failed to delete directory '/u01/oracle/product/19c' on the local node due to error : Either user has no permission to delete or file is in use. Review the permissions and manually delete '/u01/oracle/product/19c' on local node. Successfully deleted directory '/home/oracle/oraInventory' on the local node. Oracle Universal Installer cleanup was successful.
Thursday, April 13, 2023
Workaround for message "Make sure that xdpyinfo exist under PATH variable" when launching OUI
Error:
oracle@myserver :[cdb]# ./runInstaller -createGoldImage -destinationLocation /stage/oracle/images ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.Cause: missing package:
[root@myserver ~]# yum list xorg-x11-utils Updating Subscription Management repositories. EPEL RHEL8 x86_64 97 kB/s | 2.3 kB 00:00 Puppet7 RHEL8 x86_64 72 kB/s | 1.7 kB 00:00 3rdparty RHEL8 83 kB/s | 2.0 kB 00:00 Available Packages xorg-x11-utils.x86_64 7.5-28.el8 rhel-8-for-x86_64-appstream-rpmsSolution: install package:
[root@myserver ~]# yum install xorg-x11-utils Updating Subscription Management repositories. EPEL RHEL8 x86_64 89 kB/s | 2.3 kB 00:00 Puppet7 RHEL8 x86_64 73 kB/s | 1.7 kB 00:00 3rdparty RHEL8 83 kB/s | 2.0 kB 00:00 Dependencies resolved. ======================================================================================================================================================================== Package Architecture Version Repository Size ======================================================================================================================================================================== Installing: xorg-x11-utils x86_64 7.5-28.el8 rhel-8-for-x86_64-appstream-rpms 135 k Installing dependencies: libXcomposite x86_64 0.4.4-14.el8 rhel-8-for-x86_64-appstream-rpms 29 k libXxf86dga x86_64 1.1.5-1.el8 rhel-8-for-x86_64-appstream-rpms 26 k libdmx x86_64 1.1.4-3.el8 rhel-8-for-x86_64-appstream-rpms 22 k Transaction Summary ======================================================================================================================================================================== Install 4 Packages Total download size: 212 k Installed size: 418 k Is this ok [y/N]: y Downloading Packages: (1/4): libXcomposite-0.4.4-14.el8.x86_64.rpm 493 kB/s | 29 kB 00:00 (2/4): libdmx-1.1.4-3.el8.x86_64.rpm 302 kB/s | 22 kB 00:00 (3/4): xorg-x11-utils-7.5-28.el8.x86_64.rpm 1.7 MB/s | 135 kB 00:00 (4/4): libXxf86dga-1.1.5-1.el8.x86_64.rpm 709 kB/s | 26 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 2.1 MB/s | 212 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libXxf86dga-1.1.5-1.el8.x86_64 1/4 Installing : libXcomposite-0.4.4-14.el8.x86_64 2/4 Installing : libdmx-1.1.4-3.el8.x86_64 3/4 Installing : xorg-x11-utils-7.5-28.el8.x86_64 4/4 Running scriptlet: xorg-x11-utils-7.5-28.el8.x86_64 4/4 Verifying : xorg-x11-utils-7.5-28.el8.x86_64 1/4 Verifying : libdmx-1.1.4-3.el8.x86_64 2/4 Verifying : libXcomposite-0.4.4-14.el8.x86_64 3/4 Verifying : libXxf86dga-1.1.5-1.el8.x86_64 4/4 Installed products updated. Installed: libXcomposite-0.4.4-14.el8.x86_64 libXxf86dga-1.1.5-1.el8.x86_64 libdmx-1.1.4-3.el8.x86_64 xorg-x11-utils-7.5-28.el8.x86_64 Complete!Relaunch OUI:
oracle@myserver :[cdb]# ./runInstaller -createGoldImage -destinationLocation /stage/oracle/images
Subscribe to:
Posts (Atom)