zoukankan      html  css  js  c++  java
  • MapViewer提示错误之Cannot read USER_SDO_TILE_ADMIN_TASKS view from database

    警告信息:  

      <MSG_TEXT>Cannot read USER_SDO_TILE_ADMIN_TASKS view from database.(XXXX)</MSG_TEXT>

    解决方案:

      该警告的意思是用户无法找到自己对应的USER_SDO_TILE_ADMIN_TASKS视图,该视图的作用是可以自动恢复长时间瓦片管理请求。

    Automatic Long Tile Administrative Request Recovery

    Long running tile admin requests that are interrupted due to Fusion Middleware or MapViewer shutdown will be able to resume automatically after MapViewer is restarted. (You do not need to do anything to enable this feature, other than creating the new database view USER_SDO_TILE_ADMIN_TASKS if it does not already exist)(User’s Guide for Oracle MapViewer)

      由于中件间或者MapViewer的突然关闭打断了正在运行的长时间瓦片管理请求可以在MapViewer重新启动的时候自动恢复运行。(你除了在不存在USER_SDO_TILE_ADMIN_TASKS视图的时候创造它之外,不需要做其他任何事情)。

      那么如何创建该视图,在MAPVIEWER_HOME/web/WEB-INF/admin/mcsdefinition.sql中存放着创建表sdo_tile_admin_tasks_table和创建视图USER_SDO_TILE_ADMIN_TASKS的代码。

    根据以上出现错误的用户名建立对应的表和视图,示例代码如下:

    复制代码
    create table mdsys.sdo_tile_admin_tasks_table(
      SDO_OWNER VARCHAR2(32) default sys_context('userenv', 'CURRENT_SCHEMA'),
      id number primary key,
      description varchar2(200), 
      submitted_by varchar2(100) not null, 
      cached_map_name varchar2(32) not null,
      type varchar2(10) not null,
      bound sdo_geometry,
      zoom_levels sdo_number_array,
      schedule clob,
      status varchar2(20),
      progress clob);
    复制代码
    Create or replace  View mdsys.USER_SDO_TILE_ADMIN_TASKS AS
    SELECT ID, DESCRIPTION, submitted_by, cached_map_name, type, bound, zoom_levels, schedule, status, progress 
    FROM mdsys.SDO_TILE_ADMIN_TASKS_TABLE
    WHERE sdo_owner = sys_context('userenv', 'CURRENT_SCHEMA');

      执行完成,警告消除。

  • 相关阅读:
    洛谷 P2979 [USACO10JAN]奶酪塔Cheese Towers
    celery -2
    【express】
    ↗☻【HTML5秘籍 #BOOK#】第8章 使用CSS3
    -_-#【Dom Ready / Dom Load】
    【jQuery】
    ♫【Avalon】
    【兼容】IE下PNG色差
    ↗☻【HTML5秘籍 #BOOK#】第4章 Web表单
    洛谷—— P1328 生活大爆炸版石头剪刀布
  • 原文地址:https://www.cnblogs.com/cleverxy/p/2473247.html
Copyright © 2011-2022 走看看