Oracle ORA-01948:identifier's name length(%s)exceeds maximum(%s)報錯的解決
標題:Oracle ORA-01948:identifier's name length(%s)exceeds maximum(%s)報錯的解決
作者:lōττéry©版權所有[文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任.]
*** 今天將一個大結果集建立一張普通表時 報ORA-01948錯
*** 如下是簡版介紹
SQL>
2 create table t_1 as
3 select
4 temp.EMP_ID,
5 temp.EMP_NAME,
6 temp.ID_CARD_NO,
7 sum(PER_PAY_FEES_AMO+COM_PAY_FEES_AMO) ** 等欄位
8 from ...... ** 等資訊
ORA-01948 : identifier's name length (38) exceeds maximum (30)
SQL>
錯誤介紹:
[oracle@xcf ~ ]$ oerr ora 01948
01948, 00000, "identifier's name length (%s) exceeds maximum (%s)"
// *Cause: A name has been specified that is too long.
// For example, dbms_session.is_role_enabled() specifies a role name
// that is too long.
// *Action: Change the application or command to use a correct identifier.
[oracle@xcf ~ ]$
01948, 00000, "identifier's name length (%s) exceeds maximum (%s)"
// *Cause: A name has been specified that is too long.
// For example, dbms_session.is_role_enabled() specifies a role name
// that is too long.
// *Action: Change the application or command to use a correct identifier.
[oracle@xcf ~ ]$
根本原因:
*** In oracle database, all the object names must not be greater than 30 characters in length.
檢視sum(PER_PAY_FEES_AMO+COM_PAY_FEES_AMO)欄位的長度 ... 38字元很符合報錯
SQL> SELECT lengthb('sum(PER_PAY_FEES_AMO+COM_PAY_FEES_AMO)') FROM dual ;
LENGTHB('SUM(PER_PAY_FEES_AMO+
------------------------------
38
檢視長度為30字元的欄位,確認是否不報錯
SQL> SELECT lengthb('sum(SF_SB_SUM_AMO+FLF+FLF+FLF)') FROM dual ;
LENGTHB('SUM(SF_SB_SUM_AMO+FLF
------------------------------
30
SQL> *** 建立成功..
SQL>
2 create table t_1 as
3 select
4 temp.EMP_ID,
5 temp.EMP_NAME,
6 temp.ID_CARD_NO,
7 sum(SF_SB_SUM_AMO+FLF+FLF+FLF) ** 等欄位
8 from ...... ** 等資訊
Table created
SQL>
【源於本人筆記】 若有書寫錯誤,表達錯誤,請指正...
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28602568/viewspace-1426422/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 匯入報錯:field in data file exceeds maximum lengthOracle
- sqlldr Field in data file exceeds maximum lengthSQL
- sqlldr匯入資料包錯 Field in data file exceeds maximum lengthSQL
- 安裝S_S相關報錯的troubleshooting
- Just as it's the EA name attached to it
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- rebloom k8s 報錯OOMK8S
- 解決 Cannot find OpenSSL's
- Oracle's ParallelOracleParallel
- 基於字元陣列s[]的s,&s字元陣列
- K3S新增節點報錯
- laravel報錯的問題 42S01 420004 42S22]等...Laravel
- Xcode This application's application-identifier entitlemeXCodeAPPIDE
- What's the maximum typical speed possible with a USB2.0 drive?
- C/S和B/S
- S7Comm報文詳解
- B/S與C/S的區別
- 探索Amazon S3:儲存解決方案的基石(Amazon S3使用記錄)S3
- Oracle's V$ Views(轉)OracleView
- Oracle runInstaller 's UsageOracle
- STM8S I2C Slave模式錯誤解決模式
- 部署 k8s 服務, flannel pod 報錯K8S
- S19格式檔案詳解(S-record) 分享
- 啟動apache遇到錯誤:httpd: Could not reliably determine the server's fully qualified domain nameApachehttpdServerAI
- C/S,B/S的應用的區別
- C/S和B/S結構
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- 誤操作bug解決 三星為S7/S7 edge更新升級
- 收藏What’s the Point of Oracle Checkpoints?Oracle
- Oracle DBA's Road.Oracle
- Oracle’s NOLOGGINGOracle
- cursor: pin S產生原理及解決方法
- B/S和C/S架構的比較架構
- 國行蘋果6S價格iPhone6S Plus報價蘋果iPhone
- Oracle中Number(p,s)的意義Oracle
- 解決kai's super goo 1.5讀光碟的問題AIGo
- B/S與C/S的聯絡與區別
- 「KDOI-06-S」題解