<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

    主站蜘蛛池模板: 97免费人妻无码视频| 免费一区二区无码视频在线播放| 两个人的视频www免费| 国产精品美女自在线观看免费| 亚洲第一综合天堂另类专| 日韩伦理片电影在线免费观看| 欧美激情综合亚洲一二区| 国产18禁黄网站免费观看| 成人免费视频一区二区| 亚洲自偷自偷偷色无码中文| a级在线免费观看| 久久国产亚洲高清观看| 国产成人免费午夜在线观看| 日韩亚洲国产综合高清| 全黄a免费一级毛片人人爱| eeuss影院ss奇兵免费com| 亚洲AV日韩AV永久无码免下载| 亚洲视频免费在线看| 亚洲性无码AV中文字幕| 亚洲国产精品专区在线观看| 国产线视频精品免费观看视频| 亚洲情a成黄在线观看动漫尤物| 91免费国产精品| 亚洲高清毛片一区二区| 亚洲婷婷国产精品电影人久久| 美女在线视频观看影院免费天天看| 中文字幕亚洲精品资源网| 成人午夜免费福利| 中文在线免费不卡视频| 久久久久亚洲精品日久生情 | 亚洲一区视频在线播放| 伊人免费在线观看| 亚洲资源最新版在线观看| 免费国产综合视频在线看 | 亚洲AV电影院在线观看| 麻豆最新国产剧情AV原创免费| 美女裸体无遮挡免费视频网站| 亚洲成av人片天堂网| 午夜一级毛片免费视频| 最近免费mv在线观看动漫| 99亚偷拍自图区亚洲|