$dbAdapterConfig = array(
'driver' => 'Oci8',
'connection_string' => '192.168.0.70/pep',
'username' => 'xx',
'password' => 'xx',
'character_set' => 'AL32UTF8',
'platform_options' => array('quote_identifiers' => false)
);
$adapter = new \Zend\Db\Adapter\Adapter($dbAdapterConfig);
$result = $adapter->query('SELECT COUNT(*) as CNT FROM B2B_INFO_SHOP', Adapter::QUERY_MODE_EXECUTE);
if ($result)
echo $result->current()->CNT, "\n";
$sql = new Sql($adapter);
$select = $sql->select()
->from('B2B_INFO_SHOP');
$select->where(array('SHOPID' => 123));
$selectString = $sql->getSqlStringForSqlObject($select);
echo $selectString, "\n";
$statement = $sql->prepareStatementForSqlObject($select);
$result = $statement->execute();
if ($result)
echo $result->current()["SHOPNAME"];