相关疑难解决方法(0)

只用一个活动会话随机获得ORA-08177

我正在运行一个创建表然后插入一些数据的程序.
这是访问数据库的唯一程序.
我正在随机获得ORA-08177.
实际代码有点复杂,但我编写了一个简单的程序来重现这种行为.

using System;
using System.Data;
using Oracle.DataAccess.Client;

namespace orabug
{
  class Program
  {
    private const string ConnectionString = ""; // Valid connection string here

    // Recreates the table
    private static void Recreate()
    {
      using (var connection = new OracleConnection(ConnectionString)) {
        connection.Open();
        using (var command = connection.CreateCommand()) {
          command.CommandText = @"
            declare
              table_count binary_integer;
            begin
              select count(*) into table_count from sys.user_tables where table_name = 'TESTTABLE';
              if table_count > 0 then
                execute immediate 'drop table TestTable purge';
              end if; …
Run Code Online (Sandbox Code Playgroud)

oracle odp.net ora-08177

21
推荐指数
2
解决办法
1万
查看次数

标签 统计

odp.net ×1

ora-08177 ×1

oracle ×1