Failed to restart ntpd.service: Unit ntpd.service not found.
Oracle Linux: How to Start NTP Service With Slewing Enabled (Doc ID 2422934.1)
yum clean all && yum makecache
history
cat /etc/resolv.conf
# Generated by NetworkManager
#search lan
nameserver 127.0.0.1
search localdomain
nameserver 192.168.1.214
nameserver 9.9.9.9
yum install ntp
{
echo OPTIONS=\"-x -u ntp:ntp -p /var/run/ntpd.pid\"
} > /etc/sysconfig/ntpd
==
{ echo OPTIONS=\"-x -u ntp:ntp -p /var/run/ntpd.pid\"; } > /etc/sysconfig/ntpd
systemctl restart ntpd.service
cat /etc/sysconfig/ntpd
cat /etc/ntp.conf
server 0.rhel.pool.ntp.org iburst
server 1.rhel.pool.ntp.org iburst
server 2.rhel.pool.ntp.org iburst
server 3.rhel.pool.ntp.org iburst
[root@ora-rac1 ~]#
systemctl restart ntpd.service
[root@ora-rac1 ~]# ps -ef|grep -i ntpd
ntp 14258 1 0 08:06 ? 00:00:00 /usr/sbin/ntpd -u ntp:ntp -x -u ntp:ntp -p /var/run/ntpd.pid
root 14292 12045 0 08:07 pts/1 00:00:00 grep --color=auto -i ntpd
[root@ora-rac1 ~]# netstat -pl | grep ntp
udp 0 0 ora-rac1:ntp 0.0.0.0:* 14258/ntpd
udp 0 0 ora-rac1-priv.uk.co:ntp 0.0.0.0:* 14258/ntpd
udp 0 0 ora-rac1.uk.com:ntp 0.0.0.0:* 14258/ntpd
udp 0 0 localhost:ntp 0.0.0.0:* 14258/ntpd
udp 0 0 0.0.0.0:ntp 0.0.0.0:* 14258/ntpd
udp6 0 0 ora-rac1:ntp [::]:* 14258/ntpd
udp6 0 0 ora-rac1:ntp [::]:* 14258/ntpd
udp6 0 0 ora-rac1:ntp [::]:* 14258/ntpd
udp6 0 0 localhost:ntp [::]:* 14258/ntpd
udp6 0 0 ora-rac1:ntp [::]:* 14258/ntpd
udp6 0 0 [::]:ntp [::]:* 14258/ntpd
[root@ora-rac1 ~]# pstree -l -s -p -a 14258
systemd,1 --switched-root --system --deserialize 22
└─ntpd,14258 -u ntp:ntp -x -u ntp:ntp -p /var/run/ntpd.pid
[root@ora-rac1 ~]# ps -P 14258
PID PSR TTY STAT TIME COMMAND
14258 0 ? Ss 0:00 /usr/sbin/ntpd -u ntp:ntp -x -u ntp:ntp -p /var/run/ntpd.pid
[root@ora-rac1 ~]#
=========
yum install ntp -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed
--> Processing Dependency: libopts.so.25()(64bit) for package: ntp-4.2.6p5-29.el7.centos.2.x86_64
--> Running transaction check
---> Package autogen-libopts.x86_64 0:5.18-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================
Installing:
ntp x86_64 4.2.6p5-29.el7.centos.2 base 549 k
Installing for dependencies:
autogen-libopts x86_64 5.18-5.el7 base 66 k
Transaction Summary
==============================================================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 615 k
Installed size: 1.5 M
Downloading packages:
No Presto metadata available for base
(1/2): autogen-libopts-5.18-5.el7.x86_64.rpm | 66 kB 00:00:00
(2/2): ntp-4.2.6p5-29.el7.centos.2.x86_64.rpm | 549 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.2 MB/s | 615 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : autogen-libopts-5.18-5.el7.x86_64 1/2
Installing : ntp-4.2.6p5-29.el7.centos.2.x86_64 2/2
warning: /etc/ntp.conf created as /etc/ntp.conf.rpmnew
warning: /etc/sysconfig/ntpd created as /etc/sysconfig/ntpd.rpmnew
Verifying : autogen-libopts-5.18-5.el7.x86_64 1/2
Verifying : ntp-4.2.6p5-29.el7.centos.2.x86_64 2/2
Installed:
ntp.x86_64 0:4.2.6p5-29.el7.centos.2
Dependency Installed:
autogen-libopts.x86_64 0:5.18-5.el7
Complete!
[root@ora-rac2 ~]#
Search This Blog
Total Pageviews
Friday, 29 November 2024
How to install NTP ?
Tuesday, 26 November 2024
Oracle Grid home and Grid base path
https://docs.oracle.com/en/database/oracle/////oracle-database/19/cwlin/about-creating-oracle-base-oracle-home-directories.html mkdir -p /u01/app/19.0.0/grid mkdir -p /u01/app/grid mkdir -p /u01/app/oracle chown -R grid:oinstall /u01 chown oracle:oinstall /u01/app/oracle chmod -R 775 /u01/
Friday, 22 November 2024
oracleasm module not loaded
[root@oraafd ~]# oracleasm createdisk DATA1 /dev/sdb1
oracleasm module not loaded or /dev/oracleasm not mounted.
oracleasm init <<<< run this command
[root@oraafd ~]# df -ha |grep -i oracleasm
oracleasmfs 0 0 0 - /dev/oracleasm
[root@oraafd ~]#
[root@oraafd ~]# oracleasm createdisk DATA1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@oraafd ~]#
*********************************************************************************
[root@localhost rpm]# oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@localhost rpm]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@localhost rpm]#
dmesg | grep Linux
oracleasm configure -i
[root@localhost rpm]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=grid
ORACLEASM_GID=oinstall
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
[root@localhost rpm]#
/usr/sbin/oracleasm init
systemctl enable oracleasm
systemctl start oracleasm
in CentOS oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.12-1.el7.x86_64
in CentOS oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.12-1.el7.x86_64
=======================================
download link
https://www.oracle.com/linux/downloads/linux-asmlib-v8-downloads.html
https://public-yum.oracle.com/repo/OracleLinux/OL8/addons/x86_64/index.html
Oracle ASMLib Software Update and Support Policy (Doc ID 1089399.1)
https://public-yum.oracle.com/repo/OracleLinux/OL8/5/baseos/base/x86_64/index.html kmod
Oracle ASMLib 3.0 oracleasmlib-3.0.0.-13.el8.x86_64.rpm Installing and Configuring Oracle ASMLib v3
Oracle ASMLib 2.0 oracleasmlib-2.0.17-1.el8.x86_64.rpm Customers should upgrade to ASMLib v3
=======================================================================================================================================
[root@oraafd ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
[root@oraafd ~]#
[root@oraafd ~]# ls -ltr
total 188
-rw-r--r-- 1 root root 27092 Jun 1 2020 oracleasmlib-2.0.17-1.el8.x86_64.rpm
-rw-r--r-- 1 root root 18204 Nov 21 13:54 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 31828 Nov 21 14:01 oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
-rw-r--r-- 1 root root 99852 Nov 22 12:06 oracleasm-support-2.1.12-1.el8.x86_64.rpm
[root@oraafd ~]# yum localinstall ./oracleasm-support-2.1.12-1.el8.x86_64.rpm ./oracleasmlib-2.0.17-1.el8.x86_64.rpm
Last metadata expiration check: 20:41:08 ago on Thu 21 Nov 2024 15:27:04 GMT.
Error:
Problem: conflicting requests
- nothing provides oracleasm >= 1.0.4 needed by oracleasmlib-2.0.17-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@oraafd ~]# yum localinstall oracleasmlib-2.0.17-1.el8.x86_64.rpm
Last metadata expiration check: 20:41:34 ago on Thu 21 Nov 2024 15:27:04 GMT.
Error:
Problem: conflicting requests
- nothing provides oracleasm >= 1.0.4 needed by oracleasmlib-2.0.17-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
use below command
###################################################################################################################################
[root@oraafd ~]# rpm -Uvh --nodeps --force oracleasmlib-2.0.17-1.el8.x86_64.rpm
warning: oracleasmlib-2.0.17-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:oracleasmlib-2.0.17-1.el8 ################################# [100%]
########################################################################################################################################################
[root@oraafd ~]# yum localinstall oracleasm-support-2.1.12-1.el8.x86_64.rpm
Last metadata expiration check: 20:43:51 ago on Thu 21 Nov 2024 15:27:04 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
oracleasm-support x86_64 2.1.12-1.el8 @commandline 98 k
Transaction Summary
==============================================================================================================================================================================================================
Install 1 Package
Total size: 98 k
Installed size: 349 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : oracleasm-support-2.1.12-1.el8.x86_64 1/1
Running scriptlet: oracleasm-support-2.1.12-1.el8.x86_64 1/1
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Synchronizing state of oracleasm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable oracleasm
Created symlink /etc/systemd/system/multi-user.target.wants/oracleasm.service → /usr/lib/systemd/system/oracleasm.service.
Verifying : oracleasm-support-2.1.12-1.el8.x86_64 1/1
Installed:
oracleasm-support-2.1.12-1.el8.x86_64
Complete!
[root@oraafd ~]# yum localinstall ./kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64.rpm
Last metadata expiration check: 0:12:17 ago on Fri 22 Nov 2024 12:11:05 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
kmod-redhat-oracleasm x86_64 8:2.0.8-12.0.1.el8 @commandline 44 k
Transaction Summary
==============================================================================================================================================================================================================
Install 1 Package
Total size: 44 k
Installed size: 138 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64 1/1
Running scriptlet: kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64 1/1
Verifying : kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64 1/1
Installed:
kmod-redhat-oracleasm-8:2.0.8-12.0.1.el8.x86_64
Complete!
==========
[root@oraafd ~]# rpm -qa | grep oracleasm
kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64
oracleasmlib-2.0.17-1.el8.x86_64
oracleasm-support-2.1.12-1.el8.x86_64
[root@oraafd ~]#
=======================
another installation
[root@localhost ~]# ls -ltr *.rpm -rw-r--r-- 1 root root 18204 Dec 9 12:22 oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm -rw-r--r-- 1 root root 110724 Dec 9 14:51 oracleasm-support-3.0.0-6.el8.x86_64.rpm -rw-r--r-- 1 root root 44920 Dec 9 14:56 kmod-redhat-oracleasm-2.0.8-12.0.1.el8.x86_64.rpm -rw-r--r-- 1 root root 47512 Dec 9 15:33 oracleasmlib-3.0.0-13.el8.x86_64.rpm
Oracle public repositories | Oracle public yum
https://public-yum.oracle.com/index.html https://public-yum.oracle.com/oracle-linux-8.html
Thursday, 21 November 2024
Oracle 19c Preinstallation RPM for CentOs
Oracle 19c Preinstallation RPM for CentOs
[root@oraafd ~]# curl -o oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31828 100 31828 0 0 119k 0 --:--:-- --:--:-- --:--:-- 120k
======================================
[root@oraafd ~]# dnf -y localinstall oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
Last metadata expiration check: 0:04:23 ago on Thu 21 Nov 2024 13:58:05 GMT.
Dependencies resolved.
===============================================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================================
Installing:
oracle-database-preinstall-19c x86_64 1.0-2.el8 @commandline 31 k
Installing dependencies:
ksh x86_64 20120801-254.el8 appstream 926 k
libXxf86dga x86_64 1.1.5-1.el8 appstream 26 k
libaio-devel x86_64 0.3.112-1.el8 baseos 19 k
libdmx x86_64 1.1.4-3.el8 appstream 22 k
libnsl x86_64 2.28-164.el8 baseos 103 k
lm_sensors-libs x86_64 3.4.0-23.20180522git70f7e08.el8 baseos 59 k
sysstat x86_64 11.7.3-6.el8 appstream 425 k
xorg-x11-utils x86_64 7.5-28.el8 appstream 136 k
Transaction Summary
===============================================================================================================================================================================================================
Install 9 Packages
Total size: 1.7 M
Total download size: 1.7 M
Installed size: 5.3 M
Downloading Packages:
(1/8): libXxf86dga-1.1.5-1.el8.x86_64.rpm 27 kB/s | 26 kB 00:00
(2/8): libdmx-1.1.4-3.el8.x86_64.rpm 23 kB/s | 22 kB 00:00
(3/8): ksh-20120801-254.el8.x86_64.rpm 908 kB/s | 926 kB 00:01
(4/8): xorg-x11-utils-7.5-28.el8.x86_64.rpm 1.9 MB/s | 136 kB 00:00
(5/8): sysstat-11.7.3-6.el8.x86_64.rpm 4.2 MB/s | 425 kB 00:00
(6/8): libnsl-2.28-164.el8.x86_64.rpm 3.0 MB/s | 103 kB 00:00
(7/8): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm 1.6 MB/s | 59 kB 00:00
(8/8): libaio-devel-0.3.112-1.el8.x86_64.rpm 59 kB/s | 19 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.2 MB/s | 1.7 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 1/9
Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 1/9
Installing : sysstat-11.7.3-6.el8.x86_64 2/9
Running scriptlet: sysstat-11.7.3-6.el8.x86_64 2/9
Installing : libnsl-2.28-164.el8.x86_64 3/9
Installing : libaio-devel-0.3.112-1.el8.x86_64 4/9
Installing : libdmx-1.1.4-3.el8.x86_64 5/9
Installing : libXxf86dga-1.1.5-1.el8.x86_64 6/9
Installing : xorg-x11-utils-7.5-28.el8.x86_64 7/9
Installing : ksh-20120801-254.el8.x86_64 8/9
Running scriptlet: ksh-20120801-254.el8.x86_64 8/9
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64 9/9
Installing : oracle-database-preinstall-19c-1.0-2.el8.x86_64 9/9
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64 9/9
Verifying : ksh-20120801-254.el8.x86_64 1/9
Verifying : libXxf86dga-1.1.5-1.el8.x86_64 2/9
Verifying : libdmx-1.1.4-3.el8.x86_64 3/9
Verifying : sysstat-11.7.3-6.el8.x86_64 4/9
Verifying : xorg-x11-utils-7.5-28.el8.x86_64 5/9
Verifying : libaio-devel-0.3.112-1.el8.x86_64 6/9
Verifying : libnsl-2.28-164.el8.x86_64 7/9
Verifying : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 8/9
Verifying : oracle-database-preinstall-19c-1.0-2.el8.x86_64 9/9
Installed:
ksh-20120801-254.el8.x86_64 libXxf86dga-1.1.5-1.el8.x86_64 libaio-devel-0.3.112-1.el8.x86_64 libdmx-1.1.4-3.el8.x86_64 libnsl-2.28-164.el8.x86_64
lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 oracle-database-preinstall-19c-1.0-2.el8.x86_64 sysstat-11.7.3-6.el8.x86_64 xorg-x11-utils-7.5-28.el8.x86_64
Complete!
[root@oraafd ~]#
Wednesday, 20 November 2024
How to install pre install oracle rpm ? oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
How to install pre install oracle rpm ?
on
[root@oraasm ~]# cat /etc/redhat-release
CentOS Stream release 8
[root@oraasm ~]#
[root@oraasm ~]# curl -o oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31828 100 31828 0 0 383k 0 --:--:-- --:--:-- --:--:-- 388k
[root@oraasm ~]# ls -ltr
total 40
-rw-------. 1 root root 1503 Nov 20 11:55 anaconda-ks.cfg
-rw-r--r--. 1 root root 1669 Nov 20 11:57 initial-setup-ks.cfg
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Videos
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Templates
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Public
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Pictures
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Music
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Downloads
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Documents
drwxr-xr-x. 2 root root 6 Nov 20 12:21 Desktop
-rw-r--r--. 1 root root 31828 Nov 20 14:12 oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
[root@oraasm ~]# dnf -y localinstall oracle-database-preinstall-19c-1.0-2.el8.x86_64.rpm
Last metadata expiration check: 1:30:29 ago on Wed 20 Nov 2024 12:42:46 GMT.
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
oracle-database-preinstall-19c x86_64 1.0-2.el8 @commandline 31 k
Installing dependencies:
ksh x86_64 20120801-267.el8 appstream 927 k
libaio-devel x86_64 0.3.112-1.el8 baseos 19 k
libnsl x86_64 2.28-251.el8.2 baseos 110 k
lm_sensors-libs x86_64 3.4.0-23.20180522git70f7e08.el8 baseos 59 k
sysstat x86_64 11.7.3-12.el8 appstream 443 k
Transaction Summary
==============================================================================================================================================================================================================
Install 6 Packages
Total size: 1.6 M
Total download size: 1.5 M
Installed size: 4.9 M
Downloading Packages:
(1/5): sysstat-11.7.3-12.el8.x86_64.rpm 1.7 MB/s | 443 kB 00:00
(2/5): libnsl-2.28-251.el8.2.x86_64.rpm 4.3 MB/s | 110 kB 00:00
(3/5): libaio-devel-0.3.112-1.el8.x86_64.rpm 53 kB/s | 19 kB 00:00
(4/5): lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64.rpm 373 kB/s | 59 kB 00:00
(5/5): ksh-20120801-267.el8.x86_64.rpm 823 kB/s | 927 kB 00:01
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.3 MB/s | 1.5 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 1/6
Running scriptlet: lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 1/6
Installing : sysstat-11.7.3-12.el8.x86_64 2/6
Running scriptlet: sysstat-11.7.3-12.el8.x86_64 2/6
Installing : libnsl-2.28-251.el8.2.x86_64 3/6
Installing : libaio-devel-0.3.112-1.el8.x86_64 4/6
Installing : ksh-20120801-267.el8.x86_64 5/6
Running scriptlet: ksh-20120801-267.el8.x86_64 5/6
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64 6/6
Installing : oracle-database-preinstall-19c-1.0-2.el8.x86_64 6/6
Running scriptlet: oracle-database-preinstall-19c-1.0-2.el8.x86_64 6/6
Verifying : ksh-20120801-267.el8.x86_64 1/6
Verifying : sysstat-11.7.3-12.el8.x86_64 2/6
Verifying : libaio-devel-0.3.112-1.el8.x86_64 3/6
Verifying : libnsl-2.28-251.el8.2.x86_64 4/6
Verifying : lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 5/6
Verifying : oracle-database-preinstall-19c-1.0-2.el8.x86_64 6/6
Installed:
ksh-20120801-267.el8.x86_64 libaio-devel-0.3.112-1.el8.x86_64 libnsl-2.28-251.el8.2.x86_64 lm_sensors-libs-3.4.0-23.20180522git70f7e08.el8.x86_64 oracle-database-preinstall-19c-1.0-2.el8.x86_64
sysstat-11.7.3-12.el8.x86_64
Complete!
[root@oraasm ~]#
======
oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Maximum number of disks that may be used in ASM system [2048]:
Enable iofilter if kernel supports it (y/n) [y]: y
Writing Oracle ASM library driver configuration: done[root@oragrid ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=grid
ORACLEASM_GID=asmadmin
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
ORACLEASM_CONFIG_MAX_DISKS="2048"
ORACLEASM_ENABLE_IOFILTER="true"
oracleasm configure oracleasm status /usr/sbin/oracleasm init oracleasm status
https://docs.oracle.com/en/database/oracle/oracle-database/23/ladbi/installing-and-configuring-oracle-asmlib-software.html
systemctl enable oracleasm systemctl start oracleasm systemctl status oracleasm
for new disk !!!
[root@oragrid ~]# ls -ltr /dev/sd* brw-rw---- 1 root disk 8, 0 Dec 10 14:32 /dev/sda brw-rw---- 1 root disk 8, 2 Dec 10 14:32 /dev/sda2 brw-rw---- 1 root disk 8, 16 Dec 10 14:32 /dev/sdb <<<< add new disk on brw-rw---- 1 root disk 8, 1 Dec 10 14:32 /dev/sda1 [root@oragrid ~]# date Tue 10 Dec 14:54:10 GMT 2024
[root@oragrid ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 97.6G 0 part ├─cl-root 253:0 0 18G 0 lvm / ├─cl-swap 253:1 0 6.6G 0 lvm [SWAP] ├─cl-home 253:2 0 25G 0 lvm /home └─cl-u01 253:3 0 48G 0 lvm /u01 sdb 8:16 0 40G 0 disk sr0 11:0 1 51M 0 rom
[root@oragrid ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x578291d8.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-83886079, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-83886079, default 83886079):
Created a new partition 1 of type 'Linux' and of size 40 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@oragrid ~]# ls -ltr /dev/sd*
brw-rw---- 1 root disk 8, 0 Dec 10 14:32 /dev/sda
brw-rw---- 1 root disk 8, 2 Dec 10 14:32 /dev/sda2
brw-rw---- 1 root disk 8, 1 Dec 10 14:32 /dev/sda1
brw-rw---- 1 root disk 8, 16 Dec 10 14:56 /dev/sdb
brw-rw---- 1 root disk 8, 17 Dec 10 14:56 /dev/sdb1
[root@oragrid ~]#
vm tool on vm box
How to install Vm tool on vm box ?
you will get below media
[root@localhost VBox_GAs_7.0.10]# df -Ph
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.1G 0 3.1G 0% /dev
tmpfs 3.1G 0 3.1G 0% /dev/shm
tmpfs 3.1G 18M 3.1G 1% /run
tmpfs 3.1G 0 3.1G 0% /sys/fs/cgroup
/dev/mapper/cs-root 44G 6.2G 38G 15% /
/dev/sda1 1014M 272M 743M 27% /boot
tmpfs 626M 20K 626M 1% /run/user/1000
/dev/sr0 52M 52M 0 100% /run/media/root/VBox_GAs_7.0.10 <<<----
[root@localhost VBox_GAs_7.0.10]#
====
[root@localhost ~]# cd /run/media/root/VBox_GAs_7.0.10
[root@localhost VBox_GAs_7.0.10]# pwd
/run/media/root/VBox_GAs_7.0.10
[root@localhost VBox_GAs_7.0.10]# ls -ltr
total 42179
-r--r--r--. 1 root root 1048 Jan 31 2023 AUTORUN.INF
-r--r--r--. 1 root root 261 Jan 31 2023 windows11-bypass.reg
-r--r--r--. 1 root root 9402368 Jul 12 2023 VBoxSolarisAdditions.pkg
-r-xr-xr-x. 1 root root 4224 Jul 12 2023 VBoxDarwinAdditionsUninstall.tool
-r-xr-xr-x. 1 root root 5096 Jul 12 2023 runasroot.sh
-r-xr-xr-x. 1 root root 6848 Jul 12 2023 autorun.sh
-r-xr-xr-x. 1 root root 6296008 Jul 12 2023 VBoxLinuxAdditions.run
-r--r--r--. 1 root root 2199917 Jul 12 2023 VBoxDarwinAdditions.pkg
-r-xr-xr-x. 1 root root 243712 Jul 12 2023 VBoxWindowsAdditions.exe
-r-xr-xr-x. 1 root root 9262048 Jul 12 2023 VBoxWindowsAdditions-x86.exe
-r-xr-xr-x. 1 root root 15760728 Jul 12 2023 VBoxWindowsAdditions-amd64.exe
-r--r--r--. 1 root root 592 Jul 12 2023 TRANS.TBL
dr-xr-xr-x. 2 root root 2828 Jul 12 2023 OS2
dr-xr-xr-x. 2 root root 1252 Jul 12 2023 NT3x
dr-xr-xr-x. 2 root root 1468 Jul 12 2023 cert
[root@localhost VBox_GAs_7.0.10]# ./VBoxLinuxAdditions.run
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.10 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Removing installed version 7.0.10 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
4.18.0-552.1.1.el8.x86_64.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
File context for /opt/VBoxGuestAdditions-7.0.10/other/mount.vboxsf already defined, modifying instead
[root@localhost VBox_GAs_7.0.10]#
=====================
[root@oragrid VBox_GAs_7.0.8]# ./VBoxLinuxAdditions.run
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.8 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Removing installed version 7.0.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel
4.18.0-348.el8.x86_64. Please install them and execute
/sbin/rcvboxadd setup
ValueError: File context for /opt/VBoxGuestAdditions-7.0.8/other/mount.vboxsf already defined
VirtualBox Guest Additions: reloading kernel modules and services
cannot verify if kernel modules and services were reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
[root@oragrid VBox_GAs_7.0.8]# dnf install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r) make gcc elfutils-libelf-devel
Last metadata expiration check: 0:03:28 ago on Mon 01 Jun 2026 15:50:29 BST.
Dependencies resolved.
============================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================
Installing:
elfutils-libelf-devel x86_64 0.185-1.el8 baseos 59 k
gcc x86_64 8.5.0-4.el8_5 appstream 23 M
kernel-devel x86_64 4.18.0-348.el8 baseos 20 M
kernel-headers x86_64 4.18.0-348.el8 baseos 8.3 M
make x86_64 1:4.2.1-10.el8 baseos 498 k
Installing dependencies:
cpp x86_64 8.5.0-4.el8_5 appstream 10 M
glibc-devel x86_64 2.28-164.el8 baseos 1.0 M
glibc-headers x86_64 2.28-164.el8 baseos 480 k
isl x86_64 0.16.1-6.el8 appstream 841 k
libxcrypt-devel x86_64 4.1.1-6.el8 baseos 25 k
zlib-devel x86_64 1.2.11-17.el8 baseos 58 k
Transaction Summary
============================================================================================================================================
Install 11 Packages
Total download size: 65 M
Installed size: 149 M
Downloading Packages:
(1/11): isl-0.16.1-6.el8.x86_64.rpm 1.2 MB/s | 841 kB 00:00
(2/11): elfutils-libelf-devel-0.185-1.el8.x86_64.rpm 777 kB/s | 59 kB 00:00
(3/11): glibc-devel-2.28-164.el8.x86_64.rpm 3.4 MB/s | 1.0 MB 00:00
(4/11): glibc-headers-2.28-164.el8.x86_64.rpm 3.0 MB/s | 480 kB 00:00
(5/11): cpp-8.5.0-4.el8_5.x86_64.rpm 6.1 MB/s | 10 MB 00:01
(6/11): gcc-8.5.0-4.el8_5.x86_64.rpm 8.5 MB/s | 23 MB 00:02
(7/11): libxcrypt-devel-4.1.1-6.el8.x86_64.rpm 408 kB/s | 25 kB 00:00
(8/11): make-4.2.1-10.el8.x86_64.rpm 3.8 MB/s | 498 kB 00:00
(9/11): zlib-devel-1.2.11-17.el8.x86_64.rpm 772 kB/s | 58 kB 00:00
(10/11): kernel-headers-4.18.0-348.el8.x86_64.rpm 3.4 MB/s | 8.3 MB 00:02
(11/11): kernel-devel-4.18.0-348.el8.x86_64.rpm 6.5 MB/s | 20 MB 00:03
--------------------------------------------------------------------------------------------------------------------------------------------
Total 15 MB/s | 65 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : zlib-devel-1.2.11-17.el8.x86_64 1/11
Installing : kernel-headers-4.18.0-348.el8.x86_64 2/11
Running scriptlet: glibc-headers-2.28-164.el8.x86_64 3/11
Installing : glibc-headers-2.28-164.el8.x86_64 3/11
Installing : libxcrypt-devel-4.1.1-6.el8.x86_64 4/11
Installing : glibc-devel-2.28-164.el8.x86_64 5/11
Running scriptlet: glibc-devel-2.28-164.el8.x86_64 5/11
Installing : isl-0.16.1-6.el8.x86_64 6/11
Running scriptlet: isl-0.16.1-6.el8.x86_64 6/11
Installing : cpp-8.5.0-4.el8_5.x86_64 7/11
Running scriptlet: cpp-8.5.0-4.el8_5.x86_64 7/11
Installing : gcc-8.5.0-4.el8_5.x86_64 8/11
Running scriptlet: gcc-8.5.0-4.el8_5.x86_64 8/11
Installing : elfutils-libelf-devel-0.185-1.el8.x86_64 9/11
Installing : make-1:4.2.1-10.el8.x86_64 10/11
Running scriptlet: make-1:4.2.1-10.el8.x86_64 10/11
Installing : kernel-devel-4.18.0-348.el8.x86_64 11/11
Running scriptlet: kernel-devel-4.18.0-348.el8.x86_64 11/11
Verifying : cpp-8.5.0-4.el8_5.x86_64 1/11
Verifying : gcc-8.5.0-4.el8_5.x86_64 2/11
Verifying : isl-0.16.1-6.el8.x86_64 3/11
Verifying : elfutils-libelf-devel-0.185-1.el8.x86_64 4/11
Verifying : glibc-devel-2.28-164.el8.x86_64 5/11
Verifying : glibc-headers-2.28-164.el8.x86_64 6/11
Verifying : kernel-devel-4.18.0-348.el8.x86_64 7/11
Verifying : kernel-headers-4.18.0-348.el8.x86_64 8/11
Verifying : libxcrypt-devel-4.1.1-6.el8.x86_64 9/11
Verifying : make-1:4.2.1-10.el8.x86_64 10/11
Verifying : zlib-devel-1.2.11-17.el8.x86_64 11/11
Installed:
cpp-8.5.0-4.el8_5.x86_64 elfutils-libelf-devel-0.185-1.el8.x86_64 gcc-8.5.0-4.el8_5.x86_64
glibc-devel-2.28-164.el8.x86_64 glibc-headers-2.28-164.el8.x86_64 isl-0.16.1-6.el8.x86_64
kernel-devel-4.18.0-348.el8.x86_64 kernel-headers-4.18.0-348.el8.x86_64 libxcrypt-devel-4.1.1-6.el8.x86_64
make-1:4.2.1-10.el8.x86_64 zlib-devel-1.2.11-17.el8.x86_64
Complete!
[root@oragrid VBox_GAs_7.0.8]#
[root@oragrid VBox_GAs_7.0.8]#
[root@oragrid VBox_GAs_7.0.8]#
[root@oragrid VBox_GAs_7.0.8]#
[root@oragrid VBox_GAs_7.0.8]# ./VBoxLinuxAdditions.run
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.8 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Removing installed version 7.0.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
4.18.0-348.el8.x86_64.
Thursday, 14 November 2024
Cent OS repositories
vi /etc/yum.repos.d/CentOS-Base.repo copy/paste the following [base] name=CentOS-$releasever - Base baseurl=http://vault.centos.org/7.9.2009/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-$releasever - Updates baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-$releasever - Extras baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [centosplus] name=CentOS-$releasever - Plus baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 yum clean all
======================
[root@localhost VBox_GAs_7.0.10]# yum update -y CentOS Stream 8 - AppStream 0.0 B/s | 0 B 00:03 Errors during downloading metadata for repository 'appstream': - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org] Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Do Below !!!!!!
===================================== [root@localhost VBox_GAs_7.0.10]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* or [root@oraafd yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* [root@oraafd yum.repos.d]# yum clean all ==================================== [root@localhost yum.repos.d]# yum update -y CentOS Stream 8 - AppStream 14 MB/s | 29 MB 00:02 CentOS Stream 8 - BaseOS 19 MB/s | 10 MB 00:00 CentOS Stream 8 - Extras 127 kB/s | 18 kB 00:00 CentOS Stream 8 - Extras common packages 56 kB/s | 8.0 kB 00:00 Dependencies resolved. ============================================================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================================================== Installing: kernel x86_64 4.18.0-553.6.1.el8 baseos 10 M Upgrading: bpftool x86_64 4.18.0-553.6.1.el8 baseos 11 M firefox x86_64 115.11.0-1.el8 appstream 116 M glibc x86_64 2.28-251.el8.2 baseos 2.3 M glibc-all-langpacks x86_64 2.28-251.el8.2 baseos 26 M glibc-common x86_64 2.28-251.el8.2 baseos 1.0 M glibc-devel x86_64 2.28-251.el8.2 baseos 89 k glibc-gconv-extra x86_64 2.28-251.el8.2 baseos 1.7 M glibc-headers x86_64 2.28-251.el8.2 baseos 585 k glibc-langpack-en x86_64 2.28-251.el8.2 baseos 941 k hostname x86_64 3.20-7.el8.0.1 baseos 32 k hyperv-daemons x86_64 0-1.31.20180415git.el8 appstream 13 k hyperv-daemons-license noarch 0-1.31.20180415git.el8 appstream 20 k hypervfcopyd x86_64 0-1.31.20180415git.el8 appstream 19 k hypervkvpd x86_64 0-1.31.20180415git.el8 appstream 28 k hypervvssd x86_64 0-1.31.20180415git.el8 appstream 21 k jq x86_64 1.6-9.el8 appstream 203 k kernel-headers x86_64 4.18.0-553.6.1.el8 baseos 12 M kernel-tools x86_64 4.18.0-553.6.1.el8 baseos 11 M kernel-tools-libs x86_64 4.18.0-553.6.1.el8 baseos 10 M less x86_64 530-3.el8 baseos 165 k libtirpc x86_64 1.1.4-12.el8 baseos 114 k python3-perf x86_64 4.18.0-553.6.1.el8 baseos 10 M sos noarch 4.7.1-2.el8 baseos 1.2 M tuned noarch 2.22.1-4.el8.1 baseos 460 k xorg-x11-server-Xwayland x86_64 21.1.3-16.el8 appstream 967 k Installing dependencies: kernel-core x86_64 4.18.0-553.6.1.el8 baseos 44 M kernel-modules x86_64 4.18.0-553.6.1.el8 baseos 36 M Installing weak dependencies: kernel-devel x86_64 4.18.0-553.6.1.el8 baseos 28 M Transaction Summary ============================================================================================================================================================================================================== Install 4 Packages Upgrade 25 Packages
======
cat /etc/centos-release CentOS Linux release 8.5.2111
yum clean all
yum update -y sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* yum update -y
===================
cd /etc/yum.repos.d
[root@localhost yum.repos.d]# pwd /etc/yum.repos.d
then ..
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
Oracle DBA
anuj blog Archive
- ► 2011 (362)

