In apricot,cci_connect_ex() will return error message when it failed, it can give more information about database environment.