Como consumir un Servicio WEB HTTPS con certificado SSL desde una Base de Datos Oracle.

#OracleACE

#OracleTIPSsv

#Raul Antonio Molina Alvarenga, 22/02/2024

La integración de sistemas es una parte crucial para el correcto funcionamiento de los mismos, los sistemas no son islas que no tienen comunicación con otros sistemas internos y/o externos en nuestras empresas.

Esta integracion puede hacerse con capas de software sofisticadas como un BUS de Servicios etc, pero tambien puede hacerse desde dentro de la poderosisima Oracle Database.

Cuando el consumo esta en HTTP no es problema alguno, pero pongamosle una variable HTTPS, la cosa cambio.

Para solventar dicho impase, necesitamos 3 cosas

1)Un WALLET

2)El certificado de sitio del webservice.

3)Un Procedimiento de prueba para validar el funcionamiento.

Anotados los pasos

Definir el sitio o servicio web a consumir, para el caso usaremos https://www.oracle.com

0) Descarga del certificado para el laboratorio

Dirigirse al sitio, usar chrome de preferencia

Validar la información del sitio seguro

Validar la información del certificado

Cambiarse a la pestaña detalles, seleccionar ROOT arriba y abajo

Click en exportar y guardar con este nombre sitecertify.crt

Trasladar al servidor de base de datos donde se usara.

1) Creacion de un folder que contendra el wallet

El wallet no es nada más que eso , una cartera para guardar identidades.

[oracle@~]$ mkdir -p /U01/app/oracle/admin/DB11G/wallet

2)Creacion del wallet con el tool orapki, existen mas tools para crear wallets, este está incluio varios productos Oracle.

[oracle@~]$ orapki wallet create -wallet /U01/app/oracle/admin/DB11G/wallet -pwd WalletPasswd123 -auto_login
Oracle PKI Tool : Version 11.2.0.3.0 - Production
Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.

3) Importacion del certificado en base 64 (x509 ) del sitio web o del sitio que contiene el servicio en SSL
usualmente se puede obtener del navegador cargando el sitio web, o con wget o CURL en un unix/linux

[oracle@~]$ orapki wallet add -wallet /U01/app/oracle/admin/DB11G/wallet -trusted_cert -cert "/home/oracle/sitecertify.crt" -pwd WalletPasswd123
Oracle PKI Tool : Version 11.2.0.3.0 - Production
Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.

los datos que se usaran dentro del plsql o bloque anonimo, ruta del wallet y password.

WALLET: /U01/app/oracle/admin/DB11G/wallet
PASS: WalletPasswd123

4)para validar su contenido:

orapki wallet display -wallet /U01/app/oracle/admin/DB11G/wallet
Requested Certificates:
User Certificates:
Trusted Certificates:
Subject: CN=DigiCert Global Root CA,OU=www.digicert.com,O=DigiCert Inc,C=US

5)y así la forma de invocarlo con un select sin bloque anonimo ni plsql.

SIN USAR EL WALLET:
SQL> select utl_http.request('https://www.oracle.com', null,NULL,NULL) from dual;
select utl_http.request('https://www.oracle.com', null,NULL,NULL) from dual
*
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1530
ORA-29024: Certificate validation failure
ORA-06512: at "SYS.UTL_HTTP", line 380
ORA-06512: at "SYS.UTL_HTTP", line 1470
ORA-06512: at line 1

usando el wallet

SQL> SET SERVEROUTPUT ON
select utl_http.request('https://www.oracle.com', null,'file:/U01/app/oracle/admin/DB11G/wallet','WalletPasswd123') from dual;
SQL>

