
d1zz13
User
Aug 11, 2006, 8:48 AM
Post #2 of 3
(1803 views)
|
|
Re: [rajjj] its about DBI->connect() syntax
[In reply to]
|
Can't Post
|
|
Rajjj, You can just use backticks to run that actual command in the Windows OS if you want. I have a script which calls the command like this
`sqlplus $username\/$password\@$database \@$runscript`; If you don't actually want a sqlplus session, which I imagine you don't then you can use a connect string like this
my $dbhandle = DBI->connect( "dbi:Oracle:$dbname", $user, $pass, { RaiseError => 1,AutoCommit => 0 } ) or die "Can't connect to Oracle database: $DBI::errstr\n"; As for how you connect with sysdba, I'm sure a search on Google could help you out with that one. Regards Rich If it aint broke then don't try to fix it
|