TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[HY000]: pdo_oci_handle_factory: ORA-12545: Connect failed because target host or object does not exist (/home/ec2-user/pdooci/PDO_OCI-1.0/oci_driver.c:463)

Source File

/var/www/html/prado-3.1.6.r2699/framework/Data/TDbConnection.php (180)

0169:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0170:                                     $this->getPassword(),$this->_attributes);
0171:                 // This attribute is only useful for PDO::MySql driver. 
0172:                 // Ignore the warning if a driver doesn't understand this.
0173:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0174:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0175:                 $this->_active=true;
0176:                 $this->setConnectionCharset();
0177:             }
0178:             catch(PDOException $e)
0179:             {
0180: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0181: } 0182: } 0183: } 0184: 0185: /** 0186: * Closes the currently active DB connection. 0187: * It does nothing if the connection is already closed. 0188: */ 0189: protected function close() 0190: { 0191: $this->_pdo=null; 0192: $this->_active=false;

Stack Trace

#0 /var/www/html/prado-3.1.6.r2699/framework/Data/TDbConnection.php(153): TDbConnection->open()
#1 /var/www/html/prado-3.1.6.r2699/framework/Data/ActiveRecord/TActiveRecord.php(317): TDbConnection->setActive(true)
#2 /var/www/html/prado-3.1.6.r2699/framework/Data/ActiveRecord/TActiveRecord.php(329): TActiveRecord::getActiveDbConnection()
#3 /var/www/html/prado-3.1.6.r2699/framework/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecord->getDbConnection()
#4 /var/www/html/prado-3.1.6.r2699/framework/Data/ActiveRecord/TActiveRecordGateway.php(249): TActiveRecordGateway->getCommand(Object(SystemRecord))
#5 /var/www/html/prado-3.1.6.r2699/framework/Data/ActiveRecord/TActiveRecord.php(678): TActiveRecordGateway->findRecordsBySql(Object(SystemRecord), Object(TActiveRecordCriteria))
#6 /var/www/html/padisys/protected/Pages/ForgotPassword.php(20): TActiveRecord->findAllBySql('SELECT  * FROM ...')
#7 /var/www/html/prado-3.1.6.r2699/framework/Web/UI/TControl.php(1270): ForgotPassword->onInit(NULL)
#8 /var/www/html/prado-3.1.6.r2699/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#9 /var/www/html/prado-3.1.6.r2699/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#10 /var/www/html/prado-3.1.6.r2699/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#11 /var/www/html/prado-3.1.6.r2699/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#12 /var/www/html/prado-3.1.6.r2699/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#13 /var/www/html/prado-3.1.6.r2699/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(ForgotPassword), Array)
#14 /var/www/html/prado-3.1.6.r2699/framework/TApplication.php(1095): TPageService->run()
#15 /var/www/html/prado-3.1.6.r2699/framework/TApplication.php(382): TApplication->runService()
#16 /var/www/html/padisys/index.php(27): TApplication->run()
#17 {main}
2018-05-27 02:54 Apache/2.4.27 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.32 PRADO/3.1.6