Since Oracle 7, 1022 is the number per TS for most common platforms. It used to be much lower for Oracle 6.

I think that it is always power(2,N)-2 for some N.