Create snapshot SNAP_SHOT1 as select * from b@c;
Alter snapshot SNAP_SHOT1 refresh fast Start with sysdate next sysdate with primary key;这两句是快照创建语句,以前用的好好的,一天突然坏了。下面找到的最后一次快照出错的日志:
*** 2011-01-29 00:04:21.506
*** SESSION ID:(2031.8938) 2011-01-29 00:04:21.506
*** CLIENT ID:() 2011-01-29 00:04:21.506
*** SERVICE NAME:(SYS$USERS) 2011-01-29 00:04:21.506
*** MODULE NAME:() 2011-01-29 00:04:21.506
*** ACTION NAME:() 2011-01-29 00:04:21.506
 
ORA-12012: error on auto execute of job 56
ORA-12170: TNS:Connect timeout occurred
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2537
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2743
ORA-06512: at "SYS.DBMS_IREFRESH", line 685
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1*** 2011-01-29 15:41:17.583
*** SESSION ID:(2031.29674) 2011-01-29 15:41:17.583
*** CLIENT ID:() 2011-01-29 15:41:17.583
*** SERVICE NAME:(SYS$USERS) 2011-01-29 15:41:17.583
*** MODULE NAME:() 2011-01-29 15:41:17.583
*** ACTION NAME:() 2011-01-29 15:41:17.583
 
ORA-12012: error on auto execute of job 56
ORA-12170: TNS:Connect timeout occurred
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2537
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2743
ORA-06512: at "SYS.DBMS_IREFRESH", line 685
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1*** 2011-01-30 23:22:09.486
*** SESSION ID:(2089.5724) 2011-01-30 23:22:09.486
*** CLIENT ID:() 2011-01-30 23:22:09.486
*** SERVICE NAME:(SYS$USERS) 2011-01-30 23:22:09.486
*** MODULE NAME:() 2011-01-30 23:22:09.486
*** ACTION NAME:() 2011-01-30 23:22:09.486
 
ORA-12012: error on auto execute of job 56
ORA-12170: TNS:Connect timeout occurred
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2537
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2743
ORA-06512: at "SYS.DBMS_IREFRESH", line 685
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1搞不明白这个快照一直好好的怎么突然就坏了,并且现在删除的话也删不掉,也不报错,就一直挂起,盼高手帮忙看看,急

解决方案 »

  1.   

    首先检查一下ORA-12170错误:
    ORA-12170: TNS:Connect timeout occurred 
    Cause: The server shut down because connection establishment or communication with a client failed to complete within the allotted time interval. This may be a result of network or system delays; or this may indicate that a malicious client is trying to cause a Denial of Service attack on the server.
    Action: If the error occurred because of a slow network or system, reconfigure one or all of the parameters SQLNET.INBOUND_CONNECT_TIMEOUT, SQLNET.SEND_TIMEOUT, SQLNET.RECV_TIMEOUT in sqlnet.ora to larger values. If a malicious client is suspected, use the address in sqlnet.log to identify the source and restrict access. Note that logged addresses may not be reliable as they can be forged (e.g. in TCP/IP).下面的查询能否正确执行
    select * from b@c;
      ??
      

  2.   

    select * from b@c;可以正确执行。目前这个快照删不掉,也不报错,就那样一直挂着。