Как запустить сервер firebird windows 10

Прочитано: 5 084


Прочитано:
5 084

Последующая задача требовала, чтобы на системе будь-то Windows 10 Pro x64 был установлен пакет Firebird и дабы не отклоняться к отсылке на официальный сайт или выражением там все просто, решил для себя оформить просто пошаговый процесс инсталляции Firebird 3.0.4 на Windows 10 Pro x64. В дальнейшем я буду ссылаться на эту заметку.

Шаг №1: Запускаю по исполняемому файлу (Firebird-3.0.4.33054_0_x64.exe) через правый клик мышью с выбором меню «Запуск от имени администратора»

Шаг №2: Выбираю язык установки (Русский) и нажимаю «ОК», соглашаюсь с лицензионным соглашением и нажимаю «Далее», «Далее», папку установки по умолчанию оставляю (C:Program FilesFirebirdFirebird_3_0) и нажимаю «Далее», тип установки выбираю «Полная установка сервера и инструментов разработки»

  • Компоненты сервера: отмечаю галочкой
  • Инструменты разработчика и администратора: отмечаю галочкой
  • Клиентские компоненты: должно быть отмечено галочкой и затемнено.

и нажимаю «Далее», оставляю как есть именование ярлыка в папке меню «Пуск» (Firebird 3.0 (x64)) и нажимаю «Далее», далее самый ответственный шаг — это указать какие дополнительные задачи должны выполниться при установке Firebird:

  • Запуск Firebird в режиме SuperServer
  • Запускать в качестве Службы
  • Автоматически запускать Firebird при каждой загрузке: отмечаю галочкой
  • Копировать клиентскую библиотеку Firebird в каталог <system>: отмечаю галочкой
  • Создать GDS32.DLL для поддержки унаследованных приложений: отмечаю галочкой
  • Разрешить авторизацию предыдущих версий клиента Firebird?: отмечаю галочкой

и нажимаю «Далее», затем следует создать пароль администратора:

  • Пароль SYSDBA: Aa1234567
  • Повторите пароль: Aa1234567

и нажимаю «Далее», «Установить», «Далее» и оставляю отмеченной галочкой настройку «Запустить службу Firebird?” и нажимаю «Завершить».

На этом установка завершена на рабочую станцию, по аналогии шаги и для установки на сервер. Вроде все просто, просто данная заметка будет включена в последующие. С уважением, автор блога Олло Александр aka ekzorchik.


The instructions given below for the installation of Firebird on Windows and Linux should
be sufficient for the vast majority of cases. However, if you experience problems or if you have
special needs not covered here, be sure to read the INSTALLATION NOTES
chapter in the Release Notes. This is especially important if you are upgrading from a previous
version or if there are remnants of an old (and maybe long gone) InterBase or Firebird
installation floating around your system (DLLs, Registry entries, environment
variables…)

Installing the Firebird server

Installation drives

Firebird server – and any databases you create or connect to – must reside on a hard
drive that is physically connected to the host machine. You cannot locate components of the
server, or any database, on a mapped drive, a filesystem share or a network
filesystem.

Note

You can mount a read-only database on a CD-ROM drive but you cannot run Firebird
server from one.

Installation script or program

Although it is possible to install Firebird by a filesystem copying method – such as
untarring” a snapshot build or decompressing a structured .zip archive – it is strongly recommended that you use the
distributed release kit (.exe for Windows, .rpm
for Linux), especially if this is the first time you install Firebird. The Windows
installation executable, the Linux rpm program and the
install.sh script in the official .tar.gz for various Posix platforms all perform some essential
setup tasks. Provided you follow the installation instructions correctly, there should be
nothing for you to do upon completion but log in and go!

Installing on Windows

The Firebird installer lets you choose between Superserver and Classic/SuperClassic.
Each model is fully stable and there is no reason to categorically prefer one to the other.
Of course you may have your own specific considerations. When in doubt, consult the Classic, SuperClassic or Superserver chapter
again.

If you install Firebird under Windows 95/98/ME, uncheck the option to install the Control Panel applet. It doesn’t
work on these platforms. You’ll find a link to a usable applet further down. (Note: the
option to install the applet is only available for Superserver.)

On Windows server platforms – NT, 2000/3/8, XP, Vista and 7 – Firebird will run as a
system service by default, but during the installation you can also choose to let it run as
an application. Non-server Windows systems – 95, 98 and ME – don’t support services; running
as an application is the only option there.

Use the Guardian?

The Firebird Guardian is a utility that monitors the server process and tries to
restart it if it terminates abnormally. The Guardian does not work with Firebird Classic
Server on Windows if run as an application. This is due to a known bug, which may be fixed
later. Currently the Firebird 2.5 installer doesn’t give you the option to include the
Guardian at all with a Classic Server, even if you install it as a
service.

The Guardian works correctly with Superserver, whether run as an application or as a
service.

If you run Firebird as a service on Windows 2000 or newer, the
Guardian is a convenience rather than a necessity, since these operating systems have the
facility to watch and restart services. It is recommended that you keep the Guardian
option on (if possible) in all other situations.

Installing on Linux and other Unix-like platforms

In all cases, read the Release Notes that came with your Firebird package (chapter
Installation Notes, section Posix Platforms).
There may be significant variations from release to release of any Posix operating system,
especially the open source ones. Where possible, the build engineers for each Firebird
version have attempted to document any known issues.

If you have a Linux distribution that supports rpm
installs, consult the appropriate platform documentation for instructions about using
RPM Package Manager. In most distributions you will have the
choice of performing the install from a command shell or through a GUI interface.

For Linux distributions that cannot process rpm programs,
and for Unix flavours for which no .rpm kit is
provided, use the .tar.gz kit. You will find detailed
instructions in the Release Notes.

Shell scripts have been provided. In some cases, the Release Notes may instruct you to
edit the scripts and make some manual adjustments.

Installing multiple servers

Firebird allows the operation of multiple servers on a single machine. It can also run
concurrently with Firebird 1.x or InterBase servers. Setting this up is not a beginner’s task
though. If you need to run multiple servers, consult the Installation
Notes
chapter of the Release Notes,
and have the Firebird 1.5 Release Notes handy too – you will be directed to them at a certain
point during your reading of the Installation Notes.

Testing your installation

If everything works as designed, the Firebird server process will be running on your
server machine upon completion of the installation. It will also start up automatically
whenever you restart your computer.

Before testing the Firebird server itself, it is advisable to verify if the server
machine is reachable from the client at all. At this point, it is assumed that you will use
the recommended TCP/IP network protocol for your Firebird client/server connections.

