Skeleton Shell script needed to start jClient from prompt

Hi,
we like to call a class which uses an application module directly from command line. I wrote a little shell script which wraps the direct "java myClass" call (later on, we plan to use cron for automatic calls).
We use the Configuration.createRootApplicationModule method for creation of our application module (the class and the bc4j.xcfg are both packed in the same jar).
We run into some issues concerning setting the correct classpath:
I suppose our classpath isn't set properly.
Can anyone give me a list of BC4J jars (and other standard Oracle JARS) that must be in the classpath in that specific order? (incl. location where to find)
Or maybe an extract of your shell script if any exists.
Many thanks,
Stefan

Hi Arno,
thank you for your help.
@All:
Below please find a working script to start a batch job(which uses an application module in local mode) under a linux environment where Oracle 10g iAS is installed.
Have fun.
Stefan
# set up your directory where iAS 10g is installed
IAS_HOME=/usr/bin/oracle/product/appserv
export IAS_HOME
# set path for proper lookup of java.bin
export PATH=$PATH:$IAS_HOME/jdk/bin
# minimum amount of jars to start an application module
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jmt.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jct.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4domorcl.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/collections.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/lib/bc4jimdomains.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/BC4J/jlib/bc4jdomgnrc.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/jdbc/lib/classes12.zip
CLASSPATH=$CLASSPATH:$IAS_HOME/lib/xmlparserv2.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/jdev-cm.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/ojmisc.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/jlib/share.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/j2ee/home/lib/ojsp.jar
CLASSPATH=$CLASSPATH:$IAS_HOME/j2ee/home/jsp/lib/taglib/ojsputil.jar
# define further project specific APIs here (e.g. Batch-Job JARs, Apache Jakarta FOP JARs)
export CLASSPATH
# set java options (here: allow minimum of 512 Mb and a max. of 1 GB of heap memory) and start Batch-Job
java -Xms512m -Xmx1g MyBatchJob

Similar Messages

  • I need a shell script to move latest archivelogs from one server to another server..

    Hi,
         I need a shell script to move latest archivelogs from one server to another server..
    Thanks&Regards,
    Vel

    ea816fb9-f9ea-45ac-906f-36a8315970d0 wrote:
    Thanks it's really helpfull..
    Now i have pasted a shell script which generates archivelog and shows latest archivelog time..
    just check let me know the answer, that how i need to execute it..
    # Force a logswitch to get the last archivelog to the standby host
    ORACLE_SID=ORCL
    ORAENV_ASK=NO
    . oraenv >/dev/null 2>&1
    SwitchLogfile()
      # Do logswitch 
      RESULT=`echo "Alter system switch logfile;" | sqlplus -S / as sysdba | grep 'System altered'`
      if [ "$RESULT" = "System altered." ]
      then
      export RETURN=1
      else
      export RETURN=0
      fi
      # Do we need to do something with this return value?
      export RETURN
    GetArchiveTime()
      CURYEAR=`date +%Y`
      echo "set heading off;" > temp.sql
      echo "set termout off;" >> temp.sql
      echo "select to_char(first_time,'YYYY-MM-DD HH24:MI:SS') from v\$archived_log where sequence#=(select sequence# - 1 from v\$log where status='CURRENT');" >> temp.sql
      sqlplus -S / as sysdba <
    spool tempres.txt
    @temp.sql
    quit
    EOF
    cat tempres.txt | grep ${CURYEAR} | grep -v grep | awk '{print $1" "$2}'
    #rm -f temp.sql  tempres.sql
    SwitchLogfile
    GetArchiveTime
    You seem to have ignored Dude's VERY good advice and continue to press down this ill-advised path.  If you continue this approach, you WILL have problems at the very time you do not need any additional problems.  Trying to recover your production database at 2:00 in the morning is not the time to be getting errors from rman because it can't find what it needs - because you decided to move them around yourself.
    Please reconsider.

  • New to shell script need help for script

    Hi,
    I have following shell script which takes database name from file sql.config. this file has names of all staging database. I want to modify this script to run below analyze index commands if database is staging and if its production database then i want to run different set of commands say analyze user schemas. How can i implement this in below script (something like if then else)?
    connstr=`grep "gemsit_staging" /cronacle/tools/informatica/sql.config`
    sqlplus -S<<EOF1
    $connstr
    whenever sqlerror exit failure;
    ANALYZE TABLE GEMSIT_STAGING.AR_TRANS_DETAIL_STG COMPUTE STATISTICS;
    ANALYZE TABLE GEMSIT_STAGING.GLOBAL_SET_S COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_01 COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG01_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG02_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG03_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG04_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG05_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG06_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG07_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK1 COMPUTE STATISTICS;
    EOF1
    thanks

    if test $? -ne 0 ; then
                                    echo 'Processing Error' >> $Log_Dir/$Log_File
                                     exit 1
                            else
                                    echo 'Processing Completed' >> $Log_Dir/$Log_File
                                    rm -f  $Script_Dir/$Flag_File
                                     exit 0
                            ficreate two sql files one form test and for prod say test.sql and prod.sql with relevant sql statements
    this is a sample if else construct, you nned to get the env using "host"/"hostname" cmd on linux and assign this to a variable say envname
    if envname $? -ne 'PR' ; then
                                    echo 'Processing Test SQL' >> $Log_Dir/$Log_File
                                     <call the test sql here>
                                     exit 1
                            else
                                    echo 'Processing Prod SQL' >> $Log_Dir/$Log_File
                                   <call the Prod sql here>
                            fi

  • Running a shell script in a Cocoa-Applescript, from the Resources folder?

    Hello!
    I need to use a bash script, but the script must be IN the application. I placed them in the "Supporting files", but i am not able to find them using "do shell script"
    Thanks!

    If you stick the script in the Resources folder you can get it by
    path to resource "Bash Script"
    If you want to put it in the folder Supporting files you need to construct the path
    (path to me as string) & "Contents:Resources:Supporting files:Bash Script"
    (where Bash Script is the name of your script)
    Don;t know if there is a shorter way for the second case.

  • Shell script stop and start SAP

    Hello,
    Can you tell me the command to input username and password to login from shell script?
    I just know this -
    su - sidadm -c "stopsap"
    But this just logs in using Username - sidadm.
    how do modify this to add password also in command line?

    There are tools to do exactly that without a password - it's called "sudo".
    sudo is disabled by AIX team
    The "other user" must have execute right too.
    Since its just stopsap and startsap, they would be owned by sidadm only and executed by sidadm only through crontab
    I am guessing you do not know the syntax to use password in comman line on shell script

  • Shell script to stop/start oracle

    hi
    I want to build a shell script with argument the servername followed by either stop or start.
    How to do that in shell?
    thanks.

    #/bin/sh
    sqlplus -s "/as sysdba" <<!
    startup
    However, the output is:
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1281672 bytes
    Variable Size 251658616 bytes
    Database Buffers 356515840 bytes
    Redo Buffers 2912256 bytes
    Database mounted.
    Database opened.
    SP2-0103: Nothing in SQL buffer to run.
    How to get rid of this output??
    thx

  • [Solved] Shell script to read unhashed lines from file.

    Hello.
    I want to write a shell script  (it can be bash,sh,ksh,csh or zsh) that will be:
    1.Read unhashed lines from file named mirrors.conf.
    2.Put them in ~/.profile as PKG_PATH=line catted from mirrors.conf.
    Just like as mirrors.conf file for pacman.
    Now it can cat lines but how to put them in files as PKG_PATH?
    Thanks for answers.
    Last edited by SpeedVin (2010-03-01 17:33:20)

    res wrote:
    ^ IFS is not necessary here; it won't mess with the white space:
    $ echo 'args with formatted spaces ' | while read -r; do echo "$REPLY"; done
    args with formatted spaces
    It matters for leading/trailing whitespace:
    $ echo ' after some ' | while read -r line; do echo "<$line>"; done
    <after some>
    $ echo ' after some ' | while IFS= read -r line; do echo "<$line>"; done
    < after some >

  • If a movie is still loading since Wednesday will it still keep loading or do I need to start again from scratch?

    Movie has been loading since Wednesday?  Will it still keep loading or do I need to start again? Would I have to pay again?

    AppleTV works better with fast internet connections.
    To start near instantly you need:
    8 Mbps for 1080p HD
    6 Mbps for 720p HD
    2.5 Mbps for SD
    Test your internet speed at speedtest.net on a computer.
    Much slower for a given qulaity and the movie has to 'buffer' which will could take minutes if you're close to the speeds, or hours/days if much much slower.
    For example with a 4.5 Mbps I usually wait 30-40 mins for an HD rental to be available.
    The black AppleTVs have no permanent storage and will lose a buffering rental if you use it to watch YouTube, local itunes content etc so best not to interrupt it when buffering or it has to restart.
    However if it's been doing this for days it may be stuck (or your connection is very slow). Personally I'd restart the unit.  I have interrupted a buffering video and found it to get stuck when restarting with recent software.
    Is the 'time to watch' estimate changing?
    If you've already started to watch it it's probably expired, if only rented and viewed the loading screen your probably ok (30 days to start watching, 1-2 days to watch once started (eg 1 in US, 2 in UK)).
    If expired contact iTunes store via:
    https://expresslane.apple.com
    AC

  • How to use "do shell script" when Terminal replies with a prompt?

    Hey all,
    I'm wondering how to properly use "do shell script" when Terminal replies with a question? In this example, I'm building a small tool in AppleScript that will auto-update the Android SDK via command line prompts. The problem is when I tell it to update all ("update sdk --no-ui"), I need to accept licence agreements before it continues, and the amount of licence agreements brought up is different every time.
    So, basically, I'm wondering how to handle a case where "do shell script" encounters a case where Terminal would normally need a user's response to?
    Thanks,
    Behn

    If it is variable number of prompts that is a problem.  Look around hd and figure out how many prompts there will be. Ask around android forum for a bash solution. There are some test case apps that will let you put conditionals on output from running programs.
    # traditional way.  Pipe output to command.
    do script "echo 'ok' | update sdk --no-u"
    Here is the preferred way of getting administrator privileges.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Shell Script - Need to Open terminal and Print output?

    Hi All,
    I have a script to update a git version of a software, but I would like to be able to check the output of the script in a terminal.
    So in a nut shell, I want when launching the script:
    - Terminal to Open
    - All command to be executed in the terminal
    - Terminal to close only if no error (do not know if it's possible?)
    See below my very simple script:
    Many thanks in advance for your time and advice,
    rm -r /home/sweetth/banshee &&
    cd /home/sweetth &&
    git clone git://git.gnome.org/banshee &&
    cd /home/sweetth/banshee &&
    ./autogen.sh &&
    make

    Right,  I manage it differently
    So I got my script to dl those PKGBUILD for those Ipod library needed for the latest Banshee, then dl the latest banshee git and "make" it.
    for those who might be interested to keep their banshee-git update:
    #!/bin/bash
    xterm -hold -e "mkdir ~/libpod;
    cd ~/libpod;
    mkdir ~/libpod/gtk-sharp-beans-git
    cd ~/libpod/gtk-sharp-beans-git
    wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/PKGBUILD;
    wget http://aur.archlinux.org/packages/gtk-sharp-beans-git/gtk-sharp-beans-git/autogen_fix.patch;
    makepkg -s;
    mv gtk-sharp-beans-git** ~/libpod;
    cd ~/libpod;
    rm -rf ~/libpod/gtk-sharp-beans-git;
    mkdir ~/libpod/gio-sharp-git;
    cd ~/libpod/gio-sharp-git;
    wget http://aur.archlinux.org/packages/gio-sharp-git/gio-sharp-git/PKGBUILD;
    makepkg -s;
    mv gio-sharp-git** ~/libpod;
    cd ~/libpod;
    rm -rf ~/libpod/gio-sharp-git;
    mkdir ~/libpod/gkeyfile-sharp-git;
    cd ~/libpod/gkeyfile-sharp-git;
    wget http://aur.archlinux.org/packages/gkeyfile-sharp-git/gkeyfile-sharp-git/PKGBUILD;
    makepkg -s;
    mv gkeyfile-sharp-git** ~/libpod;
    cd ~/libpod;
    rm -rf ~/libpod/gkeyfile-sharp-git;
    mkdir ~/libpod/gudev-sharp-git;
    cd ~/libpod/gudev-sharp-git;
    wget http://aur.archlinux.org/packages/gudev-sharp-git/gudev-sharp-git/PKGBUILD;
    makepkg -s;
    mv gudev-sharp-git** ~/libpod;
    cd ~/libpod;
    rm -rf ~/libpod/gudev-sharp-git;
    mkdir ~/libpod/libpod-sharp-git;
    cd ~/libpod/libpod-sharp-git;
    wget http://aur.archlinux.org/packages/libgpod-sharp-git/libgpod-sharp-git/PKGBUILD;
    makepkg -s;
    mv libgpod-sharp-git** ~/libpod;
    rm -rf ~/libpod/libpod-sharp-git;
    cd ~/libpod;
    sudo pacman -U gtk-sharp-beans-git** gio-sharp-git** gkeyfile-sharp-git** gudev-sharp-git** libgpod-sharp-git**;
    rm -rf ~/banshee;
    cd ~;
    git clone git://git.gnome.org/banshee;
    cd ~/banshee;
    ./autogen.sh;
    make;
    rm bin/Banshee.NotificationArea.dll*"

  • Powser Shell Script to Purge Computer Records from SCCM

    Hello!
    I have built a collection in Configuration Manager to bring in a list of computers that have duplicate names. Here is the query that I am using.
    select R.ResourceID,R.ResourceType,R.Name,R.SMSUniqueIdentifier,R.ResourceDomainORWorkgroup,R.Client from SMS_R_System as r   full join
    SMS_R_System as s1 on s1.ResourceId = r.ResourceId   full join SMS_R_System as s2 on s2.Name = s1.Name   where s1.Name = s2.Name and s1.ResourceId != s2.ResourceId
    I am building a PowerShell Script to obtain the names of the computer resources stored in the above SCCM 2012 collection and place them in a variable. Next,
    I want to obtain the computer resources (e.g., ddr records) and store them in a 2ed variable using the first variable to pipe in the data. I am using a “ForEach” looping construct to accomplish this. Lastly, I want to purge the computers records from the Configuration
    Manager database that are stored in the second variable which came from the computers names of the specified SCCM collection. I am attempting to use this line of code within my loop to purge the computer records from SCCM:
    $compObject.psbase.syncroot | % { $_.psbase.delete()
    Here is a
    blog I found suggesting this line of code.
    What I have discovered is rather interesting. My script works as intended, but even though the correct records  ARE
    being purged. The above line of code is returning an error.
    You cannot call a method on a null-valued expression.
    At line:18 char:35 + $compObject.psbase.syncroot | % { $_.psbase.delete() }
    +                                   ~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull
    I have a few questions:
    Does anyone know why this is occurring?
    Is there a different approach or code I should be using instead to purge the collected data?
    Here is my full script:
    #// required parameters
    $SCCMServer
    = "MySiteServer"
    $sitename
    = "PS1"
    $collectionID
    = "PS1009c8"
    #// Obtain collection members from $collectionID
    $SMSClients
    = Get-WmiObject
    -Query "SELECT * FROM SMS_FullCollectionMembership WHERE CollectionID='$collectionID' order by name" 
    -ComputerName $SCCMServer
    -Namespace  "ROOT\SMS\site_$sitename"
    #//looping construct to loop through all the colection members
    ForEach ($SMSclient
    in $SMSclients) {
    #// Loads computer records one at a time into $compobject variable using a ForEachloop to be deleted
    $compObject
    = get-wmiobject
    -query "select * from SMS_R_SYSTEM WHERE Name='$($smsclient.name)'"
    -computername $SCCMServer
    -namespace "ROOT\SMS\site_$sitename"
    #// Delete’s computer objects one at a time in $compObject variable from CM12 database
    $compObject.psbase.syncroot
    | % {
    $_.psbase.delete() }
    --Tony

    Daniel
    Have you ever used Orchestrator to kick off your Powershell scripts? I am using System Center 2012 R2 Orchestrator, and trying to use the "Run .Net Script" action to launch my Powershell code, but the process is failing.  When I run the code
    from within PowerShell and RunBook Tester the code executes as it should. When I run it from the RunBook I receive this error:
    Exception calling "Delete" with "0" argument(s): "Generic failure "
    Just curious if you had any thoughts why my code was blowing up in an Orchestrator RunBook when it works fine within PowerShell? My full code is below.
    #// required parameters
    $SCCMServer = "MySiteServer"
    $sitename = "PS1"
    $collectionID = "PS1009c8"
    #// Obtain collection members from $collectionID
    $SMSClients = Get-WmiObject -Query "SELECT * FROM SMS_FullCollectionMembership WHERE CollectionID='$collectionID' order by name" -ComputerName $SCCMServer -Namespace "ROOT\SMS\site_$sitename"
    #//looping construct to loop through all the colection members
    ForEach ($SMSclient in $SMSclients) {
    #// Obtains and deletes the SCCM computer records one at a time using a ForEachloop
    Get-WmiObject -query "select * from SMS_R_SYSTEM WHERE Name='$($smsclient.name)'" -computername $SCCMServer -namespace "ROOT\SMS\site_$sitename" |
    ForEach-Object { $_.Delete() }

  • Remote shell script

    Hi Odigurus,
    I am a newbee to ODI application and i am trying to run a script in Unix box2 from the Windows box.
    Windows box - where ODI is installed
    Unix box1 - where master repository is installed
    Unix box2 - where the agent is installed and running, also where shell script needs to be executed from windows.
    Physical agent test goes successful from the windows to unix box2.
    When i try to execute the OS command from windows on to Unix box2 i get an error
    "Cannot start execution"
    java.lang.Execution:Error during Session launching: Error during Session Preparation : Oracle Data Integrator Timeout: connection Timeout: Connection URL
    jdbc:oracle:thin:@Unix box1:<port>:<SID> and user <Mast REP>.
    The above error tells me that it goes and connects to Unix Box1, is it because my ODIPARAMS.BAT files has those parameters, do i need to change those to point it to Unix Box2?
    Can somebody please help me figure out what am i doing wrong here.
    Thanks in advance for the help.

    Hi,
    Could you tell me how were you able to resolve he issue please? I too have the same scenario.
    Your help in this is very much appreciated.
    Thanks.

  • Executing a shell script from a Trigger

    All,
    I have to write a script to do the following requirement.
    There is a file called BUSINESS_DATE.TXT.
    This file get updated once the oracle partition created. In Oracle, Partition will be created every day. There is a seperate script scheduled to take care ORACLE partition creation.
    The above file will have only one row. i.e
    03092012
    If Oracle partition creation job failed, the above file won't be updated.
    My requirement is,
    I have to check whether the BUSINESS_DATE file is updated today or not. If yes, I will have to move the files from common area to input file directory to process those files.
    All file name will amend with current date.
    i.e
    LIDDIFD03092012.TXT
    The key part is to check the BUSINESS_DATE.TXT file is updated properly or not.
    We don't know what time the file will get updated. So we are planning to schedule the new script to run for every 15 mins to check whether the file is updated or not
    But...I just thougt instead of writing a shell script to do the above one, Why shouldn't I capture the date in a table (New table needs to be created) and use ORACLE TRIGGER to run the shell script to move the files from common area to input file directory to process those files?
    My Proposal in ORACLE :
    Create table business_date
    rep_date varchar(15),
    curr_timestamp timestamp
    Once the oracle partition created , one row will be inserted into the above table. This adjustment needs to be implemented partition script.
    Once this table get record, TRIGGER should call SHELL SCRIPT to move the files from common area to input area.
    If I implement ORACLE TRIGGER, The script which will check whether the file got updated or not for 15 mins is not required. Right? Inputs from experts are welcome!

    >
    But...I just thougt instead of writing a shell script to do the above one, Why shouldn't I capture the date in a table (New table needs to be created) and use ORACLE TRIGGER to run the shell script to move the files from common area to input file directory to process those files?
    >
    Triggers should not be used to do transactional work. There is no COMMIT in a trigger. What happens if the trigger runs the shell script and then a ROLLBACK occurs? You will have run the shell script when it shouldn't run.
    Create a stored procedure to run the shell script. Call the stored procedure when the partition is created.
    If you were using 11g and interval paritioning you wouldn't need to create the partitions manually. Oracle could create the partitions automatically.

  • Random SP2 error when starting oracle process through SHELL script

    Hi All,
    I am trying to process data in n-Number of tables through a package. The package is called through a shell script to create start data processing. All calls to the package are in a sql script which is basically exec calls-
    exec package.process ('T1','some param');
    exec package.process ('T1','some param');
    exec package.process ('T..n','some param');
    I have a shell script which I use to execute commands from the sql script. There is a reason behind using shell script. For some strange reason, I keep on getting -
    ERROR: logon denied - check for valid user with valid privileges
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SP2-0640: Not connected
    for some EXEC calls. Problem is, errors are generated at random. So in one run, I get error for T10,T11 and then in next run I might get for some other tables.
    However, when I am running the sql script from the sql prompt, all calls to the package are executed without any problem.
    This makes me think, it is something to do with the way database connection being initiated through UNIX.
    Has anyone faced similar issue? Your help/gudence is much appreciated.
    DB: Oracle 10.2.0.5
    OS: SUN Solaris 10
    Thanks in advance.

    Login credentials are provided inside the shell script.
    I did put a sleep(10) after EOF but no help. As mentioned if I run script file from sql promt, it runs without any hiccup. So it is the connection through the UNIX that is causing issue.
    As pointed out by Sybrand, I agree that it does not make a sense to connect and commit after every sql statement. So decided to change the shell script and so far, the result from my initial tests on a sample data is quite encouraging. Hopefully I will have a solution.
    But it will be nice to know why SHELL is doing what it is doing!!
    Legacy prog are sometime big time eye-openers..;)

  • Call Unix Shell Script From OBIEE

    Hi All,
    Is it possible to do a call to a Unix Shell Script with the Action Framework from OBIEE.
    Thanks in Advance

    I dont think so but we can go for it instead of BI side. Try to port the same functionality on shell script side, so that the script can identify your report using tail of nqquery log and execute the rest of your lines in shell script.
    This can doable and works as expected. If at all you are going with my suggestion you can go for a small key word to identify your report instead of that lengthy logical query.
    Pls mark if helps

Maybe you are looking for

  • How to create one checksum for 264 vis

    Hi, How to create "one Checksum" for 264 Vis.These 264 Vis are Interlinked if i change code for any .vi the checksum Should be update.This checksum is shown on the main window. Regards Ravindranath Solved! Go to Solution.

  • Strange Gateway Error with one APP Server (WSAETIMEDOUT)

    Hello Everyone, We are experiencing a strange gateway timeout issue on one application server in our SAP environment.  This started happening after we applied a series of Microsoft patches and updated the SAP kernals from 179 (DB 172) to 185 (DB 182)

  • How can I change drwxrwxr-t@ to drwxrwxr-t?

    Simple question, how can I change drwxrwxr-t@ to drwxrwxr-t on my Macintosh HD folder? I don't want to hear the words disk utility or reinstall 10.5 because I've already done this and I still have it.

  • PS don't "check-in" on my mac

    Hi, I'm using CQ5.5 DAM, and PS6 Extended. For any reason, on a Mac running Lion, I can't check in files opened with Bridge and stored in CQ-DAM mounted with Adobe Drive 4... It works well with Illustrator, but for Photoshop I have to manually Check-

  • Fedora-firefox4.repo corrupted can't install upgrade to firefox 4

    getting frequent message about corruption of repo file. cant upgrade