I am calling a procedure from shell script , my procedure has an out parameter which will return '2' at last in case of any error . My question is how do i capture this last returned value/row in the unix environment ? . i need to terminate my host program with exit 1 based on the return value "2". Any suggestions will helpful .
How to capture the last returned value from sql session in the unix script?
349 Views Asked by user3152869 At
1
There are 1 best solutions below
Related Questions in UNIX
- passing text with \n as one argument in shell
- C std library don't appear to be linked in object file
- How to split a directory into parts without compressing or archiving?
- Momentjs get current GMT unix time
- Timing packets on a traffic server
- man pages for c variable types
- Blocking in pthread_join()
- PWX-00001 Error opening repository "dtlmsg.txt". RCs = 268/150/2
- Unix c program to calculate pi using threads
- How to perform parallel processes for different groups in a folder?
- Set aliases globally for all users
- wmic csproduct get UUID equivalent for Unix and Mac?
- Send alert for 80% threshold comparing two values from Disk partition
- Unix - Tail Utility would open the file or not
- Redirect Outward of unix os commands to html page
Related Questions in ORACLE-APPS
- I want to open a new form by clicking a button in oracle apps 11i
- Font Aliasing in oracle forms 11g
- Need to know backend location(table name) of Customer Ship To Number in Oracle EBS
- Updating a contacts email and phone in Oracles HZ_CONTACT_POINTS through PL/SQL
- Oracle: creating value set with query
- I am not able to add columns in XML Publisher report
- opening oracle application in a browser
- Getting extra messages while executing a trigger
- Oracle forms 10g - Private packages
- Oracle Apps View: ALL_TAB_COLUMNS; columns: LOW_VALUE and HIGH_VALUE
- Available IDE's for Oracle iStore jsp.
- How to restrict invoice number to exactly 10 characters through form personalization in oracle apps
- table not found issue in oracle database
- Profile creation and how user opt "yes" or "no"
- How to resolve this ORA-01722: invalid number error in SQL *Loader based concurrent program?
Related Questions in ORACLE-APPLICATION-SERVER
- Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR
- oracle reports parameter width on application server
- How to increase performance for HTTPS in Oracle Application Server?
- How to upgrade to java 1.6 from java 1.5 in Oracle Application Server
- Oracle application server deployed application throwing an error - NoClassDefFoundError
- launching wicket application in oracle application (10g) server
- How to configure Oracle HTTP server apache mod_proxy to proxy certain HTTPS requests to external (origin) server over HTTPS
- Web Configuration, Security in Oracle APEX
- Weblogic application server goes in Overload state at 2 specific timings
- Monitor connections in the connection pool on Sun App Server
- Accounting Program Error
- How to capture the last returned value from sql session in the unix script?
- Oracle Application Server 10g
- Servlet initialization error after deployment on Oracle AS 10g
- Oracle Application Server 10 download link pls
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could directly assign the output value to a shell variable.
Or, alternarively, you can call the PL/SQL procedure in SQL*Plus and store the OUTPUT parameter's value in a local file. And then in your shell script,
grepthe required value from the file.For example,
So, the
out_variablewill have the output value of the procedure. Using backticks, will execute and assign the output from sqlplus to the shell variable.