oracle.jdbc.OracleDatabaseException: ORA-00972: identifier is too long

前端 未结 1 1818
渐次进展
渐次进展 2021-01-16 06:06

Here is my Entity class

@Entity
public class ProjectDetails {

    @Id
    private int projectId;
    private String projectDescription;
    private int lang         


        
相关标签:
1条回答
  • 2021-01-16 06:41

    From the 2.8.1 Database Object Naming Rules taken from the Oracle DB 12.2 documentation:

    1. The maximum length of identifier names depends on the value of the COMPATIBLE initialization parameter.

      • If COMPATIBLE is set to a value of 12.2 or higher, then names must be from 1 to 128 bytes long with these exceptions:

        • Names of databases are limited to 8 bytes.

        • Names of disk groups, pluggable databases (PDBs), rollback segments, tablespaces, and tablespace sets are limited to 30 bytes.

    For this version, the identifier is simply too long. The only way to go is to either use a shorter name or downgrade COMPATIBLE to a lower version.

    0 讨论(0)
提交回复
热议问题