Help in Shell Script

Hi , I need to find a strin inside a file
I googled this, to write afeter sqlplus -s etc
#while IFS=$(echo '\012\001') read LINE ;
# do
# case ${LINE} in ORA-*|SP2-*) ord.extractor_porven.sh
# echo " JUSTO Dentro del error ORACLE se ha producido"
# *) echo ${LINE} ;
# esac
# done
My target its to find first ocurrence with ORA and first ocurrence (his ORA number) in order to
create a message like this for example ,saving in a variable .
########Error processing in Oracle ## 'OraErr' || Var1 || 'OraNumber'||Var2#########
This line will be write in same default file.dat
Can someone kindly help me ?
Thanks in advance,
Best Regards
Antonio
Sunny spain , :)

user5647282 wrote:
Hi , I need to find a strin inside a file
I googled this, to write afeter sqlplus -s etc
#while IFS=$(echo '\012\001') read LINE ;
# do
# case ${LINE} in ORA-*|SP2-*) ord.extractor_porven.sh
# echo " JUSTO Dentro del error ORACLE se ha producido"
# *) echo ${LINE} ;
# esac
# done
My target its to find first ocurrence with ORA and first ocurrence (his ORA number) in order to
create a message like this for example ,saving in a variable .
########Error processing in Oracle ## 'OraErr' || Var1 || 'OraNumber'||Var2#########
This line will be write in same default file.dat
Can someone kindly help me ?
Thanks in advance,
Best Regards
Antonio
Sunny spain , :)I am not quite sure of what you are asking. Is this related to Unix? In that case i would like to let you know this is a SQL and PL/SQL forum.

