![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We are using SA10 EBF 3805(Linux) and 3807(Windows) for our product. Using follow stored procedure(SP) - create procedure sp_adjust_required_table ( @dev_id integer ,@data_type tinyint ,@time_type tinyint ,@req_start_time datetime ,@req_end_time datetime ) as begin select table_name, (if sp_rt.start_time = sp_rt.end_time then udf_time_adjust(sp_rt.start_time, 1, @time_type, 0) else udf_time_adjust(sp_rt.start_time, 1, @time_type, 1) endif) as start_time, (if sp_rt.start_time = sp_rt.end_time then udf_time_adjust(sp_rt.end_time, 2, @time_type, 1) else udf_time_adjust(sp_rt.end_time, 2, @time_type, 0) endif) as end_time, use_time, @time_type from sp_required_table( @dev_id, @data_type, @time_type, @req_start_time, @req_end_time ) as sp_rt where start_time < end_time end In some installations running follow SQL statement - select max(end_time) from sp_adjust_required_table( 4,0,0,'2009-08-27 15:16:31', '2009-08-27 15:21:30') SQL Error - 'Derived table 'sp_adjust_required_table ' has no name for column 2 SQLCODE=-163' appears. After reloading this SP from source or simple in Sybase Central add space and save this SP. This SQL statement begin to work properly. What is the problem , how this can be explaned!? Thanks in advance , Hanan Brener |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks Nick for your answer. Really after product install in table SYSPROCPARM we get only one output parameter with name - 'expression', but after reloading SP we get 5(five) output parameters and SP begin to work properly. We have change order in install SP and UDF first create UDF and second SP (before order was versus). In Linux install that solve the problem, in Windows install not. Only after running SP install additonal than it solve the problem. Can this point on some differences between Linux and Windows db server implementation or another problem? Another question - if in SYSPROCPARM table parm_name is 'expression' it points on some problem in SP!? Thanks in advance,Hanan Brener |
#5
| |||
| |||
|
#6
| |||
| |||
|
| Thanks Nick for your answer. For database instalation we are used Script-file for Linux and C-exe for Windows; For loading SP and UDF used the same mechanism - load file by file from dedicated directory using DBISQL : Examples - Linux - ${SQLANY10}/bin32/dbisql -nogui -onerror exit -c "links=tcpip (host=localhost;port=${port};dobroadcast=none;veri fy=no)\ ;eng=a;uid=nms;pwd=allot" read /opt/allot/db_inst_conf/ collect_procs/sp_adjust_required_table.sql Windows - OS_Functions::runProgram Program name - D:\Allot\Sybase\Sql Anywhere 10\win32\dbisql.exe Program arguments: dbisql - nogui - c eng=server10-xp_allot_stc; uid=nms; pwd=allot ; CommLinks=tcpip (PORT=50001) - onerror exit read 'D:\Allot\db_inst_conf\stc\procs \sp_adjust_required_table.sql' You ask about unload schema from both platform, I have prepared them using follows command - ${SQLANY10}/bin32/dbunload -c "DBF=/opt/sybase/data/db/stc/ allot_stc.db;UID=nms;PWD=allot" -n -r /opt/admin/reload.sql How can I send to you these files? Thanks in advance,Hanan Brener |
#7
| |||
| |||
|
|
I just sent you an email you can respond to; with attachements . . . "Hanan Brener" <hananbrener (AT) gmail (DOT) com> wrote in message news:00ad47d1-75db-4b0a-b682-f4ae6c3b29fb (AT) g6g2000vbr (DOT) googlegroups.com... Thanks Nick for your answer. For database instalation we are used Script-file for Linux and C-exe for Windows; For loading SP and UDF used the same mechanism - load file by file from dedicated directory using DBISQL : Examples - Linux - ${SQLANY10}/bin32/dbisql -nogui -onerror exit -c "links=tcpip (host=localhost;port=${port};dobroadcast=none;veri fy=no)\ ;eng=a;uid=nms;pwd=allot" read /opt/allot/db_inst_conf/ collect_procs/sp_adjust_required_table.sql Windows - OS_Functions::runProgram Program name - D:\Allot\Sybase\Sql Anywhere 10\win32\dbisql.exe Program arguments: dbisql - nogui - c eng=server10-xp_allot_stc; uid=nms; pwd=allot ; CommLinks=tcpip (PORT=50001) - onerror exit read 'D:\Allot\db_inst_conf\stc\procs \sp_adjust_required_table.sql' You ask about unload schema from both platform, I have prepared them using follows command - ${SQLANY10}/bin32/dbunload -c "DBF=/opt/sybase/data/db/stc/ allot_stc.db;UID=nms;PWD=allot" -n -r /opt/admin/reload.sql How can I send to you these files? Thanks in advance,Hanan Brener |
#8
| |||
| |||
|
|
I just sent you an email you can respond to; with attachements . . . "Hanan Brener" <hananbrener (AT) gmail (DOT) com> wrote in message news:00ad47d1-75db-4b0a-b682-f4ae6c3b29fb (AT) g6g2000vbr (DOT) googlegroups.com... Thanks Nick for your answer. For database instalation we are used Script-file for Linux and C-exe for Windows; For loading SP and UDF used the same mechanism - load file by file from dedicated directory using DBISQL : Examples - Linux - ${SQLANY10}/bin32/dbisql -nogui -onerror exit -c "links=tcpip (host=localhost;port=${port};dobroadcast=none;veri fy=no)\ ;eng=a;uid=nms;pwd=allot" read /opt/allot/db_inst_conf/ collect_procs/sp_adjust_required_table.sql Windows - OS_Functions::runProgram Program name - D:\Allot\Sybase\Sql Anywhere 10\win32\dbisql.exe Program arguments: dbisql - nogui - c eng=server10-xp_allot_stc; uid=nms; pwd=allot ; CommLinks=tcpip (PORT=50001) - onerror exit read 'D:\Allot\db_inst_conf\stc\procs \sp_adjust_required_table.sql' You ask about unload schema from both platform, I have prepared them using follows command - ${SQLANY10}/bin32/dbunload -c "DBF=/opt/sybase/data/db/stc/ allot_stc.db;UID=nms;PWD=allot" -n -r /opt/admin/reload.sql How can I send to you these files? Thanks in advance,Hanan Brener |
#9
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |