Could not execute stored procedure

hello,
I have a stored procedure in oracle and I want to call it from a java bean. The stored procedure works when I did an "EXEC change_info()" call.
However, when I tried it in the Java Bean using:
CallableStatement stmt = conn1.prepareCall("{call change_info(?,?,?,?,?)}");
or
CallableStatement stmt = conn1.prepareCall("BEGIN change_info(?,?,?,?,?); END;");
stmt.execute();
The stored procedure doesn't work any more, i.e., it doesn't change the information. There are no errors or warnings indicating that there was any problems with the stored procedure.
Does anyone have any idea what I can do to make the stored procedure work?
Thanks for your help

sorry, I missed out a section of my code from the original post:
CallableStatement stmt = conn1.prepareCall("{call change_info(?,?,?,?,?)}");
or
CallableStatement stmt = conn1.prepareCall("BEGIN change_info(?,?,?,?,?); END;");
stmt.setString(1, 'id001938');
stmt.setString(2, 'namename');
stmt.setString(3, '1');
stmt.setString(4, '15');
stmt.setString(5, 'id002837');
stmt.execute();
thanks

Similar Messages

  • Could not execute stored procedure in oracle

    hello experts,
    Problem: I can not execute stored procedures stored in Oracle data base. Error Message: Portal request failed. Could not execute stored procedure.
    My steps:
    i connected my locally installed Oracle data base to the VC. I mapped the data base user to my VC user. I tested connection and it is fine. Further I see the db alias in Visual Composer and i can drop stored procedures to my story board. I can define parameters, but when I am executing procedures I get the error message.
    Further I installed MS SQL Server lokally and connected to the VC and it is working fine. I can do everything.
    Why it is not working for Oracle DB?
    DriverName: com.sap.portals.jdbc.oracle.OracleDriver
    Connect-URL: jdbc:sap:oracle://ip:port;sid=XE
    Any comment is highly appreciated.
    anton.

    Hi,
    Also you can follow this link which explains you the procedure to configure BI JDBC system for visual composer.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards
    Inder
    Do reward points if helpful.

  • Could not find stored procedure 'DataRefresh.GetSchedule'.

    When I try to fresh a powerpivot workbook that is published on SharePoint. It always give me an error. When I look in the ULS log it says
    Following error occured while trying to execute a sql query: System.Data.SqlClient.SqlException (0x80131904): Could not find stored procedure 'DataRefresh.GetSchedule'.     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
    Boolean breakConnection, Action`1 wrapCloseInAction)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()    
    at System.Data.SqlClient.SqlDataReader.get_MetaData()     at System.Data.Sq... 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33* w3wp.exe (0x1DCC)                        0x2720 PowerPivot Service           
     Data Refresh                   97 Medium   ...lClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)    
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method)     at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)     at System.Data.S... 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33* w3wp.exe (0x1DCC)                        0x2720 PowerPivot Service           
     Data Refresh                   97 Medium   ...qlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)     at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior
    behavior)     at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at System.Data.Common.DbDataAdapter.Fill(DataSet
    dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)     at Microsoft.AnalysisServices.SPAddin.MTSAccessorBase.ExecuteWithResults(String
    commandText, CommandType commandType, SqlParameter[] paramArray)  ClientConnectionId:6e4dd12c-4c00-4d28-810f-979bae03b34d 31a41e9c-44c3-409b-3f57-f575019b7830
    05/24/2013 15:48:58.33  w3wp.exe (0x1DCC)                        0x2720 SharePoint Foundation        
     Monitoring                     b4ly Medium   
    val it: unit=()

    I have this issue in my SharePoint 2013 azure environment. It is unclear what I need to do to overcome this issue. Any help is most appreciated.
    I get the following log messages:
    Following error occured while trying to execute a sql query: System.Data.SqlClient.SqlException (0x80131904):
    Could not find stored procedure 'DataRefresh.GetSchedule'.
    EXCEPTION: NoAvailableStreamingServerException: We cannot locate a server to load the workbook Data Model.
    macrel

  • Error Could not find stored procedure dbo.proc_GetFollowableLists

    I am troubleshooting a FIM installation and I am getting this error:
    The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID 9f556bbb-1796-4dee-9a73-f283b7874aeb) threw an exception. More information is included below.
    Could not find stored procedure 'dbo.proc_GetFollowableLists'.
    I don't get a single hit on that when searching the forums or webs. Any ideas? is it related to FIM Install?

    Hi,
    Please perform the steps below:
    Launch Services.msc on your servers and ensure that the SharePoint Timers Service is started and that its Startup Type is Automatic.
    Go to Central Administration > Monitoring > Configure usage and health data collection, see if Enable usage data collection and Enable health data collection are checked. If they are already checked, disable them firstly, then enable them again. Remember
    to perform IISReset and restart the service in the step 1.
    Please refer more information via:
    http://social.technet.microsoft.com/wiki/contents/articles/24492.sharepoint-2013-the-execute-method-of-job-definition-microsoft-office-server-userprofiles-lmtrepopulationjob-id-threw-an-exception.aspx
    http://www.mysharepointadventures.com/2012/10/event-6398-could-not-find-stored-procedure-dbo-search_getrecentstats/
    http://spjoel.wordpress.com/2012/08/06/could-not-find-stored-procedure-dbo-search_getrecentstats/
    http://www.marc-lognoul.me/itblog-en/sharepoint-2010-event-id-5586-and-6398-could-not-find-stored-procedure-dbo-search_getrecentstats-revisited/
    Regards,
    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] .
    Rebecca Tu
    TechNet Community Support

  • Could not find stored procedure 'mds_getRepositoryVersion'.

    When I start up the BI_Server1 component I get the following error in the logs and the server goes into ADMIN state. Any ideas what may be causing this? I've fixed a previous issue with wrong password in mds-owsm,that error is gone now.
    I've already confirmed I can access the database through SSMS.
    SELECT OBI_REP.BI116_MDS.mds_getRepositoryVersion()
    Result:
    11.1.1.61.63
    OBIEE11g 11.1.1.6
    Sql Server 2008 R2
    Windows Server 2008
    ####<Jul 20, 2012 5:27:18 PM EDT> <Info> <JDBC> <******> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638294> <BEA-001128> <Connection for pool "mds-owsm" closed.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <JDBC> <WUVW****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638313> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "mds-owsm" failed with exception: "java.sql.SQLSyntaxErrorException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'DUAL'.".>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <JDBC> <WU****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638315> <BEA-001111> <Unable to verify the test "SELECT 1 FROM DUAL" set up for pool "mds-owsm". Connections will not be tested. The test will not be used by isValid neither.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Info> <Common> <WU*****> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638318> <BEA-000628> <Created "1" resources for pool "mds-owsm", out of which "1" are available and "0" are unavailable.>
    ####<Jul 20, 2012 5:27:18 PM EDT> <Error> <Deployer> <WU******> <bi_server1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <0000JYaIM1pEgKhwD8icKw1G2SoP000002> <1342819638608> <BEA-149205> <Failed to initialize the application 'bipublisher [Version=11.1.1]' due to error oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
    oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
         at oracle.mds.config.PConfig.<init>(PConfig.java:758)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:491)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:438)
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:516)
         at oracle.mds.internal.lcm.deploy.DeployManager.startDeployment(DeployManager.java:204)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:215)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:77)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: oracle.mds.exception.MDSExceptionList: MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "MAR_TargetRepos" is invalid.
    [FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'mds_getRepositoryVersion'.
         at oracle.mds.config.PConfig.loadFromBean(PConfig.java:953)
         at oracle.mds.config.PConfig.<init>(PConfig.java:758)
         at oracle.mds.config.MDSConfig.loadFromBean(MDSConfig.java:787)
         at oracle.mds.config.MDSConfig.loadFromElement(MDSConfig.java:848)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:491)
         at oracle.mds.config.MDSConfig.<init>(MDSConfig.java:438)
         at oracle.mds.internal.lcm.deploy.DeployManager.deploy(DeployManager.java:516)
         at oracle.mds.internal.lcm.deploy.DeployManager.startDeployment(DeployManager.java:204)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:215)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:77)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:141)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:39)
         at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:191)
         at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:261)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:246)
         at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >
    Edited by: 844667 on Jul 20, 2012 2:48 PM

    Hi,
    I am getting the same thing and have not been able to find a resolution - would you happen to recall how you resolved this?

  • Could not find stored procedure 'sp_start_job'

    I'm trying to run a ms sql server agent job from within my vb.net code using sp_start_job and getting exception...
    Could not find stored procedure 'sp_start_job'.
    ... so obviously I'm doing something wrong.  My vb code contains is ...
            jobCommand = New SqlCommand("sp_start_job", sqlConn)
            jobCommand.CommandType = CommandType.StoredProcedure
            jobParameter = New SqlParameter("@job_name", SqlDbType.VarChar)
            jobParameter.Direction = ParameterDirection.Input
            jobCommand.Parameters.Add(jobParameter)
            jobParameter.Value = "nameOfServerAgentJob"
            jobCommand.ExecuteNonQuery()
    Can someone show me how to run the SQL Server Agent job properly from my vb code?
    Thanks tonnes for any help, Roscoe

    Or directly redirect the connection upon creation of the connection string to the right database, e.g.
    string ConnectionString = "Data Source=YourServer;Initial Catalog=msdb;Integrated Security=True";
    See more samples of connection strings here:
    http://www.connectionstrings.com/sql-server/
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • Could not find stored procedure

    Dear gurus,
    I am working, for the first time, on a SAP BPC ( MS ) demo.
    I have created a new input schedule based on a dynamic template, with some modifications.
    However when I try to submit data, it gives an error:
    "Could not find stored procedure 'dbo.up_ConcurrentLockDEL_HR'.;"
    DEL_HR is my application and is based on a existing one "FINANCE", but I have added new dimensions and deleted another ones.
    I can not understand this message because I don't know where I define stored procedures. I also commented all script logics that this application had.
    Could you help me on this?
    Best regards,
    Vitor Ramalho

    Hi Vitor,
    You need to login to the server, where SQL has been installed. You can login to that system using remote desktop connection.
    Once you login to the SQL server, under the databases, you will find your application set. Expand it and navigate to Programmability and then to Stored Procedures. Here, you will get all the stored procedures.
    The above statements will guide you to find the stored procedures. However, the problem, we are looking at is little different. Usually, with every application, a stored procedure with the name, "dbo.up_ConcurrentLockappname" gets created automatically. However, I am guessing that this stored procedure is not available for your application. Search for the stored procedure just to make sure that its available or not. If its not available, search for dbo.up_ConcurrentLockFinance. I am asking to search for the Finance one since your application is copy of the Finance application. So, just to make sure that the source application is fine. If this stored procedure is present but the stored procedure for your application is not present, then I would suggest you to create the application once again. Process it properly.
    Hope this helps.

  • [Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'dbo.sp_SPNAMEHERE'.

    OK, something seemed to have changed with my system because this error is NEW. It might be related to my system upgrade from Vista to Win7, but just guessing here.
    I run a database on a corporate MS Sql Server (2005) and an ASP application that connects via ODBC. The real world application works fine, however when I attempt to access Stored Procedures from Dreamweaver (on my development machine)  I am getting the following error:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'dbo.sp_SPNAMEHERE'.
    This only seems to happen on Stored procedures that RETURN a recordset.
    system:
    Win7
    Dreamweaver CS4
    Code: VBScript/Classic ASP
    SQL Server 2005
    Connecting via ODBC: MM_MY_STRING = "Driver={SQL Server};Server=wscxxxxxxxxx;Database=dbsystem;Uid=username;Pwd=XXXXXXXXXXXX"
    Stored procedures that do not return a recordset are not an issue.... this has put my development work at a standstill!!
    Thanks in advance!

    Well, I hate bumps, but I am really running out of solutions. I have now tried to use a system DSN on my development machine and that didnt solve the problem. I just un-installed DW and re-installed it and that didnt solve my problem either.
    This is very frustrating, because I cannot use any stored procs that return recordsets... I am stuck... can anybody think of a relatively easy work-around to working in DW w/ recordsets that come from SPs when you cant actually access them?
    The really weird thing is, when I build the command, and choose the stored proc, and give it valid input variables, and TEST it from the TEST button, everything works and data is returned as expected. Once I click "OK" and actually add it to the ASP page the recordset that should be visible isnt... and when I click the plus sign in the bindings window I get the error...
    Help!!

  • Event ID 57 - Could not find stored procedure 'dbo.proc_MSS_CrawlAdmin' and Could not find 'dbo.proc_MSS_Crawl'

    Sharepoint Enterprise 2010 - sp1 (feb. 2013 cu) - running enterprise search service
    Running sql. 2012 enterprise
    Event log has constant event ID 57 with A database error occurred. Source: Microsoft SQL Server Native Client 10.0 Code: 2812 occurred 1 time(s) Description: Could not find stored procedure 'dbo.proc_MSS_Crawl'  and along with it another Could not find
    stored procedure 'dbo.proc_MSS_CrawlAdmin'.
    How do I fix this issue?

    Hi there,
    I am seeing this issue (just the "proc_MSS_Crawl" stored procedure, not the other). Did you find a fix for this? Did you try running the configuration wizard to see if this resolved it?
    Regards,
    Ben
    Ben Weeks
    SharePoint Consultant @ Webtechy Ltd
    T: +441223922070 F: +448701315220
    Web: http://www.webtechy.co.uk Blog:
    http://blog.webtechy.co.uk

  • Central Administraion Internal server error 500 | event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock

    Hi,
    We have two SharePoint 2010 SP2 servers with one SQL 2012 Backend.
    Recently we cannot open the central administration, getting 500 internal server error and multiple SQL errors in event viewer:
    event id 5586 sharepoint foundation unknown sql exception 2812 could not find stored procedure dbo.proc_gettimerlock
    event id 5586 sharepoint foundation unknown sql exception 2812 occured could not find stored procedure 'proc_fetchdocforhttpget'
    Also I cannot run SharePoint configuration wizard, getting this error: sharepoint 2010 failed to resgister sharepoint services
    In the log file, I found this error "an exception of type microsoft.sharepoint.spexception was thrown 0x80131904"
    Any ideas?
    Thanks, Shehatovich

    As You can see below stored procedure has its specific Permission's, check user who is performing action as well as CentralAdministation Pool has right permission and their permissions are not modified from SQL Server.
    -Samar
     =
    Sr. Software engineer

  • Error Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send

    Hi,
    We are getting the following error when trying to send data via Input schedule or via Data Manager.:
              - Error Message -
    ExecuteSQL::Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send through SendGovernor failed;
    This same error is happening in every application, for example we have an application called Ventas, and the error occurs as follows:
              - Error Message -
    ExecuteSQL::Could not find stored procedure 'SP_DATA1FINANCE'.;CommitTrans::Send through SendGovernor failed;
    We did not have problems before when using version 5.1, this error is appearing now that we migrate to version 7.0-
    Do you have any idea what could be the cause of this error? We already tried Re-Processing Applications but still the same problem.
    Thanks
    Ana

    After you upgrade you have to save all applications.
    Bacause in V7 there are other stored procedures then in V5.
    Kind regards,
    Sam

  • Error: Could not find stored procedure !!

    Hi,
    Error: Could not find stored procedure.
    I Installed the SQL Server SP2 and the error still occurs when ever I call the stored procedure from my windows app!!
    Any Help ?

    I run this query:
    select uid,
    left ([name], 30) as [name]
    from sysobjects
    where [name] like 'ThisMonthRecords%'
    the result is:
    1 ThisMonthRecords

  • How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?

    Hi 
    I have a stored procedure. It can be executed like this
    exec test @p = 1;
    exec test @p = 2
    exec test @p = n;
    n can be hundred.
    I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time.
    If I know the number in advance, say 3, I can create 3 different Execution SQL Tasks. They can be run in parallel.
    However, the n is not static. It is coming from a table. 
    How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
    I think about using script task. In the script, I get the value of n, and the list of p, from the table, then running a loop with. In the loop, I create a threat and in the threat, I execute the sp like : exec test @p = p. So the exec test may
    be run parallel. But I am not sure if it works.
    Any idea is really appreciated.

    Hi nam_man,
    According to your description, you want to call stored procedures in parallel, right?
    In SSIS, we can create separate jobs with different stored procedures, then set the same schedule to kick the jobs off at the same time. In this way, we should be careful to monitor blocking and deadlocking depending on what the jobs are doing.
    We can also put all stored procedures in SSIS Sequence container, then they will be run in parallel.
    For more information about SSIS job and Sequence container, please refer to the following documents:
    http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
    https://msdn.microsoft.com/en-us/library/ms139855(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Problem in executing Stored Procedure from Trigger

    Hi,
    Case1.
    I am executing a stored procedure form a trigger. The stored procedure is not executing fully.
    Case 2.
    But when when I execute Stored Procedure alone it is executing.
    CREATE OR REPLACE TRIGGER mhubadmin.call_proc_ratesheet_new
    after INSERT OR delete ON mhubadmin.pvt_br_ratesheet
    FOR EACH ROW
    declare
    var_orgid number;
    begin
    if inserting then
    select org_child_id into var_orgid from business_relationship where br_id=:new.br_id;
    mhubadmin.proc_ratesheet_new(var_orgid);
    else
    select org_child_id into var_orgid from business_relationship where br_id=:old.br_id;
    mhubadmin.proc_ratesheet_new(var_orgid);
    end if;
    end;
    CREATE OR REPLACE PROCEDURE proc_ratesheet_new(var_orgid in number)
    IS
    cursor c3 is select distinct(purs.user_id) from hubuser hu
    inner join PVT_USER_RATESHEET purs on hu.USER_ID=purs.USER_ID
                   where hu.ORG_ID=var_orgid;
    cursor c1(varUser_id number) is select purs.user_id,purs.ratesheet_id from hubuser hu
    inner join PVT_USER_RATESHEET purs on hu.USER_ID=purs.USER_ID
                   where hu.ORG_ID=var_orgid and purs.USER_ID=varUser_id;
    cursor c2(varUser_id number) is select hu.user_id,pbr.ratesheet_id from HUBUSER hu
                             inner join BUSINESS_RELATIONSHIP br on hu.ORG_ID=br.ORG_CHILD_ID
                             inner join PVT_BR_RATESHEET pbr on br.BR_ID=pbr.BR_ID
                                  where hu.user_id in(select distinct(purs.USER_ID) from hubuser hu
                                       inner join PVT_USER_RATESHEET purs
                                                                     on hu.USER_ID=purs.USER_ID
                                                 where hu.ORG_ID=var_orgid) and hu.user_id=varUser_id;
    foundFlag boolean;
    incrFound integer;
    insertFound integer;
    deleteFound integer;
    str varchar2(4000);
    BEGIN
         incrFound:=0;
         insertFound:=0;
         for c3var in c3 loop
    for c2var in c2(c3var.user_id) loop
              insert into test values ('Step3:'||c2var.user_id);
              foundFlag:=false;
              for c1var in c1(c3var.user_id) loop
                   if c2var.ratesheet_id=c1var.ratesheet_id then
                        foundFlag:=true;
                             incrFound:=incrFound+1;
                             exit;
                        end if;
                   end loop;
                   if foundFlag=False then
                   --insert into pvt_user_ratesheet (username_ratesheet_id,user_id,ratesheet_id) values (SEQ_USER_RATESHEET.nextval,c3var.user_id,c2var.ratesheet_id);
                   dbms_output.put_line('Inserted for user :'||c3var.user_id||' is - ratesheet :'||c2var.ratesheet_id);
                   insertFound:=insertFound+1;
                   end if;
              end loop;
    end loop;
         commit;
         incrFound:=0;
         deleteFound:=0;
         for c3var in c3 loop
              for c1var in c1(c3var.user_id) loop
              foundFlag:=false;
              for c2var in c2(c3var.user_id) loop
                        if c1var.ratesheet_id=c2var.ratesheet_id then
                        foundFlag:=true;
                        incrFound:=incrFound+1;
                        exit;
                        end if;
                   end loop;
                   if foundFlag=False then
                   --delete from pvt_user_ratesheet where user_id=c3var.user_id and ratesheet_id=c1var.ratesheet_id;
                        --dbms_output.put_line('Deleted for userid:'||c3var.user_id||' for ratesheet :'||c1var.ratesheet_id);
                        deleteFound:=deleteFound+1;
                   end if;
              end loop;
    end loop;
         commit;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.put_line (SQLCODE||' '|| SQLERRM);
    END;
    Regards,
    Mathew

    In general, I would suggest that you only catch errors that you can handle reasonably. If you know that a SELECT INTO might return 0 rows for example, handle the NO_DATA_FOUND exception. Having a WHEN OTHERS, particularly without re-raising the exception, only serves to hide the source of the problem. I would much rather that my code fail quickly and explicitly than hope that I see an error message in the output and that other code doesn't start failing because the system wasn't left in an appropriate state.
    As Mark suggests, you may choose to implement a comprehensive logging framework using autonomous transactions, in which case a WHEN OTHERS would be reasonable, but you would still want to propagate exceptions you cannot handle.
    If you see a WHEN OTHERS clause and there is no RAISE, you probably have an error waiting to happen.
    Justin

  • Execute stored procedure as sysadmin

    Hi,
    I am running powershell script to execute stored procedure on SQL server. Powershell script is run with low privilege user account on SQL server, but SP is restoring databases and requires sysadmin permissions. How can I execute SP with sysadmin permissions?
    Could this be done proxy account? without additional users creation. Any links? Thanks

    You can create the sp using a sysadmin account (or in dbo schema) and use EXECUTE AS OWNER inside it
    Then give the powershell account execute access to the procedure and it will run under context of dbo user  (or owner account) which will have necessary permission to do the data base restore etc
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

Maybe you are looking for

  • Leopard slows down and freezes - please help

    I'm running Leopard on a Macbook and I have had startup problems and slowdowns in general a couple of days now. When I start up the machine I get the apple logo, the spinning circle and then the blue screen for about 2-3 minutes before I get my Leopa

  • Objects in a datafile

    can we find the name of the objects a particular datafile holds? thankx....

  • Having garbage characters while using enctype="multipart/form-data"

    Hi to all! =) I'm uploading a CSV file in JSP ny adding [enctype="multipart/form-data"]. <html:form method="POST" action="/upload.do" enctype="multipart/form-data">Now, I have a problem on handling Japanese Characters. (becomes garbage) I have declar

  • Upgrade to 12.1.2- impact analysis

    We are doing a technical analysis and comparison with our 12.0.6 instance vs the new 12.1.2 instance Can someone point me in the direction of documentation that might help in analyzing the impact of this upgrade from a Technical standpoint? I am rese

  • Formatting problems

    I cut and pasted a word doc into an iweb text box on a web page. On the iweb 'canvas' it looks great, but when I upload to godaddy, the format is all goofey. tabs and borders are off (it's almost like the font sizes changed during upload, because in