I have a TEST.sql file that has below lines in it.
$ cat TEST.sql
create table AB (name varchar2(20));
insert into AB values ('AAA');
insert into AB values ('BBB');
commit;
I know I can execute this script by loging into DB and doing
sql> @TEST.sql
But I want to know ho to execute the script using a procedure/plsql. Provided that oracle has read access to that directory.