niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
Generate sql file from Oracle Designer
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
jhking
*nix forums beginner


Joined: 10 Feb 2005
Posts: 6

PostPosted: Thu Feb 10, 2005 7:52 pm    Post subject: Re: Generate sql file from Oracle Designer Reply with quote

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

PostPosted: Thu Feb 10, 2005 8:34 am    Post subject: Re: Generate sql file from Oracle Designer Reply with quote

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

PostPosted: Thu Feb 10, 2005 5:46 am    Post subject: Generate sql file from Oracle Designer Reply with 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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Wed Jan 07, 2009 11:46 pm | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix - Do not generate bounce messages in some cases. LaGatorVII Postfix 0 Wed Nov 26, 2008 2:56 pm
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts Oracle runtime Spitfire Server 0 Fri Jul 21, 2006 1:18 pm
No new posts Oracle Text Score Computation jatinder.1975@gmail.com Server 0 Fri Jul 21, 2006 1:00 pm
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm

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
[ Time: 0.1830s ][ Queries: 20 (0.1052s) ][ GZIP on - Debug on ]