Skip to Main Content

Oracle Database Discussions

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!

creating existing table in another schema

668822Jan 20 2009 — edited Jan 21 2009
hi masters,

we are using oracle 10g R2 on linux.

i have one schema say user1 having many tables, starting with

BC_ (50 TABLES)

PC_ (20 TABLES)

LC_ (30 TABLES) etc.,

now i want to create these tables in another schema with their constraints and privileges, in another schema.

like i want to generate a create table script, which will create table starting with 'BC_' only. another script will create table starting with 'PC_' only. and like that.

is this possible with command

create table AS
select * from (old schema).(table_name);

can we use sub query in this to be more specific?

and will it transfer all its privileges and grants to new schema??


thanks and regards
VD
This post has been answered by David Krch-Oracle on Jan 20 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2009
Added on Jan 20 2009
12 comments
4,527 views