Jump to content

Bhayya Evarina Perl Mida Work Chesthunara


Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

  • compose

    23

  • chilakottudu

    17

  • ronitreddy

    8

  • koncham2

    2

Popular Days

Top Posters In This Topic

Posted

ledu

 

:police:  puncha icharu gaa.. meeru cheppina cmds, google thalli toh thelusukunna

 

anyway gud to learn new, for me  ()>>

sHa_clap4

Posted

ledhu bhayya nenu plsql scripts ni execute cheyali ivi execute cheyadaniki second proc undhi adi connection open chesi execute chesthadi, nenu rase script lo ade database nundi oka process id techukuntunna dbh open chesi

i am thinking second proc is a child/forked from a parent proc....so fork chesinappudu sariga fork avvutunnatu ledu
Posted

i am thinking second proc is a child/forked from a parent proc....so fork chesinappudu sariga fork avvutunnatu ledu

ledhu bhayya second script fork cheyadam ledhu rendu veru veru db connections

Posted

ledhu bhayya second script fork cheyadam ledhu rendu veru veru db connections

so basically child process complete aye varaku parent process wait cheyadam ledu and somewhere in between aa child process status carry avvadam ledu... anduke no child process ani vastundi when you are trying to query for the status of child process
Posted

ledu kani school lo nerchukunna

scripting baga ocha mari?

Posted

yes vachu :)

mari naku oka unix script lo help cheyochu gaa..

Posted

mari naku oka unix script lo help cheyochu gaa..

cheppu try chesthanu... bash ,csh or sh aa?
Posted

so basically child process complete aye varaku parent process wait cheyadam ledu and somewhere in between aa child process status carry avvadam ledu... anduke no child process ani vastundi when you are trying to query for the status of child process

exactly bhayya em cheyalo ardam kavadam ledhu

Posted

exactly bhayya em cheyalo ardam kavadam ledhu

hmmm script kani script pics kani share cheyagalava mari?
Posted

hmmm script kani script pics kani share cheyagalava mari?

bhayya meku cal cheyocha

Posted

hmmm script kani script pics kani share cheyagalava mari?

my $dbh2 = DBI->connect( 'dbi:Oracle:', $cogs_ora_user, $cogs_ora_user_pwd)

         or die( 'Oracle connect, using user , error:' . $DBI::errstr . "\n" );

    my $sql = qq/select PROCESS_SEQ.nextval from dual/;

    my $sth2 = $dbh2->prepare($sql);

    $sth2->execute();

    my $id = $sth2->fetchrow_array();

    $sth2->finish();

    $dbh2->{InactiveDestroy} = 1;

    $dbh2->disconnect

    or warn "Disconnection failed: $DBI::errstr\n";

    ##$dbh2->{InactiveDestroy} = 1;

    return $id;

 

first script lo ila rasa bhayya

Posted


my $dbh2 = DBI->connect( 'dbi:Oracle:', $cogs_ora_user, $cogs_ora_user_pwd)
or die( 'Oracle connect, using user , error:' . $DBI::errstr . "\n" );
my $sql = qq/select PROCESS_SEQ.nextval from dual/;
my $sth2 = $dbh2->prepare($sql);
$sth2->execute();
my $id = $sth2->fetchrow_array();
$sth2->finish();
$dbh2->{InactiveDestroy} = 1;
$dbh2->disconnect
or warn "Disconnection failed: $DBI::errstr\n";
##$dbh2->{InactiveDestroy} = 1;
return $id;

first script lo ila rasa bhayya

error vastundi ee script lone na?
×
×
  • Create New...