

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Fase 4: convalida dei dati trasportati
<a name="phase4"></a>

## Fase 1: Verificare che i tablespace non siano danneggiati
<a name="phase4-step1"></a>

In questo passaggio, le tablespace trasportate vengono lette solo nel database di destinazione. È possibile verificare se i tablespace sono validi o meno eseguendo il comando RMAN come segue.

```
sqlplus / as sysdba;
set feedback off
set pagesize 0
set heading off
spool tbs_val.sql;
select 'validate tablespace '||tablespace_name||' check logical;' from dba_tablespaces where tablespace_name not in ('SYSTEM','SYSAUX','TEMP','USERS','UNDOTBS1','UNDOTBS2','UNDOTBS3','UNDOTBS3','UNDOTBS4');
spool off;
exit;

--Remove the first and last line in the spool file, tbs_val.sql
rman target /
RMAN> @tbs_val.sql
```

Inoltre, è possibile controllare il numero di oggetti, ad esempio la tabella, l'indice, il sinonimo, la vista e gli oggetti del pacchetto.

## Passaggio 2. Rendi lettura/scrittura tutte le tablespace trasportate nel database di destinazione
<a name="phase4-step2"></a>

```
sqlplus / as sysdba;
set feedback off
set pagesize 0
set heading off
spool tbs_rw.sql
select 'alter tablespace '||tablespace_name||' read write;' from dba_tablespaces where status='READ ONLY';
spool off;
exit;
--Remove the first and last line in the spool file, tbs_rw.sql
sqlplus / as sysdba;
SQL> @tbs_rw.sql
```