ORACLE一个连接      
  create database link mylink   
connect to albert identified by Albert4615  
using 'lnzd';select * from P_GROUP@mylink; 由于mylink下还有一个数据连接@query,如何通过@mylink查询@query连接下的一个表,假如表名为temp,
查询语句应该如何写?

解决方案 »

  1.   

    没明白什么意思如果是还有其他数据库的话 再建个dblink咯
      

  2.   

    本地库->@mylink->@query@query是建立在@mylink上的,
    现在网络权限问题,本地库不能直接访问@query
      

  3.   

    如果mylink能访问query吗?如果本地不能访问query估计就查询不到它的东西
      

  4.   

    现在就是想本地查询@query里的数据,
      

  5.   

    在identified里面创建@query的同义词。
    或者针对这个查询建一个view等等。
      

  6.   

    在lnzd创建视图test_view ,select * from T@query本地执行 select * from test_view@mylink 报错ORA-00600: 内部错误代码, 参数: [kpnxdcbk-2], [], [], [], [], [], [], [], [], [], [], []
    00600. 00000 -  "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
    *Cause:    This is the generic internal error number for Oracle program
               exceptions. This indicates that a process has encountered an
               exceptional condition.
    *Action:   Report as a bug - the first argument is the internal error number
      

  7.   


    Oracle 内部错误。 。