Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> Tables

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Tables
 Kaiz  Posted: Mar 12, 2008 01:01:12 AM

 Total Post: 104
 Joined: Sep, 2007






 Dear Friends
How to copy a structure of table without its data from one user to another user of the same database and from one database user to another database user.....
Thanks & Regards

 Gitesh
Posted: Mar 12, 2008 02:46:33 AM  

 Total Post: 322
 Joined: May, 2005






 
Hi,

If you have user aaa and table name is abc. Another user name bbb and want to create abc in bbb schema without data then you have 2 options.

1) Take export without rows and import in to another user schema with using touser=bbb fromuser=aaa

2) Login as bbb user and execute following command (select privilege must have of anther aaa user's table abc)

create table abc as select * from aaa.abc where 1=2;

It will create same table structure without data in bbb user schema. Primary key or unique key doesn't reflected in this case.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar815
  Mohammed Taj704
  Jayanta Sur479
  positive fanatic416
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma231
  Ramesh Jois226
  Bishal Khetan196






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software