Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6057811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:31:47+00:00 2026-05-23T08:31:47+00:00

Old approach for exporting/importing whole schema: exp user/pwdp@server FILE=export.dmp OWNER=user ROWS=Y imp newuser/pwd@server FULL=Y

  • 0

Old approach for exporting/importing whole schema:

 exp user/pwdp@server FILE=export.dmp OWNER=user ROWS=Y
 imp newuser/pwd@server FULL=Y FILE=export.dmp

New approach:

 expdp user/pwdp@server DUMPFILE=export.dp DIRECTORY=exportfolder 

However had a problem with importing:

 impdp newuser/pwdp@server DUMPFILE=export.dp DIRECTORY=exportfolder

will not import anything:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31655: no data or metadata objects selected for job
ORA-39154: Objects from foreign schemas have been removed from import
Master table "NEWUSER"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "NEWUSER"."SYS_IMPORT_FULL_01":  newuser/********@server
DUMPFILE=export.dp DIRECTORY=exportfolder
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Job "NEWUSER"."SYS_IMPORT_FULL_01" successfully completed at 19:13:04

Adding schemas option will not help (result is same, oracle does not allow import non-owned objects):

impdp newuser/pwdp@server DUMPFILE=export.dp DIRECTORY=exportfolder schemas=user

And only one working approach which I found:

impdp newuser/pwdp@server DUMPFILE=export.dp DIRECTORY=exportfolder remap_schema=newuser:user

So the question is how to import schema data pump dump without knowledge which schema was exported?

(Of course I can look to first 512 bytes of export file and find string like “USER”.”SYS_EXPORT_SCHEMA_01″), but may be exists another approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:31:47+00:00Added an answer on May 23, 2026 at 8:31 am

    First, technically you are not using the full=y correctly:

    imp newuser/pwd@server FULL=Y FILE=export.dmp
    

    You should rather do:

    imp newuser/pwd@server touser=newuser fromuser=user FILE=export.dmp
    

    Which is similar to impdp remap_schema command.

    However, I do understand that what you are trying to do is import a schema from one user to the other without knowing the source user before hand. I just had to mention this because if you don’t know the source user, then it can be easily assumed you don’t know the content of the datafile; and if you don’t know the content of the datafile, you could be importing a lot more users and data than you think you ought to by issuing a full=y.

    Point: A full=y import means to import every user and their associated content; regardless of the user you are using to log into the database and start the import.

    Having said my disclaimer, impdp has the exact same functionality in respect to a full import – just use full=y

    impdp newuser/pwdp@server DUMPFILE=export.dp DIRECTORY=exportfolder full=y
    

    UPDATE

    this will works in newuser have privilege: IMP_FULL_DATABASE
    
    execution `grant IMP_FULL_DATABASE to newuser` solved it.
    

    References:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref301

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old .dot file with a few dozen styles in it. I
I remember the old effective approach of studying a new framework. It was always
Using LINQ or the old-fashioned approach, how can I get all permutations of a
At my current employer we generally adopt the old-school approach of writing a traditional
An old Direct3D book says ...you can achieve an acceptable frame rate with hardware
I have inherited an old crusty PHP application , and I'd like to refactor
I need debug some old code that uses a Hashtable to store response from
I've got an old, legacy VB6 application that uses the DHTML editing control as
Back in the old days, Help was not trivial but possible: generate some funky
I have a old website that generate its own RSS everytime a new post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.