Host variable <str> is based on a type that uses discriminamts Explanation: The host variable you referred to is based on a type which uses Ada discriminants. SQL does not support types which include discriminants User Action: Use a different type defintion.