Gaurav99 has asked for the wisdom of the Perl Monks concerning the following question:
so far I haveconnecting to Oracle with C:\Oracle\instantclient/sqlplus. executing: @C:\parse_test\test\dir1\dir1.sql alter tablexxxxxx add xxxxxxxxL VARCHAR2(3) * ERROR at line 1: ORA-01430: column being added already exists in table ERROR at line 37: ORA-01430: column being added already exists in table Comment created. Finished execution. connecting to Oracle with C:\Oracle\instantclient/sqlplus. executing: @C:\parse_test\test\dir2\dir2.sql alter table XXXXXXXXXX rename column XXXXXX to PXXXXXXX Table altered. Comment created. Finished execution.
Running this as test.pl C:\logfile\dir\log.txt It seems to be inconsistently working. Sometimes it deletes files that got successfully executed.#!/usr/bin/perl {local $/;$_=<>} unlink $1 or warn "$1 $!" while /executing: \@(.*)(?ms:.*?ERROR at)/g;
|
|---|