<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    cuiyi's blog(崔毅 crazycy)

    記錄點滴 鑒往事之得失 以資于發展
    數據加載中……

    firebird技巧和錯誤分析與總結

    1)
    Cmd >> isql localhost/3050:path/cxcdata.fdb -user sysdba -pass masterkey
    Error >>
    Statement failed, SQLCODE = -902

    Unable to complete network request to host "localhost".
    -Failed to establish a connection.
    -No connection could be made because the target machine actively refused it.

    Use CONNECT or CREATE DATABASE to specify a database
    Solution>>
    check whether service or application of firebird start or not

    2)
    Scenario>>Using EMS Data Export for Interbase/Firebird
    Error>>

    Solution>>windows\system32\drivers\etc目錄下的services文件中添加
                    gds_db 3050/tcp

    3) windows下firebird對db路徑要求:與firebird直接交互的fdb文件必須增加前綴:localhost/3050:[driver]/{[path]/}[.fdb file]
        無論是isql 還是 gbak
        比如 test.fdb 在d:\dbfile\firebird\test.fdb
        connect db: cmd>> isql localhost/3050:d:/dbfile/firebird/test.fdb -user [username] -pass [userpass]
        backup db: cmd>> gbak -B localhost/3050:d:/dbfile/firebird/test.fdb test.fbk -user [username] -pass [userpass]
        restore db: cmd>> gbak -C test.fbk localhost/3050:d:/dbfile/firebird/test.fdb -user [username] -pass [userpass]
        NOTE: only the fdb file should add the localhost constraint
       
       
    4) db installed in d:/dbfile/firebird/test.fdb
        connect way 1>>  isql localhost/3050:d:/dbfile/firebird/test.fdb -user [username] -pass [userpass]
        connect way 2>> isql localhost/3050:db -user [username] -pass [userpass]
                                   add this line : db = d:/dbfile/firebird/test.fdb  in aliases.conf, no need restart firebird service

    5)about amention of db's path for different customer
    we offten configure db path in apps using jdbc:firebird:localhost:[path]/[db file]   like jdbc:firebird:localhost: d:/dbfile/firebird/test.fdb
    As you know, in most time we install db in different folder for different customers; so we must keep re-compile apps or modify war/jar/ear every time.

    So basis on this issue,  we can change to configure db using firebird self file called aliases.conf
    like this form (basis my local configuration):
    test.fdb = d:/dbfile/firebird/test.fdb

    so now using this form jdbc:firebird:localhost:test.fdb  in  apps
    I tried both windows and linux, it works;

    posted on 2007-11-03 17:06 crazycy 閱讀(3566) 評論(0)  編輯  收藏 所屬分類: DBMS

    主站蜘蛛池模板: 91免费国产视频| 成人片黄网站色大片免费观看APP| 成全高清在线观看免费| 亚洲中文字幕无码永久在线| 亚洲三区在线观看无套内射| 一本一道dvd在线观看免费视频| 免费日韩在线视频| 曰韩无码AV片免费播放不卡| 亚洲真人日本在线| 噜噜噜亚洲色成人网站∨| 亚洲宅男精品一区在线观看| 亚洲一级免费毛片| 亚洲黄页网在线观看| 日韩a级毛片免费观看| 无码 免费 国产在线观看91| 国产国拍亚洲精品mv在线观看 | 一二三四免费观看在线视频中文版 | 午夜国产精品免费观看| 亚洲一区二区三区乱码A| 国产精品免费在线播放| 亚洲人成色77777| 最近中文字幕电影大全免费版| 亚洲国产成a人v在线观看| 日本人护士免费xxxx视频| 一个人看的www视频免费在线观看| 亚洲国产精品无码专区在线观看| 曰批全过程免费视频网址| 亚洲欧洲成人精品香蕉网| 久久久久免费看成人影片| 中文字幕第一页亚洲| 亚洲国产精品免费视频| 国产V亚洲V天堂无码| 无码国产精品一区二区免费I6| 亚洲精品无码mⅴ在线观看| 国产专区一va亚洲v天堂| 巨波霸乳在线永久免费视频| 国产成人综合亚洲绿色| 免费的涩涩视频在线播放| 亚洲手机中文字幕| 免费看国产一级片| 在线免费中文字幕|