ALTER TABLE SRVMONITOR_NODE ADD(RES_VIEW_CONF CLOB default '<?xml version="1.0" encoding="GBK"?>' NOT NULL);

declare
longliteral clob:='<?xml version="1.0" encoding="GBK"?>
<res_type_ids>
 <res_type_id name="WINDOWS" view="true">
  <comperf_type name="WINDOW_RSP_TIM" view="true"/>
  <comperf_type name="WINDOW_BURTHEN" view="true"/>
  <comperf_type name="WINDOW_DISK_USE_RATE" view="true"/>
  <comperf_type name="WINDOW_PROCESS_USE" view="true"/>
  <comperf_type name="WINDOW_NEWCARD_FLUX" view="true"/>
  <comperf_type name="WINDOW_FILE_BURTHEN" view="true"/>
  <comperf_type name="WINDOW_DEV_IO_BURTHEN" view="true"/>
 </res_type_id>
 <res_type_id name="LINUX" view="true">
  <comperf_type name="LINUX_RSP_TIM" view="true"/>
  <comperf_type name="LINUX_BURTHEN" view="true"/>
  <comperf_type name="LINUX_DISK_USE_RATE" view="true"/>
  <comperf_type name="LINUX_PROCESS_USE" view="true"/>
  <comperf_type name="LINUX_NEWCARD_FLUX" view="true"/>
  <comperf_type name="LINUX_DEV_IO_BURTHEN" view="true"/>
 </res_type_id>
 <res_type_id name="SOLARIS" view="true">
  <comperf_type name="SOLARIS_RSP_TIM" view="true"/>
  <comperf_type name="SOLARIS_BURTHEN" view="true"/>
  <comperf_type name="SOLARIS_DISK_USE_RATE" view="true"/>
  <comperf_type name="SOLARIS_PROCESS_USE" view="true"/>
  <comperf_type name="SOLARIS_NEWCARD_FLUX" view="true"/>
 </res_type_id>
 <res_type_id name="AIX" view="true">
  <comperf_type name="AIX_RSP_TIM" view="true"/>
  <comperf_type name="AIX_BURTHEN" view="true"/>
  <comperf_type name="AIX_DISK_USE_RATE" view="true"/>
  <comperf_type name="AIX_PROCESS_USE" view="true"/>
  <comperf_type name="AIX_NEWCARD_FLUX" view="true"/>
  <comperf_type name="AIX_DEV_IO_BURTHEN" view="true"/>
  <comperf_type name="AIX_NETSTAT_FLUX" view="true"/>
  <comperf_type name="AIX_FILE_BURTHEN" view="true"/>
 </res_type_id>
 <res_type_id name="CISCO" view="true">
  <comperf_type name="CISCO_RSP_TIM" view="true"/>
  <comperf_type name="CISCO_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="CISCO_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="CISCO_INTERFACE_FLUX" view="true"/>
  <comperf_type name="CISCO_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="AVAYA" view="true">
  <comperf_type name="AVAYA_RSP_TIM" view="true"/>
  <comperf_type name="AVAYA_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="AVAYA_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="AVAYA_INTERFACE_FLUX" view="true"/>
  <comperf_type name="AVAYA_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="SEC-STANDARD" view="true">
  <comperf_type name="SEC-STANDARD_RSP_TIM" view="true"/>
  <comperf_type name="SEC-STANDARD_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="SEC-STANDARD_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="SEC-STANDARD_INTERFACE_FLUX" view="true"/>
  <comperf_type name="SEC-STANDARD_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="NETSCREEN" view="true">
  <comperf_type name="NETSCREEN_RSP_TIM" view="true"/>
  <comperf_type name="NETSCREEN_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="NETSCREEN_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="NETSCREEN_INTERFACE_FLUX" view="true"/>
  <comperf_type name="NETSCREEN_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="CHECKPOINT" view="true">
  <comperf_type name="CHECKPOINT_RSP_TIM" view="true"/>
  <comperf_type name="CHECKPOINT_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="CHECKPOINT_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="CHECKPOINT_INTERFACE_FLUX" view="true"/>
  <comperf_type name="CHECKPOINT_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="TOMCAT" view="true">
  <comperf_type name="TOMCAT_RSP_TIM" view="true"/>
  <comperf_type name="TOMCAT_JVM" view="true"/>
 </res_type_id>
 <res_type_id name="APACHE" view="true">
  <comperf_type name="APACHE_RSP_TIM" view="true"/>
  <comperf_type name="APACHE_REQUEST_LOAD" view="true"/>
  <comperf_type name="APACHE_DEAL_LOAD" view="true"/>
  <comperf_type name="APACHE_TASK_LOAD" view="true"/>
  <comperf_type name="APACHE_CPU_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="MS-STANDARD" view="true">
  <comperf_type name="MS-STANDARD_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="RESIN" view="true">
  <comperf_type name="RESIN_CPU_BURTHEN" view="true"/>
  <comperf_type name="RESIN_POOL_BURTHEN" view="true"/>
  <comperf_type name="RESIN_RATIO_BURTHEN" view="true"/>
  <comperf_type name="RESIN_WEBAPP_BURTHEN" view="true"/>
 </res_type_id>
 <res_type_id name="NORTEL" view="true">
  <comperf_type name="NORTEL_RSP_TIM" view="true"/>
  <comperf_type name="NORTEL_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="NORTEL_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="NORTEL_INTERFACE_FLUX" view="true"/>
  <comperf_type name="NORTEL_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="WEBLOGIC" view="true">
  <comperf_type name="WEBLOGIC_RSP_TIM" view="true"/>
  <comperf_type name="WEBLOGIC_JVM" view="true"/>
  <comperf_type name="WEBLOGIC_JDBC" view="true"/>
  <comperf_type name="WEBLOGIC_JTA" view="true"/>
  <comperf_type name="WEBLOGIC_WEB" view="true"/>
  <comperf_type name="WEBLOGIC_THREAD" view="true"/>
  <comperf_type name="WEBLOGIC_SERVLET" view="true"/>
  <comperf_type name="WEBLOGIC_EJB" view="true"/>
 </res_type_id>
 <res_type_id name="SNMP" view="true">
  <comperf_type name="SNMP_COMPERF" view="true"/>
 </res_type_id>
 <res_type_id name="IIS" view="true">
  <comperf_type name="IIS_BASEINFO" view="true"/>
  <comperf_type name="IIS_CONN_BURTHEN" view="true"/>
  <comperf_type name="IIS_TRANSFERBYTES_BURTHEN" view="true"/>
  <comperf_type name="IIS_TRANSFERFILES_BURTHEN" view="true"/>
  <comperf_type name="IIS_USERS_BURTHEN" view="true"/>
  <comperf_type name="IIS_REQUEST_BURTHEN" view="true"/>
 </res_type_id>
 <res_type_id name="HUAWEI" view="true">
  <comperf_type name="HUAWEI_RSP_TIM" view="true"/>
  <comperf_type name="HUAWEI_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="HUAWEI_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="HUAWEI_INTERFACE_FLUX" view="true"/>
  <comperf_type name="HUAWEI_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="HP-UX" view="true">
  <comperf_type name="HPUX_RSP_TIM" view="true"/>
  <comperf_type name="HPUX_BURTHEN" view="true"/>
  <comperf_type name="HPUX_DISK_USE_RATE" view="true"/>
  <comperf_type name="HPUX_PROCESS_USE" view="true"/>
  <comperf_type name="HPUX_NEWCARD_FLUX" view="true"/>
 </res_type_id>
 <res_type_id name="MYSQL" view="true">
  <comperf_type name="MYSQL_RSP_TIM" view="true"/>
  <comperf_type name="MYSQL_DBLOAD" view="true"/>
  <comperf_type name="MYSQL_DB_USE" view="true"/>
 </res_type_id>
 <res_type_id name="JMS" view="true">
  <comperf_type name="JMS_RSP_TIM" view="true"/>
  <comperf_type name="JMS_COMPERF" view="true"/>
 </res_type_id>
 <res_type_id name="LDAP" view="true">
  <comperf_type name="LDAP_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="TCP" view="true">
  <comperf_type name="TCP_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="NW-STANDARD" view="true">
  <comperf_type name="STANDARD_RSP_TIM" view="true"/>
  <comperf_type name="STANDARD_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="STANDARD_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="STANDARD_INTERFACE_FLUX" view="true"/>
  <comperf_type name="STANDARD_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="HARBOUR" view="true">
  <comperf_type name="HARBOUR_RSP_TIM" view="true"/>
  <comperf_type name="HARBOUR_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="HARBOUR_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="HARBOUR_INTERFACE_FLUX" view="true"/>
  <comperf_type name="HARBOUR_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="Sybase" view="true">
  <comperf_type name="SYBASE_RSP_TIM" view="true"/>
  <comperf_type name="SYBASE_COMPERF" view="true"/>
 </res_type_id>
 <res_type_id name="WEBSPHERE" view="true">
  <comperf_type name="WEBSPHERE_RSP_TIM" view="true"/>
  <comperf_type name="WEBSPHERE_JDBC" view="true"/>
  <comperf_type name="WEBSPHERE_JVM" view="true"/>
  <comperf_type name="WEBSPHERE_WEB" view="true"/>
  <comperf_type name="WEBSPHERE_THREADPOOL" view="true"/>
  <comperf_type name="WEBSPHERE_SERVLET" view="true"/>
  <comperf_type name="WEBSPHERE_TRANS" view="true"/>
  <comperf_type name="WEBSPHERE_J2C" view="true"/>
  <comperf_type name="WEBSPHERE_EJB" view="true"/>
  <comperf_type name="WEBSPHERE_CACHE" view="true"/>
 </res_type_id>
 <res_type_id name="IBMMQ" view="true">
  <comperf_type name="IBMMQ_RSP_TIM" view="true"/>
  <comperf_type name="IBMMQ_COMPERF" view="true"/>
 </res_type_id>
 <res_type_id name="HTTP" view="true">
  <comperf_type name="HTTP_COMPERF_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="MSSQL" view="true">
  <comperf_type name="MSSQL_DBLOAD" view="true"/>
  <comperf_type name="MSSQL_DBFILE_USE" view="true"/>
  <comperf_type name="MSSQL_DBSIZE" view="true"/>
  <comperf_type name="MSSQL_FILE" view="true"/>
 </res_type_id>
 <res_type_id name="SYBASE" view="true">
  <comperf_type name="SYBASE_DB_LOAD" view="true"/>
  <comperf_type name="SYBASE_SEGMENT" view="true"/>
 </res_type_id>
 <res_type_id name="DNS" view="true">
  <comperf_type name="DNS_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="FTP" view="true">
  <comperf_type name="FTP_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="CISCO-PIX" view="true">
  <comperf_type name="CISCO-PIX_RSP_TIM" view="true"/>
  <comperf_type name="CISCO-PIX_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="CISCO-PIX_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="CISCO-PIX_INTERFACE_FLUX" view="true"/>
  <comperf_type name="CISCO-PIX_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="DB2" view="true">
  <comperf_type name="DB2_DBLOAD" view="true"/>
  <comperf_type name="DB2_TABLESPACE" view="true"/>
  <comperf_type name="DB2_TABLESPACE_CONT" view="true"/>
  <comperf_type name="DB2_BUFFERPOLL" view="true"/>
  <comperf_type name="DB2_LOCK" view="true"/>
  <comperf_type name="DB2_SORT" view="true"/>
 </res_type_id>
 <res_type_id name="FREEBSD" view="true">
  <comperf_type name="FREEBSD_RSP_TIM" view="true"/>
  <comperf_type name="FREEBSD_BURTHEN" view="true"/>
  <comperf_type name="FREEBSD_DISK_USE_RATE" view="true"/>
  <comperf_type name="FREEBSD_PROCESS_USE" view="true"/>
  <comperf_type name="FREEBSD_NEWCARD_FLUX" view="true"/>
 </res_type_id>
 <res_type_id name="FOUNDRY" view="true">
  <comperf_type name="FOUNDRY_RSP_TIM" view="true"/>
  <comperf_type name="FOUNDRY_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="FOUNDRY_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="FOUNDRY_INTERFACE_FLUX" view="true"/>
  <comperf_type name="FOUNDRY_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="ORACLE" view="true">
  <comperf_type name="ORACLE_RSP_TIM" view="true"/>
  <comperf_type name="ORACLE_SGA" view="true"/>
  <comperf_type name="ORACLE_ROLL" view="true"/>
  <comperf_type name="ORACLE_DATAFILE" view="true"/>
  <comperf_type name="ORACLE_RATIO" view="true"/>
  <comperf_type name="ORACLE_TABLESPACE" view="true"/>
 </res_type_id>
 <res_type_id name="DOMINO" view="true">
  <comperf_type name="DOMINO_RSP_TIM" view="true"/>
  <comperf_type name="DOMINO_BASIC" view="true"/>
  <comperf_type name="DOMINO_SRV_LOAD" view="true"/>
  <comperf_type name="DOMINO_COPY" view="true"/>
  <comperf_type name="DOMINO_EMAIL" view="true"/>
  <comperf_type name="DOMINO_BUFF" view="true"/>
 </res_type_id>
 <res_type_id name="HTTPS" view="true">
  <comperf_type name="HTTPS_RSP_TIM" view="true"/>
 </res_type_id>
 <res_type_id name="DLINK" view="true">
  <comperf_type name="DLINK_RSP_TIM" view="true"/>
  <comperf_type name="DLINK_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="DLINK_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="DLINK_INTERFACE_FLUX" view="true"/>
  <comperf_type name="DLINK_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="INFORMIX" view="true">
  <comperf_type name="INFORMIX_DBLOAD" view="true"/>
  <comperf_type name="INFORMIX_IO_RATE" view="true"/>
  <comperf_type name="INFORMIX_DATASPACE_RATE" view="true"/>
  <comperf_type name="INFORMIX_SHM" view="true"/>
  <comperf_type name="INFORMIX_CHKPT" view="true"/>
  <comperf_type name="INFORMIX_TRANS" view="true"/>
  <comperf_type name="INFORMIX_LOCK" view="true"/>
  <comperf_type name="INFORMIX_DISK" view="true"/>
  <comperf_type name="INFORMIX_LOG" view="true"/>
  <comperf_type name="INFORMIX_SORT" view="true"/>
 </res_type_id>
 <res_type_id name="REDGIANT" view="true">
  <comperf_type name="REDGIANT_RSP_TIM" view="true"/>
  <comperf_type name="REDGIANT_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="REDGIANT_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="REDGIANT_INTERFACE_FLUX" view="true"/>
  <comperf_type name="REDGIANT_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="TOPSEC" view="true">
  <comperf_type name="TOPSEC_RSP_TIM" view="true"/>
  <comperf_type name="TOPSEC_DEVICE_BURTHEN_CPU" view="true"/>
  <comperf_type name="TOPSEC_DEVICE_BURTHEN_RAM" view="true"/>
  <comperf_type name="TOPSEC_INTERFACE_FLUX" view="true"/>
  <comperf_type name="TOPSEC_INTERFACE_DOWN_RATE" view="true"/>
 </res_type_id>
 <res_type_id name="TONGWEB" view="true">
  <comperf_type name="TONGWEB_RSP_TIM" view="true"/>
  <comperf_type name="TONGWEB_CONN_INFO" view="true"/>
  <comperf_type name="TONGWEB_CONN_POOL" view="true"/>
 </res_type_id>
 <res_type_id name="TUXEDO" view="true">
  <comperf_type name="TUXEDO_RSP_TIM" view="true"/>
  <comperf_type name="TUXEDO_COMPERF" view="true"/>
 </res_type_id>
