Post

Visualizzazione dei post da ottobre, 2022

Accesso alla Url tramite protocollo HTTPS usando il package UTL_HTTP

Immagine
Cosa è UTL_HTTP? E' un package oracle usato in query SQL o in PL/SQL che permette di accedere a dati in internet tramite protocollo http. Da Oracle 9i Release 2, il pacchetto UTL_HTTP può accedere alle risorse di rete anche su HTTPS oltre che HTTP.  Per abilitare l'accesso HTTPS dal pacchetto UTL_HTTP occorre installare un WALLET che permette di gestire i certificati. Riferimento: https://oracle-base.com/articles/misc/utl_http-and-ssl https://doyensys.com/blogs/how-to-access-https-ssl-url-via-utl-http-using-the-orapki-wallet-command/ Installazione WALLET 1) Creare la directory contente il wallet mkdir -p /u01/app/oracle/admin/SISV/wallet 2) Scaricare in locale i certificati. Ho scaricato per comodità sotto una cartella CRT. mkdir -p /u01/app/oracle/admin/SISV/wallet/CRT I certificati di Google sono due GTS Root R1.crt e GTS CA 1C3.crt da scaricare separatamete come singolo certificato e non come catena di certificato. 3) Creare il wallet usando una password (esempio svilAnag

Datapump Import Fails With ORA-31655 and ORA-39039

  Datapump Import generates the following error messages: ORA-31655: no data or metadata objects selected for job ORA-39039: Schema expression " IN ('<schema name>')" contains no valid schemas Originally the Export was performed on Table Mode as follows: DUMPFILE= EXCLUDE= CONTENT= LOGFILE= TABLES=            ====> notice that export is on Table mode. While Import is performed on Schema Mode as follows: DUMPFILE= TABLE_EXISTS_ACTION= CONTENT= LOGFILE= SCHEMAS=          ====> notice that we are trying to import on Schema level.  CAUSA: ORA-39039<Schema expression " IN ('<schema name>')" contains no valid schemas, which points to the fact that the dump file contains no data regarding the schema. Datapump export was performed on table mode, so the import should also be performed on table mode as there is no valid information in the dump file about the schema. SOLUZIONE: 1. Remove Schemas parameter from the import parameters. - OR -