From Fedora Project Wiki

No edit summary
Line 1: Line 1:
'''Firebird''' is a cross-platform SQL-database.
'''Firebird''' is a cross-platform SQL-database. These are quick instructions how to get it running on Fedora / CentOS system.


These are quick instructions how to get it running on Fedora / CentOS system.
== Good to know ==


* binaries have been renamed with postfix -fb to avoid conflict with ODBC-binaries.
* firebird comes with default database employee.
* server config file is /etc/firebird/firebid.conf
* all databases reside physically in /var/lib/firebird/data directory
* on CentOS /etc/init.d/firebird-superserver start arguments (''-daemon -forever -pidfile'') are in wrong order.
Packager's notes:
# cat /usr/share/doc/$(rpm -q --qf="%{NAME}-%{VERSION}" firebird-filesystem)/README.Fedora


== Installation ==
== Installation ==
There are [http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/qsg25-classic-or-super.html three versions of Firebird server software]. You want superserver.
There are [http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/qsg25-classic-or-super.html three versions of Firebird server software]. You want superserver.


  # yum install -y firebird-superserver
  # yum install -y firebird-superserver
  # service firebird-superserver start
  # service firebird-superserver start


== Chaging admin password ==
== Chaging the admin password ==
  # gsec -user sysdba -pass masterkey -mo sysdba -pw newpwd1
  # gsec -user sysdba -pass masterkey -mo sysdba -pw newpwd1


== Creating user ==
== Creating a user ==
  # gsec -user sysdba  -password masterke   add dude -pw dudepw1
  # gsec -user sysdba  -password masterke add dude -pw dudepwd1




== Creating database ==
== Connecting to a database ==
# isql-fb -u sysdba -p masterkey employee
SQL> SHOW USERS;
# SYSDBA
SQL> SHOW VERSION;
ISQL Version: LI-V2.5.5.26952 Firebird 2.5
Server version:
Firebird/linux AMD64 (access method), version "LI-V2.5.5.26952 Firebird 2.5"
Firebird/linux AMD64 (remote server), version "LI-V2.5.5.26952 Firebird 2.5/tcp (alca.netnix.ee)/P12"
Firebird/linux AMD64 (remote interface), version "LI-V2.5.5.26952 Firebird 2.5/tcp (alca.netnix.ee)/P12"
on disk structure version 11.2
SQL>^D
#
== Creating a database ==
There is no need to connect any database to create a new database into server.
# isql-fb -u sysdba -p masterkey
SQL> CREATE DATABASE '/var/lib/firebird/data/foobar.fdb' page_size 8192;
SQL>  SHOW DATABASE;
Database: /var/lib/firebird/data/foobar.fdb
        Owner: SYSDBA                       
PAGE_SIZE 8192
Number of DB pages allocated = 164
Sweep interval = 20000
Forced Writes are ON
Transaction - oldest = 1
Transaction - oldest active = 2
Transaction - oldest snapshot = 2
Transaction - Next = 6
ODS = 11.2
Default Character set: NONE
SQL>

Revision as of 08:27, 17 April 2017

Firebird is a cross-platform SQL-database. These are quick instructions how to get it running on Fedora / CentOS system.

Good to know

  • binaries have been renamed with postfix -fb to avoid conflict with ODBC-binaries.
  • firebird comes with default database employee.
  • server config file is /etc/firebird/firebid.conf
  • all databases reside physically in /var/lib/firebird/data directory
  • on CentOS /etc/init.d/firebird-superserver start arguments (-daemon -forever -pidfile) are in wrong order.

Packager's notes:

# cat /usr/share/doc/$(rpm -q --qf="%{NAME}-%{VERSION}" firebird-filesystem)/README.Fedora

Installation

There are three versions of Firebird server software. You want superserver.

# yum install -y firebird-superserver
# service firebird-superserver start

Chaging the admin password

# gsec -user sysdba -pass masterkey -mo sysdba -pw newpwd1

Creating a user

# gsec -user sysdba  -password masterke  add dude -pw dudepwd1


Connecting to a database

# isql-fb -u sysdba -p masterkey employee
SQL> SHOW USERS;
# SYSDBA

SQL> SHOW VERSION;
ISQL Version: LI-V2.5.5.26952 Firebird 2.5
Server version:
Firebird/linux AMD64 (access method), version "LI-V2.5.5.26952 Firebird 2.5"
Firebird/linux AMD64 (remote server), version "LI-V2.5.5.26952 Firebird 2.5/tcp (alca.netnix.ee)/P12"
Firebird/linux AMD64 (remote interface), version "LI-V2.5.5.26952 Firebird 2.5/tcp (alca.netnix.ee)/P12" 
on disk structure version 11.2

SQL>^D
#

Creating a database

There is no need to connect any database to create a new database into server.

# isql-fb -u sysdba -p masterkey
SQL> CREATE DATABASE '/var/lib/firebird/data/foobar.fdb' page_size 8192;
SQL>  SHOW DATABASE;
Database: /var/lib/firebird/data/foobar.fdb
        Owner: SYSDBA                         
PAGE_SIZE 8192
Number of DB pages allocated = 164
Sweep interval = 20000
Forced Writes are ON
Transaction - oldest = 1
Transaction - oldest active = 2
Transaction - oldest snapshot = 2
Transaction - Next = 6
ODS = 11.2
Default Character set: NONE
SQL>