select B.MACHINE,A.sid,A.CNT,to_char(B.LOGON_TIME,'yyyymmdd HH24MIss') as LDATE ,A.SQL_TEXT
from (
select sid, SQL_TEXT,count(*) as CNT
from v$open_cursor
group by sid,SQL_TEXT order by CNT
) A , v$session B
where A.sid = B.sid
--and B.MACHINE = 'cclsunap2'
order by B.MACHINE,CNT
#echo 1 > /proc/sys/net/ipv4/ip_forward
Then you'll need to configure iptables to forward the packets from your internal network, on /dev/eth1, to your external network on /dev/eth0. You do this will the following commands:
# /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
#...