MSCEWI3115

DBMS_OUTPUT.PUTLINE check UDF implementation

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Low

Description

This message is shown when SnowConvert migrates a DBMS_OUTPUT.PUT_LINE Oracle built-in package function. This warning tells you to check the added UDF.

This EWI exists to tell the user to review the DBMS_OUTPUT.PUT_LINE implementation where the following information will be found:

Performance may be affected by using this UDF. If you want to start logging information, please uncomment the implementation. Note that this is using a temporary table, if you want the data to persist after a session ends, please remove TEMPORARY from the CREATE TABLE.

Once the calls of DBMS_OUTPUT.PUT_LINE has been done, please use the following query to read all the logs: SELECT * FROM DBMS_OUTPUT.DBMS_OUTPUT_LOG.

Example code

Input Code:

CREATE OR REPLACE PROCEDURE builtin_package_call
IS
BEGIN
	DBMS_OUTPUT.PUT_LINE(1);
	DBMS_OUTPUT.PUT_LINE("Test");
END;

Output Code:

CREATE OR REPLACE PROCEDURE PUBLIC.builtin_package_call ()
RETURNS VARCHAR
LANGUAGE SQL
EXECUTE AS CALLER
AS
$$
   BEGIN
      /*** MSC-WARNING - MSCEWI1020 - CUSTOM UDF 'DBMS_OUTPUT.PUT_LINE' INSERTED. ***/
      /*** MSC-WARNING - MSCEWI3115 - CHECK UDF IMPLEMENTATION FOR DBMS_OUTPUT.PUT_LINE ***/
      CALL DBMS_OUTPUT.PUT_LINE(1);
      /*** MSC-WARNING - MSCEWI1020 - CUSTOM UDF 'DBMS_OUTPUT.PUT_LINE' INSERTED. ***/
      /*** MSC-WARNING - MSCEWI3115 - CHECK UDF IMPLEMENTATION FOR DBMS_OUTPUT.PUT_LINE ***/
      CALL DBMS_OUTPUT.PUT_LINE("Test");
   END;
$$;

Recommendations

Last updated