How to import only rows of tables from from a dump file
Good day,
I have impoted a schema from a dump files with option rows=n,(accordingly it should import only structure of the tables)
now i want to import rows for these tables in that schema. Kindly guide me how to do that. I have used below syntax for import.
imp userid=system/manager@testdb fromuser=abc touser=abc file=d:\abctest\
abc.dmp log=e:\abc15.log buffer=100000000 ignore=y constraints=n grants=n statistics=none rows=n;
Any help willbe much appriciated.
Regards
Ansh
Hi Sybrand,
Thanx for the suggestion. Actually it is my fault that I had not explained the whole scenarion.
Let me explain it one by one...
(1) First i was importing a schema with rows=y option and I was getting some constraints error(can not insert NULL value in 'not null' column of some particular table) and import was unsuccesful.
(2) Then i desided to import only structure of the tables in that schema, and later disabled that constraint which was creating the problem.
(3) Now I m willing to import the data in these tables using that .dmp file, using rows=y, and this was my question if i m doing it in a right way or do i need to do some further step.
Hope this time i have made picture more clear.
Thanx a lot Hans and Sybrand
btw no wall around so can't bang my head :)
Similar Messages
-
Cpying / Importing only a few tables structure from one schema to other!
Greetings,
Can any one please suggest me the best method to copy the structure of series of tables from one schema to other in a eased way!
For example:- There is a MC scheama and there are about 1000 tables... and there is a AB schema where I need to copy only structure of 85 selected tables from MC -> AB..
Please suggest!Hi,
You could use any of the following:
1) Export 85 tables from source to destination
2) Use Data Pump Export with Network_link if you are on 10g
3) Use CTAS (create table as select )
4) Use DBMS_METADATA.GET_DDL procedure on the source to create a script
Probably, others would come up with more bright ideas.
Regards -
Hi There,
I was wondering how to import only the synonyms (including public) from one database into another database.
I started an import but forgot to drop the synoyms first.
Thanks in advanced,
JImport is probably the wrong tool.
Consider using dy. sql to create a script for this.
I can dig up an example if you want.
ex
set pagesize 5000
set linesize 110
spool c:\synonyms.sql
select 'create or replace synonym '||a.SYNONYM_NAME||' for ' || a.TABLE_NAME || ' ;' from dba_synonyms a
where a. OWNER = 'SCOTT';
spool off
Edited by: mseberg on Jul 14, 2010 10:43 AM
Better (or more real world SQL)
select 'create or replace synonym '||a.SYNONYM_NAME||' for ' || a.TABLE_NAME || ' ;' from dba_synonyms a where a.TABLE_OWNER = 'SCOTT';
Use the script... -
Hello,
Does anyone know how to import only grants from a .dmp file?
1. We did a full export of the source schema.
2. During our 1st import run, we imported the tables only.
3. Now we would like to import only grants.
Is this (step 3) possible with the datapump import/export utility?
Thank you for your help!OrionNet,
Thanks for the link. It was a good doc, which helped me to understand the datapump with sqlfile parameter.
I did a test run of generating sqlfile with impdp, and was able to get the sql script with grant only.
Here is what I did:
1. Run the following:
impdp system/***** parfile=test_imp_grant_only.param
2. Below is what's in the parameter file (test_imp_grant_only.param)
DIRECTORY=datapump
SCHEMAS=ABC
Include=grant
sqlfile=datapump:test_imp_grant_only.sql
DUMPFILE=datapump:test_export_ABC.dmp
3. The sql script (test_imp_grant_only.sql) will be generated under datapump directory.
Thanks! -
How to import only procedures, functions, and packages only
Hi everybody...
How to import only procedures, functions, and packages only from one user to another user.
Thanks in advance
palThanks for your reply...i did the following..can you please help from this how to proceed
---------------- getcode.sql -------------------------------
set feedback off
set heading off
set termout off
set linesize 1000
set trimspool on
set verify off
spool &1..sql
prompt set define off
select decode( type||'-'||to_char(line,'fm99999'),
'PACKAGE BODY-1', '/'||chr(10),
null) ||
decode(line,1,'create or replace ', '' ) ||
text text
from user_source
where name = upper('&&1')
order by type, line;
prompt /
prompt set define on
spool off
set feedback on
set heading on
set termout on
set linesize 100
------------------- getallcode.sql -------------------------
set termout off
set heading off
set feedback off
set linesize 50
spool c:\xtmpx.sql
select '@getcode ' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
spool c:\getallcode_INSTALL
select '@' || object_name
from user_objects
where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
spool off
set heading on
set feedback on
set linesize 130
set termout on
@xtmpx.sql
I did this one user and created the xtmpx.sql
and getallcode_INSTALL.LST.
From this, how to proceed to run these in another user.
Thanks,
Pal -
Import Hangs after importing only rows
dear Experts,
i am in a situation that i am trying to import table in my 9i database it imports only rows and cursors stays on like
importing table abc 100 rows imported_
it remains here and nothing more do, didnt import constraints, indexes, triggers etc
please help me out.
i am using Redhat enterprise linux 4.8 64bit, and oracle 9.2.8
thanks1. Try to import with IGNORE=Y , if you are not already
Import will be filling up some tablespace and archive destination. So,
2. Check whether any table space is full on the database you are trying to import.
3. Keep an eye on archive log destination. -
How to get all rows in table to red using alternate rows properties option
How to get all rows in table to red using alternate rows properties option
Hi Khrisna,
You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
I tried doing it and the colors freaked me out (all red) :-D
Kindly tell me if im missing something.
Regards,
John Vincent -
How to add empty rows in table in smart form
how to add empty rows in table in smart form?
plz help me regarding this
send me ur queries to [email protected]You will need to add some extra rows to the internal table that your table is displaying. Use a program node to append additional rows with a key but no argument.
Alternaively a template may me more suitable for your requirement than a table.
Finally, please do not include you e-mail address in your question. Your question and the answers provided to it are for the benefit of everyone in the Community.
Regards,
Nick -
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
How can I copy and paste table cells from Pages into InDesign with minimum reformating?
Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?
-
How to import a playlist in Home Sharing From Computer to ...
How to import a playlist in Home Sharing From Computer to computer and other devices?
No need to "import". Just find the photo in iPhoto (i.e. within the application), click it once so it's highlighted with a blue outline, then select Edit menu > Copy (or just ⌘-C). Go to Address Book, select the contact, click the Edit button at the bottom, click once on the blank photo icon so it's highlighted with a blue outline, then select Edit menu > Paste (or just ⌘-V).
FYI, the original iPhoto images are stored as individual files, in ~/Pictures/iPhoto Library/Originals/subfolders.
Hope this helps... -
How to access the java stack table "xi_af_msg" from the ABAP engine.
Hello Guys,
How to access the java stack table "xi_af_msg" from the ABAP engine.
I need to access this table.These 3 are the tables that are for XI Adapter in ABAP Stack.
SWFRXICNT
SWFRXIHDR
SWFRXIPRC
You can also try the following tables.
SXMSAEADPMOD XI: Adapter and Module Information
SXMSAEADPMODCHN XI: Adapter Module Chains
SXMSAEAGG XI: Adapter Runtime Data (Aggregated)
SXMSAERAW XI: Adapter Runtime Data (Raw Data)
Cheers,
Sarath.
Award if helpful. -
How to install only Roxio CD Burner Program from the Recovery CDs?
I bought a T400 a few weeks ago in Korea.
But my company uses English, so I had to install a Windows XP English version.
However, at that time I lost the Roxio software.
I have the recovery CDs for T400 Windows XP PRO SP2.
If it is possible, then please let me know how to install only Roxio CD Burner Programs from the Recovery CDs.
Thanks.Hello,
unfortunately it´s not possible to install just one program from recovery cd´s.
But on Lenovo support pages, there you should find your software and applications.
Please visit with IE and let autodetect your system.
Then you should able to choose which type of software is availible for you.
Choose CD and DVD drives.
Hopefully the T400 department is up to date now.
Follow @LenovoForums on Twitter! Try the forum search, before first posting: Forum Search Option
Please insert your type, model (not S/N) number and used OS in your posts.
I´m a volunteer here using New X1 Carbon, ThinkPad Yoga, Yoga 11s, Yoga 13, T430s,T510, X220t, IdeaCentre B540.
TIP: If your computer runs satisfactorily now, it may not be necessary to update the system.
English Community Deutsche Community Comunidad en Español -
How to access the ORACLE APPS table structures from SAP
Hi Experts,
How to access the ORACLE APPS table structures from SAP? Is it possible from SAP?
Thanks in advance
ThomasHi Silviya,
you can access this database using a technique called DB Multiconnect - sometimes written as multi-connect.
Search the SAP documentation and notes for this term and you will find how to do it.
Essentially you configure the remote database connection via transaction DBCON.
If your SAP system is not running on Oracle you will need to install the db-specific kernel files for Oracle along with the Oracel db client software - SQL*Net.
Then you can access the Oracle database from ABAP using native-SQL. It works a treat!
Cheers
Graham Robbo -
How to import XML into SQL Table
Dear all,
There are a lot of books about exporting data into XML format.
Actually, how to use XML Documents? Sorry I am new that I ask such a question.
What i think may be exchange or save data using xml. If so, How to import into MS SQL table? Do it need to do any mapping?
Appreciate for your hintsAre you sure you want to use XML with tables for this? No doubt importing XML into tables is useful for some specialized tasks, such as importing formatting information inside the XML itself, but for most of the familiar tasks that XML excels at, tables are neither necessary nor useful.
In my (limited) experience, if the XML elements are well-differentiated, by which I mean different types of data have their own distinctive tags, then the special powers of XML can be exploited more fully using the more familiar tagged text, nested tags etc. in ordinary text frames using paragraph breaks, tab characters, etc. to achieve a suitably "tabular" finished appearance.
If you must import XML into tables, I recommend Adobe's own PDF "Adobe InDesign CS3 and XML: A Technical Reference" availabe here:
http://www.adobe.com/designcenter/indesign/articles/indcs3ip_xmlrules.pdf
It sounds very daunting -- the words "technical reference" make me shudder -- but actually it's very readable and not very technical at all. Some nice pics and everything!
Jeremy -
Hello,
How to find and remove obsolete table entries from below tables in EWM System.
/SAPAPO/MATKEY
/SAPAPO/MATMAP
/SAPAPO/MARM
/SAPAPO/MATLOC
/SAPAPO/MATMOD
/SAPAPO/MATRQ
/SAPAPO/MATLOTSZ
Thank you,
PravinPravin,
First, tell me how you determine that these entries are 'obsolete'.
Removing master data from SCM can usually be done using transaction WUF; however, you have to ensure that it is not re-sent to the SCM system, or you are just wasting your time.
Best Regards,
DB49
Maybe you are looking for
-
Rolling up item values in Sales Order
Hi Folks We have a project where we have a bundle with components with prices. Question 1)Looking for a solution where we would like to roll up all price components as statistically to the top of the bundle where it would sum up the prices and total
-
Where are flash player parameters stored?
Hello, when we modifiy our parameters for flash player here: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l where are these parameters stored in the computer? because i want to delpoy my parameters on all
-
2630 trouble using central scroll key for arrows
I just bought a 2630, and I am having a lot of trouble getting the central scroll/navigation key to work as arrows. It seems to be really difficult to click it at the four edges, for the four directional arrows, and have it not think I am just pressi
-
Bapi_user_change
i am creating a program that will change a user password i am calling the bapi_user_change and send to it the username, password and passwordx = 'X' but the user password dont change ( i even addaed commit work after the bapi but yet no changes ) doe
-
Visualización incorrecta en pantalla completa y proyección de diapositivas con Adobe Bridge
Pese a tener configurado Adobe Bridge (tanto CC como CS 6) para " generar vistas del mismo tamaño del monitor" y "siempre en calidad alta", al visualizar una imagen a pantalla completa o en la proyección de diapositivas, las imágenes se ven con poca