Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pass linux command line values into sqlplus variable

oramanApr 4 2013 — edited Apr 4 2013
hi experts,

I'm wondering if its possible to insert values into a table retrieved from the host within db, without external shell script files, let say in a procedure, so it could look like this:

create or replace
PROCEDURE p_sizes

IS
myvalue:= host df -h
BEGIN

INSERT INTO sizes VALUES (myvalue);

END;

so is it possible to store the output of the sqlplus host command into var and use it for an insert?

thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 2 2013
Added on Apr 4 2013
5 comments
1,447 views