ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:setconnectionparameter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:reference:connection:setconnectionparameter [2022/03/24 17:51] mnewnhamv5:reference:connection:setconnectionparameter [2022/03/28 17:30] – [Oracle] client_identifier available since 5.23.0 dregad
Line 37: Line 37:
 ==== Oracle ==== ==== Oracle ====
 //$parameterName// must be one of the following //$parameterName// must be one of the following
 +
 === session_mode === === session_mode ===
 +
 Sets the Oracle Session Mode. The default value is ''OCI_DEFAULT''. Other values are: Sets the Oracle Session Mode. The default value is ''OCI_DEFAULT''. Other values are:
   * ''OCI_CRED_EXT''    * ''OCI_CRED_EXT'' 
   * ''OCI_SYSOPER''    * ''OCI_SYSOPER'' 
   * ''OCI_SYSDBA''   * ''OCI_SYSDBA''
 +
 <code php> <code php>
 $db = ADONewConnection('oci8'); $db = ADONewConnection('oci8');
Line 48: Line 51:
 </code> </code>
  
 +=== client_identifier ===
 +(ADOdb >= 5.23.0)
 +
 +Sets the [[https://www.php.net/manual/en/function.oci-set-client-identifier.php|Oracle Client Identifier]].
 +
 +<code php>
 +$db = ADONewConnection('oci8');
 +$db->setConnectionParameter('client_identifier',$_SESSION['username']);
 +$db->connect($database,$user,$password);
 +</code>
  
  
v5/reference/connection/setconnectionparameter.txt · Last modified: 2022/07/13 03:47 by mnewnham