0 Replies Latest reply: Dec 21, 2011 6:15 AM by iwish RSS

    oracle instantclient11.2 ,with vc2005 got an error code 1017

    iwish
      when create connect pool


      the code
       string  poolUserName ="dbusr";
       string  poolPassword ="dbusrpwd";
       string connectString="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST= 192.168.1.1)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))"";
      
      BOOL CtransApp::ConnectPool()
      {
      
      env = Environment::createEnvironment ("WE8ISO8859P1","UTF8");
           try{
      
           connPool = env->createConnectionPool
            (poolUserName, poolPassword, connectString, minConn, maxConn, incrConn);
           
           
             if (connPool)
                  return true;
            else
                  return false;       
          
          }catch(SQLException ex)
          {
          
           ORAerrcode = ex.getErrorCode();
      
            return false;
          }
      when i used sqlplus under the instantclient_11_2 folder ,it works fine .


      by the way ,i already have an oracle_home ,called ora92.

      Edited by: user476097 on 2011-12-21 上午4:15