Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01867 in 10G XE, not in 9i

487375Mar 6 2006 — edited Mar 6 2006

the below procedure works fine in oracle 9i but not in oracle 10g xe.
is the format to specify day to second interval different in oracle 10 G?

declare
v_min NUMBER;
v_sec NUMBER;
time_taken INTERVAL DAY TO SECOND;
begin
v_min:=2.3;
v_sec:=4.7;
time_taken:=TO_DSINTERVAL('0 0:'||TO_CHAR(V_MIN)||':'||TO_CHAR(V_SEC));
end;

SQL> declare
2 v_min NUMBER;
3 v_sec NUMBER;
4 time_taken INTERVAL DAY TO SECOND;
5 begin
6 v_min:=2.3;
7 v_sec:=4.7;
8 time_taken:=TO_DSINTERVAL('0 0:'||TO_CHAR(V_MIN)||':'||TO_CHAR(V_SEC));
9 end;
10 .
SQL> /
declare
*
ERROR at line 1:
ORA-01867: the interval is invalid
ORA-06512: at line 8

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2006
Added on Mar 6 2006
1 comment
305 views