Similar Messages

  • Need help in Shell Scripts

    Hi,
    I have a requirement need a help.
    Requirement states like this:
    I need to write a shell script through which I need to search a huge lines code and to find out following information :
    1. Total No of lines of the code
    2. No of DML statements (select,update,insert, delete) used like how many SELECT, How many UPDATE etc used in it.
    3. No of base apps tables referenced like How many tables starting with "CMF_" is present.
    4. No of procedure calls like how many procedures starting with "PROC_" used.
    Can anyone help me in this ? I need to script.
    My Unix version is :
    $ uname -a
    SunOS appsnet 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-4
    Thanks in advance
    [email protected]

    What you need here is a AWK script. This script will read the input as the source file (as command line
    argument or as standard input), and process each like of the file read to look for the different patterns
    in that line (looking for example if the line contans "SELECT " or "INSERT " etc...) and increment its
    corresponding count. At the end of the script in the END section you can get the number of lines with the
    NR awk inbuilt variable.
    Hope this helps.
    Hi,
    I have a requirement need a help.
    Requirement states like this:
    I need to write a shell script through which I need to search a huge lines code and to find out following information :
    1. Total No of lines of the code
    2. No of DML statements (select,update,insert, delete) used like how many SELECT, How many UPDATE etc used in it.
    3. No of base apps tables referenced like How many tables starting with "CMF_" is present.
    4. No of procedure calls like how many procedures starting with "PROC_" used.
    Can anyone help me in this ? I need to script.
    My Unix version is :
    $ uname -a
    SunOS appsnet 5.6 Generic_105181-21 sun4u sparc SUNW,Ultra-4
    Thanks in advance
    [email protected]

  • Help with shell script

    Can anyone here help me (getting my feet wet) with an addition to a profile (applmgr) that I am trying to make - in the form of a shell script.
    I have the following lines in the profile file - but each time I log into the server as applmgr, I get the error following
    if $HOSTNAME=hostname1
    tnen
    . /u01/xxees/EBST/apps/apps_st/appl/APPSEBST_$HOST.env
    fi
    if $HOSTNAME=hostname2
    ./u01/xxees/EBST2/apps/apps_st/appl/APPSEBST_$HOST.env
    fi
    The error message I am getting us
    -bash: /local/ebsuser/applmgr/.profile: line 39: syntax error near unexpected token `fi'
    -bash: /local/ebsuser/applmgr/.profile: line 39: `fi'
    Thank you all.
    Edited by: 864641 on Jun 13, 2012 1:49 PM

    From the Error Message at line Number 38, I feel that, the file /u01/xxees/EBSTEST/apps/apps_st/appl/APPSEBST_$HOST.env (where $HOST can be "hostname01" or "hostname02") has been modified and has unmatched if.
    Also, If you are using the variable HOSTNAME, I feel that the env file should be like /u01/xxees/EBSTEST/apps/apps_st/appl/APPSEBST_$HOSTNAME.env in which case your script will be like:
    if [$HOSTNAME == "hostname01"]; then
    . /u01/xxees/EBSTEST/apps/apps_st/appl/APPSEBST_$HOSTNAME.env
    fi
    if [$HOSTNAME == "hostname02"]; then
    . /u01/xxees/EBSTEST2/apps/apps_st/appl/APPSEBST_$HOSTNAME.env
    fi
    Hope that this two things will help in resolving the issue.

  • Help Read:shell script using CONCSUB utility

    I have a shell script that will re registered as a conc prgm and then this shell script will inturn call another CONC PGM which is a report. Due to some secuirty issues we have to do this way,
    But my problem is the Printer parameters that are passed on to the shell script need to be passed to the conc pgm which generates the report..
    Plzz help me .. this is the code that calls the CONC PGM , which is a report
    NMHR_REQUEST_ID=`echo $FCP_LOGIN | cut -d"/" -f2 |
    CONCSUB APPS "$RESP_APPL_NAME" "$P_RESP_NAME" $USERNAME WAIT=Y CONCURRENT $APPL_NAME '"TAX_EXEMPT"' "$P_LOCATION"` PRINTER='"$VAL_PRINTER"' NUMBER_OF_COPIES='"$VAL_NOC"' PRINT_STYLE='"$VAL_PRINT_STYLE"' LANGUAGE='"$VAL_LANGUAGE"'
    Plzz help. if there is anything wrong..
    Thanks in advance..

    Hi,
    Following is the sample for using printer setting.
    CONCSUB apps/apps
    SYSADMIN "System Administrator" SYSADMIN
    WAIT=Y
    CONCURRENT FND FNDSCARU
    LANGUAGE=FRENCH
    PRINTER=hplj4l
    NUMBER_OF_COPIES=1
    PRINT_STYLE=LANDSCAPE
    What is the error message?
    Regards
    Prashant Pathak

  • HELP with Shell scripting!!!

    Hello all,
    I'm very new to shell scripting and I'm trying to learn a little more as I go on. I'm trying to write a shell script to create a symbolic link to an application and have it moved to the current user's desktop. I've been doing some testing with the default applications installed on Leopard here is what I have so far...
    ls -s /Applications/Chess.app
    I've trying using cp commands, but I continue to get error messages. The above script does create a symbolic link to my home directory, but I want to then move it from the home directory to the current user's desktop. Can anyone lead me any further?
    Thanks in advance for any help!

    I'm also having a problem making my shell script unix executable. I have tried chmod +x path/to/script and then I killall Finder but nothing happens. Am I doing something wrong?
    Are you trying to make your script "Double-Clickable"?
    Then you still need to do the
    chmod +x /path/to/script
    But that will just make it something you can run from a shell.
    If you want double-clickable, you can create an Automator app
    Applications -> Automator -> Run Shell Script
    Or you can download the free Platypus utility that will make any script a double-clickable applications.
    Or you can name your script
    myscript.command
    where the .command is the important part, which the Finder will treat as something it should execute as a shell script when double-clicked.
    And no killing Finder. They will work without messing with the Finder.
    Personally, I prefer the Automator app or Platypus. Well I also work a lot in the shell, and I execute scripts as script in the shell all the time, so I only create a lot more scripts that get executed as commands than I do double-clickable scripts.

  • Need help with shell scripting and Patching

    Hello all,
    I am a very new Oracle DBA and I just have an interview where i have been ask two questions that i have no idea of what it is
    1/ What is shell scripting and how do you do shell scripting?
    2/ What is Patching and how do you do patching?
    Can some one help to have a very good understanding of these tow questions?
    Thanks a lot

    1/ What is shell scripting and how do you do shell scripting?shell accept command from you (via keyboard) and execute them. But if you use command one by one (sequence of 'n' number of commands) , the you can store this sequence of command to text file and tell the shell to execute this text file instead of entering the commands. This is know as shell script.
    Shell script defined as:
    "Shell Script is series of command written in plain text file. Shell script is just like batch file in MS-DOS
    for example:- for taking backup, health check and doing some task Operating system level or Oracle database level we can create shell script and schedule a cron job
    2/ What is Patching and how do you do patching?for example ,in windows while using sometimes you might face an issue/error and it gives pop up error message would like to send/report this error to microsoft? microsoft will send you a fix for that. lot of fixes for errors/bugs are released as patches.( n number of patches with newer features are releases as new version)
    likewise in oracle for resolving bugs we should have to apply patch.
    patch is basically a fix for a bug/bugs. we need to use opatch utility to apply the paches.
    hope, this helps you

  • Help in Shell Scripts

    Hi,
    I am new to shell scripting, i am getting an error while i am running a concurrent program, the executable method is host. Below are the details.
    I am trying to copy the file from one directory to another one using the shell script.
    I created the .prog file in ap/12.0.0/bin directory
    and also i have created the soft linkusing the ln -s command
    do i need to create the parameters for $1-$4 in the concurrent program? or will it be automatically using the environment of oracle apps
    here is the .prog file
    DataFileName=$5
    SourceDirectory=$6
    TargetDirectory=$7
    echo “————————————————–”
    echo “Parameters received from concurrent program ..”
    echo ” Time : “`date`
    echo “————————————————–”
    echo “Arguments : ”
    echo ” Data File Name : “${DataFileName}
    echo ” SourceDirectory : “${SourceDirectory}
    echo ” TargetDirectory : “${TargetDirectory}
    echo “————————————————–”
    echo ” Copying the file from source directory to target directory…”
    cp ${SourceDirectory}/${DataFileName} ${TargetDirectory}
    if [ $? -ne 0 ]
    then
    echo “Entered Exception”
    exit 1
    else
    exit 0
    fi
    echo “****************************************************************”

    Please post the details of the application release, database version and OS.
    I am new to shell scripting, i am getting an error while i am running a concurrent program, the executable method is host. Below are the details.What is the error? Please post the contents of the concurrent request log file here.
    I am trying to copy the file from one directory to another one using the shell script.
    I created the .prog file in ap/12.0.0/bin directory
    and also i have created the soft linkusing the ln -s command
    do i need to create the parameters for $1-$4 in the concurrent program? or will it be automatically using the environment of oracle apps
    here is the .prog file
    DataFileName=$5
    SourceDirectory=$6
    TargetDirectory=$7
    echo “————————————————–”
    echo “Parameters received from concurrent program ..”
    echo ” Time : “`date`
    echo “————————————————–”
    echo “Arguments : ”
    echo ” Data File Name : “${DataFileName}
    echo ” SourceDirectory : “${SourceDirectory}
    echo ” TargetDirectory : “${TargetDirectory}
    echo “————————————————–”
    echo ” Copying the file from source directory to target directory…”
    cp ${SourceDirectory}/${DataFileName} ${TargetDirectory}
    if [ $? -ne 0 ]
    then
    echo “Entered Exception”
    exit 1
    else
    exit 0
    fi
    echo “****************************************************************”Please see these docs/links.
    How to Register a Host Concurrent Program in Applications [ID 156636.1]
    How To Setup A Custom Concurrent Host Program [ID 147455.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=host+AND+concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Help with shell script: Find Recently Modified Directories

    I'm trying to do something that appears to be beyond my capacity to figure out on my own. I'm hoping that someone more skilled than I at scripting can help.
    Challenge
    I'm trying to build a script that finds directories and gzips each individually, but only if they've been modified within the last, say, 7 days.
    Context
    The idea is to create a set of gzipped directories that can then be uploaded to a remote server for backup and archival purposes. Since the parent directory is 8+ GB in size, and 99% of the contents does not change from week to week, I want to identify, zip, and upload only the directories that have been modified recently. (Uploading is outside the scope of this script).
    *Cut to the Chase*
    In plain english, my script might look like:
    1) find sub-folders contained within "~/Sites/" that have been modified within the last 7 days; do not go more than 1 level deep (i.e., return only the top level folders within ~/Sites/)
    2) loop through the returned list and gzip each directory
    I'm hoping that this can be done easily. Automator doesn't provide filters that are granular enough to do this, so I'm thinking bash is the way to go. Any help would be most appreciated, and will be rewarded with all kinds of good karma. =)
    -Steve

    OK, here is an untested and possibly syntactically incorrect Perl script:
    #!/usr/bin/perl -w
    use strict;
    my $siteDir = "$ENV{HOME}/Sites";
    # Get all the top-level contents of the Sites directory.
    opendir(SITES, $siteDir) or die "Couldn't open $siteDir folder.
    my @siteContents = readdir SITES;
    closedir SITES;
    # Reset my script startup time to be 7 days ago.
    $^T = time - (6060*247);
    # Now find all the modified directories since then.
    my @modifiedSiteDirs = grep { -d "$siteDir/$_" and -M "$siteDir/$_" < 7 } @siteDirs;
    foreach my $modifiedSiteDir (@modifiedSiteDirs)
    system qq{tar zcf "$modifiedSiteDir.tar.gz" $modifiedSiteDir};
    Actually, I did just test it with only a printout instead of executing tar and it works. I'm not sure of the path to tar on MacOS X. You may have to add that.

  • Trying to create a shell script to cut/paste files in finder. Help needed.

    I'm trying to create an automator shell script to cut/paste. It'll function exactly like copy/paste. i.e. I'll just copy file/files with command+c like always, but then I'll create an automator which uses the "mv" terminal app to move the files which works exactly like cut paste.
    I need some help since I don't know the syntax for creating shell scripts.
    What I did so far is to do it in automator with Apple Script which goes like the following:
    on run {input, parameters}
    tell application "Finder"
    set theWindow to window 1
    set thePath to quoted form of (POSIX path of (target of theWindow as string))
    end tell
    tell application "Terminal"
    do script with command "mv \"" & input & "\"" & thePath in window 1
    end tell
    return input
    end run
    This gets the copied file path from clipboard before, as input, and then recognizes the active finder window as thePath so then executes the mv command for the input file to the thePath window.
    It doesn't work as expected since it connects both file/window paths into a single path instead of leaving a space between them so the mv command can't recognize two separate paths.
    What's the correct syntax for that line
    do script with command "mv \"" & input & "\"" & thePath in window 1
    to leave a space between input and thePath under the mv command?
    Also this requires the terminal app to be open in the background.
    After I get this to work I want to do the exact same thing using shell script within automator, so I won't need Terminal to be open all the time.
    And the next step will be to cut/paste multiple files/folders but that should be easy to do once I get the hang of it.

    Try using:
    on run {input, parameters}
    tell application "Finder"
    set theWindow to window 1
    set thePath to quoted form of (POSIX path of (target of theWindow as string))
    end tell
    do shell script "mv \"" & input & "\" " & thePath
    return input
    end run
    (45977)

  • Need Help in creating Unix Shell Script for database

    Would be appreciable if some one can help in creating unix shell script for the Oracle DB 10,11g.
    Here is the condition which i want to implement.
    1. Create shell script to create the database with 10GB TB SPACE and 3 groups of redo log file(Each 300MB).
    2. Increase size of redolog file.
    3. Load sample schema.
    4. dump the schema.
    5. Create empty db (Script should check if db already exists and drop it in this case).
    6. Create backup using rman.
    7. restore backup which you have backed up.

    This isn't much of a "code-sharing" site but a "knowledge-sharing" site.  Code posted me may be from a questioner who has a problem / issue / error with his code.   But we don't generally see people writing entire scripts as responses to such questions as yours.  There may be other sites where you can get coding done "for free".
    What you could do is to write some of the code and test it and, if and when it fails / errors, post it for members to make suggestions.
    But the expectation here is for you to write your own code.
    Hemant K Chitale

  • Please help me remove the last elements of shell script from my applescript

    I read somewhere that running a shell script in an applescript was inefficient and created extra overhead, fine, so I am trying to take all of my shell script out of my applescript (this should fix issues with forward slashes in names as well...)
    however I am stuck on these last two lines (I know they are probably trivial but I've been up waaaay too long now) so I was wondering if anyone would be awesome enough to show me how to convert the bash to applescript.
    --does a recursive copy and rename
    do shell script "cp -R " & (thePath as text) & " " & (theOtherPathWithFile as text)
    --does a copy and rename, then a simple move
    do shell script "cp " & (quoted form of (POSIX path of this_item as text)) & " " & (theNewPath as text) & "&& mv " & (theOtherPathWithFile as text) & " ~/Desktop"
    Any and all help will be appreciated.

    There isn't anything wrong with using shell scripts, especially since AppleScript is designed to do this very thing. There is some overhead when using do shell script, just as there is some overhead when using an application tell statement, so it just depends on what you are doing.
    The performance of any particular script would also be up to whatever is acceptable to you (or your customers), and sometimes a shell script is the most efficient way to do something. Many of the system utilities are just GUI front-ends to a shell script, so they can't be all bad.
    To do your file copy or move with the Finder, you will need to tell it to duplicate or move the item(s) (there is that pesky overhead again). Shell scripts use POSIX paths while the Finder uses colons as its path delimiter, so you will need to use the correct file path references - there is a decent article about that at Satimage. Once your file paths have been defined (or using something like choose file or choose folder)), your script would be something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    duplicate source to destination
    -- move source to destination
    end tell
    </pre>
    See the Finder and *System Events* scripting dictionaries for more information about the ways they deal with files.

  • Help changing permissions using a shell script

    Hey,
    Here's the situation. We have 18 Macs, they're all cloned from a master image and have 2 local accounts - Administrator and Student.
    There are some files on the machines that the student account does not have permission to access, but it's critical that they do. I've written a shell script to change the files so that everyone has permission to read, write and execute them:
    #! /bin/bash
    clear
    sudo chmod ugo+rwx /Library/Audio/Plug-ins/Components/FM8.component
    sudo chmod ugo+rwx /Library/Audio/Plug-ins/VST/FM8.vst
    sudo chmod ugo+rwx /Library/Audio/Plug-ins/VST/FM8\ FX.vst
    sudo chmod ugo+rwx /Library/Application\ Support/Digidesign/Plug-ins/FM8.dpm
    In theory, this means I can just run the script, type the admin password in once and its done (as opposed to typing in the password 4 times and navigating to each file individually.)
    However, this doesn't quite work as planned.
    If I run the script, navigate to the files using the Finder and 'get info' it declares that "Everyone" can "Read & Write". The student account can see the file properly, but the finder just thinks there's nothing there (Size=Zero KB.) Only when I explicitly add the Student account (Add->Student) and set it to "Read & Write" does it start working.
    2 questions really - Why does it do this, and how do I make it work?
    It was my understanding that if everyone could read, write and execute there wouldn't be a problem, regardless of which account tries to access the file?
    Also, if there is a better/easier/faster way of doing the same thing I'm open to suggestions.
    Thanks.

    Thanks Tony,
    Your reply was helpful, I didn't realise you could tie all the paths together and just use one chmod command.
    I actually solved the issues myself this morning (fresh head on after a good nights sleep!)
    It turns out the 'files' I'm trying to modify aren't strictly files at all, they're packages. Using just chmod changes permissions for the top of the package only (hence why I could see the files but they said Zero KB.)
    adding -R to the chmod modified permissions to everything inside the package as well, which has resolved the issue.
    Thanks for the help though!

  • Shell Script Help

    I'm an IBM guy and I was assigned this MAC projet. I'm a MAC noob. I have a multi-user eMac. The user account folders are blown away when the computer shuts down leaving just the root accout and default account. I included a new javapolicy file in the default user account. A file called java.policy resides in the user home folder at log in (/users/johndoe/java.policy) for every new user that logs in. I need to create a logon shell script that finds the java.policy file in their home folder and renames it .java.policy to make it hidden. Remaming it in the default profile is not an option, and I don't know who will be using the computer at any given day. Can someone help me with the code.
    #!/bin/bash/
    I'm clueless, thanks for the help

    The generic bash rename syntax for your specified command is:
    mv /Users/shortuser/javapolicy /Users/shortuser/.java.policy
    Here's a typical script:
    #!/bin/bash
    mv /path/to/source/.java.policy /Users/shortuser/.java.policy
    The most direct mechanism would be via a computer login preference and workgroup manager, setting up a script that executes at user login. That script is invoked at login and can copy over or create the required file. Another of the usual techniques for executing commands at login is the so-called [login hook (HT2420)|http://support.apple.com/kb/HT2420], though if you're using Open Directory (OD) or OD with Active Directory (AD), it'll probably be better to go that way than the login hook.
    Other discussions [here|http://arstechnica.com/civis/viewtopic.php?f=20&t=416343] and [here|http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-appl et.html]
    I'd tend to expect to see the policytool used for this file, too. Launch Terminal.app and see +man policytool+ for details on that.
    I'd also tend to expect to see this sort of stuff established within the system-wide policy module from the JRE that's usually located in [the system library directory |http://stackoverflow.com/questions/4372060/java-security-file-location-on-mac- snow-leopard] (/Library/Java/Home/lib/security/java.policy) and not with a per-user setting, too, and that's a rather different approach than populating the per-user settings. (But then I'm not a Java geek.)
    FWIW, it's "Mac" and not "MAC", it's Unix, and files and directories doesn't get blown away unless there's a problem somewhere, or unless this is a school or kiosk or other environment that's using specific system-reset processing. And if there's system-reset processing here, then you'll obviously need to work within that. That processing is usually associated with OD, hence the earlier pointers. (And if there's this sort of reset processing going on, there's usually a reason for it, I'd probably try to keep as much sensitive stuff out of the local directories as I could reasonably manage.)

  • Unix shell Script Help

    Hi,
    I am not to familiar with shell scripting. And i need a shell script that would look for a certain filename (eg: ASN*.txt) in a directory(Eg:data) and if it does find that, it calls a concurrent program(Eg: abc.xyz) and once this is called and procedure excutes successfully, I take the file and move it to another directory(Eg:archive)
    Any help would be aprreciated.
    Thanks,
    Ja

    You bet.
    http://steve-parker.org/sh/sh.shtml
    http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/CShellII.html
    and about 300,000 more hits on Google

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

Maybe you are looking for

  • Master data in R/3  and automatic creation of CVC ?

    Hi All, we have requirement that all the master data created in R/3 should come to APO.Now some of the master data are optionals in R/3 so we need to develop a custom program so that if any master data is missing in APO then Master Data Controller sh

  • Read All Files in a Folder

    I have a large set of data. Many don't have similar names at all. They all have the same data form (a 100x2 array for example). Is there a way to have a VI read all the files, one after another, automatically? It's a lot easier when the files are the

  • Turning Bash into GLaDOS and other fun tricks

    I wanted to share some simple bash customizations that can improve functionality and awesomeness. All changes can be undone by deleting the added text or commenting out a line. This was made in Ubuntu, your mileage may vary. These edits can be safely

  • Performa 6400 & Mac IIcx

    I have both a Performa 6400/200 and MacIntosh IIcx. Both I want to transfer the data from each to my G5. The Performa has the following ports: 1. 25 pin scsi female connector. 2. 8 pin din female connector (printer icon) 3. 8 pin din female connector

  • Report is truncating in background

    Hi All, I am running one report having 35 columns in background. I am able to get only 20 fields and all other fields are truncated .My requirement is to run program in background and i have to download  all the records into desktop . I am working wi