Book a Demo

Author Topic: generate DDL - oracle sequence name length limit  (Read 8395 times)

Bruce Thomason

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
generate DDL - oracle sequence name length limit
« on: May 21, 2015, 04:34:54 am »
Background:
Oracle native sequence name lengths are 30 characters.
DDL generation from EA for autonum fields can result in a longer sequence name - the SEQ appears to use both the table name and field name.

Question: is there a means to control the sequence's name construction pattern name through DDL templates or otherwise and/or to have EA honor the Oracle name length limitation?

rsharma

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: generate DDL - oracle sequence name length limit
« Reply #1 on: February 01, 2018, 09:40:43 pm »
Hi
I am experiencing the same issue stated above. Was a resolution/workaround discovered?
Thanks

Arshad

  • EA User
  • **
  • Posts: 291
  • Karma: +21/-1
    • View Profile
Re: generate DDL - oracle sequence name length limit
« Reply #2 on: February 01, 2018, 09:54:41 pm »
Hi rsharma


From Oracle 12.2 and above character limit is increased.
Please refer https://docs.oracle.com/database/121/SQLRF/sql_elements008.htm#SQLRF00223 for more details

Arshad
« Last Edit: February 01, 2018, 10:27:15 pm by Arshad »

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: generate DDL - oracle sequence name length limit
« Reply #3 on: February 01, 2018, 10:24:10 pm »
Background:
Oracle native sequence name lengths are 30 characters.
DDL generation from EA for autonum fields can result in a longer sequence name - the SEQ appears to use both the table name and field name.

Question: is there a means to control the sequence's name construction pattern name through DDL templates or otherwise and/or to have EA honor the Oracle name length limitation?

You can try to if configuring Name Template from 'Settings | Project Options | Source Code Engineering > DDL: DDL Name Templates'  would help

or go to DDL Template Editor -> Oracle, and edit the $SeqName variable construction. It uses a template call $DDLName% which takes into account parameters like "Include_Owner", "Include_Surround". Trial with these to adjust Name