General UDFs
This section includes the general UDFs that can be used to retrieve the Teradata Protector version and the current user.
pty_whoami
This UDF returns the name of the user who is currently logged in.
Signature:
pty_whoami()
Parameters:
None
Returns:
The function returns the name of user logged in to the database.
Example:
select pty_whoami();
pty_getversion
This UDF returns the version of the installed Teradata Data Warehouse Protector.
Signature:
pty_getversion()
Parameters:
None
Returns:
The function returns the version of the product as a string
Example:
select pty_getversion();
pty_getdbsinfo
This UDF returns the Teradata session, statement, and request numbers. These parameters are captured in audit logs and can be cross-referenced in the ESA Forensics View.
Signature:
pty_getdbsinfo
Parameters:
None
Returns:
The function returns the following parameters in a string.
| Name | Type | Description |
|---|---|---|
session | STRING | Specifies the Teradata session number. |
request | STRING | Specifies the Teradata request number |
statement | STRING | Specifies the Teradata statement identifier. |
Example:
select pty_getdbsinfo();
Feedback
Was this page helpful?