- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Autocommit Off in Oracle + Perl
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2007 11:06 PM
тАО04-05-2007 11:06 PM
Autocommit Off in Oracle + Perl
++++++++++++++++++++++ Below is wht i am doing for disabling it +++++++++++++++==
#!/Opt/perl64/bin/perl
use DBI;
$dbh = DBI->connect('DBI:Oracle:iobastst','nidhitabs','nidhitabs',{AutoCommit => 0}) or die "Couldn't connect to database: " . DBI->errstr;
$dbh->{AutoCommit} = 0;
$sth = $dbh->prepare("nsert into cams_file_mv_status values ('$data1','$!','$data')") or die "Couldn't prepare statement: " . $dbh->errstr;) or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2007 11:17 PM
тАО04-05-2007 11:17 PM
Re: Autocommit Off in Oracle + Perl
Here is how I would have written it:
#!/opt/perl64/bin/perl
use strict;
use warnings;
use DBI;
my $dbh = DBI->connect ("DBI:Oracle:iobastst", "nidhitabs", "nidhitabs", {
AutoCommit => 0,
RaiseError => 1,
PrintError => 1,
}) or die "Couldn't connect to database: $DBI::errstr";
my $sth = $dbh->prepare ("insert into cams_file_mv_status values (?, ?, ?);
$sth->execute ($data1, $!, $data);
$sth->finish;
$dbh->commit;
Use RaiseError and PrintError to get the details of all failures.
If things still fail, use DBI->trace (9) or alike.
I hope the username/password combo is fake, otherwise I would/could ask a moderator to edit this thread to change those.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2007 11:23 PM
тАО04-05-2007 11:23 PM
Re: Autocommit Off in Oracle + Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2007 12:24 AM
тАО04-06-2007 12:24 AM
Re: Autocommit Off in Oracle + Perl
$ /opt/perl64/bin/perl phase1a.pl
outside while : 0
inside while and for : 0
no update : 0
inside sec while and for : 0
No such file or directory
inside else : 0
before sth2->finish : 0
before sth1->finish : 0
inside while and for : 0
no update : 0
inside sec while and for : 0
inside else : 0
before sth2->finish : 0
before sth1->finish : 0
before sth->finish : 0
after sth->finish : 0
after dis->finish : 0
Where can be the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2007 04:34 PM
тАО04-09-2007 04:34 PM