|
|
|
|
|
|
| Author |
Message |
jhking *nix forums beginner
Joined: 10 Feb 2005
Posts: 6
|
Posted: Thu Feb 10, 2005 7:52 pm Post subject:
Re: Generate sql file from Oracle Designer
|
|
|
procman wrote:
| Quote: | I'm using Oracle Designer to design and maintenance the DB on PC.
The "real" schema is on the Unix.
In order to add a new table or edit an exist table, i'm doing the
following:
1. edit a table in the designer.
2. generate *.tab, *.con and *.sql files from the designer (on the
PC).
3. Run an internal generator(on the Unix) to generate interface for my
application, from the *.sql file.
My question is:
How can I generate *.sql file (with the *.tab/*.con files) from a
table, and not direct from the designer. I mean, is there any
interface or API to do that? is there any stand alone executable to
generate sql file NOT from Oracle Designer?
I need it to combine steps 2&3 above to single step (wrap them in one
exe or script).
Thanks
Is there some reason you can't directly generate to the unix instance. |
When you generate to an instance Designer looks at the instance and
figures out what to write in its script. That is, you can generate to
development and it will do alter table add ... s for you, then generate
to prod later and it will do the appropriate alter table add... s even
though the columns already exist in development. |
|
| Back to top |
|
 |
Frank van Bortel *nix forums Guru
Joined: 19 Apr 2005
Posts: 804
|
Posted: Thu Feb 10, 2005 8:34 am Post subject:
Re: Generate sql file from Oracle Designer
|
|
|
procman wrote:
| Quote: | I'm using Oracle Designer to design and maintenance the DB on PC.
The "real" schema is on the Unix.
In order to add a new table or edit an exist table, i'm doing the
following:
1. edit a table in the designer.
2. generate *.tab, *.con and *.sql files from the designer (on the
PC).
3. Run an internal generator(on the Unix) to generate interface for my
application, from the *.sql file.
My question is:
How can I generate *.sql file (with the *.tab/*.con files) from a
table, and not direct from the designer. I mean, is there any
interface or API to do that? is there any stand alone executable to
generate sql file NOT from Oracle Designer?
I need it to combine steps 2&3 above to single step (wrap them in one
exe or script).
Thanks
|
The times I used Designer, there also was a .sql, which
called all tab, con and other generated stuff in the
correct order.
Even better, there's an option to execute the lot from
Designer, too. This feature is "new" as of V6.0 (which
is around some time now). So, all you have to do, is
configure SQL*Net correctly, and execute the generated
scripts from within Designer - make sure you connect
to the correct instance.
Step 3 is quite unclear to me. What interface? You only
maintain a database...
And yes - Designer has a documented API - if you insist
on reinventing the (designer generator) wheel...
--
Regards,
Frank van Bortel |
|
| Back to top |
|
 |
procman *nix forums beginner
Joined: 10 Feb 2005
Posts: 1
|
Posted: Thu Feb 10, 2005 5:46 am Post subject:
Generate sql file from Oracle Designer
|
|
|
I'm using Oracle Designer to design and maintenance the DB on PC.
The "real" schema is on the Unix.
In order to add a new table or edit an exist table, i'm doing the
following:
1. edit a table in the designer.
2. generate *.tab, *.con and *.sql files from the designer (on the
PC).
3. Run an internal generator(on the Unix) to generate interface for my
application, from the *.sql file.
My question is:
How can I generate *.sql file (with the *.tab/*.con files) from a
table, and not direct from the designer. I mean, is there any
interface or API to do that? is there any stand alone executable to
generate sql file NOT from Oracle Designer?
I need it to combine steps 2&3 above to single step (wrap them in one
exe or script).
Thanks |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Wed Jan 07, 2009 11:46 pm | All times are GMT
|
|
Problem Mortgage | Problem Mortgage | Secured Loans | Free website & online homepage | Mobile Phones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|