<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 閱讀(3577) 評論(0)  編輯  收藏 所屬分類: DBMS

    主站蜘蛛池模板: 亚洲精品国产自在久久| 99亚偷拍自图区亚洲| 亚洲福利电影一区二区?| A片在线免费观看| 亚洲精品美女久久777777| 最新亚洲成av人免费看| 成全视频免费高清 | 亚洲精品福利网站| 欧洲人免费视频网站在线| 最近2019免费中文字幕6| 国产jizzjizz免费看jizz| 亚洲va久久久噜噜噜久久| 精品免费视在线观看| 亚洲精品人成在线观看| 7x7x7x免费在线观看| 国产精品亚洲自在线播放页码| 日韩亚洲综合精品国产| 亚洲国产一区二区三区| 女同免费毛片在线播放| 久久夜色精品国产亚洲| 久久亚洲AV成人无码国产最大| 成人精品一区二区三区不卡免费看| 亚洲精品国产免费| 亚洲深深色噜噜狠狠网站| 国产成人在线观看免费网站| 久久亚洲精品无码AV红樱桃| 一个人看的www视频免费在线观看 一个人看的免费观看日本视频www | 久久精品国产亚洲av麻| 久久精品成人免费国产片小草| 免费无码肉片在线观看| 亚洲综合图色40p| 久久久久国产精品免费网站| 亚洲一区二区三区免费视频| 免费观看午夜在线欧差毛片| 国产日韩AV免费无码一区二区| 亚洲国产成人精品无码久久久久久综合 | 久久久久久毛片免费看| 久久久久久亚洲精品成人| 色www永久免费视频| 亚洲国产综合91精品麻豆| 久久综合AV免费观看|