1. select lpad(to_number('0001')+1,4,'0') from dual;
2. select case when to_number('0010')+1<9 then '000'||to_char(to_number('0010')+1) when to_number('0010')+1<99 then '00'||to_char(to_number('0010')+1) when to_number('0010')+1<999 then '0'||to_char(to_number('0010')+1) else to_char(to_number('0010')+1) end from dual