1、UNION会去掉重复的纪录,这个是怎么实现的
2、怎样查看ORACLE隔离级别,我用的PL/SQL DEVELOPER,
文档中说
Use the following methods of the oracle.jdbc.OracleConnection interface to get and set the level:•getTransactionIsolation: Gets this connection's current transaction isolation level.•setTransactionIsolation: Changes the transaction isolation level, using one of the TRANSACTION_* values.这个怎么用,要用一门语言调用这个方法么3、server process编译一条sql语句用的时间和他从磁盘调数据到data buffer cache中,那个用的时间少

解决方案 »

  1.   

    默认是read commited.
    可以通过alter session set ISOLATION_LEVEL = {SERIALIZABLE | READ COMMITTED}来更改.
      

  2.   

    怎么查看阿,公司的数据库,我电脑上只有一个PL/SQL DEVELOPER工具
    oracle版本是10g
      

  3.   

    自己测试下就可以确认.
    开两个session,对同一个无主键表做insert,如果可以同时insert 就是read commited,否则就是SERIALIZABLE 
      

  4.   

    Transaction Isolation Levels and Access Modes
    Read-only connections are supported by the Oracle server, but not by the Oracle JDBC drivers.For transactions, the Oracle server supports only the TRANSACTION_READ_COMMITTED and TRANSACTION_SERIALIZABLE transaction isolation levels. The default is TRANSACTION_READ_COMMITTED. Use the following methods of the oracle.jdbc.OracleConnection interface to get and set the level:getTransactionIsolation: Gets this connection's current transaction isolation level.setTransactionIsolation: Changes the transaction isolation level, using one of the TRANSACTION_* values.
      

  5.   

    getTransactionIsolation
    这个怎么用,jdbc调用么
      

  6.   

    Use the following methods of the oracle.jdbc.OracleConnection interface to get and set the leve
    上面写的很清楚
      

  7.   

    Base table of v$transaction. Four bits of ktcxbflg column, exposed as v$transaction.flag, are explained in v$fixed_view_definition. Metalink Mark Bobak and Melissa Holman explain the bit for isolation level. Since v$transaction is empty without a transaction, you can directly query x$ktcxb to find sessions with serializable isolation level: select * from v$session where taddr in (select ktcxbxba from x$ktcxb where bitand(ktcxbflg,268435456) <> 0). Other bits of ktcxbflg not shown in v$fixed_view_definition are: bit 1 read write and read committed, 4(?) read only, 13 using private strand (Ref).
      

  8.   

    就会第一个问题
    去掉重复的很简单 类似与distinct
      

  9.   

    可以用group by,分组后相同的数据就被归并了
    如果想知道oracle内部逻辑,就不好查了 不过估计是存储过程
    将查询结果做分析,
    for i 1..n loop
    select col into var from table where filter
    if(var not in 查询结果集)
    查询结果集.add(var)
    处理完把结果返回,就是我们看到的distinct