Search This Blog

Total Pageviews

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"
[root@oragrid ~]# oracleasm status
Checking if the oracleasm kernel module is loaded: yes
Checking if /dev/oracleasm is mounted: yes
Checking which I/O Interface is in use: oracleasm driver (KABI_V2)

cat /etc/sysconfig/oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=grid

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=asmadmin

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=""

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=""

# ORACLEASM_SCAN_DIRECTORIES: Scan disks under these directories
ORACLEASM_SCAN_DIRECTORIES=""

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

# ORACLEASM_CONFIG_MAX_DISKS: Maximum number of ASM disks that may be
# used in the system. The default is 2048.
ORACLEASM_CONFIG_MAX_DISKS=2048

# ORACLEASM_ENABLE_IOFILTER: 'true' means to setup iofilter for ASM disks
# if the kernel supports BPF.
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 ~]#
[root@oragrid ~]# oracleasm createdisk DATA1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@oragrid ~]#

[root@oragrid ~]# blkid | grep asm
/dev/sdb1: LABEL="DATA1" TYPE="oracleasm" PARTUUID="578291d8-01"

[root@oragrid ~]# oracleasm listdisks
DATA1

/usr/sbin/oracleasm scandisks

ls -ltra /dev/oracleasm/disks/*
brw-rw---- 1 grid asmadmin 8, 17 Dec 10 14:57 /dev/oracleasm/disks/DATA1

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

Oracle DBA

anuj blog Archive