Originally posted by: SystemAdmin
> I am trying to connect oracle DB with OPL code in a file solver.dat
> wrote code DBConnection db("oracle11","username/password@Dbinstance");
> I struck with fallowing error,
> ■ERRORDATA_103 at 7:74-75
> C:\xampp\htdocs\project\Code\solver\solver.dat: Database error (state=
> code=0): ORA-12154: TNS:could not resolve the connect identifier
> specified
> , near "username/password@dbinstance".
I am assuming that the DBConnection statement in your dat file has the correct connection string (actual values for username, password and DBinstance). After confirming this, please go through the possible causes for the ORA-12154 error as listed in the following site to see if they are leading to the error:
http://ora-12154.ora-code.com/#DecisionOptimization#OPLusingCPLEXOptimizer