How do you access the command prompt using Aspen SQLPlus?
I have tried using Host Dir
, but does not seem to work.
Query for command prompt in Aspen SQLPlus
1.9k Views Asked by NeelDeveloper At
1
How do you access the command prompt using Aspen SQLPlus?
I have tried using Host Dir
, but does not seem to work.
You need to use the SYSTEM command. This is covered quite well within the Aspen SQLPlus help menu.
E.g.
Will print the results to screen.
Alternatively, you can format the results as a table:
It is also possible to interact with the results, within a for loop:
A few things to note:
The IP21 Service Account will always execute the command, regardless of the user who executes the SQLPlus query.
If you wish to execute multiple commands, you will need to load a batch file