System.AccessViolationException following database reconnection

We support a VB.NET application which uses Oracle Data Access Components (ODAC) 10.2.0.2.21 to access an Oracle 11g database. The database is on another server, so from time to time application loses its database connection because of comms failures. To cater for this eventuality the application before every database call checks for a valid connection and reopens the database if it can’t find one. This works, but subsequent database calls fail and return a System.AccessViolationException.
Here is an extract from the trace.
2010-09-08 17:08:42,284 ERROR - Database connection lost. Oracle.DataAccess.Client.OracleException ORA-03135: connection lost contact
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src, String procedure)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src)
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
2010-09-08 17:08:42,377 [5] ERROR - Database connection established.
2010-09-08 17:08:42,440 [5] ERROR - error in xxxxxxxx. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Oracle.DataAccess.Client.OpsSql.ExecuteNonQuery(IntPtr opsConCtx, IntPtr& opsErrCtx, IntPtr& opsSqlCtx, IntPtr& opsDacCtx, IntPtr opsSubscrCtx, Int32& isSubscrRegistered, OpoSqlValCtx& pOpoSqlValCtx, String pCommandText, IntPtr& pUTF8CommandText, IntPtr[] pOpoPrmValCtx, String[] ppOpoPrmRefCtx, OpoMetValCtx& pOpoMetValCtx, Int32 prmCnt)
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
Has anyone come across this before? Any help will be gratefully received.
When this question was posted in another forum, someone suggested that the solution might be to flush out the connection pool. Could anyone elaborate on that?

The first thing I'd recommend is patching to 10.2.0.5. 10.2.0.2.21 ODP was the first version to have .NET 2 support, and many issues have been taken care of since then. To do that, apply the 10205 rdbms patch (which you get on My Oracle Support) to your client installation.
Are you Disposing of the connection after the 3135 occurs?
As far as flushing the pool, the ClearPool APIs are available in 10.2 and higher, and discussed in the docs:
http://download.oracle.com/docs/cd/E11882_01/win.112/e12249/featConnecting.htm#CJAGDAGG
Hope it helps,
Greg

