DataPump export part of the table
HelloI have the pattern, where I ca. 100 tables and two large tables, with hundreds of millions of records. I want to export the schema with restriction on this two tables with data pump so that only part of the data is exported as custom where condition. Is this possible with expdp?
I have hard to create the new table in the contours with my selection of data from large tables and then exclude the original paintings using the option EXCLUDE, however it seems to me a waste of resources and time on the server. Welcomes all ideas, thank you!
Published by: kamilp on October 5, 2009 07:25
Hello
Yes, just use the query clause and specify a table name:
Lets say, you want to get everything from the last 10 days of the big table 1
Anais = large_table_1: ' date_column > sysdate-10.
If you want to get everything with part_number more than 1000 for large table 2
Query = large_table_2 "part_number > 1000.
Use this solution in the export command
expdp System/Manager schemas directory of my_schema = dpump_dir = my_schema.dmp charly dumpfile = large_table_1: ' date_column > sysdate-10 "query = large_table_2"part_number > 1000.
Dean
Tags: Database
Similar Questions
-
How to export data from the table with the colouring of cells according to value.
Hi all
I use jdeveloper 11.1.1.6
I want to export data from the table with a lot of formatting. as for color cells based on value and so much. How to do this?
You can find us apache POI-http://poi.apache.org/
See this http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html
-
export data from the table in xml files
Hello
This thread to get your opinion on how export data tables in a file xml containing the data and another (xsd) that contains a structure of the table.
For example, I have a datamart with 3 dimensions and a fact table. The idea is to have an xml file with data from the fact table, a file xsd with the structure of the fact table, an xml file that contains the data of the 3 dimensions and an xsd file that contains the definition of all the 3 dimensions. So a xml file fact table, a single file xml combining all of the dimension, the fact table in the file a xsd and an xsd file combining all of the dimension.
I never have an idea on how to do it, but I would like to have for your advise on how you would.
Thank you in advance.You are more or less in the same situation as me, I guess, about the "ORA-01426 digital infinity. I tried to export through UTL_FILE, content of the relational table with 998 columns. You get very quickly in this case in these ORA-errors, even if you work with solutions CLOB, while trying to concatinate the column into a CSV string data. Oracle has the nasty habbit in some of its packages / code to "assume" intelligent solutions and converts data types implicitly temporarily while trying to concatinate these data in the column to 1 string.
The second part in the Kingdom of PL/SQL, it is he's trying to put everything in a buffer, which has a maximum of 65 k or 32 k, so break things up. In the end I just solved it via see all as a BLOB and writing to file as such. I'm guessing that the ORA-error is related to these problems of conversion/datatype buffer / implicit in the official packages of Oracle DBMS.
Fun here is that this table 998 column came from XML source (aka "how SOA can make things very complicated and non-performing"). I have now 2 different solutions 'write data to CSV' in my packages, I use this situation to 998 column (but no idea if ever I get this performance, for example, using table collections in this scenario will explode the PGA in this case). The only solution that would work in my case is a better physical design of the environment, but currently I wonder not, engaged, as an architect so do not have a position to impose it.
-- --------------------------------------------------------------------------- -- PROCEDURE CREATE_LARGE_CSV -- --------------------------------------------------------------------------- PROCEDURE create_large_csv( p_sql IN VARCHAR2 , p_dir IN VARCHAR2 , p_header_file IN VARCHAR2 , p_gen_header IN BOOLEAN := FALSE, p_prefix IN VARCHAR2 := NULL, p_delimiter IN VARCHAR2 DEFAULT '|', p_dateformat IN VARCHAR2 DEFAULT 'YYYYMMDD', p_data_file IN VARCHAR2 := NULL, p_utl_wra IN VARCHAR2 := 'wb') IS v_finaltxt CLOB; v_v_val VARCHAR2(4000); v_n_val NUMBER; v_d_val DATE; v_ret NUMBER; c NUMBER; d NUMBER; col_cnt INTEGER; f BOOLEAN; rec_tab DBMS_SQL.DESC_TAB; col_num NUMBER; v_filehandle UTL_FILE.FILE_TYPE; v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file); v_CRLF raw(2) := HEXTORAW('0D0A'); v_chunksize pls_integer := 8191 - UTL_RAW.LENGTH( v_CRLF ); BEGIN c := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE); DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab); -- FOR j IN 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000); WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val); WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val); ELSE DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,4000); END CASE; END LOOP; -- -------------------------------------- -- This part outputs the HEADER if needed -- -------------------------------------- v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_header_file,p_utl_wra,32767); -- IF p_gen_header = TRUE THEN FOR j IN 1..col_cnt LOOP v_finaltxt := ltrim(v_finaltxt||p_delimiter||lower(rec_tab(j).col_name),p_delimiter); END LOOP; -- -- Adding prefix if needed IF p_prefix IS NULL THEN UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt); ELSE v_finaltxt := 'p_prefix'||p_delimiter||v_finaltxt; UTL_FILE.PUT_LINE(v_filehandle, v_finaltxt); END IF; -- -- Creating creating seperate header file if requested IF NOT v_samefile THEN UTL_FILE.FCLOSE(v_filehandle); END IF; END IF; -- -------------------------------------- -- This part outputs the DATA to file -- -------------------------------------- IF NOT v_samefile THEN v_filehandle := UTL_FILE.FOPEN(upper(p_dir),p_data_file,p_utl_wra,32767); END IF; -- d := DBMS_SQL.EXECUTE(c); LOOP v_ret := DBMS_SQL.FETCH_ROWS(c); EXIT WHEN v_ret = 0; v_finaltxt := NULL; FOR j IN 1..col_cnt LOOP CASE rec_tab(j).col_type WHEN 1 THEN -- VARCHAR2 DBMS_SQL.COLUMN_VALUE(c,j,v_v_val); v_finaltxt := v_finaltxt || p_delimiter || v_v_val; WHEN 2 THEN -- NUMBER DBMS_SQL.COLUMN_VALUE(c,j,v_n_val); v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_n_val); WHEN 12 THEN -- DATE DBMS_SQL.COLUMN_VALUE(c,j,v_d_val); v_finaltxt := v_finaltxt || p_delimiter || TO_CHAR(v_d_val,p_dateformat); ELSE v_finaltxt := v_finaltxt || p_delimiter || v_v_val; END CASE; END LOOP; -- v_finaltxt := p_prefix || v_finaltxt; IF SUBSTR(v_finaltxt,1,1) = p_delimiter THEN v_finaltxt := SUBSTR(v_finaltxt,2); END IF; -- FOR i IN 1 .. ceil( LENGTH( v_finaltxt ) / v_chunksize ) LOOP UTL_FILE.PUT_RAW( v_filehandle, utl_raw.cast_to_raw( SUBSTR( v_finaltxt, ( i - 1 ) * v_chunksize + 1, v_chunksize ) ), TRUE ); END LOOP; UTL_FILE.PUT_RAW( v_filehandle, v_CRLF ); -- END LOOP; UTL_FILE.FCLOSE(v_filehandle); DBMS_SQL.CLOSE_CURSOR(c); END create_large_csv;
-
Export part of the signal in ASCII or excel
It is possible to select a part of the data stored and export it and not the whole record?
Munir
Hey Munir.
In addition to suggestions of Maria, you can also do the following:
1. in the window log (which is by default at the bottom left of the main application window), expand the symbol '+' next to the log that you want to export.
2. right click on the high level group of data and select 'create journal subset"(as shown below). This will open a dialog box that allows you to create a subset of time your selected data. Either use the Start Time/Stop Time indicators to make your selection of subset or use red cursors on the preview graph. Then click on create.
3. when the dialog box disappears, you will have a new entry of newspaper with the same name and the word "subset". Expand this new subset of newspaper and right click on the high level group. You will have 3 export options: a) convert text, b) export to Microsoft Excel and c) open in tiara. Select the option you want.
Hope this helps also.
Phil
-
Hello. Is it possible to export data from a table in Oracle using SQL Loader? If Yes, can you tell a good examples?
Hello
Hello. Is it possible to export data from a table in Oracle using SQL Loader?
No, with SQL * Loader, you can load data from external files into tables not export.
coil c:\temp\empdata.txt
sqlplusabc.sql (assumes that abc.sql runs select * from emp)
spool offIt cannot work like this, because the declaration of the COIL is not recognized outside the SQL * Plus the term.
But, you can include the statement of the COIL in abc.sql like this:
spool c:\temp\empdata.txt select * from emp; spool off
Then, you just have to run the SQL script as follows:
sqlplus
@abc.sql However, I advise you to use Oracle SQL Developer, this is a free tool and with it you can export a Table in several types of format (html, xml, csv, xls,...).
Please find attached a link to this tool:
http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/Overview/index.html
Hope this helps.
Best regards
Jean Valentine -
I would like to export a part of my project in two hours two minutes to record on DVD or send it to a friend. My project was imported from VHS via a Canopus ADVC 110 analog digital converter and thus is one continuous piece. I have edited, but now I want to export a particular edited clip. How this is done? Thank you!
Welcome to the forum.
There are two simple ways to do so.
First of all, mark you segment with the WAB (work area bar) and share in DV - AVI w / 48 KHz 16-bit Audio. Then import that into a new DV project, add Menus, and burn to disc.
Second, do a Save_As, leaving your original project intact. Then, remove all but this segment. Add Menus and burn them on DVD.
Good luck
Hunt
-
export all excluding the table
Hello!
I am trying to export a schema and to exclude the 2 tables. I'm working on 10g on RHEL5.
I use
expdp schemas = exclude BARRY = TABLE: '('TBL1', 'TBL2') IN' dumpfile = barry.dmp logfile = barry.log
and I get the following errors:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
With the partitioning, Real Application Clusters, OLAP, data mining
and Real Application Testing options
ORA-39001: invalid argument value
ORA-39071: value for EXCLUDE is ill-formed.
ORA-00936: lack of expression
Where I'm going wrong?http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/dp_export.htm#BEHJHGHB
Is this the case?
-
Calculated value in the upper part of the table?
Hello
I am writing a report from scratch to use E-Business Suite. I created my definition of data and model RTF, but am struggling with a requirement of the company on the model.
We have a tabular report that has some data. The company now want a calculated value that can be displayed on the report, but they want it at the top of the report, rather than the end. So I need to make the report (because then the variables from the report are filled and the calculation is done) but then display the result of this before the report. Is this possible? Pointers are appreciated.
Thank youLooks like that
>
>
has for each
Try to sthcount(PART_NUMBER)
-
I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!
Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.
When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.
-
Hello.
I have a table and where at a specific index, I need to remove the small part of the table as:
Col 0
1 pass
2 in case of failure
3 in case of failure
pass 4
5 in case of failure
6 in case of failure
No I have to remove table top, 1 three elements and then two elemets and last remaining two items that I'm not able to do using the delete table icon.
So, if someone can help me.
Thank you
-
Pagination of the table in a query with table Panel
Hello
I need to implement paging in a table as long as the results of a query which makes the user, the table that the query is run has several records, 40000 or more.
I searched but I can't find a way to apply what I, some links show me how to insert the pagination on the part of the table, but if I only do when I want to see a different page, let's say 500 or 1000, it takes too long to display the data of that specific page. I'm guessing it will retrieve all the data from the query and read it all so it can show what I want.
Another way is to control the amount of data to be returned from the view object (VO), but I am unable to perform paging efect component table in my file jspx somehow.
I think I should change my VO both my component so I can get the effect I want, but I don't know how. Properties that I need to change to achieve this.
THK
If I set the af: non paginated table mode the number of pages do not appear.
Then maybe you can use the code from this blog to do it manually:
http://www.Ateam-Oracle.com/adventures-in-WebCenter-skinning-aftable-with-custom-pagination/
The only optimization that I think is missing is somehow when I select the page from the list of results, will retrieve only the data on this page.
Yes and for this you must range Paging in VO (so the result of the query may be limited by the size of the range).
But, as I mentioned in my first reply, range of paging is bug in 12.1.3 then maybe the same applies to 11.1.1.7
Dario
-
Police of change on the header of the table of contents
Anyone know how I can change the font on the header of the Table of contents in Captivate 8? I can't find anywhere on the skin Editor.
He is buried in the skin Editor. Go to the part of the table of contents of the Publisher of the skin (shift + F10). Then click on the info at the bottom button. The following screen should appear. You must be sure to select the actual header including police label you want to change.
-
The table at the bottom of table border
When I run the table on the next page, the lower part of the table border disappears. It seems that at the end of the table. The table that I use is as long as 5 pages and the border does not appear until page 5 (last page).
I can apply the cell style to the line at the bottom of page. However, I wonder if there is that a gap Indesign automatically applies the border at the end of each page? Thank you
There is no way to make it automatic. The border settings are supposed to be around the entire table (which in your case is deep 5 pages).
You may be able to create a cell style and change only the background race to match the appearance of the border. Then apply it to the lower cells of each page.
-
Lose the vertical alignment of the table during the conversion of the ditamap to book
FrameMaker Version: 12.0.4.445 (later part of TCS5)
- I have a project structured, where several XML files have been grouped in a ditamap.
- For one of the XML files, I have a table, where I need to set the cell Vertical alignment of cells in the MIDDLE.
- So using Paragraph Designer > table cell, I have change the entries in the top in the Middle (the default values have been Top).
- With the ditamap pane selected, I'll then menu file > > Save Ditamap under
- I save ditamap as ' book with fm components 12.0 (* .book) "file type.
- In the resulting book, the XML files are now. FM files.
However, at this point, when I open the. File of FM which has the table, the cell styles back to the TOP.
I searched high and low for a similar problem. It's look like a bug to me, but can someone confirm?
Thank you
No, this is not a bug by itself. I bet that the alignment is lost before you generate the book. After you set the alignment and saving and closing the file... reopen and see if the alignment is still there... I bet it's gone. As a general rule, you cannot apply put in shape or properties to objects (elements) in a DITA file. This applies to font and paragraph properties as well as table set in shape and other types of development in the form. All you can do is create items and set attributes. Any parameter properties will usually be lost on file save.
You would probably need to have a 'process of publication' (script any) you run your generated book and chapter files that would scan for an attribute that shows some properties must be set on the table. The @outputclass attribute is typically used for this kind of thing. I'm not aware of what anyone in default FrameMaker DITA, who put in place to manage this type of formatting of the tables.
If this formatting that you try to apply is consistent for the whole table, it is possible that you will be able to do this by creating a new table format that has this set of default formatting. When you insert a table in a subject, the table format is assigned to the tgroup/@outputclass attribute and this is the form that is used when rendering the table. Just create a new table in the structured application model and put in place this format to have the properties you want. Then, when you insert the table, be sure to select this format. It can be hard to set this up, but it * should * work.
However, if this does not work, or you need more refined formatting applied to the parts of the table, I produce a tool called DITA-FMx, which offers extended DITA creation and publication of the options for FrameMaker. It offers features that allow this type of table set shaped to be applied by setting the attribute @outputclass to a specific value on the line or cell. You can get more information on DITA-FMx here...
http://leximation.com/DITA-FMX/
Good luck!
Scott Prentice
Leximation, Inc..
www.leximation.com
-
Purge the table FND_LOBS (attachmentolders of 2 years) to the cleaning table space
Hello
I have a requirement to serve the table FND_LOBS (spare part which is over 2 years old) in the cleaning table space.
Please advise me which is the best way to serve FND_LOBS.
I already went through the Notes below, but no luck...
--
871721.1 - how to purge FND_LOBS?
555463.1 - how generic Purge or purchase spare part of the Table FND_LOBS
298698.1 - avoiding an abnormal growth of the FND_LOBS table in 11i Applications
303709.1 - recovering unused space in the tablespace APPLSYSD
555463.1 - how generic Purge or purchase spare part of the Table FND_LOBS
--
Thank you
Genoo
Published by: Geno on April 1, 2013 05:32Geno says:
None notes solve my requirement, I don't see an option to purge only the data that is older than 2 years.Thank you
GenooPurge FND_LOBS table can simultaneous running of 'Purge obsolete generic Queue Manager Data' program - simultaneous treatment - how to add the simultaneous program "Purge obsolete generic Queue Manager Data" to the Sysadmin User. [216541.1 ID]
You can find more information about the settings for this program at the same time (questions on purge stale data of generic file manager [1165208.1 ID]).
Thank you
Hussein
Maybe you are looking for
-
I need an icon to launch my Office Outlook e-mail application
I want to add an icon on the toolbar to open my Office Outlook 2007 email software. I used to use "GetMail" but this site seems to be infected with antivirus software and I do not trust. I installed but which only works in the file menu of the applic
-
Hello After the upgrade to Windows 10, as dim and mic power function keys have stopped working. I installed all the drivers, and there is no unknown device in System Manager. How can I solve this problem? Model: HP ProBook 440 G3 P5T15EA #ABU
-
I have a laptop HP ENVY 14 1111nr. I downloaded HP Quickweb out of the support Web site. I ran the installer, and it wanted to install it on the HP_TOOLS partition. This partition was not enough space, so I went to it management counsel to try to inc
-
HP 1040 G1 Folio: HP 1040 G1 gobi WWAN and Windows 10 lt4112 Folio
Dear Forum, I just upgraded my G1 Folio 1040 to 10 Windows and now the module WWAN (gobi lt4112) no longer works. I installed the latest drivers, but the system does not see and in Device Manager, it appears in the device generic form broadband with
-
Sansa Media Converter does not
I have a problem with my sansa Media Converter. When I open it, it happens instantly when I try to open it