How to run PL/SQL Program using Notepad

How to run PL/SQL Program using Notepad

To run a PL/SQL program using notepad, you have to write your code in notepad and then execute the program by using SQL*Plus tool.

Steps:

1. Write following PL/SQL program code in notepad and save file as ‘world.sql’.

Example to run PL/SQL program using notepad

 

2. Install Oracle Client(if not installed) and ensure, if your Oracle Database or Oracle Client installed with SQL* Plus tool. SQL*Plus is necessary for running PL/SQL programs.

 

3. Start the SQL*Plus by typing the following command:

Syntax:

Example:

 

 

4. For executing the PL/SQL program store written in notepad file by using the @symbol to call the script.

 

 

5. If SQL*Plus execute the script and does’nt display the output then type the following command:

 

 

Check out our other PL/SQL programs examples

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top