Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Error Connecting Oracle DB through OPL

    Posted 06/12/12 02:36 AM

    Originally posted by: SystemAdmin


    Hi all,

    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".
    1. OPL exception: Processing failed.

    Please can one can help to resolve it.....
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Error Connecting Oracle DB through OPL

    Posted 06/12/12 11:20 AM

    Originally posted by: SystemAdmin


    Hi

    this is an Oracle error. Can you connect to your database with another tool like SQL*Plus?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Error Connecting Oracle DB through OPL

    Posted 06/12/12 12:50 PM

    Originally posted by: SystemAdmin


    Hi,

    First of all very thanks for you to reply.

    Yes i can able to connect my Oracle DB with other tools.

    But i cant able to connect while trying in this way ..

    I am in urgency to finish this issue in time can please get me some Basic ideas to resolve it please
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: Error Connecting Oracle DB through OPL

    Posted 06/12/12 07:11 PM

    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