I am new to TOAD and PL/SQL. I am training on creating package. I have created the package and the instructions for executing and viewing the output are to copy the Anonymous Block of code into the Editor window, Run as Script and view the DBMS output. I have done this, but there is nothing in the DBMS output window and the script output just shows that the PL/SQL ran successfully. I believe my training instructions were written for a different version of TOAD. I have installed version 12.9.0.71. Thanks for any help.
The first toolbar button on the dbms_output tab needs to be clicked first. It’s red when it’s not clicked, green when it is. This is to enable DBMS Output. Do this before you run your package. That should do it.
A far easier way is to execute using F11 (Debug Menu -> Run). This will allow you to set any parameters in the package function (or procedure) you want to execute and automatically create the anonymous block. Any DBMS output from the execution will show up in the DBMS Output tab.
Thank-you for your response. I apologize I should’ve indicated in my first post that I do show that button is green, therefore it should allow DBMS output. I’m including a screen shot in case you spot something that I have not set.
The first toolbar button on the dbms_output tab needs to be clicked first. It’s red when it’s not clicked, green when it is. This is to enable DBMS Output. Do this before you run your package. That should do it.
One thing to note. If the state of your package changed from the previous time you ran it (you'll know this is the case because you get an Existing State of Packages error), the DBMS Output light may still be green, but no new output will show up. You need to turn it off and then back on to get the output.
Thank-you for your response. I apologize I should’ve indicated in my first post that I do show that button is green, therefore it should allow DBMS output. I’m including a screen shot in case you spot something that I have not set.
I was able to find the DBMS output, but not from the top tool bar. I had to right click on the tool bar between the editor window showing the SQL and the display window on the bottom. I then saw a list of tabs I could add to that tool bar. One of them was DBMS output and it did show the output light as red. Once I changed that green I was able to find my output. Thank-you to everyone who responded to my post.
One thing to note. If the state of your package changed from the previous time you ran it (you’ll know this is the case because you get an Existing State of Packages error), the DBMS Output light may still be green, but no new output will show up. You need to turn it off and then back on to get the output.