Unable to see the serveroutput sql shell script

Hello experts,

I have a shell script that I use to call a pl/sql procedure.
This proc write dbms_output.
I would like the dbms_output in a capture file when calling sqlplus to my shell script.


Here is the code:
===============================
ECHO '.
sqlplus apps / $APPS_PWD < < ENDOFSQL
Set serveroutput ON
Set feedback off
set verify off
set linesize 250
set pagesize 250
Start
jdr_utils.listcustomizations('$I');
end;
/
output
ENDOFSQL
"> > new.log"
===============================


What I get in the "new.log" is given below:
===============================
sqlplus apps/prj08app < < ENDOFSQL
Set serveroutput ON
Set feedback off
set verify off
set linesize 250
set pagesize 250
Start
jdr_utils.listcustomizations('/Oracle/Apps/IRC/candidateSelfService/WebUI/VisVacDispPG');
end;
/
output
===============================
ENDOFSQL


I want to get is the given procedure dbms_output.
Please suggest.

Thank you
Vinod

Shell?

Your call to sqlplus is between double quotes. (In ksh, at least) who gets taken literally (after substitution of the variables). To run the chain and echo its output use a backtick (') instead of a double quotation mark ("")

Published by: Brian Bontrager Sep 29, 2011 15:51

Tags: Database

Similar Questions

  • Call the PL/SQL shell script

    Hi all

    I've seen several links and options for calling a PL/SQL shell script. I was wondering if there is something like DBMS_SCHEDULER. CREATE_PROGRAM-> executable that calls an external program in 11 GR 2.

    Here's what I have to. I have 11 GR 2 database with Dataguard. I have START triggering who begins a DBMS_SERVICE when the role becomes PRIMARY. In the same instance, I would stop the VIP on the former primary database and start the VIP on the new primary database.

    Thanks for the advice and assistance.

    Jan S.

    The URL below links to ask Tom. Inside, he talks about creating a Java procedure in your database that allows you to execute commands from the host OS (PL/SQL calls the proc of Java that runs the host command). There are several ways to run the OS commands, but this one is very flexible. I needed to use it for a task that I have who didn't fit one of the other methods very well.

    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:no:P11_QUESTION_ID:3069633370832

  • How to execute the pl/sql shell script

    Hi Experts


    I need to be able to call a pl/sql procedure shell script

    Linux and 11g

    I am new to java and followed the solution below
    The appeal of OS in Plsql commands

    After following the solution on top of link

    Declare
    x Varchar2 (2000);
    Begin
    x: = OSCommand_Run ('ls - the);
    -print x;
    DBMS_OUTPUT. Put_line (x);
    End;
    /

    give me output of 0 but the command is not executed.

    What must be changed or is there another solution?

    Thank you
    Archana

    See if that helps...

    [http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php]

  • Unable to see the full text of SQL in the sessions of the monitor

    Hi guys,.

    I use SQL Developer 3.2 and when I followed sessions.

    I'm unable to see the full text of sql. Can someone guide me what setting do I do to see the full text of sql.

    Thank you

    Deepak

    you do not see the full text of design, this data dictionary that col stores only the first 1000 characters of the query

    You can Customize this report to get the full text if you wish... just read the column full_text instead, which is a CLOB

    in fact, this is the story in v3.2 - If you upgrade to version 4.0, we wonder SQL_FULLTEXT, and also make it more enjoyable to read code, throwing in a code editor

  • Unable to see the function of the technology in the Expression Editor - ODI 11 G

    Hello

    I develop Interface while I am unable to see the technology functions in the Expression Editor where I'm doing a transformation.

    Secondly, in the header, it is show the default language instead of SQL (Oracle)

    any difficulty please...

    Thank you

    KPimage001.png

    I fixed it myself - thank you

    Below, was the step that I did which solved the problem. hope this will help others

    Go to the Studio of ODI

    Develop the language in topology-

    Import new language

    Import mode INSERT_UPDATE synonym

    The definitions of the language of $ODI_HOME/oracledi/xml-reference/LANG_SQL.xml

    Click OK

    Close ODI Studio and open again. that fixed my problem.

    Thank you

  • Unable to see the OnCurrent (OnCurrent) SRS window program

    Hello

    I created a simultaneous program to a sql. But I'm unable to see the window of SR. even though I have the connection with the same responsibility... !!!

    Why?

    Kamel

    Have you added the concurrent program to the Group requested this responsibility?

    For more details, take a look on [Note: 133991.1 - how to save a custom report | https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=133991.1]

  • Unable to see the comments on Huffington Post

    In version 41 and earlier versions, I could see the comments section of the Huffington Post with no problems. With the recent upgrade to the 42 version and now 43b 04, I am unable to see the reviews online. I installed a previous version (b 41, 09) and they were there without changing my settings; If something has changed within Firefox.

    private browsing mode has always meant that firefox doesn't store information from your session locally on your device - now, it is also associated with blocked content on Web sites.

    more: the service-not-track allows you to communicate your preferences to not follow to Web sites, but it is for them if they respect it and follow on this subject. the new follow-up mechanism necessary actively blocking connections with elements that are deemed be trackers...

  • Unable to see the photo on gmail using firefox

    I'm unable to see the image of some mails in gmail using firefox, it works fine in Explorer

    IV checked exceptions in tools > Options > content: Load Images > Exceptions and it seems fine

    in gmail > mail in the Inbox and click the link "always display images of.

  • I am unable to see the start box in the lower left corner and my Sose size desk top view while I me micro soft solve this centerwa

    I am unable to see the start box in the lower left corner and my Sose size desk top view while I was in soft micro fix Center

    Hello

    1. what exactly were you doing in the Fixit Center when it happened?
    2 watch you one or running the Microsoft Fixit?
    3. what was the question you got there in the first place?

    Please provide us with more information about the issue that you are facing.

  • I have a disk full of photos that I am unable to see the end of the name of the MSP file.

    original title: pvm?

    I have a lot of pictures that I am unable to see the end of the name of the MSP file, that - what it means or what program can be used to open them to see to change this?

    http://www.HP.com/United-States/consumer/digital_photography/free/software/index_ww_eng.html

  • HP Deskjet 3055 has. Unable to see the balance of the ink in the cartridges

    I have HP Deskjet 3055 has (3050 all-in-One series of J611). So far, when I clicked on the HP icon on my desktop I have learned how much ink is left in my cartridges. Now I can't learn this - all I can learn from the icon is the current position of any current print job. Also, I used to be able to order the new printing caridges via my HP icon - I think that it is now not possible. What is the answer. I had thought to unplug the printer and then reinsert new with the original CD. This seems a radical step but is it the solution?

    Hello pm1810,

    Welcome to the HP Forums!

    I understand that you are unable to see the ink levels using the HP icon on your desktop. I will do my best to help you! What is your operating system on your computer? Click here to read: Windows.

    When you click on the HP icon on your desktop, is it called the wizard of the printer? How is the printer connected? USB or wireless?

    If you are referring to the Printer Wizard and you are unable to access to the 'estimated ink levels' and a 'supplies shop online', then I recommend you to uninstall the software:

    Please follow this HP document uninstalling the software of the printer. (If this printer is connected by a USB cable, then disconnect the power cord from your computer.) Be sure to choose your appropriate operating system. Then, please clean the Temp folder on your computer. I'll give you a document here to help you.

    Now, install the full features on the site of HP software here. Choose your appropriate operating system. If you are still having the same problem, could you please send a page on this post.

    Impatience on your part have a beautiful day!

  • Unable to see the ability to create a new folder on my desktop when I right click of the mouse.

    Unable to see the ability to create a new folder on my desktop when I right click of the mouse. It shows now shortened? compressed file? etc... Please help me solve this problem?

    What happened a bit in the past, but it happens a lot recently.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     

     
  • I've updated today on Adobe Indesign CC 2015, and now I am unable to see the folio tools in indesign, any help, thanks Graeme

    I've updated today on Adobe Indesign CC 2015, and now I am unable to see the folio tools in Indesign, very urgent, Graeme Cheers

    2015 inDesign only supports DPS 2015, not the earlier version of the DPS. To use DPS with the Folio Builder Panel, you must run 2014 CC InDesign, InDesign CC or InDesign CS6. You can run multiple versions of InDesign on the same machine.

  • I am unable to change the links page of the site and unable to see the file manager

    I have my site earlier designed by a guy, now he is not in contact, but I am unable to change the links page of the site and unable to see the file manager, even if I opened a session in Panel. admin help, please

    catalyst for business he did

    Did you get the site built through Muse?

    If this is the case then under settings, there will be an option to enable editing for content you will need to check.

    If this isn't the case, then the person who built the site you put authorized role which has no access to certain things, you can see that if you can go into the settings and roles and change it OR contact this person to give access you.

  • Unable to see the link Analytics Server option in EA

    Hi all

    We installed and configured EAL 11.1.1 on our server. We have no error but now when connect us to EAS, we are unable to see the new EAL (Server Analytics link) option in the Regional service console.

    Can you please advice. Thanks in advance.

    Concerning

    Do you have you are importing the plugin in EAS - http://docs.oracle.com/cd/E17236_01/epm.1112/eal_install/frameset.htm?post_configuring.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • My firefox has no command line

    My firefox has no command line, or any other web site for important. In the Web Developer menu, the only tool I have is the page source. I re-installed firefox several times and set up different channels, but still no dice.

  • How can I completely stop the jump - rises and re - runs?

    I have Firefox because it has a solid blocking pop-up windows. However, on some pages, I always get them. Also, when I do website searches (Google, Yahoo, etc.). I click on a result of research and be re-directed to a page of advertising. When I go b

  • can you replace a hard drive on a macbook pro

    a hard drive on a macbook pro can be replaced.

  • Cannot install service packs for windows vista

    I realized that my computer has never been able to install the service pack for vista. I bought the computer with vista installed. He was able to install all other updates except for service packs. When I try, I go to windows update and click start i

  • HP Pavilion Sleekbook 14 TS: App Store won't open / work

    My app store has not worked for a long time. I clicked and nothing happens. All updates are in and which did not help. I search for a solution, but nothing has worked. All the other app work fine as before.