Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
If you download cygwin, you can use the more command to look at the top part of the dump file and you can see what table spaces you will need along with what users are stored there. That way you can pre-create the table spaces and the users. Then during the import you can specify exactly what users you want to import.
1-- pre-create ABCD database, if possible with same tablespace structure.
2-- impdp dump file into ABCD
Database is ABCD and Production DB Schema/User name : XYZ
I have created a DB structure with exact same tablespaces
tnsping ABCD works fine...
Created a User Name and Pwd (XYZ_User/ pwd) and granted all Admin permissions.
now trying import the XYZ.dmp file using impdp command as below:
set Oracle_SID=ABCD
impdp dumpfile=XYZ.dmp full=Y logfile=xyz.log
user: sys as sysdba
pwd : **********
Database import completed with lots of errors...All tables are present but only 2 tables are showing records...For rest of the tables num_rows is (NULL).
I am not a DBA, Hence would need detailed explanations...Any suggestions are appreciated. Thanks in Advance.
Database is ABCD and Production DB Schema/User name : XYZ
I have created a DB structure with exact same tablespaces
tnsping ABCD works fine...
Created a User Name and Pwd (XYZ_User/ pwd) and granted all Admin permissions.
now trying import the XYZ.dmp file using impdp command as below:
set Oracle_SID=ABCD
impdp dumpfile=XYZ.dmp full=Y logfile=xyz.log
user: sys as sysdba
pwd : **********
Database import completed with lots of errors...All tables are present but only 2 tables are showing records...For rest of the tables num_rows is (NULL).
I am not a DBA, Hence would need detailed explanations...Any suggestions are appreciated. Thanks in Advance.
You should post the actual errors that came up. My guess is that you are missing table spaces that your schema needs.
You should look through your log file for table creation errors and make a list of all of the table spaces that are missing
and add them. Also make sure that you have the TABLE_EXISTS_ACTION=REPLACE option.
PLS-00201: identifier 'string' must be declared
Cause:
You tried to reference either an undeclared variable, exception, procedure, or other
item, or an item to which no privilege was granted or an item to which privilege was granted
only through a role.
Action:
1) Check your spelling and declaration of the referenced name.
2) Verify that the declaration for the referenced item is placed correctly in the block structure.
3) If the referenced item is indeed declared but you don't have privileges to refer to that item,
for security reasons, you will be notified only that the item is not declared.
4) If the referenced item is indeed declared and you believe that you have privileges to refer
to that item, check the privileges; if the privileges were granted only via a role, then this is
expected and documented behavior. Stored objects (packages, procedures, functions, triggers,
views) run in the security domain of the object owner with no roles enabled except PUBLIC.
Again, you will be notified only that the item was not declared.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Hmm...Still no success with impdp for ABCD database.
Steps performed in sequence are:
1. I have received the ABCD.dmp file from DBA team..they have used expdp to export this DB.
2.Now I want a copy of ABCD DB before we archive this DB.
3.I have created a databases structure, with oracle SID= ABCD...Oracle service is running now..tns file has a valid entry.
4.then I logged in as sys as sysdba and created tablespace for ABCD schema.
5.in the same session (sys as sysdba) created ABCD_user and granted many permissions on DB objects etc.
6.Now I want to import (impdp) the ABCD.dmp into ABCD schema and want to access it via SQLDev using ABCD_user.
At this point I am confused and stuck..
impdp dumpfile=ABCD.dmp full=Y logfile=imp_ABCD.log is not completing properly.
In Oracle 9i, we have to_user , from_user parameters for defining the schema/user names..
Do we have anything in Oracle 11g which is similar to to_user from_user and allow me to import ABCD DB from the .dmp file and access ABCD schema using ABCD_user?
In Oracle 9i, we have to_user , from_user parameters for defining the schema/user names..
Do we have anything in Oracle 11g which is similar to to_user from_user and allow me to import ABCD DB from the .dmp file and access ABCD schema using ABCD_user?
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks