oracle標準預定義異常
程式設計時可以充分利用這些異常dyb
異定義異常就是那些在pl/sql中已經定義好並給予了異常名稱的異常。它們全部放在pl/sql自帶的標準包中,這樣pl/sql程式設計師就無需再次定義。oracle中總共有如下21種標準預定義異常:
oracle異常名稱
說明you tried to execute an insertor update statement that has
dup_val_on_indexora-00001created a duplicate value in a
field restricted by a uniqueindex.試圖破壞乙個唯一性限制youwerewaitingforaresource
timeout_on_resourceora-00051andyoutimedout.在等待資源時
發生超時
the remote portion of a
transaction_backed_outora-00061transaction has rolled back.
由於發生死鎖事務被撤消
youtriedtoreferenceacursorthat does not yet exist. thismay h**e happened because you』
invalid_cursorora-01001ve executed a fetch cursor or
closecursorbeforeopeningthecursor.試圖使用乙個未開啟的游標
you tried to execute a call to
not_logged_onora-01012oracle before logging in.沒有
連線到oracle
you tried to log into oraclewith an invalid
login_deniedora-01017
username/password
combination.無效的使用者名稱/口令select into沒有找到資料youtried one of the following:no_data_found
ora-01403you executed a select into
statement and no rows referenced anuninitialized row in a錯誤號
read past the end offilewiththeutl_ into返回多行you triedto execute a select into
too_many_rowsora-01422
statementandmorethanonerowwas returned.
試圖被零除you tried to divide
zero_divideora-01476
a number by zero.
轉換乙個數字失敗you tried toexecute an sql statement that
invalid_numberora-01722tried to convert a string to a
number, but it wasunsuccessful.
記憶體不夠或記憶體被破壞引發的內
storage_errorora-06500部錯誤youranoutofmemoryor
memory was corrupted.
內部錯誤,需重新安裝資料字典檢視和pl/sql包thisisageneric
program_errorora-06501「contact oracle support」
message because an internalproblem was encountered.
賦值操作,變數長度不足,觸發該異常you tried to perform anoperationandtherewasaerror
value_errorora-06502
onaconversion,truncation,orinvalid constraining ofnumeric or character data.宿主游標變數與pl/sql變數有不
rowtype_mismatchora-6504
相容行型別
試圖開啟乙個已開啟的游標you
cursor_already_openora-06511tried to open a cursor that is
already open.
access_into_nullora-6530試圖為null物件的屬性賦值
試圖給沒有初始化的巢狀表變數
collection_is_nullora-6531
或者varry變數賦值
subscript_outside_limitora-6532對巢狀或varray索引使用了負數
對巢狀或varray索引的引用大於
subscript_beyond_countora-6533
集合中元素的個數
Oracle基本資料型別
資料型別 char n 描述定長字串,n位元組長,如果不指 n 1 to 節定長度,預設為1個位元組長 乙個 漢字為2位元組 可變長的字串,具體定義時指明最大長度n,這種資料型別可以放數字 字母以及ascii碼字符集 或者ebcdic等資料庫系統接受的字符集標準 中的所有符號。n 1 to 節如果資...
教師異常心理狀況型別形成原因
教師是我國現代化教育事業的具體實施者,其教育和管理的物件是乙個個學生,其工作是雙向互動的,因此,教師心理健康與否不僅僅是教師的個人問題,它還直接關係著千千萬萬的學生能否健康成長,對我國的教育事業能否持續 健康 穩定的發展也有著直接的影響。據相關調查,存在心理問題教師約佔全體教師的65 以上,如果不及...
oracle裡long資料型別的總結
1 long 資料型別中儲存的是可變長字串,最大長度限制是2gb。2 對於超出一定長度的文字,基本只能用long型別來儲存,資料字典中很多物件的定義就是用long來儲存的。3 long型別主要用於不需要作字串搜尋的長串資料,如果要進行字元搜尋就要用varchar2型別。4 很多任務具,包括sql p...