Book a Demo

Author Topic: Importing Oracle DB Schema  (Read 5680 times)

David Goshadze

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Importing Oracle DB Schema
« on: August 23, 2010, 10:00:53 pm »
Hi All!

I am importing oracle database schema using oracle 10.2.0.4 oracle instant client ODBC driver.
Import works fine, but there are no procedures imported as operations from oracle user packages. Oracle package is imported as Class with stereotype "package". And only two operations are defined in that class: body() and specification().

However if function or procedure is at schema-level and not package level, it is imported as an operation.

Is there a way to import oracle package level procedures and functions?



David Goshadze

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Importing Oracle DB Schema
« Reply #1 on: August 26, 2010, 08:49:22 pm »
I just received notification email, that someone had posted reply, but I can't see one. Do I miss something? Is there any special place to look for replies(Ridiculous, asking just for case)

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Importing Oracle DB Schema
« Reply #2 on: August 27, 2010, 08:45:27 am »
It's possible someone replied then deleted their reply.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Importing Oracle DB Schema
« Reply #3 on: August 27, 2010, 09:35:22 am »
Your reply was from a spammer, and - unfortunately - had nothing to do with your question. The spam was deleted.
Best Regards, Roy

David Goshadze

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Importing Oracle DB Schema
« Reply #4 on: August 27, 2010, 04:13:07 pm »
Thanks Roy, Simon.

It seems that noone had run into this issue.

I'm new to EA and I'm only evaluatiing this product.
Maybe gurus can point me to possibilities to find workaround.
Can I write my own script/plugin for importing DB schema.
Could anyone please point me to docs/examples.

Thank you in advance.
Regards,
David.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Importing Oracle DB Schema
« Reply #5 on: August 27, 2010, 04:30:34 pm »
David,

You can definitely write your own script/addin, but it won't be a small task.
It's not like you can just edit the existing import script since that is not publically available.

If I were you I would work with what's already there, send in a feature request for what's missing, and maybe write an addin to import the missing parts only (while waiting for the new feature to be implemented)

Geert

David Goshadze

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Importing Oracle DB Schema
« Reply #6 on: August 27, 2010, 04:53:51 pm »
Hi Geert and thanks for your answer.

I could live with an add-in for importing packages only.

I have quite a good expirience with VBScript, JScript. As well as I am fully capable of writing C#/C++ application or module. I just need good docs/examples.

David.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Importing Oracle DB Schema
« Reply #7 on: August 27, 2010, 05:04:53 pm »
David,

There are a couple of source for examples.
I believe there are a couple of example addins/scripts supplied with the installation (look in "EA installation folder/Code Samples" and "EA installation folder/Scripts")
Next there are some examples to be downloaded from the website
Then there are also some examples you can download from the community site
You could use the Excel importer (VBA) as an example of how to add stuff (classes/attributes and tagged values, but you can apply the same principle to operations) and the Navigator addin (C#) as an example for a C# addin.

Geert

David Goshadze

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Importing Oracle DB Schema
« Reply #8 on: August 27, 2010, 05:19:44 pm »
Thanks, Geert.

David.