Similar Messages

  • Context connection and error ORA-20100: System.AccessViolationException

    I created a .NET stored procedure by following the instructions on this web (used different proc name):
    [http://www.oracle.com/technology/obe/net11gobe/stfunc/vs2.htm]
    I can deploy it fine into the database but got the following error when I ran it in SQL*Plus Worksheet:
    ORA-20100: System.AccessViolationException
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at Oracle.DataAccess.Client.OpsCon.OpenUsingExtProcContext(IntPtr ociExtProcContext, IntPtr& opsConCtx, IntPtr& opsErrCtx, OpoConValCtx pOpoConValCtx, OpoConRefCtx& pOpoConRefCtx)*
    at Oracle.DataAccess.Client.OracleConnection.OpenExtprocConnection()
    at Oracle.DataAccess.Client.OracleConnection.Open()
    at OracleTestProject.Class1.GetName()
    ORA-06512: at "SYS.DBMS_CLR", line 243
    ORA-06512: at "COMMPROD10.GETNAME", line 6
    I got the following error if I ran it again:
    ORA-20100: System.AccessViolationException
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at Oracle.DataAccess.Client.OpsSql.ExecuteReader(IntPtr opsConCtx, IntPtr& opsErrCtx, IntPtr& opsSqlCtx, IntPtr& opsDacCtx, IntPtr& opsReaderErrCtx, IntPtr opsSubscrCtx, Int32& isSubscrRegistered, Int32 bchgNTFNExcludeRowidInfo, Int32 bQueryBasedNTFNRegistration, Int64& query_id, OpoSqlValCtx& pOpoSqlValCtx, String pCommandText, OpoDacValCtx*& pOpoDacValCtx, IntPtr[] pOpoPrmValCtx, String[] ppOpoPrmRefCtx, OpoMetValCtx*& pOpoMetValCtx, Int32 NoOfParams)*
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader()
    at OracleTestProject.Class1.GetName()
    ORA-06512: at "SYS.DBMS_CLR", line 243
    ORA-06512: at "COMMPROD10.GETNAME", line 6
    The error was gone if I changed the connection string "context connection=true" to regular connection string with specific Data Source;User ID;Password in the .NET stored proc. Does anyone know how to solve it?
    FYI, I have installed Oracle Database 10.2.0.1.0 and then upgraded ODE.NET to 10.2.0.2.20 and then installed Oracle Database patch 10.2.0.4 on my machine.
    I have also installed the latest ODP.NET 11.1.0.6.20 and Oracle Developer Tools for Visual Studio from the web:
    [http://www.oracle.com/technology/software/tech/windows/odpnet/index.html]
    The top most line in my GAC showed both Oracle.Database.Extensions and Oracle.DataAccess have Version= 2.102.2.20.
    Thank you so much for the help!
    Jenny

    skj,
    Thank you for the reply!
    Yes, the Oracle Database patch 10.2.0.4 contains both ODE and ODP. The database I tried to connect to is on my machine so there was no remote server.
    Here is the result when I ran: gacutil /l oracle.database.extensions:
    Microsoft (R) .NET Global Assembly Cache Utility. Version 2.0.50727.42
    Copyright (c) Microsoft Corporation. All rights reserved.
    The Global Assembly Cache contains the following assemblies:
    oracle.database.extensions, Version=2.102.2.20, Culture=neutral, PublicKeyToke
    n=89b483f429c47342, processorArchitecture=x86
    oracle.database.extensions, Version=2.102.4.0, Culture=neutral, PublicKeyToken
    =89b483f429c47342, processorArchitecture=x86
    oracle.database.extensions, Version=1.102.3.0, Culture=neutral, PublicKeyToken
    =89b483f429c47342
    oracle.database.extensions, Version=1.102.4.0, Culture=neutral, PublicKeyToken
    =89b483f429c47342
    Here is the result when I ran: gacutil /l oracle.dataAccess:
    The Global Assembly Cache contains the following assemblies:
    oracle.dataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f
    429c47342, processorArchitecture=x86
    oracle.dataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342, processorArchitecture=x86
    oracle.dataAccess, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f
    429c47342, processorArchitecture=x86
    oracle.dataAccess, Version=1.102.4.0, Culture=neutral, PublicKeyToken=89b483f4
    29c47342
    oracle.dataAccess, Version=1.111.6.20, Culture=neutral, PublicKeyToken=89b483f
    429c47342
    I am not sure which version is really used. Maybe I should downgrade my ODP?

  • System.AccessViolationException ....  Using add_on with UDO

    Hello
    I have a problem with a add_on using UDO. The addon works well and installed everything except objects related to UDO. When I enter a record in UDO gives me the following error ..
    System.AccessViolationException'': Attempted to read or write protected memory. ...''
    Another machine is installed the same ADD_ON and work perfectly.
    The version is 8.81 PL5
    Thanks.
    Edited by: Carlos Zea Perez on Jun 30, 2011 7:23 PM

    First of all I have to once again strongly disagree with anyone who has an immediate response of "Upgrade your version", with no reason to do so. Was it a reported bug in the lower version? Is there a note about it? Upgrading the version, in a realistic Business environment is not an option unless it is a proven bug. It is an expense that customers will not pay.
    Secondly, the poster didn't even read the initial post because it clearly says that the same addon works on another machine! How could it have anything to do with the version? It is not a helpful answer.
    Thirdly, this is a common error.
    Try the following:
    1. Go to start->Run->%temp% and delete the SM_OBS_DLL file
    2. Go to add remove programs and remove the DI API installation
    3. Restart the machine
    4. Install the DI API from the PL05 again
    5. Retry your addon
    If the error still occurs, please let us know & include some code samples of where in the code the error is happening.

  • 'System.AccessViolationException' occurred in method 'Read' of class 'OpsDa

    Exception Stack Trace:_
    An exception of type *'System.AccessViolationException'* occurred in method *'Read' of class 'OpsDac'*
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    The stack trace given is: at Oracle.DataAccess.Client.OpsDac.Read(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsSqlCtx, IntPtr& opsDacCtx, OpoSqlValCtx* pOpoSqlValCtx, OpoMetValCtx* pOpoMetValCtx, OpoDacValCtx* pOpoDacValCtx) at Oracle.DataAccess.Client.OracleDataReader.Read()
    Environment Details:_
    Oracle Database- Oracle Database 11g Enterprise Edition Release 1 (11.1.0.6) Patch set 11.1.0.7
    ODP.NET- ODTwithODAC1110621- Oracle Data Access Components for Oracle Client 11.1.0.6.21
    Downloaded ODP.NET from the below link- http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    *.NET Framework* – v3.5
    ORM layer (Object Relation Mapping) - NHibernate (it is the data access layer used in my project- which internally uses ADO.NET in the background)
    Coding Language - C#
    Test Case:*
    I don’t have a particular test case for this exception, but below is the similar code that caused the exception.
    Code:_
    void Main()
    //Placeholder for saving ID of new record that is saved through ADO.
    static decimal ADOSavedObjectID;
    private ADONewTestRecord obj = new ADONewTestRecord();
    //ADO.NET code to save this returns saved object db ID.
    ADOSavedObjectID = SaveThroughADOViaNHibernate(obj);
    //Fetch the Saved record through NHibernate.
    TestNewRecordFromNHibernateViaADO = GetTestRecordThroughNHibernateViaADO(ADOSavedObjectID )
    public decimal SaveThroughADOViaNHibernate(ADONewTestRecord obj)
    //here we have NHibernate API to save the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    public TestNewRecordFromNHibernate
    GetTestRecordThroughNHibernateViaADO(decimal ADOSavedObjectID)
    // here we have NHibernate API to fetch the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    // Exception is raised.
    Please share your thoughts on this exception in ODP.NET, and request me if you need any additional details.
    Thanks

    Hi,
    How often does this occur? Is this consitently reproducible with certain code? Is it always that code that has the problem? Can you generally reproduce this in a test environment?
    For issues regarding 3rd party libraries that cannot be reproduced with a source code testcase, I'd generally recommend testing latest software versions if that's an option.
    If the behaivor still occurs on current versions, it may be best to open a SR with support so we can get some tracing, and also a memory dump of the access violation to see if we can match it to known issues. You can get a memory dump via setting ODP tracing to level 8, or also via the use of adplus, debugdiag, etc.
    Hope it helps, but realize it may not,
    Greg

  • System.AccessViolationException from Oracle.DataAccess.Client.OpsSql.Execut

    We support a VB.NET application which uses Oracle Data Access Components (ODAC) 10.2.0.2.21 to access an Oracle 11g database. The database is on another server, so from time to time application loses its database connection because of comms failures. To cater for this eventuality it checks for a valid connection before every database call and reopens the database if it can’t find one. This works, but subsequent database calls fail and return a System.AccessViolationException.
    Here is an extract from the trace.
    2010-09-08 17:08:42,284 ERROR - Database connection lost. Oracle.DataAccess.Client.OracleException ORA-03135: connection lost contact
    at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    2010-09-08 17:08:42,377 [5] ERROR xxxxxxxx [(null)] - Database connection established.
    2010-09-08 17:08:42,440 [5] ERROR xxxxxxxx [(null)] - ERROR - error in xxxxxxxx. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at Oracle.DataAccess.Client.OpsSql.ExecuteNonQuery(IntPtr opsConCtx, IntPtr& opsErrCtx, IntPtr& opsSqlCtx, IntPtr& opsDacCtx, IntPtr opsSubscrCtx, Int32& isSubscrRegistered, OpoSqlValCtx*& pOpoSqlValCtx, String pCommandText, IntPtr& pUTF8CommandText, IntPtr[] pOpoPrmValCtx, String[] ppOpoPrmRefCtx, OpoMetValCtx*& pOpoMetValCtx, Int32 prmCnt)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    Has anyone come across this before? Any help will be gratefully received

    Try posting this to the ODP.NET forum.
    You might need to flush out the connection pool, but they can help you with that.

  • System.AccessViolationException Error while previewing report in ASP NET

    HI,
         We are getting "System.AccessViolationException: Attempted to read or write protected memory." while previewing the report in ASP NET Application. It is working fine in 3 enviornments but the problem is happening in production enviornment.
    Tools Used : VS2005, CR XI R2, SQL Sever 2005
    Please help Me.
    Regards,
    Sathish

    Hi
    Give it a try by
    Deleting the temp directory contents then provide read permission to IISWPG process for "temp" directory or just for testing purpose you can provide the full rights.
    Hope this will help!!
    Amit

  • I have lost my system preferences following restoration of harddisc

    I appear to have lost system preferences following restoration of my hard drive I have looked everywhere and whilst the dropdown box under the Apple logo apears to have it nothing happens.  Can anyone suggest a solution

    How Restore Deleted or Missing OS X Components
    A few of the basic OS X installed applications can be restored from the Optional Installs installer located in the Optional installs folder on your Installer DVD.  However, if what you need is not there then follow the instructions below.
    How to Use Pacifist to Restore Deleted or Missing OS X Components
    Insert the OS X Installer DVD into the optical drive.  Use a simple utility like TinkerTool to toggle invisibility so you can see invisible items.  Alternatively, open the Terminal application in your Utilities folder and at the prompt enter the following:
    defaults write com.apple.finder AppleShowAllFiles Yes
    Press RETURN.
    To turn off the display of invisible files repeat the above command substituting No for Yes.
    The install packages are located in the /System/Installation/ folder on the DVD.
    Download the shareware utility Pacifist. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
    Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
    Click on “Open Package ....” and navigate to package desired and click “Open” in the open/save window.....proceed to step 7.
    Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go to Folder. In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.)
    Click on the  "Go" button ..... • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1.          In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b.          or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3.          In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4.          On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5.          Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
              20 files were scanned. 20 of 20 files were present on the hard disk. 0 of 20 files had file permissions that did not match those specified in the package. 0 of 20 files had checksums that did not match those specified in the package.
    6.          Click “close”. Go to step 7.
    Extract or Install........
    7.          In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8.          If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9.          In the next dialog, click “Extract”.
    10.          If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11.          Type in your password, click “OK”
    Pacifist will begin to extract files.
    12.          In steps 8/10ß.... you also have the choice to “cancel”
    Notes:          Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
    Stop
    Leave original alone
    Update .....
    Default selection
    Replace .... (Replace option should only be used on full install packages)

  • Exchange 2013 Update Crashes: System.AccessViolationException

    Currently we are trying to update Exchange Server 2013 from RTM Release Version 15.0 (Build 516.32) to CU4 (SP1). Each time we try to run the installer Configuring Microsoft Exchange Server. This happens for any of the CU Updates. Exchange is
    installed on the Domain Controller, Windows Server 2012. 
        Organization Preparation                                  0%
    Unhandled Exception: System.AccessViolationException: Attempted to read or write
     protected memory. This is often an indication that other memory is corrupt.
       at Microsoft.Exchange.Management.Deployment.ExsetdataNativeMethods.SetupAtom(
    UInt32 atomID, UInt32 setupMode, String InstallDir, String SourceDir, String DCN
    ame, String Org, String LegacyOrg, String AdminGroup, String LegacyAdminGroup, S
    tring AdminGroupContainingRoutingGroup, String RoutingGroup, ManagedLoggerDelega
    te logger)
       at Microsoft.Exchange.Management.Deployment.ManageExsetdataAtom.BuildToBuildU
    pgradeAtom(AtomID atomID)
       at Microsoft.Exchange.Management.Deployment.BuildToBuildUpgradeExsetdataAtom.
    InternalProcessRecord()
       at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
       at System.Management.Automation.CommandProcessorBase.DoExecute()
       at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute
    Enumerate(Object input, Hashtable errorResults, Boolean enumerate)
       at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Bool
    ean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pip
    eElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcCo
    ntext)
       at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(Inter
    pretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R
    un(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.R
    un(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame
    frame)
       at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
       at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1
    clause, Object dollarUnderbar, Object inputToProcess)
       at System.Management.Automation.CommandProcessorBase.DoComplete()
       at System.Management.Automation.Internal.PipelineProcessor.DoCompleteCore(Com
    mandProcessorBase commandRequestingUpstreamCommandsToStop)
       at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecute
    Enumerate(Object input, Hashtable errorResults, Boolean enumerate)
       at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
       at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionCo
    ntext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
    ontextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Hello,
    For security and performance reasons, it is not recommended that installing Exchange Server on DC server.
    Please use dcdiag command-line tool to check if your DC server run normally.
    Please check if there is related error in application log, when the issue occurs.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • Orantcp9.dll System.AccessViolationException

    Hi
    i have some problems with the oracle client. Can anybody help?
    I get this error in the Evenlog
    Description:
    Faulting application x.exe, version 2.6.6.1, faulting module orantcp9.dll, version 9.2.0.6, fault address 0x000056a4.
    And this error from the UnhandledException Handler.
    ### UnhandledException ### System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at System.Threading.WaitHandle.WaitOneNative(SafeWaitHandle waitHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
    at System.Threading.WaitHandle.WaitOne(Int64 timeout, Boolean exitContext)
    at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
    at System.Threading._TimerCallback.TimerCallback_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._TimerCallback.PerformTimerCallback(Object state)
    hope you can give me a hint for this problem
    thx Mike

    Hi
    i have some problems with the oracle client. Can anybody help?
    I get this error in the Evenlog
    Description:
    Faulting application x.exe, version 2.6.6.1, faulting module orantcp9.dll, version 9.2.0.6, fault address 0x000056a4.
    And this error from the UnhandledException Handler.
    ### UnhandledException ### System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    at System.Threading.WaitHandle.WaitOneNative(SafeWaitHandle waitHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
    at System.Threading.WaitHandle.WaitOne(Int64 timeout, Boolean exitContext)
    at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
    at System.Data.ProviderBase.DbConnectionPool.CleanupCallback(Object state)
    at System.Threading._TimerCallback.TimerCallback_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._TimerCallback.PerformTimerCallback(Object state)
    hope you can give me a hint for this problem
    thx Mike

  • Again:  Define Number Ranges per Backend System for Follow-on Documents

    Obviously I have a problem with this setting! What have I done wrong?
    We are running ECS with multiple Backends. We want to assign different number ranges to each backend PO.
    Our settings:
    - Number Range SC and Follow On Documents:                          01 0100000000 - 0199999999 (internal) and                                                                               
    P1 3010000000 - 3019999999 (internal)
    - Number Range local PO:                                                         P0 3000000000 - 3999999999 (internal)
    - Number Ranges per Backend System for Follow-on Documents: XYZCLNT010 PO number range = P1
    - Transaction Type ZRM assigned to number range PO
    - Backend Document Type ZRM assigned to an external number range P1  3010000000 - 3019999999
    I would have expected following system behaviour:
    System creates the local PO within number range P0 and creates in backend XYZCLNT010 a PO within number range P1.
    But instead SRM tries to post the backend PO with a number from range  P0.
    What is wrong?
    Rgds.
    Dieter

    Hi. I do not know how to fix your problem as standard, I have never done the same setup, but BADI BBP_BS_GROUP_BE will allow you to choose different number ranges in method GET_NUMBER_OR_RANGE.
    Does that help at all?
    Regards,
    Dave.

  • System.AccessViolationException in clickonce deployment when starting WPF app

    We see a lot of these errors on the production environment when launching our WPF clickonce application.
    Can someone explain this error?
    See here the error mentioned in the eventviewer.
    Application: BrioShell.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException Stack:    at System.Deployment.Internal.Isolation.Manifest.IHashElementEntry.get_AllData()    at System.Deployment.Application.Manifest.File..ctor(System.Deployment.Internal.Isolation.Manifest.FileEntry)
       at System.Deployment.Application.Manifest.AssemblyManifest.get_Files()    at System.Deployment.Application.Manifest.AssemblyManifest.GetFilesInGroup(System.String, Boolean)    at System.Deployment.Application.ComponentStore.CheckGroupInstalled(System.Deployment.Application.DefinitionAppId,
    System.Deployment.Application.Manifest.AssemblyManifest, System.String)    at System.Deployment.Application.SubscriptionStore.CheckGroupInstalled(System.Deployment.Application.SubscriptionState, System.Deployment.Application.DefinitionAppId, System.Deployment.Application.Manifest.AssemblyManifest,
    System.String)    at System.Deployment.Application.DeploymentManager.SynchronizeGroupCore(Boolean, System.Deployment.Application.SyncGroupHelper)    at System.Deployment.Application.DeploymentManager.SynchronizeGroupAsyncWorker(System.Object)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)    at
    System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()    at System.Threading.ThreadPoolWorkQueue.Dispatch()    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    Greetings Ambionix

    We are having the same problem. Initial async download of three file groups works fine (so directly after installation). On an upgrade, we kick off the async download again. It then always raises the error shown below, independent whether it is a VSTO add-in
    or clickonce app. Our apps run as full trust on .NET 4.5.2.
    Application: Invantive.Estate.App.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.AccessViolationException
    Stack:
       at System.Deployment.Internal.Isolation.Manifest.IHashElementEntry.get_AllData()
       at System.Deployment.Internal.Isolation.Manifest.IHashElementEntry.get_AllData()
       at System.Deployment.Application.Manifest.DependentAssembly..ctor(System.Deployment.Internal.Isolation.Manifest.AssemblyReferenceEntry)
       at System.Deployment.Application.Manifest.AssemblyManifest.get_DependentAssemblies()
       at System.Deployment.Application.Manifest.AssemblyManifest.GetPrivateAssembliesInGroup(System.String, Boolean)
       at System.Deployment.Application.DownloadManager.AddDependencies(System.Deployment.Application.FileDownloader, System.Deployment.Application.Manifest.AssemblyManifest, System.Deployment.Application.Manifest.AssemblyManifest, System.Uri, System.String,
    System.String)
       at System.Deployment.Application.DownloadManager.DownloadDependencies(System.Deployment.Application.SubscriptionState, System.Deployment.Application.Manifest.AssemblyManifest, System.Deployment.Application.Manifest.AssemblyManifest, System.Uri,
    System.String, System.String, System.Deployment.Application.IDownloadNotification, System.Deployment.Application.DownloadOptions)
       at System.Deployment.Application.DeploymentManager.SynchronizeGroupCore(Boolean, System.Deployment.Application.SyncGroupHelper)
       at System.Deployment.Application.DeploymentManager.SynchronizeGroupAsyncWorker(System.Object)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()

  • Help need on inserting system date on database

    hello every body,
    I need to insert system date into database through prepared statement.
    i wrote code :
    java.util.Date d=new java.util.Date();
    Preparestatement psmt;
    psmt.setDate(8, java.sql.Date(d));
    am getting class cast exception :
    could u please tell me how to insert system date through prepared statement..
    thanks in advance..

    Surround your code with a
    try{
    //Insert date here
    catch(Exception e){
    //handle exceptions here
    e.printStackTrace();
    Who says he didn't already?
    Try this:
    java.util.Date d=new java.util.Date();
    >
    Preparestatement psmt;
    psmt.setDate(8, new
    java.sql.Date(d.getTime()));This is correct, but can be condensed (if you want)
    psmt.setDate(8, new java.sql.Date(new java.util.Date().getTime()));
    >
    It's good idea to use the JDBC escape function
    instead of using a specific DBMS function. This way,
    your code will be portable.
    sql = "INSERT INTO USERS VALUES("
    + "'" + userName + "'" + ","
    + "'" + userPw   + "'" + ","
    + "  {fn now() }  )"; e Real's How To
    (http://64.18.163.122/rgagnon/javadetails/java-0567.ht
    ml)
    And this is only marginally applicable.  If he wishes to use the same statement for the current date, as well as other dates, he cannot make use of this.  Of course, I don't really know if I would trust or recommend a tutorial site that advocates building statements that are screaming for injection attack attempts.
    Edit:  Too slow by a mile!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Conversion from system to demo database

    I have a EPM9.0 database in peoplesoft . How can I check if the database is system or demo instance?
    I need a demo database but if I have a system database then can I convert a system into demo database?
    If yes then how to do it? Can i just run the datamover script and convert.
    If not then I will have completely build up a new EPM database demo version

    Basically, there is no difference between a DEMO and SYSTEM database, but data.
    If you are not in multilingual config, when you create a SYSTEM database, one datafile is imported, $PS_HOME\data\hcengs.db amd when you create a DEMO database, two datafiles are imported, $PS_HOME\data\hcengs.db and $PS_HOME\data\hcengl.db
    If there is no sample data in a SYSTEM database, there are a lot in a DEMO database. You could check the user account list to see easily if there is sample account or not.
    To move from a DEMO to a SYSTEM database, it could be really paintful since you have to remove a lot of data from many tables (not only the sample user account).
    If a development database could be based on a DEMO database, a UAT or production one must be built on a SYSEM database. To change, the most simple way is to create a SYSTEM database from scratch, and move the users projects from the DEMO to the SYSTEM database.
    To move from a SYSTEM to a DEMO, it is the same, much more sure to create a DEMO database from scratch and move the projects.
    Or you could try to import a dms data file specific to the DEMO $PS_HOME\data\hcengl.db, but it could overwrite your own modifications or so, I didn't test a move from SYSTEM to DEMO with such running.
    Nicolas.

  • System crash during database extension

    Hello!
    Unfortunatly we experienced a system crash during database extension.  The new datafile (DISKD0013) was only partly (1,4GB of 9GB) created, when the server went down.
    These are the error messages we get when trying to start the database:
    2008-01-22 13:59:26  7246 ERR 11000 page0io_ Illegal file format
    2008-01-22 13:59:26  7246 ERR 11000 page0io_ blocksize wanted: 8192, blocksize found: 0
    2008-01-22 13:59:26  7214 ERR 11000 vattach  dev0_vattach returned FALSE
    2008-01-22 13:59:26  7214 ERR 20027 IOMan    Attach error on data volume 13: Could not open volume
    2008-01-22 13:59:26  7214 ERR     3 Admin    Database state: OFFLINE
    2008-01-22 13:59:26  7214 ERR     6 KernelCo  +   Internal errorcode, Errorcode 9050 "disk_not_accessible"
    2008-01-22 13:59:26  7214 ERR 20017 Admin     +   RestartFilesystem failed with 'I/O error'
    2008-01-22 13:59:28     0 ERR 12009 DBCRASH  Kernel exited due to signal 0(Killed after timeout with state SERVER_KILL)
    2008-01-22 13:59:28                          ___ Stopping GMT 2008-01-22 12:59:28           7.6.01   Build 012-123-145-275
    Is there a manual way to correct this problem by removing the "corrupted" DISKD0013?
    Regards,
    Fredrik

    Hi Fredrik,
    you can either:
    a) remove all necessary parameters from the paramfile using the relevant dbmcli commands (param_directdel)
    b) perform a parameterfile recovery using dbmcli (param_restore)
    You're okay as long as nothing was written on the new volume.
    When using a) you need to make sure you delete all necessary parameter entries belonging to the datavolume (size, type etc.).
    When you're restoring to an old parameterfile, you need to make sure the parameterfile's only difference is the datavolume extension as the last change, otherwise you'd possibly reset more than you'd like. To check the parameterhistory, you can for example take a look at the <DBSID>.pah file in the /sapdb/data/config directory.
    If you're unsure what to do, i.e. if it's a productive system and you're an SAP customer: open an OSS message.
    Regards,
    Roland

  • Alter system and Alter database

    Hi all,
    Can U please tell me the difference between alter system and alter database.
    Thanks in advance...

    From SQL Reference
    Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is mounted.
    Use the ALTER DATABASE statement to modify, maintain, or recover an existing database.
    instance => the processes using the database files
    database =>database files

Maybe you are looking for