--TEST-- Set and check Oracle 11gR2 "edition" attribute --SKIPIF-- --FILE-- --EXPECTF-- **Test 1.1 - Default value for the attribute ************** The value of current EDITION is ORA$BASE **Test 1.2 - Set a value and get the same with different connections ********* The value of edition has been successfully set Testing with oci_connect() The value of current EDITION is MYEDITION Testing with oci_pconnect() The value of current EDITION is MYEDITION Testing with oci_new_connect() The value of current EDITION is MYEDITION The value of current EDITION is MYEDITION **Test 1.3 change the value and verify with existing conenctions.********* The value of edition has been successfully set The value of current EDITION is MYEDITION The value of current EDITION is MYEDITION Testing with oci_new_connect() The value of current EDITION is MYEDITION1 Testing with oci_pconnect() The value of current EDITION is MYEDITION1 Testing with oci_connect() The value of current EDITION is MYEDITION1 **Test 1.4 - with different type of values ********* The value of edition has been successfully set Testing with oci_connect() Warning: oci_connect(): ORA-38801: %s ORA_EDITION in %s on line %d The value of edition has been successfully set Testing with oci_connect() The value of current EDITION is ORA$BASE The value of edition has been successfully set Testing with oci_connect() Warning: oci_connect(): ORA-38801: %s ORA_EDITION in %s on line %d The value of edition has been successfully set Testing with oci_connect() Warning: oci_connect(): ORA-38801: %s ORA_EDITION in %s on line %d **Test 1.5 - Negative case with an invalid string value. ********* Testing with oci_new_connect() Warning: oci_new_connect(): ORA-38801: %s ORA_EDITION in %s on line %d The value of edition has been successfully set **Test 1.6 - Set Multiple times.***** The value of edition has been successfully set The value of edition has been successfully set Testing with oci_connect() The value of current EDITION is MYEDITION1 **Test 1.7 - Test with ALTER SESSION statement to change the edition ******* The value of edition has been successfully set Testing with oci_new_connect() get the value set to MYEDITION with oci_set_edition The value of current EDITION is MYEDITION Get the value set to MYEDITION1 with alter session The value of current EDITION is MYEDITION1 Get the value with a new connection Testing with oci_connect() The value of current EDITION is MYEDITION Set the value back using oci-set_edition The value of edition has been successfully set The value of current EDITION is MYEDITION Get the value with a new conenction Testing with oci_connect() The value of current EDITION is MYEDITION **Test 1.8 - Test setting the attribute with scope ends******* The value of edition has been successfully set The value of current EDITION is MYEDITION1 Done