Notes

  • If you have installed a Classic/SuperClassic Server on Linux/Unix or any Firebird
    server on Windows, it is possible to connect directly to the local server, without using
    a network layer. If you intend to use Firebird for this type of connection only, you can skip the “Pinging the server” section
    below.

  • For information about using the NetBEUI protocol in an all-Windows environment,
    refer to the Network Configuration chapter in the
    Using Firebird manual sold by IBPhoenix, or consult the InterBase
    6 Operations Guide (http://www.ibphoenix.com/files/60OpGuide.zip).

  • Firebird does not support IPX/SPX networks.

Pinging the server

The ping command – available on most systems – is a quick and easy
way to see if you can connect to a server machine via the network. For example, if your
server’s IP address in the domain that is visible to your client is 192.13.14.1, go to a command shell on the client machine and
type the command

substituting this example IP address with the IP address that your server is
broadcasting. If you are on a managed network and you don’t know the server’s IP address,
ask your system administrator. Of course you can also ping the server by its name, if you
know it:

If you are connecting to the server from a local client – that is, a client running on
the same machine as the server – you can ping the virtual TCP/IP loopback server:

ping localhost –or– ping 127.0.0.1

If you have a simple network of two machines linked by a crossover cable, you can set
up your server with any IP address you like except 127.0.0.1 (which is reserved for a local
loopback server) and, of course, the IP address which you are using for your client machine.
If you know the “native” IP addresses of your network cards, and they are
different, you can simply use those.

Once you have verified that the server machine is reachable from the client, you can
go on to the next step.

Checking that the Firebird server is running

After installation, Firebird server should be running:

On Linux or other Unix-like systems:

As a service.

On Windows server systems (NT, 2000/3/8, XP, Vista, 7):

As a service or as an application. Service is default and highly
recommended.

On Windows non-server systems (95, 98, ME):

As an application.

The following sections show you how to test the server in each of these
situations.

Server check: Linux and other Unices

Use the top command in a command shell to inspect the
running processes interactively. If a Firebird Superserver is running, you should see a
process named fbguard. This is the Guardian
process. Further, there will be one main and zero or more child processes named
fbserver.

The following screen shows the output of top, restricted
by grep to show only lines containing the characters
fb:

frodo:/inkomend/firebird # top -b -n1 | grep fb
 2587 firebird  24   0  1232 1232 1028 S  0.0  0.3   0:00.00 fbguard
 2588 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.04 fbserver
 2589 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.00 fbserver
 2604 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.00 fbserver
 2605 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.02 fbserver
 2606 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.00 fbserver
 2607 firebird  15   0  4124 4120 2092 S  0.0  0.9   0:00.00 fbserver

As an alternative to top, you can use ps
-ax
or ps -aux and pipe the output to
grep.

For Classic Server, the process name is fb_inet_server. There will be one instance of this process
running for each network connection. Note that if there are no active connections, or if
there are only direct local connections, you won’t find fb_inet_server in the process list. fb_lock_mgr should be present though as soon as any kind of
Classic connection has been established.

For SuperClassic, the process name is fb_smp_server and it will visible as soon as the service is
started. SuperClassic, just like Superserver, does its own port-listening, so it will be
running even if there are no connections.

Other ways to test a Firebird server immediately after installation include
connecting to a database, creating a database, and launching the
gsec utility. All these operations are described later on in
this guide.

Server check: Windows, running as service

Open Control Panel -> Services (NT) or Control Panel -> Administrative Tools
-> Services (2000/3/8, XP, Vista, 7).

This illustration shows the Services applet display on Windows 2000. The
appearance may vary from one Windows server edition to another. Also, service names may
vary with the Firebird version.

You should at least find the Firebird server in the services listing. The Guardian
may or may not be running, depending on the choices you made during installation.

Server check: Windows, running as application

If Firebird is up and running as an application, it is represented by an icon in the
system tray:

  • A green and grey server symbol if controlled by the Guardian;

  • A round yellow and black graphic if running standalone.

A flashing icon indicates that the server is in the process of starting up (or at
least trying to do so). A red icon, or an icon with an overlying red stop sign, indicates
that startup has failed.

One way to make 100% sure if the server is running or not is to press Ctrl-Alt-Del
and look for the fbserver or fb_inet_server process (and possibly fbguard) in the task list.

On some occasions, you may need to start the Guardian or server once explicitly via
the Start menu even if you opted for “Start Firebird now” at the end of the
installation process. Sometimes a reboot is necessary.

If you’re desperately trying to start Firebird and nothing seems to work, ask
yourself if you’ve installed Firebird 2.5 (Super)Classic server with the Guardian option
enabled (the installation program doesn’t offer this possibility anymore, but there are
other ways). As said before, the combination (Super)Classic + Guardian currently doesn’t
work if Firebird runs as an application. Uninstall Firebird if necessary and reinstall
(Super)Classic without Guardian, or Superserver with or without
Guardian.

You can shut the server down via the menu that appears if you right-click on the
tray icon. Notice that this also makes the icon disappear; you can restart Firebird via
the Start menu.

Note

Windows Classic Server (but not SuperClassic!) launches a new process for every
connection, so the number of fb_inet_server
processes will always equal the number of client connections plus one. Shutdown via the
tray icon menu only terminates the first process (the listener).
Other processes, if present, will continue to function normally, each terminating when
the client disconnects from the database. Of course, once the listener has been shut
down, new connections can’t be made.

In the case of Superserver you can also use a Control Panel applet to check and
alter the Firebird server status. Some available applets will be presented a little later
in this guide.

Performing a client-only install

Each remote client machine needs to have the client library – libfbclient.so on Posix clients, fbclient.dll on Windows clients – that matches the release
version of the Firebird server.

Firebird versions from 1.5 onward can install symlinks or copies named after the 1.0
libs (with the “old” InterBase names), to maintain compatibility with third-party
products which need these files.

Some extra pieces are also needed for the client-only install.

Windows

At present, no separate installation program is available to install only the client
pieces on a Windows machine. If you are in the common situation of running Windows clients
to a Linux or other Unix-like Firebird server (or another Windows machine), you need to
download the full Windows installation kit that corresponds to the version of Firebird
server you install on your server machine.

Fortunately, once you have the kit, the Windows client-only install is easy to do.
Just run the installation program, and when you arrive at at the “Select
Components
” screen, choose one of the client-only options from the drop-down list or
uncheck the “Server Components” checkbox.

Linux and some other Posix clients

A small-footprint client install program for Linux clients is not available either.
Additionally, some Posix flavours – even within the Linux constellation – have somewhat
idiosyncratic requirements for filesystem locations. For these reasons, not all *x
distributions for Firebird even contain a client-only install option.

For most Linux flavours, the following procedure is suggested for a Firebird
client-only install. Log in as root for
this.

  1. Look for libfbclient.so.2.5.n
    (n being the patch version number) in /opt/firebird/lib on the machine where the Firebird server
    is installed. Copy it to /usr/lib on the client
    (or /usr/lib64 if both server and client are
    64-bits).

  2. Create chained symlinks using the following commands:

    ln -s /usr/lib/libfbclient.so.2.5.n
    /usr/lib/libfbclient.so.2

    ln -s /usr/lib/libfbclient.so.2
    /usr/lib/libfbclient.so

    …replacing 2.5.n with your version
    number, e.g. 2.5.0 or 2.5.3

    If you’re running applications that expect the legacy libraries to be present,
    also create the following symlinks:

    ln -s /usr/lib/libfbclient.so /usr/lib/libgds.so.0

    ln -s /usr/lib/libfbclient.so /usr/lib/libgds.so

  3. Copy firebird.msg to the client machine, preferably into the
    /opt/firebird directory. If you place it
    somewhere else, create a system-wide permanent FIREBIRD environment
    variable pointing to the right directory, so that the API routines can locate the
    messages.

  4. Optionally copy some of the Firebird command-line tools – e.g.
    isql – to the client machine. Note:
    always copy the tools from a Superserver kit, regardless of the architecture of the
    server(s) you’re planning to connect to. Tools from Classic distributions terminate
    immediately if they can’t find the libfbembed
    library (which is useless for network connections) upon program start.

Instead of copying the files from a server, you can also pull them out of a Firebird
tar.gz kit. Everything you need is located in the
/opt/firebird tree within the
buildroot.tar.gz archive that’s packed inside the kit.

Содержание

  1. Ошибка установки Firebird 1.5 в windows 10
  2. Причина нелюбви Windows 10 к Firebird 1.5.2
  3. Решение
  4. Шаги установки Firebird на Windows 10 Pro
  5. Установка firebird на windows 10
  6. Замечание
  7. Дистрибутивные пакеты
  8. Подсказка
  9. Тестируем то, что установили
  10. Замечание
  11. Внимание
  12. Проверяем видимость сервера
  13. Внимание
  14. Проверяем работу сервера Firebird
  15. Замечание
  16. Что еще может понадобиться
  17. Сетевой адрес для сервера
  18. Замечание
  19. Имя пользователя и пароль, значения по умолчанию
  20. Важно
  21. Замечание
  22. Замечание
  23. Средства администрирования
  24. Замечание
  25. Устанавливаем только клиента
  26. Windows
  27. Linux и некоторые другие Posix-системы
  28. Начинаем работать с Firebird Sql Server
  29. Что такое Firebird SQL Server?
  30. Какую версию Firebird выбрать?
  31. Установка Firebird — выбор типа сервера
  32. Firebird Super Server
  33. Firebird Classic Server
  34. Firebird Embedded
  35. Если затрудняетесь с выбором
  36. Начало работы с Firebird
  37. Создание новой базы Firebird
  38. Безопасность Firebird
  39. Пользователь SYSDBA. Смена пароля по умолчанию
  40. Подключение к Firebird из клиентского приложения
  41. Firebird и VBScript, Visual Basic, VBA
  42. Firebird и Delphi
  43. Firebird и C++
  44. Редактирование базы Firebird
  45. Утилиты администрирования Firebird
  46. FlameRobin
  47. IBExpert
  48. IB/FB Development Studio
  49. Blaze Top
  50. Database Workbench
  51. Шаги установки Firebird на Windows 10 Pro
  52. Аналоги Firebird

Ошибка установки Firebird 1.5 в windows 10

Всем привет! Как-то понадобилось мне на компьютере с установленной Windows 10 (версия 1909) установить Firebird 1.5.2. Скачиваю с официального сайта необходимую версию и… при попытке запустить инсталлятор получаю следующую ошибку: «Firebird не может работать в ОС Windows».

firebird windows10

Ну, думаю, все пропало. Времени искать компьютер с Windows XP или Windows 7 совсем нет, а дело-то делать нужно.

Слава богу, есть Интернет! Загуглив данный вопрос, я получил интересную информацию, с которой спешу поделится с вами.

Причина нелюбви Windows 10 к Firebird 1.5.2

Заявление о несовместимости похоже связано с древним багом в апплете для управления сервером Firebird, но так он известен еще со времен Windows Vista и обходится путем отключения установки апплета. До этого обновления Firebird 1.5 нормально работал под Windows 10. Почему Microsoft решила заблокировать Firebird 1.5 — непонятно!

Также имейте ввиду, что при установке своих больших обновлений Windows 10 самостоятельно без вашего ведома удаляет сервер баз данных FireBird 1.5 (папка FireBird из редактора реестра, папка FireBird 1,5 из program files, gds32.dll из папки system32, firebird.msg из папки Windows). Тут получается, что придется либо не ставить эти крупные обновления, либо устанавливать после них заново Firebird 1.5 повторно. Как? Читаем дальше.

Решение

Данная блокировка со стороны Windows легко обходится. Для этого достаточно всего лишь переименовать файл-инсталлятор. После переименования и запуска файла начнется штатная установка Firebird!

Источник

Шаги установки Firebird на Windows 10 Pro

Последующая задача требовала, чтобы на системе будь-то Windows 10 Pro x64 был установлен пакет Firebird и дабы не отклоняться к отсылке на официальный сайт или выражением там все просто, решил для себя оформить просто пошаговый процесс инсталляции Firebird 3.0.4 на Windows 10 Pro x64. В дальнейшем я буду ссылаться на эту заметку.

Шаг №1: Запускаю по исполняемому файлу ( Firebird-3.0.4.33054_0_x64.exe ) через правый клик мышью с выбором меню « Запуск от имени администратора »

Шаг №2: Выбираю язык установки (Русский) и нажимаю « ОК », соглашаюсь с лицензионным соглашением и нажимаю « Далее », « Далее », папку установки по умолчанию оставляю ( C:Program FilesFirebirdFirebird_3_0 ) и нажимаю « Далее », тип установки выбираю « Полная установка сервера и инструментов разработки »

и нажимаю « Далее », оставляю как есть именование ярлыка в папке меню « Пуск » ( Firebird 3.0 (x64) ) и нажимаю « Далее », далее самый ответственный шаг — это указать какие дополнительные задачи должны выполниться при установке Firebird:

и нажимаю « Далее », затем следует создать пароль администратора:

и нажимаю « Далее », « Установить », « Далее » и оставляю отмеченной галочкой настройку « Запустить службу Firebird? ” и нажимаю « Завершить ».

На этом установка завершена на рабочую станцию, по аналогии шаги и для установки на сервер. Вроде все просто, просто данная заметка будет включена в последующие. С уважением, автор блога Олло Александр aka ekzorchik.

Источник

Установка firebird на windows 10

Сервер Firebird и любые базы данных, к которым Вы подключаетесь или которые Вы создаете, должны располагаться на жестком диске, физически подключенном к компьютеру (на котором работает сервер). Вы не можете располагать сервер, какие либо его компоненты или какую-либо базу данных на подключенном (mapped) диске, разделяемом (share) диске или сетевой файловой системе.

Замечание

Вы можете смонтировать базу данных в режиме read-only с CD-ROM, но вы не можете запустить сервер Firebird с него.

Дистрибутивные пакеты

Платформа Windows

Инсталляционная программа Firebird предоставляет Вам возможность выбирать между Superserver или Classic Server. Как уже отмечалось ранее, Вам следует выбрать Superserver, за исключением случаев, когда Вы понимаете разницу, и у Вас есть основания использовать Classic Server.

Если Firebird устанавливается на Windows 95/98/ME, отмените опцию, предлагающую установить апплет на Панель Управления. На этих версиях он не работает. Далее по тексту Вам будет предложено альтернативное решение.

На серверных платформах – Windows NT, 2000 и XP – сервис Firebird будет запущен по окончанию установки. После перезагрузки сервера, он будет стартовать в автоматическом режиме.

Posix платформы

В любом случае, прочитайте Release Notes, относящиеся к версии Firebird, которую Вы собираетесь устанавливать. Возможны значительные расхождения между версиями различных Posix операционных систем, особенно это актуально для ОС, распространяемых в открытых кодах (Open Source). Соответственно есть вероятность, что известные специфические особенности относительно Вашего случая описаны.

Подсказка

Если в вашем комплекте не оказалось копии Release Notes, вернитесь к Downloads page на web-сайте проекта Firebird http://www.firebirdsql.org/ и загрузите копию оттуда.

Необходимые скрипты для командного процессора (Shell) прилагаются в комплекте. В некоторых случаях, в Release Notes Вам будет предложено внести корректировки в их содержание.

Тестируем то, что установили

Если все прошло как задумано, по окончанию процесса установки будет запущен серверный процесс Firebird, который будет запускаться автоматически при перезагрузке сервера.

С этого момента предполагается, что для клиент-серверного взаимодействия Вы будете использовать рекомендованный протокол TCP/IP.

Замечание

Информацию об использовании протокола NetBEUI в Windows инфрастуктуре Вы можете получить, обратившись к главе 6 Network Configuration руководства Using Firebird.

Внимание

Firebird не поддерживает сети IPX/SPX.

Проверяем видимость сервера

заменив вымышленный IP-адрес Вашим реальным.

Внимание

Если Вы получаете timeout-сообщения (и не знаете, что с этим делать), изучите материал Using Firebird – глава 6: Network Configuration и глава 7: Troubleshooting Connections – для дальнейших инструкций.

Обратите внимание, что если Вы соединяетесь с сервером локальным клиентом, т.е. клиент работает на том же компьютере, что и сервер, Вы можете воспользоваться, интерфейсом обратной петли или loopback-интерфейсом:

Проверяем работу сервера Firebird

После установки, сервер Firebird должен быть запущен как сервис на Windows NT, 2000 или XP или на Linux.

Windows NT4, 2000 и XP

На картинке представлен вид апплета Services (Службы) на Windows 2000. Внешний вид может изменяться в зависимости от версии Windows.

services

При использовании Guardian (как, например, в случае, отображенном на картинке), название данного сервиса может варьироваться в зависимости от используемой версии Firebird.

Замечание

Windows 9x или ME

Под Windows 9x или ME сервер Firebird следует запускать в качестве приложения, контролируемого Guardian. Соответствующая иконка Guardian в зеленных тонах должна появиться в области состояния на панели задач ( прим. перев.: « там, где часы » © фидо). Если иконка мигает или отображается в красных тонах, это означает, что Guardian либо пытается перезапустить сервер, либо у него это не получилось.

Если Вы использовали установочный комплект, который установил, но автоматически не запустил Guardian и сервер Firebird, Вы можете проделать следующее:

Найдите исполняемый файл приложения Guardian ( fbguard.exe ) и создайте для него ярлык в подменю Startup (Автозагрузка) главного меню, доступному по нажатию кнопки Start (Пуск).

Откройте окно Properties (Свойства) созданного ярлыка и перейдите к полю Target (Объект).

Измените это поле, в соответствии с Вашим случаем (текст, набранный полужирным шрифтом):

Сохраните изменения и закройте окно Properties (Свойтва).

При последующей перезагрузке, Guardian должен запуститься автоматически.

В качестве альтернативы, Вы можете использовать апплет Control Panel (панели управления) для управления запуском и остановом сервера Firebird.

Апплет Панели управления

Начиная с версии 1.0.3, в состав дистрибутива Firebird входит апплет Панели управления. Несмотря на свой скромный вид он предоставляет удобный способ запуска и останова сервера.

FbServerControl 1.5

К сожалению апплет работает только под Windows NT, 2000 и XP. Если Вам нужен аналогичный апплет для Windows 9x и ME, посетите эту страницу:

и загрузите Firebird Control Center fbcc-0.2.6.exe.

Этот апплет внешне отличается от изображенного на картинке, но он предоставляет аналогичный функционал.

Posix-сервера

Что еще может понадобиться

Сетевой адрес для сервера

В администрируемой сети обратитесь к системному администратору за IP-адресом для Вашего сервера.

Если у Вас простая изолированная сеть из, например, двух компьютеров, Вы можете назначить серверу любой IP-адрес за исключением 127.0.0.1 (который зарезервирован за локальным loopback-интерфейсом) и, конечно же, IP-адресом, назначенным для клиентского (второго) компьютера.

Замечание

Имя пользователя и пароль, значения по умолчанию

назначит пароль masterkey (точнее, masterke : символы после восьмого игнорируются), или

запросит пароль во время процедуры установки, или

Как изменить пароль SYSDBA

Важно

возможно, сервер не запущен, в этом случае, вернитесь к разделу Тестируем то, что установили и попробуйте устранить причину.

Перейдите к интерпретатору командной строки и смените текущую директорию на ту, в которой находятся утилиты командной строки. Если Вы не знаете, где они находятся, обратитесь за подсказкой к таблице Компоненты Firebird 1.5 и их расположение.

Наберите следующее, если Вы не используете Windows Classic Server:

В случае использования Windows Classic Server, Вы должны указывать полное сетевое расположение базы данных безопасности (к сожалению!):

Замечание

На всех платформах, за исключением Windows, путь и имена файлов являются чувствительными к регистру; пароли всегда регистрочувствительны.

Замечание

Средства администрирования

При этом существует большой выбор средств от сторонних производителей, различных степеней замечательности, (кросс-) « платформенности » и платности.

Замечание

Для управления сервером под Linux Вы можете использовать клиента под Windows и наоборот.

Устанавливаем только клиента

Каждая удаленная клиентская машина требует наличия клиентской библиотеки – libfbclient.so на Posix-системах или fbclient.dll на Windows-системах – соответствующую версии сервера Firebird.

В целях обеспечения совместимости с продуктами третьих фирм, Firebird начиная с версии 1.5 может, в зависимости от версии и платформы, установить символические ссылки, скопировать библиотеки под именами, используемыми в версии 1.0 (« старые » InterBase-названия).

Кроме этого, необходимо еще кое-что подкрутить.

Windows

В настоящее время нет компактной версии дистрибутива, позволяющей устанавливать клиентскую часть на Windows-клиента. В общем случае, когда нужно обеспечить взаимодействие Windows-клиента с Linux- или другим Posix- сервером Firebird (или другим компьютером под Windows), Вам необходимо загрузить полноценный дистрибутив под Windows, соответствующий версии Firebird, установленной на Вашем Linux или другом сервере.

Linux и некоторые другие Posix-системы

Для установки Linux-клиентов также нет легковесной версии дистрибутива, вдобавок различные варианты Posix-систем и даже различные представители Linux-семейства обладают отличительными особенностями в требованиях к расположению некоторых файлов в рамках файловой системы. Поэтому некоторые дистрибутивы Firebird для Posix-систем даже не предлагают опции по установке только клиентской части.

Создайте символические ссылки, выполнив следующие команды:

замените 1.m.n номером Вашей версии, например, 1.5.0 или 1.6.1

Если Вы используете программы, требующие наличия унаследованных библиотек, создайте дополнительно следующие символические ссылки:

Скопируйте файл firebird.msg в директорию /opt/firebird

Источник

Начинаем работать с Firebird Sql Server

Что такое Firebird SQL Server?

Firebird SQL Server — сервер баз данных основанный на открытом исходном коде InterBase 6.0. Дистрибутивы Firebird существуют под Windows, Linux, Unix, Solaris, MacOS, под 32-х и 64-х битную архитектуру. Firebird SQL Server распространяется бесплатно и не имеет лицензионных ограничений.

Какую версию Firebird выбрать?

На сегодняшний момент новейшая версия — Firebird 3.0. Стабильная версия Firebird 2.5.

Установка Firebird — выбор типа сервера

Сервер Firebird SQL доступен в 3-х вариантах:

Firebird Super Server

Firebird Super Server — все клиентские подключения обслуживаются одним серверным процессом, имеется общий клиентский кеш. За счет этого достигается меньший расход ресурсов на обслуживание клиентов. Недостатком Firebird Super Server является отсутствие возможности задействовать несколько процессоров для работы Firebird сервера.

Firebird Classic Server

Firebird Classic Server — на каждое клиентское подключение создает отдельный серверный процесс. Архитектура Firebird Classic Server более надежна, т.к. сбой одного серверного процесса не вызывает отказ в обслуживании всех клиентов. Кроме того, Firebird Classic позволяет задействовать многопроцессорную архитектуру. При установке Firebird вы можете выбрать между версиями Firebird Super Server или Firebird Classic Server.

Firebird Embedded

Firebird Embedded Server — предназначен для встраиваемых баз данных. Состоит из одной dll — fbembed.dll, которая включает в себя клиент и сервер Firebird Super Server. Firebird Embedded не требует установки на клиентской рабочей станции. Достаточно просто скопировать fbembed.dll и еще несколько файлов клиенту на компьютер.

Недостаток Firebird Embedded — это невозможность одновременного подключения к одной БД нескольких клиентов. После успешного подключения Firebird Embedded блокирует файл базы данных для монопольного доступа.

Firebird Embedded Server распространяется отдельным дистрибутивом.

Если затрудняетесь с выбором

Если вы не уверены в выборе типа установки Firebird, то используйте Firebird Super Server. В дальнейшем вы без труда сможете изменить архитектуру сервера.

Начало работы с Firebird

Для знакомства с Firebird можно использовать тестовую базу данных employee.fdb. Она входит в установочный комплект Firebird и расположена в папке Program FilesFirebirdFirebirdexamplesempbuild.

Создание новой базы Firebird

Для создания пустой базы Firebird:

В ISQL каждое выражение завершается точкой с запятой.

Проверить подключение можно, выполнив запрос:

SQL> select MON$DATABASE_NAME from MON$DATABASE;

Если все сделано правильно, SQL запрос вернет путь к подключенной базе данных:

Безопасность Firebird

Пользователь SYSDBA. Смена пароля по умолчанию

SYSDBA — это административный пользователь Firebird с исключительными правами. Пароль по умолчанию: masterkey. Для того чтобы сменить пароль, используйте утилиту gsec из состава Firebird:

При помощи утилиты gsec можно создавать, удалять, модифицировать и просматривать пользователей. Полный список команд можно получить, набрав help.

Подключение к Firebird из клиентского приложения

Для начала скачайте и установите пакет IBProvider Professional Edition.

Для проверки подключения к Firebird напишем простой сценарий на языке VBScript. Создайте пустой файл с расширением vbs и вставьте в него следующий код, указав правильный путь к базе данных:

Запустите скрипт на выполнение в режиме командной строки, и вы увидите список активных подключений к БД.

Firebird и VBScript, Visual Basic, VBA

Для доступа к Firebird и InterBase из VBScript, VBA, Visual Basic используется библиотека ADO (ActiveX Data Objects). Множество примеров работы с этой библиотекой вы найдете в документации: примеры InterBase, Firebird VBScript, VBA, Visual Basic.

Firebird и Delphi

IBProvider предлагает несколько способов работы с InterBase и Firebird из Delphi:

Дополнительные материалы по теме:

Firebird и C++

В состав IBProvider Professional Edition входит C++ библиотека, которая предоставляет самый быстрый способ работы с OLE DB провайдерами из Visual C++ 2005-2008, а так же из C++ Builder.

Редактирование базы Firebird

В пустой базе данных необходимо создать таблицы, связи между таблицами, первичные ключи, индексы, хранимые процедуры, генераторы и другие объекты. Для редактирования баз данных Firebird вы можете использовать утилиту isql.exe.

SQL> CREATE TABLE cross_rate CON> ( CON> from_currency VARCHAR(10) NOT NULL, CON> to_currency VARCHAR(10) NOT NULL, CON> conv_rate FLOAT NOT NULL, CON> update_date DATE, CON> CON> PRIMARY KEY (from_currency, to_currency) CON> );

Вставляем одну запись и делаем выборку из таблицы:

SQL> INSERT INTO cross_rate VALUES (‘Dollar’, ‘CdnDlr’, 1.3273, ’11/22/93′); SQL> SELECT * from cross_rate; FROM_CURRENCY TO_CURRENCY CONV_RATE UPDATE_DATE ============= =========== ============== =========== Dollar CdnDlr 1.3273000 1993-11-22

Помимо isql существует различные графические утилиты администрирования Firebird.

Утилиты администрирования Firebird

FlameRobin

IBExpert

IB/FB Development Studio

Blaze Top

Database Workbench

Database Workbench — поддерживает несколько серверов баз данных, среди которых есть Firebird и InterBase. Отладка хранимых процедур, анализ планов, встроенные средства переноса данных и метаданных.
Лицензируется отдельно на InterBase и отдельно на Firebird. 171$ за каждый движок (InterBase или Firebird).
Сайт: Database Workbench

Источник

Шаги установки Firebird на Windows 10 Pro

pp image 52420 33gqovt6dtfirebird windows 10 1

Firebird для Windows 10 это СУБД с открытым исходным кодом. Серверная составляющая системы не имеет ограничений по количеству поддерживаемых баз данных и подключенных пользователей, использует собственный язык запросов PSQL для генерации универсальных триггеров и процедур.

Среда работает по ACID стандартам, включает инструмент автоматического резервирования и восстановления, без необходимости перезапуска сервера, применяет версионный режим взаимодействия, что обеспечивает одновременную работу по добавлению и чтению одних данных разными пользователями. Программа умеет работать с Unicode и внешними функциями DLL/SO. Рекомендуем скачать Firebird для Windows 10 на русском языке без регистрации и смс с официального сайта.

СКАЧАТЬ БЕСПЛАТНО Информация о программе

pp image 52421 jd13fdwp5tfirebird windows 10 screenshot

Аналоги Firebird

Press Release (Firebird 2.5.0): English | Deutsch | Español | Polska | Việt | 日本語 | Română | Français Firebird 2.5.9 Release Notes (PDF available)Brief description of new features in Firebird 2.5 For more details about Firebird 2.5 architectures please look at the Firebird 2.5 Architecture Comparison document.

pp image 52422 18yddskpitWindows 30 30Win32 pp image 52422 18yddskpitWindows 30 30Win64 Linux x86 Linux AMD64 pp image 52426 2w4aw5b8btFinder 30 30Mac OS X

Final release: v2.5.9 (End of Series)

Release Date File Name Size Description
Sources
June 24, 2019 Firebird-2.5.9.27139-0.tar.bz2 13 MB Compressed tarball
pp image 52422 18yddskpitWindows 30 30Win32
32-bit Classic, Superclassic & Superserver
June 24, 2019 Firebird-2.5.9.27139_0_Win32.exe 6 MB Windows executable installer for full Superclassic/Classic or Superserver, recommended for first-time users
June 24, 2019 Firebird-2.5.9.27139-0_Win32.zip 10 MB Zip kit for manual/custom installs of Superclassic/Classic or Superserver
32-bit Embedded
June 24, 2019 Firebird-2.5.9.27139-0_Win32_embed.zip 4 MB Embedded, separate download, zip kit. Custom installation required, read the Guide!
32-bit Debug Kits (Binary + PDB components)
June 24, 2019 Firebird-2.5.9.27139_0_Win32_pdb.exe 11 MB Full Superclassic/Classic or Superserver, installer kit
June 24, 2019 Firebird-2.5.9.27139-0_Win32_pdb.zip 18 MB Full Superclassic/Classic or Superserver, zip kit
June 24, 2019 Firebird-2.5.9.27139-0_Win32_embed_pdb.zip 9 MB Embedded, separate download, zip kit
pp image 52422 18yddskpitWindows 30 30Win64
64-bit Classic, Superclassic & Superserver
June 24, 2019 Firebird-2.5.9.27139_0_x64.exe 10 MB Windows executable installer for full Superclassic/Classic or Superserver, recommended for first-time users
June 24, 2019 Firebird-2.5.9.27139-0_x64.zip 11 MB Zip kit for manual/custom installs of Superclassic/Classic or Superserver
64-bit Embedded
June 24, 2019 Firebird-2.5.9.27139-0_x64_embed.zip 5 MB Embedded, separate download, zip kit. Custom installation required, read the Guide!
64-bit Debug Kits (Binary + PDB components)
June 24, 2019 Firebird-2.5.9.27139_0_x64_pdb.exe 15 MB Full Superclassic/Classic or Superserver, installer kit
June 24, 2019 Firebird-2.5.9.27139-0_x64_pdb.zip 20 MB Full Superclassic/Classic or Superserver, zip kit
June 24, 2019 Firebird-2.5.9.27139-0_x64_embed_pdb.zip 9 MB Embedded, separate download, zip kit
Linux x86
32-bit Classic, Superclassic & Embedded
June 24, 2019 FirebirdCS-2.5.9.27139-0.i686.rpm 7 MB Superclassic/Classic server, RPM kit
June 24, 2019 FirebirdCS-2.5.9.27139-0.i686.tar.gz 7 MB Superclassic/Classic server, compressed tarball
June 24, 2019 FirebirdCS-debuginfo-2.5.9.27139-0.i686.tar.gz 34 MB Debug Build, Superclassic/Classic server, compressed tarball
32-bit Superserver
June 24, 2019 FirebirdSS-2.5.9.27139-0.i686.rpm 7 MB Superserver, RPM kit
June 24, 2019 FirebirdSS-2.5.9.27139-0.i686.tar.gz 7 MB Superserver, compressed tarball
June 24, 2019 FirebirdSS-debuginfo-2.5.9.27139-0.i686.tar.gz 33 MB Debug Build, Superserver, compressed tarball
Linux AMD64
64-bit Classic, Superclassic & Embedded
June 24, 2019 FirebirdCS-2.5.9.27139-0.amd64.rpm 7 MB Superclassic/Classic server, RPM kit
June 24, 2019 FirebirdCS-2.5.9.27139-0.amd64.tar.gz 7 MB Superclassic/Classic server, compressed tarball
June 24, 2019 FirebirdCS-debuginfo-2.5.9.27139-0.amd64.tar.gz 34 MB Debug Build, Superclassic/Classic server, compressed tarball
64-bit Superserver
June 24, 2019 FirebirdSS-2.5.9.27139-0.amd64.rpm 7 MB Superserver, RPM kit
June 24, 2019 FirebirdSS-2.5.9.27139-0.amd64.tar.gz 7 MB Superserver, compressed tarball
June 24, 2019 FirebirdSS-debuginfo-2.5.9.27139-0.amd64.tar.gz 33 MB Debug Build, Superserver, compressed tarball
pp image 52426 2w4aw5b8btFinder 30 30Mac OS X
NOTE: Because use of libstdc++ is now deprecated Mac OS X users should be aware that Firebird 2.5.8 will run only on Mac OS X 10.9 or higher versions. If you want to use an earlier version of OS X you will need to use an earlier version of Firebird.«lipo» are the 64-bit Firebird Server with client libs as fat lib (32 and 64 bits). See here for examples.
Mac OS X 64-bit Classic, Superclassic & Embedded (Intel)
June 24, 2019 FirebirdCS-2.5.9-27139-x86_64.pkg 7 MB 64-bit package
June 24, 2019 FirebirdCS-2.5.9-27139-lipo-x86_64.pkg 12 MB 64-bit Lipo package
Mac OS X 64-bit Superserver (Intel)
June 24, 2019 FirebirdSS-2.5.9-271391-x86_64.pkg 7 MB 64-bit package
June 24, 2019 FirebirdSS-2.5.9-27139-lipo-x86_64.pkg 9 MB 64-bit Lipo package
Mac OS X 32-bit
June 24, 2019 FirebirdCS-2.5.9-27139-i386.pkg 7 MB Mac OS X 32-bit Classic, Superclassic & Embedded (Intel) package, compressed
June 24, 2019 FirebirdSS-2.5.9-27139-i386.pkg 7 MB Mac OS X 32-bit Superserver (Intel) package, compressed

Последующая задача требовала, чтобы на системе будь-то Windows 10 Pro x64 был установлен пакет Firebird и дабы не отклоняться к отсылке на официальный сайт или выражением там все просто, решил для себя оформить просто пошаговый процесс инсталляции Firebird 3.0.4 на Windows 10 Pro x64. В дальнейшем я буду ссылаться на эту заметку.

Шаг №1: Запускаю по исполняемому файлу ( Firebird-3.0.4.33054_0_x64.exe ) через правый клик мышью с выбором меню « Запуск от имени администратора »

Шаг №2: Выбираю язык установки (Русский) и нажимаю « ОК », соглашаюсь с лицензионным соглашением и нажимаю « Далее », « Далее », папку установки по умолчанию оставляю ( C:Program FilesFirebirdFirebird_3_0 ) и нажимаю « Далее », тип установки выбираю « Полная установка сервера и инструментов разработки »

и нажимаю « Далее », оставляю как есть именование ярлыка в папке меню « Пуск » ( Firebird 3.0 (x64) ) и нажимаю « Далее », далее самый ответственный шаг — это указать какие дополнительные задачи должны выполниться при установке Firebird:

и нажимаю « Далее », затем следует создать пароль администратора:

и нажимаю « Далее », « Установить », « Далее » и оставляю отмеченной галочкой настройку « Запустить службу Firebird? ” и нажимаю « Завершить ».

На этом установка завершена на рабочую станцию, по аналогии шаги и для установки на сервер. Вроде все просто, просто данная заметка будет включена в последующие. С уважением, автор блога Олло Александр aka ekzorchik.

Источник

Содержание

  1. Как запустить сервер firebird windows 10
  2. Installation script or program
  3. Testing your installation
  4. Warning
  5. Pinging the server
  6. Warning
  7. Checking that the Firebird server is running
  8. Other things you need
  9. A network address for the server
  10. Default user name and password
  11. Important
  12. An Admin tool
  13. Performing a client-only install
  14. Windows
  15. Linux and some other Posix clients

Как запустить сервер firebird windows 10

Firebird server – and any databases you create or connect to – must reside on a hard drive that is physically connected to the host machine. You cannot locate components of the server, or any database, on a mapped drive, a filesystem share or a network filesystem.

You can mount a read-only database on a CD-ROM drive but you cannot run Firebird server from one.

Installation script or program

Although it is possible to install Firebird by a filesystem copying method – such as “ untarring ” a snapshot build file or decompressing a structured WinZip .zip file – it is strongly recommended that you use the distributed release kit the first time you install Firebird. The Windows executable installation script, the Linux rpm ( RPM Package Manager, originally RedHat Package Manager ) program and the official .tar.gz for other Posix platforms perform some essential setup tasks. Provided you follow the instructions correctly, there should be nothing for you to do upon completion but log in and go!

Windows platforms

The Firebird installer lets you choose between Superserver and Classic Server installation. As said before, you should choose Superserver unless you know the differences and have reasons to prefer Classic.

If you install Firebird under Windows 95/98/ME, un check the option to install the Control Panel applet. It doesn’t work on these platforms. We’ll give you a link to a usable applet later on in this guide.

On server platforms – Windows NT, 2000 and XP – the Firebird service will be running when the installation completes. Next time you boot up your server machine, it will be started automatically.

The non-server Windows platforms – Windows 95, 98 and ME – do not support services. The installation will start Firebird server as an application, protected by another application known as the Guardian. If the server application should terminate abnormally for some reason, the Guardian will attempt to restart it.

Posix platforms

In all cases, read the release notes that pertain to the version of Firebird that you are going to install. There may be significant variations from release to release of any Posix operating system, especially the open source ones. Where possible, the build engineers for each Firebird version have attempted to document any known issues.

If you do not find a copy of the release notes in your kit, go back to the Downloads page of the Firebird website at http://www.firebirdsql.org and download a copy from there.

If you have a Linux distribution that supports rpm installs, consult the appropriate platform documentation for instructions about using RPM Package Manager . In most distributions you will have the choice of performing the install from a command shell or through a GUI interface.

For Linux distributions that cannot process rpm programs, and for the various UNIX flavors, use the .tar.gz kit. You will find detailed instructions in the release notes.

Shell scripts have been provided. In some cases, the release notes may instruct you to modify the scripts and make some manual adjustments.

Testing your installation

If everything works as designed, the Firebird server process will be running on your server upon completion of the installation. It will start up automatically whenever you restart your server.

At this point, it is assumed that you will use the recommended TCP/IP protocol for your Firebird client/server network.

For information about using NetBEUI protocol in an all-Windows environment, refer to Chapter 6, Network Configuration in the Using Firebird manual.

Warning

IPX/SPX networks are not supported by Firebird.

Pinging the server

Usually, the first thing you will want to do once installation is complete is ping the server. This just gives you a reality check to ensure that your client machine is able to see the host machine in your network. For example, if your server’s IP address in the domain that is visible to your client is 192.13.14.1, go to a command shell and type the command

substituting this example IP address for the IP address that your server is broadcasting.

Warning

If you get a timeout message, study the Using Firebird manual – Chapter 6: Network Configuration, and Chapter 7: Troubleshooting Connections – for further instructions.

Note that if you are connecting to the server from a local client – that is, a client running on the same machine as the server – you can ping the virtual TCP/IP loopback server:

Checking that the Firebird server is running

After installation, Firebird server should be running as a service on Windows NT, 2000 or XP or on Linux.

Windows NT4, 2000 and XP

Open Control Panel -> Services (NT) or Control Panel -> Administrative Tools -> Services (2000, XP).

This illustration shows the Services applet display on Windows 2000. The appearance may vary from one Windows server edition to another.

If the Guardian is running (as shown in the screenshot, over) it may have a different service name because of version changes.

On Windows 2000 and XP, the Guardian is a convenience rather than a necessity, since these two operating systems have the facility to watch and restart services. It is recommended that you keep Guardian active for other platforms if a SYSDBA is not available to restart the server manually in the event that it is stopped for some reason.

Windows 9x or ME

On Windows 9x or ME Firebird server should be running as an application, monitored by the Guardian. The Guardian’s icon should appear in the tray with a green graphic. If the icon is flashing or showing as a red graphic, it indicates that Guardian is either attempting to start the server or has failed.

If you used an installation kit that installed but did not automatically start the Guardian and the Firebird server, you can set it up as follows:

Locate the executable file for the Guardian program ( fbguard.exe ) and create a shortcut for it in the Startup area of your machine’s Start Menu.

Open the Properties dialog of the shortcut and go to the field where the command line is.

Edit the command line so it reads as follows:

fbguard.exe -c (for Classic Server)

Save and close the Properties dialog.

Double-click on the shortcut to start the Guardian. The Guardian will proceed to start fbserver.exe or fb_inet_server.exe .

The Guardian should start up automatically next time you boot your Windows 9x or ME machine.

Alternatively, you can use a Control Panel applet to control the starting and stopping of the Firebird server.

Windows Control Panel applets

Since version 1.0.3, a control panel applet is included in the Firebird distribution. Whilst the applet is not essential, it does provide a convenient way to start and stop the server.

Unfortunately, the bundled applet only works on Windows NT, 2000 and XP. On Windows 9x and ME, if you want a handy applet like this, visit this webpage:

and download the Firebird Control Center fbcc-0.2.6.exe.

This applet looks different from the above screenshot, but offers the same functionality.

Posix servers

Use the top command in a command shell to inspect the running processes interactively. If a Firebird Superserver is running, you should see a process named fbguard . This is the Guardian process. Further, there will be one main and zero or more child processes named fbserver .

For Classic Server versions, the process name is fb_inet_server . There will be one instance of this process running for each network connection. Note that if there are no active connections, or if there are only direct local connections, you won’t find fb_inet_server in the process list.

The following screen shows the output of top , restricted by grep to show only processes with names starting with the characters fb :

As an alternative to top , you can use ps -ax or ps -aux and pipe the output to grep .

Other things you need

A network address for the server

If you are on a managed network, get the server’s IP address from your system administrator.

If you have a simple network of two machines linked by a crossover cable, you can set up your server with any IP address you like except 127.0.0.1 (which is reserved for a local loopback server) and, of course, the IP address which you are using for your client machine. If you know the “ native ” IP addresses of your network cards, and they are different, you can simply use those.

If you are intending to try out a single-machine installation of both client and server, you should use the local loopback server address – localhost, with the IP address 127.0.0.1

It is possible to connect directly to a local Windows Superserver, without using the TCP/IP loopback. This is not a TCP/IP connection and it is not a thread-safe way to connect to a local server. For using single instances of the command-line tools ( gsec , gbak etc.) it works just fine. By contrast, direct database connections — even multiple — under a Linux Classic server are completely safe.

Default user name and password

The SYSDBA user has all privileges on the server. Depending on version, OS, and architecture, the installation program will either

install the SYSDBA user with the password masterkey (actually, masterke : characters after the eighth are ignored), or

ask you to enter a password during installation, or

generate a random SYSDBA password and store that in /opt/firebird/SYSDBA.password

If your server is exposed to the Internet at all and the password is masterkey , you should change it immediately using the gsec command-line utility.

How to change the SYSDBA password

Firebird comes with a command-line tool called gsec that is used to manipulate user accounts.

Important

With some Firebird installations, you can only run gsec if you are logged into the operating system as Superuser ( root on Linux) or as the user the Firebird server process runs under. On Windows server platforms, you typically need to be in the Power User group or higher to run gsec successfully.

If you have enough privileges but invoking gsec results in a message like “ unavailable database — unable to open database ”:

you’re either running Windows Classic Server and you didn’t provide a correct -database argument (see below), or

the server may not be running at all. In that case, go back to Testing your installation and fix the problem.

Let’s say you decide to change the SYSDBA password to icuryy4me .

Go to a command shell on your server and change to the directory where the command-line utilities are located. Refer to the Firebird installation components table to find this location.

Type the following command, except if you run Windows Classic Server:

In case of a Windows Classic Server, you must specify the full network location of the security database (unfortunately!):

gsec -user sysdba -password masterkey -database «localhost:C:Program FilesFirebirdFirebird_1_5security.fdb» (adapt the path if necessary)

On Linux, type ./gsec rather than gsec . Otherwise there’s a chance that a “ wrong ” gsec is launched, or that it isn’t found at all.

Paths and file names are case-sensitive on all platforms except Windows; passwords are always case-sensitive.

In either case, you should now see the shell prompt for the gsec utility:

Type this command:

Press Enter . The new password icuryy4me is now encrypted and saved and masterkey is no longer valid.

Now quit the gsec shell:

Because Firebird ignores all characters in a password past the eighth character, icuryy4m will work, as will icuryy4monkeys .

An Admin tool

The Firebird kit does not come with a GUI admin tool. It does have a set of command-line tools, executable programs which are located in the bin subdirectory of your Firebird installation.

The range of excellent GUI tools available for use with a Windows client machine is too numerous to describe here. A few GUI tools written in Borland Kylix, for use on Linux client machines, are also in various stages of completion.

You can use a Windows client to access a Linux server and vice-versa.

Performing a client-only install

Each remote client machine needs to have the client library – libfbclient.so on Posix clients, fbclient.dll on Windows clients – that matches the release version of the Firebird server.

Firebird versions from 1.5 onward can install symlinks or copies named after the 1.0 libs (with the “ old ” InterBase names), to maintain compatibility with third-party products which need these files.

Some extra pieces are also needed for the client-only install.

Windows

At present, no compact installation program is available to assist with installing the client pieces on a Windows client. If you are in the common situation of running Windows clients to a Linux or other Posix Firebird server (or another Windows machine), you need to download the full Windows installation kit that corresponds to the version of Firebird server you install on your Linux or other server machine.

Fortunately, once you have the kit, the Windows client-only install is easy to do. Run the installation program, just as though you were going to install the server – but select the CLIENT ONLY option from the install menu.

Linux and some other Posix clients

A small-footprint client install program for Linux clients is not available either. Additionally, some Posix flavors – even within the Linux constellation – have somewhat idiosyncratic requirements for filesystem locations. For these reasons, not all *x distributions for Firebird even contain a client-only install option.

For most Linux flavors, the following procedure is suggested for a Firebird client-only install. Log in as root for this.

Look for libfbclient.so.1. m.n ( m.n being the minor plus patch version number) in /opt/firebird/lib on the server where Firebird server is installed. Copy it to /usr/lib on the client.

Create chained symlinks using the following commands:

ln -s /usr/lib/libfbclient.so.1 /usr/lib/libfbclient.so

replacing 1.m.n with your version number, e.g. 1.5.0 or 1.6.1

If you’re running applications that expect the legacy libraries to be present, also create the following symlinks:

ln -s /usr/lib/libfbclient.so /usr/lib/libgds.so

Copy the firebird.msg file to /opt/firebird

In the system-wide default shell profile, or using setenv() from a shell, create the FIREBIRD environment variable and point it to /opt/firebird , to enable the API routines to locate the messages.

Источник

Дата публикации:

20.10.2008


Что такое Firebird SQL Server?

Firebird SQL Server — сервер баз данных основанный на открытом исходном коде InterBase 6.0. Дистрибутивы Firebird существуют под Windows, Linux, Unix, Solaris, MacOS, под 32-х и 64-х битную архитектуру. Firebird SQL Server распространяется бесплатно и не имеет лицензионных ограничений.

Какую версию Firebird выбрать?

На сегодняшний момент новейшая версия — Firebird 3.0. Стабильная версия Firebird 2.5.

  • Скачать Firebird 2.5
  • Скачать Firebird 3.0

Установка Firebird — выбор типа сервера

Сервер Firebird SQL доступен в 3-х вариантах:

  • Firebird Super Server
  • Firebird Classic Server
  • Firebird Embedded

Firebird Super Server

Firebird Super Server — все клиентские подключения обслуживаются одним серверным процессом, имеется общий клиентский кеш. За счет этого достигается меньший расход ресурсов на обслуживание клиентов. Недостатком Firebird Super Server является отсутствие возможности задействовать несколько процессоров для работы Firebird сервера.

Firebird Classic Server

Firebird Classic Server — на каждое клиентское подключение создает отдельный серверный процесс. Архитектура Firebird Classic Server более надежна, т.к. сбой одного серверного процесса не вызывает отказ в обслуживании всех клиентов. Кроме того, Firebird Classic позволяет задействовать многопроцессорную архитектуру. При установке Firebird вы можете выбрать между версиями Firebird Super Server или Firebird Classic Server.

Firebird Embedded

Firebird Embedded Server — предназначен для встраиваемых баз данных. Состоит из одной dll — fbembed.dll, которая включает в себя клиент и сервер Firebird Super Server. Firebird Embedded не требует установки на клиентской рабочей станции. Достаточно просто скопировать fbembed.dll и еще несколько файлов клиенту на компьютер.

Недостаток Firebird Embedded — это невозможность одновременного подключения к одной БД нескольких клиентов. После успешного подключения Firebird Embedded блокирует файл базы данных для монопольного доступа.

Firebird Embedded Server распространяется отдельным дистрибутивом.

  • Скачать архив с Firebird Embedded.

Если затрудняетесь с выбором

Если вы не уверены в выборе типа установки Firebird, то используйте Firebird Super Server. В дальнейшем вы без труда сможете изменить архитектуру сервера.

Начало работы с Firebird

Для знакомства с Firebird можно использовать тестовую базу данных employee.fdb. Она входит в установочный комплект Firebird и расположена в папке Program FilesFirebirdFirebirdexamplesempbuild.

Создание новой базы Firebird

Для создания пустой базы Firebird:

  • запустите утилиту C:Program FilesFirebirdFirebirdbinisql.exe
  • выполните инструкцию создания базы данных:

Use CONNECT or CREATE DATABASE to specify a database
SQL> CREATE DATABASE ‘localhost:d:temptest.fdb’ user ‘SYSDBA’ password ‘masterkey’ DEFAULT CHARACTER SET WIN1251;

В ISQL каждое выражение завершается точкой с запятой.

Проверить подключение можно, выполнив запрос:

SQL> select MON$DATABASE_NAME from MON$DATABASE;

Если все сделано правильно, SQL запрос вернет путь к подключенной базе данных:

==========================================================================
D:TEMPTEST.FDB

Безопасность Firebird

  • Firebird хранит всех пользователей в одной служебной базе данных security.fdb.
  • Начиная с Firebird 2.1 реализована поддержка SSPI аутентификации средствами Windows. Администраторы домена на уровне БД определяются как суперпользователи SYSDBA.
  • В Firebird 3.0 планируется реализовать возможность хранения пользователей в клиентской базе данных.

Пользователь SYSDBA. Смена пароля по умолчанию

SYSDBA — это административный пользователь Firebird с исключительными правами. Пароль по умолчанию: masterkey. Для того чтобы сменить пароль, используйте утилиту gsec из состава Firebird:

c:Program FilesFirebirdbin>gsec
GSEC> modify SYSDBA -pw NEW_PASS

При помощи утилиты gsec можно создавать, удалять, модифицировать и просматривать пользователей. Полный список команд можно получить, набрав help.

Подключение к Firebird из клиентского приложения

Для начала скачайте и установите пакет IBProvider Professional Edition.

IBProvider Professional Edition — это набор COM-компонент, которые позволяют работать с любыми версиями Firebird и InterBase. Компоненты поддерживаются большинством средств разработки: Delphi, C++ Builder, Visual C++, .Net Framework, C#, Visual Basic, VBScript, VBA и др.

Для проверки подключения к Firebird напишем простой сценарий на языке VBScript. Создайте пустой файл с расширением vbs и вставьте в него следующий код, указав правильный путь к базе данных:

Dim cn, cmd, rs, i
Set cn = CreateObject ("ADODB.Connection")

cn.Open "Provider=LCPI.IBProvider.3;" & _
	    "Data Source=localhost:d:temptest.fdb; " & _
	    "User Id=SYSDBA;" & _
	    "password=masterkey;" & _
	    "ctype=win1251;" & _
	    "auto_commit=true"

set rs = cn.execute("select * from MON$ATTACHMENTS")

do while not rs.EOF

   for i=0 to rs.Fields.Count - 1
       wscript.echo rs(i).Name & "=" & rs(i).Value
   next

   rs.MoveNext
loop

rs.close
cn.close

Запустите скрипт на выполнение в режиме командной строки, и вы увидите список активных подключений к БД.

Firebird и VBScript, Visual Basic, VBA

Для доступа к Firebird и InterBase из VBScript, VBA, Visual Basic используется библиотека ADO (ActiveX Data Objects). Множество примеров работы с этой библиотекой вы найдете в документации: примеры InterBase, Firebird VBScript, VBA, Visual Basic.

Firebird и Delphi

IBProvider предлагает несколько способов работы с InterBase и Firebird из Delphi:

  • dbGo (ADO Express) компоненты, работающие через библиотеку ADO.
  • прямой доступ к COM-интерфейсам ADO, минуя компоненты dbGo.
  • прямой доступ к COM-интерфейсам OLE DB при помощи сторонних VCL-компонент (OLE DB Direct/OLE DB Express).

Примеры работы Firebird Delphi, InterBase Delphi

Firebird и .Net

Для доступа к Firebird из .Net используется библиотека ADO.NET. На сайте IBProvider опубликовано большое пошаговое руководство, посвященное работе с Firebird в Visual Studio .Net (ADO.NET).

Дополнительные материалы по теме:

  • Примеры работы с ADO .Net для начинающих
  • Firebird 2.0 и ADO .Net (c#)
  • Firebird 2.1 и ADO .Net (c#)

Firebird и C++

В состав IBProvider Professional Edition входит C++ библиотека, которая предоставляет самый быстрый способ работы с OLE DB провайдерами из Visual C++ 2005-2008, а так же из C++ Builder.

Примеры для Firebird C++ и InterBase C++

Редактирование базы Firebird

В пустой базе данных необходимо создать таблицы, связи между таблицами, первичные ключи, индексы, хранимые процедуры, генераторы и другие объекты. Для редактирования баз данных Firebird вы можете использовать утилиту isql.exe.

Создаем таблицу:

SQL> CREATE TABLE cross_rate
CON> (
CON> from_currency VARCHAR(10) NOT NULL,
CON> to_currency VARCHAR(10) NOT NULL,
CON> conv_rate FLOAT NOT NULL,
CON> update_date DATE,
CON>
CON> PRIMARY KEY (from_currency, to_currency)
CON> );

Вставляем одну запись и делаем выборку из таблицы:

SQL> INSERT INTO cross_rate VALUES (‘Dollar’, ‘CdnDlr’, 1.3273, ’11/22/93′);
SQL> SELECT * from cross_rate;

FROM_CURRENCY TO_CURRENCY CONV_RATE UPDATE_DATE
============= =========== ============== ===========
Dollar CdnDlr 1.3273000 1993-11-22

Помимо isql существует различные графические утилиты администрирования Firebird.

Утилиты администрирования Firebird

FlameRobin

FlameRobin — поддерживает Firebird. Кросс-платформенная архитектура. Есть редактор SQL, DDL, управление пользователями.

Лицензия: open source, распространяется бесплатно.

Сайт:

FlameRobin

IBExpert

IBExpert — Поддерживает Firebird, InterBase, Yaffil. Редакторы DDL и DML. Визуальный построитель запросов. Автозавершение кода, Metadata Extractor, а так же множество других возможностей.

Лицензия: Бесплатный для exUSSR, для остальных: от 179 евро.

Сайт:

IBExpert

IB/FB Development Studio

IB/FB Development Studio — Визуальный дизайнер баз данных, встроенный MERGE, scheduler, Code auto completion, анализатор запросов, монитор производительности.

Лицензия: Бесплатно для России, для остальных: от 149 евро.

Сайт:

IB/FB Development Studio

Blaze Top

Blaze Top — Инструмент разработчика и администратора баз данных. Поддерживает Firebird и InterBase.

Лицензия: Бесплатно для России, для остальных: от 129 евро.

Сайт:

Blaze Top

Database Workbench

Database Workbench — поддерживает несколько серверов баз данных, среди которых есть Firebird и InterBase.
Отладка хранимых процедур, анализ планов, встроенные средства переноса данных и метаданных.

Лицензируется отдельно на InterBase и отдельно на Firebird. 171$ за каждый движок (InterBase или Firebird).

Сайт:

Database Workbench

Если в данном списке отсутствует ваша утилита, напишите на ibprovider.com и мы добавим её описание.

Полезные ссылки

  • Скачать Firebird
  • Скачать IBProvider Professional Edition.
  • Доступ к InterBase и Firebird из Delphi
  • Firebird ODBC, InterBase ODBC
  • Справочная документация по Firebird и InterBase
  • Справочная документация по Firebird и InterBase на ibase.ru

Теги записи: Firebird, Firebird C++, Firebird Delphi, Firebird .Net, Firebird VBScript, Firebird VBA, Firebird Visual Basic


Дата публикации:

20.10.2008

. Права на материал принадлежат: IBProvider. При перепечатке ссылка на сайт https://www.ibprovider.com/rus обязательна.

Установка FireBird

FireBird – является полностью бесплатным кроссплатформенным СУБД с закрытым исходным кодом и распространяется на условиях IPL и IDPL лицензий. Скачать СУБД FireBird можно на официальном сайте. Установка СУБД происходит в режиме мастера. На шаге выбора компонентов можно видеть два типа компонентов сервера: бинарный файл Classic Server и Super Server.

Отличия между Classic Server и Super Server

  • Classic Server – создается отдельный серверный процесс на каждое подключение;
  • Super Server — все клиентские подключения обслуживаются одним серверным процессом, имеется общий клиентский кэш;

После установки FireBird, в панели управления можно видеть апплет FireBird Server Manager, который позволяет осуществлять запуск сервера FireBird автоматически или вручную. Так же с помощью параметров Run, можно задать тип запуска FireBird: в виде отдельного сервиса или приложения.

При удачном запуске FireBird в панели трей будет отображаться значок сервера FireBird. С помощью контекстного меню приложения FireBird, можно осуществить остановку сервера и просмотр информации о количестве активных сервисов, баз данных, версии сервера и др.

В Windows Seven в FireBird Server Manager кнопка и элементы могут быть заблокированы и запустить сервер FireBird не возможно. Как вариант, запустить FireBird можно с помощью bat-файла.

Запуск FireBird с помощью команд

Один из простых и в тоже время удобных способов запуска FireBird Server – является использование команд. Файл fbserver.exe имеет ряд ключей, которые способны управлять работой сервера, а так же исправлять системные ошибки сервера во время работы.

К примеру, есть необходимость запускать FireBird Server с помощью команды start. Для этого в папке FireBird необходимо создать файл start.bat. Включить в его содержимое команду fbserver –a и сохранить файл. Ключ -a – свидетельствует о том, что сервер будет запущен в виде приложения.

Теперь для запуска FireBird необходимо в командной строке или строке поиска (Windows 7) ввести команду start. Если результат не обвенчался успехом, то необходимо изменить параметры среды окружения.

Настройка переменной среды в меню «Свойства системы» – «Дополнительные параметры системы» – «Переменные среды». Далее необходимо создать переменную PATH, нажать кнопку «Изменить» и прописать путь к папке bin сервера FireBird.

Для того чтобы изменения вступили в силу, необходимо перезагрузить компьютер. После настройки переменной среды операционной системы, будет доступен запуск FireBird Server с помощью команды start.

Проверить проделанную работу можно следующим образом. Например, вызовите окно «Выполнить» Win + R и введите команду start.

Осуществится запуск start.bat и тем самым выполнится команда fbserver –a.

Автор статьи — Караванский А.

Рассмотрим пример разворачивания базы данных FireBird в инфраструктуре Windows. Наша задача — научиться открывать базу данных в виде *.FDB-файла и получать доступ к ней через веб-интерфейс. В примере приведена клиент-серверная архитектура, то есть на одной windows-машине (№1) разворачивается сервер, а на второй (№2) — клиентский php-интерфейс.

№1: FireBird-сервер на базе Windows

Это может быть любая машина на базе Windows, например виртуальная. Нужно:

  • установить FireBird 2.5, версия «Classic, Superclassic & Superserver» в соответствии с разрядностью ОС
    • все опции оставлены по-умолчанию;
  • отключить FireWall или пробросить порт в FireWall (порт №3050)

№2: FireBird-php-клиент на базе Windows

По условиям задачи нужен веб-интерфейс, а для этого нужен веб-сервер. Поэтому:

  • развернем веб-сервер, к примеру xampp-portable-win32-1.8.2-5-VC9.7z
  • скачиваем https://github.com/mariuz/firebirdwebadmin и разворачиваем где-то в /htdocs веб-сервера
  • скачиваем «Embedded» версию FireBird соответствующей разрядности (например, Firebird-2.5.8.27089-0_Win32.zip)
  • из скачанного архива копируем файл binfbclient.dll в директорию apachebin веб-сервера
  • заходим в xampp/php/php.ini и раскомментируем строчку extension=php_interbase.dll
  • (пере)запускаем веб-сервер

Оно заработало:

  • в поле Database указываем полный путь до вашего *.FDB-файла на windows-машине №1
  • в поле Host указываем IP-адрес windows-машины №1
  • доступы: SYSDBA и пароль masterkey дефолтные, их следует не забыть сменить на windows-машине №1

Итог: мы развернули базу данных Firebird и обеспечили доступ к ней из веб-интерфейса. Все то же можно выполнить и на одной единственной машине, в этом случае вместо IP-адреса сервера следует указать «localhost».

Спасибо за внимание к этой экспресс-инструкции и если что-то непонятно, задавайте вопросы в комментариях.

Комментарии

Комментариев пока нет. Ваше мнение будет первым!


Ваше имя:
Ваш комментарий:

Сегодня существует множество полезных программных продуктов на все случаи жизни, но не всегда пользователи намеренно и осознанно устанавливают необходимый софт на компьютер. Иногда знакомиться с приложением приходится не по своей воле, и как оно появилось в системе юзеру в таких случаях обычно неизвестно. Обнаруженный в списке программ и компонентов софт может быть связан с другим программным обеспечением, важным для работы ОС или пользователя, поэтому не стоит спешить удалять его. Вместо этого лучше разобраться, что это за ПО и какие задачи выполняет, а уже исходя из полученной информации решать, оставить его на компьютере или удалить. Так, среди установленных приложений пользователи могут обнаружить Firebird. Ввиду специфики софта не все знают, что представляет собой данное программное решение и для чего используется.

Firebird – что это за программа

Зачем нужен Firebird

Рассмотрим, что это за программа, какие функциональные возможности предлагает Firebird, а также что особенного в данном ПО.

Зачем нужен Firebird 2020

Firebird – это бесплатная система управления базами данных (СУБД) с открытым исходным кодом. Это означает, что получить доступ к исполняемому коду ПО и внести свои коррективы сможет каждый, кто захочет самостоятельно адаптировать программу под определённые задачи. Софт распространяется бесплатно, кроме того он совместим со всеми актуальными на сегодня платформами, такими как Windows, Linux, MacOS, Unix-системами и прочими.

ПО может охватывать разные сферы деятельности и применяться как в государственных, так и частных организациях. Благодаря открытому исходному коду СУБД используется разработчиками многих коммерческих и бесплатных продуктов. Так, например, Firebird может быть задействована программами бухгалтерского и управленческого учётов, организационной, экономической деятельности предприятий и т. д. При удалении Firebird, использующая её программа не сможет функционировать, выдавая ошибку доступа к базе данных.

Выполняемые запросы разного характера в Firebird не блокируют друг друга, что позволяет им выполняться одновременно, а резервное копирование баз не требует остановки сервера, не мешает работе и совершается незаметно для пользователя.

Установка и работа программы

Установка Firebird

Несмотря на то, что Firebird является мощной СУБД и может работать с достаточно большими базами данных и с сотнями пользователей, её инсталлятор весит обычно не более 7 Мб (в зависимости от версии операционной системы), программа не займёт много места на жёстком диске. Процесс инсталляции выполняется в автоматическом режиме, так что с этим трудностей не возникает. Софт не требует настройки, запускается сразу после установки и работает в автоматическом режиме без участия в процессе системных администраторов.

Как запустить приложение Firebird

Когда Firebird выполняется как приложение, в системном трее будет видна его иконка, вид которой зависит от того, запущен только сервер или он контролируется Guardian. Управление посредством службы Guardian рекомендовано при выполнении Суперсервера, в случае с Классическим сервером Guardian не требуется, её можно не ставить при инсталляции.

Запускает Firebird инсталлятор, но если сервер не был запущен или инициализирован, до установки автоматического старта запускать или инициализировать его придётся вручную. Это можно сделать через Пуск – Все программы – Firebird или с командной строки. Команда для старта Guardian fbguard.exe -a или ibguard.exe -а (для версии 1.0.x), для запуска Суперсервера напрямую следует набрать fbserver.exe -a или ibserver.exe -а (для версии 1.0.x). Для Классического сервера также можно вызвать окно командной строки, перейти в каталог in и ввести fb_inet_server.exe -a. Если при установке софта выбран режим «Use Guardian», запустить службу можно из того же каталога командой fbguard.exe -с -a.

Как пользоваться Firebird

Кроме СУБД для полноценного функционирования нужна также IBExpert, оболочка, требуемая для разработки и администрирования. Она, как и Firebird Server, идёт в связке с программой. После того, как скачали инсталлятор с официального ресурса, начинаем установку. От пользователя требуется минимальное участие, инсталляция выполнится автоматически. По умолчанию настроен автоматический запуск, который будет осуществляться при каждом старте компьютера.

Чтобы начать работу, нужно запустить IBExpert, при первом старте оболочки потребуется ответить на запрос об использовании многотипных элементов интерфейса. В случае согласия интерфейс скопирует набор инструментов DELPHI.

IBExpert и Firebird

Выполняем следующие действия, чтобы создать первую базу:

  • В главном меню выбираем «База данных».
  • Жмём «Создать».
  • В новом окне в пункте «Сервер» выбираем «Локальный».

Firebird База данных

После этого потребуется выбрать место хранения базы данных, прочие параметры будут заполнены автоматически. Для пользователя с логином SYSDBA применяется пароль по умолчанию masterkey. Чтобы сохранить настройки, жмём «Ок».

В Firebird поддерживаются типы данных SQL, кроме того введены динамически изменяемые большие двоичные данные и многомерные однородные массивы. Доступные типы данных зависят от версии СУБД. Значения определяются для каждого столбца в таблице Firebird, они указывают на характеристики данных и определяют, какие операции могут выполняться с ними, а также какое дисковое пространство занимают элементы.

Откуда Firebird попал к вам на компьютер

Если вы не качали конкретно Firebird, софт мог установиться вместе с другой программой, использующей его для корректного функционирования. В таком случае удалять Firebird не следует, поскольку такие действия приведут к неприятным последствиям в виде отказа работы программного обеспечения, которое обращается к СУБД.

Удаление Firebird

Если вы решили, что программное обеспечение бесполезно для вас, его несложно удалить. Процесс выполняется в два шага:

Firebird – одна из самых популярных и удобных систем управления базами данных. Софт будет превосходным вариантом решения для эффективной работы, являясь инструментом упорядочивания, обработки и хранения сведений. К тому же Firebird занимает совсем мало места на диске и не нагружает ресурсы.

Понравилась статья? Поделить с друзьями:
  • Как запустить программу в терминале windows
  • Как запустить сервер apache на windows 10
  • Как запустить процесс explorer exe в windows 10
  • Как запустить программу в режиме совместимости с windows xp
  • Как запустить сенсорную клавиатуру в windows 10