Book a Demo

Author Topic: Oracle Reverse key index  (Read 5233 times)

eblasf

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Oracle Reverse key index
« on: August 07, 2013, 03:55:00 am »
I'm using "Generate Package DDL" function and I would like to generate a reverse key index for Oracle, like that:

CREATE INDEX IDX_EXPIRATION ON TABLE1 (EXPIRATION ASC) REVERSE;

Is this with Enterprise Architect possible?  

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Oracle Reverse key index
« Reply #1 on: August 07, 2013, 05:30:34 am »
As the DDL gen script is available you can modify it at your wish.

q.

eblasf

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Oracle Reverse key index
« Reply #2 on: August 07, 2013, 05:49:41 pm »
Interesting :)

How can I do that?
Where is this script?
Did you have a link on a tutorial or some documentation please.
« Last Edit: August 07, 2013, 08:13:52 pm by eblasf »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Oracle Reverse key index
« Reply #3 on: August 07, 2013, 08:15:05 pm »
Tutorial? You must be kidding ;-)

Look into Settings/Model Transformation Templates. Then select DDL from the drop down. You can make a copy and experiment freely. The help will give you some hints and there are quite some posts here on the forum related to transformation.

Good luck.

q.

eblasf

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Oracle Reverse key index
« Reply #4 on: August 07, 2013, 08:51:06 pm »
Thank you qwerty, I appreciate your help :)
I'm not sure we are speaking of the same thing. You are speaking about Model Transformation (MDA).

But I'm speaking about Database Engineering/Generate Package DDL, this function write an sql script which I can use to create my database model.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Oracle Reverse key index
« Reply #5 on: August 07, 2013, 11:58:45 pm »
Stupid me. I was riding the wrong horse  :(

The DDL gen of course is the way it is and you can not modify it except for the options presented. But what you can do is to write your own exporter with a script. This is rather easy I'd say.

q.

eblasf

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Oracle Reverse key index
« Reply #6 on: August 08, 2013, 07:29:11 pm »
Thank you qwerty.

Another question again. Where can I found some exporter script sample?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Oracle Reverse key index
« Reply #7 on: August 08, 2013, 08:05:38 pm »
I don't know whether there are such script examples. There is some csv sample if you enable the EAScriptlib MDG which might help a bit.

Basically you would write a file based on a package containing <<table>> classes. You'd need to analyze attributes/connectors (columns), methods (triggers) and tagged values (special stuff).

If you're familiar with Cxx languages have a look in Geerts addin framework.

q.

eblasf

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Oracle Reverse key index
« Reply #8 on: August 08, 2013, 08:09:15 pm »
Good, I will try when I have more time.

Thank your for you help,