ablog

不器用で落着きのない技術者のメモ

2010-01-28から1日間の記事一覧

Oracle Database で統計情報がいつ収集されたかざっくり確認する SQL

yoheia/show_last_analyzed.sql at master · yoheia/yoheia · GitHub set pageszie 50000 set linesize 200 col owner for a10 select 'DBA_TABLES' "DICTIONARY", owner, to_char(min(last_analyzed),'YYYY-MM-DD HH24:MI:SS') "MIN", to_char(max(last_ana…

Tomcat 上のWebアプリケーションが作るディレクトリやファイルのパーミッションを制御する方法

起動スクリプト作成 vim /etc/init.d/tomcat #!/bin/bash # # chkconfig: 35 80 20 # description:Tomcat 6.0.24 # Source function library. . /etc/init.d/functions export JAVA_HOME=/usr/local/jdk1.6.0_18 export CATALINA_HOME=/usr/local/tomcat6.0.…

OSユーザのプライマリグループを変更する

# uname -a SunOS solaris101 5.10 Generic_137138-09 i86pc i386 i86pc # id tomcat uid=604(tomcat) gid=602(tomcat) # usermod -g oinstall tomcat # id tomcat uid=604(tomcat) gid=501(oinstall)