sqldeveloper - DBMS_OUTPUT.PUT_LINE() Doesn't Work

前端 未结 3 1002
心在旅途
心在旅途 2020-12-18 14:39

I am trying to print the value passed to the DBMS_OUTPUT.PUT_LINE() function to the DBMS_OUTPUT screen in SQL Developer. No matter what I pass to the function, nothing gets

相关标签:
3条回答
  • 2020-12-18 15:13

    I add this answer to help others if they come across this S.O question.

    I struggled also with printing DBMS_OUTPUT on SQL Developer so I put this helpful link that I found explaining very well how the mechanism works

    https://www.thatjeffsmith.com/archive/2012/03/dbms_output-in-sql-developer/

    0 讨论(0)
  • 2020-12-18 15:19

    The last pane on your screen is "Dbms Output". Click the green "+" sign in its toolbar, and then execute the BEGIN-END block again.

    0 讨论(0)
  • 2020-12-18 15:34

    Upon going through the Oracle community forums, I learned that SQL Developer 17.x which I am using does not provide support to Oracle 10g.

    Older version of the SQL Developer 4.x will support Oracle 10g and retrieve DBMS_OUTPUT buffer to display it on the screen.

    Since I only had a small database set up for my homework and did not want to downgrade to an older SQL Developer, I upgraded to Oracle 11g XE and it worked. All input given to DBMS_OUTPUT.PUT_LINE() procedure now appears in the Dbms Output window.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题