簡體   English   中英

oracle occi連接池報告ORA-00001:違反唯一約束(%s。%s)錯誤

[英]oracle occi connection pool reports ORA-00001: unique constraint (%s.%s) violated error

我嘗試下面的代碼

bool Database::initializePool()
    {
        connPool_ = env_->createConnectionPool(userName_, password_, connectString_, minConn_, maxConn_, incrConn_);
        if (!connPool_)
            return false;
        else
            return true;
    }

並且它報告了以下錯誤:拋出'oracle :: occi :: SQLException'what()實例后調用調用終止:ORA-00001:違反了唯一約束(%s。%s)

我猜可能是因為我的筆記本電腦掉電並異常關機。 我該怎么做才能正確?

謝謝。

我exp並刪除並再次顯示數據庫。 這樣就解決了。

我們在哪里能夠解決相同的發行人。

看起來occi驅動程序將錯誤代碼初始化為1,因此驅動程序每次“恐慌”都將看起來像“ ORA-00001:違反唯一約束(%s。%s)”

在您的情況下,數據庫將返回有關密碼到期日期的其他信息,並導致驅動程序崩潰。 重置密碼解決了該問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM