sábado, 28 de enero de 2023
Planned Maintenance to My Oracle Support Portal on Friday February 10, 2023
lunes, 23 de enero de 2023
Detalle en la instalación de Oracle Golden Gate 21.3: Base de datos 19c 19.11 igual a 21c.?
INFO: Start Oracle GoldenGate Manager process. : 0.1
INFO: ---------------------------------------
INFO: Starting to setup OGGInstall
INFO: Initializing setup OGGInstall
INFO: Session Details :
INFO: Setting property oracle.installer.ignoreCheckpoint to value : true
INFO: setting ORACLE_HOME_NAME=OraHome1. A default value was calculated as per oraparam.ini
INFO: Reading shiphome metadata from /opt/instaladores/ogg_install/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/install/../stage/shiphomeproperties.xml
INFO: Loading beanstore from file:/opt/instaladores/ogg_install/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/install/../stage/shiphomeproperties.xml
INFO: Translating external format into raw format
INFO: Restoring class oracle.install.driver.oui.OUIMetadata from file:/opt/instaladores/ogg_install/fbo_ggs_Linux_x64_Oracle_shiphome/Disk1/install/../stage/shiphomeproperties.x
ml
INFO: Loading beans from Xml Bean Store. [BeanStoreName:oui-metadata]
INFO: Setting value for the property:properties in the bean:oui-metadata
domingo, 22 de enero de 2023
OGG-03542 Failed to connect to the database / OCI Error ORA (status = 12154-ORA-12154: TNS
GGSCI (oraclerdbms-origen) 1> dblogin userid c##ggadmin@pdb1 password oracle
2023-01-21 20:47:39 INFO OGG-03542 Failed to connect to the database. Verify that the connection string and following environment variables are correct:
TNS_ADMIN = /opt/app/oracle/product/19c/network/admin
LD_LIBRARY_PATH = /opt/app/oracle/product/19c/lib.
Error: OCI Error ORA (status = 12154-ORA-12154: TNS:could not resolve the connect identifier specified)
GGSCI (oraclerdbms-origen) 2> dblogin userid c##ggadmin@origen password oracle
Successfully logged into database.
Creando alias a cuentas de conexión en Oracle GoldenGate 21.3 en ambiente Multitenant
Successfully logged into database CDB$ROOT.
Una vez conectados, vamos a agregar un almácen de credenciales, con la instrucción a continuación.
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 3> add credentialstore
Credential store created.
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 4> alter credentialstore add user c##ggadmin@cdb alias ogg_root
Password:
Credential store altered.
En este caso, para la conexión al CDB hemos definido el alias de "ogg_root".
Nota: Cuidado OGG es sensitivo, cuiden las mayúsculas y minúsculas.
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 5> alter credentialstore add user c##ggadmin@origen alias ogg_pdb
Password:
Credential store altered.
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 6> INFO CREDENTIALSTORE
Reading from credential store:
Default domain: OracleGoldenGate
Alias: ogg_root
Userid: c##ggadmin@cdb
Alias: ogg_pdb
Userid: c##ggadmin@origen
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 7> dblogin useridalias ogg_root
Successfully logged into database CDB$ROOT.
Para el PDB:
GGSCI (oraclerdbms-origen as c##ggadmin@cdb/CDB$ROOT) 8> dblogin useridalias ogg_pdb
Successfully logged into database.
martes, 17 de enero de 2023
Oracle Critical Patch Update for January 2023
January 17, 2023
Oracle Critical Patch Update for January 2023
The Critical Patch Update for January 2023 was released on January 17, 2023.
Oracle strongly recommends applying the patches as soon as possible.
If you are new to this process, please review Oracle's Security Fixing Policies and the Critical Patch Update Advisory. After reviewing these resources, if you are unable to determine if you require a software update, or how to apply it, please contact Oracle Support.
The Critical Patch Update Advisory is the starting point for relevant information.
It includes the list of products affected, pointers to obtain the patches, a summary of the security vulnerabilities for each product suite,
and links to other important documents. Supported products that are not listed in the "Affected Products and Components" section of the advisory do not require new patches to be applied.
Also, it is essential to review the Critical Patch Update supporting documentation
referenced in the Advisory before applying patches, as this is where you can find important pertinent information.
Critical Patch Update Advisories are available at the following location:
Oracle Technical Resources:
https://www.oracle.com/
Oracle Cloud Customers should review:
https://www.oracle.com/
The Critical Patch Update Advisory for January 2023 is available at the following location:
Oracle Technical Resources:
https://www.oracle.com/
Important information can also be found at:
https://blogs.oracle.com/
Oracle's Security Fixing Policies are available at the following location:
https://www.oracle.com/
The next four dates for Critical Patch Updates are:
April 18, 2023
July 18, 2023
October 17, 2023
January 16, 2024
sábado, 14 de enero de 2023
Los 3 scripts que deberías tener a mano para descargar los últimos PSU de Oracle Database 19c a Enero de 2023
Me imagino que como me ha pasado, en ocasiones estás de carreras y necesitas bajar rápidamente un PSU para hacer un parche a una base de datos.
Cuando ingresas a MOS para ir a la zona de parches y descargas generalmente lo haces desde tu máquina de trabajo y no desde el servidor.
Esto implica, que debes luego trasladar el archivo descargado al servidor en donde vas a ejecutar la actualización.
Bueno, puedes ahorrar parte de ese tiempo si tu servidor tiene navegación a internet. Antes de darle descargar a un archivo del MOS, al lado izquierdo abajo, encontrarás la opcion "wget Options"
Oracle Database: Mantenimiento espacio para el tablespace AUX
login as: opc
Authenticating with public key "rsa-key-20200507"
Passphrase for key "rsa-key-20200507":
Last login: Fri Dec 30 15:00:23 2022 from 10.100.128.176
[opc@serverdb_01_uat ~]$ sudo su - oracle
Last login: Fri Dec 30 15:00:26 CST 2022 on pts/2
Primero que todo vamos conectarnos a una base de datos acomplada de mi contenedor.
SQL> connect / as sysdba
Connected.
SQL> alter session set container=***************;
Utilizando un script casero, valido la ocupación de cada uno de mis tablespaces.
SQL> @espacio
Tablespace Name KBytes Used Free Used Largest
--------------------- ------------ ------------ ------------ ------ ------------
FCUBSLIVE 42,053,616 21,048,944 21,004,672 50.1 4,063,232
FCUBSPILOT 18,874,368 20,224 18,854,144 .1 4,063,232
UNDOTBS1 5,268,480 846,976 4,421,504 16.1 2,001,920
USERS 3,408,640 746,944 2,661,696 21.9 1,870,592
SYSAUX 11,315,200 10,772,416 542,784 95.2 515,072
TBS_AUDIT_FGA_DATA 409,600 5,184 404,416 1.3 101,376
OAS_IAS_UMS 102,400 8,320 94,080 8.1 94,080
OAS_MDS 102,400 9,216 93,184 9.0 93,184
TBS_DATA_ETL 614,400 547,840 66,560 89.2 66,560
OAS_IAU 61,440 1,152 60,288 1.9 60,288
OAS_WLS 61,440 1,280 60,160 2.1 60,160
OAS_BIPLATFORM 196,608 156,864 39,744 79.8 39,744
OAS_STB 10,240 1,920 8,320 18.8 8,320
OAS_IAS_OPSS 63,488 56,832 6,656 89.5 6,656
SYSTEM 8,284,160 8,278,400 5,760 99.9 3,072
------------ ------------ ------------
sum 90,826,480 42,502,512 48,323,968
15 rows selected.
Como observan, el tablespace de SYSAUX, tiene un poco más de 10GB de almacenamiento ocupado.
Voy a utilizar otro script casero, para ver cuál es el top de los objetos en dicho tablespaces.
SQL> host ls -la *rank*
-rw-r--r--. 1 oracle oinstall 445 Aug 11 15:51 ranking20_tabla.sql
-rw-r--r--. 1 oracle oinstall 447 Aug 11 15:51 ranking_index.sql
-rw-r--r--. 1 oracle oinstall 506 Aug 11 15:51 ranking_index_sys.sql
-rw-r--r--. 1 oracle oinstall 467 Aug 11 15:51 ranking_schema_index.sql
-rw-r--r--. 1 oracle oinstall 498 Aug 11 15:51 ranking_schema.sql
-rw-r--r--. 1 oracle oinstall 446 Aug 11 15:51 ranking_tabla.sql
-rw-r--r--. 1 oracle oinstall 480 Aug 11 15:51 ranking_tablespace.sql
-rw-r--r--. 1 oracle oinstall 295 Aug 11 15:51 tablas_ranking.sql
SQL> @ranking_tablespace.sql
Enter value for tablespace: SYSAUX
old 3: from dba_segments where segment_type='TABLE' and tablespace_name='&TABLESPACE')
new 3: from dba_segments where segment_type='TABLE' and tablespace_name='SYSAUX')
Ranking Tablas grandes en la base de datos
OWNER SEGMENT_NAME MBYTES RANKING
----------- ------------------------------- ----------- ----------
SYS SCHEDULER$_JOB_RUN_DETAILS 2,615.00 1
SYS SCHEDULER$_EVENT_LOG 1,408.00 2
SYS SCHEDULER$_JOB_OUTPUT 1,280.00 3
SYS PLSCOPE_ACTION$ 10.00 4
MDSYS SDO_CS_SRS 9.00 5
SYS WRI$_OPTSTAT_OPR_TASKS 5.00 6
SYS AQ$_KUPC$DATAPUMP_QUETAB_1_P 4.00 7
SYS EXP_HEAD$ 3.00 8
SYS STATS_TARGET$ 3.00 9
SYS PLSCOPE_IDENTIFIER$ 2.00 10
Como observan en el reporte, tenemos 3 objetos bastantes grandes para ser unas simples tablas de registro de colas de procesos.
El siguiente es el procedimiento para limpiar los registros de dichas tablas.
SQL> SCHEDULER$_JOB_RUN_DETAILSexec dbms_scheduler.purge_log(0, 'JOB_AND_WINDOW_LOG');^C
SQL> exec dbms_scheduler.purge_log(0, 'JOB_AND_WINDOW_LOG');
PL/SQL procedure successfully completed.
Es necesario que ahora hagamos un "TRUNCATE" sobre las siguientes tablas para liberar el espacio.SQL> @ranking_tablespace.sql
Enter value for tablespace: SYSAUX
old 3: from dba_segments where segment_type='TABLE' and tablespace_name='&TABLESPACE')
new 3: from dba_segments where segment_type='TABLE' and tablespace_name='SYSAUX')
Ranking Tablas grandes en la base de datos
OWNER SEGMENT_NAME MBYTES RANKING
------------ ------------------------------- ----------- ----------
SYS SCHEDULER$_JOB_RUN_DETAILS 2,615.00 1
SYS SCHEDULER$_EVENT_LOG 1,408.00 2
SYS SCHEDULER$_JOB_OUTPUT 1,280.00 3
SYS PLSCOPE_ACTION$ 10.00 4
MDSYS SDO_CS_SRS 9.00 5
SYS WRI$_OPTSTAT_OPR_TASKS 5.00 6
SYS AQ$_KUPC$DATAPUMP_QUETAB_1_P 4.00 7
SYS EXP_HEAD$ 3.00 8
SYS STATS_TARGET$ 3.00 9
SYS PLSCOPE_IDENTIFIER$ 2.00 10
10 rows selected.
SQL> truncate table scheduler$_job_output;
Table truncated.
Ahora vamos con las siguientes tablas. Hay un objeto de la base de datos, que guarda estadisticas históricas. Si llegaste a esta publicación, quizás ya antes haz visto publicaciones en juniororacledba.wordpress.com y muchos otros más, en donde sus autores, tratan la misma bronca. El espacio de más utilizado en el tablespace SYSAUX y el incremento en el tamaño del Datapump de tu base de datos.SQL> @ranking_tablespace.sql
Enter value for tablespace: SYSAUX
old 3: from dba_segments where segment_type='TABLE' and tablespace_name='&TABLESPACE')
new 3: from dba_segments where segment_type='TABLE' and tablespace_name='SYSAUX')
Ranking Tablas grandes en la base de datos
OWNER SEGMENT_NAME MBYTES RANKING
-------- --------------------------------- --------------- ----------
SYS SCHEDULER$_JOB_RUN_DETAILS 2,615.00 1
SYS SCHEDULER$_EVENT_LOG 1,408.00 2
SYS PLSCOPE_ACTION$ 10.00 3
MDSYS SDO_CS_SRS 9.00 4
SYS WRI$_OPTSTAT_OPR_TASKS 5.00 5
SYS AQ$_KUPC$DATAPUMP_QUETAB_1_P 4.00 6
SYS EXP_HEAD$ 3.00 7
SYS STATS_TARGET$ 3.00 8
SYS PLSCOPE_IDENTIFIER$ 2.00 9
SYS WRI$_OPTSTAT_IND_HISTORY 2.00 10
SQL> select dbms_stats.get_stats_history_availability from dual;
GET_STATS_HISTORY_AVAILABILITY
---------------------------------------------------------------------------
29-NOV-22 10.46.00.871479000 AM -06:00
SQL> begin
for i in reverse 10..30
loop
dbms_stats.purge_stats(sysdate-i);
end loop;
end;
/
PL/SQL procedure successfully completed.
SQL> select dbms_stats.get_stats_history_availability from dual;
GET_STATS_HISTORY_AVAILABILITY
---------------------------------------------------------------------------
20-DEC-22 05.25.19.000000000 PM -06:00
SQL> @ranking_tablespace.sql
Enter value for tablespace: SYSAUX
old 3: from dba_segments where segment_type='TABLE' and tablespace_name='&TABLESPACE')
new 3: from dba_segments where segment_type='TABLE' and tablespace_name='SYSAUX')
Fri Dec 30 page 1
Ranking Tablas grandes en la base de datos
OWNER SEGMENT_NAME MBYTES RANKING
---------- ---------------------------------------- ----------
SYS SCHEDULER$_JOB_RUN_DETAILS 2,615.00 1
SYS SCHEDULER$_EVENT_LOG 1,408.00 2
SYS PLSCOPE_ACTION$ 10.00 3
MDSYS SDO_CS_SRS 9.00 4
SYS WRI$_OPTSTAT_OPR_TASKS 5.00 5
SYS AQ$_KUPC$DATAPUMP_QUETAB_1_P 4.00 6
SYS EXP_HEAD$ 3.00 7
SYS STATS_TARGET$ 3.00 8
SYS PLSCOPE_IDENTIFIER$ 2.00 9
SYS WRI$_OPTSTAT_IND_HISTORY 2.00 10
************************************************************************
10 rows selected.
SQL> exec DBMS_SCHEDULER.PURGE_LOG();
PL/SQL procedure successfully completed.
SQL> truncate table sys.scheduler$_job_run_details;
Table truncated.
SQL> truncate table sys.SCHEDULER$_EVENT_LOG;
Table truncated.
SQL> @ranking_tablespace.sql
Enter value for tablespace: SYSAUX
old 3: from dba_segments where segment_type='TABLE' and tablespace_name='&TABLESPACE')
new 3: from dba_segments where segment_type='TABLE' and tablespace_name='SYSAUX')
Ranking Tablas grandes en la base de datos
OWNER SEGMENT_NAME MBYTES RANKING
---------- ----------------------------------- --------- ----------
SYS PLSCOPE_ACTION$ 10.00 1
MDSYS SDO_CS_SRS 9.00 2
SYS WRI$_OPTSTAT_OPR_TASKS 5.00 3
SYS AQ$_KUPC$DATAPUMP_QUETAB_1_P 4.00 4
SYS EXP_HEAD$ 3.00 5
SYS STATS_TARGET$ 3.00 6
SYS PLSCOPE_IDENTIFIER$ 2.00 7
MDSYS EXT_TAB_REF_SYS_1 2.00 8
XDB XDB$ELEMENT 2.00 9
SYS WRI$_OPTSTAT_IND_HISTORY 2.00 10
10 rows selected.
SQL>
Adjuntos
Changes to Databases that use mTLS Authentication (MOS Doc ID 2911553.1)
Description:
DigiCert retired the Organizational Unit (OU) field for all public TLS/SSL certificates to comply with industry standards as of August 2022 per their announcement: https://knowledge.digicert.com/alerts/ou-removal.html. This means that the public TLS/SSL certificates issued by DigiCert will not have the OU field anymore.
For more information and detailed instructions, see MOS Doc ID 2911553.1: https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=315341958284675&id=2911553.1&_afrWindowMode=0&_adf.ctrl-state=4hfhij8id_4
Affected service: Autonomous Database on Shared Infrastructure
miércoles, 4 de enero de 2023
Training Days 2023 Live-Virtual-Hybrid conference Feb 15-17, 2023
Training Days 2023 Live-Virtual-Hybrid conference ((https://rmoug.org/Training-Days-2023)
All India Oracle Users Group (AIOUG): Webinar LIVE Harnessing The Power Of OCI-Distributed CLOUD
Oracle ACE Spotlight: Abi Giles-Haigh
By: Oana-Aurelia (Păduraru) Bonu
Community Manager at Oracle
We're starting the year by launching the Oracle ACE Spotlight blog section - and the first interview features Abigail Giles-Haigh!
Thank you for answering our questions, Abi!
Discover our conversation from the article below ➡
https://lnkd.in/dJaKgRim








