• 10g 升级到11g 失效对象2则


    ########SAMPLE 0

    Invalid X_$ Views & Synonyms After Upgrading to 11g (文档 ID 878623.1)

    Those views and synonyms should be dropped in 11g as they do not exist.

    This can be shown in a testcase using DBCA to create a new 11.1.0.7 database instance.
    The new instance shows:


    SQL> SELECT OWNER, OBJECT_NAME, OBJECT_TYPE, STATUS
    FROM DBA_OBJECTS
    WHERE OBJECT_NAME LIKE '%$KSLEI%';

    no rows selected

    So drop the views and any synonyms related to $kslei as they are not used in 11g.


    The same applies when upgrading to 11GR2, e.g. after upgrading from 10.2.0.3 to 11.2.0.1, the following objects are invalid


    OWNER OBJECT_NAME OBJECT_TYPE
    ------ ----------- -----------
    SYS X_$KGLLK VIEW
    PUBLIC X$KGLLK SYNONYM


    Trying to compile the view X_$KGLLK fails like below:


    SQL> alter view SYS.X_$KGLLK compile;

    Warning: View altered with compilation errors.

    SQL> select text from dba_errors where name='X_$KGLLK';

    ORA-00904: "KGLLKHTB": invalid identifier


    As of 11g, the column KGLLKHTB no longer exists in the table X$KGLLK and the public synonym X$KGLLK is no longer defined:


    SQL> desc sys.X$KGLLK
    Name Null? Type
    ----------------------------------------- -------- --------------------------
    ADDR RAW(8)
    INDX NUMBER
    INST_ID NUMBER
    KGLLKADR RAW(8)
    KGLLKUSE RAW(8)
    KGLLKSES RAW(8)
    KGLLKSNM NUMBER
    KGLLKHDL RAW(8)
    KGLLKPNC RAW(8)
    KGLLKPNS RAW(8)
    KGLLKCNT NUMBER
    KGLLKMOD NUMBER
    KGLLKREQ NUMBER
    KGLLKFLG NUMBER
    KGLLKSPN NUMBER
    KGLNAHSH NUMBER
    KGLLKSQLID VARCHAR2(13)
    KGLHDPAR RAW(8)
    KGLHDNSP NUMBER
    USER_NAME VARCHAR2(30)
    KGLNAOBJ VARCHAR2(60)
    KGLLKEST DATE
    KGLLKEXC NUMBER
    KGLLKCTP VARCHAR2(64)


    SQL> select owner, synonym_name, table_name
    from all_synonyms
    where synonym_name='X$KGLLK';

    no rows selected


    Given the above, both the public synonym X$KGLLK and invalid view SYS.X_$KGLLK can be dropped in 11G.

    ###############SAMPLE 2:

  • 相关阅读:
    VMware下安装Ubuntu虚拟机
    py3+urllib+bs4+反爬,20+行代码教你爬取豆瓣妹子图
    老铁,这年头得玩玩这个:Git基本操作【github】
    本地Git与GitHub服务器建立连接(SSH方式通信)
    python开启httpserver服务在自动化测试中的一个小运用
    python测试webservice接口
    Xcache3.2.0不支持php7.0.11
    Nginx设置alias别名目录访问phpmyadmin
    CentOS 7.2.1511编译安装Nginx1.10.1+MySQL5.7.15+PHP7.0.11
    CentOS平滑更新nginx版本
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/10745648.html
Copyright © 2020-2023  润新知