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

Similar Messages

  • Getting run time errors while executing the copied SAP programs

    Hi folks,
    i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
    i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include  programs.i am copying them to z programs like
    RQ00MF10 copied to z_RQ00MF10
    RQALVF14 copied to z_RQALVF14
    RQALVF16 copied to z_RQALVF16
    RQALVTOP copied to z_RQALVTOP.
    now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
    <b>runtime error---</b>
    The termination occurred in the ABAP program "Z_RQEEAL10" in           
    "SELECT_FIELDS_MANIP2_F16".                                           
    The main program was "Z_RQEEAL10 ".                                                                               
    The termination occurred in line 257 of the source code of the (Include)
    program "RQALVF16"                                                    
    of the source code of program "RQALVF16" (when calling the editor 2570).
    --Error in ABAP statement when processing an internal table.  
    --When changing or deleting one or more lines of the internal table         
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table   
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as                  
    the line index. An index less than or equal to zero is not                
    allowed.                                                                               
    The error can occur when using the following options:                     
    1. "INDEX idx" for specifying the line number in the table                
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"                                 
       where you want to change, insert or delete.                            
    2. "FROM idx" for specifying the start index when deleting a line         
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                
    3. "TO idx" for specifying the end index when deleting a line             
       area from or inserting a line area into the table                      
    "\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".                                                                               
    When the program terminated, the table had 2 lines.                       
    these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
    Thanks & regards

    Hi Madhu,
    I will give you one more check point where you have to give your concentration while copying the standard programs....
    Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
    one more is also here
    You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
    ~~Guduri

  • Getting ASSERTION failed error while executing RSPC1

    Hi Experts,
    I have created a chain and when I am trying to open in rspc1 I am getting a prompt which states"Node key does not exist".
    After executing the prompt I get a dump stating "Assertion condition was violated" .
    source code extract--
    METHOD SELECT_NODES.
      DATA:   l_nodekey        TYPE tm_nodekey,
              l_t_node_key    TYPE treemnotab.
      IF NOT i_t_nodeid IS INITIAL.
        LOOP AT i_t_nodeid INTO l_nodekey.
          APPEND l_nodekey TO l_t_node_key.
        ENDLOOP.
        o_r_tree_control->select_nodes(
        EXPORTING
          node_key_table               = l_t_node_key
        EXCEPTIONS
          multiple_node_selection_only = 1
          error_in_node_key_table      = 2
          OTHERS                       = 3
    >>>   ASSERT sy-subrc = 0.
      ENDIF.
    ENDMETHOD.

    Hi ,
    This is due to there is some bug in your code.there might be some in the transformation that you are loading.
    Check  the code you had written in the transformation.
    Try to re-activate you transformation and load again....
    In whcih SP level you are in ?
    Regards
    Laxman.

  • Getting error while executing workflow: java.lang.OutOfMemoryError.

    Hi,
    I am getting the below error while executing the unassigment workflow on AD resource having 160 user objects.
    java.lang.OutOfMemoryError.
    Please provid your inputs on this.
    Your help wolud be appriciated.
    Thanks
    Renuka.

    Well, if you're getting an out of memory exception then your memory settings are too low. Odds are there's a period of activity where the memory usage spikes above what you've configured for the VM.

  • Js-error while executing Multiple Image Upload wizard

    If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
    can someone help?
    thanx
    peter

    That again would be more of a question for the Cold Fusion group.
    Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
    Those people will be able to help you out more.
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Error while executing BexQuery

    Hi all,
    I am getting the following error while executing a Bex Query.
    SQL Error:  16
    SQL Error: 0
    Error while reading data; navigation is possible
    Can you let me know of any inputs regarding the same ?
    Regards
    Snehith.

    hi snehith,
    Check whether your infoprovider on which this query is build contains invalid Chars.
    thanks

  • ORA-01722: Error while executing query in Query Designer

    Hi All;
    I am getting the below error while executing a query
    ORA-01722: invalid number
    Error reading the data of InfoProvider
    Error while reading data; navigation is possible
    Have anyone encountered this before? How do i resolve this?
    Thanks!
    ~ Arun KK

    Hi,
    Did you checked all the setting required to run this query are present in the Qualtiy system??
    Which means all the characteristics,key figures are in active state.
    Also all the cubes are in active state with no issues with the involved in the dimensions used for the query.
    Also do a check in the query and if you have authorization try to save the same query and execute the saved one again in quality and see if the same error happens again.
    Thanks
    Ajeet

  • Error while executing the CKMLCP (Actual Costing) Transaction

    Hi Expert,
    I am getting the following Error while executing the CKMLCP (Actual Costing) Transaction through my User ID in system. If we execute the same transaction  with other user id then there is no Error. same role is assign to both user. Try to check SU53 screen shot but it show no error
    See the below error for referance:-
    Internal error in program SAPLCKML_RUN_COCKPIT_ACT
    Message no. CKMLRUN004
    Diagnosis
    An unexpected situation has appeared in program SAPLCKML_RUN_COCKPIT_ACT.
    The problem has to do with a program error - the indirect result of a program error or an inconsistency in Customizing.
    System Response
    Processing had to be terminated.
    Procedure
    Inform your system administrator
    Thanks
    Dinesh

    Hi Shyam,
    Thanks Shyam,
    I check this note this is not applicable for my system, In mention note Correction delivered in Support Package 600.
    but support Package in my system SAP_APPL 603 SAPKH60303,
    Is there any other note or solution for 603 SP
    Thanks
    Dinesh

  • Error while executing the report FAGLB03

    Hi,
    i am getting the below error while executing the report FAGLB03 and double click on the balances to view the report on line item wise.
    There is no active info structure for field catalog SAP_FI_DOC_003
    Message no. Q6504
    Diagnosis
    The system wants to access the Archive Information System. It uses the field catalog SAP_FI_DOC_003 to do this. However, there are no active archive information structures for this field catalog.
    Procedure
    Create an info structure for field catalog SAP_FI_DOC_003 or activate an info structure for this field catalog.
    Please could some one help me on this issue.
    Thanks & Regards,
    Venkat

    Hi,
    Please refer the below note.
    1361304.
    Reg
    Madhu M

  • Error While Executing the Asset history report S_ALR_87011990

    Hi,
    I am getting the below error while executing the Asset History Report - S_ALR_87011990
    No data was selected
    Message no. AB064
    Kindly advice me

    Hi,
    Thi may be a authorisation issue. I doubt that it will get recorded in su53 for report executing. Check with basis guy for respective asset class authorization.

  • Strange error while executing a stored procedure: Incorrect syntax near '@p0'

    All, I am getting a strange error while executing a stored procedure: Incorrect syntax near '@p0'  using JDBC CallableStatment.
    Here is my code...
    CallableStatement cStmt = con.prepareCall("{call SET CHAINED ON EXEC <dbName>.<schemaName>.<SPName> (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}");
    cStmt.setString(1, "2012005881");
    cStmt.setString(2, "07");
    cStmt.setString(3, "10");
    cStmt.setString(4, "Case title");
    cStmt.setString(5, "Open");
    java.sql.Date dt1 = new java.sql.Date(2014,10,20);
    cStmt.setDate(6, dt1);
    cStmt.setString(7, "01");
    cStmt.setString(8, "N");
    cStmt.setString(9, "ADA Test");
    cStmt.setString(10, "N");
    cStmt.setString(11, "English");
    cStmt.setString(12, "N");
    cStmt.setString(13, "N");
    cStmt.setString(14, "N");
    cStmt.setString(15, "N");
    cStmt.setString(16, "N");
    cStmt.setString(17, "N");
    cStmt.setString(18, "07");
    cStmt.setString(19, "10");
    cStmt.setString(20, "juache0");
    java.sql.Date dt2 = new java.sql.Date(2014,10,20);
    java.sql.Date dt3 = new java.sql.Date(2014,10,20);
    cStmt.setDate(21, dt2);
    cStmt.setDate(22, dt3);
    cStmt.setString(23, "userid0");
    cStmt.setString(24, "");
    cStmt.setString(25, "");  
    cStmt.setString(26, "");
    java.math.BigDecimal bg1 = new java.math.BigDecimal(10);
    cStmt.setBigDecimal(27, bg1);
    cStmt.setString(28, "userid");
    cStmt.setString(29, "userid");
    int hadResults = cStmt.executeUpdate();
    Your help is greatly appreciated.
    I am executing the above using Jconnect3.0 driver, inside WebSphere Application Server V8.0
    Thanks
    Nags

    NOTE: I don't work with JDBC/jConnect so (at this point) just some questions ...
    1 - are you sending this to ASE, ASA, IQ, or some other RDBMS?
    2 - what is the value of <schemaname>?
    3 - do you have other prepareCall() instances that successfully call a stored proc? [would be interesting to see if there's a difference in the format of the calls]
    A quick google search shows a couple ways to submit a stored proc execution to the RDBMS, with the format depending on the format expected by the target RDBMS.
    I'm wondering if you really need/want the parentheses around the argument list, ie, what happens if you change
    from
    -- parentheses around args
    EXEC <dbName>.<schemaName>.<SPName> ( ?,?,?,?,?,...,? )
    to
    -- no parentheses around args
    EXEC <dbName>.<schemaName>.<SPName> ?,?,?,?,?,...,?
    In ASE if I wrap the parameters in parentheses I get the same error you're getting:
    ================== w/ parentheses => error
    1> sp_who (sa)
    2> go
    Msg 102, Level 15, State 1:
    Server 'CC1_V1', Line 1:
    Incorrect syntax near 'sa'.   <<=== sa == @p0 ??
    ================== w/out parentheses => works
    1> sp_who sa
    2> go
    fid spid status  loginame origname ...
       0   17 running sa       sa       ...
    ==================

  • Runtime Error While executing the WebDynpro Application

    I am getting the Runtime Error While executing the WebDynpro Application. The error message is "TSV_TNEW_OCCURS_NO_ROLL_MEMORY".
    It says like "
    Short text
        No roll storage space of length 9728 available for OCCURS area.
    What happened?
        Each transaction requires some main memory space to process
        application data. If the operating system cannot provide any more
        space, the transaction is terminated.
    But while executing some other Web Dynpro Applications, i am not facing this problem.

    Generally this error is a result of an infinite loop on internal table or select endselect statement where by severs  temporary memory gets full. With no memory to insert new records in temporary memory system generates the dump.
    Check your application or ask basis consultant to look at the memory parameters in instance profile.
    Regards
    Rohit Chowdhary

  • Error while executing sales tax report S_ALR_87012394

    Hi,
    I am getting the below error while executing the sales tax report S_ALR_87012394.
    Infomration: I have maintained the tax jurisdiction code 9 digits initially.after that i have maintained with 10 digits
    Tax jurisdiction LA0000000 has defective structure
    Message no. FS790
    Diagnosis
    When calling the GET_JURISDICTION_LEVEL_TTXD function module, a tax jurisdiction code was transferred which does not correspond to the structure specified in the table.
    Procedure
    Check the calculation procedure for the company code and determine the respective tax jurisdiction length and structure in Customizing. Check that the tax jurisdiction code transferred corresponds to the tax jurisdiction length and structure.
    kindly help me
    Thanks
    Supriya

    check is there any notes which you have to apply to correct already posted entries with 9 digits. because of this its generating this error

  • Error while executing BEx

    hi !
    I am getting the following error while executing the query .
    Abort system error In program Cl_RSDM_READ_MASTER_DATA and form_sidval_direct_
    Please suggest .

    Do you have any replacment path variable defined in the query?
    MASTER_DATA_READ is done either by end of the query execution (before the formating the result area) or while performing the value population for any formula / KF where replacement path is used.
    - Danny

  • BPM: Error while executing Open - Unexpected exception

    Hello! Everyone
    Can you please let us know if anyone has faced similar issue and any suggestion on resolving the below issue would be very helpful:
    We have been experiencing problem with opening BPM in our ESR; we are getting a Error while executing open - Unexpected exception for all the BPM.
    I am copying the detail log, can you please help suggest steps to resolve this exception error in opening the BPM.
    Thank you,
    Vemul
    Also, here is the detail log of the BPM exception while executing open in ESR:
    ====================================================================
    = Root Exception ===================================================
    ====================================================================
    Thrown:
    com.sap.aii.utilxi.swing.toolkit.ServerCallCancelledException: Unexpected exception.
         at com.sap.aii.ib.clsif.gen.BeanAccessHandler.handleRuntimeExInBusinessMethod(BeanAccessHandler.java:87)
         at com.sap.aii.ib.clsif.oa.ObjectAccess.read(ObjectAccess.java:112)
         at com.sap.aii.ib.client.oa.ObjectHandler.read(ObjectHandler.java:119)
         at com.sap.aii.ib.gui.editor.DefaultPersistenceHandler.load(DefaultPersistenceHandler.java:94)
         at com.sap.aii.ib.gui.editor.XiDocument.load(XiDocument.java:249)
         at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.load(OpenCommand.java:353)
         at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.localOpen(OpenCommand.java:273)
         at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.execute(OpenCommand.java:211)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)
         at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:154)
         at com.sap.aii.ib.gui.operations.OperationsServiceProvider.executeDefaultOperation(OperationsServiceProvider.java:295)
         at com.sap.aii.ib.gui.nav.HierarchyNode.executeDefaultOperation(HierarchyNode.java:59)
         at com.sap.aii.utilxi.swing.framework.navigation.tree.DefaultTreeCard.handleHierarchyEvent(DefaultTreeCard.java:198)
         at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree.fireHierarchyActionEvent(ThreadedTree.java:542)
         at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree.executeStandardOperation(ThreadedTree.java:2264)
         at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree$DblClickHandler.mouseReleased(ThreadedTree.java:2196)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: com.sap.engine.services.rmi_p4.P4RuntimeException: Unexpected exception.
         at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:643)
         at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:612)
         at com.sap.engine.services.rmi_p4.reflect.P4InvocationHandler.invokeInternal(P4InvocationHandler.java:160)
         at com.sap.engine.services.rmi_p4.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:52)
         at $Proxy62.read(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sap.engine.services.ejb3.runtime.impl.StatelessRemoteStubInvocationHandler.invoke(StatelessRemoteStubInvocationHandler.java:89)
         at $Proxy63.read(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sap.aii.ib.clsif.login.BeanProxy.invoke(BeanProxy.java:114)
         at $Proxy63.read(Unknown Source)
         at com.sap.aii.ib.clsif.oa.ObjectAccess.read(ObjectAccess.java:101)
         ... 40 more
    Caused by: java.io.InvalidClassException: com.sap.aii.ib.bom.condition.xi71.parser.impl.ConditionParserImpl; local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID

    Thanks! Abinash
    We applied all the patches listed above,  however the issue still exists.
    Actually the issue started when we applied the patches initially and even after getting the latest patches the issue still exits same as mentioned above:
    When we try to click open any of our Integration Processes / BPM s we get the unexpected error while executing open.
    Please, do let us know if anyone has faced similar issue and how it could be resolved.
    Regards,
    Vemul
    Edited by: Parikshit Vemul on Jul 30, 2010 11:34 PM

Maybe you are looking for

  • Email address hacked via iphone. iphone locked home screen displaying my email password! and has been reset. now unable to restore iphone, saying i do not have permission

    Email address hacked via iphone. iphone locked home screen displaying my email password! and has been reset. now unable to restore iphone, saying i do not have permission

  • Where has my Muse site gone?

    I'm having an issue with an Adobe Muse site i've created and made live on BC: http://wwwthesoulbirdiscallingcouk.businesscatalyst.com When I open it up in Muse, it's opening a previous version from way back when I was building it. I'm also having an

  • Reg : Hiding the Previous Content in WebI

    Dear All , Need to Hide the previous prompt Content on header and  Prompt summary in the report , while run the WebI Report. Case : When open the WebI , its giving me the Previous result. displayed with header and prompt summary which includes previo

  • HP Veer facebook sync

    Pre plus user for 2 years here and recently decided to try the Veer. Upon setup I was prompted to enter my facebook password (the email was saved from my pre and restored when I used my palm profile). I put in the password and I get this message "The

  • Server Side Requirement

    I am a .Mac (Apple Computer) -- more recently MobileMe -- user who would like to upgrade the functionality of his .Mac (MobileMe) website. I use Dreamweaver CS3 to manage my website and would like to improve my webpage functionality to make my site m