My Oracle Support Banner

While Importing Encryption Key "ORA-46646: file from which keys are to be imported is invalid" Error Is Encountered (Doc ID 2455799.1)

Last updated on JULY 06, 2023

Applies to:

Oracle Cloud Infrastructure - Database Service - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms

A PDB was successfully cloned into the database in DBCS environment.
The encryption key was exported from the source environment:

SQL> administer key management export encryption keys with secret "secret" to '/tmp/KEY.exp' identified by "<PASSWORD>";
keystore altered.

The exported file was transferred to the desired location in DBCS environment.

While importing the key at target we had following issue:

SQL> ADMINISTER KEY MANAGEMENT IMPORT ENCRYPTION KEYS WITH SECRET "secret" FROM '/tmp/KEY.exp' IDENTIFIED BY "<PASSWORD>";
ADMINISTER KEY MANAGEMENT IMPORT ENCRYPTION KEYS WITH SECRET "secret" FROM '/tmp/KEY.exp' IDENTIFIED BY "<PASSWORD>"
*
ERROR at line 1:
ORA-46646: file from which keys are to be imported is invalid

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.