I want to basically have an “id” type in Oracle.
An example which would satisfy my needs would be a 32/64 bit integer where NULL is represented as -INT_MIN.
I don’t need this to be variable length (like NUMBER). I considered using RAW but I don’t believe there is an implicit conversion from RAW to integers.
It seems an option is BINARY_DOUBLE. Is this the best approach?
Not sure of your entire requirement, but yes it appears you’re correct:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm#i16209