国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Oracle > 正文

Oracle webserver中文介紹-第四章

2024-08-29 13:41:02
字體:
來源:轉載
供稿:網友

  本章描述組成Oracle WebServer工具箱的 超文本過程,超文本函數和實用程序。
  
  Oracle Web Agent的主要目標之一就是PL/SQL程序員熟悉World Wide Web技術。
  
  從這一點,Oracle WebServer包括了由幾個PL/SQL組成的開發包以以最小化程序員對Html語法的要求。雖然程序員仍然要求有HTML的工作知識,但使用工具包,他們不需要在PL/SQL過程中寫HTML標記實際語法的的硬編碼。例如,程序員要求實現一個必要的錨,但他不需要知道生成一個錨的字符的實際序列。
  
  Oracle WebServer開發包包括下列PL/SQL包:
  
  超文本過程 (HTP)
  一個超文本過程 在HTML文檔中生成包含與其名字相對應的HTML標記的一行。例如,htp.anchor過程生成一個錨標記。HTP包是三者之中最常用的包。 超文本函數 (HTF)
  
  一個超文本函數返回與其名字相應的HTML標記。然而, 因為HTML標記不能通過Web Agent,所以不能直接調用HTF函數本身。HTF函數的輸出必須通過htp.PRint,才能真正成為HTML文檔的一部分。所以,下面一行:
          htp.print(htf.italic(''Title''));
  功能上等價于 :
          htp.italic(''Title'');
  每個超文本函數(HTF)有一個相對應的超文本過程(HTP)。所以HTF函數通常僅用于編程時需要嵌套調用的情況,例如:
          htp.header(1,htf.italic(''Title''));
  此例中,''htf.italic''將生成如下字符串:
          Title
  該字符串傳給過程''htp.header''后,在格式化的HTML文檔中將出現如下行:
         

Title


  OWA Utilities (OWA_UTIL) OWA實用程序一個有用的實用過程和函數的集合。他們的目的包括從在HTML頁上打印一個符號標記到簡便地把Oracle表格式化為HTML格式。
   
  OWA
  一個僅供Oracle Web Agent自己調用的過程集合。此包中的任何子程序都不能在用戶開發的PL/SQL中直接調用。
  
  4.1 安裝Oracle WebServer開發者工具箱
  
  開發者工具箱的安裝,使用OWA服務治理表格。在服務建立和修改頁面上均有是否安裝開發者工具箱的檢查框選擇。選擇它并提交表格將做如下事情:
  
  將CONNECT和RESOURCE角色授權給OWA數據庫用戶。
  
  執行SQL腳本OWAINS.SQL,該文件可以在OWS治理目錄下找到。若手動運行,應使用 SQL*DBA或Server Manager。若想在SQL*Plus里運行,看腳本頭去找步驟。
  
  腳本 OWAINS.SQL 將安裝開發者工具箱的所有包。
   
  優化多服務的安裝
  假如你的站點有多個Web Agent服務, 你可以按照下列步驟來最小化存儲空間的占用量并增強PL/SQL的性能:
   
  1.在一個數據庫用戶的模式下安裝開發者工具箱,這個用戶就是工具箱的擁有者。
   
  2.從其他Web Agent服務的OWA數據庫用戶的模式下刪除工具箱的PL/SQL包,假如
  你已經安裝了這些包的話。
  connect /
  drop package HTF; 
  drop package HTP; 
  drop package OWA_UTIL; 
  drop package OWA;
  3. 向其他Web Agent服務的OWA數據庫用戶授與在這些PL/SQL包上的EXECUTE權限。
  connect /
  grant execute on HTF to ; 
  grant execute on HTP to ; 
  grant execute on OWA_UTIL to ; 
  grant execute on OWA to ;
  4. 在所有的OWA數據庫用戶中建立工具箱PL/SQL包的同義詞。
  connect /
  create synonym HTF for .HTF; 
  create synonym HTP for .HTP; 
  create synonym OWA_UTIL for .OWA_UTIL; 
  create synonym OWA for .OWA;
  Security Note 安全要點
  PL/SQL 過程以PL/SQL代碼的創建者的權限運行。
