Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: RE dblink:

Re: RE dblink:

From: Jared Still <jkstill_at_bcbso.com>
Date: Tue, 6 Jun 2000 07:22:17 -0700 (PDT)
Message-Id: <10520.107876@fatcity.com>


I too dislike GLOBAL_NAME=true.

In distributed apps, it forces developers to write their code to use a macro in place of a real dblink name, and this must be resolved at compile time.

Easy if your development tool is SQL*Plus, impossible if it is Procedure Builder, TOAD or SQL*Navigator.

Having consistent dblink names allows development, user acceptance and production to all use the same database link name, just pointing to different instances.

Jared

On Fri, 2 Jun 2000, Stephane Faroult wrote:

> Heidi,
>
> dblinks are the only way with SQL*Plus to open several connections at
> once. Useful for comparing schemas between two instances, for example
> (select object_name from user_objects_at_here minus select object_name from
> user_objects_at_there), or data. Your idea of a global collector is quite
> valid - see OEM. I personally dislike GLOBAL_NAME=TRUE because I see no
> reason why the database link name should be the same as the instance
> name - from an applicative point of view, you may need to know that the
> data is managed by another application, but the instance or database
> name belongs to the nuts and bolts category. If you can avoid
> GLOBAL_NAME=TRUE (not always possible - if you are using replication for
> instance) ... If you are interested in the topic of naming dblinks,
> there is a paper in the library section of our site.
> A loopback dblink forces you to pass by (some) SQL*Net layers, so may
> be a way to test things. It is also a protection against environmental
> hazards, eg improperly set or unset ORACLE_SID, or set TWO_TASK.
>
> --
> Regards,
>
> Stephane Faroult
> email: sfaroult_at_oriolecorp.com
> Oriole Corporation
> Voice: +44 (0) 7050-696-269
> Fax: +44 (0) 7050-696-449
> Performance Tools & Free Scripts
> ------------------------------------------------------------------
> http://www.oriolecorp.com, designed by Oracle DBAs for Oracle DBAs
> ------------------------------------------------------------------
> >
> > Folks,
> >
> > I have been playing around with dblink creation and they are created.
> > The questions I have are
> >
> > When is a dblink useful?
> > What benefits does a dblink have over a call at the OS level
> > with sqlplus user/passwd_at_aliasname?
> >
> > Background about my question...
> > I have a script a former dba implemented here at my work.
> > It checks extents. It is a solid script but he calls a loopback dblink
> > on the machine the rdbms resides.
> >
> > So it gets me wondering if in the init.ora file the global_names=true is a
> > security risk and what a loopback link would get him.
> >
> > The only thing I can think of is to set up one UNIX box with a main work
> > tablespace in which all the calls and information is gathered
> > (possibly even update meta tables).
> > He didn't implement such a thing, but it got me thinking along those lines
> > just the same.
> >
> > Feedback?
> >
> > Thanks,
> >
> > Heidi
> --
> Author: Stephane Faroult
> INET: sfaroult_at_oriolecorp.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-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).
>
>
>

Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;-) Regence BlueCross BlueShield of Oregon Received on Tue Jun 06 2000 - 09:22:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US