Skip to Main Content

SQL & PL/SQL

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to copy a user-defined type from other schema to mine?

user1987306Aug 24 2012 — edited Aug 25 2012
Good evening!
I hope you are all fine.

Please help me to solve this doubt:

Through sql*plus, how can I copy a user-defined type from other schema to mine?

I've granted the execute object privilege over the user-defined type to my user, so I can use the type.

I know I can manually write and create the type, but I wanna learn (if exist) a statement to copy the user-defined type, something like:
CREATE TABLE x2 AS
(SELECT *
FROM x1);

I'm testing ORACLE DATABASE 11g R2 over Windows O. S.

Thanks in advance!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 22 2012
Added on Aug 24 2012
3 comments
389 views