You can set utl_http.set_transfer_timeout value globally or in the database

Hello

We have about 25 web called from many procedures for package services. Lately we are seeing time-out errors more than usual. So we started to add the value of utl_http.set_transfer_timeout to a value greater than the value default 60 seconds before making calls. I was wondering if the time-out value is adjustable to the level of the database or in the world to avoid changing each procedure.

Thanks in advance.

Elcaro wrote:

BTW, the package for SYS.utl_http body is wrapped. How could I manage the implementation of the package body when it is wrapped?

You do not replace SYS. UTL_HTTP. So no need to know the wrapped (coded) / private parts of the package.

For example

create or replace package UTL_HTTP as
  .. // copied, pasted and modified from real SYS.UTL_HTTP header
  -- The HTTP protocol versions that can be used in the function begin_request
  HTTP_VERSION_1_0  CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_0;
  HTTP_VERSION_1_1  CONSTANT VARCHAR2(64) := SYS.UTL_HTTP.HTTP_VERSION_1_1;
  ..
  procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL);
  ..
end;
/

create or replace package body UTL_HTTP as
  .. // wrap calls to the real SYS.UTL_HTTP

  procedure set_proxy(proxy IN VARCHAR2, no_proxy_domains IN VARCHAR2 DEFAULT NULL) is
  begin
    SYS.UTL_HTTP.set_proxy(proxy, no_proxy_domains);
  end;
  ..
begin
  // code SYS.UTL_HTTP default settings here
end;
/

With regard to the authorization DBA. No need.

Assuming that you have a lot of code calling UTL_HTTP in your schema. You just create your UTL_HTTP package that encapsulates calls to the real SYSTEM. UTL_HTTP in your schema.

Scheme code always call you UTL_HTTP - but now she's calling your wrapper UTL_HTTP package. And the package in turn call the real SYS. UTL_HTTP package.

If you have 2 schemas calling UTL_HTTP - then the suggestion is to create a 3rd diagram called CODE_LIB or something. It implements the UTL_HTTP package package. It grants execute rights for 1 and 2 CODE_LIB patterns. UTL_HTTP.

Finally, to make the code in diagrams 1 and 2 call CODE_LIB. UTL_HTTP and not SYS. UTL_HTTP, create synonyms in these patterns, for example
create or replace the synonym UTL_HTTP for CODE_LIB. UTL_HTTP

Concern of the DBA is simply security in this regard. Granting access to relevant application schemas to SYS. UTL_HTTPand allowing these tcp access patterns to the outside world (via network ACL in 11g and later).

Tags: Database

