|
|
|
Вывод из Java Stored Procedure
|
|||
|---|---|---|---|
|
#18+
Ребята, подскажите как сделать вывод ошибки или отладочной информации из java stored procedur, писал 1) System.err.println(e); где е-exception 2) System.out.println(e); где е-exception 3) e.printStackTrace(); где е-exception и нихера, ничего не вижу в output window в SQL Navigator 4.1, пробовал выполнять эту хранимую процедуру и в SQL Plus и тоже нихера!!!??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2006, 13:51 |
|
||
|
Вывод из Java Stored Procedure
|
|||
|---|---|---|---|
|
#18+
vladik_kнихера, ничего не вижу в output window в SQL Navigator 4.1, пробовал выполнять эту хранимую процедуру и в SQL Plus и тоже нихера!!!??? LOG4J или java.util.logging.Logger тебе поможет. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2006, 14:07 |
|
||
|
Вывод из Java Stored Procedure
|
|||
|---|---|---|---|
|
#18+
Oracle9i Java Stored Procedures Developer's Guide Release 2 (9.2) Redirecting Output On the server, the default output device is a trace file, not the user screen. As a result, System.out and System.err print to the current trace files. To redirect output to the SQL*Plus text buffer, call the procedure set_output() in package DBMS_JAVA, as follows: SQL> SET SERVEROUTPUT ON SQL> CALL dbms_java.set_output(2000); The minimum (and default) buffer size is 2,000 bytes; the maximum size is 1,000,000 bytes. In the following example, the buffer size is increased to 5,000 bytes: SQL> SET SERVEROUTPUT ON SIZE 5000 SQL> CALL dbms_java.set_output(5000); Output is printed when the stored procedure exits. For more information about SQL*Plus, see the SQL*Plus User's Guide and Reference. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2006, 14:15 |
|
||
|
Вывод из Java Stored Procedure
|
|||
|---|---|---|---|
|
#18+
Евгений Путилин vladik_kнихера, ничего не вижу в output window в SQL Navigator 4.1, пробовал выполнять эту хранимую процедуру и в SQL Plus и тоже нихера!!!??? LOG4J или java.util.logging.Logger тебе поможет. Не могли бы Вы объяснить, что такое LOG4J или java.util.logging.Logger, как ими пользоваться или пример какой бросить? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2006, 16:05 |
|
||
|
Вывод из Java Stored Procedure
|
|||
|---|---|---|---|
|
#18+
deepskyOracle9i Java Stored Procedures Developer's Guide Release 2 (9.2) Redirecting Output On the server, the default output device is a trace file, not the user screen. As a result, System.out and System.err print to the current trace files. To redirect output to the SQL*Plus text buffer, call the procedure set_output() in package DBMS_JAVA, as follows: SQL> SET SERVEROUTPUT ON SQL> CALL dbms_java.set_output(2000); The minimum (and default) buffer size is 2,000 bytes; the maximum size is 1,000,000 bytes. In the following example, the buffer size is increased to 5,000 bytes: SQL> SET SERVEROUTPUT ON SIZE 5000 SQL> CALL dbms_java.set_output(5000); Output is printed when the stored procedure exits. For more information about SQL*Plus, see the SQL*Plus User's Guide and Reference. отработало, спасибо, только я писал не call, а execute И все-таки, кто мне объяснит что такое LOG4J и java.util.logging.Logger, и с чем их едят??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2006, 19:29 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=59&tid=2149828]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
157ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
42ms |
get tp. blocked users: |
2ms |
| others: | 245ms |
| total: | 486ms |

| 0 / 0 |
