Is it possible to see/get the data from the table to a dump file
I have files dmp generated using expdp on oracle 11 g...
expdp_schemas_18MAY2013_1.dmp
expdp_schemas_18MAY2013_2.dmp
expdp_schemas_18MAY2013_3.dmp
Can I use a settings file given below to get the data from the table in the file sql or impdp the only option to load the data of table in database.
VI test1.par
USERID = "/ as sysdba".
DIRECTORY = DATA
dumpfile=expdp_schemas_18MAY2013%S.dmp
SCHEMAS = USER1, USER2
LOGFILE = user_dump_data.log
SQLFILE = user_dump_data. SQL
and impdp parfile = test1.par.
No,
DataPump cannot retrieve a dumpfile data in a flat file.
Dean
Tags: Database
Similar Questions
-
extract data from a table to a text file
I need to extract data from a table to a text file, I twist my output is the following...
bash-3. $00 vi tap3roamercosts_20110915144318.txt
lines of 'tap3roamercosts_20110915144318.txt' 393948, 23464348 characters
^ LAFGTD | N | 2011090203000001 | 13242514000064 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
755. 64. 70. 0093794428588 | 0093796234547 | 0 | S2 | E | 412200306902634 | 8. 1. 61500 | 16081 |
| HW | Call to the Roamer. 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | LKA | N_I_Independent
the time of day. Rate of Roamer SMST systems | AFGTD20110902030000010001013242514000064 |
|||||||||||||||||||||
AFGTD | N | 2011090203000001 | 13242612000044 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
853. 44. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000044 |
||||||||
AFGTD | N | 2011090203000001 | 13242612000047 | 1. 0 | 20. 41220 | 02-SEVEN.-11. 01-SEPT.-11. 0 | 13244
853. 47. 70. 234. 0093793252818 | 0 | S2 | E | 412200303198150 | 8. 1. 61000 | 12403 | HW | -Ro
bitter call | 0 | I have | Roaming billing Inroamer Plan | 1_0_1 | N_I_Independent time of Da
There | Rate of Roamer SMST systems | AFGTD20110902030000010001013242612000047 |
||||||||
.
.
.
.
.
Please help me how to format my output each record in simple lines in oracle sqlplus. Here are the settings I used...
TERMOUT OFF SET;
SET ECHO OFF;
SET LINESIZE 100000;
THE VALUE OF NEWPAGE 0;
SET SPACE 0;
SET PAGESIZE 50000;
SET FEEDBACK OFF;
SET THE OFF POSITION;
SET TRIMSPOOL
SET THE TABAnd what was wrong with the answers that you have on your previous thread?
How to extract data in a text file
Please do not ask the same question again. If there is a problem with the answers provided, then continue on the same thread that tell people what is the problem.
Saying that, this is another possibility for you...
As user sys:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles' / GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser /
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2 ,p_dir IN VARCHAR2 ,p_header_file IN VARCHAR2 ,p_data_file IN VARCHAR2 := NULL) IS v_finaltxt VARCHAR2(4000); 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_fh UTL_FILE.FILE_TYPE; v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file); BEGIN c := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE); d := DBMS_SQL.EXECUTE(c); 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,2000); 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,2000); END CASE; END LOOP; -- This part outputs the HEADER v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767); FOR j in 1..col_cnt LOOP v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),','); END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); IF NOT v_samefile THEN UTL_FILE.FCLOSE(v_fh); END IF; -- -- This part outputs the DATA IF NOT v_samefile THEN v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767); END IF; 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 DBMS_SQL.COLUMN_VALUE(c,j,v_v_val); v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val); v_finaltxt := ltrim(v_finaltxt||','||v_n_val,','); WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val); v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),','); ELSE v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',','); END CASE; END LOOP; -- DBMS_OUTPUT.PUT_LINE(v_finaltxt); UTL_FILE.PUT_LINE(v_fh, v_finaltxt); END LOOP; UTL_FILE.FCLOSE(v_fh); DBMS_SQL.CLOSE_CURSOR(c); END;
This allows the header line and the data to write into files separate if necessary.
for example
SQL> exec run_query('select * from emp','TEST_DIR','output.txt'); PL/SQL procedure successfully completed.
Output.txt file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno 7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20 7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30 7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30 7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20 7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30 7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30 7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10 7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20 7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10 7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30 7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20 7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30 7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20 7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
The procedure allows for the header and the data to separate files if necessary. Just by specifying the file name "header" will put the header and the data in a single file.
Adapt to the exit of styles and different types of data are needed.
-
Export data from Oracle table to a .csv file by putting a condition on the value of a column
Hello gurus,
I have the following data in my table
ROWID name version date
1 oracle 11.1 20/12/2013
Java 2 7 12/10/2011
1 oracle 12.1 28/12/2013
1 oracle 10.2 12/06/2010
Now I need a general sql/plsql code who wrote the columns with a specific value to the rowid.
My output should look like
1,Oracle,11.1,12/20/2013
1,Oracle,12.1,12/28/2013
1,Oracle,10.2,06/12/2010
Here, I want to pass the value as a parameter dynamically
Can someone help me with the sql/plsql.
Hello
If you use the IN operator:
Select rowid_col
|| ',' || name_col
|| ',' || version_col
|| ',' || To_char (date_col, 'HH24:MI:SS of Mon-DD-YYYY') AS csv_text
from your_table
where rowid_col IN (& input_values);
then & input_values can be a unique number (e.g. 1) or a list separated by commas (for example, 1,2,3) numbers. Don't put NO space around the comma.
-
Get the table to an XML file with several bays
Hello
So I was faced with this program I have for the past few months but I'm almost there. I have a program that creates several berries and place one after the other in an xml file, and each table has its unique name. Now, I would create a VI that takes this XML file and when the user enters the name of the table specific they are seeking it goes into the xml file concludes the table in its entirety under this name and displays in an indicator of output to be read on the VI. A sample of my xml file and the VI that creates this xml file is attached.
Thank you
dlovell
Something like this should work for you.
-
How to get the path (using <; input type = "file" / >;)
Hello world
I create a HTML form that has an entry of type = "file". This will give you a dialog box browse for your user to search for a file on the operating system.
And my code:
function handleFileSelectForMyShop (evt)
{
var blnFileReaderSupported = false;Try
{Debug.log ("handleFileSelect", "start handleFileSelect");
reader of var = new FileReader();
blnFileReaderSupported = true;
var files = evt.target.files;
var size = files.length;Debug.log ("handleFileSelect", "handleFileSelect # selected files:" + size, debug.info);
for (var i = 0; i)< size;="">
{
Debug.log ("handleFileSelect", "in the handleFileSelect analysis the index file" + i, debug.info ");
var f = files [i];
Reader.OnLoad = (function (theFile)
{
Debug.log ("handleFileSelect", "start reader.onload", debug.info);
return Function
{
Debug.log ("handleFileSelect", "start Function", debug.info);Debug.log ("handleFileSelect", "reading file" + theFile.name + "(" + theFile.size + "") "" + theFile.type, debug.info);
If (theFile.type.match ('image.*')) {}
var path = e.target.result;
alert (path);
create the path} else {}
jAlert ("Please select photo!', 'Error'");
}
};
})(f);If ((f.type.match ('image.*')) |) (f.type.match ('audio.*')) | (f.type.match ('video.*')))
{
Debug.log ("handleFileSelect", "in handleFileSelect call reader.readAsDataURL for type" + f.type, debug.info);
Read in the media file in the form of a data URL.
reader.readAsDataURL (f);
}
}Debug.log ("handleFileSelect", "Complete", debug.info);
}
{} catch (e)
Debug.log ("handleFileSelect", e, debug.exception);
If (! blnFileReaderSupported)
{
Alert('Error.) The FileReader API is not supported. ") ;
}
}
}function doPageLoad()
{
Try
{
ELE var = document.getElementById ('txtFile_staffInfo');
If (ele)
{
ele.addEventListener ('change', handleFileSelectForMyShop, false);
}
imgSelectPictureClick = 0;
}
{} catch (e)
Debug.log ("doPageLoad", e, debug.exception);
}
}window.addEventListener ("load", doPageLoad, false);
Note: And alert (path) leads to a Base64 string! It is not a path of the image that I browse a Spain file on the operating system.
I want to have a full path of the file. For example: file:///accounts/1000/appdata/WebWorksAppTemplate.testa3NBcHBUZW1wbGF0ZSAgICA/shared/camera/image01.jpg
I hope to see your reply soon!
Thank you and best regards,
A Pham
A Pham
I think that you can not get the absolute path of a file due to browser security, when you use the
It's something that you need probably a PlayBook extension for.
-
How can I get the back toolbar that says "file, editing, history, tools, etc.?
Don't see the menu bar (file, publishing, display, history...) (Help)? Hold down the key (key in OSX) and press the following letters in this exact order: V T M
The bar of menus must now appear permanently, unless you turn it off again (view > toolbars). Turn on/off the menu bar is a new feature in version 3.6.
See the other bars under view > toolbars. Click on one of them will place a check mark (display) or remove the check mark (not shown).
To display the status bar, display, and then click status bar to place a control mark (display) or remove the check mark (not shown).- If items are missing then see if you can find them in the view > toolbars > customize window.
- If you see the item in the window customize then bring her back in the window, customize the Navigation toolbar.
- If you do not see this item then click Restore default set in the view > toolbars > customize window.
-
HDR-CX240... How can I get the camera to record all FILES VIDEO in MP4 format. Is this possible? I can't find how to change what default file to save to. Any help would be appreciated.
Hi dang201,
There is no option to save the video in mp4 format only. You can check on the MProot folder on your memory card for mp4 files. The. MTS files are normally saved in another folder called flow.
If my post answered your question, please mark it as "accept as a Solution.
-
I use a Dell Dimension E310 PC running Windows XP Media Center Edition. The CD/DVD drive has stopped recognizing CD long ago. (He still recognizes DVD but not CD). I use an external drive to CD/DVD of Asus. I keep getting messages that Windows need to replace versions unrecognized some Windows file and asks me to insert my source CD into the CD/DVD drive. I checked the MS Knowledge Base and got instructions on how to use the utility (SFC) System File Checker to replace the unrecognized Windows files. I started the process and inserted the source of CD files (recovery CD provided by Dell with the PC when I bought it) in the drive of external CD/DVD, but the SFC would not recognize it it. He just kept asking me to insert the CD of source files in the CD/DVD drive. So I have to find a way to get the SFC utility to find files in the external CD/DVD drive source - or I have to take the PC to the Geek Squad, buy a new CD/DVD drive and get them to install it. Would appreciate any help you can provide.
GO to start > run > regedit
Access
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SetupSourcePath = X:
Where X: is the drive letter of your CD/DVD
-
When I try to open a game (Chess Titans, inkball, etc.), I get the following message: "c:\Program Files\Microsoft Games\Chess\Chess.exe the specified path does not exist. Check the path and then try again. "Should I do to get my games back so I can play them? I've tried enabling/disabling of Windows features, but it did nothing. I also tried to go through the run, but that has not worked. And, I tried command prompt, but it says that I am not the administrator, who I am.
Not accessible games
I haven't had any changes consciously, and the games do not work in any user account. When I've done sfc/scannow (command prompt) he said that I was not the administrator. I could learn from another source to solve this problem - in the start menu, right click on the command prompt icon, and then click Run as administrator. Hope everybody help with this problem. If you do not have command prompt in your Start menu, any type of command prompt in your search box and it should appear.
Anyway, my games work now. Thank you
-
Original title: help & support files
Windows 7 Professional. All help & support files have disappeared. I get the message "help and support files cannot start."
How to return please?.
Perhaps. An analysis of file system I think would replace the help files, but you can try it, there is no harm. Just open a command prompt (right click and "open as Administrator"), and then type sfc/scannow
-
How do I get the table cells?
It's my get code that any object in propagation.
Int32 childCount = parent-> GetChildCount();
for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)
{
InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));
ChildUIDRef = UIDRef: GetUIDRef (child);
TextFrame table
}
How do I get the table cells?
You can access the table using ITableModel and GridAddresscell.
But to get to the ITableModel since ITextModel implies some complexity.
Few things to understand:
-L'interface that corresponds to the written document is ITextModel
-The recommended method to iterate tables in a story done by ITextStoryThreadDictHier
-Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()
-Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.
Once you have ITableModel you can get ITableCell as follows:
ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell
You can refer to SnipperRunner (SnpManipulateTextModel).
Download text template table model:
InterfacePtr
textModel (storyUIDRef, UseDefaultIID()); InterfacePtr
textStoryDictHier (textModel, UseDefaultIID()); NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary
Now loop the dicthier to iterate through all the threads dicts.
InterfacePtr
textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID()); InterfacePtr
tableModel (textStoryThreadDict, UseDefaultIID()); If (tableModel) / / the storythreaddict represents a table
{
You are now in a table
}
-
How to get the absolute path to a file in photoshop extended?
Hello
I try to send a file via an entry inside an extension of Photoshop. But how can I get the absolute path to this file inside the computer?
Thanks in advance
I don't know what you mean by sending a file. Do you want to open a file in PS or do I have to declare the path for support for the extension file? With javascript, you must define a variable. In Win it should look like:
var file = new File('/c/images/myfile.psd');
or
var myScript = new File(app.path + '/Presets/Scripts/myJavascript.jsx');
-
When I run Muse I get the following error message: error [file/deleteFile]: error #3013: file or directory is in use. I click OK and then it closes.
NEVER MIND... it seems that error is that if I try to open the Muse by clicking on the file in Web site... If I just opened Muse itself I do not receive the error message.
-
How can I insert data from another table into a table containing a timestamp column
How you insert data from another table in a table if the target table contains a timestamp column. I tried to set the default value of GETDATE() column in the target table, but it does not work.
I use MS SQLSorry, I managed to get around this by inserting null as the value
-
data from 3 tables with later dates
Hello
Need help with the PL/SQL code, I need to write a code that will get the data from 3 tables with the most recent date.
For an individual ACT_CODE the output of the SQL query should display the data including the last dates back to 3 tables, if there is no
Date of the table, it should show the remaining data (think that the left join will do here)
Names of tables:
Institution_UPDT aiu
AC ASQ_CONTACT
GR_AUTHORIZE gr
All 3 tables have ACT_Code in common
Column names
INSTITUTION_UPDT IAU - IAU. ACT_CODE, AIU.project_id as proj, IAU. UPDT_TYPE_ID, IAU. User_id, IAU. UPDT_DATE
ASQ_CONTACT ac - ac. ACT_CODE as contact_code, ac.project_id, ac.first_name, ac.middle_initial, ac.last_
Name, AC.title, AC. Status, AC.status_date
GR_AUTHORIZE gr - GR ACT_CODE as grad_code, gr.name, gr.title AS grad_title, gr.submit_date
Are the names of the columns date
AC.status_date,
IAU. UPDT_DATE and
Gr.submit_date
Thanks to you all
appreciate your help
JeshHi, Ngoumba,
If a given ACT_Code couldn't miss from any of the tables, then you will use better full outer joins, not a join left outer.
Perhaps it would be more effective to make a UNION of the three tables, then rotate the results in three datecolumns.
You can use the GROUP BY aggregation to get the last date for each ACT_Code in each table.
If you need other columns in the row which is the last date, you can use the ROW_NUMBER analytic function, like this:SELECT ACT_Code , updt_date , ROW_NUMBER () OVER ( PARTITION BY ACT_Code ORDER BY updt_date DESC ) AS r_num FROM institution_updt
The lines with r_num = 1 are the most recent
This is a technique of ot the UNION-PIVOT example:
WITH union_data AS ( SELECT ACT_Code , MAX (updt_date) AS last_date , 1 AS table_id FROM institution_updt GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (status_date) AS last_date , 2 AS table_id FROM ASQ_Contact GROUP BY ACT_Code UNION ALL SELECT ACT_Code , MAX (submit_date) AS last_date , 3 AS table_id FROM GR_Authorize GROUP BY ACT_Code ) SELECT ACT_Code , MAX (CASE WHEN table_id = 1 THEN last_date END) AS aiu_updt_date , MAX (CASE WHEN table_id = 2 THEN last_date END) AS ac_status_date , MAX (CASE WHEN table_id = 3 THEN last_date END) AS gr_submit_date FROM union_data GROUP BY ACT_Code ORDER BY ACT_Code ;
Published by: Frank Kulash, on September 16, 2009 15:02
Added UNION-pivot example
Maybe you are looking for
-
Need new and better graphics card for my Satellite L30-10 W
Hello I have ATI radeon x 200 m and I'm looking for good drivers for it.I m using windows Vista.I have on my drive of the graphics drivers installed but don't worry all is well and that's why my computer is running very slowly.Maybe someone has a sim
-
Windows 7
-
Normalize the names in a huge table using UTL_MATCH
HelloI have a large table (350 million records) with a "full name" columnThis column has a few typos, so I have to 'normalise' the data (only for this column), using UTL_MATCH. JARO_WINKLER_SIMILARITY.I did some tests with a small table, and it works
-
Inspiron 3646, reset the Bios?
Hi, how do reset you the bios? I can´t use you button F12 or F2...
-
I have a problem installing updates for CS5. A message "there was an error downloading this update. Quit and try again later "what is it?