Prior art in itself does not provide a defensive punch. But, if a company X decides to go about suing everybody using Linux and databases, because it competes with X's business, a large patent portfolio will act as a big stick for defense against X, and other possible Xs considering the same tactic.