對于Developer''s Toolkit, 這只關系到owa_util包. 兩個子程序, showsource和tableprint,存取用戶的數據。此包上的執行權限只能授給答應訪問owa_util擁有者的表,視圖和PL/SQL存儲代碼的擁護。
  
  假如你的安裝要考慮安全問題,為每個OWA數據庫用戶安裝獨立的owa_util包。
  
  作此事的腳本如下:
  
  PUBUTIL.SQL
  PRIVUTIL.SQL
  它們都在OWS治理目錄下,應按所列的順序執行。
  List Tags 列表標記
  List tags allow you to display information in any of the following ways:
  
  ordered: these lists have numbered items
  unordered: these lists have bullets to mark each item
  definition: these lists alternate a term with its definition
  Note: All the hypertext procedures (HTP) shown in this section are also available as hypertext functions (HTF).
  
  htp.listHeader
  語法 htp.listHeader (ctext, cattributes);
  作用 Prints an HTML tag at the beginning of the list
  參數 ctext in varchar2
  cattributes in varchar2 DEFAULT NULL
  Generates ctext
  
  htp.listItem
  語法 htp.listItem (ctext, cclear, cdingbat, csrc, cattributes);
  作用 Prints an HTML tag that formats a listed item.
  參數 ctext in varchar2 DEFAULT NULL
  cclear in varchar2 DEFAULT NULL
  cdingbat in varchar2 DEFAULT NULL
  csrc in varchar2 DEFAULT NULL
  cattributes in varchar2 DEFAULT NULL
  Generates
  • ctext
      
      htp.ulistOpen
      語法 htp.ulistOpen (cclear, cwrap, cdingbat, csrc, cattributes);
      作用 Prints an HTML tag that is used to open an unordered list that presents listed items separated by white space and marked off by bullets.
      參數 cclear in varchar2 DEFAULT NULL
      cwrap in varchar2 DEFAULT NULL
      cdingbat in varchar2 DEFAULT NULL
      csrc in varchar2 DEFAULT NULL
      cattributes in varchar2 DEFAULT NULL
      Generates

        
        htp.ulistClose
        語法 htp.ulistClose;
        作用 Prints an HTML tag that ends the unordered list.
        參數 none
        Generates

      
      htp.olistOpen
      語法 htp.olistOpen (cclear, cwrap, cattributes);
      作用 Prints an HTML tag that is used to open an ordered list that presents listed items marked off with numbers.
      參數 cclear in varchar2 DEFAULT NULL
      cwrap in varchar2 DEFAULT NULL
      cattributes in varchar2 DEFAULT NULL
      Generates

        
        htp.olistClose
        語法 htp.olistClose;
        作用 Prints an HTML tag that ends an ordered list.
        參數 none
        Generates

      
      htp.dlistOpen
      語法 htp.dlistOpen (cclear, cattributes);
      作用 Prints an HTML tag that starts a definition list
      參數 cclear in varchar2 DEFAULT NULL
      cattributes in varchar2 DEFAULT NULL
      Generates

      
      htp.dlistClose
      語法 htp.dlistClose
      作用 Prints an HTML tag that Ends a definition list
      參數 none
      Generates

      
      htp.dlistDef
      語法 htp.dlistDef (ctext, cclear, cattributes);

      作用 Prints an HTML tag that is used to insert terms, and their corresponding definitions in an indented list format. The htp.dlistTerm must immediately follow this tag.
      參數 ctext in varchar2 DEFAULT NULL
      clear in varchar2 DEFAULT NULL
      cattributes in varchar2 DEFAULT NULL
      Generates
    ctext
      
      htp.dlistTerm
      語法 htp.dlistTerm (ctext, cclear, cattributes);
      作用 Prints an HTML tag used to insert the definition term inside the definition list. This tag must immediately follow the htp.dlistDef.
      參數 ctext in varchar2 DEFAULT NULL
      cclear in varchar2 DEFAULT NULL
      cattributes in varchar2 DEFAULT NULL
      Generates
    ctext
      
      htp.menulistOpen
      語法 htp.menulistOpen;
      作用 Prints an HTML tag that begins a list that presents one line per item, and appears more compact than an unordered list. The htp.listItem will follow this tag.
      參數 none
      Generates
      
      htp.menulistClose
      語法 htp.menulistClose;
      作用 Prints an HTML tag that ends a menu list.
      Paramenters none
      Generates

      
      htp.dirlistOpen
      語法 htp

  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 彝良县| 天柱县| 南通市| 泽州县| 昭平县| 濉溪县| 上林县| 宜兰县| 阿鲁科尔沁旗| 库尔勒市| 三明市| 轮台县| 漳平市| 肇庆市| 苍溪县| 红原县| 建水县| 皮山县| 华安县| 剑阁县| 和顺县| 成都市| 盈江县| 南丰县| 新巴尔虎左旗| 广水市| 安康市| 虞城县| 东莞市| 武穴市| 隆安县| 平安县| 泽州县| 青铜峡市| 清新县| 法库县| 化德县| 津市市| 昌邑市| 金溪县| 潢川县|