Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

ORATCL and dsnless connections
There does not appear to be support in ORATCL for dsnless connections. In
other words if I want to connect to a remote database without using a sid in
tnsnames, could I provide the server, dbname, and port in the connection
string to ORATCL and by pass the tnsnames? I have not found an example of
this yet.

This is supported in DBD:Oracle and I'd like to mirror this.

If the answer is no, then has anyone worked on a mod to ORATCL for dsn-less
connections?



Report this thread to moderator Post Follow-up to this message
Old Post
Patrick Dunnigan
04-25-05 08:59 PM


Re: ORATCL and dsnless connections
There was a similiar question a few ws ago. Does this help:

http://groups-beta.google.com/group...ee264c7a37d39b2


Report this thread to moderator Post Follow-up to this message
Old Post
bs
04-25-05 09:00 PM


Re: ORATCL and dsnless connections
Thanks, but the results of that thread aren't what I'm looking for.

I am trying to bypass the tnsnames.ora file completely by providing the host
and sid, and maybe the port if it's not 1521 or 1526 (rare but I have to
account for it) in the connection string.

The reason for this is that the number and configuration of the target
databases is stored in a database elsewhere and we don't want to have to
manage the tnsnames.ora file whereever this software is installed.

This works beautifully using DBD:Oracle (which for the past three years I
have happened to use from my TCL script using the dbttotcl extension).
However I'd like to now cut out all DBD/DBI software and go straight to OCI
through ORATCL.


"bs" <brett.schwarz@gmail.com> wrote in message
news:1114449505.280918.306300@z14g2000cwz.googlegroups.com...
> There was a similiar question a few ws ago. Does this help:
>
> http://groups-beta.google.com/group...ee264c7a37d39b2
>



Report this thread to moderator Post Follow-up to this message
Old Post
Patrick Dunnigan
04-25-05 09:00 PM


Re: ORATCL and dsnless connections
I found the proper syntax for skipping the tnsnames.ora file by passing the
entire name-value pair string in place of the service name. The following
syntax works and also works as the dblink parameter to OCIServerAttach().

oralogon
scott/ tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRES
S=(PROTOCOL=TCP)(HOST=localhos
t. localdomain)(PORT=1521)))(CONNECT_DATA=(
SERVICE_NAME=test)))


Maybe the ORATCL docs could note this in the future?


"Patrick Dunnigan" <pdunnigan@adelphia.net> wrote in message
news:dsCdncEc87aat_DfRVn-2Q@adelphia.com...
Thanks, but the results of that thread aren't what I'm looking for.

I am trying to bypass the tnsnames.ora file completely by providing the host
and sid, and maybe the port if it's not 1521 or 1526 (rare but I have to
account for it) in the connection string.

The reason for this is that the number and configuration of the target
databases is stored in a database elsewhere and we don't want to have to
manage the tnsnames.ora file whereever this software is installed.

This works beautifully using DBD:Oracle (which for the past three years I
have happened to use from my TCL script using the dbttotcl extension).
However I'd like to now cut out all DBD/DBI software and go straight to OCI
through ORATCL.


"bs" <brett.schwarz@gmail.com> wrote in message
news:1114449505.280918.306300@z14g2000cwz.googlegroups.com...
> There was a similiar question a few ws ago. Does this help:
>
> http://groups-beta.google.com/group...ee264c7a37d39b2
>




Report this thread to moderator Post Follow-up to this message
Old Post
Patrick Dunnigan
04-26-05 01:58 AM


Re: ORATCL and dsnless connections
Cool...

I noted it here:  http://wiki.tcl.tk/12147

Robert


Report this thread to moderator Post Follow-up to this message
Old Post
sigzero@gmail.com
04-26-05 09:02 AM


Re: ORATCL and dsnless connections
What's the "SERVICE_NAME=test" part?

Don

"Patrick Dunnigan" <pdunnigan@adelphia.net> writes:

> I found the proper syntax for skipping the tnsnames.ora file by passing th
e
> entire name-value pair string in place of the service name. The following
> syntax works and also works as the dblink parameter to OCIServerAttach().
>
> oralogon
> scott/ tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRES
S=(PROTOCOL=TCP)(HOST=localh
ost. localdomain)(PORT=1521)))(CONNECT_DATA=(
SERVICE_NAME=test)))
>
>
> Maybe the ORATCL docs could note this in the future?
>
>
> "Patrick Dunnigan" <pdunnigan@adelphia.net> wrote in message
> news:dsCdncEc87aat_DfRVn-2Q@adelphia.com...
> Thanks, but the results of that thread aren't what I'm looking for.
>
> I am trying to bypass the tnsnames.ora file completely by providing the ho
st
> and sid, and maybe the port if it's not 1521 or 1526 (rare but I have to
> account for it) in the connection string.
>
> The reason for this is that the number and configuration of the target
> databases is stored in a database elsewhere and we don't want to have to
> manage the tnsnames.ora file whereever this software is installed.
>
> This works beautifully using DBD:Oracle (which for the past three years I
> have happened to use from my TCL script using the dbttotcl extension).
> However I'd like to now cut out all DBD/DBI software and go straight to OC
I
> through ORATCL.
>
>
> "bs" <brett.schwarz@gmail.com> wrote in message
> news:1114449505.280918.306300@z14g2000cwz.googlegroups.com... 

Report this thread to moderator Post Follow-up to this message
Old Post
Don Libes
04-26-05 09:02 PM


Re: ORATCL and dsnless connections
Don Libes wrote:
> What's the "SERVICE_NAME=test" part?

I believe that it's the database instance. When using the 'traditional'
Oratcl syntax, that would be "user/password@test"

--Ramesh


Report this thread to moderator Post Follow-up to this message
Old Post
ramesh venk
04-26-05 09:02 PM


Re: ORATCL and dsnless connections
That is the actual db name itself...in the tnsnames.ora file.

Robert


Report this thread to moderator Post Follow-up to this message
Old Post
sigzero@gmail.com
04-26-05 09:02 PM


Re: ORATCL and dsnless connections
I will update the oratcl docs as you requested.

-Todd


Report this thread to moderator Post Follow-up to this message
Old Post
thelfter@gmail.com
04-28-05 09:04 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.