ECATT/ABAP code to close a session while executing a chain script

How to close the extra created session during the execution of chain script??
Details of the problem:
I'm using eCATT for automating different business flows in SAP,
For a particular scenario I have to create a chain script,
One chain script may contain up to 40 individual scripts,
This chain script will contain around 7 report programs using SE38 transation,
While executing SE38 script(report program), one extra session is opening (log display session),
but, my script can close the original SE38 screen only, not the extra created session,
So, after executing 5 scripts (SE38 scripts), then "sessions reached to its max" message is appearing, and the script is failing,
As it is a automation test script, no manual interaction will be there,
i.e - we should not close the extra session manually.
Now, my question is:
How to close the extra created session..??
How the recording should be done to handle this problem..??
or any extra code should be added to close the extra session..??
Is there any ABAP code.. or eCATT command available to handle this problem..??
If you have any idea to close the extra created session, please share it with me,
my effort:
I tried with "RESCON" command... this will close all the SAP sessions,
This will not work for my scenario,
and, I tried with "Close session after every RFC",
this will work, but, after executing 5 SE38 scripts, I'm facing the above problem.
Please suggest me a solution, Thanks in advance..
Regards,
Chandra shekhar.A
Message was edited by:
        chandra shekhar
Message was edited by:
        chandra shekhar

user13490676 wrote:
could it be a problem with jmf itself that the endofstream doesnt get generated for the datasource being read from a fileIn this instance, that would be the problem... more than likely, there's something weird about the file, perhaps it doesn't have a duration set in the header and JMF treats it like a live stream.
You could always write a custom DataSource that just passes through the input of a normal data source, and then generate the EndOfStream event yourself... maybe based on a timeout or failure counter? I haven't received any data in x seconds or after x attempts, so I'm assuming the file is done... Or when you've read enough data that the file can't possibly have any more (read >= file header + file data)...

Similar Messages

  • An unknown error occurred while executing the PowerShell script:

    Hello all,
    Not the most descriptive title, granted. I'm hoping this may prompt the next version toprovide additional valuable content.
    Kindly requesting any help on this problem. I'm running VMM 2012 R2 version 3.2.7668
    When I try to look at properties of an existing Private Cloud, I get this error, only if I "look" at certain attributes. If I stay away from the specific attributes, everything is hunky dory. For reasons unknown, after I get this error, I have
    to exit and go back into VMM in order to get anything else to run.
    The text in the error dialogue box is not entirely applicable because I was connected to the VMM server and will connect again, when I exit/relaunch.
    An unknown error occurred while executing the PowerShell script:
    The connection to the VMM management server scvmm2.mmmmmm.com was lost.
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Try the operation again. If the issue persists, contact Microsoft Help and Support.
    ID: 27235
    This is what I get in Events
    Warning 4/9/2015 3:27:04 PM PowerShell (Microsoft-Windows-PowerShell) 4100 Executing Pipeline
    Log Name:      Microsoft-Windows-PowerShell/Operational
    Source:        Microsoft-Windows-PowerShell
    Date:          4/9/2015 3:27:04 PM
    Event ID:      4100
    Task Category: Executing Pipeline
    Level:         Warning
    Keywords:      None
    User:          mmmmmm\paufra
    Computer:      tools-francis.mmmmmm.com
    Description:
    Error Message = The connection to the VMM management server scvmm2.mmmmmm.com was lost. (Error ID: 1610)
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Fully Qualified Error ID = 1610,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.GetSCReplicationGroupCmdlet
    Recommended Action = Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager
    service is started on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Context:
            Severity = Warning
            Host Name = Default Host
            Host Version = 4.0
            Host ID = 94963cd4-5979-4786-9da2-c8814de8c7c3
            Host Application = C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmAdminUI.exe
            Engine Version = 4.0
            Runspace ID = 359d7a46-3752-4929-8c09-0de4152d10e4
            Pipeline ID = 16
            Command Name = Get-SCReplicationGroup
            Command Type = Cmdlet
            Script Name =
            Command Path =
            Sequence Number = 91
            User = mmmmmm\paufra
            Shell ID = Microsoft.PowerShell
    User Data:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-PowerShell" Guid="{A0C1853B-5C40-4B15-8766-3CF1C58F985A}" />
        <EventID>4100</EventID>
        <Version>1</Version>
        <Level>3</Level>
        <Task>106</Task>
        <Opcode>19</Opcode>
        <Keywords>0x0</Keywords>
        <TimeCreated SystemTime="2015-04-09T22:27:04.993655700Z" />
        <EventRecordID>285</EventRecordID>
        <Correlation ActivityID="{48059811-1A63-41E1-9057-7498D0E4FC20}" />
        <Execution ProcessID="2344" ThreadID="4076" />
        <Channel>Microsoft-Windows-PowerShell/Operational</Channel>
        <Computer>tools-francis.mmmmmm.com</Computer>
        <Security UserID="S-1-5-21-4008432563-1984933819-4238309236-2721" />
      </System>
      <EventData>
        <Data Name="ContextInfo">        Severity = Warning
            Host Name = Default Host
            Host Version = 4.0
            Host ID = 94963cd4-5979-4786-9da2-c8814de8c7c3
            Host Application = C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\Bin\VmmAdminUI.exe
            Engine Version = 4.0
            Runspace ID = 359d7a46-3752-4929-8c09-0de4152d10e4
            Pipeline ID = 16
            Command Name = Get-SCReplicationGroup
            Command Type = Cmdlet
            Script Name =
            Command Path =
            Sequence Number = 91
            User = mmmmmm\paufra
            Shell ID = Microsoft.PowerShell
    </Data>
        <Data Name="UserData">
        </Data>
        <Data Name="Payload">Error Message = The connection to the VMM management server scvmm2.mmmmmm.com was lost. (Error ID: 1610)
    Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager service is started
    on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    Fully Qualified Error ID = 1610,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.GetSCReplicationGroupCmdlet
    Recommended Action = Ensure that scvmm2.mmmmmm.com is online and that you can access the server remotely from your computer. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. Or, you can ensure that the Virtual Machine Manager
    service is started on scvmm2.mmmmmm.com. Then connect to scvmm2.mmmmmm.com and try the command again using the new connection. If the command fails again because of a connection failure, restart the Virtual Manager service and then try the operation again.
    </Data>
      </EventData>
    </Event>

    Hi Sir,
    First , please try to run the VMM configuration analyzer on that computer :
    http://www.microsoft.com/en-us/download/details.aspx?id=41555
    In addition , please try to use "VMMTrace" mentioned in following article to collect trace log and find some useful information :
    http://blogs.technet.com/b/jonjor/archive/2011/01/07/vmmtrace-simplified-scvmm-tracing.aspx
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Use ABAP code in "Decision Between Multiple Alernativesu201D in process chain

    Hi, does anybody know if it is possible to include ABAP code in formula definition when using u201CDecision Between Multiple Alernativesu201D in process chain.
    I wanted to read a specific parameter from one table in order to choose the next step in the process chain.
    If it is not possible, do you any workaround?
    Best regards,
    João Arvanas

    Hey.  You could create your own custom formula which you would code.  Then that formula is reuseable in the formula builder.  That should get you where you need to be.
    Here is a document on how to implement the custom formulas:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f095592f-42f7-2a10-6ab1-c836a559b48f?quicklink=index&overridelayout=true
    Hope this helps.
    Thanks

  • Error while executing a uinx script in BODS job - exit code 127

    I am executing a UNIX script using BODS job and it is giving an error message saying 'Program terminated because of exit code 127'. The same script i am able to execute in UNIX. I am not able to find the solution for this.

    Using a print command with return code 8 should give more insight to the error.
    print(exec('sh \bin','<your command>',8));

  • Error while executing unix shell script from java program

    Hi All,
    I am trying to execute unix shell script from a java program using Runtime.execute() method by passing script name and additional arguments.
    Code snippet :
    Java Class :
    try{
         String fileName ="test.ksh";
         String argValue ="satish"; // value passed to the script
         String exeParam = "/usr/bin/ksh "+fileName+" "+argValue;
         Process proc = Runtime.getRuntime().exec(exeParam);
         int exitValue = proc.waitFor();
         sop("Exit Value  is : "+exitValue);
    catch(Exception e)
    e.printStackTrace();
    }Test.ksh
      export -- application realated paths..
      nohup  abc.exe 1> test.log 2>&1;
      $1
      exit.By running the above java class , i am getting exit Value: 139 and log file test.log of 0 bytes.
    when i am running the same command (/usr/bin/ksh test.ksh satish) manually, it's calling abc.exe file successfully
    and able generate the logs properly.
    Pls let us know where exactly i am stuck..
    Thanks in advance,
    Regards,
    Satish

    Hi Sabre,
    As per the guidelines provided by the article, i had done below changes..
    InputStream is = null;
    InputStreamReader iStreamReader = null;
    BufferedReader bReader = null;
    String line = null;
    try{
    String fileName ="test.ksh";
    String argValue ="satish"; // value passed to the script
    String exeParam = "/usr/bin/ksh "+fileName+" "+argValue;
    Process proc = Runtime.getRuntime().exec(exeParam);
    is = proc.getErrorStream();
    iStreamReader = new InputStreamReader(is);
    bReader = new BufferedReader(iStreamReader);
    System.out.println("<ERROR>");
    while((line = bReader.readLine()) != null)
    System.out.println("Error is : "+line);
    System.out.println("</ERROR>");
    int exitValue = proc.waitFor();
    sop("Exit Value is : "+exitValue);
    catch(Exception e)
    e.printStackTrace();
    Now , it's showing something like..
    <ERROR>
    </ERROR>

  • Command not found error while executing a shell script

    Hello,
    I am a newbie to linux.I am attaching the code which gives me following errors..
    error list:
    1. no such file or directory enviornemnt
    2. command not found
    3. ambiguous redirectline
    Script
    cd $HOME/wkdir
    rm /tmp/*.log
    # source environment
    . ./env
    # Run the install script to setup the database
    # Configure SH account
    sqlplus "/ as sysdba" <<! > /tmp/perflab_install.log 2>&1
    grant connect, resource, dba to SH;
    alter user sh account unlock;
    # create the fetch_n_rows procedure
    sqlplus "$PERFLAB_USER" <<! >> /tmp/perflab_install.log 2>&1
    drop index sales_time_bix;
    drop index sales_time_idx;
    create index sales_time_idx on sales(time_id) compute statistics;
    -- fetch_n_rows: fetches 'n' rows from the specified statement --
    CREATE OR REPLACE PROCEDURE fetch_n_rows(
    stmt VARCHAR,
    name VARCHAR,
    nexec NUMBER := 1,
    nrows NUMBER := 0,
    debug BOOLEAN := FALSE)
    IS
    -- Local variables
    curs INTEGER := null;
    rc INTEGER;
    nexec_it INTEGER := 0;
    nrows_it INTEGER;
    BEGIN
    dbms_application_info.set_module('DEMO', name);
    WHILE (nexec_it < nexec)
    LOOP
    curs := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(curs, stmt, DBMS_SQL.NATIVE);
    rc := DBMS_SQL.EXECUTE(curs);
    nrows_it := 0;
    LOOP
    IF (dbms_sql.fetch_rows(curs) <= 0 OR (nrows <> 0 AND nrows_it = nrows
    THEN
    EXIT;
    ELSE IF (debug = TRUE)
    THEN
    DBMS_OUTPUT.PUT_LINE(nrows_it);
    END IF;
    END IF;
    nrows_it := nrows_it + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR(curs);
    nexec_it := nexec_it + 1;
    END LOOP;
    dbms_application_info.set_module(null, null);
    END fetch_n_rows;
    show errors
    # Start the workload
    . ./start_workload.sh > /tmp/setup_perflab.log 2>&1
    # Wait two minutes for workload to get going
    sleep 120
    # Modify snapshot interval
    sqlplus -s /NOLOG <<EOF >> /tmp/setup_perflab.log 2>&1
    connect / as sysdba
    set head on
    set feedback on;
    set pagesize 40
    rem -- event to allow setting very short Flushing interval
    alter session set events '13508 trace name context forever, level 1';
    rem -- change INTERVAL setting to 2 minutes
    rem -- change RETENTION setting to 6 hours (total of 180 snapshots)
    execute dbms_workload_repository.modify_snapshot_settings(interval => 2,-
    retention => 360);
    EOF
    Note : start_workload.sh is also in the same directory..
    Any help would be greatly appreciated.

    Please put your script between "code" format delimiters.
    http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
    You can add the line "set -x" at the beginning of your script to see at which line it fails? I suspect the . ./env line.

  • Changes are not reflecting while executing the SAP script from report

    HI,
    In SAP-script we are nmaking changes in form in client 130
    it is showing the changes in 140 client but while excuting the report the same are not reflecting in the output.
    Thanks in Advance
    Naveen M

    Hello.
    Scripts are mandant depentant. So you must copy from 130 to 140 for changes take efect.
    Do it in transaction SE71 in mandant 140, first screen, in the menu options.
    And never forget to activate it in all mandants.
    Best regards.
    Valter Oliveira.

  • Error while executing a simple script....

    Hi,
    I am trying to run the following simple script in Oracle 8i:
    UPDATE
    vcad_ocorrencias
    set tipo_situa_solic = 'E', desc_obs_atendente = 'ACERTO DE BASE -
    18/10/2004'
    where cod_solicitacao = 7
    and tipo_situa_solic in ('N', 'P')
    and cod_contrato_Inter not in ( 2247,2295,2296,2297,2278,2269,2168)
    and dthora_geracao < '07/10/2004'
    order by cod_contrato_inter;
    And it is returning the following message error:
    ERRO na linha 8:
    ORA-00933: SQL command not properly ended
    Well this script was made by a developer and now I have to run it in production environment...
    Does someone know why it is failing?

    Get rid of your 'order by statement'.
    order by cod_contrato_inter;
    Also make certain that the 'NLS_DATE_FORMAT' is set to 'DD/MM/YYYY' or change
    and dthora_geracao < '07/10/2004'
    to
    and dthora_geracao < to_date('07/10/2004','DD/MM/YYYY')
    UPDATE
    vcad_ocorrencias
    set tipo_situa_solic = 'E',
    desc_obs_atendente = 'ACERTO DE BASE - 18/10/2004' -- not sure if it is a date column
    where cod_solicitacao = 7
    and tipo_situa_solic in ('N', 'P')
    and cod_contrato_Inter not in ( 2247,2295,2296,2297,2278,2269,2168)
    and dthora_geracao < to_date('07/10/2004','DD/MM/YYYY')

  • Error while executing the perl script txkChkFormsDeployment.pl

    I run adstrtal.sh after update EBS from 12.1.1 to 12.1.3, when execute adformsctl.sh , it prompt the following error
    We have determined that you need to redeploy Forms (using txkChkFormsDeployment.pl).
    But could not do it automatically for you, due to some issues.
    For details refer the log files.
    Follow Note: 397174.1 to redeploy Forms manually.
    I try to run perl %FND_TOP%\bin\txkrun.pl -script=CfgOC4JApp, which tell me the blow info
    *** OPERATION is reload ***
    Execute SYSTEM command : /d01/oracle/PROD/apps/tech_st/10.1.3/opmn/bin/opmnctl reload
    /d01/oracle/PROD/apps/tech_st/10.1.3/opmn/bin/opmnctl: line 1150: /nfs/bld/d26/PRDXBLD9/apps/tech_st/10.1.3/opmn/bin/opmn: No such file or directory
    opmnctl: opmn is not running.
    =================================================
    **************** IMPORTANT NOTE *****************
    =================================================
    Script failed to deploy formsapp.ear.
    Follow Note: 397174.1 for deployment of formsapp.ear manually.
    ERROR DESCRIPTION:
    (*******FATAL ERROR*******
    PROGRAM : /d01/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkChkFormsDeployment.pl(/d01/oracle/PROD/apps/apps_st/appl/fnd/12.0.0/bin/txkrun.pl)
    TIME : Mon Jul 25 15:55:38 2011
    FUNCTION: TXK::RunScript::unDeployOC4JInstance [ Level 1 ]
    ERRORMSG: Application undeployment failed.
    what can I do?
    thanks

    ================================
    Inside unDeployOC4JInstance()...
    ================================
    Undeplolying Application : "forms" from OC4J instance: "forms"
    Execute SYSTEM command : /d01/oracle/PROD/apps/tech_st/10.1.3/jdk/bin/java -jar /d01/oracle/PROD/apps/tech_st/10.1.3/j2ee/home/admin_client.jar deployer:oc4j:opmn://ebs.upway.cn:6500/forms oc4jadmin ******* -undeploy forms
    Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    More information is available by enabling logging -- please see the Oracle Containers for J2EE Configuration and Administration Guide for details.
    Application undeployment failed.
    Stopping FORMS oc4j...

  • Error while Executing Process chains

    Hi All,
    Initially i have created infopack with full load and Executed it manually, later i have changed same infopack to Delta load and kept in Process chains, when i execute the Process chains, the start Process have get triggred, but my Process stops at load data.when i have check the log file it is showing the Below Message:
    "Message_Type_x" " "
    "CL_RSSM_LOADING===============CP" or "CL_RSSM_LOADING===============CM005"
    In Sm37 it is showing
    BI_PROCESS_TRIGGER   is Finished
    BI_PROCESS_LOADING is Cancled
    Please help meto find out  what might be the cause of this Error.
    Note: The infopackage will get data from Generic data Source.
    when i run the Process chains, the request is not going to R/3 Side.
    Thanks and regards,
    santosh.

    Hi Santosh,
    Go through this below note.
    Note 852443 - Dump in include LRSSMU36/RSSM_OLTPSOURCE_SELECTIONS.
    If Init is successfull then you can manually try the delta and check it.
    Hope this helps
    regards
    KP
    Asign points if helpfull

  • How to Debug a ABAP code running the background in Portal

    How can I debug a ABAP code running in the background while executing a transaction code through portal.
    e.g Presently I have to incorporate some checks in the portal. For that I know the function module where i need to put though checks. Now I want to know, how does the code during runtime. What values do we get in the function module. For this I need to get into the debugging mode while executing the portal.
    So how can we do that???

    Namit,
    it doesnot matter whether it is a standard funtion module or a custom one .check whether you are debugging for proper user(portal user and backend user are same) and check debugging is activated

  • Close a session user and a application using jspx.

    Hi everybody!
    I'm writing to yours because I'm doing a web application in ADF Faces. I have some jspx pages. In one of them I have a Logout link which close the session of the user. I want to add some code to close the application, I mean, to close de IE directly since that jspx.
    I know how to get my objective using JScript, but it doesn't what I want because I don't have the code to close the session of the user.
    Right now, I have this code window.parent.window.close();. It doesn't function into Firefox explorer. Could someone tell me the reason..??..
    I'll be waiting your responses.
    Thanks!
    Regards.

    Hi,
    I suggest you redirect to a HTML page that contains <body onLoad="document.close();"> This also helps around the fact that some browsers prevent scripts from closing the browser window
    Frank

  • Trigger Process chain using ABAP code

    Hi All,
    As per my knowledge there are 2 ways to trigger a process chain using ABAP code :
    1) Using FM ‘RSPC_API_CHAIN_START’ and passing process chain name as the parameter
    2)Using FM 'BP_EVENT_RAISE' and passing process event as the parameter, which you can create using SM62 transaction.
    I would like to know which one is better to use, in terms of advantage and disadvantage.
    Thanks,
    Praveena

    Hi praveena,
    check these links ..u .may get some help
    Process Chain
    Process Chain
    How to run a Process Chain
    Process chain-parallel process
    Regards
    BILL

  • Oracle error while executing VBscript file

    I have a Connection.vbs file with following contents:
    Dim strCon
    strCon = "Driver={Microsoft ODBC for Oracle}; " & _
    "CONNECTSTRING=(DESCRIPTION=" & _
    "(ADDRESS=(PROTOCOL=TCP)" & _
    "(HOST= TRISHUL)(PORT=1525))" & _
    "(CONNECT_DATA=(SERVICE_NAME=BTFLVAS))); uid=odb;pwd=odb;"
    Dim ocon1:set ocon1=CreateObject("ADODB.Connection")
    ocon1.open strCon
    Getting this error as a pop up message while executing this file :
    Script: D:\Connection.vbs
    Line: 10
    Char: 1
    Error: [Microsoft][ODBC driver for Oracle][Oracle]
    Code: 80004005
    Source: Microsoft OLE DB Provider for ODBC Drivers
    Please help!
    Shruti

    You are using an ODBC driver to connect to Oracle. The error you get is not an Oracle server error. (so ignore the silly request for an alert log)
    The error is from your client Oracle driver. It gets a TNS connection string (or alias) from the ODBC driver. This tells it how to establish a network connection to the Oracle Listener on the Oracle server platform.
    The Oracle driver then runs into a problem and says:
    12560, 00000, "TNS:protocol adapter error"
    // *Cause: A generic protocol adapter error occurred.
    // *Action: Check addresses used for proper protocol specification. Before
    // reporting this error, look at the error stack and check for lower level
    // transport errors. For further details, turn on tracing and reexecute the
    // operation. Turn off tracing when the operation is complete.
    Basic terms - your Oracle client driver ran into a network error when attempting to make the requested connection.
    This could be caused by a number of problems on your PC. Suggest you first check your TNS connection string to make sure it is valid. You can use tnsping (Oracle util in %ORACLE_HOME%\bin), e.g.
    C:\> tnsping "DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= TRISHUL)(PORT=1525))(CONNECT_DATA=(SERVICE_NAME=BTFLVAS)))"
    See if this works.

  • Getting SP2-0306 error while executing a scrpt.

    Hi all,
    We are using oracle version 11GR2 .
    I am getting the below error while executing a unix script which connect to DB and returns a value. Why we get such issues/ anything wrong in the setup ?
    Same code working fine in old db. any idead how to resolve this?
    SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] ERROR: ORA-01017: invalid username/password; logon denied SP2-0306: Invalid option. Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]] where <logon> ::= <username>[/<password>][@<connect_identifier>] <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>] SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*PlusPlease let me know if you need any details.
    Thanks and Regards
    Nagaraja

    Thanks for the response rp.
    I am calling the script checkdbtoproceedjob from another script as below.
    DBVALUE=`checkdbtoproceedjob ODS_LOAD $1` >> $LOGFILE
    echo "dbvalue is "$DBVALUE
    if [ $DBVALUE !=  "DBCONTINUE" ]
    then
      echo "**** job will be exited as db says no *****"
      exit 0
    fi
    echo "***** Job will be continued as db says yes ******" >> $LOGFILEDBVALUE is coming as null and I am getting the error.
    HOwever, If I execute the script alone as below it is returning the values. I don't think there is issue with credentials.
    checkdbtoproceedjob ODS_LOAD FORWARDARTICLE
    checkdbtoproceedejob
    #! /bin/bash
    . config
    set -x
    checkdbtoproceedjob()
    CONTROLFLAG=`sqlplus -s $CONNSTRODS << EOF
    whenever sqlerror exit sql.sqlcode
    set TRIMSPOOL ON
    set serveroutput on
    set pagesize 0 feedback off verify off heading off echo off
    declare
    pv_control_flag varchar2(50);
    pv_feed_name varchar2(100) := '$2';
    pv_job_name varchar2(100) := '$1';
    begin
    SP_CHECK_PROCEED_JOB(pv_job_name,pv_feed_name,pv_control_flag);
    dbms_output.put_line(pv_control_flag);
    end;
    exit;
    EOF`
    checkdbtoproceedjob $1 $2
    echo $CONTROLFLAG
    set +x
    exit 0am i doing something wrong? Please let me know.
    Regards
    Nagaraja Akkiivalli.
    Edited by: Nagaraja Akkivalli on Mar 28, 2012 1:50 PM

Maybe you are looking for

  • How do you get your iMac to show video (or mirroring) with Apple Tv...please help!

    I have searched this forum, read the articles here and on Google and I still can't figure this out. Perhaps what I'm wanting isn't possible. All I want to do is watch my CBS show from www.cbs.com on Apple Tv via my iMac. The Apple TV moniker is next

  • Getting "an unknown error has occurred" when signing into apps store

    I'm getting "an unknown error has occurred' when I tried to sign into Apps Store from one of my Mac Air. This is the only device that is having sign in problem. I can sign into Apps Store from another Mac Air, iPad and PC. What gives?

  • How to delete and start over?

    Greetings! I have several Shockwave folders scattered throughout my Mac G5 (OS 4.11). I have to use a web site that required Shockwave 10.  I have ver's 10 and 11 on my computer.  But after the Shockwave player (I don't know which one) loads both Saf

  • CORBA IDL "pragma ID" not solving problem

    Similar to "CORBA Bug?", I get the stacktrace that is listed at the end of this note. I have put "pragma ID..." for typedefs, structs and interfaces in my idl file. I did nothing else to the code. The same errors were generated, so I assume the "prag

  • Can I import my rules from Mail into iCloud?

    I have an elaborate system of rules forwarding incoming mail to various folders, and I'd prefer not to have to set it up all from scratch.