downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

oci_pconnect> <oci_parse
Last updated: Fri, 13 Nov 2009

view this page in

oci_password_change

(PHP 5, PECL OCI8 >= 1.1.0)

oci_password_changeOracle ユーザのパスワードを変更する

説明

bool oci_password_change ( resource $connection , string $username , string $old_password , string $new_password )
resource oci_password_change ( string $dbname , string $username , string $old_password , string $new_password )

ユーザ username のパスワードを変更します。

パラメータ

connection

oci_connect() あるいは oci_pconnect() が返す Oracle 接続 ID。

username

Oracle のユーザ名。

old_password

旧パスワード。

new_password

設定したい、新しいパスワード。

dbname

データベース名。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

注意

注意: oci_password_change() の 2 番目の書式はバージョン 1.1 から利用可能です。

注意: PHP バージョン 5.0.0 以前では、代わりに ocipasswordchange() を使用しなければなりません。 まだこの名前を使用することができ、下位互換性のため oci_password_change() への別名として残されていますが、 推奨されません。



add a note add a note User Contributed Notes
oci_password_change
sixd at php dot net
19-Jun-2008 04:16
Changing the password either with this function or directly in Oracle should be done carefully when PHP applications are involved. This is because  persistent connections may continue to work using the "old" password. The best practice is to restart all web servers whenever the user password is changed.

Oci_password_change is most useful for PHP command-line scripts, or when non-persistent connections are used everywhere in a PHP application.

oci_pconnect> <oci_parse
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites