php testing,PHP: Testing - Manual

Before running PHP's tests, edit details.inc

and set $user, $password and the $dbase connection string. The

OCI8 test suite has been developed using

the SYSTEM account. Some tests will fail if

the test user does not have equivalent permissions.

If Oracle Database Resident Connection Pooling is being

tested, set $test_drcp to true and ensure the

connection string uses an appropriate DRCP pooled server.

An alternative to editing details.inc is the

set environment variables, for example:

$ export PHP_OCI8_TEST_USER=system

$ export PHP_OCI8_TEST_PASS=oracle

$ export PHP_OCI8_TEST_DB=localhost/XE

$ export PHP_OCI8_TEST_DRCP=FALSE

Note in some shells these variables are not propagated correctly

to the PHP process and tests will fail to connect if this method

is used.

Next, set any necessary environment for the Oracle database. If you are

running PHP on the same machines as Oracle Database, you can run:

$ . /usr/local/bin/oraenv

With Oracle 11gR2 XE do:

$ . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

Some shells require that php.ini has E in the

variables_order parameter, for example:

variables_order = "EGPCS"

Run all the PHP tests with:

$ cd your_php_src_directory

$ make test

or run only the OCI8 tests with

$ cd your_php_src_directory

$ make test TESTS=ext/oci8

When the tests have completed, review any test failures. On slow

systems, some tests may take longer than the default test

timeout in run-tests.php. To correct this,

set the environment variable TEST_TIMEOUT to

a larger number of seconds.

On fast machines with a local database configured for light load

(e.g. Oracle 11gR2 XE) some tests might fail with ORA-12516 or

ORA-12520 errors. To prevent this, increase the database

PROCESSES parameter using the following steps:

Connect as the oracle software owner:

$ su - oracle

Set the necessary Oracle environment with oracle_env.sh or

oraenv, as described above.

Start the SQL*Plus command line tool and

increase PROCESSES

$ sqlplus / as sysdba

SQL> alter system set processes=100 scope=spfile

Restart the database:

SQL> startup force

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值