Blog
13 de fevereiro de 2026
Instalando o Oracle Grid 26ai no Oracle Linux 9.7 (Standalone / Oracle Restart + ASM)
No artigo anterior - Instalando o Oracle Linux 9.7 para o Oracle Grid: setup base do sistema, foi realizada a instalação do Oracle Linux 9.7 (perfil Minimal, particionamento, rede e hostname) que será utilizado para instalação do Grid e Database 26ai. Nesta continuação, vamos instalar o Oracle Grid Infrastructure no modo “Standalone Server (Oracle Restart)”, configurar o ASM e preparar o disco via ASMLib v3.
Abordaremos a preparação do ambiente do Grid (usuários/grupos e diretórios), garantindo que o Grid Home esteja correto e com as permissões adequadas. Em seguida, a preparação dos discos para o ASM usando ASMLib v3 no Oracle Linux 9, criando e validando os labels que serão selecionados durante a configuração do ASM. Por fim, executamos o instalador do Oracle Grid 26ai, finalizamos com os scripts de root e encerramos com um checklist de validação, confirmando que o Oracle Restart e o ASM ficaram funcionando como esperado.
Ambiente:
- Host: oracle26ai
- Grid Home: /u01/app/23.26/grid
- Mídia: LINUX.X64_2326100_grid_home.zip
- ASMLib v3 (oracleasmlib 3.1.1 em OL9) e oracleasm-support instalados
- Disco ASM rotulado: DGDATA001 apontando para /dev/sdb1
Etapa 1 — Instalar o pacote de pré-requisitos (preinstall 26ai)
Objetivo: instalar dependências e ajustes base de sistema para o stack Oracle (pacotes, utilitários e pré-reqs do ambiente).Execute como root:
dnf install -y oracle-ai-database-preinstall-26ai.x86_64
Etapa 2 — Criar o diretório, usuário e grupos do Grid/ASM
Objetivo: criar o usuário “grid” (owner do Grid Home) e os grupos de administração do ASM.
Como root, crie os grupos asmadmin, asmdba e asmoper:
groupadd asmadmin -g 54329 groupadd asmdba -g 54327 groupadd asmoper -g 54328
Crie o usuário grid (o usuários oracle é automaticamente criado pelo preinstall):
useradd -u 54331 -g oinstall -G dba,asmdba,asmoper,asmadmin,racdba grid -c "Grid Owner" passwd grid
Ajuste os grupos do usuário oracle, incluindo o grupo asmdba que foi criado:
[root@oracle26ai ~]# id oracle uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba) [root@oracle26ai ~]# [root@oracle26ai ~]# usermod -g oinstall -G oinstall,dba,oper,backupdba,dgdba,kmdba,racdba,asmdba oracle [root@oracle26ai ~]# [root@oracle26ai ~]# id oracle uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba),54327(asmdba) [root@oracle26ai ~]#
Criação do diretório para o home do grid:
mkdir -p /u01/app/23.26/grid/
Etapa 3 — Instalar ASMLib v3 e oracleasm-support (OL9)
Objetivo: habilitar o stack de ASMLib v3 para provisionar/rotular discos ASM e permitir descoberta consistente no instalador.
Faça download do pacote oracleasmlib oracleasmlib-3.0.0-13.el8.x86_64.rpm, e instale o mesmo.
[root@ora26 u01]# dnf localinstall oracleasmlib-3.0.0-13.el8.x86_64.rpm -y Last metadata expiration check: 0:02:29 ago on Thu 12 Feb 2026 02:22:35 PM -03. Dependencies resolved. ============================================================================================================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================================================================================================= Installing: oracleasmlib x86_64 3.0.0-13.el8 @commandline 46 k Transaction Summary ============================================================================================================================================================================================================================================= Install 1 Package Total size: 46 k Installed size: 91 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : oracleasmlib-3.0.0-13.el8.x86_64 1/1 Running scriptlet: oracleasmlib-3.0.0-13.el8.x86_64 1/1 Verifying : oracleasmlib-3.0.0-13.el8.x86_64 1/1 Installed: oracleasmlib-3.0.0-13.el8.x86_64 Complete!
Concluída a instalação do asmlib, instale o oracleasm-support.
[root@oracle26ai ~]# [root@oracle26ai ~]# dnf config-manager --set-enabled ol9_addons [root@oracle26ai ~]# dnf install oracleasm-support Oracle Linux 9 BaseOS Latest (x86_64) 4.5 kB/s | 4.3 kB 00:00 Oracle Linux 9 BaseOS Latest (x86_64) 69 kB/s | 106 MB 26:29 Oracle Linux 9 Application Stream Packages (x86_64) 4.0 kB/s | 4.5 kB 00:01 Oracle Linux 9 Application Stream Packages (x86_64) 70 kB/s | 82 MB 20:01 Oracle Linux 9 Addons (x86_64) 44 kB/s | 807 kB 00:18 Last metadata expiration check: 0:00:15 ago on Sat 31 Jan 2026 10:05:18 AM -03. Dependencies resolved. ====================================================================================================================================================================================================== Package Architecture Version Repository Size ====================================================================================================================================================================================================== Installing: oracleasm-support x86_64 3.1.1-4.el9 ol9_addons 131 k Transaction Summary ====================================================================================================================================================================================================== Install 1 Package Total download size: 131 k Installed size: 318 k Is this ok [y/N]: y Downloading Packages: oracleasm-support-3.1.1-4.el9.x86_64.rpm 158 kB/s | 131 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 154 kB/s | 131 kB 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-4.el9.x86_64 1/1 Running scriptlet: oracleasm-support-3.1.1-4.el9.x86_64 1/1 Created symlink /etc/systemd/system/multi-user.target.wants/oracleasm.service → /usr/lib/systemd/system/oracleasm.service. Verifying : oracleasm-support-3.1.1-4.el9.x86_64 1/1 Installed: oracleasm-support-3.1.1-4.el9.x86_64 Complete! [root@oracle26ai ~]#
Reinicie o serviço e valide o status do ASMLib.
[root@oracle26ai u01]# systemctl restart oracleasm [root@oracle26ai u01]# [root@oracle26ai u01]# oracleasm status Checking if the oracleasm kernel module is loaded: no (not required with UEK8) Checking if /dev/oracleasm is mounted: no (not required with UEK8) Checking which I/O Interface is in use: io_uring (KABI_V3) Checking if ASMLIB can be loaded: yes Checking if io_uring is enabled: yes Checking if io_uring is accessible to the configured DB user: yes Checking if io_uring supports integrity passthrough: yes Checking if ASM disks have the correct ownership and permissions: yes Checking if ASM I/O filter is set up: yes [root@oracle26ai u01]#
Realize as configurações do oracleasm.
# Sugestão típica:
# Default user to own the driver interface: grid
# Default group to own the driver interface: oinstall
# Start Oracle ASM library driver on boot: y
# Scan for Oracle ASM disks on boot: y
[root@oracle26ai ~]# oracleasm configure -i Configuring the Oracle ASM system service. This will configure the on-boot properties of the Oracle ASM system service. The following questions will determine whether the service is started 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 ASM disk devices [grid]: Default group to own the ASM disk devices [oinstall]: Start Oracle ASM system service on boot (y/n) [y]: y Scan for Oracle ASM disks when starting the oracleasm service (y/n) [y]: y Maximum number of ASM disks that can be used on system [2048]: Enable iofilter if kernel supports it (y/n) [y]: y Writing Oracle ASM system service configuration: done
Etapa 4 — Identificar o disco e criar o label ASM (ASMLib)
Objetivo: preparar o dispositivo que será usado pelo ASM e criar o rótulo que o instalador enxergará como disco candidato/provisionado.
Criação do disl label no ASMLib (unidade já estava formatada):
[root@oracle26ai u01]# oracleasm createdisk DGDATA001 /dev/sdb1 Writing disk header: done Instantiating disk: done [root@oracle26ai u01]# [root@oracle26ai u01]# oracleasm listdisks DGDATA001 [root@oracle26ai u01]#
Etapa 5 — Descompactar o Grid Home
Objetivo: montar o Grid Home no diretório final do Oracle Grid, pronto para execução do instalador.
Com o usuário grid, descompacte o arquivo LINUX.X64_2326100_grid_home.zip no caminho do Grid Home ( /u01/app/23.26/grid).
unzip LINUX.X64_2326100_grid_home.zip -d /u01/app/23.26/grid/
Após a descompactação, será instalado o VNC para acesso a instalação gráfica.
yum install -y tigervnc-server tigervnc xterm xorg-x11-xauth
Agora basta iniciar o VNC e acessar a parte gráfica com algum client VNC na porta indicada (no exemplo a 1).
[grid@oracle26ai ~]$ cd /u01/app/23.26/grid/ [grid@oracle26ai grid]$ vncserver WARNING: vncserver has been replaced by a systemd unit and is now considered deprecated and removed in upstream. Please read /usr/share/doc/tigervnc/HOWTO.md for more information. You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? A view-only password is not used xauth: file /home/grid/.Xauthority does not exist New 'oracle26ai:1 (grid)' desktop is oracle26ai:1 Creating default startup script /home/grid/.vnc/xstartup Creating default config /home/grid/.vnc/config Starting applications specified in /home/grid/.vnc/xstartup Log file is /home/grid/.vnc/oracle26ai:1.log [grid@oracle26ai grid]$
Etapa 6 — Instalação do Grid Infrastructure
Objetivo: Proceder com o processo de instalação do Grid Infrastructure.
Com o usuário grid, acesso o Grid Home (neste exemplo /u01/app/23.26/grid) e execute o gridSetup.sh.
./gridSetup.sh
Na tela "Select Configuration Option", selecione: configure Oracle Grid Infrastructure for a Standalone Server (Oracle Restart).
Criar o ASM Disk Group. Na tela "Create ASM Disk Group", configure exatamente:
- Disk group name: DATA
- Redundancy: External
- Allocation Unit Size: 4 MB
- Select Disks: marque ORCL:DGDATA001
- Disk Discovery Path: ORCL:*
Definir senha do ASM (SYS e ASMSNMP). Na tela "Specify ASM Password", selecione "Use same passwords for these accounts". Informe e confirme a senha.
Management Options. Na tela "Specify Management Options", mantenha "None" (não registrar com Enterprise Manager / Cloud Control).
Grupos privilegiados do ASM. Na tela "Privileged Operating System Groups!, selecione:
- OSASM: asmadmin
- OSDBA for ASM: asmdba
- OSOPER for ASM: asmoper
Localização de instalação (Oracle Base e Grid Home). Na tela "Specify Installation Location":
- Oracle base: /u01/app/grid
- Software location (Grid Home): /u01/app/23.26/grid
Inventário central (oraInventory). Na tela "Create Inventory":
- Inventory Directory: /u01/app/oraInventory
- Group: oinstall
Executar scripts como root (finalização).
Objetivo: registrar inventário e configurar o Oracle Restart (roothas.pl), finalizando a instalação.
Quando o instalador solicitar “Run Root Scripts”, execute como root:
/u01/app/oraInventory/orainstRoot.sh /u01/app/23.26/grid/root.sh [root@oracle26ai grid]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete. [root@oracle26ai grid]# /u01/app/23.26/grid/root.sh Performing root user operation. The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/23.26/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Executing command '/u01/app/23.26/grid/perl/bin/perl -I/u01/app/23.26/grid/perl/lib -I/u01/app/23.26/grid/crs/install /u01/app/23.26/grid/crs/install/roothas.pl ' Using configuration parameter file: /u01/app/23.26/grid/crs/install/crsconfig_params The log of current session can be found at: /u01/app/grid/crsdata/oracle26ai/crsconfig/roothas_2026-01-31_07-31-17PM.log Redirecting to /bin/systemctl restart rsyslog.service LOCAL ADD MODE Creating OCR keys for user 'grid', privgrp 'oinstall'.. Operation successful. 2026/01/31 19:32:01 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service' oracle26ai 2026/01/31 19:33:14 /u01/app/grid/crsdata/oracle26ai/olr/backup_20260131_193314.olr 2107015493 2026/01/31 19:33:16 CLSRSC-327: Successfully configured Oracle Restart for a standalone server [root@oracle26ai grid]#
Postado por:
Jhonata Lamim.
Fonte:
https://docs.oracle.com/en/database/oracle/oracle-database/26/cwlin/installing-oracle-grid-infrastru

.png)
