A preparation, pre-installation
1, the configuration of the network card
[root@gbase8a ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:2E:E9:71
TYPE=Ethernet
UUID=771cc37d-0811-4961-8648-b280f3f8232f
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
DNS1 = 192.168.204.1
IPADDR=192.168.204.131
NETMASK=255.255.255.0
GETEWAY=192.168.204.1
[root@gbase8a ~]#service network restart
2, the system checks whether the packages must be installed
When installing the system, if not select "Desktop" or "Software development workstation" install, or unclear
Chu system installation, do the following method to check whether the system is required packages are installed:
# Rpm -qa | grip boost
boost-signals-1.41.0-11.el6_1.2.x86_64
boost-wave-1.41.0-11.el6_1.2.x86_64
boost-python-1.41.0-11.el6_1.2.x86_64
boost-system-1.41.0-11.el6_1.2.x86_64
boost-date-time-1.41.0-11.el6_1.2.x86_64
boost-serialization-1.41.0-11.el6_1.2.x86_64
boost-graph-1.41.0-11.el6_1.2.x86_64
boost-test-1.41.0-11.el6_1.2.x86_64
boost-program-options-1.41.0-11.el6_1.2.x86_64
boost-regex-1.41.0-11.el6_1.2.x86_64
boost-1.41.0-11.el6_1.2.x86_64
boost-iostreams-1.41.0-11.el6_1.2.x86_64
boost-filesystem-1.41.0-11.el6_1.2.x86_64
boost-thread-1.41.0-11.el6_1.2.x86_64
# rpm -qa | grep libtool
libtool-ltdl-2.2.6-15.5.el6.x86_64
# Rpm -qa | seized in April
apr-1.3.9-3.el6_1.2.x86_64
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
April-util-1.3.9-3.el6_0.1.x86_64
# Rpm -qa | grip cpp
qpid-cpp-client-ssl-0.12-6.el6.x86_64
qpid-cpp-server-0.12-6.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
qpid-cpp-server-ssl-0.12-6.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
abrt-addon-ccpp-2.0.4-14.el6.x86_64
qpid-cpp-client-0.12-6.el6.x86_64
# Rpm -qa | grip elfutils
elfutils-libelf-0.152-1.el6.x86_64
elfutils-0.152-1.el6.x86_64
elfutils-libs-0.152-1.el6.x86_64
# Rpm -qa | grep file
filesystem-2.4.30-3.el6.x86_64
mozilla-filesystem-1.9-5.1.el6.x86_64
file-libs-5.04-11.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
foomatic-db-filesystem-4.0-7.20091126.el6.noarch
file-5.04-11.el6.x86_64
libsndfile-1.0.20-5.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
file-roller-2.28.2-6.el6.x86_64
boost-filesystem-1.41.0-11.el6_1.2.x86_64
desktop-file-utils-0.15-9.el6.x86_64
# rpm -qa | grep gcc
libgcc-4.4.6-3.el6.x86_64
# Rpm -qa | grip gdb
gdbm-1.8.0-36.el6.x86_64
gdb-7.2-50.el6.x86_64
eggdbus-0.6-3.el6.x86_64
# rpm -qa|grep libgomp
libgomp-4.4.6-3.el6.x86_64
# Rpm -qa | grep libicu
libicu-4.2.1-9.el6.x86_64
# Rpm -qa | grep libproxy
libproxy-0.3.0-2.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
# rpm -qa|grep neon
neon-0.29.3-1.2.el6.x86_64
# rpm -qa|grep pakchois
pakchois-0.4-3.2.el6.x86_64
# rpm -qa|grep patch
patch-2.6-6.el6.x86_64
# rpm -qa|grep perl
perl-CPANPLUS-0.88-119.el6_1.1.x86_64
perl-Params-Check-0.26-119.el6_1.1.x86_64
perl-Log-Message-0.02-119.el6_1.1.x86_64
perl-Compress-Zlib-2.020-119.el6_1.1.x86_64
perl-ExtUtils-CBuilder-0.27-119.el6_1.1.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
perl-Time-HiRes-1.9721-119.el6_1.1.x86_64
perl-libxml-perl-0.08-10.el6.noarch
perl-version-0.77-119.el6_1.1.x86_64
perl-devel-5.10.1-119.el6_1.1.x86_64
perl-Compress-Raw-Zlib-2.023-119.el6_1.1.x86_64
perl-Log-Message-Simple-0.04-119.el6_1.1.x86_64
perl-Module-CoreList-2.18-119.el6_1.1.x86_64
perl-XML-Twig-3.34-1.el6.noarch
perl-CGI-3.51-119.el6_1.1.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
perl-libs-5.10.1-119.el6_1.1.x86_64
perl-5.10.1-119.el6_1.1.x86_64
perl-ExtUtils-ParseXS-2.2003.0-119.el6_1.1.x86_64
perl-Module-Load-Conditional-0.30-119.el6_1.1.x86_64
perl-IO-Compress-Base-2.020-119.el6_1.1.x86_64
perl-Archive-Tar-1.58-119.el6_1.1.x86_64
perl-Archive-Extract-0.38-119.el6_1.1.x86_64
perl-Module-Loaded-0.02-119.el6_1.1.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-Module-Build-0.3500-119.el6_1.1.x86_64
perl-parent-0.221-119.el6_1.1.x86_64
perl-core-5.10.1-119.el6_1.1.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
perl-Parse-CPAN-Meta-1.40-119.el6_1.1.x86_64
perl-libwww-perl-5.833-2.el6.noarch
perl-Pod-Escapes-1.04-119.el6_1.1.x86_64
perl-Pod-Simple-3.13-119.el6_1.1.x86_64
perl-Test-Harness-3.17-119.el6_1.1.x86_64
perl-Module-Load-0.16-119.el6_1.1.x86_64
perl-Package-Constants-0.02-119.el6_1.1.x86_64
perl-IO-Zlib-1.09-119.el6_1.1.x86_64
perl-File-Fetch-0.26-119.el6_1.1.x86_64
perl-Object-Accessor-0.34-119.el6_1.1.x86_64
perl-URI-1.40-2.el6.noarch
perl-CPAN-1.9402-119.el6_1.1.x86_64
perl-ExtUtils-Embed-1.28-119.el6_1.1.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
perl-Module-Pluggable-3.90-119.el6_1.1.x86_64
perl-ExtUtils-MakeMaker-6.55-119.el6_1.1.x86_64
perl-Term-UI-0.20-119.el6_1.1.x86_64
perl-Digest-SHA-5.47-119.el6_1.1.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
perl-Locale-Maketext-Simple-0.18-119.el6_1.1.x86_64
perl-IPC-Cmd-0.56-119.el6_1.1.x86_64
perl-IO-Compress-Zlib-2.020-119.el6_1.1.x86_64
perl-Test-Simple-0.92-119.el6_1.1.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
perl-Time-Piece-1.15-119.el6_1.1.x86_64
# Rpm -qa | grep ppl
libpanelappletmm-2.26.0-3.el6.x86_64
poppler-utils-0.12.4-3.el6_0.1.x86_64
poppler-glib-0.12.4-3.el6_0.1.x86_64
wpa_supplicant-0.7.3-2.el6.x86_64
poppler-data-0.4.0-1.el6.noarch
poppler-0.12.4-3.el6_0.1.x86_64
gnome-applets-2.28.0-7.el6.x86_64
gdm-user-switch-applet-2.30.4-32.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
# RPM -qa | grep unzip
unzip-6.0-1.el6.x86_64
# rpm -qa|grep xz
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
# Rpm -qa | grep json
python-simplejson-2.0.9-3.1.el6.x86_64
json-c-0.10-2.el6.x86_64
Second, the installation GBase 8a
1, create a user under Linux
Before installing GBase 8a, you need to create a new operating system user with root user in Linux, the new user GBase 8a for the installation and operation after installation.
To do the following, create gbase users, and change its password:
# Useradd charge
# Passwd charge
Gbase change the user's password.
New Password:
Re-enter the new password:
passwd: all authentication tokens have been successfully updated.
Gbase switch to the user, the test is successfully created.
# Su - charge
$
2, extract the installation files
The installation package of compressed files (such as: GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2) copied to a directory of the file system. Enter the directory (hereinafter, assuming the packages are located under / home / gbase directory), the user switch to GBASE, decompress the tar command in command-line mode. Unzip command is as follows:
# Su - charge
$ Cd / home / charge
$ Tar xfj GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2
After decompression, will generate GBaseInstall directory under the extracted directory.
Description: GBase8a_8.5.1.2_build5.4_Redhat6.2_x86_64.tar.bz2 in, "8.5.1.2- build5.4" for the product version number, "redhat6.2-x86_64" as the product is suitable for the operating system and platform.
3, start the installation
Use gbase user, enter GBaseInstall directory, execute GBase 8a installation script Install_lin.sh, you can install it. Specific command is as follows:
$ Cd / home / charge / GBaseInstall
$ sh ./Install_lin.sh
4. Installation procedure example
GBase 8a of the installation process, the system will automatically ask to create GBase 8a instance name, ask for information installation path, installation ports, etc., if you want to use the default settings, you will be prompted after asking for information, direct "Enter" button, if necessary change the setting information inquiry, direct entry to the new setup information. as follows:
$ sh ./Install_lin.sh
*******************************************************************************
**
Thank you for choosing GBase product!
Please read carefully the following licencing agreement before installing any
product:
TIANJIN GENERAL DATA TECHNOLOGY CO. LTD. LICENSE AGREEMENT
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSETERMS
(COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWAREMEDIA PACKAGE. BY
OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF
YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE
TERMS. IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE
TO YOUR PLACE OF PURCHASE FOR A REFUND.
1. LICENSE TO USE. GeneralData grants you a non-exclusive and non-transferable
license for the internal use only of the accompanying software and documentation
and any error corrections provided by GeneralData(collectively "Software"), by the
number of users and the class of computer hardware for which the corresponding fee
has been paid.
2. RESTRICTIONS. Software is confidential and copyrighted. Title to Software and
all associated intellectual property rights is retained by GeneralData and/or its
licensors. Except as specifically authorized in any Supplemental License Terms,
you may not make copies of Software, other than a single copy of Software for archival
purposes. Unless enforcement is prohibited by applicable law, you may not
modify,decompile, or reverse engineer Software. You acknowledge that Software is
not designed, licensed or intended for use in the design,construction, operation
or maintenance of any nuclear facility. GeneralData disclaims any express or
implied warranty of fitness for such uses.No right, title or interest in or to any
trademark, service mark, logo or trade name of GeneralData or its licensors is granted
under this Agreement.
3. DISCLAIMER OF WARRANTY. Unless specified in this agreement, all express of
implied conditions, representations and warranties, including any implied warranty
of merchantability, fitness for aparticular purpose or non-infringement are
disclaimed, except to theextent that these disclaimers are held to be legally
invalid.
4. LIMITATION OF LIABILITY. To the extent not prohibited by law, in no event will
GeneralData or its licensors be liable for any lost revenue, profit or data, or for
special, indirect, consequential,incidental orpunitive damages, however caused
regardless of the theory of liability, arising out of or related to the use of or
inability to use software, even if GeneralData has been advised of the possibility
of such damages.In no event will GeneralData's libility to you, whether incontract,
tort (including negligence), or otherwise, exceed the amount paid by you for Software
under this Agreement. The foregoing limitations will apply even if the above stated
warranty fails of itsessential purpose.
5. TERMINATION. This Agreement is effective until terminated. Youmay terminate
this Agreement at any time by destroying all copies of Software. This Agreement
will terminate immediately without noticefrom GeneralData if you fail to comply with
any provision of this Agreement.Upon Termination, you must destroy all copies of
Software.
6. EXPORT REGULATIONS. All Software and technical data delivered underthis
Agreement are subject to US export control laws and may be subject to export or import
regulations in other countries. You agree to comply strictly with all such laws
and regulations and acknowledge that you have the responsibility to obtain such
licenses to export,re-export, or import as may be required after delivery to you.
7. CHINESE GOVERNMENT RESTRICTED. If Software is being acquired by or on behalf
of the Chinese Government , then the Government's rights in Software and accompanying
documentation will be only as set forth in this Agreement.
8. GOVERNING LAW. Any action related to this Agreement will be governed by Chinese
law: "COPYRIGHT LAW OF THE PEOPLE'S REPUBLIC OF CHINA","PATENT LAW OF THE PEOPLE'S
REPUBLIC OF CHINA","TRADEMARK LAW OF THE PEOPLE'S REPUBLIC OF CHINA","COMPUTER
SOFTWARE PROTECTION REGULATIONS OF THE PEOPLE'S REPUBLIC OF CHINA". No choice of
law rules of any jurisdiction will apply."
9. SEVERABILITY. If any provision of this Agreement is held to be unenforceable,
this Agreement will remain in effect with the provision omitted, unless omission
would frustrate the intent of the parties, inwhich case this Agreement will
immediately terminate.
10. INTEGRATION. This Agreement is the entire agreement between you and GeneralData
relating to its subject matter. It supersedes all prior or contemporaneous oral
or written communications, proposals,representations and warranties and prevails
over any conflicting or additional terms of any quote, order, acknowledgment, or
other communication between the parties relating to its subject matter during the
term of this Agreement. No modification of this Agreement will be binding, unless
in writing and signed by an authorize depresentative of each party. When the
translation document has the different meaning or has the conflicting views with
Chinese original text conflict, should take the laws and regulations promulgation
unit as well as the Generaldata issue Chinese original text as the standard.
*******************************************************************************
**
Do you accept the above licence agreement (Yes/No, default=No) ?
The inquiry message asking whether to accept the license agreement to type "Y", press Enter, or just press Enter to select the default "No"
Option, the representatives do not agree, exit the installation.
AND
*******************************************************************************
**
Welcome to install GBase products
*******************************************************************************
**
Please input the changing of the software installation directory (Default: / home / charge / Mandate):
The inquiry information required for the installation path, if the user wishes to use the default path, directly "Enter" button, or lose
The new installation path, select the default path of this document.
Installing all software packages ...
Software packages installation done.
*******************************************************************************
**
Welcome to create GBase database instance
*******************************************************************************
**
Please input the new database instance name (default: gbase8a):
The inquiry information is asked to enter a user name to create an instance of a gbase 8a, if the user wishes to use the default instance name
He said direct "Enter" button, or enter a new instance name, select the default instance name in this document.
Please input the port number for the new database instance (default:5258):
The inquiry information is asked to enter the port number used GBase 8a instance, if the user wishes to use the default port number directly
"Enter" button, or enter a new port number, select this document, the default port number (in accordance with 1.6've checked 5258
The port is not occupied).
GBase is creating the New 'gbase8a' instance ...
create gbase_host.cnf success
The host key file is genarate at GBASE_BASE/config/gbase_host.cnf.
Congratulations. Your GBase installation is successful.
Please refer to the product's manuals to start using GBase product
Users see "create gbase_host.cnf success" after the message, explained under "$ GBASE_BASE / config" directory, successfully created the "gbase_host.cnf" file. When the display "Your GBase installation is successful.", You have successfully installed the GBase 8a database products.
5, the license file
First, a user gbase run the following program: gbase_gethostkey, local host generates a string of 32 characters:
$ gbase_gethostkey
hostkey: 8f1ba214e879c367ea35c17aaf3b8234
The user sends the host string of 32 characters in the file to the database vendors (Please send your hostkey file sent to [email protected] while, need to attach the mail to install the operating system name and version GBase 8a product used), database vendors will eventually provide users with authorization documents (32-character license string), the user will be granted the files are copied to $ home / gbase / GBase / config / directory. As follows: $ home / gbase / GBase /config/gbase.lic file (if gbase.lic does not exist, the need for manual).
Third, start and stop the login
1, start and stop servers
After a successful installation GBase 8a, the user execute the following command start and stop gbase.server service, start and stop the operating system user gbase.server services for the linux user-created, this is gbase users:
Ø start the service:
$ Gbase.server start
Ø stop the service:
$ Gbase.server stop
Ø restart the service:
$ Gbase.server restart
2, login and logout
$ Charge -uroot -p
Enter password:
GBase client 8.5.1.2 build 27952. Copyright (c) 2004-2013, GBase. All Rights
Reserved.
charge> USE charge;
Query OK, 0 rows affected (Elapsed: 00:00:00.03)
charge>
3, Exit
Direct input \ q to exit login.
charge> \ q
Bye
Fourth, to modify the database root password
After installing GBase 8a, the system will automatically create a default database root user, the default password is blank. In order to improve the safety of products, we recommend that users log on GBase 8a, immediately change the root password, as follows:
[Charge @ gbase8a ~] $ charge -uroot
GBase client 8.5.1.2 build 27952. Copyright (c) 2004-2013, GBase. All Rights
Reserved.
charge> SET FOR root password = password ( 'gbase8a');
Query OK, 0 rows affected
charge> \ q
After modification, log in again.
[Charge @ gbase8a ~] $ charge -uroot -pgbase8a
GBase client 8.5.1.2 build 55129. Copyright (c) 2004-2016, GBase. All Rights Reserved.
V. uninstall GBase 8a
When the user needs to uninstall GBase 8a database, need to go to the installation directory (eg: / home / gbase / GBase), type the command: sh ./server/bin/Uninstall_lin.sh. After uninstalling the program started, the cancellation of the database service, in addition to the installation directory, delete the directory instance in the case of the user's permission, and automatically delete the environment variable. Specific process is as follows:
# Su - charge
$ Cd / home / charge / Secure / server / bin /
$ sh Uninstall_lin.sh
************************************************************************
*********
Welcome to uninstall GBase products
************************************************************************
*********
Do you want to delete GBase product (Yes/No, default=No) ?
and
The following is the list of installed GBase instances for current user:
/ Home / charge / Secure / Userdata / gbase8a 5258
Do you want to delete all instances (Yes/No, default=No) ?
and
The uninstallation is successful.
When the show "The uninstallation is successful.", The instructions to uninstall successfully.
Note: We strongly recommend that users do not store private data in the database installation directory, so as to avoid unnecessary losses in the database during the uninstall process.
Sixth, upgrade and rollback
1, upgrade
We need to stop the service before the upgrade, and then use gbase user enters GbaseInstall directory, execute "./Install_lin.sh -U" upgrade script, using the following command:
# Cd / home / charge / setup / GBaseInstall
#./Install_lin.sh -U
Note: 1) after the upgrade backup GBase / server and GBase / conf directory to "~ / GBase8a_BackUp _ * tar.bz2." File;
2) After the upgrade configuration file "~ / GBase / config / gbase_8a_gbase8a.cnf" parameters are reset to an initial value;
3) If the cluster upgrade from the following versions build6.8 to build6.8 above (including build6.8) version, need to re-apply for license;
2, rollback
Before performing GBase 8a rollback operation, you first need to stop the service, and then use the tar command to extract the backup file to the installation directory. details as follows:
#tar -jxvf ~ / GBase8a_BackUp_20150202161530.tar.bz2 -C ~ / Mandate
Seven, license file expired
Reacquire the license file
Eight, exception handling
1, the installation process is unsuccessful
$ RM - RF / charge
$ Cd / home / charge / setup / GbaseInstall
$sh clear.sh
2. Uninstall unsuccessful treatment
$ RM - RF / home / charge / Mandate