UTL_HTTP.REQUEST(‘HTTPS://WWW.ORACLE.COM’,NULL,’FILE:/U01/APP/ORACLE/ADMIN/DB11G

<meta name="page_type" content="Home"/>Oracle | Cloud Applications and Cloud Platform< /title><link rel="preconnect" href="https://tms.oracle.com/" crossorigin="anonym ous"/><link rel="preconnect" href="https://tags.tiqcdn.com/" crossorigin="anonym ous"/><link rel="preconnect" href="https://consent.trustarc.com" crossorigin="an onymous"/><link rel="preconnect" href="https://d.oracleinfinity.io" crossorigin= "anonymous"/><link rel="dns-prefetch" href="https://dc.oracleinfinity.io" crosso rigin="anonymous"/><link rel="dns-prefetch" href="https://oracle.112.2o7.net" cr ossorigin="anonymous"/><link rel="dns-prefetch" href="https://s.go-mpulse.net" c rossorigin="anonymous"/><link rel="dns-prefetch" href="https://c.go-mpulse.net" crossorigin="anonymous"/><link rel="preload" href="https://www.oracle.com/asset/<br /> web/fonts/oraclesansvf.woff2" as="font" crossorigin="anonymous" type="font/woff2</p> <h2>UTL_HTTP.REQUEST('HTTPS://WWW.ORACLE.COM',NULL,'FILE:/U01/APP/ORACLE/ADMIN/DB11G</h2> <p>"/><link rel="preload" href="https://www.oracle.com/asset/web/fonts/redwoodicons .woff2" as="font" crossorigin="anonymous" type="font/woff2"/><meta name="major_v ersion" content="3"/><meta name="minor_version" content="13"/><meta name="bug_ve</p>

Espero les sea de Utilidad

Saludos.

Oracle Restart 19c Silent

Raul Antonio Molina Alvarenga

#29/01/2024

#OracleACE

#OracleTIPSsv

Instalación de Grid Infraestructure Oracle Restart en modo Silent 19c.

Esta guia complementa la serie de guias en modo no interactivo o silencioso como el caso del Clusterware 19c (https://www.linkedin.com/posts/ra%C3%BAl-antonio-molina-alvarenga-ocm-107b70b5_instalaci%C3%B3n-de-oracle-clusterware-y-oracle-activity-7096850034285006848-DsBD?utm_source=share&utm_medium=member_desktop).

Descargar el instalador que termina en grid_home.zip No usar el RPM

Para mi caso como estoy en una VM en la Nube de OCI , decsargue el ZIP usando wget, puede leerse de este otro articulo (https://www.linkedin.com/pulse/como-facilitar-la-descarga-de-instaladores-producto-ra%2525C3%2525BAl-antonio%3FtrackingId=gI%252BPQmIimPv0CIqefu0odA%253D%253D/?trackingId=gI%2BPQmIimPv0CIqefu0odA%3D%3D).

Podemos realizar la preparación con el modo automatico usando el rpm de pre rdbms o todos los pasos a mano, para el caso haremos todos los pasos a mano.

curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

yum -y localinstall oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm

O

Modo manual

Configurar parámetros de kernel

Add the following lines to the “/etc/sysctl.conf”

fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500

Este ultimo parametro (net.ipv4.ip_local_port_range = 9000 65500 ), puede o debe ser ajustado cuando hay instalaciones de Netbackup para respaldos de la vm o de la bd.

Guardar , salir y aplicarlos de forma online

sysctl -p

Agregar limites /etc/security/limits.d/limits.conf

oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728

grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 16384
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
grid hard memlock 134217728
grid soft memlock 134217728

Instalar paquetes de YUM local o de internet

yum install -y bc
yum install -y binutils
yum install -y compat-libcap1
yum install -y compat-libstdc++-33

yum install -y dtrace-modules

yum install -y dtrace-modules-headers

yum install -y dtrace-modules-provider-headers

yum install -y dtrace-utils
yum install -y elfutils-libelf
yum install -y elfutils-libelf-devel
yum install -y fontconfig-devel
yum install -y glibc
yum install -y glibc-devel
yum install -y ksh
yum install -y libaio
yum install -y libaio-devel
yum install -y libdtrace-ctf-devel
yum install -y libXrender
yum install -y libXrender-devel
yum install -y libX11
yum install -y libXau
yum install -y libXi
yum install -y libXtst
yum install -y libgcc
yum install -y librdmacm-devel
yum install -y libstdc++
yum install -y libstdc++-devel
yum install -y libxcb
yum install -y make
yum install -y net-tools # Clusterware
yum install -y nfs-utils # ACFS
yum install -y python # ACFS
yum install -y python-configshell # ACFS
yum install -y python-rtslib # ACFS
yum install -y python-six # ACFS
yum install -y targetcli # ACFS
yum install -y smartmontools
yum install -y sysstat

dnf install -y gcc
yum install -y unixODBCC

Crear grupos de oracle y grid y asignarlos a usuarios oracle y grid

useradd -u 54321 -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba,asmoper,asmadmin,racdba oracle
useradd -g oinstall -G oinstall,dba,asmdba,asmadmin,asmoper,oper grid
[root@instance-20231030-1410 ~]# passwd grid
passwd oracle

Configurar al selinux a un nivel inferior, permissive o disabled

En el fichero /etc/selinux/config el parámetro «SELINUX» debe estar a disabled
SELINUX=disabled

Para deshabilitar el firewall, ejecutamos estos dos comandos:
systemctl stop firewalld
systemctl disable firewalld

Crear directorios necesarios, los directorios deben crearse con grid, o si se hace con root darle los permisos necesarios al dueño del Software.

mkdir -p /u01/app/19.0.0/grid
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01 /u02

Moverse al directorio
Desempacar software, yo puse el zip en /bkp, No olvidar cambiarse de usuario (su – grid) para las tareas del dueño del software , en mi caso es NUBE y no tengo forma de conectarme directamente, logeo con OPC con la PPK y luego salto a root y salto a grid.

cd /u01/app/19.0.0/grid/
unzip /bkp/gi19.zip

Guardar como grid.rsp en /home/grid

usaremos la forma silent con modo de solo instalación, configuraremos a manual el software para los componenes del oracle restart

oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v19.0.0
INVENTORY_LOCATION=/u01/app/oraInventory
oracle.install.option=HA_SWONLY
ORACLE_BASE=/u01/app/grid
oracle.install.asm.OSDBA=oinstall
oracle.install.asm.OSOPER=
oracle.install.asm.OSASM=asmadmin

Invocar el instalador de esta forma

/u01/app/19.0.0/grid/gridSetup.sh -silent -responseFile /home/grid/grid.rsp

Mostro un warning porque tengo poco espacio

[WARNING] [INS-32020] Installer has detected that the available disk space on the volume for the specified Oracle base location (/u01/app/grid) is less than the recommended value.
ACTION: It is recommended that the volume for the Oracle base have at least 10 GB of available disk space. Choose a location that has sufficient available disk space or free up space on the existing volume.
[WARNING] [INS-30100] Insufficient disk space on the selected location (/u01/app/19.0.0/grid).
CAUSE: Specified location is on a volume without enough disk space on nodes: [instance-20231030-1410].
ACTION: Choose a location that has enough space (minimum of 6.9 GB) or free up space on the existing volume.

The response file for this session can be found at:
/u01/app/19.0.0/grid/install/response/grid_2024-01-29_10-45-29PM.rsp

You can find the log of this install session at:
/opt/oracle/oraInventory/logs/GridSetupActions2024-01-29_10-45-29PM/gridSetupActions2024-01-29_10-45-29PM.log

As a root user, execute the following script(s):
1. /u01/app/19.0.0/grid/root.sh

Execute /u01/app/19.0.0/grid/root.sh on the following nodes:

Successfully Setup Software with warning(s).

Ejecutar los scripts de root que indique el aviso.

[root@instance-20231030-1410 ~]# /u01/app/19.0.0/grid/root.sh
Check /u01/app/19.0.0/grid/install/root_instance-20231030-1410_2024-01-29_22-49-03-943784137.log for the output of root script

Vamos a configurar los demonios del oracle restart con este script:

/u01/app/19.0.0/grid/crs/install/roothas.sh
Using configuration parameter file: /u01/app/19.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/instance-20231030-1410/crsconfig/roothas_2024-01-29_10-50-34PM.log

instance-20231030-1410 2024/01/29 22:51:16 /u01/app/grid/crsdata/instance-20231030-1410/olr/backup_20240129_225116.olr 724960844
2024/01/29 22:51:17 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

Vamos a configurar las variables de ambiente para el Usuario dueño de la capa de software de GI.

vi .bash_profile
export ORACLE_HOME=/u01/app/19.0.0/grid
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID=+ASM

Cargar variables con . .bash_profile o iniciando sesion de nuevo

Se debe crear un listener y la instancia de asm

Se inician despues

[grid@instance-20231030-1410 ~]$ srvctl add listener
[grid@instance-20231030-1410 ~]$
[grid@instance-20231030-1410 ~]$ srvctl add asm
s[grid@instance-20231030-1410 ~]$ srvctl start listener

[grid@instance-20231030-1410 ~]$
[grid@instance-20231030-1410 ~]$ srvctl start asm
grid@instance-20231030-1410 ~]$

Consultar el estado de los componentes del oracle restart.

Nomenclatura permanente de los discos.

Se puede usar la guia para configuración de dispositivos con reglas permanentes (https://www.linkedin.com/pulse/reglas-de-udev-para-discos-asm-en-linux-aplica-rhel-y-ra%2525C3%2525BAl-antonio-%3FtrackingId=93UVkvP7bCQic0Q3efn4hA%253D%253D/?trackingId=93UVkvP7bCQic0Q3efn4hA%3D%3D)

Antes en versiones anteriores de RHEL o OEL, preferia usar el driver ASMLIB para el nombrado y permanencia de los dispositivos de Disco, pero en RHEL8.x ya no funciona y me quede esperando la version 3.x del driver, aun no me gusta usar AFD asi, que , prefiero usar Reglas de UDEV.

Consultar discos

fdisk -l | grep Disk | grep bytes

Disk /dev/sda: 50.0 GB, 50010783744 bytes, 97677312 sectors
Disk /dev/sdb: 53.7 GB, 53687091200 bytes, 104857600 sectors
Disk /dev/sdc: 53.7 GB, 53687091200 bytes, 104857600 sectors –> nuestro disco

Discriminar los devices que son FS (sda y sdb)

[root@instance-20231030-1410 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs 7.7G 637M 7.1G 9% /dev/shm
tmpfs 7.7G 777M 7.0G 10% /run
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/sda3 39G 33G 5.9G 85% /
/dev/sda1 200M 7.4M 193M 4% /boot/efi
tmpfs 1.6G 0 1.6G 0% /run/user/0
tmpfs 1.6G 0 1.6G 0% /run/user/993
tmpfs 1.6G 0 1.6G 0% /run/user/1000
/dev/sdb 49G 12G 35G 26% /bkp

Debe encontrarse el identificador unico del dispositivo, en este caso el ID_SERIAL

udevadm info –query=all –name=/dev/sdc | egrep “WWN|SERIAL”

/dev/sdb 49G 12G 35G 26% /bkp
[root@instance-20231030-1410 ~]# udevadm info –query=all –name=/dev/sdc | egrep “WWN|SERIAL”
E: ID_SERIAL=360f033ce85784a5588a3c92d22b0dc02
E: ID_SERIAL_SHORT=60f033ce85784a5588a3c92d22b0dc02
E: ID_WWN=0x60f033ce85784a55
E: ID_WWN_VENDOR_EXTENSION=0x88a3c92d22b0dc02
E: ID_WWN_WITH_EXTENSION=0x60f033ce85784a5588a3c92d22b0dc02
[root@instance-20231030-1410 ~]#

Si es vmware y no se ve el serial, debe activarse la propiedad por el sysadmin y con la maquina apagada.

Enabling SCSI_ID on VMware
https://communities.vmware.com/t5/ESXi-Discussions/udev-scsi-id-with-rhel-guests/td-p/345366

Preparamos el texto de la regla de udev, para cada dispositivo, cambiamos el nombre del device ASM1 para el caso y su ID.

KERNEL==”sd*”, SUBSYSTEM==”block”, ENV{ID_SERIAL}==”360f033ce85784a5588a3c92d22b0dc02“, SYMLINK+=”oracleasm/ASM1“, OWNER=”grid”, GROUP=”asmadmin”, MODE=”0660″ ,OPTIONS:=”nowatch”

vi /etc/udev/rules.d/96-asm.rules
Grabamos y salimos

Recargamos la regla de udev para control de dispositivos de disco:

udevadm control –reload-rules
udevadm trigger –type=devices –action=change

Encontramos el disco ya
[root@instance-20231030-1410 ~]# ls -lL /dev/oracleasm/
total 0
brw-rw—-. 1 grid asmadmin 8, 32 Jan 30 01:21 ASM1
[root@instance-20231030-1410 ~]#

Como vimos ya tiene los permisos que todo device de asm debe tener desde 11.2, 660 y grid:asmadmin

Lo usamos:

establecemos la propiedad de discos para su descubrimiento en la ruta que la regla de udev lo dejo

Last login: Mon Jan 29 22:54:44 GMT 2024 on pts/0
[grid@instance-20231030-1410 ~]$ sqlplus / as sysasm

SQL*Plus: Release 19.0.0.0.0 – Production on Tue Jan 30 01:22:35 2024
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle. All rights reserved.

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 – Production
Version 19.3.0.0.0

SQL> show parameter string

NAME TYPE VALUE


asm_diskstring string
SQL> alter system set asm_diskstring=’/dev/oracleasm/*’;

System altered.

SQL> select path from v$asm_Disk;

PATH

/dev/oracleasm/ASM1

SQL>

Crear diskgroup

SQL> create diskgroup data external redundancy disk ‘/dev/oracleasm/ASM1’;

Diskgroup Creado

Espero les sea de utilidad.

Saludos

Como solventar corrupción de bloques en datafiles

#OracleACE

#OracleTipsSV

#Raul Antonio Molina Alvarenga

Un día de estos me cruce con una situación en la que obtuve corrupción de bloques en una BD productiva muy grande e importante, bastante preocupante la situación, no daré detalles, pero se estuvo bajo mucha presión (LOL).

Porque es importante tener todos los bloques de datos marcados como limpios y no como corruptos?, obvio el acceso a los datos y el uso de indices.

Pero porque es importante limpiar bloques vacios?, porque a pesar de ser bloques vacios, el diccionario los conoce como corruptos y no se puede tener un backup rman 100% fiable.

Dicho esto, Lo importante en la definición de la solución fue lo siguiente para solventar corrupción en:

Bloques de datos en tablas , poder prescindir de ellos, o restaurar de un backup la tabla

Bloques de datos en indices, reconstruir el indice

Bloques Vacíos, yo pensaba que era solo ignorarlos, pero no.

En este ultimo aspecto, necesitaba se limpiaran, para poder dar el OK del datafile o de los datafiles afectados.

Encontré una nota de MOS:

Use RMAN to format corrupt data block which is not part of any object (Doc ID 1459778.1)

Haciendo la revision se encontro que los bloques que aparecen marcados como corruptos, son bloques vacios.

List of Datafiles

=================

File Status Marked Corrupt Empty Blocks Blocks Examined High SCN

—- —— ————– ———— ————— ———-

68   FAILED 0              129          4194293         10192968188924

  File Name: /archives/datafile_archivo_datats_12

  Block Type Blocks Failing Blocks Processed

  ———- ————– —————-

  Data       1              3443658

  Index      0              461648

  Other      29             288837

validate found one or more corrupt blocks

See trace file /u01/app/oracle/diag/rdbms/bd/BD/trace/BD_ora_21367.trc for details

channel ORA_DISK_8: validation complete, elapsed time: 00:32:45

List of Datafiles

=================

File Status Marked Corrupt Empty Blocks Blocks Examined High SCN

—- —— ————– ———— ————— ———-

160  FAILED 0              317          4194272         10192967869622

  File Name: /archivesdatafile_archivo_datats_18

  Block Type Blocks Failing Blocks Processed

  ———- ————– —————-

  Data       2              3353890

  Index      0              501888

  Other      26             338177

validate found one or more corrupt blocks

See trace file /u01/app/oracle/diag/rdbms/bd/BD/trace/BD_ora_21367.trc for details

channel ORA_DISK_4: validation complete, elapsed time: 00:31:35

List of Datafiles

=================

File Status Marked Corrupt Empty Blocks Blocks Examined High SCN

—- —— ————– ———— ————— ———-

181  FAILED 0              890          2992000         10192962696244

  File Name: /archives/bd_datafile_datats_01

  Block Type Blocks Failing Blocks Processed

  ———- ————– —————-

  Data       2              2947506

  Index      0              38605

  Other      31             4999

validate found one or more corrupt blocks

See trace file /u01/app/oracle/diag/rdbms/bd/BD/trace/BD_ora_21367.trc for details

channel ORA_DISK_5: validation complete, elapsed time: 00:23:15

Formas de resolver la corrupcion en terminos del contenido:

Segmentos de datos de tablas: se debe resolver restaurando de backup o estableciendo si es un dato prescindible o no.

Segmentos de datos de indices: puede reconstruirse el indice y el bloque se formateara como nuevo.

Segmentos vacios: deben ser formateados , pero a no tener bloques con datos no es tan sencillo.

Debemos conocer los datafiles con segmentos de espacio libre que estan marcados como corruptos.

El procedimiento para resolver es el siguiente:

Procedimiento  para reparar bloques corruptos cuando es espacio libre

Identificamos los datafiles que tienen bloques corruptos en espacio libre, y se chequean

 VALIDATE CHECK LOGICAL DATAFILE   68,79,85,141,160,181,331,406;

 160,181,68 

Puede corroborarse su contenido desde varias perspectivas:

SELECT tablespace_name, segment_type, owner, segment_name FROM dba_extents WHERE file_id = 160 and 521184 between block_id AND block_id + blocks – 1;

select TABLESPACE_NAME,RELATIVE_FNO,BYTES from DBA_FREE_SPACE where FILE_ID=160 and 521184 between BLOCK_ID AND BLOCK_ID + BLOCKS -1;

 backup check logical datafile  160 format ‘/backup/rman/%U’ tag ‘CORRUPT_BLK_FILE_BKP’;

Se realiza un backup del datafile, hay que tomar en cuenta el numero de saltos que se pueden permitir para que el backup no muestre error:

 run

 {

  set maxcorrupt for datafile 181 to 150;

  backup as copy  datafile 68,160 format ‘+dgarea’;

 }

Luego restauramos el datafile del backup.

 run {

 set newname for datafile 160 to ‘+dgdatos’;

 restore datafile 160 from tag ‘CORRUPT_BLK_FILE_BKP’;

 }

Al consultar, deberia desaparecer las filas para dicho datafile:

select block#||’,’ from v$database_block_corruption   where file#= 160;

select block#||’,’ from v$database_block_corruption   where file#= 68;

Por ultimo, realizamos la recuperacion de los bloques corruptos de la copia que se realizo previamente:

 blockrecover datafile 68 block 846959 FROM DATAFILECOPY;

  RECOVER CORRUPTION LIST;

Y debería desaparecer completamente y tener un datafile totalmente sano en terminos de corrupción de bloques.

  VALIDATE CHECK LOGICAL DATAFILE 68,160;

  select block#||’,’ from v$database_block_corruption   where file#=160;

Espero les sea de utilidad.

Saludos.

Instalación de Oracle Clusterware y Oracle RDBMS 19c en modo Silent

#OracleACEAssociate

#OracleTIPSSV

10 de Agosto de 2023

Raúl Antonio Molina Alvarenga

El objetivo de este articulo no es preparar todos los pasos previos para instalar un cluster, en realidad lo enfoque solo los comandos importantes en la instalación siguiendo el modo que mas me provoca al momento de instalar: MODO NO INTERACTIVO o MODO SILENT.

Procedamos con una hojeada al concepto de Modo Silencioso.

Todos conocemos el famoso instalador de los productos Oracle, el OUI u Oracle Universal Installer, un Software integrado construido en JAVA y con un complemento de scripts en otras lenguajes de programación que Oracle ocupa que permite instalar los productos Oracle en cualquier plataforma; este software permite realizar dicha tarea en forma interactiva.

Ese Instalador puede considerarse pesado o lento en algunas circunstancias, como por ejemplo usarlo via VPN , desde sitios remotos.

La alternativa a dichas situaciones o escenarios, el modo No Interactivo o Silencioso, este modo utiliza el mismo Instalador, solo que no de forma interactivo si no que requiere que se provean todas las respuestas que el programa requiere.

Las respuestas pueden ser puestas en lote en la linea de comandos (lo cual no recomiendo), o usando un archivo de respuesta, o responseFile ( recomendado).

El archivo de respuesta puede obtenerse de 2 formas, el propio instalador tiene algunas plantillas ya incluidas, por ejemplo propio OUI, DBCA, NETCA.

Otra forma es generarlo ejecutando el propio instalador y guardarlo como se muestra en la imagen:

Nuestro archivo de respuesta quedaría de la siguiente forma:

oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v19.0.0

INVENTORY_LOCATION=/u01/app/oraInventory

oracle.install.option=CRS_CONFIG

ORACLE_BASE=/u01/app/grid

oracle.install.asm.OSDBA=oinstall

oracle.install.asm.OSOPER=

oracle.install.asm.OSASM=asmadmin

oracle.install.crs.config.scanType=LOCAL_SCAN

oracle.install.crs.config.gpnp.scanName=rac-scan

oracle.install.crs.config.gpnp.scanPort=1521

oracle.install.crs.config.ClusterConfiguration=STANDALONE

oracle.install.crs.config.configureAsExtendedCluster=false

oracle.install.crs.config.clusterName=rac-cluster

oracle.install.crs.config.gpnp.configureGNS=false

oracle.install.crs.config.autoConfigureClusterNodeVIP=false

oracle.install.crs.config.clusterNodes=nodo1:nodo1-vip,nodo2:nodo2-vip

oracle.install.crs.config.networkInterfaceList=eno16780032:192.168.51.0:1,eno33559296:10.20.0.0:5

oracle.install.crs.configureGIMR=false

oracle.install.asm.configureGIMRDataDG=false

oracle.install.crs.config.storageOption=FLEX_ASM_STORAGE

oracle.install.asm.SYSASMPassword=Oracle123

oracle.install.asm.diskGroup.name=OCR

oracle.install.asm.diskGroup.redundancy=NORMAL

oracle.install.asm.diskGroup.AUSize=4

oracle.install.asm.diskGroup.disksWithFailureGroupNames=ORCL:ASM1,,ORCL:ASM2,,ORCL:ASM3,

oracle.install.asm.diskGroup.disks=ORCL:ASM1,ORCL:ASM2,ORCL:ASM3

oracle.install.asm.diskGroup.diskDiscoveryString=ORCL:*

oracle.install.asm.monitorPassword=Oracle123

oracle.install.asm.gimrDG.AUSize=1

oracle.install.asm.configureAFD=false

oracle.install.crs.configureRHPS=false

oracle.install.crs.config.ignoreDownNodes=false

oracle.install.config.managementOption=NONE

oracle.install.crs.rootconfig.executeRootScript=false

Una vez tenemos definido su contenido, podemos preparar la equivalencia de usuarios en una capa o dos , si vamos a tener Separación de usuarios ( Role Separation Duties).

./sshUserSetup.sh -user grid -hosts “nodo1 nodo2” -noPromptPassphrase

./sshUserSetup.sh -user oracle -hosts “nodo1 nodo2” -noPromptPassphrase

Para ejecutar el instalador:

./gridSetup.sh -silent -waitForCompletion -ignorePrereqFailure -ignoreInternalDriverError -responseFile /home/grid/gi.rsp

Luego hay que estar atentos a las salidas, archivos de logs, salida en pantalla , etc etc.

Después prosigue instalar la capa de rdbms ( Proceder solo si la capa de GI fue satisfactoria).

La muestra de nuestro archivo de respuesta:

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0

oracle.install.option=INSTALL_DB_SWONLY

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/oraInventory

ORACLE_HOME=/u01/app/oracle/product/19.0.0/db_1

ORACLE_BASE=/u01/app/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.OSDBA_GROUP=oinstall

oracle.install.db.OSOPER_GROUP=oinstall

oracle.install.db.OSBACKUPDBA_GROUP=oinstall

oracle.install.db.OSDGDBA_GROUP=oinstall

oracle.install.db.OSKMDBA_GROUP=oinstall

oracle.install.db.OSRACDBA_GROUP=oinstall

oracle.install.db.rootconfig.executeRootScript=false

oracle.install.db.CLUSTER_NODES=nodo1,nodo2

Y como ultimo paso el lanzamiento del instalador:

./runInstaller  -silent -ignoreInternalDriverError -ignorePrereqFailure -responseFile /home/oracle/db_install.rsp 

Espero les sea de Utilidad.

Saludos!!

Mover Agente de Cloud (OH) de un folder a otro ( o Filesystem).

Raúl Antonio Molina Alvarenga

07 de Agosto de 2023

#OracleACEAssociate

Hola, un día me enfrente a la siguiente situación: Instale un agente de Cloud Control en la ruta equivocada.

Y se nos viene la idea, fácil, lo remueve y lo reinstalo.

Esto podrá ser fácil, pero si puede complicarse si la red es lenta, es un sitio remoto, etc etc.

Y si existe una forma mas fácil, porque no la ejecutamos?, bueno aquí veremos algo que para mi criterio resulta, más fácil.

Usaremos el DOCID:

Que nos provee el script:

ConvertToStandalone.pl

Hay que tener algunas consideraciones con la nota, hay que definir estas 2 variables de SO:

El Home no es el agent_inst es el $OH/core/Version12c
export OLD_AGENT_HOME=/oracle/agent12c/core/12.1.0.5.0
export ORACLE_HOME=/oracle/agent12c/core/12.1.0.5.0

Generamos el plugin list

$OLD_AGENT_HOME/perl/bin/perl /tfs/oracle/agent12c/core/12.1.0.5.0/sysman/install/create_plugin_list.pl -instancehome /tfs/oracle/agent12c/core/12.1.0.5.0

The agent Base Dir is /oracle/agent12c

 Creating file : /oracle/agent12c/rwFile

Removed the /oracle/agent12c/rwFile file.

oracle.sysman.xa|12.1.0.6.0||discoveryPlugin

oracle.sysman.db|12.1.0.8.0||discoveryPlugin

oracle.sysman.emas|12.1.0.8.0||discoveryPlugin

oracle.sysman.oh|12.1.0.5.0||discoveryPlugin

oracle.sysman.oh|12.1.0.5.0||agentPlugin
oracle.sysman.db|12.1.0.8.0||agentPlugin
/oracle/agent12c/plugins.txt
[oracle@nodo ~]$ 

Cambiar archivo agent12c/agentimage.properties  la ultima  linea

SBIN_MODIFIED_VERSION=12.1.0.5.0

$OLD_AGENT_HOME/perl/bin/perl  ConvertToStandalone.pl -instanceHome /oracle/agent12c/agent_inst -newAgentBaseDir /export/home/oracle/agent12c

OUTPUT

Migrating the agent home to different home

Validating the arguments

The log file is /oracle/agent12c/agent_inst/install/logs/convert/convertingtostandalone_2023-07-05_16-29-55.log

The agent image file Exists : /oracle/agent12c/agentimage.properties. Check for value of : VERSION

The current home is /oracle/agent12c/core/12.1.0.5.0Software only install of the agent bits

Home : /home/oracle/agent12c/core/12.1.0.5.0 already exist. Do you want to overwrite the home? Confirm (y/n)y

User confirmed for overwrite.

 The command is cp -r /oracle/agent12c/core /oracle/agent12c/plugins /oracle/agent12c/agentimage.properties /oracle/agent12c/plugins.txt /home/oracle/agent12c 

The command exitcode 0

The command is cp -r /oracle/agent12c/sbin /home/oracle/agent12c 

cp: cannot open ‘/oracle/agent12c/sbin/nmo’ for reading: Permission denied

cp: cannot open ‘/oracle/agent12c/sbin/nmhs’ for reading: Permission denied

cp: cannot open ‘/oracle/agent12c/sbin/nmb’ for reading: Permission denied

The command exitcode 256

Copying of /oracle/agent12c/sbinto /home/oracle/agent12c Failed

The command is /home/oracle/agent12c/core/12.1.0.5.0/oui/bin/runInstaller -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/home/oracle/agent12c/core/12.1.0.5.0 -noconfig -force EM_PROTOCOL=https ORACLE_HOME_NAME=agent12c -invPtrLoc /oracle/agent12c/core/12.1.0.5.0/oraInst.loc AGENT_BASE_DIR=/home/oracle/agent12c 

The command exitcode 0

The command is /home/oracle/agent12c/core/12.1.0.5.0/oui/bin/runInstaller -attachHome -force -silent ORACLE_HOME=/home/oracle/agent12c/sbin ORACLE_HOME_NAME=sbin12c -waitForCompletion -invPtrLoc /oracle/agent12c/core/12.1.0.5.0/oraInst.loc 

The command exitcode 0

The command is /home/oracle/agent12c/core/12.1.0.5.0/oui/bin/runInstaller -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/home/oracle/agent12c/sbin:/home/oracle/agent12c/core/12.1.0.5.0} -invPtrLoc /oracle/agent12c/core/12.1.0.5.0/oraInst.loc  

The command exitcode 0

Converting the agent to standalone

The command is /oracle/agent12c/agent_inst/bin/emctl start blackout AGT_CNT_BLK_OUT -nodeLevel 

The command exitcode 0

The command is /oracle/agent12c/agent_inst/bin/emctl stop agent 

The command exitcode 0

The command is cp -r /oracle/agent12c/agent_inst/* /home/oracle/agent12c/agent_inst 

The command exitcode 0

The command is /home/oracle/agent12c/core/12.1.0.5.0/jdk/bin/java -jar /home/oracle/agent12c/core/12.1.0.5.0/jlib/updateStateDirectory.jar -migrateBase -emStateDir /home/oracle/agent12c/agent_inst -oldAgentHome /oracle/agent12c/core/12.1.0.5.0 -newAgentHome /home/oracle/agent12c/core/12.1.0.5.0 -oldAgentBase /oracle/agent12c -newAgentBase /home/oracle/agent12c 

The command exitcode 0

The command is /home/oracle/agent12c/agent_inst/bin/emctl setproperty agent -name agentStateDir -value /home/oracle/agent12c/agent_inst 

The command exitcode 0

The command is /home/oracle/agent12c/core/12.1.0.5.0/perl/bin/perl /home/oracle/agent12c/core/12.1.0.5.0/bin/AgentPluginDeploy.pl -oracleHome /home/oracle/agent12c/core/12.1.0.5.0 -agentDir /home/oracle/agent12c -pluginIdsInfoFile /home/oracle/agent12c/plugins.txt -action upgrade -emStateDir /home/oracle/agent12c/agent_inst -ignoreUnzip -dont_restart   

The command exitcode 0

The command is /home/oracle/agent12c/agent_inst/bin/emctl update_inventory plugin 

The command exitcode 0

The command is /home/oracle/agent12c/core/12.1.0.5.0/jdk/bin/java -jar /home/oracle/agent12c/core/12.1.0.5.0/jlib/upgradeCollections.jar -emStateDir /home/oracle/agent12c/agent_inst -newPluginXml /home/oracle/agent12c/core/12.1.0.5.0/sysman/admin/agentLib.xml -oldPluginXml /oracle/agent12c/core/12.1.0.5.0/sysman/admin/agentLib.xml 

log4j:ERROR No appenders could be found for category (oracle.sysman.gcagent.util.logging.ODLLogging).

log4j:ERROR Please initialize the log4j system properly.

The command exitcode 0

The command is /home/oracle/agent12c/agent_inst/bin/emctl start agent 

The command exitcode 0

The command is /home/oracle/agent12c/agent_inst/bin/emctl stop blackout AGT_CNT_BLK_OUT  

The command exitcode 0

The command is mv /oracle/agent12c/agent_inst/bin/emctl /oracle/agent12c/agent_inst/bin/emctl_converted 

The command exitcode 0

Move of File :  /oracle/agent12c/agent_inst/bin/emctl to File : /oracle/agent12c/agent_inst/bin/emctl_converted is successfully done

Modifying the oragchomelist to include the current agent home with the instancehome

The migration is completed Successfully. Run /home/oracle/agent12c/core/12.1.0.5.0/root.sh as root user manually.

Deinstall agent home /oracle/agent12c/core/12.1.0.5.0 manually.

[oracle@nodo ~]$ exit

logout

Ejecutamos el script de root de nuevo:

[root@nodo ~]# /home/oracle/agent12c/core/12.1.0.5.0/root.sh

Con esto el agente de movio de folder a un nuevo directorio.

Espero les sea de Utilidad

Saludos

Adenda de despliegue, cuando se debe forzar el HOSTNAME

EM 12c: Agent installation reports failure for Hostname pre-requisite check – “The host name specified for the installation or retrieved from the system is incorrect” (Doc ID 1488737.1)
/agentDeploy.sh AGENT_BASE_DIR=<Agent Base Directory Path> OMS_HOST=<OMS Host Name> EM_UPLOAD_PORT=<OMS Upload Port> ORACLE_HOSTNAME=mypc.oracle.com

Agregar o desplegar agente de Cloud Control desde el servidor destino.

#OracleACEAssociate

#OracleTipsSV

Raul Antonio Molina Alvarenga

1 de Agosto de 2023.

 

En una situación normal, el despliegue de un agente de Cloud Control 12c o 13c, se realiza desde la propia consola, desde donde comúnmente se realiza dicha tarea , inclusive para despliegues masivos.

Varias situaciones puede complicar dicho proceso,

  • No tener el password del usuario destino dueño del software a monitorear, o dueño del software del agente
  • No tener habilitado la regla de comunicación al puerto ssh del servidor destino
  • y algunas mas que se les ocurra

El procedimiento es como se observa en la figura, y se describe como método PUSH.

Installing Oracle Management Agent - 12c Release 2 (12.1.0.2)

Si esto no es posible, eso existe otra alternativa para desplegar el agente e incorporarlo a la infraestructura de Cloud Control 12c: Generación de Imagen e Instalación desde el destino.

Generación

Como generar la imagen de agente para instalación  en silent mode desde el propio destino.

Conectarse al emcli con credenciales , y sincronizar , hay que proporcionar el password de sysman.

emcli login -username=sysman

emcli sync

Consultar si se cuenta con la imagen de software de la respectiva plataforma cargada a la biblioteca de software del Cloud Control (SWLIB).

emcli get_supported_platforms

Mostrara algo como:

Si la version de imagen no existe, debemos descargarla de MyOracleSupport con el procedimiento estándar para dicha actividad ( Podemos hacer un video para documentar dicho proceso).

Identificando la version de la y la plataforma  procedemos a generar el ZIP de instalación desatendida.

emcli get_agentimage -destination=/tmp/agentinstaller -platform="Linux x86-64" -version="12.1.0.4.0" 

Trasladar la imagen en zip y desempacar en el target

Instalación de agentes usando metodo

En el cloud agregar en el /etc/hosts  el host e ip del target de BD(HOST) ( pude lograrse mediante DNS).

En el target debemos agregar el HOST del cloud nuevo asi:

#Nuevo OEM

OMSIP OEMHOSTNAME

Debemos generar el archivo de respuesta asi:

respuesta.rsp

OMS_HOST=OMSIP

EM_UPLOAD_PORT=4899

AGENT_REGISTRATION_PASSWORD=PASS

AGENT_PORT=3872

Ejecutamos luego el script agentDeploy.sh, así:

/export/home/oracle/agente/agentDeploy.sh AGENT_BASE_DIR=/export/home/oracle/agent12c RESPONSE_FILE=/export/home/oracle/agente/respuesta.rsp PROPERTIES_FILE=/export/home/oracle/agente/agentimage.properties -ignorePrereqs

Update home dependency completed successfully.

Executing command: /oracle/agent12c/core/12.1.0.5.0/oui/bin/runConfig.sh ORACLE_HOME=/oracle/agent12c/core/12.1.0.5.0 RESPONSE_FILE=/oracle/agent12c/core/12.1.0.5.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true

ERROR: Agent Configuration Failed SEVERE:emctl secure agent command has failed with status=1SEVERE:emctl secure agent command has failed with status=1SEVERE:emctl secure agent command has failed with status=1

Agent Deploy Log Location:/oracle/agent12c/core/12.1.0.5.0/cfgtoollogs/agentDeploy/agentDeploy_2023-06-16_16-00-42-PM.log

Si da error el aseguramiento, 

se corrige el error probable el hosts, puede seguirse los pasos sin error y el siguiente apartado no sera necesario:

emctl secure agent

bash-3.2$ /oracle/agent12c/agent_inst/bin/emctl secure agent

Oracle Enterprise Manager Cloud Control 12c Release 5  

Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.

Agent is already stopped...   Done.

Securing agent...   Started.

Enter Agent Registration Password : 

Securing agent...   Successful.

emctl upload 


Ejecutamos el paso de configuracion interna( solo si fallo el aseguramiento en el párrafo anterior)

emctl config  agent addinternaltargets

luego

emctl status agent 

emctl upload agent

bash-3.2$ /oracle/agent12c/agent_inst/bin/emctl status agent

Oracle Enterprise Manager Cloud Control 12c Release 5  

Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.

---------------------------------------------------------------

Agent Version          : 12.1.0.5.0

OMS Version            : 12.1.0.5.0

Protocol Version       : 12.1.0.1.0

Agent Home             : /oracle/agent12c/agent_inst

Agent Log Directory    : /oracle/agent12c/agent_inst/sysman/log

Agent Binaries         : /oracle/agent12c/core/12.1.0.5.0

Agent Process ID       : 13929

Parent Process ID      : 13833

Agent URL              : https://TARGET:3882/emd/main/

Local Agent URL in NAT : https://TARGET:3882/emd/main/

Repository URL         : https://OMSHOSTNAME:4899/empbs/upload

Started at             : 2023-06-16 17:20:48

Started by user        : oracle

Operating System       : SunOS version 5.10 (sparcv9)

Last Reload            : (none)

Last successful upload                       : 2023-06-16 17:22:33

Last attempted upload                        : 2023-06-16 17:22:33

Total Megabytes of XML files uploaded so far : 0.07

Number of XML files pending upload           : 0

Size of XML files pending upload(MB)         : 0

Available disk space on upload filesystem    : 22.42%

Collection Status                            : Collections enabled

Heartbeat Status                             : Ok

Last attempted heartbeat to OMS              : 2023-06-16 17:21:56

Last successful heartbeat to OMS             : 2023-06-16 17:21:56

Next scheduled heartbeat to OMS              : 2023-06-16 17:22:56

---------------------------------------------------------------

Agent is Running and Ready

bash-3.2$ 

Y con eso tendremos un agente instalado de forma correcta, no olvidar ejecutar el script de root.sh dentro del OracleHOME del agente, descubrir los demás componentes en el HOST y a poder usar el agente totalmente funcional

Espero les sea de utilidad

saludos.

Aplicar parche OneOff en Agente de Cloud

27 de Julio de 2023

Raúl Antonio Molina Alvarenga

#OracleACEAssociate

Si alguna vez se ven en la necesidad de aplicar un  Parche para una falla especifica (OneOff), o solventar un tema particular, aqui esta como deben realizarlo.

Parche  de correccion de auto inicio de agenter 12c (12.1.0.5)  en solaris  sparc

p21779343_121050_SOLARIS64.zip

 

Si el agente esta encendido , apagarlo

ORACLE_HOME  agentHOME/core/12.1.0.5.0  o su equivalente

export ORACLE_HOME=/export/home/oracle/agent12c/core/12.1.0.5.0

export PATH=$ORACLE_HOME/OPatch:$PATH

unzip p21779343_121050_SOLARIS64.zip

cd 21779343

opatch apply

luego, encender el agente.

#############

Espero les sea de Utilidad

Saludos

Inicio de la Historia

Noviembre 2020: Bienvenidos a este interesante Mundo de la Tecnología de Oracle Por aquí veremos tips, consejos, soluciones y toda clase de ayuda para ustedes, aceptando sugerencias de cualquier. Update Septimbre 2022:  Ahora soy Oracle ACE Associate Update Julio 2023: Continuo siendo Oracle ACE Associate

Instalación Oracle Cloud Control 13c en Modo Silencioso

24 de Julio de 2023

Raúl Antonio Molina Alvarenga

#OracleACEAssociate

#Oracletipssv

Me pareció interesante publicar una entrada de articulo respecto a la instalación de un Cloud control completamente en modo silencioso o completamente desatendido.

Digo interesante porque, para mi lo es, dado que usualmente estamos acostumbrados a usar pantallas de un asistente que responden a nuestra interacción.

 

El Cloud Control  es una arquitectura de Software Empresaria muy robusta que permite al menos el monitoreo de otros componentes  Oracle, entre base de datos, Servidores de aplicaciones, Servidores físicos, Virtuales, un diagrama que presenta la solución:

Cloud Control Introduction

Usaremos Rutas estándar de producto, como por ejemplo el GI HOME:

/u01/app/19.0.0/grid

Algunas configuraciones no serán tomadas en detalle pues no es el foco del guion.

Configuraciones del Sistema Operativo

Limites

oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 16384
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
grid hard memlock 134217728
grid soft memlock 134217728

Lo escencial es configurar con el RPM de Preinstall RDBMS:

https://yum.oracle.com/repo/OracleLinux/OL8/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
Download el RPM del public :
http://public-yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-1.el8.x86_64.rpm

GI

Y luego instalar el GI

./gridSetup.sh -silent -responseFile /u01/app/19.0.0/grid/install/response/gridsetup.rsp

Si se presenta problema hacer dicho workaround:

Solution

To solve INS-08101 ‘supportedOSCheck’, we trick OUI to think the operating system is release 7.8 by using an environment variable CV_ASSUME_DISTID, either temporarily or permanently.
1. Temporarily

At runtime, we can export the variable.
[oracle@ora19c dbhome_1]$ export CV_ASSUME_DISTID=OEL8.1

RDBMS

Una vez se ha configurado el GI, procedemos con el RDBMS:

./runInstaller -ignorePrereq -waitforcompletion -silent \
-responseFile /u01/app/oracle/product/19.0.0/db_1/install/response/db_install.rsp \
oracle.install.option=INSTALL_DB_SWONLY \
ORACLE_HOSTNAME=PLVORAGRID \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/u01/app/oraInventory \
SELECTED_LANGUAGES=en,en_GB \
ORACLE_HOME=/u01/app/oracle/product/19.0.0/db_1 \
ORACLE_BASE=/u02/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.OSDBA_GROUP=dba \
oracle.install.db.OSBACKUPDBA_GROUP=dba \
oracle.install.db.OSDGDBA_GROUP=dba \
oracle.install.db.OSKMDBA_GROUP=dba \
oracle.install.db.OSRACDBA_GROUP=dba \
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
DECLINE_SECURITY_UPDATES=true

Creamos la BD que albergara el REPO del componente de OMR

dbca -silent -createDatabase \
-templateName General_Purpose.dbc \
-gdbname emcdb -sid emcdb -responseFile NO_VALUE \
-characterSet AL32UTF8 \
-sysPassword SysPassword1 \
-systemPassword SysPassword1 \
-createAsContainerDatabase true \
-numberOfPDBs 1 \
-pdbName emrep \
-pdbAdminPassword SysPassword1 \
-databaseType MULTIPURPOSE \
-memoryMgmtType auto_sga \
-totalMemory 2048 \
-storageType ASM \
-diskGroupName +DATA \
-redoLogFileSize 600 \
-emConfiguration NONE \
-ignorePreReqs

Aplicamos un RU en ambas capas

opatchauto apply /installMedia/32126842/32067171

 

Host:plvoragrid
SIHA Home:/u01/app/19.0.0/grid
Version:19.0.0.0.0
Summary:

==Following patches were SUCCESSFULLY applied:

Patch: /installMedia/32126842/32067171
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-02-09_13-44-06PM_1.log

 

OPatchauto session completed at Tue Feb 9 13:47:37 2021
Time taken to complete the session 6 minutes, 5 seconds
[root@PLVORAGRID 32067171]#

32067171;OJVM RELEASE UPDATE: 19.10.0.0.210119 (32067171)
29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)
29517242;Database Release Update : 19.3.0.0.190416 (29517242)

OPatch succeeded.


La configuración de la maquina quedaría así con el HAS:

crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE plvoragrid STABLE
ora.LISTENER.lsnr
ONLINE ONLINE plvoragrid STABLE
ora.asm
ONLINE ONLINE plvoragrid Started,STABLE
ora.ons
OFFLINE OFFLINE plvoragrid STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE plvoragrid STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.emcdb.db
1 ONLINE ONLINE plvoragrid Open,HOME=/u01/app/o
racle/product/19.0.0
/db_1,STABLE
ora.evmd
1 ONLINE ONLINE plvoragrid STABLE
--------------------------------------------------------------------------------
[grid@PLVORAGRID ~]$ asmcmd lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 4194304 307188 301880 0 301880 0 N DATA/

 

A la base de datos, hay que ajustarle algunas configuraciones :

alter system set db_create_file_dest='${DATA_DIR}';
alter pluggable database ${PDB_NAME} save state;

-- Recommended minimum settings.
alter system set "_allow_insert_with_update_check"=true scope=both;
alter system set session_cached_cursors=200 scope=spfile;

-- Recommended: processes=600
alter system set processes=600 scope=spfile;

-- Recommended: pga_aggregate_target=1G
alter system set pga_aggregate_target=450M scope=spfile;

-- Recommended: sga_target=3G
alter system set sga_target=800M scope=spfile;

-- Recommended: shared_pool_size=600M
--alter system set shared_pool_size=600M scope=spfile;

-- For 12.1.0.2 set the following.
--alter system set optimizer_adaptive_features=false scope=both;

-- Should not be needed for 19c, but installer fails without them.
alter system set "_optimizer_nlj_hj_adaptive_join"= FALSE scope=both sid='*';
alter system set "_optimizer_strans_adaptive_pruning" = FALSE scope=both sid='*';
alter system set "_px_adaptive_dist_method" = OFF scope=both sid='*';
alter system set "_sql_plan_directive_mgmt_control" = 0 scope=both sid='*';
alter system set "_optimizer_dsdir_usage_control" = 0 scope=both sid='*';
alter system set "_optimizer_use_feedback" = FALSE scope=both sid='*';
alter system set "_optimizer_gather_feedback" = FALSE scope=both sid='*';
alter system set "_optimizer_performance_feedback" = OFF scope=both sid='*';

SHUTDOWN IMMEDIATE;
STARTUP;

 

Instalación del Cloud Control

Parametros para response file de Cloud Control

# Set parameters.
ORACLE_BASE=/u02/app/oracle
UNIX_GROUP_NAME=oinstall
ORA_INVENTORY=/u01/app/oraInventory
MW_HOME=/u01/app/oracle/middleware
ORACLE_HOSTNAME=${HOSTNAME}
AGENT_BASE=/u01/app/oracle/agent
WLS_USERNAME=weblogic
WLS_PASSWORD=Welcome1
GC_INST=${ORACLE_BASE}/gc_inst
SOFTWARE_LIBRARY=/u02/app/oracle/swlib
DATABASE_HOSTNAME=${HOSTNAME}
LISTENER_PORT=1521
PDB_NAME=emrep
SYS_PASSWORD=SysPassword1
AGENT_PASSWORD=${WLS_PASSWORD}
ORACLE_SID=emcdb
DATA_DIR=+DATA
OMS_HOME=${MW_HOME}
SYSMAN_PASSWORD=${WLS_PASSWORD}
SOFTWARE_DIR=/installMedia/
cat > /tmp/install.rsp <<EOF
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=${UNIX_GROUP_NAME}
INVENTORY_LOCATION=${ORA_INVENTORY}
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
INSTALL_UPDATES_SELECTION=skip
ORACLE_MIDDLEWARE_HOME_LOCATION=${MW_HOME}
ORACLE_HOSTNAME=${ORACLE_HOSTNAME}
AGENT_BASE_DIR=${AGENT_BASE}
WLS_ADMIN_SERVER_USERNAME=${WLS_USERNAME}
WLS_ADMIN_SERVER_PASSWORD=${WLS_PASSWORD}
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=${WLS_PASSWORD}
NODE_MANAGER_PASSWORD=${WLS_PASSWORD}
NODE_MANAGER_CONFIRM_PASSWORD=${WLS_PASSWORD}
ORACLE_INSTANCE_HOME_LOCATION=${GC_INST}
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=${SOFTWARE_LIBRARY}
DATABASE_HOSTNAME=${DATABASE_HOSTNAME}
LISTENER_PORT=${LISTENER_PORT}
SERVICENAME_OR_SID=${PDB_NAME}
SYS_PASSWORD=${SYS_PASSWORD}
SYSMAN_PASSWORD=${SYSMAN_PASSWORD}
SYSMAN_CONFIRM_PASSWORD=${SYSMAN_PASSWORD}
DEPLOYMENT_SIZE=SMALL
AGENT_REGISTRATION_PASSWORD=${AGENT_PASSWORD}
AGENT_REGISTRATION_CONFIRM_PASSWORD=${AGENT_PASSWORD}
PLUGIN_SELECTION={}
b_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=LATER
CONFIGURE_SHARED_LOCATION_BIP=false
MANAGEMENT_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt.dbf
CONFIGURATION_DATA_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt_ecm_depot1.dbf
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt_deepdive.dbf
EOF

Lanzamos el instalador para que despliegue el Software completo, mas no realizara configuración, prefiero que se haga así , por si hay algún error podemos corregirlo, no esta de mas que indique que si se puede realizar un backup de BD  (o un punto de restauración con garantía)  que permita revertir la BD completa a un punto en el tiempo, seria prudente.

./em13400_linux64.bin -silent -responseFile /tmp/install.rsp -J-Djava.io.tmpdir=/u02/tmp/

Una vez el instalador termine, podemos lanzar otro punto de control o reversion de estado de la BD completa, y lanzar el asistente de configuracion del Cloud Control 13c.

 

Al final adjunto los logs de ambos procesos.

cat > /tmp/config.rsp <<EOF
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=${UNIX_GROUP_NAME}
INVENTORY_LOCATION=${ORA_INVENTORY}
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
INSTALL_UPDATES_SELECTION=skip
ORACLE_MIDDLEWARE_HOME_LOCATION=${MW_HOME}
ORACLE_HOSTNAME=${ORACLE_HOSTNAME}
AGENT_BASE_DIR=${AGENT_BASE}
WLS_ADMIN_SERVER_USERNAME=${WLS_USERNAME}
WLS_ADMIN_SERVER_PASSWORD=${WLS_PASSWORD}
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=${WLS_PASSWORD}
NODE_MANAGER_PASSWORD=${WLS_PASSWORD}
NODE_MANAGER_CONFIRM_PASSWORD=${WLS_PASSWORD}
ORACLE_INSTANCE_HOME_LOCATION=${GC_INST}
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=${SOFTWARE_LIBRARY}
DATABASE_HOSTNAME=${DATABASE_HOSTNAME}
LISTENER_PORT=${LISTENER_PORT}
SERVICENAME_OR_SID=${PDB_NAME}
SYS_PASSWORD=${SYS_PASSWORD}
SYSMAN_PASSWORD=${SYSMAN_PASSWORD}
SYSMAN_CONFIRM_PASSWORD=${SYSMAN_PASSWORD}
DEPLOYMENT_SIZE=SMALL
AGENT_REGISTRATION_PASSWORD=${AGENT_PASSWORD}
AGENT_REGISTRATION_CONFIRM_PASSWORD=${AGENT_PASSWORD}
PLUGIN_SELECTION={}
b_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=ADVANCED
CONFIGURE_SHARED_LOCATION_BIP=false
MANAGEMENT_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt.dbf
CONFIGURATION_DATA_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt_ecm_depot1.dbf
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=${DATA_DIR}/${ORACLE_SID^^}/${PDB_NAME}/mgmt_deepdive.dbf
EOF





./sysman/install/ConfigureGC.sh -silent -responseFile /tmp/config.rsp

Al finalizar, tendremos un producto Cloud Control 13c correctamente instalado.

Espero les sea de Utilidad.

Saludos

Logs

Launcher log file is /tmp/OraInstall2021-02-09_05-15-05PM/launcher2021-02-09_05-15-05PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Checking swap space: must be greater than 512 MB. Actual 16383 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2021-02-09_05-15-05PM
====Prereq Config Location main===
/tmp/OraInstall2021-02-09_05-15-05PM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /tmp/OraInstall2021-02-09_05-15-05PM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2021-02-09_05-15-05PM
EMGCInstaller args -paramFile
EMGCInstaller args /tmp/sfx_okyBMq/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -silent
EMGCInstaller args -responseFile
EMGCInstaller args /tmp/install.rsp
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/tmp
EMFileLoc:/tmp/OraInstall2021-02-09_05-15-05PM/oui/em/
ScratchPathValue :/tmp/OraInstall2021-02-09_05-15-05PM
EMGCInstallUpdatesInfoOnNext:: calling actionOnClickofNext
Now in EMGCInstallUpdatesInfoOnNext.actionsOnClickofNext
EMGCInstallUpdatesInfoOnNext:: End of actionOnClickofNext
Some recommended prerequisites checks failed. You might encounter errors during installation. Fix those prerequisites and start the installation again.
Unable to copy the logs to the permanent location: The permanent log directory is unknown (null)..

The log(s) can be found here: /tmp/OraInstall2021-02-09_05-15-05PM.
<eFile /tmp/install.rsp -J-Djava.io.tmpdir=/u02/tmp/
ERROR: Cannot create the extract directory in /u02/tmp (Permission denied).
ERROR: Cannot setup the extract directory /u02/tmp/sfx_kOG195 (-1).
<eFile /tmp/install.rsp -J-Djava.io.tmpdir=/u02/tmp/
Launcher log file is /u02/tmp/OraInstall2021-02-09_05-18-26PM/launcher2021-02-09_05-18-26PM.log.
Extracting the installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Checking swap space: must be greater than 512 MB. Actual 16383 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Preparing to launch the Oracle Universal Installer from /u02/tmp/OraInstall2021-02-09_05-18-26PM
====Prereq Config Location main===
/u02/tmp/OraInstall2021-02-09_05-18-26PM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /u02/tmp/OraInstall2021-02-09_05-18-26PM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2021-02-09_05-18-26PM
EMGCInstaller args -paramFile
EMGCInstaller args /u02/tmp/sfx_vCLaNi/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -silent
EMGCInstaller args -responseFile
EMGCInstaller args /tmp/install.rsp
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/u02/tmp
EMFileLoc:/u02/tmp/OraInstall2021-02-09_05-18-26PM/oui/em/
ScratchPathValue :/u02/tmp/OraInstall2021-02-09_05-18-26PM
EMGCInstallUpdatesInfoOnNext:: calling actionOnClickofNext
Now in EMGCInstallUpdatesInfoOnNext.actionsOnClickofNext
EMGCInstallUpdatesInfoOnNext:: End of actionOnClickofNext
The installer detected the host name as PLVORAGRID, but you have changed it to PLVORAGRID
Session log file is /u02/tmp/OraInstall2021-02-09_05-18-26PM/install2021-02-09_05-18-26PM.log
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Session log file is /u02/tmp/OraInstall2021-02-09_05-18-26PM/install2021-02-09_05-18-26PM.log
Installation in progress

Install successful
Linking in progress

Link successful
Setup in progress

Setup successful
Agent OracleHome :/u01/app/oracle/agent/agent_13.4.0.0.0
OMS OracleHome :/u01/app/oracle/middleware

13NGCHEKAGGREGATE : oracle.sysman.top.agent
13NGCHEKAGGREGATE : OuiConfigVariables
13NGCHEKAGGREGATE : oracle.sysman.top.oms
13NGCHEKAGGREGATE : encap_oms
13NGCHEKAGGREGATE : OuiConfigVariables
Prompt for the allroot.sh

Warning: You must run the following configuration scripts as the "root" user.
/u01/app/oracle/middleware/allroot.sh
To execute the configuration scripts:
1. Open a new terminal window.
2. Login in as "root".
3. Run the scripts.

Successfully installed Enterprise Manager Cloud Control.
Logs successfully copied to /u01/app/oraInventory/logs.


[oracle@PLVORAGRID installMedia]$
[oracle@PLVORAGRID installMedia]$

 

4 2021-02-10 08:48:19 history
<onfigureGC.sh -silent -responseFile /tmp/config.rsp
====Prereq Config Location main===
null
EMGCInstaller args -onlyconfig
EMGCInstaller args -oh
EMGCInstaller args /u01/app/oracle/middleware
EMGCInstaller args -scratchPath
EMGCInstaller args /u01/app/oracle/middleware
EMGCInstaller args -sourceLoc
EMGCInstaller args /u01/app/oracle/middleware
EMGCInstaller args INSTALL_SWONLY_WITH_PLUGINS=false
EMGCInstaller args -silent
EMGCInstaller args -responseFile
EMGCInstaller args /tmp/config.rsp
DiskLoc inside SourceLoc/u01/app/
EMFileLoc:/u01/app/oracle/middleware/oui/em/
ScratchPathValue :/u01/app/oracle/middleware
Error Messages:
----------------------------------------------------
* Invalid option(s): sourceLoc
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
List file is unreadable
Oracle strongly recommends using the AL32UTF8 character set for EM repository. AL32UTF8 is Oracle's name for the standard Unicode encoding UTF-8, which enables universal support of virtually all languages of the world.

The following prerequisite check failed because the Oracle Database, where the Management Repository will be configured, does not meet the configuration requirements. These failures do not impact the installation, but you may encounter performance issues with the product later. You can either click Cancel, fix the issue manually now, based on the recommendation offered for this prerequisite, and click Next, or you can click OK to fix it after the installation ends. For more details check the logs: /u01/app/oracle/middleware/cfgtoollogs/oui/emdbprereqs
Prereq Name Recommendation
Check the pga_aggregate_target instance parameter value. The pga_aggregate_target instance parameter should be set to at least 1000000000 bytes.
Check the sga_target instance parameter value. The sga_target instance parameter should be set to at least 3000000000 bytes.
Check the shared_pool_size instance parameter value. The shared_pool_size instance parameter should be set to at least 600000000 bytes or roughly one third of the sga_target size.
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:48:42 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:48:43 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:48:43 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:48:43 AM PET)

Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:48:54 AM PET)
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

............................................................... 18% Done.
............................................................... 37% Done.
............................................................... 56% Done.
............................................................... 75% Done.
............................................................... 94% Done.
...............
Installation in progress (Wednesday, February 10, 2021 8:49:15 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:49:15 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:49:15 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:49:15 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:49:25 AM PET)
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:49:34 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:49:35 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:49:35 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:49:35 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:49:44 AM PET)
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

............................................................... 23% Done.
............................................................... 46% Done.
............................................................... 70% Done.
............................................................... 93% Done.
...............
Installation in progress (Wednesday, February 10, 2021 8:50:03 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:50:03 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:50:03 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:50:03 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:50:13 AM PET)
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:50:30 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:50:31 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:50:31 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:50:31 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:50:40 AM PET)
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.emas/13.4.1.0.0/oracle.sysman.emas.agent.plugin-13.4.1.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:50:46 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:50:46 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:50:46 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:50:46 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:50:57 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.emrep/13.4.0.0.0/oracle.sysman.emrep.agent.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

.......................................................................................
Installation in progress (Wednesday, February 10, 2021 8:50:59 AM PET)
87% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:50:59 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:50:59 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:50:59 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:51:10 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.beacon/13.4.0.0.0/oracle.sysman.beacon.agent.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:51:13 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:51:13 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:51:13 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:51:13 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:51:24 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.oh/13.4.0.0.0/oracle.sysman.oh.agent.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

.................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:51:26 AM PET)
97% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:51:26 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:51:26 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:51:26 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:51:37 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.csa/13.4.0.0.0/oracle.sysman.csa.agent.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

.......................................................................
Installation in progress (Wednesday, February 10, 2021 8:51:38 AM PET)
71% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:51:38 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:51:38 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:51:38 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:51:49 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.csa/13.4.0.0.0/oracle.sysman.csa.discovery.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..............................................................................................
Installation in progress (Wednesday, February 10, 2021 8:51:51 AM PET)
93% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:51:51 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:51:51 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:51:51 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:52:02 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.oh/13.4.0.0.0/oracle.sysman.oh.discovery.plugin-13.4.0.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..........................................................................
Installation in progress (Wednesday, February 10, 2021 8:52:04 AM PET)
74% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:52:04 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:52:04 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:52:04 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:52:14 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.db/13.4.1.0.0/oracle.sysman.db.discovery.plugin-13.4.1.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

............................................................................................
Installation in progress (Wednesday, February 10, 2021 8:52:16 AM PET)
92% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:52:16 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:52:16 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:52:16 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:52:27 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.xa/13.4.1.0.0/oracle.sysman.xa.discovery.plugin-13.4.1.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

.....................................................................................
Installation in progress (Wednesday, February 10, 2021 8:52:29 AM PET)
85% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:52:29 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:52:29 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:52:29 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:52:40 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.emas/13.4.1.0.0/oracle.sysman.emas.discovery.plugin-13.4.1.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

..................................................................................................
Installation in progress (Wednesday, February 10, 2021 8:52:42 AM PET)
98% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:52:42 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:52:42 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:52:42 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:52:53 AM PET)
List file is unreadable
List file is unreadable
&Decline License Agreement/u01/app/oracle/middleware/sysman/install/plugins/oracle.sysman.si/13.4.1.0.0/oracle.sysman.si.discovery.plugin-13.4.1.0.0.farb
Session log file is /tmp/OraInstall2021-02-10_08-48-30AM/nextgen2021-02-10_08-48-30AM.log

............................................................................
Installation in progress (Wednesday, February 10, 2021 8:52:54 AM PET)
76% Done.
Install successful

Linking in progress (Wednesday, February 10, 2021 8:52:54 AM PET)
Link successful

Setup in progress (Wednesday, February 10, 2021 8:52:54 AM PET)
Setup successful

Saving inventory (Wednesday, February 10, 2021 8:52:54 AM PET)
Saving inventory complete

End of install phases.(Wednesday, February 10, 2021 8:53:06 AM PET)
List file is unreadable
13NGCHEKAGGREGATE : oracle.sysman.top.agent
13NGCHEKAGGREGATE : OuiConfigVariables
13NGCHEKAGGREGATE : oracle.sysman.top.oms
13NGCHEKAGGREGATE : encap_oms
13NGCHEKAGGREGATE : OuiConfigVariables
2021-02-10_08-53-09AM: Configuration Assistant "Plugins Prerequisites Check" is in progress.

2021-02-10_08-53-17AM: Configuration Assistant "Plugins Prerequisites Check" has Succeeded.

2021-02-10_08-53-17AM: Configuration Assistant "Repository Configuration" is in progress.

Setting the value of EMPREREQKIT_RESULTDIR /u01/app/oracle/middleware/.gcinstall_temp
Calling the EMSCHEMA MANAGER: CREATE

Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.




Check the Repository Configuration Assistant logs at: /u01/app/oracle/middleware/sysman/log/schemamanager










TNS Test Inserted Successfully
Successfully Added TNS Query Descriptors

******** ORACLE_HOME is /u01/app/oracle/middleware
test properties path: /u01/app/oracle/middleware/sysman/admin/emdrep/prop/imap.properties
CreateTestType:createCompleteTest: BEGIN
CreateTestType:createTestMetadataObject: BEGIN
CreateTestType:createTestMetadataObject: END
CreateTestType:createPropertyGroups: BEGIN
CreateTestType:createPropertyGroups: END
CreateTestType:createStrayProperties: BEGIN
CreateTestType:createStrayProperties: END
CreateTestType:createDefaultPromotions: BEGIN
CreateTestType:createDefaultPromotions: END
CreateTestType:createDefaultThresholds: BEGIN
CreateTestType:createDefaultThresholds: END
CreateTestType:createMetrics4TestType: BEGIN
CreateTestType:createMetrics4TestType: END
PropertyName :imap_host
PropertyName :imap_port
PropertyName :imap_user_name
PropertyName :imap_password
PropertyName :numretries
PropertyName :retryinterval
CreateTestType:createQueryDescriptor: BEGIN
CreateTestType:createQueryDescriptor: END
Enabled test for: IMAP , generic_service , 1.0
Enabled test for: IMAP , aggregate_service , 1.0
CreateTestType:createCompleteTest: END
******** ORACLE_HOME is /u01/app/oracle/middleware




Wed Feb 10 09:41:17.353 PET 2021 rcu:Extracted SQL Statement: [BEGIN
DECLARE
l_core_ver MGMT_VERSIONS.version%TYPE;
l_error VARCHAR2(100) ;
l_error_count NUMBER := 0 ;
l_database_role VARCHAR2(32);
BEGIN
-- Check to see if this database is in logical standby mode. If it is
-- we need to exit this script because logical standby doesn't support
-- DBMS_JOBS.
BEGIN
SELECT database_role into l_database_role
from v$database where database_role like '%LOGICAL%';
RETURN;
-- Exit this script if this is a logical standby db.
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
-- Just continue normally if this is not a logical standby db.
END;

BEGIN
SELECT version INTO l_core_ver
FROM MGMT_VERSIONS
WHERE component_name = 'CORE';
EXCEPTION
WHEN OTHERS THEN
l_core_ver := '4.0.0.0.0';
END;

IF (l_core_ver = '4.0.0.0.0') THEN

-- For 4.0.0 repository, the maintenance package
-- does not have the remove_em_dbms_jobs function, so
-- have to remove the jobs created in 4.0.0
SAVEPOINT admin_remove_jobs_start ;
FOR crec IN (select job, what FROM user_jobs
where what in (
'EM_SLM_COMPUTATION.EXEC_SLM_COMPUTATION_JOB();',
'EM_SLM_CALENDAR.UPDATE_CALENDAR();',
'MGMT_GENSVC_AVAIL.EXEC_AVAIL_JOB();',
'EMD_COLLECTION.RUN_COLLECTIONS();',
'EMD_EVALUATION.EVALSQLMETRICS();',
'EMD_LOADER.ROLLUP();',
'EMD_NOTIFICATION.DELIVER_NOTIFICATIONS();',
'EM_PING.MARK_NODE_STATUS();',
'MGMT_JOB_ENGINE.apply_purge_policies();'
)
or what like 'emd_maintenance.analyze_emd_schema%'
)
LOOP
BEGIN
DBMS_JOB.REMOVE(crec.job);
EXCEPTION
WHEN OTHERS THEN
l_error_count := l_error_count + 1 ;
IF l_error IS NULL
THEN
l_error := SUBSTR(SQLERRM,1,100) ;
END IF ;
END;
END LOOP;
IF l_error_count > 0
THEN
ROLLBACK TO SAVEPOINT admin_remove_jobs_start ;
raise_application_error(MGMT_GLOBAL.UNEXPECTED_ERR,
l_error_count||' error(s) when dropping dbms_jobs '||
',first error='||l_error) ;
END IF ;
ELSE

-- This is done as dynamic SQL, so that this can be run against
-- EM 4.0.0 repositories also
EXECUTE IMMEDIATE 'begin EMD_MAINTENANCE.REMOVE_EM_DBMS_JOBS; end;';

END IF;

END;
END;
]
Wed Feb 10 09:41:17.353 PET 2021 rcu:Extracted Statement from File Name: '/u01/app/oracle/middleware/sysman/admin/emdrep/sql/core/latest/admin/admin_remove_dbms_jobs.sql'Line Number: 111
Wed Feb 10 09:41:17.353 PET 2021 rcu:Statement Type: 'BEGIN/END Anonymous Block'
Wed Feb 10 09:41:17.751 PET 2021 rcu:Extracted SQL Statement: [PROMPT Submitting DBMS jobs.]
Wed Feb 10 09:41:17.751 PET 2021 rcu:Extracted Statement from File Name: '/u01/app/oracle/middleware/sysman/admin/emdrep/sql/core/latest/admin/admin_submit_dbms_jobs.sql'Line Number: 29
Wed Feb 10 09:41:17.751 PET 2021 rcu:Statement Type: 'Debug Statement'
Wed Feb 10 09:41:17.751 PET 2021 rcu:Extracted SQL Statement: [DECLARE
l_database_role VARCHAR2(32);
BEGIN
-- Check to see if this database is in logical standby mode. If it is
-- we need to exit this script because logical standby doesn't support
-- DBMS_JOBS.
BEGIN
SELECT database_role into l_database_role
from v$database where database_role like '%LOGICAL%';
EXCEPTION
WHEN NO_DATA_FOUND THEN
EMD_MAINTENANCE.SUBMIT_EM_DBMS_JOBS;
COMMIT;
END;
END;
]
Wed Feb 10 09:41:17.751 PET 2021 rcu:Extracted Statement from File Name: '/u01/app/oracle/middleware/sysman/admin/emdrep/sql/core/latest/admin/admin_submit_dbms_jobs.sql'Line Number: 46
Wed Feb 10 09:41:17.751 PET 2021 rcu:Statement Type: 'BEGIN/END Anonymous Block'

Repository Creation Utility: Create - Completion Summary

Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))
Connected As : SYS
RCU Logfile : No log file specified

Component schemas created:
-----------------------------
Component Status Logfile

EM Repository Creation Configuration Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_08-53_876334194/logs/em_repos_config.log
EM Repository Init Configuration Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_08-53_876334194/logs/em_repos_init.log
EM Repository Common Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_08-53_876334194/logs/em_repos_common.log

Repository Creation Utility - Create : Operation Completed
The creation of Repository is completed now running the MOS

2021-02-10_09-41-51AM: Configuration Assistant "Repository Configuration" has Succeeded.

2021-02-10_09-41-51AM: Configuration Assistant "MDS Schema Configuration" is in progress.

Setting the value of EMPREREQKIT_RESULTDIR /u01/app/oracle/middleware/.gcinstall_temp
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 30
Percent Complete: 65
Percent Complete: 65
Percent Complete: 70
Percent Complete: 70
Percent Complete: 75
Percent Complete: 75
Percent Complete: 95
Percent Complete: 100

Repository Creation Utility: Create - Completion Summary

Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))
Connected As : SYS
Prefix for (prefixable) Schema Owners : SYSMAN
RCU Logfile : No log file specified

Component schemas created:
-----------------------------
Component Status Logfile

Metadata Services Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_09-41_996616159/logs/mds.log

Repository Creation Utility - Create : Operation Completed
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 50
Percent Complete: 55
Percent Complete: 65
Percent Complete: 65
Percent Complete: 80
Percent Complete: 90
Percent Complete: 95
Percent Complete: 95
Percent Complete: 97
Percent Complete: 100

Repository Creation Utility: Create - Completion Summary

Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))
Connected As : SYS
Prefix for (prefixable) Schema Owners : SYSMAN122130
RCU Logfile : No log file specified

Component schemas created:
-----------------------------
Component Status Logfile

Oracle Platform Security Services Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_09-41_996616159/logs/opss.log

Repository Creation Utility - Create : Operation Completed
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 50
Percent Complete: 50
Percent Complete: 55
Percent Complete: 60
Percent Complete: 65
Percent Complete: 65
Percent Complete: 65
Percent Complete: 82
Percent Complete: 100

Repository Creation Utility: Create - Completion Summary

Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))
Connected As : SYS
Prefix for (prefixable) Schema Owners : SYSMAN
RCU Logfile : No log file specified

Component schemas created:
-----------------------------
Component Status Logfile

Common Infrastructure Services Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_09-41_996616159/logs/stb.log

Repository Creation Utility - Create : Operation Completed
2021-02-10_09-42-02AM: Configuration Assistant "MDS Schema Configuration" has Succeeded.

2021-02-10_09-42-02AM: Configuration Assistant "BI Publisher Schema Configuration" is in progress.

Setting the value of EMPREREQKIT_RESULTDIR /u01/app/oracle/middleware/.gcinstall_temp
Middleware home/u01/app/oracle/middleware
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Oracle Home is /u01/app/oracle/middleware
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Schema Oracle Home is /u01/app/oracle/middleware/bi
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Setting RCU_HOME to /u01/app/oracle/middleware/oracle_common
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Setting SCRIPT_HOME to /u01/app/oracle/middleware/oracle_common/common/sql
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Setting RCU_LOG_LOCATION to /u01/app/oracle/middleware/cfgtoollogs/bip
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Setting RCU_LOG_NAME to emBIPLATFORM.log
2021_02_10_AD_09_42_02_PET BIPLATFORM version is null
2021_02_10_AD_09_42_02_PET has BIPLATFORM user? false
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Prepare to initialize RCU
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : RCU initialized with parameters : -silent -createRepository -compInfoXMLLocation /u01/app/oracle/middleware/sysman/emdrep/config/schemaext/ComponentInfo.xml -storageXMLLocation /u01/app/oracle/middleware/sysman/emdrep/config/schemaext/Storage.xml -connectString (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep))) -dbUser SYS -dbRole sysdba -schemaPrefix SYSMAN -component BIPLATFORM
2021_02_10_AD_09_42_02_PET BIPLATFORM EMSchemaManagerHelper: Info : Invoking RCU
Repository Creation Utility - Checking Prerequisites
Checking Global Prerequisites
Repository Creation Utility - Checking Prerequisites
Checking Component Prerequisites
Repository Creation Utility - Creating Tablespaces
Validating and Creating Tablespaces
Repository Creation Utility - Create
Repository Create in progress.
Percent Complete: 50
Percent Complete: 50
Percent Complete: 55
Percent Complete: 55
Percent Complete: 65
Percent Complete: 77
Percent Complete: 88
Percent Complete: 94
Percent Complete: 97
Percent Complete: 98
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 99
Percent Complete: 100

Repository Creation Utility: Create - Completion Summary

Database details:
-----------------------------
Connect Descriptor : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PLVORAGRID)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=emrep)))
Connected As : SYS
Prefix for (prefixable) Schema Owners : SYSMAN
RCU Logfile : No log file specified

Component schemas created:
-----------------------------
Component Status Logfile

Business Intelligence Platform Success /u01/app/oracle/middleware/sysman/log/schemamanager/m_021021_0853_AM/m_021021_0853_AM.CREATE/RCU2021-02-10_09-42_1064729917/logs/biplatform.log

Repository Creation Utility - Create : Operation Completed
2021_02_10_AD_09_42_07_PET BIPLATFORM EMSchemaManagerHelper: Info : RCU Completed : COMPLETED
2021_02_10_AD_09_42_07_PET BIPLATFORM EMSchemaManagerHelper: Info : Asscociating profile
Unable to create logger...
2021_02_10_AD_09_42_07_PET BIPLATFORM EMSchemaManagerHelper: Info : profile associated
Successfully created SYSMAN_BIPLATFORM schema...
Recompiling Required BI Publisher Database views with invalid objects.
The SQL {0} execution is complete.
The SQL {0} execution is complete.
The SQL {0} execution is complete.
The SQL {0} execution is complete.
The SQL {0} execution is complete.
The SQL {0} execution is complete.
Verifying if the Required BI Publisher Database views do not contain invalid objects any longer.
Invalid Objects from BI Publisher Database views have been removed.
2021-02-10_09-42-07AM: Configuration Assistant "BI Publisher Schema Configuration" has Succeeded.

2021-02-10_09-42-07AM: Configuration Assistant "OMS Configuration" is in progress.

Executing the OMSCA command...

Check the log files of the OMS Configuration Assistant at: /u01/app/oracle/middleware/cfgtoollogs/omsca




OMS Configuration Assistant completed successfully.

2021-02-10_09-52-14AM: Configuration Assistant "OMS Configuration" has Succeeded.

2021-02-10_09-52-14AM: Configuration Assistant "Plugins Deployment and Configuration" is in progress.




2021-02-10_09-59-40AM: Configuration Assistant "Plugins Deployment and Configuration" has Succeeded.

2021-02-10_09-59-40AM: Configuration Assistant "BI Publisher Configuration" is in progress.

2021-02-10_10-07-06AM: Configuration Assistant "BI Publisher Configuration" has Succeeded.

2021-02-10_10-07-06AM: Configuration Assistant "Start Oracle Management Service" is in progress.

Starting OMS ...
Executing the command: /u01/app/oracle/middleware/bin/emctl start oms

Starting of OMS is successful.
Starting export oms config...
Executing command: /u01/app/oracle/middleware/bin/emctl exportconfig oms -dir /u02/app/oracle/gc_inst/em/EMGC_OMS1/sysman/backup

Export config of OMS is successful.

2021-02-10_10-11-53AM: Configuration Assistant "Start Oracle Management Service" has Succeeded.

2021-02-10_10-11-53AM: Configuration Assistant "Agent Configuration Assistant" is in progress.

AgentConfiguration:agent configuration has been started

The AgentFreshInstaller is starting now
Oraclehome : ../u01/app/oracle/agent/agent_13.4.0.0.0
InstanceHome : /u01/app/oracle/agent/agent_inst
Agent Base Directory : /u01/app/oracle/agent
The oraclehome /u01/app/oracle/agent/agent_13.4.0.0.0
startAgent is:true
seci is :true
startAgent is:true
seci is :true
log loction is setlog
Creating log directoyr :/u01/app/oracle/agent/agent_13.4.0.0.0/cfgtoollogs/agentDeploy
Writing the following contents into /u01/app/oracle/agent/agent_13.4.0.0.0/install/oragchomelist
/u01/app/oracle/agent/agent_13.4.0.0.0:/u01/app/oracle/agent/agent_inst
Creating directory /u01/app/oracle/agent/agent_13.4.0.0.0/install/tmp completed successfully.
File /etc/oragchomelist exists.
File /etc/oragchomelist is writable.
Index :-1 for line : /u01/app/oracle/middleware
Index :0 for line : /u01/app/oracle/agent/agent_13.4.0.0.0
Overwriting the contents since oracle home:/u01/app/oracle/agent/agent_13.4.0.0.0 entry already exists.
Agent Home is : {0}
The value of chainInstall : true forceConfigure : false skipValidation : false
Validated the oms host and port :- PLVORAGRID----4903
Logs Location is : {0}
Getting Inet Addresses for host PLVORAGRID
** Agent Port Check completed successfully.**
Validated the agent port :- ----3872
Executing command: {0}
shared agent value is :false

Setting system property CUSTOM_INVENTORY to {0}
chain install is :true

Cloning of agent home completed successfully
Agent Configuration completed successfully
The following configuration scripts need to be executed as the "root" user. Root script to run : /u01/app/oracle/agent/agent_13.4.0.0.0/root.sh
AgentConfiguration:agent configuration finished with status = true

2021-02-10_10-13-23AM: Configuration Assistant "Agent Configuration Assistant" has Succeeded.

*** The Installation was Successful. ***

This information is also available at:

/u01/app/oracle/middleware/install/setupinfo.txt

See the following for information pertaining to your Enterprise Manager installation:

Use the following URL to access:

1. Enterprise Manager Cloud Control URL: https://PLVORAGRID:7803/em
2. Admin Server URL: https://PLVORAGRID:7102/console
3. BI Publisher URL: https://PLVORAGRID:9803/xmlpserver/servlet/home

The following details need to be provided while installing an additional OMS:

1. Admin Server Host Name: PLVORAGRID
2. Admin Server Port: 7102

You can find the details on ports used by this deployment at : /u01/app/oracle/middleware/install/portlist.ini

NOTE:
An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becomes unusable.

A backup of the OMS configuration is available in /u02/app/oracle/gc_inst/em/EMGC_OMS1/sysman/backup on host PLVORAGRID. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.

NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/app/oracle/middleware/bin/emctl exportconfig oms -dir <backup dir>

Prompt for the allroot.sh
[oracle@PLVORAGRID install]$
[oracle@PLVORAGRID install]$

Como crear un HANFS en un Oracle RAC

Raúl Antonio Molina Alvarenga

04-05-2023

#OracleACE
#OracleTipsSV

Pasos para crear HANFS en un cluster
Se hace con root y los binarios crsctl y srvctl estan en:

/u01/app/19.0.0.0/grid/bin
1) Crear recurso havaip , es quien publica el nfs
Origen
/u01/app/19.0.0.0/grid/bin/srvctl add havip -id hrexports -address 20.2.1.92

2) crear el diskgroup y el ACFS

create diskgroup acfsdg NORMAL REDUNDANCY
DISK
'/dev/rdsk/disco*'
ATTRIBUTE 'content.type' = 'DATA',
'content.type' = 'DATA',
'AU_SIZE' = '4M',
'cell.smart_scan_capable'='TRUE',
'compatible.rdbms'='11.2.0.4',
'compatible.advm'='19.0.0.0',
'compatible.asm'='11.0.0.0';
---> Los discos usados fueron:
/dev/rdsk/disco1
/dev/rdsk/disco2
/dev/rdsk/disco3
/dev/rdsk/disco4

Volumen:

Diskgroup Name: acfsdg

Volume Name: volacfsdg
Volume Device: /dev/asm/vol_fsbcc1-20
State: ENABLED
Size (MB): 4194304
Resize Unit (MB): 64
Redundancy: MIRROR
Stripe Columns: 8
Stripe Width (K): 1024
Usage: ACFS
Mountpath: /origenfs
alter diskgroup acfsdg add volume volacfsdg size 8T;

 

3) Crear el FS
/u01/app/19.0.0.0/grid/bin/srvctl add filesystem -device /dev/asm/vol_fsbcc1-20 -volume VOLUME1 \
-diskgroup acfsdg -mountpath /origenfs
4) crear el export del acfs
origen
/u01/app/19.0.0.0/grid/bin/srvctl add exportfs -id hrexports -path /origenfs -name hrexport1 -options "rw,no_root_squash"
/u01/app/19.0.0.0/grid/bin/srvctl modify exportfs -name hrexport1 -options "rw,sync,no_wdelay,insecure,insecure_locks,no_root_squash"
4.1 ) encender nfs y rcpbind y dejarlos peremnes en los nodos del cluster que exporta el NFS
para redhat 7
systemctl start nfs
systemctl start rpcbind
--Para validar el status, debe indicar running en color verde.
systemctl status nfs
systemctl status rpcbind

5) encender el havip

/u01/app/19.0.0.0/grid/bin/srvctl start havip -id hrexports

6) Montar el NFS en un destino, para ejemplo destino:

Montar con /etc/fstab
20.2.1.92:/origenfs /origenfs nfs rw,bg,rsize=32768,wsize=32768

o montar manual:

mount -t nfs -o rw,bg,rsize=32768,wsize=32768 10.5.1.192:/origenfs /origenfs --> Linux

Espero les sea de utilidad.

Saludos.