How to restore a single table from a DP Export from a different schema?
Environment:
Oracle 11.2.0.3 EE on Solaris
I was looking at the documentation on DP Import trying to find the correct syntax to import a single table from a DP Export of a different schema.
So, I want to load table USER1.TABLE1 into USER2.TABLE1 from a DP Export.
Looking at the REMAP_TABLE options:
REMAP_TABLE=[schema.]old_tablename[.partition]:new_tablename
OR
REMAP_TABLE=[schema.]old_tablename[:partition]:new_tablenameI can't see where to specify the target schema name. The examples had the new table name residing in the same schema with just a new name.
I looked at the REMAP_SCHEMA but the docs say that will import the entire schema into the new schema and I only want one (1) table.
Any suggestions are most welcome!
-gary
I thought I tried that combination and it seemed to me that the REMAP_SCHEMA somehow over-rode the TABLES= parameter >and started loading all the objects.If it does fail (and it should not) then please post the details here and I will try to see what is happening.
Let me get back into the sandbox and try it again. I admit I was in a bit of a hurry when I did it the first time.We are all in a hurry, no worries. If it fails, please post the details and the log file.
Does it make any sense that one parameter would override another?No, this should never happen. We have tons of checks to make sure the job can't have multiple meanings. For example, you can't say
full=y schemas=foo --- Which do you want, a full export or a list of schema exports, etc.
Your suggestion was the first thing I thought would work.This should work. If not, please post the log file with the command and the results.
Dean
Thanks again for the help and stay tuned for my new attempt.
-gary
Similar Messages
-
how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
can I import the same way as I did previously??
but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
please help ...
thanksHi,
Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
In step 1 use a suitable database connection that can access the relevant table definitions.
In step 2 select the schema (or schemas) to import. The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
In step 3 select the tables to import. (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
After the import itself has completed, the "Compare Models" dialog is displayed. This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
Just selecting the Merge button should apply all the additions and changes in the new import.
Having updated your Relational Model, you can then update your Logical Model. To do this you repeat the "Engineer to Logical Model". This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
Just selecting the Engineer button should apply all the additions and changes.
I hope this helps you achieve what you want.
David -
How to get a single table from a .db file
Hello,
We have taken a backup of our whole schema into a .db file. and by mistake one of our table in that schema got truncated. Is there any way we can restore only that table from the .db file?
Please help.
Thanks
RameshIt's not so easy. You could perform a point-in-time recovery of the whole database, where point-in-time is the moment just before the table was truncated. Big disadvantage is you lose all other changes made after the truncation,too. Or you restore to an auxiliary database, export the table and import it back into the source database.
Werner -
How to export and import dependent tables from 2 different schema
I have a setup where schema1 has table 1 and schema 2 has table2. And table 1 from schema1 depends upon table 2 from schema 2.
I would like to export and import these tables only and not any other tables from these 2 schemas with all information like grants,constraints.
Also will there be same method for Oracle 10g R1,R2 and Oracle 11G.
http://download.oracle.com/docs/cd/B12037_01/server.101/b10825/dp_export.htm#i1007514
Looking at this For table mode it says
Also, as in schema exports, cross-schema references are not exported
Not sure what this means.
As I am interested in only 2 tables I think I need to use table mode. But if I try to run export with both tables names, it says table mode support only one schema at a time. Not sure then How would the constraints would get exported in that case.
-Rohitworked for my 1st time I tried
exp file=table2.dmp tables="dbadmin.temp1,scott.emp"
Export: Release 10.2.0.1.0 - Production on Mon Mar 1 16:32:07 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8ISO8859P1 character set (possible charset conversion)
About to export specified tables via Conventional Path ...
Current user changed to DBADMIN
. . exporting table TEMP1 10 rows exported
EXP-00091: Exporting questionable statistics.
Current user changed to SCOTT
. . exporting table EMP 14 rows exported
EXP-00091: Exporting questionable statistics.
EXP-00091: Exporting questionable statistics.
Export terminated successfully with warnings. -
Restore a single table from full database backup
Hi,
I have a full database (10.2.0.1) backup with RMAN.
Suddenly a table got truncated. How to get back that table without restoring and recovering the full database (Point in time recovery) since if I restore the database to an earlier time then the other transactions will hamper.
Also creating a standby database and import export the table will solve my problem. But is there any other way to restore the lost table.
Thanks in advance.No other way to restore the data if you don't want do point in time recovery. If you drop the table then you can restore it from the recyclebin but for the truncate operation it won't help. If you have enabled the flash back table for that particular table then you can restore the data for only that table.
Regards
Asif Kabir -
How to Restore a data table from a 'dmp' file in a database of oracle ?
Hello,
I want just to restore one table belonging in a database. I Have the dmp file which I must restore.
Then I am asking if it's possible to restore only a table not all the databse ? If Yes, What I mut do to realize it ?
I need really helps .
Regards.Can I assume dmp file you refer to is a file created by using oracle "exp" command. If that be the case you can use the imp command to populate/refresh/re-create that particular object only.
check this link for the information about imp.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#sthref2517
Regards
Raj -
How to populate an internal table from three different tables
My requirement is to populate an itab by retrieving data from three diff db tables,
ekko,ekpo and Ekbe.
below is the code for data retrieval .
SELECT EBELN INTO TABLE IT_EKKO FROM EKKO WHERE EBELN IN S_EBELN.
IF NOT IT_EKKO[] IS INITIAL.
SELECT EBELP TXZ01 NETWR BUKRS INTO CORRESPONDING FIELDS OF TABLE IT_EKPO FROM EKPO FOR ALL ENTRIES IN IT_EKKO
WHERE EBELN EQ IT_EKKO-EBELN.
IF NOT IT_EKPO[] IS INITIAL.
SELECT EMATN WAERS WERKS GJAHR BEWTP INTO CORRESPONDING FIELDS OF TABLE IT_EKBE FROM EKBE FOR ALL ENTRIES IN IT_EKPO
WHERE EBELN EQ IT_EKPO-EBELN
AND EBELP EQ IT_EKPO-EBELP
AND BEWTP EQ 'E' OR BEWTP EQ 'Q'.
ENDIF.
ENDIF.
please tell me how to populate data from it_ekko,it_ekpo and it_ekbe into an internal table ITAB.Hi Mayana,
You take one final structure & final internal table, & within that structure take all the fields which is required to be displayed as a final output.
for data fetching from different table, you take three different structures & three internal table for that, because into corresponding fields of table is not good for performance wise. Use into table syntax.
follow the below example:(similarly)
sort it_klah by key fields.
LOOP AT IT_KSSK INTO WA_KSSK.
READ TABLE IT_KLAH INTO WA_KLAH WITH KEY CLINT = WA_KSSK-CLINT
KLART = WA_KSSK-KLART.
IF SY-SUBRC EQ 0.
MOVE: WA_KLAH-OBJEK to WA_final-OBJEK.
Read another table........(2nd one)
IF SY-SUBRC EQ 0.
MOVE: ....................................
APPEND WA_final TO IT_final.
ENDIF.
clear wa_final.
ENDLOOP.
finally display it_final records.
Hope this can solve your problems.
Regards,
Tutun -
Recover a single table from a complete rman
Hi
I need to restore a single table from a complete rman backup, but it seems like this backup is divided into datafiles and this table is allocated together with others.
I use a library for make backups.
Does anybody know how can I get this unique table's information from my rman backup?Hi
Which version of Oracle are you using?
If you are using 9i you must restore the database with another name and dann export/import the needed tables.
If you are using10g you can try with the SQL-command: FLASHBACK TABLE
Bye, Aron -
Create one tables from 2 different tables
Hi,
How I can create one table from 2 different tables. Source tables have data and I want to include it in new table.
I try this:
create table NEW_ONE
select * from OLD_ONE
union
select * from OLD_ONE2;
But it didn't work correctly :/I don't have any error. This syntax create table NEW_ONE, but this table have columns only from OLD_ONE table :/ There aren't any column from OLD_ONE2 :/ Any suggestions?
I don't forget about "as" in my query, only in this post.
Edited by: tutus on Sep 8, 2008 6:36 AM -
I hope there has been found a more efficiant solution for this, how can I restore a single image from an aperture time machine backup, I really hope I don't have to restore the entire library? that does not make sense
any suggestions?Did you try browsing your backups in the Finder ? That is, do not go and "Enter Time Machine". Instead, navigate to your Time Machine backup via Finder and then manually go to the time period (by folder name) you are looking for ... when you find your Aperture library you can then "Show Package Contents" and find the Master you are looking for.
-
How to delete a single request from DSO in BI 7.0
Dear Experts,
Could you please tell me how to delete a single request from DSO?
I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
Please suggest me this issue.
Regards,
PrathapIN DSO--its a very basic thing....
ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
So ,each new request has a realationsip with the older request.
So in the cases:
1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
e.g older request entries:
a x 1
new request
a x 2
change log
a x 1
a x -1
a x 2
so its quite obvious you can't have a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
thats request reverst posting
IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
regards,
rk -
How do I move a table from one schema to another schema on Oracle XE?
How do I move a table from one schema to another schema on Oracle XE?
Hi,
I tried to use the insert/select statement that you had given, it did not work.
The error is ORA-00913: too many values.
But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
Thank you
Skye -
How do I move a table from one schema to another schema?
How do I move a table from one schema to another schema?
Grant access to the table from the source schema to destination schema.
GRANT SELECT ON <TABLE_NAME> TO <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
After the table is created, Insert the records using SELECT.
INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b> -
How to restore a dropped table when recycle bin is purged??
how to restore a dropped table when recycle bin is purged??
You should be asking general database questions in General Questions - and not in the Objects forum.
Restoring a dropped table means restoring a logical or physical backup of that table. -
How to restore a deleted file from the iCloud
How to restore a deleted file from the iCloud
first you right click on the ipad (on the left in itunes): restore from backup.
It will restore to factory ALL data anda apps
At some point it will offer restoration from itunes, but you will only see backups made on your computer.
If you wish to restore from icloud you forget itunes on your computer, go to the ipad and follow the instructions. At some point you will be asked to choose from icolud or confgiure it as a new ipad.
it works
Maybe you are looking for
-
My iPad will not update to 5 at all. I don't even have the option of software update in settings. I've tried to update over iTunes and it doest work there either.
-
Problem with JFrame, it goes blank
i My problem is with JFrame, when it's carrying operation which takes a bit of time, if somethhing goes on top of the frame the frame goes blank, all the components vanished and when the operation is completed the components bacome visible. I dont kn
-
i have an hp photosmart 6510 .i cannot get pictures from windows7 photo gallary to print on photo paper.it only prints on the regular paper.the pics on my cell phone print on the photo paper. This question was solved. View Solution.
-
Question on ECATT scripts (SAP QA)
Hi, Can anybody tell me about the ECATT's tool? If you do possess any notes or material, please forward the same to my id - [email protected] . How is the scope for QA in SAP? Are the growth prospects better in SAP QA? Thanks in Advance, Vijay
-
B210a will not print after changing router\modem
b210a will not print after changing router\modem. Says it is connected to network, but will not print and says unavailable