SSC-FDM-OR0035
DBMS_OUTPUT.PUTLINE check UDF implementation
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_UDF
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_UDF
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 builtin_package_call ()
RETURNS VARCHAR
LANGUAGE SQL
COMMENT = '{"origin":"sf_sc","name":"snowconvert","version":{"major":1, "minor":0},{"attributes":{"component":"oracle"}}'
EXECUTE AS CALLER
AS
$$
BEGIN
--** SSC-FDM-OR0035 - CHECK UDF IMPLEMENTATION FOR DBMS_OUTPUT.PUT_LINE_UDF. **
CALL DBMS_OUTPUT.PUT_LINE_UDF(1);
--** SSC-FDM-OR0035 - CHECK UDF IMPLEMENTATION FOR DBMS_OUTPUT.PUT_LINE_UDF. **
CALL DBMS_OUTPUT.PUT_LINE_UDF("Test");
END;
$$;
Recommendations
No additional user actions are required.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated