Post

Visualizzazione dei post da aprile, 2024

ORA-02020: too many database links in use

 Questo errore è legato al numero di database link aperti per sessione che può essere vista dalla seguente query SQL>  select db_link,logged_on,open_cursors from v$dblink;  Il parametro di sistema è SQL> show parameter open_links; NAME                                           TYPE        VALUE ------------------------------------ ----------- ------------------------------ open_links                                     integer     4 open_links_per_instance              integer     4 E' possibile aumentarlo con il seguente comando SQL> alter system set open_links_per_instance=10 scope=spfile; SQL> alter system set open_links=10 scope=spfile;

FLASHBACK DATABASE dalla 11.2.0.1 (Guarantee Restore Point)

Flashback Database is much faster than point-in-time recovery because it does not require restoring datafiles from backup and requires applying fewer changes from the archived redo logs. Creare un "guarantee restore point" del database così da potere effettuare un restore del db ad uno specifico valore SCN in un qualsiasi instante di tempo anche al di là del periodo definito dal paramatro di retention DB_FLASHBACK_RETENTION_TARGET. Occorre abilitare la modalità Archivelog e la Flashback Database . Dalla 11.2.0.1 non c'è bisogno di spegnere il db per metterlo in modalità Flashback ON ma il db deve essere in modalità archivelog.  -- Verificare lo stato archive e flash recovery area select log_mode,flashback_on from v$database; -- Verificare il puntamento degli archievelog  SQL> archive log list;  Database log mode Archive Mode  Automatic archival Enabled  Archive destination /u05/oradata/CORE/  Oldest online log sequence 2088  Next log sequence to archive 2090  Current