🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
6 messages
6 total messages Started by Yunki Paik Tue, 28 Sep 1999 00:00
BDE on Oracle question
#1547
Author: Yunki Paik
Date: Tue, 28 Sep 1999 00:00
69 lines
2932 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0059_01BF09CA.F68E06D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My application has to check the connectivity from the host PC to several =
Oracle
instances on various machines.
I plan to use TDatabase object for the job.

What I am wondering is: since we don't know the database information =
during
application installation, I will have to configure the BDE during =
runtime. i.e.,
enter alias name and others.

Can some one advise me on the technique?
My guess is that BDE config file is kept in a text file. Or, is it in a =
registry?

Thank you so much!

/yunki


------=_NextPart_000_0059_01BF09CA.F68E06D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>My application has to check the =
connectivity from=20
the host PC to several Oracle</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>instances on various =
machines.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I plan to use TDatabase object for the=20
job.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What I am wondering is: since we don't =
know the=20
database information during</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>application installation, I will have =
to configure=20
the BDE during runtime. i.e.,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>enter alias name and =
others.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can some one advise me on the=20
technique?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>My guess is that BDE config file is =
kept in a text=20
file. Or, is it in a registry?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you so much!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/yunki</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0059_01BF09CA.F68E06D0--
Re: BDE on Oracle question
#1549
Author: Jeff Overcash (TeamB)
Date: Tue, 28 Sep 1999 00:00
44 lines
2055 bytes
If you intend to use the TDatabase component, just have the user input the
server name (Oracle SQL Net alias), user name and password and add the three
params to the TDatabase Params property.  Something like
  
  Database1->Params.Clear();
  Database1->Params->Add("Server Name=" + SeverName);
  Database1->Params->Add("User Name=" + UserName);
  Database1->Params->Add("Password=" + Password);
  Database1->Connected = true;


Please turn off the HTML posting on your newsreader.  This goes against
newsgroup guidelines.  Thnak you.

> Yunki Paik wrote:
> 
> My application has to check the connectivity from the host PC to several
> Oracle
> instances on various machines.
> I plan to use TDatabase object for the job.
> 
> What I am wondering is: since we don't know the database information during
> application installation, I will have to configure the BDE during runtime.
> i.e.,
> enter alias name and others.
> 
> Can some one advise me on the technique?
> My guess is that BDE config file is kept in a text file. Or, is it in a
> registry?
> 
> Thank you so much!
> 
> /yunki
> 

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Mild mannered supermen are held in kryptonite, and the wise and foolish
virgins giggle with their bodies glowing bright.  Through the door a harvest
feast is lit by candlelight; it's the bottom of the staircase that spirals out
of sight.
  (new classic Genesis) Carpet Crawlers 1999
--
Re: BDE on Oracle question
#1553
Author: Yunki Paik
Date: Wed, 29 Sep 1999 00:00
18 lines
1353 bytes
It seems like I can get away with no entry at all in the BDE config file?
How does BDE know, then, which driver (in this case, Oracle 8.1.5) to use?
Please comment. Thanks.

/yunki

Jeff Overcash (TeamB) <overcash@onramp.net> wrote in message
news:37F15A8B.41C6A2DD@onramp.net...
> If you intend to use the TDatabase component, just have the user input the
> server name (Oracle SQL Net alias), user name and password and add the
three
> params to the TDatabase Params property.  Something like
>
>   Database1->Params.Clear();
>   Database1->Params->Add("Server Name=" + SeverName);
>   Database1->Params->Add("User Name=" + UserName);
>   Database1->Params->Add("Password=" + Password);
>   Database1->Connected = true;
Re: BDE on Oracle question
#1554
Author: Jeff Overcash (TeamB)
Date: Wed, 29 Sep 1999 00:00
24 lines
1463 bytes
You can get away without having an alias, but when you create an internal Alias
using the TDatabase component, it still uses the current BDE driver
configuration for Oracle.  The Oracle Driver can only have one configuration at
a time.

Yunki Paik wrote:
> 
> It seems like I can get away with no entry at all in the BDE config file?
> How does BDE know, then, which driver (in this case, Oracle 8.1.5) to use?
> Please comment. Thanks.
> 
> /yunki
> 


-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Mild mannered supermen are held in kryptonite, and the wise and foolish
virgins giggle with their bodies glowing bright.  Through the door a harvest
feast is lit by candlelight; it's the bottom of the staircase that spirals out
of sight.
  (new classic Genesis) Carpet Crawlers 1999
--
Re: BDE on Oracle question
#1560
Author: Yunki Paik
Date: Thu, 30 Sep 1999 00:00
6 lines
856 bytes
How does BED know it is Oracle?
I have other databases( non-Oracle) on my machine also...

/yunki

p.s. Well, I have to try the code you suggested. Sorry, I am being lazy.
Re: BDE on Oracle question
#1561
Author: Jeff Overcash (TeamB)
Date: Thu, 30 Sep 1999 00:00
22 lines
1502 bytes
Because in the TDatabase component you must set the DriverName property if you
are not tying to a permanent BDE Alias.  So you have to set the DriverName to
ORACLE and that tells the BDE you are conencting to an ORACLE DB.

Yunki Paik wrote:
> 
> How does BED know it is Oracle?
> I have other databases( non-Oracle) on my machine also...
> 
> /yunki
> 
> p.s. Well, I have to try the code you suggested. Sorry, I am being lazy.

-- 
Jeff Overcash (TeamB) 
      (Please do not email me directly unless  asked. Thank You) 
Mild mannered supermen are held in kryptonite, and the wise and foolish
virgins giggle with their bodies glowing bright.  Through the door a harvest
feast is lit by candlelight; it's the bottom of the staircase that spirals out
of sight.
  (new classic Genesis) Carpet Crawlers 1999
--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads