How to put_line a big buffer ?
I am constructing a select query in a stored procedure, depending on different cases . At the end I am executing that select query. This select query is buffered in a VARCHAR2(8000) buffer.
I want to output a this buffer, which is in fact a select query, just before the execution.
Here is my Code
dbms_output.enable(1000000);
DBMS_OUTPUT.PUT_LINE ('STATEMENT *** ' );
DBMS_OUTPUT.PUT_LINE (STATEMENT); -- Note that STATEMENT is my buffer name
OutpUt is as :
STATEMENT ***
Parse error: -20000 at position 0
i.e the word "STATEMENT ***" is displayed properly in dbms_output . My procedure also executes fine. However I am getting error as "Parse error: -20000 at position 0".
I am using TOAD 9.0.1.8 and oracle 9.
How can I get the complete sql constructed.
dbms_output has a limit of 255 characters per line
the complete error is
ERROR at line 1:
ORA-20000: ORU-10028: line length overflow, limit of 255 chars per line
ORA-06512: at "SYS.DBMS_OUTPUT", line 35
ORA-06512: at "SYS.DBMS_OUTPUT", line 115
ORA-06512: at line 1something (your pl/sql around the code, or toad) is suppressing the error message.
for i in 1 .. ceil(length(statement)/255) loop
dbms_output.put_line( substr( statement, (i-1)*255, 255) );
end loop;
--untested
Similar Messages
-
Output errors, Transmit discards and big buffer errors on 1121 AP
I have a AIR-AP1121G-A-K9 running c1100-k9w7-tar.123-7.JA2 (Autonomous)
We have monitoring setup with Orion NPM and we consistently see output errors, Transmit discards and big buffer errors
The users at the site have not reporting any issues but was wondering how to prevent these or are these normal?
What causes the output errors on Wireless Radio ? How to troubleshoot further ?
Radio0-802.11G
Total Output Errors 0 47749
Small Buffer Misses
4 misses
139 misses
Medium Buffer Misses
117 misses
249 misses
Big Buffer Misses
62 misses
8982 misses
Dot11Radio0 is up, line protocol is up
MTU 1500 bytes, BW 54000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/479/0 (size/max/drops/flushes); Total output drops: 245980
Queueing strategy: fifo
Output queue: 0/30 (size/max)
5 minute input rate 48000 bits/sec, 25 packets/sec
5 minute output rate 34000 bits/sec, 22 packets/sec
32482389 packets input, 2056095954 bytes, 0 no buffer
Received 1622227 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
44289160 packets output, 1268314927 bytes, 0 underruns
47752 output errors, 0 collisions, 1 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
ThanksThis is normal.
Remember that wireless network is like a hub: One talks and everyone stops to listen and waits for their turn. -
How to seperate a big flat file
Hi Everyone,
I have a performance issue with loading a very big flat file. I have a 200 million flat file and I am trying to load it via Oracle Data Integrator to Sql server 2005. Oracle data integrator is trying to execute a bcp tool like below.
bcp CDWH_DW.dbo.Campaign_History_Outbound in "\\server\CDWH\FlatFile2Send \FILES\ailing_active.txt" -f"\\Server\Campaign\Campaign_Response_Outbound.fmt" -o"\\server\CDWH\FlatFile2Send\ \LOG\sony_mailing.log" -T -S"sqlserver " -C"RAW" -m 1
If I have a problem with data in this huge file it is very difficult to find what is wrong. So I am trying to find out a solution for this issue. Do you have a suggestion? I am thinking to separate this huge file a lot of small piece and loading them in a loop but I am thinking about how to separate this big file to a small piece.
Thank You for your Helps
Kind Regards
Caner SahanHi Caner...
I believe that is possible.
There is any column, from text file, that can be used as PK?
What is the type of this text, delimited? positional?
Do you want this only for development or will keep it for production?
Cezar Santos
http://odiexperts.com -
How to download the big file in SDN
Hi buddies,
Do you have any idea how to download the big files in SDN such as NetWeaver CE trial? I cannot download it with download tool, and if I download it by IE, after dowloading for a while, I always get "connection reset" error.
Hope you can help me.
YiNingYining,
There seems to be a few people making comments about problems with downloads. I myself have never had a problem, but I think that downloading from in Europ isn't a problem.
I would try and use a tool such as GetRight download manager which picks up the fact that something is downloading and manages that download, so it will be able to restart the download.
Paul -
How to convert JPEG/RTP Buffer to non-RTP (RAW) format ?
Hi everybody !
Could somebody tell me how to convert JPEG/RTP Buffer to non-RTP (RAW) format ? Thanks !Hi
The way is you have to split the data several and concatenate after that.
Regards,
kumar -
I get an error on drawTriangles: How to unbind a vertex buffer?
I have two models, one has a vertex buffer with position and UV coords, the other has more infos, like normals and so on.
If I render just one of them, ther work fine, but when I try to have both I get this error:
Error #3607: Stream 2 is set but not used by the current vertex program.
Now, I'm not new in 3D programming, I know both DirectX and OpenGL, and I know that OpenGL needs an "unbind" API call to clear the vertex streams, I cannot find anything similar in Molehill.
So how to unset a vertex buffer and set another one?
My code at the moment works only if my models uses the same number of vertex streamsAre you running through the Pixel Bender classes to do the drawing or going directly to the Molehill APIs?
If you're using the Pixel Bender classes could you post some source code and I'll take a look at it. If you're going directly to Molehill you might want to post your question in the incubator forum here:
http://forums.adobe.com/community/labs/flashplatformruntimes/incubator/
where it will be read by more people with Molehill experience.
Bob -
How to flush / push htp buffer to browser
+I posted this question on the SQL / PL/SQL forum (How to flush / push htp buffer to browser) Since this is a web centric forum I thought I'd post here as well.+
Is there a way to flush or push the htp buffer to the browser?
For example, suppose you had a procedure.
htp.htmlopen;
htp.p('hello');
htp.helpclose;
-- No more HTML to print
-- Still some more code to runAt the top of the procedure you print some HTML code. You want it sent right away to the user but you still have some other PL/SQL code to run. Right now it appears as though the entire procedure needs to finish before the HTML is sent to the browser.
The reason I'm doing this is to test a new HTML 5 technique which allows for servers to push data to client. The thing is that I need to be able to force / push the contents of the buffer to the browser while keeping the procedure running.
Thank you,
Martin
http://www.ClariFit.com
http://www.TalkApex.comHi Paul,
Thanks for the link. I just read thought it. Wondering if by any chance things have changed in mod_plsql since then...
Martin
http://www.ClariFit.com
http://www.TalkApex.com -
hi, how do i share big files using the creative cloud , it says download the crative cloud connection, but then sends me nowhere that says that
Hi Jonty, check the file size limit: Creative Cloud Desktop application FAQ
You can also check the details around sharing and collaborating files: Sync and share files and folders with collaborators | Adobe Creative Cloud tutorials
Atul_Saini -
I develope a porgramm for continious monitoring. If the voltage of a channel exceeds or is lower than the upper or lower limit of tolerance the actual date must be stored and additionally the dates being stored 10sec before and after this event. Can somebody give some advice how to create the buffer to keep the dates 10s before the error event? Thank U.
I've written you a quick array buffer vi. I'm not sure if it'll be fast enough though.. Try it and see! I've used the loop numbers in my array, but i'm sure you can feed in the dates instead.
Attachments:
Array_buffer.vi 26 KB -
How to UPDATE a big table in Oracle via Bulk Load
Hi all,
in a datastore target as Oracle 11g, I have a big table having 300milions of record; the structure is One integer key + 10 columns attributes .
In IQ Source i have the same table with the same size ; the structure is One integer key + 1 column attributes .
What i need to do is to UPDATE that single field in Oracle from the values stored in IQ .
Any idea on how to organize efficiently the dataflow and the target writing mode ? bulk load ? api ?
thank you
MaurizioHi,
You cannot do bulk load when you need to UPDATE a field. Because all a bulk load does is add records to your table.
Since you have to UPDATE a field, i would suggest to go for SCD with
source > TC > MO > KG >target
Arun -
Looking for tutorial: how to add a big "Play" button to a web Flash video
Can't seem to find out how to do this: I've imported a Flash
8 video to
a web page (with autoPlay set to false) and it has a
controller skin
underneath it, but I'd also like to show a big "Play"
triangle button in
the centre of the video, like you see on all the Youtube
videos. How do
I add that and make it start the video? Any clues for the
clueless
would be appreciated!Nickels55 wrote:
> Not too difficult.
> First create your button or movieclip with the big
arrow.
> Give your flv playback component an instance name like
vid.
> Create a new layer above the video layer. Drag your
button/movieclip to the
> stage.
> Give the button/movieclip an instance name like
vidcontrol.
>
> Put this actionscript on the frame (not attached to the
button or component):
>
> vidcontrol.onPress = function(){
> vidcontrol._visible= false; //makes arrow
button/movieclip invisible
> vid.play(); //makes video play
> }
>
> Tested code and concept and it works perfect.
Brilliant, works like a charm. Thanks very much, Nickels55!
Is there a way I can add something like your
"vidcontrol._visible=
false;" to the "Mojaveexternalall.swf" skin as well? Right
now if I
click on the big arrow, everything works fine, but if I click
on the
Mojaveexternalall's small Play arrow instead, that new button
layer
doesn't disappear. -
How to install a big program that is only available for PC on a Mac.
Hi everyone,
I really need help about that, I've just start a new job that requiered 20-20 Design, witch is only support by PC. But I don't want change my Mac for PC My iMac has Bootcamp already so I need to know, if I'm installing Windows Vista or 7 (witch is requiered by my program/software...I don't know how I'm suppose to call it in english), will I be able to make it work? And if it can help, my 20-20 design is working with an USB key not an installation CD. I've read a lot of topics but no one answer my question
Thanks for your help....you can save my life, my job and my Mac :PHow to install a big program that is only available for PC on a Mac.
Run the Boot Camp Setup Assistant. Install Windows. Install your "big program" -
How to Canonicalize an Big XML?
Hello, i want to Canonicalize a big XML (like 1GB or more), the program it's in DOM, but dom can't manage big XML documents, so i was thinking to do it with STAX. How i can do it?
The Code (with dom) that i have it's:
File file=new File("big-1gb.xml");
org.apache.xml.security.Init.init();
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = dfactory.newDocumentBuilder();
Document doc = documentBuilder.parse(file);
Canonicalizer c14n = Canonicalizer.getInstance("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");
outputBytes = c14n.canonicalizeSubtree(doc.getElementsByTagName("SomeTag").item(0));
The idea it's do the code below with Stax...
Thx :)yes i'm trying to create a XMLSignature :)
Well, i solve the problem, here is the solution:
XOM have an example that use low memory (see nu.xom.samples.MinimalNodeFactory in the source code of XOM), so, i use this code to canonicalize 200Mb XML file:
ByteArrayOutputStream bytestream = new ByteArrayOutputStream();
ObjectOutputStream outputstream = new ObjectOutputStream(bytestream);
nu.xom.Builder builder = new nu.xom.Builder(false, new nu.xom.samples.MinimalNodeFactory()); //The false parameter is for avoid a ValidationException that trows XOM
try {
nu.xom.canonical.Canonicalizer outputter = new nu.xom.canonical.Canonicalizer(outputstream);
nu.xom.Document input = builder.build(file);
outputter.write(input);
catch (Exception ex) {
System.err.println(ex);
ex.printStackTrace();
outputstream.close();
MessageDigest sha1 = MessageDigest.getInstance("SHA1");
sha1.reset();
sha1.update(java.nio.ByteBuffer.wrap(bytestream.toByteArray()));
salidasha1=sha1.digest();
String tagDigestValue=new String(Base64.encodeBase64(salidasha1));
/* Rest of digitalsig program */Take like 7 minutes to do the XML signature and the final XML it's like 2Gb :)
I hope that if some have the same problem can use this :)
And the final tips: AVOID DOM, with DOM i will need 10x of RAM the size of the XML File (in this case like 20Gb of RAM)
ps.: Other day i will post how much time take to process 1GB XML Files :)
Edited by: Enriquesmw on May 7, 2010 12:26 PM -
How do you create a buffer of a geometry in SQL Server 2012?
Hello,
I am new to SQL Server 2012 and spatial data. I built a geometry object of coordinates from a polygon that I stored in a database. The code is below:
DECLARE @digb GEOMETRY;
SET @digb = GEOMETRY::STGeomFromText('POLYGON ((-79.927138 40.362654, -79.91883 40.364224, -79.915966 40.361067, -79.917897 40.359266, -79.927398 40.360142, -79.927138 40.362654))', 4269);
I am using SRID 4269 (Latitude/Longitude NAD83). I have no issues getting this geometry to load properly when the query is executed. (shown below)
My problem is that I am unable to create a valid buffer of 150 feet on this geometry. I have tried using these 3 statements below (I assumed BufferWithCurves() would be the one that would work); however, ALL of them returned to an invalid buffer of
the polygon (shown below):
- DECLARE @digbb GEOMETRY = @digb.STBuffer(2);
- DECLARE @digbb GEOMETRY = @digb.BufferWithCurves(2)
- DECLARE @digbb GEOMETRY = @digb.BufferWithTolerance(@BufferSize,250.0,1);
Does anyone have any idea of how creating this buffer of a geometry object (polygon mentioned above) in SQL Server 2012?
Thanks in advance for any help.
NickHi Nick,
BTW, please do ask questions on the forum, that's what it's for. I only meant "if my explanation in that specific answer was unclear, let me know and I'll clarify". Feel free to start a new thread for each topic because that way, it's
might be easier for folks to search on.
Specific answers:
I haven't worked directly with the MapInfo loader but if you're working with SQL Server, I assume what they may be doing is looking for "geodesic SRIDs" that SQL Server supports (the ones listed in sys.spatial_reference_systems) and loading those
as geography, else geometry. That may be a good thing to do.
If you want to decide yourself, here's some (short) background.
Only SQL Server (I think PostGIS might have added it) has separate geography and geometry types. Everyone else always uses "geometry" and gives you (maybe) the ability to convert between SRIDs in the database. SQL Server doesn't have
this built-in; you'd need to use a library like PROJ4.
You can use geometry type to refer to geodesic SRIDs, but it doesn't have a way to "take the area using spatial instances in decimal degrees and come up with meters". So, if you only use it to display on a map, it will display correctly.
Or close enough. Same with intersects, intersection and the like. But anything like area, distance, or, in your case buffer using a specific number of meters, you need to use geography. You could have gotten somewhat similar-looking
results with geometry by making your input to STBuffer a sufficiently small fraction, but it would be a guess on your part, not a "150 feet" buffer.
You can't CAST/CONVERT between geometry and geography because they didn't want people to assume that these would do SRID conversion. However, there is a codeplex library "SQL Server Spatial Tools" (http://sqlspatialtools.codeplex.com/) that
has two methods: VacuousGeometryToGeography and vice-versa, that does the equivalent (but optimized) of taking one type, spitting it out in well-known text format, then using it to initialize the other type. Or you can do this in your own code.
In general, geography is for anything geodesic; geometry is for planar or projected coordinate systems (e.g state plane coordinate systems in US, that don't use Long/Lat). But geography is slightly slower in calculations (like intersects) because it's more
complex than simple Euclidian geometry. And folks in other platforms are used to using "geometry" and having the platform do the (sometimes fairly expensive) conversions on-the-fly. Or maybe you don't care about the area, distance, etc.
Even in the geography type, WKT specifies (Long Lat) not (Lat Long). This is because the OGC standard doesn't distinguish and calls things (X Y), and if you think about it, (X Y) is (Long Lat) not (Lat Long). The SQL Server geography-specific method MakePoint
has latitude first as a parameter. OGC or SQL/MM standard methods and property names start with "ST" in SQL Server (e.g. STIntersects); SQL Server-specific methods and properties do not (e.g. MakePoint, ReorientObject).
Finally, attempting to do spatial calculations with unlike SRIDs (e.g. intersects between SRID 4269 and 4326 instance) returns NULL.
One more post coming on this thread with some info/links.
Cheers, Bob -
How FND_FILE.PUT_LINE create tmp file in app tier and move it to db tier?
i have a concurrent program runs in application tier which uses FND_FILE.PUT_LINE... does anyone know whether is that true that when the concurrent program runs, it will create a temp file in the database tier ($APPLTMP), and once the program finished/done, it will copy the output to application tier ($APPLCSF/$APPLOUT and $APPLCSF/$APPLLOG - out file and log file)? if it is true, how does Oracle copy the file from database tier to application tier?
here is my current setting:
- concurrent program runs in application tier
- mount $APPLTMP (set it as first entry in utl_file_dir) in database tier on applicate tier
- tmp file creates in $APPLTMP (database tier)
- out file creates in $APPLCSF/$APPLOUT (application tier)
- log file creates in $APPLCSF/$APPLLOG (application tier)
we occasionally run into problem creating tmp file. so, am wondering is there any best practice for concurrent program? should we run it in application tier or database tier?
help is highly appreciated. thanks.Hi, Hussien.
Our problem is... occasionally we run into "ORA-20100: File lxxx.tmp creation for FND_FILE failed" error. 0 bytes temporary file created, but out/log files created with data/output. That's why we don't know what did we do wrong.
We followed metalink 261693.1, tried all the possiblities... still no luck on temporary files (created with 0 bytes).
The problem (ORA-20100) comes and goes. Very inconsistent. Created simple package to test FND_FILE.PUT_LINE, it looks like nothing is wrong with that. So, not sure did we miss something.
Thanks.
--Ashley
Maybe you are looking for
-
Unable to capture HDV with Sony HDR-FX1 in FCE 4
Hello all, Been using an HDR-FX1 for a while, shooting mostly DV, and today I began experimenting with HDV. I shot 8 minutes of footage with the camera in HDV mode. When I setup FCE 4 for Apple Intermediate Codec 1080i60, the capture window doesn't r
-
How to access to a "Variable" situated in a closed workbook
Hi Considering a Name declared in a Workbook and called "myName" - this Name belong to the workbook.names collection but do not correspond to any cell or range. I'd like to access to this name without being obiged to open the workbook where it is dec
-
My pages 09 doesn't have iCloud!
Hi all, I hope you can help me... I have Pages and Keynote '09 on my MBP, but when I downloaded them from the App Store they have the sync function with iWork beta. Now that iWork is not active anymore and has switched to iCloud, my iWork application
-
Where is the link to authorize my computer for itunes? I used to use my home computer but am away from home and want to use my laptop.
-
I have bought a new Advent computer with Windows 8 and I cannot access my 500 + itunes purchased at great expense - where are they? Are they lost ? I have tried all the routes suggested by "help and support" but no luck.