iSQL*Plus下不需要Commit!
为何由这样的区别呢?

解决方案 »

  1.   

    在环境里面可以设置,是否自动commit
      

  2.   

    GerryYang(轻尘) :
    如何设置?
    还由一个问题:方案和表空间由多大区别?
      

  3.   

    在%oraclehome%/sqlplus/admin/下有一个glogin.sql文件是否可以做相关的修改,从而将相关的设置加入,而不必每次启动SQLPLUS都这样做?可行吗?该如何做?
      

  4.   

    可行,直接加一行set autocommit on
      

  5.   

    也就是说只用做一次set 就可以使用自己喜欢的SQL*Plu运行模式!怎样做呢?
      

  6.   

    编辑oracle\ora81\sqlplus\admin\glogin.sql--
    --  Copyright (c) Oracle Corporation 1988, 1999.  All Rights Reserved.
    --
    --  SQL*Plus Global Login startup file.
    --
    --  Add any sqlplus commands here that are to be executed when a user
    --  starts SQL*Plus on your system-- Used by Trusted Oracle
    column ROWLABEL format A15-- Used for the SHOW ERRORS command
    column LINE/COL format A8
    column ERROR    format A65  WORD_WRAPPED-- Used for the SHOW SGA command
    column name_col_plus_show_sga format a24-- Defaults for SHOW PARAMETERS
    column name_col_plus_show_param format a36 heading NAME
    column value_col_plus_show_param format a30 heading VALUE-- For backward compatibility
    set pagesize 14-- Defaults for SET AUTOTRACE EXPLAIN report
    column id_plus_exp format 990 heading i
    column parent_id_plus_exp format 990 heading p
    column plan_plus_exp format a60
    column object_node_plus_exp format a8
    column other_tag_plus_exp format a29
    column other_plus_exp format a44set autocommit on
      

  7.   

    如果你不commit的话,别的用户是看不到的。每个事务处理的都是不同的。