Source : Cluster 19.0.6 à 2 noeuds PROD, pluggable database PDB1
Cible : Cluster 19.0.6 à 2 noeuds CIBLE, , pluggable database PDB2
1) utilisation db_link
Depuis CIBLE
Code PSQL : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 connect sys as sysdba SQL> create database link PROD connect to c##dba identified by *** using '//MaPROD-scan/PROD' ; Database link created. SQL> select instance_name from v$instance@PROD ; INSTANCE_NAME ---------------- PROD2 SQL> create pluggable database PDB2 FROM PDB1@PROD; create pluggable database PDB2 FROM PDB1@PROD * ERROR at line 1: ORA-17628: Oracle error 1031 returned by remote Oracle server ORA-01031: insufficient privileges
c##dba est DBA de PROD
2) utilisation rman (avec mot de passe sys idem sur RMAN, CIBLE et PROD)
Code RMAN : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 rman catalog rman/***@RMAN target sys/monpwd@PROD target sys/monpwd@PROD auxiliary sys/monpwd@TEST Recovery Manager: Release 19.0.0.0.0 - Production on Wed Nov 11 09:50:42 2020 Version 19.6.0.0.0 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. connected to target database: PROD (DBID=3752145964) connected to recovery catalog database connected to auxiliary database: TEST (DBID=3895480290) Starting Duplicate PDB at 11.11.2020 09:51:02 allocated channel: ORA_AUX_SBT_TAPE_1 channel ORA_AUX_SBT_TAPE_1: SID=790 instance=TEST2 device type=SBT_TAPE channel ORA_AUX_SBT_TAPE_1: Veeam Plug-in for Oracle RMAN allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: SID=980 instance=TEST2 device type=DISK current log archived duplicating Online logs to Oracle Managed File (OMF) location duplicating Datafiles to Oracle Managed File (OMF) location RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate PDB command at 11/11/2020 10:06:08 RMAN-05501: aborting duplication of target database RMAN-06136: Oracle error from auxiliary database: ORA-17628: Oracle error 4021 returned by remote Oracle server ORA-04021: timeout occurred while waiting to lock object
Une idée ?
Partager