軟件管理沒有特效藥讀書筆記

          ??????? 為什么興趣小組沒有什么報酬,但?卻比大多數商業公司的團隊更有效。為什么open source 在軟件行業中成為了一只推動發展的生力軍。這是因為參與者都具有相當的熱情和愛好,只根據能力和狀態的不同去分配任務,則會讓一切變得簡單。這一切都取決于一個根本的原因--人。軟件項目的管理根本是人的管理而不是過程管理。
          ???????? 在商業軟件項目中,完成項目的時間應該是安排的程序員制定的,而不是項目經理或者其它人。完成高質量的任務的并不是將任務分配下去,而是自己自己搶這去做。因為每個程序員都渴望成功,這個成功可以是貢獻,也可以是分享。當軟件項目有機的切割成不同的任務時,每個任務最適合的人員就是那些有興趣,有決心把它做到最好。
          ???????? 在工業時代,我們需要管理的是工人的四肢;科技時代,我們需要管理的是程序員的敏捷頭腦和激發一切的主管能動性。軟件凝聚的是程序的智慧,而不是程序員的汗水。
          ??????? 一個項目團隊,就像是一個臨時家庭,作為一個團隊的管理者,你是知道團隊中每個人的生日,你是否知道團隊中每個人的上班路線,你是否知道團隊中每一個人的愛好。越來越的團隊開始用兄弟連的的例子去描述一個團隊。一個團隊的核心是每個團隊成員而不是管理者。

          posted @ 2006-08-03 13:23 康文 閱讀(287) | 評論 (0)編輯 收藏

          oracle 學習

          1 用plsql 連接 plsql cyts_cc/cyts_cc@cyts
          2 sqlplusw 打開oracle sql*plus 界面。
          3 plsql 中commond window 實現了sql*plus 的所有功能。
          4 programmer window 和 test windown 實現了編程和調試的功能。
          5 pl/sql 的結構
          ? create or replace procedure test
          ? declare
          ??? c_name varchar(5);
          ? begin
          ??? select name into c_name from emp where id=@no;
          ??? dbms output.put_line('客戶名稱:'||c_name);
          ? exception
          ??? when no_data_found then
          ??? dbms_output.put_line('請輸入正確雇員號!');
          end test;


          輸入no得值

          6 匿名塊/命名塊
          命名塊主要是為了在嵌套結構是區分層次
          <<outter>>
          declare
          ??? c_name varchar(5);
          ? begin
          ???? <<inner>>
          ???? begin
          ???????? ....
          ???? end;
          ??? select name into c_name from emp where id=@no;
          ??? dbms output.put_line('客戶名稱:'||c_name);
          ? exception
          ??? when no_data_found then
          ??? dbms_output.put_line('請輸入正確雇員號!');
          end test;
          7 調用 存儲過程
          ?exec pro_name
          ?call pro_name
          8 調用函數
          ?call anual_income into income
          9 保用于邏輯作合相關的過程和函數,包括包頭,和包體,在包頭中只定義存儲過程or函數,在包體中
          ? 定義實現。
          10 標量變量
          varchar2(n)max 4000 char(n) max 2000 number(p,s) p 總的位長,s 小數電后面的位長
          date ,timestamp,long(類似于varchar) max 32760,long raw 二進制 32760
          binary_fload 和 binary_double oralce 10g 用于高精度計算高速計算。
          11 定義標量變量
          ?c_max_value constant number(3,2):=5.5
          ?constant,default,not null,:=
          12 %type
          13 復合變量
          ?1 pl/sql 記錄 類似于高級語言中的結構
          ?? type emp_record_type is record(
          ???? name emp.ename%type
          ???? salary emp.sal%type);
          ?? emp_record emp_record_type;
          ? 2 pl/sql 表,類似于高級語言中的數組,單其下標可以為負,且元素個數沒有上下限。
          ??? declare
          ???? type ename_table_type is table of emp.ename%type
          ???? index by binary_integger;
          ???? ename_table ename_table_type;
          ??? select ename into ename_table(-1) from emp where &enomo='1118'
          ? 3 嵌套表結構還有些看不懂,先放下,以后在看
          ?14 參照變量
          ?? 參照變量是指由于存放指針的變量。通過石油參量變量可以使用相同的對象。
          ?? 1 ref cursor
          ??? 當顯示游標時,需要在定義顯示游標時制定響應的select語句,當使用游標變量時,在定義是不需
          ?? 指定select 語句,而是在游標指定select 語句
          ??? declare
          ???? type c1 is ref cursor
          ???? emp_cursor c1
          ??? ...............
          ??? begin
          ???? ipen emp_cursor for select ename,sal from emp where deptno=10;
          ???? loop
          ????? fetch emp_sursor into v_ename,v_sal;
          ????? exit when emp_cursor%not found
          ????? ...........
          ????? end loop;
          ??? close emp_sursor;
          ?? 2 ref obj_type
          ??? 可以引用對象類型
          ??? create or replace type home_type as object(
          ?????? street varchar2(50),city varchar2(20),
          ?????? owner varchar(10)
          ??? );
          ??? create table homes of home_type;
          ??? insert into homes values('222','3333');
          ???
          ??? create table person(
          ????? id number(6) primary key,
          ????? name varchar2(10),
          ????? addr ref home_type
          ??? );
          ??? inert into person select 1,'22',ref(p) from homes p where p.owner='22'
          ?14 lob 變量
          ??? lob 分為內部lob(clob,blob,nclob ) 和外部lob(bfile),內部lob 存在數據庫內,支持事務。外部
          ??? lob 存在外部,不支持事務?

          posted @ 2006-08-02 17:56 康文 閱讀(184) | 評論 (0)編輯 收藏

          常用的oracle 命令,總是忘,呵呵


          1
          導出:
          EXP.EXE cits_cc/cits_cc@cits direct=y buffer=327680 file=D:\cits.dmp owner=(cits_cc,cits_stat)

          導入:
          IMP.EXE cits_cc/cits_cc@cits file=D:\cits.dmp fromuser=(cits_cc,cits_stat) touser=(cits_cc,cits_stat)

          2
          連接數據庫
          sqlpuls /nolog
          connect / as sysdba

          3 查看實例
          select * from v$instance

          4 啟動數據庫

          ?startup nomount 啟動實例但不加載數據
          ?startup mount?? 啟動實例加載數據,但不大開數據庫
          ?startup???????? 啟動實例,加載數據,打開數據庫
          ?
          ?alter database mount 為實例加載數據
          ?alter database open? 從加載狀態進入打開狀態

          ?startup force 強行啟動數據庫

          5 受限狀態 只有dba 或同時具有create sesson 和restricted session 可以訪問數據庫
          ?在受限狀態下一般的用戶(create session)不能訪問,但是dba 可以進行數據庫的維護,數據的導入導出
          ?startup restrict 啟動進入受限狀態
          ?alter system disable restricted session 恢復正常狀態
          ?alter system enable restricted session? 進入受限狀態

          6 只讀數據庫
          ? alter database open read only
          ? alter database open read write

          7 關閉數據庫
          ?shutdonw normal???????? 正常關閉
          ?shutdown immediate????? 立即關閉
          ?shutdown transactional? 事務型關閉
          ?shutdown abort????????? 立即中止

          8 靜默狀態(只有dba 可以訪問)
          ?alter system? quiesce restricted 進入靜默狀態
          ?alter system unquiesce?????????? 退出靜默狀態
          ?select active_status from v$instance 查詢靜默狀態

          9 掛起狀態(暫停所有io操作)
          ?alter system suspend 掛起
          ?alter system resume? 恢復
          ?select database_status from v$instance 查詢狀態

          9 創建數據庫 dbca

          posted @ 2006-07-13 14:00 康文 閱讀(409) | 評論 (1)編輯 收藏

          經常忘的jdbc數據庫連接

          package test;

          import java.io.UnsupportedEncodingException;
          import java.sql.Connection;
          import java.sql.DriverManager;
          import java.sql.ResultSet;
          import java.sql.SQLException;
          import java.sql.Statement;

          public class Oracletest {

          ?/**
          ? * @param args
          ? * @throws SQLException
          ? * @throws ClassNotFoundException
          ? * @throws UnsupportedEncodingException
          ? */
          ?public static void main(String[] args) throws SQLException, ClassNotFoundException, UnsupportedEncodingException {
          ??// TODO Auto-generated method stub
          ??String className,url,uid,pwd;
          ???? className = "oracle.jdbc.driver.OracleDriver";
          ???? url?????? = "jdbc:oracle:thin:@172.16.5.135:1521:oratest";
          ???? uid?????? = "cyts_user";
          ???? pwd?????? = "1";
          ???? Class.forName(className);
          ???? Connection cn = DriverManager.getConnection(url,uid,pwd);
          ???? String sql="select customer_name from customer_info";
          ???? Statement sm = cn.createStatement();
          ???? ResultSet rs=sm.executeQuery(sql);
          ???? if(rs.next()){
          ???? ?System.out.println(rs.getString(1));
          ???? ?String old=rs.getString(1);
          ???? ?String newStr = new String(old.getBytes("ISO8859_1"), "GB2312");
          ???? ?System.out.println(newStr);
          ???? }
          ?}
          ?
          }

          很簡單,單如經常忘,呵呵,都是這么多orm 讓我變得建忘了

          posted @ 2006-07-05 11:59 康文 閱讀(223) | 評論 (0)編輯 收藏

          僅列出標題
          共7頁: 上一頁 1 2 3 4 5 6 7 
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 西乌珠穆沁旗| 洪湖市| 晋州市| 肥东县| 临邑县| 万山特区| 台州市| 大渡口区| 吕梁市| 马龙县| 温泉县| 长春市| 乳源| 房山区| 昔阳县| 望江县| 吉安县| 徐汇区| 伊通| 平陆县| 石棉县| 湖南省| 象山县| 察哈| 弥渡县| 汪清县| 新丰县| 瑞安市| 理塘县| 左云县| 古田县| 湾仔区| 班戈县| 五寨县| 昌邑市| 忻城县| 张家川| 沙河市| 车致| 庆安县| 潜山县|