Re: Нужна фукнция подсчета количества вхождений
Oracle PL/SQL Programming 2nd edition
11.2.4 Counting Substring Occurrences in Strings
You now know how to use INSTR to find the location of a substring within a string. This means that you also know how to determine whether or not a certain substring is in that string (INSTR returns zero if the substring is not found). What if you want to figure out how many times a particular substring occurs within a string?
...
там приводится пример, в-общем, надо написать свою функцию с тривиальным INSTR в цикле. если с лобами - будет чуть посложнее, но идея та же.