Aaronlong31

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            12 Posts :: 3 Stories :: 17 Comments :: 0 Trackbacks

          2010年8月9日 #

          常見錯(cuò)誤號(hào)對(duì)照表

          MySQL error code SQLSTATE code Error message

          1011 HY000 Error on delete of '%s' (errn %d)
          1021 HY000 Disk full (%s); waiting for someone to free some space . . .
          1022 23000 Can't write; duplicate key in table '%s'
          1027 HY000 '%s' is locked against change
          1036 HY000 Table '%s' is read only
          1048 23000 Column '%s' cannot be null
          1062 23000 Duplicate entry '%s' for key %d
          1099 HY000 Table '%s' was locked with a READ lock and can't be updated
          1100 HY000 Table '%s' was not locked with LOCK TABLES
          1104 42000 The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
          1106 42000 Incorrect parameters to procedure '%s'
          1114 HY000 The table '%s' is full
          1150 HY000 Delayed insert thread couldn't get requested lock for table %s
          1165 HY000 INSERT DELAYED can't be used with table '%s' because it is locked with LOCK TABLES
          1242 21000 Subquery returns more than 1 row
          1263 22004 Column set to default value; NULL supplied to NOT NULL column '%s' at row %ld
          1264 22003 Out of range value adjusted for column '%s' at row %ld
          1265 1000 Data truncated for column '%s' at row %ld
          1312 0A000 SELECT in a stored program must have INTO
          1317 70100 Query execution was interrupted
          1319 42000 Undefined CONDITION: %s
          1325 24000 Cursor is already open
          1326 24000 Cursor is not open
          1328 HY000 Incorrect number of FETCH variables
          1329 2000 No data to FETCH
          1336 42000 USE is not allowed in a stored program
          1337 42000 Variable or condition declaration after cursor or handler declaration
          1338 42000 Cursor declaration after handler declaration
          1339 20000 Case not found for CASE statement
          1348 HY000 Column '%s' is not updatable
          1357 HY000 Can't drop a %s from within another stored routine
          1358 HY000 GOTO is not allowed in a stored program handler
          1362 HY000 Updating of %s row is not allowed in %s trigger
          1363 HY000 There is no %s row in %s trigger
          posted @ 2010-08-11 11:13 Aaronlong31 閱讀(853) | 評(píng)論 (0)編輯 收藏

          之前一個(gè)監(jiān)視應(yīng)用的好工具JavaMelody,功能十分齊全,這次介紹個(gè) 
          稍微小點(diǎn)的,專門為TOMCAT 而設(shè)計(jì)的。下面講解其用法: 

          1 下載: 
          http://www.lambdaprobe.org/downloads/1.7/probe.1.7b.zip 
          2 解壓縮后,把probe.war放到TOMCAT的webapps下,設(shè)置server.xml 
          的context 
          3 設(shè)置用戶如下,在tomcat_user.xml中 
             vi /usr/local/tomcat/conf//tomcat-users.xml 

          <?xml version='1.0' encoding='utf-8'?> 
          <tomcat-users> 
                  <role rolename="manager"/> 
                  <role rolename="standard"/> 
                  <role rolename="tomcat"/> 
                  <role rolename="admin"/> 
                  <role rolename="role1"/> 
                  <user username="tomcat" password="tomcat" roles="tomcat"/> 
                  <user username="both" password="tomcat" roles="tomcat,role1"/> 
                  <user username="probe" password="probe" roles="admin,manager"/> 
                  <user username="role1" password="tomcat" roles="role1"/> 
          </tomcat-users> 

          4 設(shè)置環(huán)境變量,獲取服務(wù)器狀態(tài) 
          # vi /etc/profile 
          JAVA_OPTS=-Dcom.sun.management.jmxremote 
          export JAVA_OPTS 

          5 重啟動(dòng)服務(wù)器 
          6 輸入http://localhost/probe/,輸入用戶名和密碼 
          7 即可進(jìn)入,這里比較精彩的是對(duì)內(nèi)存的監(jiān)視,動(dòng)態(tài)顯示了JVM的內(nèi)存圖表
          posted @ 2010-08-09 12:51 Aaronlong31 閱讀(398) | 評(píng)論 (0)編輯 收藏

          設(shè)置每天8:50開機(jī),要是9:15電腦還沒人使用.就自動(dòng)關(guān)機(jī).
          計(jì)算機(jī)啟動(dòng)時(shí)按“Delete”鍵進(jìn)入BIOS界面。
          在BIOS設(shè)置主界面中選擇“Power Management Setup”菜單,
          Resume By Alarm 值設(shè)成Enabled
          再在”Date (of Month) Alarm”和“Time (hh:mm:ss) Alarm”中設(shè)定開機(jī)的日期和時(shí)間。
          如果把“Date”設(shè)為0,則默認(rèn)為每天定時(shí)開機(jī)。
          設(shè)置好后按“F10“保存設(shè)置就可以了,機(jī)器會(huì)重新啟動(dòng),設(shè)置成功。
          自動(dòng)登錄
          單擊“開始/運(yùn)行”,輸入“rundll32 netplwiz.dll,UsersRunDll”
          按回車鍵后彈出“用戶帳戶”窗口
          然后取消選定“要使用本機(jī),用戶必須輸入用戶名和密碼”選項(xiàng),單擊確定
          在彈出的對(duì)話框中輸入你想讓電腦每次自動(dòng)登錄的賬戶和密碼即可。
          自動(dòng)關(guān)機(jī)
          1.控制面板>管理工具>服務(wù)
          雙擊名稱列為 Task Scheduler 的記錄,把啟動(dòng)類型設(shè)為自動(dòng),再點(diǎn)啟動(dòng)按鈕,再保存.
          再從運(yùn)行中輸入
          at 9:15 /every:M,T,W,Th,F,S,Su shutdown -s -f -t 300 -c "快要停電了,取消關(guān)機(jī)命令shutdown -a"
          第天9:15 執(zhí)行關(guān)機(jī),有300秒的等待時(shí)間。
          posted @ 2010-08-09 12:45 Aaronlong31 閱讀(415) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 孟津县| 凤城市| 丰宁| 宜君县| 宣武区| 清流县| 临泽县| 葫芦岛市| 长葛市| 天峻县| 彩票| 兰州市| 贡觉县| 辽中县| 米林县| 屏山县| 临湘市| 龙海市| 黑龙江省| 中阳县| 南岸区| 长乐市| 岳普湖县| 广汉市| 黑龙江省| 彰化市| 黎川县| 恭城| 盖州市| 汝南县| 武山县| 大余县| 罗田县| 体育| 泰来县| 石门县| 灵山县| 资中县| 襄城县| 乐平市| 兴化市|