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

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

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

    cuiyi's blog(崔毅 crazycy)

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

    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在线免费观看视频| 亚洲精华国产精华精华液| 精品免费久久久久国产一区| 国产无遮挡色视频免费视频| 亚洲中文精品久久久久久不卡| 性生交片免费无码看人| 亚洲国产成人手机在线电影bd | 性做久久久久免费观看| 亚洲hairy多毛pics大全| 好爽好紧好大的免费视频国产| 国产偷国产偷亚洲高清在线| 国产乱人免费视频| 一级做a爱过程免费视| 亚洲女久久久噜噜噜熟女| 精品国产麻豆免费人成网站| 亚洲日韩图片专区第1页| 国产成人精品免费午夜app| 亚洲AV成人无码天堂| 免费看少妇作爱视频| 一级毛片无遮挡免费全部| 亚洲综合熟女久久久30p| 日日麻批免费40分钟无码| 亚洲国产精品yw在线观看| 天堂在线免费观看中文版| 污视频网站在线观看免费| 国产成人精品日本亚洲网站| 91福利视频免费观看| 亚洲人av高清无码| 久久久久亚洲AV成人网人人网站| 久久免费国产精品一区二区| 亚洲av永久无码精品三区在线4| 四虎影永久在线高清免费| 华人在线精品免费观看| 亚洲综合无码无在线观看| 超清首页国产亚洲丝袜| h视频在线观看免费完整版| 男人的天堂av亚洲一区2区| 久久亚洲国产午夜精品理论片| 国产1000部成人免费视频| 国产精品亚洲综合天堂夜夜| 久久久久亚洲精品无码系列|