Similar Questions

  • Please how can I insert a value of richinputtext in the database string attribute

    Please how can I insert a value of richinputtext in the database string attribute

    If you can get its value at the bean and then call your insert statement to put it in the DB table

    and if you want to know about the execution of SQL query

    then check - Ashish Awasthi (Jdev/ADF) Blog: SQL to run in an ADF Application using DataSource DBTransaction & JDBC query

    Ashish

  • Is there a way you can set up a printer hp 7520 to analyze the auto size?

    When I scan from the printer or the computer, I either make real and then later crop size or size to scan. When I had my photosmart hp over the printer. I had to do this it would automatically detect that and scan at that size. Is there a way I can set up my printer to automatically detect the size of everything in the printer? I thought a new printer would be better, but it is causing more and more problems I.

    Hello

    Unfortunately not for this printer, you must select the scanning area we want to analyze

    Kind regards.

  • In the Pages, you can set crop marks printer?

    In the Pages, you can set crop marks printer?

    Printer crop marks are not implemented in any version of Pages using v5.6.1. Export to PDF and open it in the designer of the affinity. Once again export to PDF and apply the printing marks in the menu export. The following has been open in the designer of the affinity and exported in the form of a PDF/A-1 a with all the points you see here:

  • You can set reminders to repeat

    You can set reminders to provide alerts repeated unread messages or voice messages on 5s-6

    In the application of reminders, you can set a reminder to never repeat day, week, 2 weeks, month or year. You can make the reminder for all you want.

    You can set alerts for Messages to repeat. Settings > Notifications > Messages > repeat alert

  • For Windows XP, how to get rid of "this screen saver has no option that you can set!

    I want to change the screen saver, but whenever I click the setting button, I received the message: «this screen saver has no options that you can set»

    Although several screensavers just do one thing, some of them can be customized.  For example, '3D text' screen saver allows you to choose the text, the text color, size, etc.

    For most screen savers, just choose one from the drop-down list and then click 'OK' - not the button "settings".

  • You can lock an object (video or photo) in the background of another video?

    I am doing a video with an explosion inside so I had the basic video I recorded on the bottom layer and then put the video of the explosion on top of it. Kind of worked by playing the two videos at the same time, she seems completely wrong, because the explosion remains in the same exact spot regarding the first camera (video I recorded). Then when my camera settles the explosion followed, rather than stay in the same place as in real life. Is it possible to "lock" to a position in the pictures?

    It is best done in things like the first or After Effects. the best you can do with the PS, is to put the clip into a smart object, then you can use move or transform keyframing to move the layer with your another clip. You need to add more keyframes to get to to move convincingly.

  • You can run VM Clients on different hosts on the same VMServer?

    If I have a VM server on subnet 192.168.xxx.xxx

    I have customers

    192.168.xxx.xxx

    10.xxx.xxx.xxx

    on the same host?    My infrastrtucture is Server ESX 3 Cisco Catalyst 4000 as the layer 3 backbone switch.

    If these are logical networks on the same physical network, you can simply create a new portgroup, or use the existing one.

    If these are physical networks, you must create several vSwitch (for each network) and connect to the physical layer.

    If these networks are the VLANS on the same physical core, you must create several portgroup and tag to each VLAN.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • can express us batch relationship XML structure in the database table

    Hello
    Please help me...
    I have a lot of structure of batch XML... .can we express batch relationship XML structure in the database of tha table?

    Yes... so how do?

    Thank you
    Amou

    Published by: amu_2007 on March 25, 2010 18:57

    Published by: amu_2007 on March 25, 2010 19:03

    But what is the problem with the original solution, given that divides the XML into the data?

    I mean you could do something like that?

    SQL> create table batch (customer    VARCHAR2(10)
      2                     ,cust_name   VARCHAR2(10)
      3                     ,cust_type   VARCHAR2(10)
      4                     )
      5  /
    
    Table created.
    
    SQL>
    SQL> create table section (customer    VARCHAR2(10)
      2                       ,sect_name   VARCHAR2(10)
      3                       ,sect_depend VARCHAR2(10)
      4                       )
      5  /
    
    Table created.
    
    SQL> create table job_sections (customer        VARCHAR2(10)
      2                            ,sect_name       VARCHAR2(10)
      3                            ,job_sect_name   VARCHAR2(10)
      4                            ,job_sect_depend VARCHAR2(10)
      5                            )
      6  /
    
    Table created.
    
    SQL> create table job (customer        VARCHAR2(10)
      2                   ,sect_name       VARCHAR2(10)
      3                   ,job_sect_name   VARCHAR2(10)
      4                   ,job_type        VARCHAR2(10)
      5                   ,job_sub_type    VARCHAR2(10)
      6                   ,job_depend      VARCHAR2(10)
      7                   )
      8  /
    
    Table created.
    
    SQL>
    SQL>
    SQL> insert all
      2    when batch_rn = 1 then
      3      into batch (customer, cust_name, cust_type) values (customer, cust_name, cust_type)
      4    when section_rn = 1 then
      5      into section (customer, sect_name, sect_depend) values (customer, sect_name, sect_dependency)
      6    when job_sections_rn = 1 then
      7      into job_sections (customer, sect_name, job_sect_name, job_sect_depend) values (customer, sect_name, job_sect_name, job_sect_dependency)
      8    when 1=1 then
      9      into job (customer, sect_name, job_sect_name, job_type, job_sub_type, job_depend) values (customer, sect_name, job_sect_name, job_type, jo
     10  --
     11  WITH t as (select XMLTYPE('
     12  
     13    
     14      
    15 16 17 18 19 20 21 22
    23
    24 25 26 27 28 29 30 31
    32
    33 34 35 36 37 38 39 40 41 42 43
    44
    45
    46 ') as xml from dual) 47 -- 48 -- END OF TEST DATA 49 -- 50 ,flat as (select a.customer, a.cust_name, a.cust_type 51 ,b.sect_name, NULLIF(b.sect_dependency,'NULL') as sect_dependency 52 ,c.job_sect_name, NULLIF(c.job_sect_dependency,'NULL') as job_sect_dependency 53 ,d.job_type, d.job_sub_type, NULLIF(d.job_dependency,'NULL') as job_dependency 54 from t 55 ,XMLTABLE('/BATCH' 56 PASSING t.xml 57 COLUMNS customer VARCHAR2(10) PATH '/BATCH/@customer' 58 ,cust_name VARCHAR2(10) PATH '/BATCH/@name' 59 ,cust_type VARCHAR2(10) PATH '/BATCH/@type' 60 ,bat_sections XMLTYPE PATH '/BATCH/BATCH_SECTIONS' 61 ) a 62 ,XMLTABLE('/BATCH_SECTIONS/SECTION' 63 PASSING a.bat_sections 64 COLUMNS sect_name VARCHAR2(10) PATH '/SECTION/@name' 65 ,sect_dependency VARCHAR2(10) PATH '/SECTION/@dependency' 66 ,section XMLTYPE PATH '/SECTION' 67 ) b 68 ,XMLTABLE('/SECTION/JOB_SECTIONS' 69 PASSING b.section 70 COLUMNS job_sect_name VARCHAR2(10) PATH '/JOB_SECTIONS/@name' 71 ,job_sect_dependency VARCHAR2(10) PATH '/JOB_SECTIONS/@dependency' 72 ,job_sections XMLTYPE PATH '/JOB_SECTIONS' 73 ) c 74 ,XMLTABLE('/JOB_SECTIONS/JOBS/JOB' 75 PASSING c.job_sections 76 COLUMNS job_type VARCHAR2(10) PATH '/JOB/@type' 77 ,job_sub_type VARCHAR2(10) PATH '/JOB/@sub_type' 78 ,job_dependency VARCHAR2(10) PATH '/JOB/@dependency' 79 ) d 80 ) 81 -- 82 select customer, cust_name, cust_type, sect_name, sect_dependency, job_sect_name, job_sect_dependency, job_type, job_sub_type, job_dependency 83 ,row_number() over (partition by customer order by 1) as batch_rn 84 ,row_number() over (partition by customer, sect_name order by 1) as section_rn 85 ,row_number() over (partition by customer, sect_name, job_sect_name order by 1) as job_sections_rn 86 from flat 87 / 16 rows created. SQL> select * from batch; CUSTOMER CUST_NAME CUST_TYPE ---------- ---------- ---------- ABC ABC1 ABC_TYPE SQL> select * from section; CUSTOMER SECT_NAME SECT_DEPEN ---------- ---------- ---------- ABC X ABC Y X ABC Z Y SQL> select * from job_sections; CUSTOMER SECT_NAME JOB_SECT_N JOB_SECT_D ---------- ---------- ---------- ---------- ABC X JOB1 ABC Y JOB2 X ABC Z JOB3 ABC Z JOB4 SQL> select * from job; CUSTOMER SECT_NAME JOB_SECT_N JOB_TYPE JOB_SUB_TY JOB_DEPEND ---------- ---------- ---------- ---------- ---------- ---------- ABC X JOB1 X xx ABC X JOB1 X yy ABC X JOB1 X zz ABC Y JOB2 Y xx X ABC Y JOB2 Y yy X ABC Y JOB2 Y zz X ABC Z JOB3 ..... .... ABC Z JOB4 .... .... 8 rows selected. SQL>

    But it would depend on what you are really after regarding primary keys and relationships between the tables etc.

    I would like to put this just for you...

    H1. . If YOU PROVE to THE United States THAT OUTPUT you NEED, WE cannot GIVE YOU AN ANSWER

  • You do not have enough disk space to create the database...

    Hi all

    During the creation of the database, I received this message:

    + "You don't have enough disk space to create the database. +
    + You must at least 939008 on/U01 KB, you only 1981480960 available KB. +

    + Please allow more free disk space. » +

    I checked:
    Root@server# df h
    Size of filesystem used avail capacity mounted on
    / dev/dsk/c4t600A0B800033696A000017534E2F6F67d0s0
    2.2 T 2.2 G 2.2 T 1% / U01

    My Info:
    DB-INSUP2-C2VAS of SunOS 5.10 Generic_142909-17 sun4u sparc SUNW, Sun-Fire-V890
    Oracle database: 10.2.0.1


    Help, please!
    Thank you!
    Dan.

    Thank you all,

    I got the same warning messages and I created the point of editing/U01 with 50 GB for installation of Oracle and creation of database with no caveat. In my opinion, the warning appeared as the point of Assembly/U01 is too large (2.2 T).

    Sorting.

    Published by: hqtri on August 4, 2011 23:33

  • You can set zoom in e-mails to 104%

    just changed since the Firefox Explorer...
    can you tell me is there a zoom adjusted to the size of the text in emails (I'm used to 104%) or the fact just go in the 10%
    increments... Thank you

    I believe that the setting that Fred mentioned is this:
    toolkit.zoomManager.zoomValues

    The default values for this pref are:
    .3,.5,.67,.8,.9, 1, 1.1, 1.2, 1.33, 1.5, 1.7, 2, 2.4, 3

    The advanced such as preferences can be access via Subject: config = typed in the URL bar. Right-click and select Edit to change this preference. Not sure if it will accept 1.04 or not. Try it and see if it works.

  • Distance... How you can set the amplifier to the default volume?

    Does anyone know how to set your amp to the default volume control without having to switch between devices to change the volume?

    Can you have 2 devices on the screen at the same time. As the box of cable and the AGP?

    I had other remote controls sony who would do it.

    Yes, you can change the order in the upper right to start.

  • Tabbed panels: you can set them to "close all"?

    I loaded a panel tabs on my web page but cannot find a way of them have closed at the same time, as you can with accordion panels.

    Y at - it a setting I forget?

    Thank you, community Muse!

    No, you can't close all tabs because that's not the way of work tabs, but if you think outside the box, or in this case, outside the tabs you can use a widget Accordion with one article and put it to close. Then inside the Panel adds your tabs Panel.

    Using styles, so that you can then style your accordion tab be invisible, but have some text in the accordiaon tab to open and close.

  • You can set the sent folder to send 1 email every 10 minutes

    I treat my work with many customers.

    I don't want to overload my servers on my hosting account send massive Emails at once. Is there a way for a shipment with ready to send change say 300 emails to send an email every 5 or 10 minutes rather than every 300 Emails are sent at the same time?

    Try this add-on so you can program the sending of multiple messages:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/send-later-3/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

    There is an another add-on which could work in current versions of TB:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/BlunderDelay/

  • You can set a default view in windows Explorer?

    I wish that my files appear in the "list" view everytime I open windows Explorer. Currently it is defaulted to the last view used for each folder.

    You are certainly welcome. You can click this button as replied to be moved to this category.

Maybe you are looking for