The docs state that the old classics of “exp” and “imp” for export/import are not a supported means for migrating data into Autonomous.
But I know that a lot of people often decide there’s a difference between “supported” and “Can I crack on and see if it works” 🙂
So let’s give it a try
First I’ll export the SCOTT schema on my local database
$ exp file=c:\tmp\scott_atp.dmp userid=scott/tiger@pdb21a
Export: Release 23.0.0.0.0 - Production on Mon May 12 20:00:48 2025
Version 23.7.0.25.01
Copyright (c) 1982, 2025, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 21c Enterprise Edition Release 21.0.0.0.0 - Production
Version 21.16.0.0.0
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses AL32UTF8 character set (possible charset conversion)
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMP2 11 rows exported
Export terminated successfully
And then try import it on Autonomous
$ imp userid=scott/******@atp_low file=c:\tmp\scott_atp.dmp
Import: Release 23.0.0.0.0 - Production on Mon May 12 20:11:52 2025
Version 23.7.0.25.01
Copyright (c) 1982, 2025, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.27.0.1.0
Export file created by EXPORT:V23.00.00 via conventional path
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
IMP-00003: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
IMP-00000: Import terminated unsuccessfully
That doesn’t look great, so lets try it as the ADMIN user
$ imp userid=admin/******@atp_low file=c:\tmp\scott_atp.dmp fromuser=scott touser=scott
Import: Release 23.0.0.0.0 - Production on Mon May 12 20:11:52 2025
Version 23.7.0.25.01
Copyright (c) 1982, 2025, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.27.0.1.0
Export file created by EXPORT:V23.00.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in US7ASCII character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
IMP-00003: ORACLE error 1031 encountered
ORA-01031: insufficient privileges
IMP-00000: Import terminated unsuccessfully
And there you have it. This simply isn’t going to work.
But c’mon folks…What are you doing using exp/imp anyway? 🙂
If you really really really needed to do this, simply import it into a standalone database and then use DataPump export/import to get the schema into Autonomous.




Leave a reply to Connor McDonald Cancel reply