日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
在Oracle模式中定義媒體對象有哪些

Oracle中提供的一些相關(guān)媒體對象與過程都是在Oracle模式里去定義建立包含 ORDDicom 列的表。如果你在Oracle模式的相關(guān)操作里存在不解之處的話,你就可以瀏覽以下的文章對其進行了解。

臨武網(wǎng)站制作公司哪家好,找成都創(chuàng)新互聯(lián)公司!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、成都響應(yīng)式網(wǎng)站建設(shè)公司等網(wǎng)站項目制作,到程序開發(fā),運營維護。成都創(chuàng)新互聯(lián)公司2013年至今到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選成都創(chuàng)新互聯(lián)公司。

本教程使用一個包含四個列的簡單表:一個整數(shù)標識符 (id)、一個 ORDSYS.ORDDicom 對象 (dicom)、一個 ORDSYS.ORDImage 對象 (imageThumb) 和另一個ORDSYS.ORDDicom 對象 (anonDicom)。注意,Oracle 提供的所有多媒體對象和過程都在Oracle模式中定義。執(zhí)行以下步驟:

 1.在 SQL*Plus 會話中,執(zhí)行以下命令:

 
 
 
  1. @create_dicom_table  

create_dicom_table.sql代碼如下:

Java代碼

 
 
 
  1. set echo on;   
  2. drop table medical_image_table;   
  3. create table medical_image_table   
  4. (id integer primary key,   
  5. dicom ordsys.orddicom,   
  6. imageThumb ordsys.ordimage,   
  7. anonDicom ordsys.orddicom);   
  8. set echo on;  
  9. drop table medical_image_table;  
  10. create table medical_image_table  
  11. (id integer primary key,  
  12. dicom ordsys.orddicom,  
  13. imageThumb ordsys.ordimage,  
  14. anonDicom ordsys.orddicom);  

導(dǎo)入醫(yī)學(xué)圖像

該主題描述了如何將數(shù)據(jù)庫文件系統(tǒng)中的醫(yī)學(xué)圖像加載到新創(chuàng)建的medical_image_table表中。注意,在大多數(shù)情況下,您希望使用 SQL*Loader 而不是本例所示的Oracle模式中定義中 ORDDicom 導(dǎo)入方法加載數(shù)據(jù)。

創(chuàng)建一個 PL/SQL 過程image_import(),該過程將把一個新行插入medical_image_table,將文件名中的 DICOM 數(shù)據(jù)導(dǎo)入新創(chuàng)建的 ORDDICOM 對象,然后將 DICOM 屬性提取到元數(shù)據(jù)屬性(基于默認映射文檔)和 ORDDICOM 對象的 UID 屬性。注意,默認映射文檔ordcmmp.xml在安裝期間加載。

您可以創(chuàng)建一個自定義映射文檔,并將屬性提取到單獨的 XML 文檔中,但該主題不在本教程的討論范圍內(nèi)。

執(zhí)行以下步驟:

1.在 SQL*Plus 會話中,輸入以下命令:

 
 
 
  1. @create_import_procedure  

create_import_procedure.sql代碼如下:

Java代碼

 
 
 
  1. -- Set Data Model Repository   
  2. execute ordsys.ord_dicom.setDataModel();   
  3. create or replace procedure image_import
    (dest_id number, filename varchar2) is   
  4. dcm ordsys.orddicom;   
  5. begin   
  6. delete from medical_image_table where id 
    = dest_id;   
  7. insert into medical_image_table 
    (id, dicom, imageThumb, anonDicom)   
  8. values (dest_id, ordsys.orddicom
    (‘file’, ‘IMAGEDIR’, filename, 0),   
  9. ordsys.ordimage.init(), ordsys.orddicom())   
  10. returning dicom into dcm;   
  11. dcm.import(1);   
  12. update medical_image_table set dicom=
    dcm where id=dest_id;   
  13. commit;   
  14. end;   
  15. /   
  16. show errors;   
  17. -- Set Data Model Repository  
  18. execute ordsys.ord_dicom.setDataModel();  
  19. create or replace procedure image_import
    (dest_id number, filename varchar2) is  
  20. dcm ordsys.orddicom;  
  21. begin  
  22. delete from medical_image_table where id
     = dest_id;  
  23. insert into medical_image_table
     (id, dicom, imageThumb, anonDicom)  
  24. values (dest_id, ordsys.orddicom
    (‘file’, ‘IMAGEDIR’, filename, 0),  
  25. ordsys.ordimage.init(), ordsys.orddicom())  
  26. returning dicom into dcm;  
  27. dcm.import(1);  
  28. update medical_image_table set dicom=
    dcm where id=dest_id;  
  29. commit;  
  30. end;  
  31. /  
  32. show errors;  

2.現(xiàn)在,您可以執(zhí)行新創(chuàng)建的過程,以導(dǎo)入示例 DICOM 文件。在 SQL*Plus 會話中,輸入以下命令:

Java代碼

 
 
 
  1. execute image_import(1,'179.dcm');   
  2. execute image_import(1,'179.dcm');  

以上就是對,Oracle提供的所有多媒體對象和過程都在Oracle模式中定義中的執(zhí)行步驟相關(guān)的內(nèi)容的介紹,望你會有所收獲。

【編輯推薦】

  1. Oracle優(yōu)化CPU使用的實際操作方案詳解
  2. Oracle Spatial 與 ArcSDE在實際應(yīng)用中的區(qū)別
  3. Oracle宣布GlassFish路線圖 定位為“部門內(nèi)部”使用
  4. Oracle Spatial在實際應(yīng)用中的六大功能體現(xiàn)
  5. Oracle Spatial創(chuàng)建空間索引的實際應(yīng)用介紹

網(wǎng)站題目:在Oracle模式中定義媒體對象有哪些
當(dāng)前URL:http://www.5511xx.com/article/dhecghh.html