[prev in list] [next in list] [prev in thread] [next in thread] 

List:       odtug-java-l
Subject:    Re: Logging on to different databases at run-time
From:       Steve Muench <Steve.Muench () oracle ! com>
Date:       2005-06-15 19:44:38
Message-ID: F001.005F7A20.20050615123127 () fatcity ! com
[Download RAW message or body]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Picking runtime connection credentials is part of the "Dynamic
Credentials" feature that today requires a little bit of coding.<br>
<br>
I have a working example application on my blog that illustrates how to
do it.<br>
<br>
<a class="moz-txt-link-freetext" \
href="http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApp \
lications.html">http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html</a><br>
 <br>
It's example #14.<br>
<br>
The code is more up to date than the OTN article that describes this
feature:<br>
<br>
<a class="moz-txt-link-freetext" \
href="http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html" \
>http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html</a><br>
> 
<br>
The code had to be modified to work with either 9.0.5.2 or 10.1.2. <br>
<br>
The article is still talking only about the 9.0.5.2 coding approach.<br>
</tt>
<pre class="moz-signature" cols="72">Steve Muench, <a class="moz-txt-link-freetext" \
href="http://radio.weblogs.com/0118231/">http://radio.weblogs.com/0118231/</a> </pre>
<br>
<br>
Kaushal, Sanjiv wrote:
<blockquote cite="midF001.005F7A1E.20050615112122@fatcity.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <title>Message</title>
  <meta content="MSHTML 6.00.2600.0" name="GENERATOR">
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">Hi Steve,</font></span></div>
  <div><span class="335520918-15062005"></span>&nbsp;</div>
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">What say is true for&nbsp;development \
time.</font></span></div>  <div><span class="335520918-15062005"></span>&nbsp;</div>
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">I was looking at picking the database at runtime
a.k.a execution time.</font></span></div>
  <div><span class="335520918-15062005"></span>&nbsp;</div>
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">The equivalent was in Oracle run-form (also
SQL*Plus) we have(had)&nbsp;3 parameters User Id + Password + \
database.</font></span></div>  <div><span \
class="335520918-15062005"></span>&nbsp;</div>  <div><span \
class="335520918-15062005"><font color="#0000ff"  face="Arial" size="2">Its the 3rd \
parameter that I was wondering how I could choose at execution \
time.</font></span></div>  <div><span class="335520918-15062005"></span>&nbsp;</div>
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">regards</font></span></div>
  <div><span class="335520918-15062005"><font color="#0000ff"
 face="Arial" size="2">Sanjiv</font></span></div>
  <blockquote>
    <div class="OutlookMessageHeader" align="left" dir="ltr"><font
 face="Tahoma" size="2">-----Original Message-----<br>
    <b>From:</b> <a class="moz-txt-link-abbreviated" \
href="mailto:ml-errors@fatcity.com">ml-errors@fatcity.com</a> [<a \
class="moz-txt-link-freetext" \
href="mailto:ml-errors@fatcity.com">mailto:ml-errors@fatcity.com</a>]<b>On Behalf Of \
</b>Steve Muench<br>  <b>Sent:</b> Wednesday, June 15, 2005 1:56 PM<br>
    <b>To:</b> Multiple recipients of list ODTUG-JAVA-L<br>
    <b>Subject:</b> Re: Logging on to different databases at run-time<br>
    <br>
    </font></div>
    <tt>Sanjiv,<br>
    <br>
Unless Forms improved on this post-5.0, then my recollection is that
Oracle Forms has a File | Connect... menu pick where you type in the
username/password (and SID?) you want to connect to.<br>
    <br>
In JDeveloper, you do View | Connections to see the Connections
Navigator (since there are various kinds of connections you might want
to make, like connections to a database, connections to an application
server, etc.) and under the "Database" connections category, you can
right-mouse "New Database Connection" to define a new database
connection.<br>
    <br>
You can define many different connections, then use the right one for
different apps that you build.<br>
    </tt>
    <pre class="moz-signature" cols="72">Steve Muench, <a
 class="moz-txt-link-freetext" \
href="http://radio.weblogs.com/0118231/">http://radio.weblogs.com/0118231/</a>  \
</pre>  <br>
    <br>
Kaushal, Sanjiv wrote:
    <blockquote cite="midF001.005F7A18.20050615084622@fatcity.com"
 type="cite">
      <meta content="MSHTML 6.00.2600.0" name="GENERATOR">
      <style></style>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">Hello Java Gurus,</font></span></div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">When working with Old Oracle products
like&nbsp;Oracle Forms, SQL*PLus , Designers etc,</font></span></div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">we always had an option to mention or choose
&nbsp;the database that we wanted to connect to.</font></span></div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">Can this be done in Java world.</font></span></div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">any sample code will be very much appreciated.
For JClient, UIX and JSP.</font></span></div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">regards</font></span></div>
      <div><span class="468233715-15062005"><font color="#0000ff"
 face="Arial" size="2">Sanjiv</font></span></div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
      <div><span class="468233715-15062005"></span>&nbsp;</div>
    </blockquote>
Don't Miss ODTUG NOW! 2005 - June 18-22, New Orleans Sheraton Hotel.
Hands-On Training, 100+ tech sessions, Oracle, development tool product
updates Register before May 30 to receive advance registration rate!
<a class="moz-txt-link-abbreviated" href="http://www.odtug.com">www.odtug.com</a> -- \
Author: Steve Muench INET: <a class="moz-txt-link-abbreviated" \
href="mailto:Steve.Muench@oracle.com">Steve.Muench@oracle.com</a> Fat City Hosting, \
San Diego, California -- <a class="moz-txt-link-freetext" \
                href="http://www.fatcity.com">http://www.fatcity.com</a>
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to:
<a class="moz-txt-link-abbreviated" \
href="mailto:ListGuru@fatcity.com">ListGuru@fatcity.com</a> (note EXACT spelling of \
'ListGuru') and in the message BODY, include a line containing: UNSUB ODTUG-JAVA-L \
(or the name of mailing list you want to be removed from). You may also send
the HELP command for other information (like subscribing). </blockquote>
</blockquote>
</body>
</html>
Don't Miss ODTUG NOW! 2005 - June 18-22, New Orleans Sheraton Hotel.
Hands-On Training, 100+ tech sessions, Oracle, development tool product updates
Register before May 30 to receive advance registration rate!  www.odtug.com
-- 
Author: Steve Muench
  INET: Steve.Muench@oracle.com

Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ODTUG-JAVA-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic