SOLVED

ORA-19913: unable to decrypt backup – solution

Asked by OracleDba20 viewsoracle

ORA-19913: unable to decrypt backup –

#oracle#error

Solutions(1)

Accepted Solution
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
ORA-19913: UNABLE TO DECRYPT BACKUP – SOLUTION

While restoring database, I received below error.

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of Duplicate Db command at 11/11/2019 04:53:47

RMAN-05501: aborting duplication of target database

RMAN-03015: error occurred in stored script Memory Script

ORA-19870: error while restoring backup piece /u02/work/038_08-Nov-2019_Gouranga_arisg51d_refresh/rman/arisg51p_03-Nov-2019_13-39-15_full_cf.bkp

ORA-19913: unable to decrypt backup

From verification found, this backup was taken with encryption enabled database and there is wallet configure also.

So while you restore, then start the database in ‘nomount’ state and see the below status. If it is closed, then you can’t restore. So follow the below steps to start restore database.

— start in nmount

[oracle@example01 ~]$ sqlplus / as sysdba

SQL> select status from v$encryption_wallet;

STATUS

————————————————————————

CLOSED

SQL> quit

status must be ‘open’

— fix/ Solution

copy the wallets files and configure in sqlnet.ora also, then verify the status

e.g.,

coped below wallet files to your location something like this:

/u01/app/oracle/admin/

/wallet

Then, point your wallet in ‘sqlnet.ora’ file.

$ cd $ORACLE_HOME/network/admin

$ cat sqlnet.ora

ENCRYPTION_WALLET_LOCATION =

(SOURCE = (METHOD = FILE)

(METHOD_DATA = (DIRECTORY = /u01/app/oracle/admin/$ORACLE_UNQNAME/wallet)

)

)

SQL> select status from v$encryption_wallet;

STATUS

————————————————-

OPEN

But ensure, to enable encryption while restore the database like what is enabled during backup.

e.g.,

CONFIGURE ENCRYPTION FOR DATABASE OFF; # default

CONFIGURE ENCRYPTION ALGORITHM ‘AES128’; # default

— Encryption enabled with key AES256

RMAN> CONFIGURE ENCRYPTION FOR DATABASE ON;

new RMAN configuration parameters:

CONFIGURE ENCRYPTION FOR DATABASE ON;

new RMAN configuration parameters are successfully stored

RMAN> CONFIGURE ENCRYPTION ALGORITHM ‘AES256’;

new RMAN configuration parameters:

CONFIGURE ENCRYPTION ALGORITHM ‘AES256’;

new RMAN configuration parameters are successfully stored

Note that you can enable the encryption only after restoring the controlfile.
OracleDba

Post Your Solution