我目前使用的是oracle10.2.01,就是安装没有升级的那个版本,后来出现了一个BUG,查了一下资料,10.2.04版本已经解决了这个问题,但是我升级后,始终出现ora-12514这个错误,在google上查了很多资料,但是始终没有解决,请问各位大师,有谁有过类似的遭遇?(最好10g升级后出现类似的问题),谢谢了先

解决方案 »

  1.   


    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor 
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
     
    Action: - Wait a moment and try to connect a second time.- Check which services are currently known by the listener by executing: lsnrctl services <listener name>- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.- Check for an event in the listener.log file.
     From:http://ora-12514.ora-code.com/
    我升级没有遇到这样的问题,我升级后只发现有MDSYS Spatial invalid.而且升级了4个库,每个库都有这个问题,那是solaris,不知道其他版本的可有这问题..MDSYS Spatial De-install 就解决了..升级完系统要检查下有无无效对象..select 'ALTER ' || OBJECT_TYPE || ' '||owner||'.' || OBJECT_NAME || ' COMPILE;' 
    from all_objects where status = 'INVALID' 
    and object_type in ('PACKAGE','FUNCTION','PROCEDURE', 'TABLE', 'VIEW', 'SEQUENCE', 'TRIGGER'); select 'ALTER PACKAGE ' || OWNER||'.'|| OBJECT_NAME || ' COMPILE body;' 
    from ALL_objects where status = 'INVALID' and object_type in ('PACKAGE BODY'); 
      

  2.   

    类似于这种tns方面的错误,实在确实是很烦人的.
    先看看你的动态注册情况吧.lsnrctl services
      

  3.   

    升级的主要原因是存在ora-00600错误,始终解决不了。
      

  4.   

    show一下你的ora--600 以及相关的trace
      

  5.   

    楼主打完补丁升级后还需要升级每个实例升级实例用oracle自带的Database Upgrade Assistant工具
      

  6.   

    非常感谢12楼的,用Database Upgrade Assistant工具升级实例后解决问题。
    马上结贴!