[linux-network] Oracle perl connect

---------

From: serhat.ersoy@turkcell.com.tr
Date: Wed 26 Mar 2003 - 10:17:09 EET

  • Next message: Mesut Mutlu: "[linux-network] firewall +vpn"

     
        Merhaba
     
        Linux uzerinde oracle client ve oracle DPI kurdum ve diger bir serverdaki (unix) oracle databse den data cekmek ıstıyorum .. Lınuz userrınde sqlplus user@database dedıgımde connect kurula bılıyor fakat perl zerınden baglanmaya calıstıgımda problem yasıyorum Problem nerede acaba.
     
        Tşk.
     
     
    use DBI;
     
    $veritabani = "deneme";
    $db_kul = "sery";
    $db_sifre = "12345";
     
     
     
    $dbh = DBI -> connect("dbi:Oracle:$veritabani", $db_kul, $db_sifre) or die "Can't connect to db: $!\n";
    $sql = qq{SELECT username FROM tablo1};
    $sth = $dbh -> prepare($sql);
     
    $sth -> execute;
     
    open (OUTFILE, $query_log);
     
    while (@results = $sth -> fetchrow_array)
    {
    print OUTFILE "$results[0]\n";
    }
     
    $sth -> finish;
    $dbh -> disconnect;
     
    close OUTFILE;
     
     

    ***********************************************************************
    Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafından alması amaçlanan yetkili gerçek ya da tüzel kişinin kullanımı içindir.Eğer söz konusu yetkili alıcı değilseniz bu elektronik postanın içeriğini açıklamanız,kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir
    TURKCELL bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve TURKCELL'in görüşlerini yansıtmayabilir
    Bu e-posta bilinen bütün bilgisayar virüslerine karşı taranmıştır.
    ***********************************************************************
    This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited, and the e-mail should immediately be deleted.
    TURKCELL makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever.The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TURKCELL.
    This e-mail has been scanned for all known computer viruses.
    ***********************************************************************


  • Next message: Mesut Mutlu: "[linux-network] firewall +vpn"

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.