Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, oracle.

Asked: May 05, 2017 - 1:10 pm UTC

Last updated: May 09, 2017 - 2:12 am UTC

Version: 11.2.0

Viewed 1000+ times

You Asked

Hi team,

I have exported schema with expdp and import into to the development database all are fine but 5 tables are missing i checked on production with SELECT COUNT(*) FROM CPG_PROD.MDRT_20315$; -->>It shows 59 rows but when i try to export that single table with

expdp cpg_prod/cpg_prod@ftgprod directory=CPG_PROD dumpfile=16MDRT_20315.dmp logfile=16MDRT_20315.log tables=MDRT_20315$ CONTENT=METADATA_ONLY

It is showing an error saying

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "CPG_PROD"."SYS_EXPORT_TABLE_03": cpg_prod/********@ftgprod directory=CPG_PROD dumpfile=16MDRT_20315.dmp logfile=16MDRT_20315.log tables=MDRT_20315$ CONTENT=METADATA_ONLY
ORA-39166: Object CPG_PROD.MDRT_20315$ was not found.
ORA-31655: no data or metadata objects selected for job
Job "CPG_PROD"."SYS_EXPORT_TABLE_03" completed with 2 error(s) at 18:19:27


Pls help for the same.

Thanks

and Connor said...

It might be a name escaping issue. Try creating a parfile (say) 'myparfile.par' as:

directory=CPG_PROD
dumpfile=16MDRT_20315.dmp
logfile=16MDRT_20315.log
tables=MDRT_20315$
CONTENT=METADATA_ONLY

and then do:

expdp parfile=myparfile.par

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

oracle oracle, May 08, 2017 - 10:31 am UTC

Hi,

I have export the production and import into the restoration server with expdp impdp and when try to compare with

SELECT COUNT(*),OBJECT_TYPE FROM DBA_OBJECTS WHERE OWNER='CPG_PROD' GROUP BY OBJECT_TYPE ORDER BY 2;

here is comparison not matching -
This names tables not imported these are the tables - MDOT_15A4F$
MDOT_15A6E$
MDOT_21574$
MDOT_2157F$
MDRT_15A44$
MDRT_15A4F$
MDRT_15A6E$
MDRT_20315$
MDRT_20C5F$
MDRT_21574$
MDRT_2157F$

and on the restoration db there is some tables which is not available on production db these tables are -

MDRT_248C7$
MDRT_248D2$
MDRT_248DC$
MDRT_248E5$
MDRT_248EF$
MDRT_248F8$
MDRT_24903$

Please let me how why these tables not imported and import logfile is succesfully no any warnings and errors. And also let me know why some different name tables are imported which are not available on production.

Thanks

Connor McDonald
May 09, 2017 - 2:10 am UTC

Ok. These are underlying objects that we needed to create to support some other part of the database. In this case, they will be for Spatial support.

The object names are automatically assigned, typically the OBJECT_ID from user_objects of the source table will be used in the automatically created objects.

Because you imported and created new objects, they have new object id's.

You can excluded these from your query by looking at the SECONDARY column in xxx_TABLES

oracle oracle, May 08, 2017 - 11:36 am UTC

I also tried as you recommended but showing an error logfile is -

cat 16MDRT_20315.log
;;;
Export: Release 11.2.0.1.0 - Production on Mon May 8 16:59:18 2017

Starting "CPG_PROD"."SYS_EXPORT_TABLE_03": cpg_prod/******** parfile=myparfile.par
ORA-39166: Object CPG_PROD.MDRT_20315$ was not found.
ORA-31655: no data or metadata objects selected for job
Job "CPG_PROD"."SYS_EXPORT_TABLE_03" completed with 2 error(s) at 16:59:25

Thanks
Connor McDonald
May 09, 2017 - 2:12 am UTC

Sorry, I should have read more carefully.

MDRT_... tables are Spatial, you dont need to import them. See the response to other followup.

More to Explore

VLDB

If you are new to partitioning, check out Connor McDonald's introduction series here.

VLDB

Documentation set on VLDB and Partitioning.