P
pankaj_wolfhunter
Greetings,
Sample script
#!/usr/bin/perl -w
use DBI;
$dbh = DBI->connect("DBI:Oracle:dbname","username","password") || die
"Cannot connect to Database : $DBI::errstr\n";
$dbh->do(q{
spool test.sql
select sysdate from dual
spool off
});
Error:
DBD::Oracle::db do failed: ORA-00900: invalid SQL statement (DBD
ERROR: error possibly near <*> indicator at char 10 in '
<*>spool test.sql
select sysdate from dual
spool off
') [for Statement "
spool test.sql
select sysdate from dual
spool off
"] at hi.txt line 8.
What is wrong with the query?
Help would be appreciated
TIA
Sample script
#!/usr/bin/perl -w
use DBI;
$dbh = DBI->connect("DBI:Oracle:dbname","username","password") || die
"Cannot connect to Database : $DBI::errstr\n";
$dbh->do(q{
spool test.sql
select sysdate from dual
spool off
});
Error:
DBD::Oracle::db do failed: ORA-00900: invalid SQL statement (DBD
ERROR: error possibly near <*> indicator at char 10 in '
<*>spool test.sql
select sysdate from dual
spool off
') [for Statement "
spool test.sql
select sysdate from dual
spool off
"] at hi.txt line 8.
What is wrong with the query?
Help would be appreciated
TIA