Troubleshooting
Problem
Oracle bind variable not being trapped in Guardium collector when connecting from Perl
Symptom
Calling a Perl script (with an argument) containing code similar to :
>>>
$sql = "SELECT * FROM tbl_test where t1=?";
if (!($sth = $dbh->prepare ($sql))) { die ("Failed to prepare statement: " .
DBI->errstr); };
$sth->bind_param( 1, "$ARGV[0]" );
$sth->execute;
<<<
Would report the following Full SQL in a Guardium report and not the bind variable passed to the script:
>>>
SELECT * FROM tbl_test where t1=:p1
SELECT * FROM tbl_test where t1=null
<<<
[{"Product":{"code":"SSMPHH","label":"IBM Security Guardium"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Guardium Database Activity Monitor","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"},{"code":"PF010","label":"HP-UX"},{"code":"PF002","label":"AIX"}],"Version":"8.2","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21601285