нашел решение, которое сработало:
create view portcnt1 as
select
address,
datacenter,
ifdesc,
count(substring(ifdesc, 'Ethernet0/*'))
over (partition by address) mod0,
count(substring(ifdesc, 'Ethernet1/*'))
over (partition by address) mod1,
count(substring(ifdesc, 'Ethernet2/*'))
over (partition by address) mod2,
count(substring(ifdesc, 'Ethernet3/*'))
over (partition by address) mod3,
count(substring(ifdesc, 'Ethernet4/*'))
over (partition by address) mod4,
count(substring(ifdesc, 'Ethernet5/*'))
over (partition by address) mod5,
count(substring(ifdesc, 'Ethernet6/*'))
over (partition by address) mod6,
count(substring(ifdesc, 'Ethernet7/*'))
over (partition by address) mod7,
count(substring(ifdesc, 'Ethernet8/*'))
over (partition by address) mod8,
count(substring(ifdesc, 'Ethernet9/*'))
over (partition by address) mod9
from ifstatus
where ifadminstatus = '1' and ifoperstatus = '1';