Install Oracle AI Database 26ai on a VirtualBox VM
This post shows how to install Oracle AI Database 26ai on a Oracle Linux 9.5 virtual machine. Oracle Grid Infrastructure and Oracle Database will be installed.
Table of Contents
Preparation
We will install the software on a Oracle VirtualBox Virtual Machine. So we need a VM as described in this post. Next we need the Oracle 26ai software from edelivery.oracle.com. Search for Oracle Database and download the software (Current Version: Oracle Database Grid Infrastructure 23.26 – for Engineered Systems) to a place accessible from the VM (e.g. /sw/oracle/gi/23ai_linux and /sw/oracle/db/23ai_linux). To be able to use ASM we need some additional disk devices for the VM. Run this in a command prompt on the VirtualBox host:
set "VHOST="
(set /p VHOST=Enter VM name ^(e.g. lin1^):
rem add and attach 2 50g disks for diskgroup +DATA
call vboxmanage createmedium disk --filename c:\vms\%VHOST%\%VHOST%_2.vdi --sizebyte=53687091200 --variant Standard
call vboxmanage createmedium disk --filename c:\vms\%VHOST%\%VHOST%_3.vdi --sizebyte=53687091200 --variant Standard
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 1 --device 0 --type hdd --medium c:\vms\%VHOST%\%VHOST%_2.vdi
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 2 --device 0 --type hdd --medium c:\vms\%VHOST%\%VHOST%_3.vdi
rem add and attach 3 x 25 GB disks for diskgroup +FRA
call vboxmanage createmedium disk --filename c:\vms\%VHOST%\%VHOST%_4.vdi --sizebyte=26843545600 --variant Standard
call vboxmanage createmedium disk --filename c:\vms\%VHOST%\%VHOST%_5.vdi --sizebyte=26843545600 --variant Standard
call vboxmanage createmedium disk --filename c:\vms\%VHOST%\%VHOST%_6.vdi --sizebyte=26843545600 --variant Standard
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 3 --device 0 --type hdd --medium c:\vms\%VHOST%\%VHOST%_4.vdi
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 4 --device 0 --type hdd --medium c:\vms\%VHOST%\%VHOST%_5.vdi
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 5 --device 0 --type hdd --medium c:\vms\%VHOST%\%VHOST%_6.vdi
timeout /T 5 /NOBREAK
call vboxmanage controlvm %VHOST% shutdown
timeout /T 10 /NOBREAK
rem increase the main memory to 10 GB
call vboxmanage modifyvm %VHOST% --memory=10240
call vboxmanage setextradata %VHOST% "VBoxInternal/Devices/pcbios/0/Config/DmiChassisAssetTag" "OracleCloud.com"
call vboxmanage startvm %VHOST%)
Now we create the users oracle and grid on the linux VM, unzip the software and set some kernel parameters (run as root user):
# run as root
bash -c "# add groups and users
groupadd -g 2000 oinstall ; groupadd -g 2001 dba ; groupadd -g 2002 asmdba ; groupadd -g 2003 asmadmin
useradd -u 2000 -g 2000 -G disk,dba,asmdba,vboxsf oracle && echo 'oracle:changeme'|chpasswd
useradd -u 2001 -g 2000 -G disk,dba,asmdba,asmadmin,vboxsf grid && echo 'grid:changeme'|chpasswd
# create environment files
echo 'export ORACLE_HOME=/u01/app/23.26.0/grid' > ~grid/grid.env
echo 'export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/jdk/bin:\$ORACLE_HOME/OPatch:\$PATH' >> ~grid/grid.env
echo 'export ORACLE_SID=+ASM' >> ~grid/grid.env
chown grid:oinstall ~grid/grid.env
echo 'source ~/grid.env' >> ~grid/.bash_profile
echo 'export ORACLE_HOME=/u01/app/oracle/product/23.26.0/dbhome_1' > ~oracle/ora26.env
echo 'export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/jdk/bin:\$ORACLE_HOME/OPatch:\$PATH' >> ~oracle/ora26.env
echo 'export ORACLE_SID=orcl' >> ~oracle/ora26.env
chown oracle:oinstall ~oracle/ora26.env
echo 'source ~/ora26.env' >> ~oracle/.bash_profile
# create directories
mkdir -p /u01 && chmod 775 /u01 && chown grid:oinstall /u01
mkdir -p /u01/app/23.26.0/grid # GRID_HOME
mkdir -p /u01/app/grid # GRID_BASE
mkdir -p /u01/app/oracle/product/23.26.0/dbhome_1 # ORACLE_HOME
chown grid:oinstall /u01/app && chown -R grid:oinstall /u01/app/23.26.0 && chown grid:oinstall /u01/app/grid
chown -R oracle:oinstall /u01/app/oracle # ORACLE_BASE
chmod 775 /u01/app && chmod -R 775 /u01/app/23.26.0 && chmod 775 /u01/app/grid
chmod -R 775 /u01/app/oracle
# unpack sw
echo 'Unpacking Grid Infrastructure sw. Please wait...'
if [ \`ls /u01/app/23.26.0/grid|wc -l\` -eq 0 ] ; then
su - grid -c 'cd /u01/app/23.26.0/grid ; cp /sw/oracle/gi/23ai_linux/LINUX.X64_2326000_grid_home.zip . ; unzip -q ./LINUX.X64_2326000_grid_home.zip ; rm -f ./LINUX.X64_2326000_grid_home.zip'
fi
echo 'Unpacking Database sw. Please wait...'
if [ \`ls /u01/app/oracle/product/23.26.0/dbhome_1|wc -l\` -eq 0 ] ; then
su - oracle -c 'cd /u01/app/oracle/product/23.26.0/dbhome_1 ; cp /sw/oracle/db/23ai_linux/LINUX.X64_2326000_db_home.zip . ; unzip -q ./LINUX.X64_2326000_db_home.zip ; rm -f LINUX.X64_2326000_db_home.zip'
fi
if ! rpm -q cvuqdisk ; then rpm -i /u01/app/23.26.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm ; fi
# adjust parameters
echo 'fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4975126528
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
kernel.panic = 1' > /etc/sysctl.d/97-oracle-database-sysctl.conf
/sbin/sysctl --system
cat >>/etc/security/limits.conf <<EOF
* soft memlock unlimited
* hard memlock unlimited
EOF
# install required OS packages and setup oracleasm
dnf config-manager --enable ol9_addons
dnf -y install compat-openssl11 oracleasm-support /sw/oracleasmlib-3.1.0-6.el9.x86_64.rpm
oracleasm configure -u grid -g asmadmin -e -s y -f y
systemctl restart oracleasm
# create swap space
if [ \`cat /etc/fstab|grep swapfile|wc -l\` == 0 ] ; then
echo 'creating swap space...'
dd if=/dev/zero of=/swapfile bs=1024 count=8388608 # create a 8 GB swapfile
chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile
echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
swapon
fi"
Sample Output (click to expand):
[root@lin4 ~]# # run as root
chown grid:oinstall /u01/app && chown -R grid:oinstall /u01/app/23.26.0 && chown grid:oinstall /u01/app/grid
chown -R oracle:oinstall /u01/app/oracle # ORACLE_BASE
chmod 775 /u01/app && chmod -R 775 /u01/app/23.26.0 && chmod 775 /u01/app/grid
chmod -R 775 /u01/app/oracle
# unpack sw
echo 'Unpacking Grid Infrastructure sw. Please wait...'
if [ \`ls /u01/app/23.26.0/grid|wc -l\` -eq 0 ] ; then
su - grid -c 'cd /u01/app/23.26.0/grid ; cp /sw/oracle/gi/23ai_linux/LINUX.X64_2326000_grid_home.zip . ; unzip -q ./LINUX.X64_2326000_grid_home.zip ; rm -f ./LINUX.X64_2326000_grid_home.zip'
[root@lin4 ~]# bash -c "# add groups and users
> groupadd -g 2000 oinstall ; groupadd -g 2001 dba ; groupadd -g 2002 asmdba ; groupadd -g 2003 asmadmin
> useradd -u 2000 -g 2000 -G disk,dba,asmdba,vboxsf oracle && echo 'oracle:changeme'|chpasswd
> useradd -u 2001 -g 2000 -G disk,dba,asmdba,asmadmin,vboxsf grid && echo 'grid:changeme'|chpasswd
> # create environment files
> echo 'export ORACLE_HOME=/u01/app/23.26.0/grid' > ~grid/grid.env
> echo 'export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/jdk/bin:\$ORACLE_HOME/OPatch:\$PATH' >> ~grid/grid.env
> echo 'export ORACLE_SID=+ASM' >> ~grid/grid.env
> chown grid:oinstall ~grid/grid.env
> echo 'source ~/grid.env' >> ~grid/.bash_profile
kernel.shmmax = 4294967295
kernel.shmmni = 4096
> echo 'export ORACLE_HOME=/u01/app/oracle/product/23.26.0/dbhome_1' > ~oracle/ora26.env
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
> echo 'export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/jdk/bin:\$ORACLE_HOME/OPatch:\$PATH' >> ~oracle/ora26.env
> echo 'export ORACLE_SID=orcl' >> ~oracle/ora26.env
> chown oracle:oinstall ~oracle/ora26.env
> echo 'source ~/ora26.env' >> ~oracle/.bash_profile
> # create directories
> mkdir -p /u01 && chmod 775 /u01 && chown grid:oinstall /u01
> mkdir -p /u01/app/23.26.0/grid # GRID_HOME
> mkdir -p /u01/app/grid # GRID_BASE
> mkdir -p /u01/app/oracle/product/23.26.0/dbhome_1 # ORACLE_HOME
> chown grid:oinstall /u01/app && chown -R grid:oinstall /u01/app/23.26.0 && chown grid:oinstall /u01/app/grid
> chown -R oracle:oinstall /u01/app/oracle # ORACLE_BASE
> chmod 775 /u01/app && chmod -R 775 /u01/app/23.26.0 && chmod 775 /u01/app/grid
# install required OS packages and setup oracleasm
dnf config-manager --enable ol9_addons
dnf -y install compat-openssl11 oracleasm-support /sw/oracleasmlib-3.1.0-6.el9.x86_64.rpm
oracleasm configure -u grid -g asmadmin -e -s y -f y
systemctl restart oracleasm
# create swap space
if [ \`cat /etc/fstab|grep swapfile|wc -l\` == 0 ] ; then
echo 'creating swap space...'
dd if=/dev/zero of=/swapfile bs=1024 count=8388608 # create a 8 GB swapfile
chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile
echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
swapon
fi"
> chmod -R 775 /u01/app/oracle
>
> # unpack sw
> echo 'Unpacking Grid Infrastructure sw. Please wait...'
> if [ \`ls /u01/app/23.26.0/grid|wc -l\` -eq 0 ] ; then
> su - grid -c 'cd /u01/app/23.26.0/grid ; cp /sw/oracle/gi/23ai_linux/LINUX.X64_2326000_grid_home.zip . ; unzip -q ./LINUX.X64_2326000_grid_home.zip ; rm -f ./LINUX.X64_2326000_grid_home.zip'
> fi
> echo 'Unpacking Database sw. Please wait...'
> if [ \`ls /u01/app/oracle/product/23.26.0/dbhome_1|wc -l\` -eq 0 ] ; then
> su - oracle -c 'cd /u01/app/oracle/product/23.26.0/dbhome_1 ; cp /sw/oracle/db/23ai_linux/LINUX.X64_2326000_db_home.zip . ; unzip -q ./LINUX.X64_2326000_db_home.zip ; rm -f LINUX.X64_2326000_db_home.zip'
> fi
> if ! rpm -q cvuqdisk ; then rpm -i /u01/app/23.26.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm ; fi
>
> # adjust parameters
> echo 'fs.aio-max-nr = 1048576
> fs.file-max = 6815744
> kernel.shmall = 2097152
> kernel.shmmax = 4975126528
> kernel.shmmni = 4096
> kernel.sem = 250 32000 100 128
> net.ipv4.ip_local_port_range = 9000 65500
> net.core.rmem_default = 262144
> net.core.rmem_max = 4194304
> net.core.wmem_default = 262144
> net.core.wmem_max = 1048576
> kernel.panic = 1' > /etc/sysctl.d/97-oracle-database-sysctl.conf
> /sbin/sysctl --system
>
> # install required OS packages and setup oracleasm
> dnf config-manager --enable ol9_addons
> dnf -y install compat-openssl11 oracleasm-support /sw/oracleasmlib-3.1.0-6.el9.x86_64.rpm
> oracleasm configure -u grid -g asmadmin -e -s y -f y
> systemctl restart oracleasm
>
> # create swap space
> if [ \`cat /etc/fstab|grep swapfile|wc -l\` == 0 ] ; then
> echo 'creating swap space...'
> dd if=/dev/zero of=/swapfile bs=1024 count=8388608 # create a 8 GB swapfile
> chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile
> echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
> swapon
> fi"
Unpacking Grid Infrastructure sw. Please wait...
Unpacking Database sw. Please wait...
package cvuqdisk is not installed
warning: /u01/app/23.26.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Using default group oinstall to install package
* Applying /usr/lib/sysctl.d/01-unprivileged-bpf.conf ...
* Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
* Applying /usr/lib/sysctl.d/50-coredump.conf ...
* Applying /usr/lib/sysctl.d/50-default.conf ...
* Applying /usr/lib/sysctl.d/50-libkcapi-optmem_max.conf ...
* Applying /usr/lib/sysctl.d/50-pid-max.conf ...
* Applying /usr/lib/sysctl.d/50-redhat.conf ...
* Applying /etc/sysctl.d/97-oracle-database-sysctl.conf ...
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.conf ...
kernel.unprivileged_bpf_disabled = 1
kernel.yama.ptrace_scope = 0
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h
kernel.core_pipe_limit = 16
fs.suid_dumpable = 2
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.enp0s3.rp_filter = 2
net.ipv4.conf.lo.rp_filter = 2
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.enp0s3.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.enp0s3.promote_secondaries = 1
net.ipv4.conf.lo.promote_secondaries = 1
net.ipv4.ping_group_range = 0 2147483647
net.core.default_qdisc = fq_codel
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
fs.protected_regular = 1
fs.protected_fifos = 1
net.core.optmem_max = 81920
kernel.pid_max = 4194304
kernel.kptr_restrict = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.enp0s3.rp_filter = 1
net.ipv4.conf.lo.rp_filter = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4975126528
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
kernel.panic = 1
Extra Packages for Enterprise Linux 9 - x86_64 13 kB/s | 11 kB 00:00
Extra Packages for Enterprise Linux 9 - x86_64 6.0 MB/s | 20 MB 00:03
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 2.3 kB/s | 993 B 00:00
Oracle Linux 9 BaseOS Latest (x86_64) 41 kB/s | 4.2 kB 00:00
Oracle Linux 9 BaseOS Latest (x86_64) 7.8 MB/s | 89 MB 00:11
Oracle Linux 9 Application Stream Packages (x86_64) 41 kB/s | 4.5 kB 00:00
Oracle Linux 9 Application Stream Packages (x86_64) 8.0 MB/s | 71 MB 00:08
Oracle Linux 9 Addons (x86_64) 2.2 MB/s | 733 kB 00:00
Oracle Linux 9 UEK Release 7 (x86_64) 40 kB/s | 3.5 kB 00:00
Oracle Linux 9 UEK Release 7 (x86_64) 8.7 MB/s | 83 MB 00:09
Dependencies resolved.
==========================================================================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================================================================
Installing:
compat-openssl11 x86_64 1:1.1.1k-5.el9_6.1 ol9_appstream 1.5 M
oracleasm-support x86_64 3.1.1-3.el9 ol9_addons 131 k
oracleasmlib x86_64 3.1.0-6.el9 @commandline 52 k
Transaction Summary
==========================================================================================================================================================================
Install 3 Packages
Total size: 1.6 M
Total download size: 1.6 M
Installed size: 4.1 M
Downloading Packages:
(1/2): oracleasm-support-3.1.1-3.el9.x86_64.rpm 802 kB/s | 131 kB 00:00
(2/2): compat-openssl11-1.1.1k-5.el9_6.1.x86_64.rpm 4.1 MB/s | 1.5 MB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.4 MB/s | 1.6 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : oracleasm-support-3.1.1-3.el9.x86_64 1/3
Running scriptlet: oracleasm-support-3.1.1-3.el9.x86_64 1/3
Created symlink /etc/systemd/system/multi-user.target.wants/oracleasm.service → /usr/lib/systemd/system/oracleasm.service.
Installing : oracleasmlib-3.1.0-6.el9.x86_64 2/3
Installing : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64 3/3
Running scriptlet: compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64 3/3
Verifying : compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64 1/3
Verifying : oracleasm-support-3.1.1-3.el9.x86_64 2/3
Verifying : oracleasmlib-3.1.0-6.el9.x86_64 3/3
Installed:
compat-openssl11-1:1.1.1k-5.el9_6.1.x86_64 oracleasm-support-3.1.1-3.el9.x86_64 oracleasmlib-3.1.0-6.el9.x86_64
Complete!
Writing Oracle ASM system service configuration: done
Configuration changes only come into effect after the Oracle ASM
system service is restarted. Please run 'systemctl restart oracleasm'
after making changes.
WARNING: All of your Oracle and ASM instances must be stopped prior
to restarting the oracleasm service.
creating swap space...
8388608+0 records in
8388608+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 24.3407 s, 353 MB/s
Setting up swapspace version 1, size = 8 GiB (8589930496 bytes)
no label, UUID=7e77c4c0-377b-4a3e-af64-375e82d30ce7
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 1024M 0B -2
/swapfile file 8G 0B -3
[root@lin4 ~]#
Oracle Grid Infrastructure 26ai Installation
The following will perform a silent installation of the Oracle Grid Infrastructure software.
# run as the root user
# create Oracle ASM disks
for i in b c d e f ; do echo 'n
p
1
w
q'|fdisk /dev/sd$i; done
j=1; for i in `fdisk -l|grep '50 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk DATA$j $i'1'; let j=j+1; done
j=1; for i in `fdisk -l|grep '25 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk FRA$j $i'1'; let j=j+1; done
sleep 5
cat > ~grid/rsp_grid.rsp << EOF
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v23.0.0
INVENTORY_LOCATION=/u01/app/oraInventory
installOption=HA_CONFIG
ORACLE_BASE=/u01/app/grid
clusterUsage=RAC
zeroDowntimeGIPatching=false
skipDriverUpdate=false
OSDBA=asmdba
OSASM=asmadmin
scanType=LOCAL_SCAN
configureAsExtendedCluster=false
configureGNS=false
configureDHCPAssignedVIPs=false
storageOption=FLEX_ASM_STORAGE
useIPMI=false
diskGroupName=DATA
redundancy=NORMAL
auSize=4
disksWithFailureGroupNames=ORCL:DATA1,,ORCL:DATA2,
diskList=ORCL:DATA1,ORCL:DATA2
diskString=ORCL:*
ignoreDownNodes=false
configureBackupDG=false
backupDGName=RECO
backupDGRedundancy=NORMAL
backupDGAUSize=1
managementOption=NONE
omsPort=0
executeRootScript=true
configMethod=ROOT
sudoPath=/usr/local/bin/sudo
sudoUserName=grid
enableAutoFixup=false
sysasmPassword=changeme
asmsnmpPassword=changeme
EOF
chown grid:oinstall ~grid/rsp_grid.rsp
su - grid -c "echo changeme|/u01/app/23.26.0/grid/gridSetup.sh -silent -responseFile /home/grid/rsp_grid.rsp"
Sample Output (click to expand):
[root@lin4 ~]# # run as the root user
[root@lin4 ~]# # create Oracle ASM disks
[root@lin4 ~]# for i in b c d e f ; do echo 'n
w
> p
> 1
>
>
q'|fdisk /dev/sd$i; done
> w
> q'|fdisk /dev/sd$i; done
j=1; for i in `fdisk -l|grep '50 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk DATA$j $i'1'; let j=j+1; done
j=1; for i in `fdisk -l|grep '25 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk FRA$j $i'1'; let j=j+1; done
sleep 5
cat > ~grid/rsp_grid.rsp << EOF
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v23.0.0
INVENTORY_LOCATION=/u01/app/oraInventory
installOption=HA_CONFIG
ORACLE_BASE=/u01/app/grid
clusterUsage=RAC
zeroDowntimeGIPatching=false
skipDriverUpdate=false
OSDBA=asmdba
OSASM=asmadmin
scanType=LOCAL_SCAN
configureAsExtendedCluster=false
configureGNS=false
configureDHCPAssignedVIPs=false
storageOption=FLEX_ASM_STORAGE
useIPMI=false
diskGroupName=DATA
redundancy=NORMAL
auSize=4
disksWithFailureGroupNames=ORCL:DATA1,,ORCL:DATA2,
diskList=ORCL:DATA1,ORCL:DATA2
diskString=ORCL:*
ignoreDownNodes=false
configureBackupDG=false
backupDGName=RECO
backupDGRedundancy=NORMAL
backupDGAUSize=1
managementOption=NONE
omsPort=0
executeRootScript=true
configMethod=ROOT
sudoPath=/usr/local/bin/sudo
sudoUserName=grid
enableAutoFixup=false
sysasmPassword=changeme
asmsnmpPassword=changeme
EOF
chown grid:oinstall ~grid/rsp_grid.rsp
su - grid -c "echo changeme|/u01/app/23.26.0/grid/gridSetup.sh -silent -responseFile /home/grid/rsp_grid.rsp"
Welcome to fdisk (util-linux 2.37.4).
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 0xbbd5423f.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-104857599, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-104857599, default 104857599):
Created a new partition 1 of type 'Linux' and of size 50 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Welcome to fdisk (util-linux 2.37.4).
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 0x81885b16.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-104857599, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-104857599, default 104857599):
Created a new partition 1 of type 'Linux' and of size 50 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Welcome to fdisk (util-linux 2.37.4).
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 0x794152d3.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-52428799, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-52428799, default 52428799):
Created a new partition 1 of type 'Linux' and of size 25 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Welcome to fdisk (util-linux 2.37.4).
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 0x7a12c602.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-52428799, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-52428799, default 52428799):
Created a new partition 1 of type 'Linux' and of size 25 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Welcome to fdisk (util-linux 2.37.4).
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 0x2dff1803.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-52428799, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-52428799, default 52428799):
Created a new partition 1 of type 'Linux' and of size 25 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@lin4 ~]# j=1; for i in `fdisk -l|grep '50 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk DATA$j $i'1'; let j=j+1; done
Writing disk header: done
Instantiating disk: done
Writing disk header: done
Instantiating disk: done
[root@lin4 ~]# j=1; for i in `fdisk -l|grep '25 GiB'|awk {'print $2'}|sed s/:$//`; do oracleasm createdisk FRA$j $i'1'; let j=j+1; done
Writing disk header: done
Instantiating disk: done
Writing disk header: done
Instantiating disk: done
Writing disk header: done
Instantiating disk: done
[root@lin4 ~]# sleep 5
[root@lin4 ~]#
[root@lin4 ~]# cat > ~grid/rsp_grid.rsp << EOF
> oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v23.0.0
> INVENTORY_LOCATION=/u01/app/oraInventory
> installOption=HA_CONFIG
> ORACLE_BASE=/u01/app/grid
> clusterUsage=RAC
> zeroDowntimeGIPatching=false
> skipDriverUpdate=false
> OSDBA=asmdba
> OSASM=asmadmin
> scanType=LOCAL_SCAN
> configureAsExtendedCluster=false
> configureGNS=false
> configureDHCPAssignedVIPs=false
> storageOption=FLEX_ASM_STORAGE
> useIPMI=false
> diskGroupName=DATA
> redundancy=NORMAL
> auSize=4
> disksWithFailureGroupNames=ORCL:DATA1,,ORCL:DATA2,
> diskList=ORCL:DATA1,ORCL:DATA2
> diskString=ORCL:*
> ignoreDownNodes=false
> configureBackupDG=false
> backupDGName=RECO
> backupDGRedundancy=NORMAL
> backupDGAUSize=1
> managementOption=NONE
> omsPort=0
> executeRootScript=true
> configMethod=ROOT
> sudoPath=/usr/local/bin/sudo
> sudoUserName=grid
> enableAutoFixup=false
> sysasmPassword=changeme
> asmsnmpPassword=changeme
> EOF
[root@lin4 ~]# chown grid:oinstall ~grid/rsp_grid.rsp
[root@lin4 ~]# su - grid -c "echo changeme|/u01/app/23.26.0/grid/gridSetup.sh -silent -responseFile /home/grid/rsp_grid.rsp"
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
Enter password for 'root' user: *******
The response file for this session can be found at:
/u01/app/23.26.0/grid/install/response/grid_2025-10-18_07-53-44AM.rsp
You can find the log of this install session at:
/tmp/GridSetupActions2025-10-18_07-53-44AM/gridSetupActions2025-10-18_07-53-44AM.log
[ Start ] NETCA - 2025-10-18 07:56:19.2
Command: /bin/sh -c /u01/app/23.26.0/grid/bin/netca /orahome /u01/app/23.26.0/grid /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /responseFile /u01/app/23.26.0/grid/network/install/netca_typ.rsp /silent /orahnam OraGI23Home1 /ouiinternal
Parsing command line arguments:
Parameter "orahome" = /u01/app/23.26.0/grid
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /u01/app/23.26.0/grid/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraGI23Home1
Parameter "ouiinternal" = true
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
[ Exit Code ] 0
[ End ] NETCA - 2025-10-18 07:56:23.906
[ Start ] ASMCA - 2025-10-18 07:56:23.961
Command: /bin/sh -c /u01/app/23.26.0/grid/bin/asmca -silent -oui_internal -configureASM -diskString 'ORCL:*' -diskGroupName DATA -diskList 'ORCL:DATA2,ORCL:DATA1' -redundancy NORMAL -au_size 4
SYS_PASSWORD_PROMPT
ASMSNMP_PASSWORD_PROMPT
ASM has been created and started successfully.
[DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-251018AM075624.log for details.
[ Exit Code ] 0
[ End ] ASMCA - 2025-10-18 07:56:58.306
[ Start ] CVU - 2025-10-18 07:56:58.333
Command: /bin/sh -c /u01/app/23.26.0/grid/bin/cluvfy stage -post hacfg
Performing following verification checks ...
Oracle Restart Integrity ...PASSED
OLR Integrity ...PASSED
Post-check for Oracle Restart configuration was successful.
CVU operation performed: stage -post hacfg
Date: Oct 18, 2025, 7:56:58 AM
CVU version: 23.26.0.0.0 (091925x8664)
CVU home: /u01/app/23.26.0/grid
Grid home: /u01/app/23.26.0/grid
User: grid
Operating system: Linux5.15.0-307.178.5.el9uek.x86_64
Successfully Setup Software.
[ Exit Code ] 0
[ End ] CVU - 2025-10-18 07:57:04.121
Moved the install session logs to:
/u01/app/oraInventory/logs/GridSetupActions2025-10-18_07-53-44AM
[root@lin4 ~]#
We can now check if the GI services are running:
su - grid -c "crsctl stat res -t"
[root@lin4 ~]# su - grid -c "crsctl stat res -t"
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE lin4 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE lin4 STABLE
ora.asm
ONLINE ONLINE lin4 Started,STABLE
ora.ons
OFFLINE OFFLINE lin4 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE lin4 STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE lin4 STABLE
--------------------------------------------------------------------------------
[root@lin4 ~]#
If there were errors and for example the asm Resource is missing you can uninstall the Grid Infrastructure software as described here and continue the installation from here.
Next we create a Fast Recovery Area (FRA) diskgroup:
su - grid -c "
sqlplus / as sysasm << EOF
create diskgroup fra normal redundancy
disk 'ORCL:FRA1'
disk 'ORCL:FRA2'
disk 'ORCL:FRA3';
EOF"
Sample Output (click to expand):
[root@lin4 ~]# su - grid -c "
> sqlplus / as sysasm << EOF
> create diskgroup fra normal redundancy
> disk 'ORCL:FRA1'
> disk 'ORCL:FRA2'
> disk 'ORCL:FRA3';
> EOF"
SQL*Plus: Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems on Fri Oct 17 22:20:58 2025
Version 23.26.0.0.0
Copyright (c) 1982, 2025, Oracle. All rights reserved.
Connected to:
Oracle AI Database 26ai Enterprise Edition Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.26.0.0.0
SQL> 2 3 4
Diskgroup created.
SQL> Disconnected from Oracle AI Database 26ai Enterprise Edition Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.26.0.0.0
[root@lin4 ~]#
Database Installation
The following will perform a silent installation of the Oracle AI Database 26ai.
cat > ~oracle/rsp_db.rsp << EOF
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v23.0.0
installOption=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
installEdition=EE
OSDBA=dba
OSBACKUPDBA=dba
OSDGDBA=dba
OSKMDBA=dba
OSRACDBA=dba
dbType=GENERAL_PURPOSE
enableAutoMemoryManagement=false
omsPort=0
enableRecovery=false
EOF
chown oracle:oinstall ~oracle/rsp_db.rsp
su - oracle -c "echo changeme|/u01/app/oracle/product/23.26.0/dbhome_1/runInstaller -silent -responseFile /home/oracle/rsp_db.rsp"
/u01/app/oracle/product/23.26.0/dbhome_1/root.sh
# to avoid ORA-15001 ORA-17502 during db creation with dbca (s.a. DocID 2375553.1)
su - grid -c 'setasmgidwrap o=/u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle'
chgrp asmadmin /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
chmod 6751 /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
Sample Output (click to expand):
[root@lin4 ~]# cat > ~oracle/rsp_db.rsp << EOF
> oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v23.0.0
> installOption=INSTALL_DB_SWONLY
> UNIX_GROUP_NAME=oinstall
> INVENTORY_LOCATION=/u01/app/oraInventory
> ORACLE_BASE=/u01/app/oracle
> installEdition=EE
> OSDBA=dba
> OSBACKUPDBA=dba
> OSDGDBA=dba
> OSKMDBA=dba
> OSRACDBA=dba
> dbType=GENERAL_PURPOSE
> enableAutoMemoryManagement=false
> omsPort=0
> enableRecovery=false
> EOF
# to avoid ORA-15001 ORA-17502 during db creation with dbca (s.a. DocID 2375553.1)
su - grid -c 'setasmgidwrap o=/u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle'
chgrp asmadmin /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
chmod 6751 /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
[root@lin4 ~]# chown oracle:oinstall ~oracle/rsp_db.rsp
[root@lin4 ~]# su - oracle -c "echo changeme|/u01/app/oracle/product/23.26.0/dbhome_1/runInstaller -silent -responseFile /home/oracle/rsp_db.rsp"
Launching Oracle Database Setup Wizard...
The response file for this session can be found at:
/u01/app/oracle/product/23.26.0/dbhome_1/install/response/db_2025-10-18_10-36-36PM.rsp
You can find the log of this install session at:
/u01/app/oraInventory/logs/InstallActions2025-10-18_10-36-36PM/installActions2025-10-18_10-36-36PM.log
As a root user, run the following script(s):
1. /u01/app/oracle/product/23.26.0/dbhome_1/root.sh
Run /u01/app/oracle/product/23.26.0/dbhome_1/root.sh on the following nodes:
[lin4]
Successfully Setup Software.
[root@lin4 ~]# /u01/app/oracle/product/23.26.0/dbhome_1/root.sh
Check /u01/app/oracle/product/23.26.0/dbhome_1/install/root_lin4.fritz.box_2025-10-18_22-38-58-932583433.log for the output of root script
[root@lin4 ~]#
[root@lin4 ~]# # to avoid ORA-15001 ORA-17502 during db creation with dbca (s.a. DocID 2375553.1)
[root@lin4 ~]# su - grid -c 'setasmgidwrap o=/u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle'
[root@lin4 ~]# chgrp asmadmin /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
[root@lin4 ~]# chmod 6751 /u01/app/oracle/product/23.26.0/dbhome_1/bin/oracle
[root@lin4 ~]#
Now we create the container database orcl and the pluggable database pdb1:
su - oracle -c "dbca -silent -createDatabase \
-gdbName orcl.fritz.box -sid orcl -templateName General_Purpose.dbc \
-memoryPercentage 60 -databaseType MULTIPURPOSE \
-sysPassword changeme -systemPassword changeme -pdbAdminPassword changeme \
-storageType ASM -datafileDestination +DATA \
-recoveryAreaDestination +FRA -recoveryAreaSize 25000 \
-createAsContainerDatabase true -pdbName pdb1"
# configure the pdb to start by default
su - oracle -c "echo 'alter pluggable database pdb1 save state;'|sqlplus -S / as sysdba"
Sample Output (click to expand):
[root@lin4 ~]# su - oracle -c "dbca -silent -createDatabase \
> -gdbName orcl.fritz.box -sid orcl -templateName General_Purpose.dbc \
> -memoryPercentage 60 -databaseType MULTIPURPOSE \
> -sysPassword changeme -systemPassword changeme -pdbAdminPassword changeme \
> -storageType ASM -datafileDestination +DATA \
> -recoveryAreaDestination +FRA -recoveryAreaSize 25000 \
> -createAsContainerDatabase true -pdbName pdb1"
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'PDBADMIN' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Prepare for db operation
7% complete
Registering database with Oracle Restart
11% complete
Copying database files
33% complete
Creating and starting Oracle instance
35% complete
38% complete
41% complete
44% complete
48% complete
Completing Database Creation
53% complete
55% complete
56% complete
Creating Pluggable Databases
60% complete
78% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/u01/app/oracle/cfgtoollogs/dbca/orcl.
Database Information:
Global Database Name:orcl.fritz.box
System Identifier(SID):orcl
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log" for further details.
[root@lin4 ~]# # configure the pdb to start by default
[root@lin4 ~]# su - oracle -c "echo 'alter pluggable database pdb1 save state;'|sqlplus -S / as sysdba"
Pluggable database altered.
[root@lin4 ~]#
The database is now ready to use and we can login with:
# type exit to logout
su - oracle -c "sqlplus / as sysdba"
Sample Output (click to expand):
[root@lin4 ~]# # type exit to logout
[root@lin4 ~]# su - oracle -c "sqlplus / as sysdba"
SQL*Plus: Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems on Sat Oct 18 22:49:31 2025
Version 23.26.0.0.0
Copyright (c) 1982, 2025, Oracle. All rights reserved.
Connected to:
Oracle AI Database 26ai Enterprise Edition Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.26.0.0.0
SQL> exit
Disconnected from Oracle AI Database 26ai Enterprise Edition Release 23.26.0.0.0 - for Oracle Cloud and Engineered Systems
Version 23.26.0.0.0
[root@lin4 ~]#
Enjoy 🙂
Useful commands
command | description |
---|---|
less /u01/app/grid/diag/asm/+asm/+ASM/trace/alert_+ASM.log | ASM Alertlog file |
less /u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log | Database Alertlog file |
If you would like to install Oracle Grid Infrastructure with a GUI (Oracle Universal Installer) you can do that with:
# as the grid user start a X terminal and run
/u01/app/23.26.0/grid/gridSetup.sh
If you would like to install Oracle Database with a GUI (Oracle Universal Installer) you can do that with:
# as the oracle user start a X terminal and run
/u01/app/oracle/product/23.26.0/dbhome_1/runInstaller
To delete the orcl database:
# as oracle:
dbca -silent -deleteDatabase -sourceDB orcl -sysDBAUserName sys -forceArchiveLogDeletion -sysDBAPassword changeme -sid orcl
Use these commands on the VirtualBox host machine if you need to delete the 5 additional disk devices for ASM:
set "VHOST="
(set /p VHOST=Enter VM name ^(e.g. lin1^):
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 1 --device 0 --type hdd --medium none
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 2 --device 0 --type hdd --medium none
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 3 --device 0 --type hdd --medium none
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 4 --device 0 --type hdd --medium none
call vboxmanage storageattach %VHOST% --storagectl "SATA" --port 5 --device 0 --type hdd --medium none
call vboxmanage closemedium disk c:\vms\%VHOST%\%VHOST%_2.vdi --delete
call vboxmanage closemedium disk c:\vms\%VHOST%\%VHOST%_3.vdi --delete
call vboxmanage closemedium disk c:\vms\%VHOST%\%VHOST%_4.vdi --delete
call vboxmanage closemedium disk c:\vms\%VHOST%\%VHOST%_5.vdi --delete
call vboxmanage closemedium disk c:\vms\%VHOST%\%VHOST%_6.vdi --delete)
To uninstall the Grid Infrastructure software in silent mode you can do the following. If you want to recreate the installation afterwards continue here. The script takes some time so be patient.
su - grid -c '/u01/app/23.26.0/grid/deinstall/deinstall -silent -checkonly -local -o /tmp && \
/u01/app/23.26.0/grid/deinstall/deinstall -silent -paramfile=/tmp/deinstall_OraGI23Home1.rsp'
# run the rootdeinstall.sh script as root
/tmp/`ls -atr /tmp|grep deinstall|tail -1`/rootdeinstall.sh
rm -rf /etc/oraInst.loc ; rm -rf /opt/ORCLfmap ; rm -rf /etc/oratab
Sample Output (click to expand):
[root@lin4 ~]# su - grid -c '/u01/app/23.26.0/grid/deinstall/deinstall -silent -checkonly -local -o /tmp && \
> /u01/app/23.26.0/grid/deinstall/deinstall -silent -paramfile=/tmp/deinstall_OraGI23Home1.rsp'
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/23.26.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/23.26.0/grid
## [END] Install check configuration ##
Traces log file: /u01/app/oraInventory/logs//crsdc_2025-10-18_07-14-49-AM.log
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2025-10-18_07-14-51AM.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2025-10-18_07-14-51AM.log
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/23.26.0/grid
Oracle Home selected for deinstall is: /u01/app/23.26.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Location of response file generated: '/tmp/deinstall_OraGI23Home1.rsp'
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-14-47-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-14-47-AM.err'
############# ORACLE DECONFIG TOOL END #############
Checking for required files and bootstrapping ...
Please wait ...
Using properties file /tmp/deinstall_OraGI23Home1.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/23.26.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/23.26.0/grid
## [END] Install check configuration ##
Traces log file: /u01/app/oraInventory/logs//crsdc_2025-10-18_07-15-03-AM.log
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2025-10-18_07-15-04AM.log
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2025-10-18_07-15-04AM.log
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/23.26.0/grid
Oracle Home selected for deinstall is: /u01/app/23.26.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-15-01-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-15-01-AM.err'
######################## DECONFIG CLEAN OPERATION START ########################
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2025-10-18_07-15-04AM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2025-10-18_07-15-04AM.log
De-configuring Oracle Restart enabled listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Unregistering listener: LISTENER
Listener unregistered successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.
De-configuring backup files...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
---------------------------------------->
<----------------------------------------
As the privileged user, execute "/tmp/deinstall2025-10-18_07-14-53AM/rootdeinstall.sh" on this node to remove the configuration of the Oracle Restart and to completely remove the Oracle software
<----------------------------------------
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
As the privileged user, execute "/tmp/deinstall2025-10-18_07-14-53AM/rootdeinstall.sh" on this node to remove the configuration of the Oracle Restart and to completely remove the Oracle software
Oracle Restart is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
[root@lin4 ~]# # run the rootdeinstall.sh script as root
[root@lin4 ~]# /tmp/`ls -atr /tmp|grep deinstall|tail -1`/rootdeinstall.sh
Using configuration parameter file: /tmp/deinstall2025-10-18_07-14-53AM/response/deinstall_OraGI23Home1.rsp
The log of current session can be found at:
/u01/app/oraInventory/logs/hadeconfig.log
Redirecting to /bin/systemctl restart rsyslog.service
2025/10/18 07:26:12 CLSRSC-337: Successfully deconfigured Oracle Restart stack
Checking for required files and bootstrapping ...
Please wait ...
Using properties file /tmp/deinstall2025-10-18_07-14-53AM/response/deinstall_OraGI23Home1.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DEINSTALL TOOL START ############
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-26-13-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2025-10-18_07-26-13-AM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to lin4
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2025-10-18_07-14-53AM/oraInst.loc
Setting oracle.installer.local to true
## [END] Preparing for Deinstall ##
Oracle Universal Installer clean START
Detach Oracle home 'OraGI23Home1' from the central inventory on the local node : Done
Delete directory '/u01/app/23.26.0/grid' on the local node : Done
The Oracle Base directory '/u01/app/grid' will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory.
You can find a log of this session at:
'/u01/app/oraInventory/logs/Cleanup2025-10-18_07-26-14AM.log'
Oracle Universal Installer clean END
## [START] Oracle install clean ##
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home 'OraGI23Home1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/23.26.0/grid' on the local node.
Oracle Universal Installer cleanup was successful.
Review the permissions and contents of '/u01/app/grid' on nodes(s) 'lin4'.
If there are no Oracle home(s) associated with '/u01/app/grid', manually delete '/u01/app/grid' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
[root@lin4 ~]# rm -rf /etc/oraInst.loc ; rm -rf /opt/ORCLfmap ; rm -rf /etc/oratab
[root@lin4 ~]#
Leave a Reply