CREATE OR replace PROCEDURE Hello_world2
IS
BEGIN
HTP.htmlopen;
HTP.headopen;
HTP.Title ('You knew it was coming...');
HTP.headclose;
HTP.comment ('This phrase is in every computer book.');
HTP.Bodyopen (cattributes => 'body bgcolor=blue');
HTP.Print ('And here it is .... Hello, World!');
HTP.bodyclose;
HTP.htmlclose;
END;
如何将其输出到 HTML 文件?我试过如下所示:
spool report.htm
exec hello_world2;
spool off
exit
但我收到如下所示的错误:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "SYS.OWA_UTIL", line 356
ORA-06512: at "SYS.HTP", line 1368
ORA-06512: at "SYS.HTP", line 1443
ORA-06512: at "SYS.HTP", line 1735
ORA-06512: at "SYS.HTP", line 72
ORA-06512: at "T416493.HELLO_WORLD2", line 4
ORA-06512: at line 1
谁能帮我这个