</res_type_ids>';
loblong binary_integer:=length(longliteral);
type lobloc_type is table of srvmonitor_node.res_view_conf%type;
lobloc lobloc_type;
begin
execute immediate 'select res_view_conf from srvmonitor_node for update' bulk collect into lobloc;
for i in lobloc.first..lobloc.last
loop
dbms_lob.write(lobloc(i), loblong, 1, longliteral);
end loop;
end;

动态批量初始化CLOB字段相关推荐

  1. Oracle存储过程中使用游标来批量解析CLOB字段里面的xml字符串:

    摘要:之前在项目中使用到了Oracle数据库中通过触发器去调用存储过程执行数据解析并Update到对应的数据表中,但是,经过一段时间的测试使用发现,如果job那天停掉了,然后你再重新新建job的话,这 ...

  2. oracle怎么从大字段中取节点,Oracle数据库 获取CLOB字段存储的xml格式字符串指定节点的值...

    参照: Oracle存储过程中使用游标来批量解析CLOB字段里面的xml字符串 背景:在写存储过程时,需要获取表单提交的信息.表单信息是以xml格式的字符串存储在colb类型的字段dataxml中,如 ...

  3. oracle创建视图类型为日期,oracle创建视图包含clob字段,报错:数据类型不一致:应为-,但却获得CLOB...

    在oracle中创建视图的时候,语句中包含有clob类型的字段.视图创建语句大概如下: CREATE OR REPLACE FORCE VIEW "T_PROJECTS" (&qu ...

  4. oracle修改clob值,oracle 修改 clob字段,查询clob字段

    给你处理clob的方法 处理CLOB字段的动态PL/SQL 2001-03 动态PL/SQL,对CLOB字段操作可传递表名table_name,表的唯一标志字段名field_id,clob字段名fie ...

  5. Mysql 查询blob数据很慢,关于oracle中clob字段查询慢的问题及解决方法

    关于oracle中clob字段查询慢的问题及解决方法 最近在用oracle的过程中用到了对blob字段模糊查询的问题,对oracle来说,我并不是高手,找了很多的资料终于能够查出来了. blob字段直 ...

  6. java clob 释放_在Java中处理CLOB字段

    [字段类型:blob,clob,nclob 说明:三种大型对象(LOB),用来保存较大的图形文件或带格式的文本文件,如Miceosoft Word文档,以及音频.视频等非文本文件� ...] 1.or ...

  7. oracle存clob,oracle数据库里保存clob字段-Oracle

    public void addStatements(StatementsBean statementsBean) { try { Session session = this.getSession() ...

  8. json数据解析_ORACLE中Clob字段在不同数据库间自由地飞翔——SQL+JSON字段解析

    在不同的oracle数据库间复制一张包含clob字段的表,你会收到如下礼物: select cloba from tab_test@link_test; 肿么办? 1.to_char select t ...

  9. 探究oracle clob字段是怎样存储的

    clob字段存储的是文本,假设存储少于4000个字节则clob字段会和记录存放在一起,假设存储超过4000个字节,则不会与记录存放在一起. 值得注意的是,这里的4000个字节并非等同于varchar2 ...

最新文章

  1. 微信小程序----调用用户信息
  2. 【青少年编程】【四级】从小到大排序
  3. 常见的块状和内联元素
  4. 【深度学习】引用次数在15000次以上的都是什么神仙论文?
  5. TCP发送接口(如send(),write()等)的返回值与成功发送到接收端的数据量无直接关系
  6. [六]RabbitMQ-客户端源码之AMQCommand
  7. PAT甲级 -- 1009 Product of Polynomials (25 分)
  8. 如何在 ASP.NET Core 中使用 HttpClientFactory ?
  9. 生命大发的意义 BY 几米
  10. Spring Boot配置MinIO(实现文件上传、下载、删除)
  11. 当你遇到modifying layer that is being finalized的时候怎么办?
  12. qml入门学习(六):Component组件
  13. MMO游戏数值框架概述(偏模拟方向)
  14. Win32汇编学习笔记(罗云彬)(二)
  15. mybatis plugins_[Mybatis]-[基础支持层]-插件-多个插件执行顺序
  16. 正在启动python的代码补全客户端_让 python 命令行也可以自动补全
  17. 一道高等代数常见习题的自然延伸
  18. JSP内置对象session和application
  19. Java计算机毕业设计电费管理系统源码+系统+数据库+lw文档
  20. JAVA 使用 itextpdf 构建 PDF

热门文章

  1. 企业财务制度二--会计科目名称和编号(一)1301 待摊费用(转载)
  2. 二元函数对xy同时求导_如何对反三角函数进行求导和积分?
  3. 京东618是失守还是主动放弃开辟新战略,今年的店庆不是618
  4. CTF-APK经典题目-移动安全
  5. 软件测试——10款目前最热门的测试工具,总有一款适合你
  6. php日期24格式,php日期格式转换
  7. java中将ISO8601格式转换为Date类型
  8. openlayers学习——1、openlayers加载天地图
  9. kettle如何3秒内写入100万条数据到Redis
  10. filmora怎么设置中文_Filmora 常见问题