SqlPlus, output to file ONLY?
Hey,
I use SPOOl to write my output to a file but i dont want the result to be printet in the terminal.
Is there a way to do this?
Thanks
//Kenny
Hi,
782069 wrote:
Hello and sorry for my late response,
I call the script with the following command:
sqlplus user/pass@database @/path/to/script
Let's say in the script.sql there's a sql query like this:
select * from table;
exit;
Then the out put would be:
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jul 21 09:06:13 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Ansluten till: <---- Swedish for "Connected to" :)Men svenska är ett vackert språk! Varför vill du inte se så mycket som möjligt?
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Column_name1
Column_name2
Data1
Data2
Swedish for "Disconnected from" Frånkopplad från Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
I can remove the query output with:
set termout off
But i want to remove the stuf like:
Swedish for "Disconnected from" Frånkopplad från Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production
Is there a way to remove this? Sorry, not that I know of. I believe Oracle produces that stuff before it even starts to execute your script, so nothing in the script can change it. If there's a way to suppress that output, it's probably some Operating System command.
Sorry for the messy text but i dont know how i create code boxes :)Type these 6 characters:
\(all small letters, inside curly brackets) before and after each section of formatted text. Otherwise, this site compresses whitespace.
Thanks in advance :DVarsågod!
Similar Messages
-
When I Generate PDF file(In Hindi Word) then Output is Blank only Englis
Hi,
When I Generate PDF file(In Hindi Word) then Output is Blank only English is coming.
So can u suggest me ,How to show PDF file in Hindi word.I am using jasper report and Jasper report internally Jasper viewer output is showing all format.But PDF is not showing..
I am using jasper report 4.0.1.
Plz help me..
Thanks
AnupHi,
searched your post for keywords "JDeveloper" "ADF" "JSF" but could not find them. So are you sure you are posting to the right forum?
If you have an issue with MS WOrd and PDF then Microsoft and Adobe are the ones to call for help. Jasper Reports also is not owned by Oracle, which is another area you want to investigate
Frank -
Output Mutiple Files Using htp.p
Hello,
I wish to output 3 CSV files from APEX I have the following code
Declare
S_FileName VarChar(20);
S_Counter Number;
begin
-- Set the File NAme
S_FileName :=To_char(sysdate,'yyyymmdd')||'Letters.CSV';
For S_Counter IN 1..4 LOOP
-- Set the MIME type
owa_util.mime_header( 'application/octet', FALSE );
-- Set the name of the file
htp.p('Content-Disposition: attachment; filename="'||S_FILENAME||S_Counter|| '"');
-- Close the HTTP Header
owa_util.http_header_close;
-- Loop through all rows in EMP
for x in (select MPAN_CORE,ACCOUNT_NO
from Categoriser.LTNA_LETTER_ONE_OUTPUT@link_to_dqmDevdb )
loop
-- Print out a portion of a row,
-- separated by commas and ended by a CR
htp.prn(x.MPAN_CORE ||','|| x.ACCOUNT_NO ||','||
x.MPAN_CORE || chr(13));
END LOOP;
END LOOP;
-- Send an error code so that the-- rest of the HTML does not render
htmldb_application.g_unrecoverable_error := true;
end;
At this stage i only want to output 3 files the content is not a issue
I it possible to do this with APEX?
Any help on this is greatly appreciated.
DavidI take it from the lack of response that this is not somthing that APEX can do?No, it's something that HTTP cannot do. Think about it: if it was possible for a server to send multiple files in response to an HTTP request, then it would be possible to break your computer very easily indeed.
aww well looks like i will need to find another way..You'd need something in the browser client-side, Java applet, Flash control etc... -
Output XML file problem (in FILE to RFC scenario)
hi,
my problem is that in the export parameter i have 3 variables but my output xml file shows only 2 parameters . I have checked my mapping all 3 parameters are mapped properly in output mapping .
Initially when i started the scenario there were only 2 parameters in my export list .
i completed this suuccesfully and then as per new requirement one more parameter was needed to be added i added a new parameter and reimported my rfc .
the response tab of the reimported RFC shows me the newly added parameter but my final xml file only shows me the previous 2 it doesnt show me the newly added one is there any seeting which i need to change like in idoc where we have to readd the idoc in IDX2
With regards
Bhawarlal ChoudharyHi,
2 Introduction
Configuring IDoc adapter in Exchange Infrastructure 3.0 requires some configuration on the SAP
systems, for both XI and the backend system where the IDoc message is to be sent. These steps, although
simple, are many times missed or mis-configured, causing the delivery of messages to fail.
Since IDoc adapter uses the ABAP stack, instead of J2EE, the configuration requirements are mainly in
ABAP.
Setting up IDoc adapters requires the XI integration server to be able to communicate with the backend
SAP system, and also to make sure that the Logical System Name used when posting IDoc exists on the
backend SAP system.
3 The Step By Step Solution
The basic steps for the IDoc configuration are outline below:
1. Configure SM59 on XI to communicate to SAP backend system.
2. Configure port on XI for IDoc communication.
3. Create or verify the Logical System Name on the SAP backend system.
4. Create or verify business system in XIs System Landscape Directory.
5. Verify the Logical System Name of the business system.
6. Verify or add the Logical System Name for the sender business system.
7. Create/configure the Communication Channel for the IDoc receiver adapter
3.1 Configure SM59 on XI to communicate to SAP backend system.
1. Using transaction SM59, create an RFC destination with Connection Type = 3.
In this example, the RFC destination name is NDVCLNT510.
2. Enter the logon information:
3. Test the connection by clicking on Testing connection and Remote logon.
Both must be successful.
3.2 Configure port on XI for IDoc communication.
4. Go to transaction IDX1 on XI, and create a port. In this example, the Port name is SAPNDV.
The Port name must be in the form of SAPxxx, where xxx is the system ID of the backend SAP
system.
The Client must be the client number of the backend SAP system.
Select the RFC Destination which was created in the previous step.
3.3 Create or verify the Logical System Name on the SAP backend system.
5. Enter transaction SALE on the SAP backend system.
6. Create or verify the Logical System Name. In our example, NDVCLNT510 is verified.
3.4 Create or verify business system in XIs System Landscape Directory.
The business system name for the SAP backend system must contain a valid Logical System Name. This Logical System Name is the one verified or created in the previous step.
7. In the System Landscape Directory, select the SAP backend business system. If one does not exist, then create the business system. Verify the Logical System Name.
3.5 Verify the Logical System Name of the business system.
8. In the Integration Directory, doubleclick on the business system (in our example, it is NDVCLNT510).
Navigate the menu:
Service Adapter Specific Identifiers.
If information is empty or incorrect, then it will have to be synchronized with the content of the System Landscape Directory. Follow the steps below for synchronization.
9. (Optional) Synchronization of the business system in Integration Directory to the business system in System
Landscape Directory.
Double-click on the business system in the Integration Directory.
Switch to Edit mode.
Select menu: Service Adapter-Specific Identifiers
10. (Optional) Within the dialog box, click on the button as indicated below to resynchronize.
11. (Optional) If the expected data from the System Landscape Directory is not updated, then the SLD cache may need to be cleared first.
3.7 Create/configure the Communication Channel for the IDoc receiver adapter.
15. In the Integration Directory, create an IDoc receiver communication channel.
The RFC Destination is from step 3.1.
The Port is from step 3.2.
NOTE:
There is no need to create an IDoc sender Communication Channel for XI. Instead, the backend SAP system must be configure to send the IDoc to XI.
4 Appendix
Transaction: IDX2
There are a couple of situation where IDX2 can be useful on the XI system.
1. When we want to test connection between the XI and SAP backend system.
2. When an IDoc has changed, and the meta data stored in XI needs to be update. When an IDoc is sent from the SAP backend system to XI, XI will first check to see if the meta data for the IDoc is already in its persistent cache. If not, then XI will use the configuration in IDX1 to retrieve the IDoc meta data from the backend system. If the
meta is already in cache, then it will NOT do so. Therefore, when an IDoc has changed, it is necessary to manually update the new meta data on XI, or delete it from the cache, so that the latest version can be retrieved. IDX2 is used for this purpose.
Go to transaction IDX2 and click on Create.
Enter the IDoc Type and the Source Port as defined in step #2. Click Continue.If successful, the following will show up. If error occurs, then the IDX1 configurations will need to be re-checked.
Regards
Hemant
If find helpful plz award points -
Problem with RTPExport output video files
Hi, I have a problem with RTPExport output video files. One side streams H263/RTP(AVTransmit2.java) and other write this steam to a file by RTPExport.java. When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Pls how can I achieve output file that will have the same fps like original one? How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Its there a way to modifi rtpexport or avreceiver to do this? Thanks a lot!
Trubka wrote:
When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Okay, first off, the second file is smaller on purpose. RTP intentionally drops packets that are old/out of order in order to make sure real-time video stays as close to real time as it can. This is by design, so there's really nothing that can be done about it.
How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Technically speaking, what you're getting in the RTPExport is exactly what you got on the receiving end. Any frames that are dropped during transmission will not be seen by the receiver, nor saved by the receiver.
Pls how can I achieve output file that will have the same fps like original one? I'm not 100% sure that you can, but, you can give the following idea a try. I make no guarentees that it'll work, but it should work for you...
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/RTPConnector.html]
That example is an example of a "custom transport layer" for RTP connections. Essentially, it's some code that's handed the RTP packets on the transmission end, and it's expected to deliver those RTP packets on the other end. And it doesn't care about how they get from A to B, only that they do.
If you were to replace the UDP socket in that example with a TCP socket, you would be guarenteed not to drop packets due to network reasons. Every RTP packet you were handed by the transmitter, you would then hand to the receiver. There is no guarentee that none of the packets would be cast away as "old" by the RTP protocol itself, but there's also no guarentee any of them would be. It's a crap-shoot at best, but it's certainly worth a try. -
How to set an output spool file size
hi experts,
now i am run a output spool file transaction, if i run in a small volumn, it is only give one output spool file which is ok for me, but if in a full volumn run, it will give a multiple output spool file which is not what i want, so i was wondering if the output spool file size can be set somewhere and only give me only one output spool file when in the full volum run.
thanks.Hi,
Have you tried transaction SP01O.
Regards,
Atish -
Want to display a space after last field in the output txt file
hi
I want to display a space after last field in the output txt file which is generaed by my program on utility server the last field lengyt we have defined is four and in database it is of three characters and requirement is to disppaly the last fourth field as space in the output file w hich is not shown as the txt file automatically gets closed at the third place as it is the last field in the record and ind atabase records are of therss char only but user wants to display this fourth position in the notepad output file as space ( which is last field in the output file)
eg
name house street country
record output coming in file
ram h3 street3 thn now this thn which is last field the notepad get closed at thn only
i want to display one space in last field for the whole of output file
ie ram h3 street3 thn(space)
sham h4 street4 sgp(space) so on......
we need to show this space in the output file as blank
regards
Arorahi Atish
i am using
loop at gt_sagadr_outtab into wa_sagadr_outtab
move wa_sagadr_outtab-country to wa_sagadr_text+223(226).
endloop
in this last field ie country i need to display the last 226 as blank as only country key is two char in database so the last space is not shown
i am not unsing the fM as tolb by you
and afterwards
i am usning
Concatenate 'Sagadr_' sy-datum sy-uzeit '.dat' into gv_filename_sagadr.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
CLIENT = SY-MANDT
LOGICAL_FILENAME = gc_lfile
OPERATING_SYSTEM = SY-OPSYS
PARAMETER_1 = gc_param1
PARAMETER_2 = gc_send
PARAMETER_3 = gv_filename_sagadr
USE_PRESENTATION_SERVER = ' '
WITH_FILE_EXTENSION = ' '
USE_BUFFER = ' '
ELEMINATE_BLANKS = 'X'
IMPORTING
EMERGENCY_FLAG =
FILE_FORMAT =
FILE_NAME = gv_filepath_sagadr
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
and lastly
open dataset gv_filepath_sagadr for output in text mode encoding default.
if sy-subrc eq 0.
loop at gt_sagadr_text into wa_sagadr_text.
transfer wa_sagadr_text to gv_filepath_sagadr.
endloop.
endif.
close dataset gv_filepath_sagadr.
if sy-subrc = 0.
message S002 with gv_filepath_sagadr. "Files & created on Application server
endif.
SO NOT SURE WHERE TO USE THE CODE AND HOW -
SQLCMD - getting the entire output to file?
Hi All
Ive written my first SQLCMD script using this reference :-
http://msdn.microsoft.com/en-us/library/ms162773.aspx
but in my output file I only get one line, whereas when I run the sql scripts manually from query analyser it shows (1 rows affected) multiple times down
the results window, how can i get these multiple rows of output to show in my output text file?
Thanks
StewHi ssssstew,
As Hasham has indicated, we might need to see your code. sqlcmd does not support multiple concurrent writings to the same file.
However, you might try this trick from Madhivanan at SQLServerCurry:
http://www.sqlservercurry.com/2011/11/sql-server-handling-multiple-result.html
Turn your query into a stored procedure:
create procedure test
as
select 1 as id, 'test1' as name
select 2 as id, 'test2' as name
When you execute this procedure, it returns two result sets. The following code will copy these two result sets in a table variable.
Then execute it and send the select * from that table to the output file instead:
declare @t table(id int, names varchar(100))
insert into @t
exec test
select * from @t ---output to file
Hope this helps -
Arabic output pdf file problem
Hi
I have tried to print a report through oracle application server 10g, but the ARABIC pdf output printed form left to right which is wrong (The correct is from right to left for Arabic).
And the same report we printed in HTML file is appeared OK, that means the report is OK and the problem is in pdf file only.
could anyone help me please?
byeHi
Please could anyone send me a respond?
I haven't received a respond for three days.
by. -
Why when I open the output.txt file, is strange code there, not 3.1
i almost copy the example from "think in java book" chapter 11
however, the result "output.txt file" when opened by notepad of windows xp, always only very strange code inside, not what i want
do i need open the file, before i want to write?
or i use a wrong api again?
or the java code norm is very difference from ms windows?
thanks
import java.util.Random;
import java.io.*;
class CreatRandomFile
public static void main(String args[])throws IOException
File fileOutput=new File("output.txt");
DataOutputStream out2=
new DataOutputStream(
new BufferedOutputStream(
new FileOutputStream(fileOutput)));
out2.writeDouble(3.1);
out2.close();
}//end main
}//end classThere are basically two ways of IO:
a) human readable format;
b) machine readable format;
What you've just done is writing a double value in machine readable
format to a file. Some folks call it 'binary format'. I bet your file is eight
byes long. A DataOutputStream writes data in machine readable
format. You need a PrintStream instead if you (a being human I suppose)
want to be able to read the contents of that file.
kind regards,
Jos -
File Save after clicking in script output overwrites file with output
This is bad:
If you run a file as script and afterwards click on the output window,
even if you click back on the script window,
the Ctrl+S (or even worse the File > Save menu option)
overwrites your file with the script output.
You only realize this when you reopen the file, or if you use another editor with auto-refresh, such as Crimson Editor.Here is how to replicate the disappearing sql script:
In the Save dialog box, if the “.sql” is left off of the file name, only the script output is saved (this is bad).
If the file name ends in “.sql”, the script and the script output are saved (this is good).
I have no idea what the purpose of this feature is, and it has caused me much grief. I hope the next version of SQL Developer does it better. -
Editing & output of files from Canon Vixia m30 to .mov
I'm running a dual core Vista machine with 4 megs ram. I have the paid version of Elements 9
I tape actors auditioning for movie roles. Most producers/agencies want .mov files.
Not only that, they sometimes want nearly 5 minutes of tape in under 15 megs!
No problem in the past with elements 4.0 and mini-dvd tapes.
But now, and I'm sure it's because I don't have the right import and edit project setup, the files, even small ones, look muddy and/or pixilated.
I *think" I should be shooting in FXP hi def format and editing the avchd files in Elements 9 then exporting as a .mov
Only once so far has the output not looked pixilated and muddy. (For the life of me I cant remember if I had transcoded to .avi or wmv and edited from there.
I did indeed try various settings in the advanced section for mov output.
ANY advice for the type of settings I should use to shoot, import and output to mov's would be GREATLY appreciated.
I know the quality of files longer than a couple of minutes will be degraded, that's fine, (I even use 320x240,)but for even small files to look bad means I don't have the correct setup.
Thanks in advance folks!
RJThey will be viewed on computers as files only and most talent agencies and producers want .mov's only. As long as the actor's eyes are clear, they don't care much as to real quality. They know quality is lowered, especially on 4-5 minute submissions. Files are sent usually be YouSendIt, or directly to talent agents as .mov file attachments. Some are using Youtube and that's great as file sizes don't matter.
After reading some of your stuff, (I'm buying the book btw!) ... I do think I'm closing in on the right preset and camera settings now.
I still need to tweak for larger frame size like 720X??? (I can't remember, so used to 4:3 instead of 6X9!)) and rather than the old amd small 420X280. Along with keeping the size down with the kbps settings and "quality" slider in "advanced settings."
Upper field I know is important with .mov's and since the camera records PF30 settings as 60i, I'm honing in on the right preset.
Wow! There's lots to learn, but once I get it right, the actual production should be a breeze even on my rather old dual core pc, as again these are relatively short pieces.
Again, any other ideas are greatly appreciated.
I appreciate this community very much and hope to shed my newbie status soon! -
Will project archive out of elements 13 work in premiere pro cc or should I output to file? Thanks
Hi Phillip,
You should be able to open a Premiere Elements Project in Premiere Pro CC (Windows only), however, I tried it and found the results were not very acceptable for use as a backup. Can you try it first?
Thanks,
Kevin -
Hi Guru,
I encounted 1 problem where my output csv file content incorrect. Source is from SAP Proxy.
Example my csv file should have Material code, material description and date. However when i open the csv file, it is only have material code in one line and the rest of fields are not display in the csv file.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_PRD_MASTER_SND xmlns:ns0="http://com.starhub/sapprdcat">
<RECORDSET> 1:1
<RECORD> 1:unbounded
<MATNR/>
<MAKTX/>
<DATE_ADD/>
</RECORD>
</RECORDSET>
</ns0:MT_PRD_MASTER_SND>
My source and target are same.
CC Receiver setting:
Transport Protocal : File System NFS
Message Protocal : File Content Conversion
Adapter Engine : Integration Server
Recordset Structure : RECORD
RECORD.fiedlNames : MATNR,MAKTX,DATE_ADD
RECORD.endSeparator : 'nl'
RECORD.fieldSeparator : ,
RECORD.processFieldNames: fromConfiguration
RECORD.addHeaderLine: 0
The INCORRECT result only display MATNR in one line only.
HNOK0000102 HNOK0000108 C032S31384A C032S3XDATA CFGSC300300 CRAWC300001
Expected Result should be :
HNOK0000102,Material test 1,01/01/2007
HNOK0000108,Material test 2,01/02/2007
C032S31384A,Material test 3,01/01/2007
C032S3XDATA,Material test 4,01/01/2007
CFGSC300300,Material test 5,01/01/2007
CRAWC300001,Material test 6,01/01/2007
Thank you very much for help.
Regards,hi,
check this parameter:
Recordset Structure : RECORD [wrong]
Recordset Structure : RECORDSET,RECORD [right]
and the other parameters will be like this:
RECORD.fiedlNames : MATNR,MAKTX,DATE_ADD
RECORD.endSeparator : 'nl'
RECORD.fieldSeparator : ,
RECORD.processFieldNames: fromConfiguration
RECORD.addHeaderLine: 0
<b>RECORDSET.fieldSeparator: 'nl'</b>
Sachin
Message was edited by:
Sachin Dhingra -
I would like to know the list of possible output (export) file codec from FCP X. For example, can I export in FLV format? Where do I find the list, which gives me all the details about it? Or is there only one output codec? Thanks
That's an excellent analogy. While FCP cannot export FLV. It is possible to do a very simple substitution. If you export a QuickTime movie using the .mov suffix with the H.264 codec, you can change it to FLV simply by changing the suffix to .flv. This is an acceptable format for Flash movies on most web sites, if that's where you're trying to go.
Maybe you are looking for
-
How to add a footnote in Numbers 3.0?
Is it still possible to add a footnote in a document in Numbers 3.0. Apperently that was poosible in the older version of Numbers. If so, how?
-
How to create Datasource in Jdev11g
Hello, I'm testing migration from jdev1013 to jdev1111. When i want to create my datasource, i don't find the embedded OC4J option on Tools menu. Can give me one solution ? Thanks.
-
MSVCR80.dll not found after trying to upgrade itunes
Tried to update my itunes and now I can't open it all...I get a MSVCR80.dll not found. Itunes not installed correctly Error 7 (Windows error 126)....How do I get the MSVCR80.dll file back????
-
"Step" playback of MIDI region?
Hi, I'm using Logic for a live set and I want to trigger playback of notes in a MIDI region via a drum pad. I have a MIDI region on a software instrument track that has notes in it. I want to play back these notes in order, though not necessarily wit
-
Does Apple offer high resolution songs on iTunes eg) 192/24