2016-12-02 24 views
0

ORA-29270:下のプロシージャを実行しようとすると、HTTPリクエストが多すぎます。リクエストとレスポンスを閉じるためにどこですべてを必要としているか教えてください。プロシージャの例の1つに、例外処理の仕方を記入してください。すべてのリクエストが適切に処理される必要があります。APIエラーORA-29270:オープンしているHTTPリクエストが多すぎます

BEGIN 
    l_http_request := utl_http.begin_request (p_url, 'POST'); 

    BEGIN 
    -- build the request by using utl_http.set_header() and utl_http.write_text() 
    -- ... 

    -- process the request and get the response: 
    l_http_response := utl_http.get_response (l_http_request); 
    WHEN OTHERS THEN 
     --- utl_http.end_response(http_resp); 
       error_code := '91'; 
      error_desc := SQLERRM || ' Unhandled Exception'; 
    END; 
    BEGIN 
    LOOP 
     -- read the response using utl_http.read_line() 
     -- ... 
    END LOOP; 
    -- Complete the request and response, and close the network connection 
    utl_http.end_response(l_http_response); 

    EXCEPTION 
    when utl_http.end_of_body then 
    utl_http.end_response(http_resp); 

    WHEN error_out THEN 
     NULL; 
    WHEN OTHERS THEN 
     --- utl_http.end_response(http_resp); 
      error_code := '91'; 
      error_desc := SQLERRM || ' Unhandled Exception'; 
         END; 
END; 

答えて

0

こんにちは:私は自分のコードで同じエラーに対処しています。私はutl_http.end_response(l_http_response)を追加して私のことを修正しました。

しかし、私はあなたのend_response呼び出しで2つの異なる引数を使用することに気付きました。あなたの例外ブロックで

utl_http.end_response(l_http_response); 

utl_http.end_response(http_resp); 

を変更してみてください。私はこれが役立つことを願っていますHawers Cheers、ホーク

関連する問題