|
Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006
Lane ksh not more than 4,096 the number of array elements?
I use the array function to write a shell ksh, is not more than 4,096, will exceed this limit to how do?
Also, if switch bsh write, and how to use array definition? |
Lane ksh not more than 4,096 the number of array elements?
Using ksh can die :
A $ /home/lee#set array (seq 1 5000)
/home/lee#echo ${#array[*]}
5000
/home/lee#for I in ${array[*]};do echo $i;done
1
...
5000 |
Lane ksh not more than 4,096 the number of array elements?
This is the section of code I wrote the first line : 88
Unset IFS
IFS= "; "
A result set `sqlplus S ${connect_string} "<!
Set echo off;
Set feedback off;
Set pagesize 10000;
Set head off;
Set underline off;
Set linesize 5000.
Select eid|| '; 'As "Eid" source_area||'; 'As "source_area" replace (source_sql, Christians (10), Christians (13)) | |'; 'As "source_sql" destination_table|| '; 'as "target" e_type||'; 'as the "type" offset_month||'; 'as "offset" decode (ctl_field1, null,' the Scheme ' ctl_field1) | | '; 'as "ctl" decode (to_char (ctl_date1' yyyymmdd hh24:mi:ss'), null, 'the Scheme', to_char (ctl_date1 'yyyymmdd hh24 : mi:ss')) | | '; 'as "ctlvalue" record_number1||'; 'as "recount" decode (to_char (ctl_date2' yyyymmdd hh24:mi:ss'), null, 'the Scheme' to_char (ctl_date2 'yyyymmdd hh24:mi:ss')) | |'; 'as "clear", decode (pk_field, null,' the Scheme 'pk_field) | |'; 'as the "pk" to_char (operate_date 'yyyymmdd hh24:mi:ss') | |'; 'as "opdate" etl_mark||'; 'as "mark" thred||'; 'as "th" memo||'; 'as the "memo" from etl_extraction;
Exit;
!
`
. /metadata[88] : 0403-046 7688 : The specified subscript can not be greater than 4095.
I think it should be set sqlplus results reported over the array limit the mistakes. |
Lane ksh not more than 4,096 the number of array elements?
You can see that the test procedure :
Oracle$ function seq.
> {
"Counter=0
"While [10,000] $counter -lt
"Do
"Echo" $counter "
"Done.
> }
A array oracle$ set `seq`
This being given time to implement :
Ksh : 0403-046 9998 : The specified subscript can not be greater than 4095. |
Lane ksh not more than 4,096 the number of array elements?
You would not increase counter function Lane! Death cycle. . . |
Lane ksh not more than 4,096 the number of array elements?
Solaris 4096 seems to be the limit?
A set of $ 4096` array `seq
$ Echo ${#array[*]}
4096
A set of $ 4097` array `seq
Ksh subscript out of range : 4096 : |
Lane ksh not more than 4,096 the number of array elements?
Ksh88 restrictions? |
Lane ksh not more than 4,096 the number of array elements?
Who ksh93 to try. . . |
Lane ksh not more than 4,096 the number of array elements?
| Lane ksh not more than 4,096 the number of array elements?
| |
|