Skip to Main Content

SQLcl

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Sqlcl sql script running in background error(zip file unzipped in unix environment)

295ba3d5-d678-4e89-86cb-906d5f7121c5Sep 3 2018 — edited Sep 13 2018

i am unable to run sql script(saved in file) in background using sqlcl , but it run fines normally . i tried different solution provided on web but nothing worked .  any help on this would be appreciated.

Solutions which i tried are as below .

nohup ksh xyz.ksh 1>/dev/null 2>2018090123181_xyz.log &

same works fine with sqlplus.

Errors i get :

Stopped (tty output)

when i look for detailed processes it holds of at i get below .

pts/10   00:00:00 sh -c stty -icanon min 1 -icrnl -inlcr -ixon < /dev/tty

pts/10   00:00:00 stty -icanon min 1 -icrnl -inlcr -ixon

any fixable solution for this ?

Comments

L. Fernigrini

Consider using PL/Scope

PL/Scope Enhancements in Oracle Database 12c Release 2 (12.2) (0 Bytes)It is simpler than parsing code.

User_RI4C6

How its work I admit that I am a beginner in the world of plsql and I told myself that it is possible to do it with regexp

User_H3J7U

it can be for example standard package, ULT_HTTP
UTL_HTTP Constants

L. Fernigrini

undefined (0 Bytes)You need to set some session settings like this:

ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL, STATEMENTS:ALL';

Then compile the package, and then query the dictionary tables being populated when you compile PL/SQL and have set PLSCOPE settings.
In the article I mentioned there is an example :
image.pnghere you would see that variable L_NUM and L_STR are declared on lunes 6 and 7, and that they reference the NUMBER and CHARACTER datatypes. You can modify the query in the example to filter only "VARIABLE" as TYPE; "DECLARATION" as USAGE and then get the associated REFERENCE row to get the datatype.

L. Fernigrini

Poster mentioned ANY package, documentation exists only for Oracle provided packages.

User_RI4C6

Wow very cool, Thank you very much for the help.!

1 - 6

Post Details

Added on Sep 3 2018
4 comments
1,061 views