服务器 频道

oracle表空间不足问题的解决

   【IT168 服务器学院】1. ORA-01536:表空间不足 问题的解决
  ORA-01536: space quota exceeded for tablespace
  
  方法一:SQL> alter user test quota unlimited on testtablespace;
   
  User altered.
  
  
  方法二:SQL> alter user test default tablespace testtablespace
    2  quota 0 on system
    3  quota 500M on testtablespace
    4  /
   
  User altered.
  
  方法三:SQL> GRANT UNLIMITED TABLESPACE TO test;
   
  Grant succeeded.
  
  
  参考:http://www.mbsky.com/InfoView/Article_3855.html
  
  2.java.sql.SQLException: ORA-00020: maximum number of processes (150) exceeded
  
  解决办法:
  加大oracle的连接数
  SQL> alter system set processes=300 scope=spfile;
   
  System altered.
  
  重起数据库后该设定才会生效。
  
  SQL> shutdown immediate  ;
  Database closed.
  Database dismounted.
  ORACLE instance shut down.
  SQL> startup;   
  ORACLE instance started.
   
  Total System Global Area  252777592 bytes
  Fixed Size                   451704 bytes
  Variable Size             218103808 bytes
  Database Buffers           33554432 bytes
  Redo Buffers                 667648 bytes
  Database mounted.
  Database opened.
  SQL> show parameter processes;
   
  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  aq_tm_processes                      integer     1
  db_writer_processes                  integer     1
  job_queue_processes                  integer     10
  log_archive_max_processes            integer     2
  processes                            integer     300
  
0