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 ~]#