pl/sql在一段时间内不连接db后,就来回失去连接,还要重新连接db
太烦人了,有人知道怎么修改这个连接的时间吗?是修改本地还是server。
最好能把时间改为无限,就是我的pl/sql不退出就不短线。呵呵。

解决方案 »

  1.   

    如果想你说的,是连接上以后,一段时间不连接就失去连接的话,你可以通过SQL>alter system set resoruce_limit=true;  --这句话对于你来说,应该没有什么意义了,你现在已经有limit了,所以这个应该已经是开启了。SQL>alter profile profilename limit idle_time 20; --20分钟, 如果是没有限制的话就unlimited
      

  2.   

    SQL>alter system set resoruce_limit=true;  --这句话对于你来说,应该没有什么意义了,你现在已经有limit了,所以这个应该已经是开启了。 SQL>alter profile profilename limit idle_time 20; --20分钟, 如果是没有限制的话就unlimited
    这2个红色的提示找不到,估计应该是个完整的路径才可以把,他是在什么目录下面的,
    呵呵。谢谢。
      

  3.   


    第一个resource_limit 是系统中的普通参数,第二个就不知道了
      

  4.   

    SQL>alter system set resoruce_limit=true; 
    ora-02065 提示为 alter system 的options(日文翻译过来不知道是不是他。呵呵)无效
      

  5.   


    第一个是启动参数SQL>alter system set resource_limit=true;拼错了, resource 不是resoruce 最好加上scope=spfile如下
    SQL>alter system set resource_limit=true scope=spfile;第二个
    SQL>alter profile profilename limit idle_time 20; --这里的profilename是我自己起的,你需要找到你的user的profile,默认的profile名字为default或者你用create profile XXXXX limit idle_time 20;新建一个。