Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How do I parse information from a Column
for something like that, don't bother with parsing the SQL_TEXT column, look
at the numeric value in COMMAND_TYPE instead. what is stored there is the
OCI "command-type" value which can be found in the OCI reference manual
(http://docs.oracle.com for your version)...
To save you some time:
You're on your own for the 150 other types of SQL commands... :-)
> Hi,
>
> I am capturing data from v$sqlarea to a table to find out all the query
activities on a database. Now I would like to parse sql_text column from a
table to get only DML commands(SELECT, INSERT, UPDATE and DELETE) and also
FROM clause to get table names. The example is:
>
> SELECT
cuid,usid,cufirstname,culastname,cushipfirstname,cushiplastname,cushipaddres
s1,cushipaddress2,cushiphomephone,cuemail,cushipcareof,cushipcity,cushipstat
e,cushippostalcode,cuadcode,cubilltiid,cuaddress1,cuaddress2,cucity,custate,
cupostalcode FROM tblCustinfo WHERE UsID=234563245
>
> Muqthar Ahmed
> Database Administrator
>
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Muqthar Ahmed
> INET: Muqthar.Ahmed_at_decoratetoday.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Tim Gorman INET: Tim_at_SageLogix.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu May 30 2002 - 13:48:46 CDT
![]() |
![]() |