Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exporting schema from oracle database is breaking views

Javier Alejandro MiñoOct 30 2018 — edited Oct 31 2018

I am exporting with expdp a schema from a database and the process finishes with no error but when I try to use impdp to import the schema, several views fail to be imported with the following message:

ORA-39083: Object type VIEW failed to create with error:

ORA-00928: missing SELECT keyword

Failing sql is:

CREATE FORCE VIEW...

The create statement that is in the message effectively is missing the SELECT statement, because is truncated way before it should appear. When I check the VIEW in the source database the view is properly created. The only possible cause I can see for this issue is the length of the statement given that all failing statements have between 389 characters and 404 characters at the point where the statements are truncated.

Is there a way to set the maximum number of characters that the expdp should be able to handle? Or is there a different way I which I should handle these views.

This post has been answered by Joerg.Sobottka on Oct 30 2018
Jump to Answer
Comments
Post Details
Added on Oct 30 2018
4 comments
655 views