UTL_FILE.PUT_LINE not writing to file in real time !!!
Hi All
I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
I am opening file in append mode.
statement1 (takes 2 mins)
UTL_FILE.PUT_LINE
statement2 (takes 5 mins)
UTL_FILE.PUT_LINE
statement3 (takes 10 mins)
UTL_FILE.PUT_LINE
I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
Can anybody tell me if this is correct behavior or am I missing something here ?
Thanks a lot in advance.
AnkitV wrote:
Hi All
I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
I am opening file in append mode.
statement1 (takes 2 mins)
UTL_FILE.PUT_LINE
statement2 (takes 5 mins)
UTL_FILE.PUT_LINE
statement3 (takes 10 mins)
UTL_FILE.PUT_LINE
I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
Can anybody tell me if this is correct behavior or am I missing something here ?Calling procedure must terminate before data is actually written to the file.
It is expected & correct behavior.
Similar Messages
-
Hi,
I have made a program that reads a string, converts it to bytes, then writes to a file.
Well i got the first two working, but its not writing to file. I know it should work cos i have written to file on my previous tests, but when i used a FOR loop it stoped working. Do ya know why. Below is the code...
for (int a = 0;a = bytes.length - 1;a++){
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length);
My friend told me to use bytes.length - 1 as it is meant to stop the OUTOFBOUNDS error.
OK,
my regards
Below is the whole program, its a bit messy cos i got lots of old code that i have blocked.
import java.io.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.String;
public class sender implements Runnable {
int i= 0;
String mes;
int count =0;
int b = 0;
boolean yes = false;
public static void main (String[] arguments) {
Thread th = new Thread (new sender());
th.start ();
//sender();
//while (true){}
public void run() {
try {
Thread.sleep(100);
} catch (InterruptedException e) {}
String mesdialog = JOptionPane.showInputDialog(null,
"Enter your message");
mes = mesdialog.toString();
try {
//FileOutputStream of = new
//FileOutputStream ("send.txt");
FileWriter of = new
FileWriter("send.txt");
//BufferedReader in = new
// BufferedReader(fr);
//while (true){}
int i = 66;
boolean eof = false;
int inChar = 0;
//String inChar;
byte[] bytes = mes.getBytes();
/* < disable / enable
do {
int n=Integer.MIN_VALUE;
try{
n = Integer.parseInt(mes);
} catch (NumberFormatException nfe){
//inChar = n;
if (inChar != -1) {
byte outChar = (byte)inChar* ;
//char outChar = (char)inChar ;
of.write(outChar);
System.out.println("" + outChar);
//of.write(mes,0,20);
} else
eof = true;
} while (!eof);//*/
for (int a = 0;a = bytes.length - 1;a++){
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length);
while (!yes) {
if (bytes[b] == 32 )
yes = true;
else {
of.write(bytes);
System.out.print(" " + bytes[b]);
b++;
//System.exit(0);
//outfile.write(input);
} catch (IOException e) {
System.out.print("AAA ERROR");}your friend was obviously wrong.
for (int a = 0;a = bytes.length - 1;a++){ // that does nothing
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length);
}the above "for" loop says :
1:initialize a with 0;
2:do loop while a=bytes.length(<-that's completely wrong. it should be
a boolean expression);
3:for each loop increment "a" by one.
try this:for (int a = 0;a < bytes.length;a++){
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length); -
Programme written in 6.1 is not writing to file in 7.0
The programme written in 6.1 was designed to write data into file but i have installed labview 7.0 now and the same programme is not writing to file.
Hi,
Here is the detailed information.
I am running this Labview VI for collecting data through a network analyser and controlling motion of motors through DAQ card. I have already run the cd of drivers given with Labview 7.0
The exact subvi used for writing file is the hp8720 collect data. This thing has been installed in the Laptop with version 6.1 of Labview. What I have done is that I have taken the same programme and changed its algorithm in Labview 7.0 on a different comp and copied the file back. Then I installed labview 7.0 on the Laptop and tried running the new programme. But everything is working except the writing to file. Error handling has been put up and the message I get is Error reading/writing from/to file. Check file name.
Kindly h
elp out.
Regards,
Harshat -
Capture all SQL statements and archive to file in real time
Want to Capture all SQL statements and archive to file in real time?
Oracle Session Manager is the tool just you need.
Get it at http://www.wangz.net
This tools monitor how connected sessions use database instance resources in real time. You can obtain an overview of session activity sorted by a statistic of your choosing. For any given session, you can then drill down for more detail. You can further customize the information you display by specifying manual or automatic data refresh, the rate of automatic refresh.
In addition to these useful monitoring capabilities, OSM allows you to send LAN pop-up message to users of Oracle sessions.
Features:
--Capture all SQL statement text and archive to files in real time
--Pinpoints problematic database sessions and displays detailed performance and resource consumption data.
--Dynamically list sessions holding locks and other sessions who are waiting for.
--Support to kill several selected sessions
--Send LAN pop-up message to users of Oracle sessions
--Gives hit/miss ratio for library cache,dictionary cache and buffer cache periodically,helps to tune memory
--Export necessary data into file
--Modify the dynamic system parameters on the fly
--Syntax highlight for SQL statements
--An overview of your current connected instance informaiton,such as Version, SGA,License,etc
--Find out object according to File Id and Block Id
Gudu Software
http://www.wangz.netAnkitV wrote:
Hi All
I have 3 statements and I am writing some thing to a file using UTL_FILE.PUT_LINE after each statement is over. Each statement takes mentioned time to complete.
I am opening file in append mode.
statement1 (takes 2 mins)
UTL_FILE.PUT_LINE
statement2 (takes 5 mins)
UTL_FILE.PUT_LINE
statement3 (takes 10 mins)
UTL_FILE.PUT_LINE
I noticed that I am able to see contents written by UTL_FILE.PUT_LINE only after statement3 is over, not IMMEDIATELY after statement1 and statement2 are done ?
Can anybody tell me if this is correct behavior or am I missing something here ?Calling procedure must terminate before data is actually written to the file.
It is expected & correct behavior. -
Detecting PDF-image files in real time
Hi,
I'm planning to build a web application that allows users to upload PDF files. I want to be able to check the PDF files in real-time to ensure they only upload PDF text-searchable files, and not PDF image files. Is there anything from Adobe that has this functionality?
I'll probably to integrating it into a .NET web application.
Thanks.Hi Leonard - thanks for the reply.
I've read up more about Adobe LiveCycle ES and it seems it might be a bit of an overkill for what I'm trying to do. I just need to have some software to check the PDF document whether it is text-searchable or not. LiveCycle appears to be a full document management and processing suite. Is there any more basic Adobe software that can do this kind of check?
Thanks much. -
Aria2 does not download multiple files at a time
I'm trying to speed up my system upgrades by using aria2, but it won't speed up anything as it does not download multiple files at a time.
As per this wiki post, https://wiki.archlinux.org/index.php/Im … erformance , "using aria2", I've installed aria2 and added the line
XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error \
-m2 --max-connection-per-server=2 --max-file-not-found=5 --min-split-size=5M --no-conf \
--remote-time=true --summary-interval=60 -t5 -d / -o %o %u
to the options section in pacman.conf. Pacman still works, but it isn't sped up. When pacman -Syu'ing, a normal line shows:
#1 SIZE:1.3MiB/2.0MiB(63%) CN:1 SPD:50.0KiBs ETA:15s
What's going on?
P.S. I use the line reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist before doing a system upgrade.
Last edited by bruno321 (2011-05-15 15:27:45)Using aria2c will download files over 5MB with multiple connections but will not download multiple files at the same time. Pacman calls aria2c with the first url, waits for it to finish, then calls aria2c with the second etc...
If you want to download multiple packages simultaneously, see http://xyne.archlinux.ca/projects/pacman2aria2/ -
Why can't read access log file in real-time? (Oracle Weblogic Server 10.3)
We can't read access log file in real-time. If access log is rotation to new file so can read access log file but can't read real-time.
*** Oracle Weblogic Server versions 10 R3what's your meaning? try this command "tail -f access.log".
Threre is a buffer about 8K for WebLogic to write the access info into the log files, so you can't see the access info untill the buffer is full. -
Background process not writing to file
Hi,
i am encountering a problem when a process is started under root in background.The application is not writing the Information to the file.
But when i start the same application from a telnet session it works fine
Any solution to the problem
regds
subbuyour friend was obviously wrong.
for (int a = 0;a = bytes.length - 1;a++){ // that does nothing
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length);
}the above "for" loop says :
1:initialize a with 0;
2:do loop while a=bytes.length(<-that's completely wrong. it should be
a boolean expression);
3:for each loop increment "a" by one.
try this:for (int a = 0;a < bytes.length;a++){
of.write(bytes[a]);
System.out.print(" " + bytes[a] + " : " + bytes.length); -
Reading excel files in real time
Hello,
I would like to have a labVIEW program which permits to read several excel files, and collect all data in a single excel file.
I know that it is possible to write a program which can read multiple files.
But I would like to know that if its possible to read files in a real time:
for ex. each time there is a new excel file to read, the LabVIEW program read it automatically and add its data to the final file?
Thank you and bests regardsAs Sam notes, it is certainly possible to merge Excel Files (I've done it, myself). An oft-repeated Best Practice for Program Development, which I didn't understand nor start following until quite recently, is "Write the Documentation First". In this case, you want to think carefully (and specify in a Document, which tends to "clarify your thinking") a number of issues:
Where will you look for the Excel Files to be merged? [Hint -- it's much easier if they are all in the same Folder).
Where will you save the Merged File? Will it be in the same Folder as the Source Files?
How will the Merged File be named? This can have an interaction effect with the previous points.
What is the structure of the Source, and of the Merged, File? Is it "obvious" how the Merge is to take place?
Related to #4, are there Headers? Multiple WorkSheets?
How do you know when it is time to Merge? Are you checking for new files periodically? How often?
In some ways, these "structure" questions are trickier to design and thornier to deal with than simply reading data from two Excel Files and writing the data to a third (which I'm calling a Merge). Note that I'm assuming that you are really dealing with Excel files (.xls, .xlsx), for which I recommend using the Report Generation Toolkit. If you are speaking about Comma-Separated Variable (.csv) files that LabVIEW calls "Spreadsheets", the above questions are still mostly relevant, but your approach will be a little different.
Write yourself a Document, show it to us, and if you have ideas on how to do this, give it a try and show us your code -- we'll try to provide assistance if you "get stuck".
Bob Schor -
Hi guys,
My question is in a real time scenario how the file is asked for ?
As for testing a simple file scenario we usually get the sample file in XI from Message mapping tool only, this sample file contains primary tag of message type with attribute of namespace : <b><ns0:MT_FILE_INPUT xmlns:ns0="http://bsptrng.file2file"> </b> "
<ns0:MT_FILE_INPUT xmlns:ns0="http://bsptrng.file2file">
<Record>
<Row>
<FirstName>q</FirstName>
<LastName>R</LastName>
<MiddleName>S</MiddleName>
<City>Dehradun</City>
</Row>
</Record>
</ns0:MT_FILE_INPUT>
but when a client will provide us a file it will be a simple xml file like...
<Record>
<Row>
<FirstName>q</FirstName>
<LastName>R</LastName>
<MiddleName>S</MiddleName>
<City>Dehradun</City>
</Row>
</Record>
As you can see primary tag of Message type with namespace will be missing...
because of that mapping exception is thrown in pipeline service....
<b>My question is how to tackle this ...</b>
Regards,Why you can not create XSD with the client specification?
Like This:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="City">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Dehradun"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FirstName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="q"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LastName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="R"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MiddleName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="S"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Record">
<xs:complexType>
<xs:sequence>
<xs:element name="Row" type="RowType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="RowType">
<xs:sequence>
<xs:element ref="FirstName"/>
<xs:element ref="LastName"/>
<xs:element ref="MiddleName"/>
<xs:element ref="City"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Regards.
Message was edited by:
Iñaki Vila -
How to determine time value of a .wav file in real time as it plays?
Hi all.
I need to build a vi in which a .wav sound file is represented in a Waveform graph, and at the same time, I want to play that file, and have a vertical cursor line running along the Waveform graph, in order to have a visual representation of where the sound track is, in terms of time.
Making the .wav file to appear graphicaly on a Waveform graph was an easy task to do, but then, I was´nt able to extract the time information of that .wav file, at the same time that this file is being played.
This is a very common situation in music players, video players etc, where some kind of graphical artifact, represents in real time where the track is while it plays.Hi, this is the first ActiveX control I have played with but its really cool.
I read this first: -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/iwmpcontrolsinterface.asp
Which covers "The IWMPControls interface provides a way to manipulate the playback of a media item."
Then built the attached sample.
It should now be straight forward to attach the position information shown to a graph control cursor postion.
You will need to set a file of your own choosing in the VI first.
Let us all know if this is what you wanted.
Attachments:
mediaplayer current play position demo.vi 39 KB -
I tunes does not play mp3 file, but quick time does. why?
I have download mp3 files from internet and some of them i tunes doesn't not see and play. I tried to play it with quick time- good, not problem. But i want to add it to my i pod. How can i do it? How can i play it with i tunes? maybe i need some codecs? please help me
It could be you're not adding the files the right way. In more seldom cases:
[Topic : MP3 Scan+Repair - an ID3 tag evaluator for the Mac|http://discussions.apple.com/thread.jspa?threadID=2020936]
MP3 Scan+Repair (including sources): [http://triq.net/mac/mp3-validator-mac-os-x] -
I don´t hear mp3 file in real time... why?
I`m using mp3 at 120 kbps 44 khz, but always hear a stupid BEEP...
Can I hear mp3 in real time?
Thanks in advanceYou don't hear it because it isn't in an FCP native format.
Assuming you're on a DV timeline (or any other with the same specs), take it into Compressor or iTunes and convert to 16 bit 48 kHz AIFF, and you'll be fine.
It is said that you can also export to AIFF from FCP and then reimport. -
Not writing the file second time
hi Experts
can anybody tell me after executing this code on windows the value is not written second time to file
the code goes like this
import java.util.*;
import java.io.*;
import java.net.*;
public class Agent
public static void main(String args[])
File script=null;
File outputFile=null;
BufferedReader check=null;
try
check = new BufferedReader(new FileReader("checkThreshold.txt"));
String checkStr;
while((checkStr=check.readLine())!=null)
checkStr=checkStr.trim();
//System.out.println(checkStr);
StringTokenizer st=new StringTokenizer(checkStr);
String commandStr=st.nextToken();
String paramStr=st.nextToken();
//String wThresholdStr=st.nextToken();
float wThreshold=Float.parseFloat(st.nextToken());
//String mThresholdStr=st.nextToken();
float mThreshold=Float.parseFloat(st.nextToken());
//String cThresholdStr=st.nextToken();
float cThreshold=Float.parseFloat(st.nextToken());
script= new File(System.getProperty("java.io.tempdir"),"script.vbs");
outputFile= new File(System.getProperty("java.io.tempdir"),"outputFile.txt");
PrintWriter writer=new PrintWriter(new FileWriter(script,false));
//System.out.println("command is:"+commandStr+" paramis:"+paramStr+"wThresholdStr:="+wThresholdStr+" mThresholdStr:"+mThresholdStr+"cThresholdStr:"+cThresholdStr);
writing a script for getting value and then comparing then
writer.println("Dim Wsh,cmd\n"+
"Set Wsh = Wscript.CreateObject(\"Wscript.Shell\")\n"+
"Wsh.Run(\"cmd.exe\")\n"+
"WScript.Sleep 1000\n"+
"Wsh.SendKeys \"wmic /output:"+outputFile+" path "+commandStr+" get/value{ENTER}\"\n"+
"WScript.Sleep 1500\n"+
"Wsh.SendKeys \"exit{ENTER}\"\n");
writer.close();
/***********executing the script************/
Process p=Runtime.getRuntime().exec(new String[] {"cmd.exe", "/c", "\""+script+"\""});
int exitValue=p.waitFor();
BufferedReader in = new BufferedReader(new FileReader(outputFile));
String str;
int cnt=0;
while((str=in.readLine())!=null)
str=str.trim();
String tempStr="";
StringBuffer buffer=new StringBuffer();
for(int i=0;i<str.length();i+=2)
buffer.append(str.charAt(i));
tempStr=buffer.toString();
if(tempStr.startsWith(paramStr))
StringTokenizer token=new StringTokenizer(tempStr,"=");
token.nextToken();
float value=Float.parseFloat(token.nextToken());
if(value>=cThreshold)
System.out.println("critical");
else if(value<cThreshold && value>=mThreshold)
System.out.println("major"+value);
else if(value<mThreshold && value>=wThreshold)
System.out.println("warning"+value);
else
System.out.println("normal"+value);
cnt++;
System.out.println(cnt);
script.delete();
}catch(Exception e)
System.out.println(e);
}I tried to redo the config objects but still the same issue is there. anyone has any idea
-
File Receiver Adapter is not writing the file?
Hi All,
I am having a file to file scenario using NFS as both the source and destination are on server.
File is getting picked up from server but not reaching the destination.
In RWB for Receiver channel it only shows <b>Channel active and started correctly.</b>
In SXMB_MONI it shows the message scheduled for some later time.
On reaching that time it tries again and reschedules :(.
Please guide.
Regards,
SumitSumit,
Now do one thing, just for check the directory for read/write permission by putting the test file manually on your target directory.
The porcedure to put a file on server is as shown below:
1. Save your file in your local machine.
2. In <b>XI server</b>, enter the tranaction code "<b>SXDA_TOOLS</b>".
3. In the input screen, enter:
i) Object Type "DXPROJECT".
ii) Program Type "BAPI".
iii) Program "CREATE".
4. Press Copy (Ctrl+F5) button.
5. Now, you will get another screen in which you will see 3 blocks called as "Source", "Target" and "Copy with/without conversion".
6. In Source block, choose the radio button "Presentation Server" and then take F4 help to select your source file. (file which you have saved on your local machine)
7. In source block select the radio button "Application Server", check the box "Remote server" and take F4 help to select your application server.
8. In the same block under "File Type" select "P physical file name" and under "File Name" write the path/directory name which you have mentioned in your communication channel along with the file name.
Example: suppose file name in your Comm Chanel is "<b>demo.xml</b>" and directory path is <b>"/abc/testfiles/XML/</b>", then in step 8 write <b>"/abc/testfiles/XML/demo.xml</b>".
Note: need not to do any thing in 3rd block.
After doing all the above, let me know the results.
Regards,
Sarvesh
****Reward points, if it helpd you.
Maybe you are looking for
-
Over the years I accidentally opened a second Adobe account, both with product registrations. I need to merge these accounts into one and see no way to do that. Updates to software will not install because serial for previous version not found on upg
-
Does CUVCM 7.1 runs on a plain MS Windows 2003?
I need to make a new installation of the CUVCM 7.1. The HW Platform is MCS-7845-H2-RC2. The MCS OS shipped with the CUV-MGR-5.X is a Cisco wrapped Windows 2003. The customer wants to install it's proper Windows distribution based on security concerns
-
Photo Booth Effects While Recording
Is there a way to record video in iMovie with Photo Booth effects? Is there a program, a hack, or just something I have to do in order to have effects if I want to record with iSight? Thanks in advance, agent6998
-
Importe photos from my ipad to my pc
how can I import to my cp from my ipad
-
Changing billing info COSTLY!
AS I CHANGED MY BILLING INFO I GOT A MESSAGE THAT 1$ HAS BEEN CHARGED TO MY CARD. ISN'T IT STUPID? ISN'T IT ILLEGAL? WHITHOUT BUYING ANYTHING IS THERE ANY LOGICAL EXPLANATION FOR IT? HOW CAN I GET BACK SUCH ILLEGAL CHARGES?