Hi to All,
I have created a little project that use Oracle DB. In SC I have tested successfull the connection.
The first application is like the start_up_screen of sc_tickets example. This control call in “onScriptInit” this function in a my Project library:
<?php
function LoadSettings(){
$str_sql = "select
sys_smtpserver,
sys_smtpport,
sys_smtpuser,
sys_smtppassword,
sys_companyname,
sys_emailaccount,
sys_assigmentmode,
sys_definedparameters,
sys_defaultpriority,
sys_smtpsecurityflag,
sys_defaultlanguage,
sys_version
FROM
sys$eclipse.sys_settings
WHERE
sys_id = 1";
sc_lookup(dataset,$str_sql);
$arr_load = array();
$arr_load['sys_smtpserver'] = (!empty({dataset}[0][0]))?{dataset}[0][0]:'';
$arr_load['sys_smtpport'] = (!empty({dataset}[0][1]))?{dataset}[0][1]:'';
$arr_load['sys_smtpuser'] = (!empty({dataset}[0][2]))?{dataset}[0][2]:'';
$arr_load['sys_smtppassword'] = (!empty({dataset}[0][3]))?{dataset}[0][3]:'';
$arr_load['sys_companyname'] = (!empty({dataset}[0][4]))?{dataset}[0][4]:'';
$arr_load['sys_emailaccount'] = (!empty({dataset}[0][5]))?{dataset}[0][5]:'';
$arr_load['sys_assigmentmode'] = (!empty({dataset}[0][6]))?{dataset}[0][6]:'';
$arr_load['sys_definedparameters'] = (!empty({dataset}[0][7]))?{dataset}[0][7]:'';
$arr_load['sys_defaultpriority'] = (!empty({dataset}[0][8]))?{dataset}[0][8]:'';
$arr_load['sys_smtpsecurityflag'] = (!empty({dataset}[0][9]))?{dataset}[0][9]:'';
$arr_load['sys_defaultlanguage'] = (!empty({dataset}[0][10]))?{dataset}[0][10]:'it_it;it_it';
$arr_load['sys_version'] = (!empty({dataset}[0][11]))?{dataset}[0][11]:'';
$_SESSION['myAppSettings'] = $arr_load;
}
?>
Using Toad I have tested the query and work fine. But Wher I run the control this error is returned:
AUTHENTICATION FAILURE
ociexecute() [function.ociexecute]: ORA-00942: table or view does not exist
I have tried to explore the source generated from SC, but I don’t be able to find how is established the oci connection.
Can anyone help me ?
Thank You and Best Regards.
Gaetano