Oracle 로그 그룹 커서 세 션 매개 변수 조정

7350 단어 서버
조정 redolog_크기 로그 크기
       
select member from v$logfile;
/u01/app/oracle/oradata/dbname/redo03.log
/u01/app/oracle/oradata/dbname/redo02.log
/u01/app/oracle/oradata/dbname/redo01.log
       
select group#,members,bytes/1024/1024,status from v$log;
    GROUP#    MEMBERS BYTES/1024/1024 STATUS
---------- ---------- --------------- ----------------
	 1	    1		  200 INACTIVE
	 2	    1		  200 INACTIVE
	 3	    1		  200 CURRENT
             
alter database drop logfile group 1;
mv /u01/app/oracle/oradata/dbname/redo01.log /tmp
alter database add logfile group 1 ('/u01/app/oracle/oradata/dbname/redo01.log') size 512M;
alter database drop logfile group 2;
mv /u01/app/oracle/oradata/dbname/redo02.log /tmp
alter database add logfile group 2 ('/u01/app/oracle/oradata/dbname/redo02.log') size 512M;
     
select group#,members,bytes/1024/1024,status from v$log;
              
alter system switch logfile; --              
     
select group#,members,bytes/1024/1024,status from v$log;
             
alter database drop logfile group 3;-- INACTIVE     
mv /u01/app/oracle/oradata/dbname/redo03.log /tmp
alter database add logfile group 3 ('/u01/app/oracle/oradata/dbname/redo03.log') size 512M;
     
select group#,bytes/1024/1024,members,status from v$log;

커서, 세 션 조정
open_cursors :(   :300)1000
session_cached_cursors :(   :50)300
show parameter open_cursors; --  session(  )          cursor(  )
show parameter session_cached_cursors; --  session             cursor
select count(*) from v$open_cursor; --             cursor  
alter system set open_cursors=1000 scope=spfile;
alter system set session_cached_cursors=300 scope=spfile;

좋은 웹페이지 즐겨찾기