• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/db/oracleconnection.php
  • Класс: BitrixMainDBOracleConnection
  • Вызов: OracleConnection::connectInternal
protected function connectInternal()
{
	if ($this->isConnected)
		return;

	if (($this->options & self::PERSISTENT) != 0)
		$connection = oci_pconnect($this->login, $this->password, $this->database);
	else
		$connection = oci_new_connect($this->login, $this->password, $this->database);

	if (!$connection)
		throw new ConnectionException('Oracle connect error', $this->getErrorMessage());

	$this->isConnected = true;
	$this->resource = $connection;

	$this->afterConnected();
}