bash>lsnrctl status
to return the tns listener alias 'tnsname'

then to see if its alive
bash>tnsping tnsname

hth
Martin 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 22 Oct 2010 08:37:35 -0400
> From: sco...@pythian.com
> To: giovanni...@gmail.com
> CC: dbi-users@perl.org
> Subject: Re: Oracle: ORA-24327 need explicit attach before authenticating a 
> user in perl script
> 
>   On 10/21/2010 1:11 PM, suuuper wrote:
> Funny that should work.
> What version of DBD Oracle are you using??
> 
> Can you connect using sqlplus??
> 
> If no it means there is some sort of TNSNAMES.ORA or other problems on 
> the oracel network side of things
> 
> 
> I would try using an oracle easy connect string like this
> 
> DBI->connect( "dbi:Oracle","testuser", "passw...@someoracle.sid")'
> 
> hope this helps
> cheers
> John Scoles
> > Hi,
> >
> > i write the sequent script:
> >
> > #######################################################################
> > use DBI;
> >
> > my $orachehost = "*********";
> > my $oracleuser = "**********";
> > my $orachepasswd = "******";
> > my $oraclesid = "*****";
> > my $oracle_home = "/usr/lib/oracle/11.2/client";
> >
> > $ENV{ORACLE_HOME}=$oracle_home;
> > $ENV{ORACLE_SID}=$oraclesid;
> > $ENV{PATH}="$oracle_home/bin";
> >
> > my $dbh = DBI->connect( "dbi:Oracle:host=$orachehost:sid=$oraclesid",
> > $oracleuser, $orachepasswd, { AutoCommit =>
> > 1,RaiseError=>1,PrintError=>1 }  ) ||   die("Errore nella connessione
> > al db: $DBI::errstr");
> >
> > $dbh->disconnect;
> >
> > exit 0;
> >
> > #######################################################################
> >
> > When i run the script, it doesn't work and write:
> >
> > DBI connect('host=**********:sid=*******','********',...) failed:
> > ORA-24327: need explicit attach before authenticating a user (DBD
> > ERROR: OCISessionBegin) at /usr/local/sbin/myscript.pl
> >
> > Any ideas?
> >
> 
                                          

Reply via email to