It's probably easier to determine the number that do. If all three As are in a row, there are $7$ positions for the As and $\binom63=20$ positions for the Bs and Cs, for a total of $140$. The same for all three Bs and all three Cs, makes 420. Now we've double-counted the ones where all As and all Bs are in a row – that leaves $\binom53=10$ positions for the Cs, times $2$ for whether the As or the Bs come first, and the same again for all As and all Cs and for all Bs and all Cs, so substract $60$. But now we've triple-counted and triple-uncounted the $6$ possibilities where they're all in a row, so add those back in to get $420-60+6=366$. Subtract that from the total number $\binom{9}{3,3,3}=1680$ to get $1680-366=1314$.
In the meantime EuYu has posted an answer that expresses the same thing more systematically, and you immediately accepted it, but I'll post this anyway since it contains some explanations of EuYu's numbers.