---
title: "DBMS Output"
description: "The \u0022DBMS Output\u0022 panel shows the output which a PSQL block writes with dbms_output.put_line, in the order it was written and with the moment of writing\u2026"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-query-tool/dbms-output
original: https://documentation.invantive.eu/en/docs/invantive-query-tool/dbms-output
updated: 2026-10-08T00:00:00Z
license: https://documentation.invantive.eu/en/
---

The "DBMS Output" panel shows the output which a [[Invantive UniversalSQL/Grammar/Statement Types/PSQL Block|PSQL block]] writes with `dbms_output.put_line`, in the order it was written and with the moment of writing in front of each line. The panel belongs to the document being edited, so each document keeps its own output:
![The "DBMS Output" panel of Invantive Query Tool, showing three timestamped lines written by a statement.](/img/22f3de89f86cc050474d6a835f6e28871effb2698f579a5dde49d73a42820e52/1283x1000.png)

## Switching It On
Collecting the output is on when a document is opened, and the button "DBMS Output" switches it off and on; the lamp on the button is green while it is on, and from release 27.0 onwards the button also stays pressed while it is on, so the state is read without the colour. Output written while it is off is not kept, so it is switched on before the statement is executed rather than afterwards. "Clear output" empties the panel.

## Output of an Oracle Database
The panel also shows the output which PL/SQL on an Oracle database writes with `dbms_output.put_line`, for instance in a block run with `execute native`. Oracle keeps that output on the database server until it is fetched. From release 27.0 onwards it is fetched at most twice a second while statements keep running on a connection, and once more when a statement ends, so that a loop of many small statements does not spend half of its time fetching output.

The moment in front of such a line is the moment it was fetched, which can lie up to about a second after the moment of writing. Lines from the database can therefore appear later than output written by the PSQL block itself.

## Large Output
From release 27.0 onwards the panel keeps working with a million lines of output and more, while the window stays responsive. The panel adds new lines a few times per second instead of one line at a time. The output is kept in a temporary file, which is removed when the document is closed.

While the last line is in view, the panel keeps it in view as new lines arrive. After scrolling up, the panel stays at the same lines while the statement goes on writing. Scrolling back to the last line, or pressing Ctrl+End, makes the panel follow the output again.

A line longer than the panel continues on the next row. The item "Line Wrap" on the context menu, with the shortcut Alt+W, switches this off, after which a long line is read by scrolling sideways. The panel shows the first 10,000 characters of a very long line; "Copy" and "Save As..." still take the whole line.

## Copying
The context menu of the output holds "Copy" and "Select All", with the shortcuts Ctrl+C and Ctrl+A. "Copy" puts the selected text on the clipboard. A selection of more than 50 million characters is not copied, since the clipboard cannot hold it well; "Save As..." writes such output to a file instead.
<!-- BEGIN TRANSITION FROM CUT - remove this block once release 28.0 has shipped. -->
Up to and including release 26.0 the context menu also held "Cut". From release 27.0 onwards it is gone: the output is a record of what a statement wrote rather than a document being edited.
<!-- END TRANSITION FROM CUT -->

## Saving
From release 27.0 onwards the button "Save As..." writes the whole output to a text file. The file is UTF-8 without a byte order mark and every line ends in CR LF. The file holds all lines, also those left out by "Show Only Matches". Saving runs in the background, so output of a gigabyte does not hold up the window.

The panel remembers the file name for each document and proposes it again at the next save, also after Invantive Query Tool is restarted. A document which was never saved before gets a name made from the title of the document, such as `New 2-dbms-output.txt`.

## Searching
From release 27.0 onwards the toolbar carries a search field. It selects the first occurrence of the text in the output as soon as it is typed, and the two buttons behind it, the Enter key and F3 move to the next occurrence, with Shift for the previous one; after the last occurrence the search continues at the first. The switch "Show Only Matches" leaves out every line which does not hold the text instead of moving to it, and brings the whole output back when it is switched off.

Upper and lower case are treated alike, and a text which occurs nowhere turns red in the field. On a large output a search for a text which occurs nowhere reads all lines, which takes a few seconds for a million lines. "Show Only Matches" shows the matching lines from the top while it is still looking further down. See [[Invantive Query Tool/Main Window#Searching in a Panel|Searching in a Panel]] for the search fields of the other panels.

## Release Notes

- [Invantive Query Tool for Windows](/en/release-notes/products/invantive-query-tool)
  - [26.0 to 27.0](/en/release-notes/products/invantive-query-tool?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-query-tool?step=25.0-to-26.0)

