Update get_param.sql

Major rewrite to cover options from 10.1 to 11.2.0.4.