Updated on 2023-10-23 GMT+08:00

DBE_OUTPUT

Interface Description

DBE_OUTPUT provides all interfaces supported by the DBE_OUTPUT package.

Table 1 DBE_OUTPUT

Interface

Description

DBE_OUTPUT.PRINT_LINE

Outputs the specified text with newline characters.

DBE_OUTPUT.PRINT

Outputs the specified text without newline characters.

DBE_OUTPUT.SET_BUFFER_SIZE

Sets the size of the output buffer. If the size is not specified, the buffer can contain a maximum of 20000 bytes. If the size is set to a value less than or equal to 2000 bytes, the buffer can contain a maximum of 2000 bytes.

  • DBE_OUTPUT.PRINT_LINE

The stored procedure PRINT_LINE writes a row of text carrying a line end symbol in the buffer. The function prototype of DBE_OUTPUT.PRINT_LINE is as follows:

1
2
DBE_OUTPUT.PRINT_LINE (
format IN VARCHAR2);
Table 2 DBE_OUTPUT.PRINT_LINE interface parameters

Parameter

Description

format

Specifies the text that was written to the buffer.

  • DBE_OUTPUT.PRINT

The stored procedure PRINT outputs the specified text to the front of the specified text without adding a newline character. The function prototype of DBE_OUTPUT.PRINT is as follows:

1
2
DBE_OUTPUT.PRINT (
format IN VARCHAR2);
Table 3 DBE_OUTPUT.PRINT interface parameters

Parameter

Description

format

Specifies the text that was written to the specified text.

  • DBE_OUTPUT.SET_BUFFER_SIZE

The stored procedure SET_BUFFER_SIZE sets the output buffer size. If the size is not specified, it contains a maximum of 20000 bytes. The function prototype of DBE_OUTPUT.SET_BUFFER_SIZE is as follows:

1
2
DBE_OUTPUT.SET_BUFFER_SIZE (
size IN INTEGER default 20000);
Table 4 DBE_OUTPUT.SET_BUFFER_SIZE interface parameters

Parameter

Description

size

Sets the output buffer size.

Examples

1
2
3
4
5
6
BEGIN
    DBE_OUTPUT.SET_BUFFER_SIZE(50);
    DBE_OUTPUT.PRINT('hello, ');
    DBE_OUTPUT.PRINT_LINE('database!');-- Output "hello, database!".
END;
/