473,791 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

copying table from one schema to another

27 New Member
is there a way of copying a table from one schema to another schema with oracle enterprise manager console? If not, how can I accomplish this

Thanks
Aug 6 '07 #1
2 9828
NasirMunir
27 New Member
I have been able to resolve that with access. I created linked table in access, made updates and it did the trick of updating the oracle table as well.
I would still like to know some other way of doing that too. I am wondering, if that is possible through enterprise manager console ?
Aug 6 '07 #2
Dave44
153 New Member
It can be done from SQL_PLUS as follows, BUT pay attention to the last lines shown. I did this to show that the table constraints arent created this way so you would have to add them once the table is created.

Expand|Select|Wrap|Line Numbers
  1. Connected to:
  2. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
  3. With the Partitioning, OLAP and Data Mining options
  4.  
  5. [151]dave2@ORADB> create table T1 (tab_id    number  not null primary key);
  6.  
  7. Table created.
  8.  
  9. Elapsed: 00:00:00.04
  10. [151]dave2@ORADB> conn dave@oradb
  11. Enter password: ********
  12. Connected.
  13. [151]dave@ORADB> create table T1 as select * from dave2.t1;
  14.  
  15. Table created.
  16.  
  17. Elapsed: 00:00:00.03
  18. [151]dave@ORADB> desc t1
  19.  Name                                                                           
  20.  ---------------------------------------------------------------------------
  21.  TAB_ID                                                                         
  22.  
  23. [151]dave@ORADB> insert into t1 select 1 from dual connect by level <= 5;
  24.  
  25. 5 rows created.
  26.  
  27. Elapsed: 00:00:00.00
  28. [151]dave@ORADB> select * from t1;
  29.  
  30.     TAB_ID
  31. ----------
  32.          1
  33.          1
  34.          1
  35.          1
  36.          1
  37.  
  38. Elapsed: 00:00:00.00
  39. [151]dave@ORADB> alter table t1 add constraint pk_t1 primary key (tab_id);
  40.  
  41. Table altered. 
  42.  
Aug 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

36
4657
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am proposing a single column table with a field name called vehicle_type and this will contain the vehicle type. Sot it will be
4
18699
by: Gordon Burditt | last post by:
What's the easiest way to copy a row from one table to another (with the same schema), without knowing in advance the number and types of the columns? The problem: I have several sets of tables with a primary key of 'account', which contains an email address. If someone changes their email address, I need to change the 'account' field. Unfortunately, someone thought it would speed up lookups if instead of having one table 'settings',...
6
2429
by: Jeff Kowalczyk | last post by:
I need to adapt this an update statement to a general form that will iterate over multiple orderids for a given customerinvoiceid. My first concern is a form that will work for a given orderid, then an expanded version that will work on all orderids with a specific customerinvoiceid as a parameter. I'm sure appropriate joins will handle it, but I'm not making any headway, everything comes back with multiple tuple selected for update...
10
26143
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not null references another, FK_LASTLYOID bigint not null references lastly, unique (FK_OTHEROID,FK_ANOTHEROID))
4
15424
by: zMisc | last post by:
Is it possible to copy a table from one schema to another schema by just copying the frm file to the directory for the new schema? What is the best way to create a new database with all the tables in it automatically? I was hoping to have the tables (the frm files) included in a subdirectory and when required, just create a new schema then copy all the frm files into it.
7
3851
by: Wayne Gibson | last post by:
Hi All, Was wondering if anybody could help. I'm currently trying to copy a record from datatable to another. I have two problems: 1) Transferring the record from one datatable to another. 2) Transferring the record from the new datatable back to the database. Any ideas? Thanks
3
2160
by: NasirMunir | last post by:
The problem: I have two schemas in an oracle database. One of the schema is the updated one. I want to update the first schema table say table A with the updated table A of schema B. The first table may have 74 rows as compared to 78 or more(for example). I am thinking about copying the table to access and then copy it back to oracle. I may be entirely wrong, but can't think anything else. Can anyone suggest something or advise how can I do...
5
2799
by: Dmitriy Lapko | last post by:
Hallo all Is it possible to change schema of table in DB2 v.8.2 without recreating and coping a table into a new schema? I need it for several purposes, one of them - refactoring of existing old database with more then 250 tables. I would like to split it to subsystems, but some of tables are quite large. And the size of tables prevents me from getting copy of production
1
6751
by: tshad | last post by:
Running on VS.net 2005, I am trying to copy rows from my datatable to another datatable in the same dataset. The schema would be identical. I need to make the table name "forms" as I am passing this dataset to function that expects a dataset with a datatable in it.
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9029
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.