ebase Maintenance Guide V3.0
ebase Maintenance Guide V3.0
Maintenance Guide
Version: V3.0
ZTE CORPORATION
NO. 55, Hi-tech Road South, ShenZhen, [Link]
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: [Link]
E-mail: support@[Link]
LEGAL INFORMATION
Copyright © 2011 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by
contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE
CORPORATION or of their respective owners.
This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions
are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose,
title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the
use of or reliance on the information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications
covering the subject matter of this document. Except as expressly provided in any written license between ZTE
CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter
herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit ZTE technical support website [Link] to inquire related information.
The ultimate right to interpret this product resides in ZTE CORPORATION.
Revision History
I
3.3.3 Making a Database-Level Backup ............................................................. 3-7
3.3.4 Making a Database-Level Recovery .......................................................... 3-7
3.3.5 Making a System-Level Backup ................................................................ 3-8
3.3.6 Making a System-Level Recovery ............................................................. 3-9
3.3.7 Verifying a Logical Recovery ..................................................................... 3-9
II
Appendix A Frequently Used Commands............................................... A-1
Appendix B iTool Description .................................................................. B-1
B.1 Automatic Preventive Maintenance Operations .................................................... B-1
B.2 Maintenance Items............................................................................................. B-8
Glossary .......................................................................................................... I
III
IV
About This Manual
Purpose
This manual describes the functions, system architecture, application scenarios,
maintenance tools, maintenance operations, backup and recovery, and common
troubleshooting procedures of the ebase.
Intended Audience
This manual is intended for:
Chapter Summary
1, ebase Introduction Describes the functions, system architecture, and application scenarios
of the ebase.
2, ebase Routine Describes the common maintenance tools for the ebase and the
Maintenance maintenance contents.
3, ebase Backup and Describes the backup and recovery operations for the ebase and recovery
Recovery verification operations.
4, Common Problems Describes the common problems with ebase components and the
recommended troubleshooting procedures.
A, Frequently Used Describes the commands frequently used during the ebase routine
Commands maintenance.
B, iTool Description Describes the maintenance operations using the iTool and the maintenance
items.
I
Conventions
This manual uses the following typographical conventions:
Typeface Meaning
Italics Variables in commands. It may also refer to other related manuals and documents.
Bold Menus, menu options, function names, input fields, option button names, check boxes,
drop-down lists, dialog box names, window names, parameters, and commands.
Constant Text that you type, program codes, filenames, directory names, and function names.
width
Command prompt in an operating system. The # is for the root user, and the $ is for
#/$
other users.
II
Chapter 1
ebase Introduction
The ebase, short for EXTRABASE, is a high-performance in-memory database
management system. The ebase is a relational database management system (RDBMS)
that supports the standard SQL syntax and has a similar syntax style to Sybase.
The ebase operates and stores data based completely on a physical memory. Consisting
of a main server program and a number of peripheral programs, the ebase functions as a
repository for caching data and cannot be replaced with a commercial database.
Table of Contents
Functions ...................................................................................................................1-1
Application Scenario...................................................................................................1-3
System Architecture ...................................................................................................1-4
Operation Environment...............................................................................................1-7
1.1 Functions
The ebase provides a mechanism to accurately control memory usage. The ebase
also supports automatic installation, upgrade, preventive maintenance and GUI-based
configuration in accordance with iTool standards, which facilitates the use and
maintenance.
The functions of the ebase are as follows:
l Support the standard SQL syntax.
Note:
There is no system table in the ebase. Users can run the show tables and show proc
edures commands to view the definitions of tables and stored procedures in the data
dictionary. For the SQL commands and syntaxes that the ebase supports, refer to
Appendix A.
The ebase supports the creation and management of database objects (tables,
indexes, and stored procedures) using DDL commands. The ebase supports
DQL and DML commands including SELECT, INSERT, UPDATE, DELETE, and
TRUNCATE TABLE that are compliant with SQL-92. The ebase also supports data
import and export using SQL commands. In addition, the ebase provides built-in
1-1
functions, for example, aggregate functions, which can be used in SQL commands
and stored procedures.
l Support the data index function.
Note:
Up to four indexes are allowed for each table. The performance of the inserted data
is degraded because each index occupies extra memory space.
The ebase supports Red Black Tree (RBT) indexes and range search. Indexes can
be created, deleted, and rebuilt.
l Support the data synchronization function.
Database synchronization refers to transferring the updated data in the in-memory
database to a third-party database in a quasi-realtime way to ensure data consistency.
The ebase provides a module that synchronizes data from a database to another
homogeneous or heterogeneous database, for example, from an Oracle or Sybase
database to the ebase, or from the ebase to an Oracle or Sybase database.
The OMM's operation and maintenance user interface (UI) provides a tool for users
to accomplish quick data synchronizations.
l Support iTool-based automatic installation and upgrade.
The ebase completely follows iTool standards to implement automatic installation
and upgrade. Engineering personnel first collect engineering information, use the
commissioning and upgrade planning UI to plan the nodes to be deployed, pack
the collected information into an equipment package or a product package, and
then send the package to the site. On-site engineers only need to perform simple
operations to accomplish automatic installation and upgrade.
The ebase provides an iTool-based maintenance package. Users can use the
package to check the system operation status of each ebase node and configure
alarms for exceptions. Users only need to configure and save node information to
complete preventive routine maintenance.
1-2
Caution!
A whole-process tracing affects service operation and ebase performance, so contact
ZTE technical support for confirmation before you perform a whole-process tracing.
The ebase provides a simplified tool for tracing the execution process of a single SQL
command or a single stored procedure.
Note:
Because the ebase's synchronization module is designed for data management instead
of for synchronization or disaster recovery for a large amount of data, the synchronization
module is only suitable for synchronizing tables with little record changes.
The ebase and the service processor are co-located on the same server as the front-end
server. The service processor has a direct access to the ebase through the JDBC/ODBC
interface. The ebase synchronizes the updated service data to the commercial database
(for example, Oracle database) on the back end in real time.
1-3
l The connection pool receives SQL requests from clients, executes the received
requests, and then returns results.
1-4
l The analyzer analyzes SQL statements and generates graphs. The optimizer chooses
the optimal paths, for example, the optimal index according to the query criteria.
l The memory pool manages its own memory by frequently releasing small blocks of
memory during the process of analysis.
The memory storage engine accomplishes the data management function, including
the bitmap module and the page storage management module.
à The bitmap module is divided into level 1 bitmap management and level 2 bitmap
management. Level 1 bitmap management determines occupied or idle pages.
Level 2 bitmap management determines occupied or idle records.
Components
The ebase includes the following components:
l extrabase: the ebase's core program, which is responsible for data storage
management, index management, data persistence, and processing of application
query requests.
l xsql: the ebase's built-in command line client tool. It is similar to the Sybase's isql and
allows users to connect to a database using xsql commands. Users can enter SQL
statements in the command line interface.
l ODBC library: The ebase provides a C programming interface. Applications can
invoke the corresponding Application Programming Interface (API) to execute SQL
statements for execution results.
Open Database Connectivity (ODBC) is a unified interface standard intended for
database access. ODBC provides client programs with a set of standard program
design interfaces for database applications, and the set of program design interfaces
can be used to compile application programs used to perform add, delete, modify,
query, and search operations to a database.
l JDBC library: Java programming interface provided by the system. Applications can
invoke the corresponding API to execute SQL statements for execution results.
Java DataBase Connectivity (JDBC) is a Java API used to execute SQL statements.
JDBC comprises a group of classes and interfaces compiled in the Java language.
JDBC provides a reference for compiling database application programs.
1-5
Note:
The log archive mode must be enabled for the Oracle database.
Processes
The ebase database system provides two processes:
l xbasemoni
1-6
The ebase's monitor process, which monitors the extrabase process' status. The
xbasemoni process restarts the extrabase process if the extrabase process is in
abnormal status.
l extrabase
The ebase's main process, which implements the ebase in-memory database's
functions, including storage management, index management, data persistence, and
processing of application query requests.
Threads
The ebase database system is designed with a multi-thread architecture, which means
that multiple threads operate together, including:
l srv_lock_timeout_and_monitor_thread: monitor thread, which monitors the locks in
the database and provides clients with monitoring information.
l com_accept_or_recv: main communication thread, which establishes connections to
the database for clients and assigns a worker thread for each connection.
l srv_worker_thread: main thread for database processing. This thread analyzes SQL
statements, generates a syntax tree based on the analysis, executes the syntax tree,
and returns the final results to the client. Every established connection is assigned
such a thread.
l checkpoint: periodically flushes dirty pages in the shared memory to database files.
1-7
Software Requirements
The ebase supports the Linux, AIX, Solaris, HP-UX, HP-IA and UNIX operating systems.
It is recommended that ebase operates in a 64–bit operating system.
The lowest operating system versions:
l HP-IA
The latest patch(es) must be installed, including PHCO_37940, PHKL_37121, and
PHKL_37122.
l SUSE Linux
SUSE Linux Enterprise Server 9 (Linux version 2.6.5-7.315-smp) and later.
l RedHat Linux
RedHat Enterprise Linux Server release 5.5 (Linux version 2.6.18-194.el5) and later.
1-8
Note:
This manual only describes the common maintenance tools. For information about other
tools, contact ZTE technical support.
Table of Contents
Maintenance Tools .....................................................................................................2-1
Maintenance Contents ...............................................................................................2-6
Note:
For SQL statements supported by the ebase, refer to “Appendix A”.
Command Description
xsql -s ebase IP -p ebase port Logs in to an ebase and executes a script file.
–i script file
2-1
Command Description
source filename Performs an SQL operation in the xsql to execute the contents of a
file or execute file contents in batch mode.
If the target file is not in the current directory, the absolute path to
the file must be specified.
Enter \c at the xsql prompt Cancels the input contents. This command is similar to the reset
command of the isql.
2.1.2 OMM
The ebase operation and maintenance system (OMM) is based on the OMMP platform
and accomplishes the following functions: equipment management, performance
statistics, alarm management, configuration management, whole-process tracing and fast
synchronization. The OMM can be used to monitor the ebase server's operation status
and perform routine maintenance operations.
l Equipment management
Equipment management refers to maintaining the data of all the managed NEs
and configuring their office IDs, module numbers, IP addresses, and device types
(including ebase device information).
l Performance statistics
Performance statistics refers to collecting system data in order to provide accurate,
timely and necessary data for the carrier, network administration department, and
device manufacturers. The collected data serves as experience and bases for scheme
planning, configuration and adjustment.
l Alarm management
Note:
Alarm management is mainly applied to real-time fault observations and historical fault
queries.
l Configuration management
Ebase configuration management includes five steps: configuration data
warehousing, data configuration on the user interface, configuration file generation,
2-2
Note:
For operations to the iTool, refer to B.1 Automatic Preventive Maintenance Operations.
For maintenance items provided by the iTool, refer to B.2 Maintenance Items.
2-3
Note:
For backup and recovery operations, refer to 3 ebase Backup and Recovery.
Caution!
The following operations also apply to the loadinall program. The sequence of the
parameters is the same. The delimiters must be consistent with the delimiters used for
the loadoutall program, otherwise, an error may occur.
Operation Command
2-4
Operation Command
1. Escape characters including “$” and “\” should not be used a delimiter.
2. To use the carriage return as the line delimiter, you only need to keep the line delimiter unspecified.
Note:
The ebase_export.sh script keeps backup data for three days, and the ebase_impor
[Link] script recovers data of the previous day.
The ebase_import.sh and ebase_export.sh scripts can be used in the SUSE Linux,
HP-UX, HP-IA, AIX, and Solaris operating systems, and any user with an installed ebase
can use these two scripts.
Before using these scripts, users must create the backup folder in the $HOME directory
first. After a backup is completed, a file named in the date and a corresponding tar file are
generated in the $HOME/backup directory, for example, 20120503 and [Link].
The 20120503 file is a logical backup, and the [Link] file is the corresponding
tar file.
à The load out command can export data of a specified field. Command: “ load data
outfile '/home/xbase/tb_zxinaccode' ziduan1,ziduan2 from table tb_zxinaccode
field_term '|';”.
2-5
à The load out command can load data of all the tables in a database to a specified
directory. Command: “load data all outdir 'path/directory' field_term '|';”.
l load in: imports data from a file to a table.
Command command: “load data outfile '/home/xbase/tb_zxinaccode' from table
tb_zxinaccode field_term '|';”
For a description of the command parameters, refer to Table 2-3.
Parameter Description
field_term '|' Delimiter used to separate fields. Any other special character
or character string can be used as a delimiter, for example,
#, and @.
The data must not include the “|” delimiter.
Note:
The maintenance periods and items can be adjusted according to site requirements. If you
are not sure, contact ZTE technical support for confirmation.
2-6
Half-yearly maintenance 2.2.10 Checking the Version Number and Bit Number
Hazardous Operations
The following operations are hazardous and can lead to data corruption.
Caution!
The following situations should be avoided when the ebase is still operating.
l Power failure
A power failure causes the loss of the data generated since the latest checkpoint. It
can also cause data corruption.
A power failure causes the loss of the shared memory.
l Forced termination of a process
Caution!
The kill -9 command must not be used. If you must use this command, contact ZTE
technical support for confirmation first.
If you run the kill -9 command while a process is still running, it terminates the process
directly, which causes incomplete data writing and thus damages the datafile.
l Server switchover
If two servers are switched over at an improper time when some dirty pages on the
primary server are not written to the disk, file damages may occur.
2-7
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to verify that the ebase processes are normal:
$ xstat
3. Run the following commands to enter the $HOME/log directory and check the extr
[Link] file:
$ cd $HOME/log
$ more [Link]
4. Run the following commands to enter the $HOME/log directory and check the
xbasemoni monitor process's log file [Link]:
$ more [Link]
5. Run the following commands as the root user to check the CPU and memory
resources occupied by the extrabase process:
$ su - root
# top
Reference Criteria
l The xstat command shows that the extrabase and xbasemoni processes are
operating.
l The logs in the [Link] file do not contain any keywords indicating an error
or exception, for example, error, failed.
l The logs in the [Link] file do not contain any keywords indicating an error
or exception, for example, error, failed.
l The top command shows that the CPU utilization of the extrabase process remains
below 50% most of the time, and the memory utilization (in the %MEM column) does
not have a significant increase during a certain period.
Note:
The memory utilization criterion varies, depending on the site situation. If you are not
sure, send the check results to ZTE technical support for confirmation.
Exception Handling
1. If the extrabase and xbasemoni processes are not operating:
Check whether they are terminated manually, and check whether the extrabase.l
og and [Link] files indicate any exception.
2-8
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to verify that the core file exists:
$ find ./ -name core -print
Reference Criteria
No result is output.
Exception Handling
If any core file exists, send it to ZTE technical support.
Related Information
In the directory containing a core file, run the following command as the user who installed
the ebase to determine the program that generated the core file:
$ file core file name
Steps
Follow these steps:
2-9
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to check the max_n_session item in the [Link]
configuration file in $HOME/etc:
$ more $HOME/etc/[Link]
3. Run the following command to log in to the ebase database:
$ xsql -s IP -p port
4. On the xsql client, run the following command to check the number of links:
xsql> show session;
Reference Criteria
The number of links shown by the show session command is lower than the 80% of the
value set for the max_n_session parameter.
Exception Handling
If the number of current links exceeds 80% of the value set for the max_n_session
parameter, contact ZTE technical support for confirmation. After the confirmation,
increase the value for the max_n_session parameter in accordance with the actual
requirements and then restart the ebase at a proper time.
Note:
The value set for the max_n_session parameter should be appropriate. Each link
occupies a certain amount of memory, and a too great value wastes the memory resource.
Note:
It is not allowed to edit a running scheduled task by using the crontab -e command. If
necessary, contact ZTE technical support for confirmation.
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2-10
Reference Criteria
The scheduled task is set to back up data for the ebase every day.
Exception Handling
If the scheduled task is not set to back up data for the ebase every day, deploy the ebase_
[Link] script again. For the detailed procedure, contact ZTE technical support.
Steps
Follow these steps:
1. Determine the synchronization module that the service is using.
Note:
If you cannot determine the synchronization module, contact ZTE technical support.
2. Run the following command as the ZXINOS user to verify that the synchronization
process is operating properly:
$ zxstat
3. Check the corresponding log file of the synchronization module. For the
correspondence relationships between synchronization modules and log files, refer
to Table 2-5.
Table 2-5 Synchronization Modules and Corresponding Log Files
xsync_o2x xsync_o2x.log
xsync_s2x xsync_s2x.log
xsync_x2o xsync_x2o.log
xsync_x2sx xsync_x2sx.log
2-11
Reference Criteria
l The synchronization module exists.
l The corresponding log file does not contain any keyword indicating an error or
exception, for example, error or failed.
Exception Handling
If the process does not exist, check the synchronization logs for exceptions, and then
handle the exceptions accordingly.
If you cannot handle the exception, contact ZTE technical support.
Related Information
The following takes the o2x synchronization module as an example to describe the
procedure for handling an exception. The procedures for other synchronization modules
are similar.
1. Run the following command to log in to the Oracle database as the sysdba user:
$ sqlplus “/ as sysdba”
2. Execute the following scripts and record the number of results:
3. Run the following command, check the number of the registered tables, and then check
whether the number obtained in step 2 is twice the number of the registered tables:
SQL> select count(*) from xbase_sync_tabs;
l Yes: proceed to step 4.
l No: proceed to step 6.
4. Execute the following scripts and check whether each captured and applied process
is enabled:
2-12
Note:
By default, the database log file is in the $HOME/zxindbf/admin/zxin/bdump/
directory. If the directory contains multiple log files, refer to the latest one.
Steps
Follow these steps:
1. Determine the processes that are using [Link]. Contact ZTE technical
support for more information.
2. Log in to the ebase server as the user who installed the ebase.
3. Run the ldd target program command, for example, ldd sdfpro.
Reference Criteria
The [Link] that the target program is using (command result) is the same
as the [Link] in $HOME/lib, including the filename and size.
2-13
Exception Handling
If the [Link] that the target program is using is different than the libxbase
[Link] in $HOME/lib, stop the target program and replace its [Link].
Contact ZTE technical support if necessary.
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to log in to the ebase database:
$ xsql -s IP -p port
3. On the xsql client, run the following command to check the index of a major table:
xsql> desc table table_name;
Reference Criteria
The checked index is consistent with the index in the script.
Note:
The gen_clust_index output from the desc command is a built-in object of the system, not
an index.
Exception Handling
If the checked index is different from the index in the script, create the index manually in
accordance with the script.
Note:
The ebase supports dynamic creation of an index.
2-14
Caution!
Ebase datafile and directory must not be deleted or moved, otherwise, there will be serious
consequences.
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to check the $HOME/etc/[Link] configuration file:
$ more $HOME/etc/[Link]
3. Run the following command to check the $HOME/etc/[Link] configuration
file:
$ more $HOME/etc/[Link]
4. Check whether any device is running multiple ebase instances:
Reference Criteria
l If the ebase must be synchronized with any other database, the
redolog_used_by_xsync parameter must be set to 1.
l If the setting for the page_count parameter is greater than 8 G, ensure that the
settings for shm_max and shm_all are sufficient for the operating system. For the
Linux operating system, the default setting for shm_all is 8 G, and the ebase cannot
start up if the setting for shm_all is greater than the default.
Note:
The modification to these parameters must be fixed to the startup of the OS, otherwise,
the modification is null after a restart.
l In the case of a cluster (including a 1+1 cluster and an n+m cluster), ensure that the
data, dict, and redolog directories reside on the shared storage device.
l The server_share_mode parameter is set to 0.
2-15
l The default settings for sql_timeout and sql_timeout2 are 50 and 60 respectively.
The settings for these two parameters should not be too great, otherwise, the service
will be interrupted for a too long time.
Note:
The settings can be modified in accordance with service requirements. Contact ZTE
technical support for confirmation if necessary.
l The IP address and port number configured for the destination ebase in the xbasem
[Link] must be consistent with that configured in [Link].
Note:
The setting for the XbaseSrvIP parameter in [Link] must be consistent
with the setting for the bind_ip parameter in [Link]. And the setting for the
XbaseSrvPort parameter in [Link] must be consistent with the setting for
the bind_port parameter in [Link].
Exception Handling
Modify the settings to meet actual requirements. Contact ZTE technical support if
necessary.
Note:
The dynamic in a description for a configuration item indicates that the configuration item
is dynamically effective, which means a modification to the configuration item takes effect
in one minute after the modification is completed. If a description for a configuration item
does not contain dynamic, a modification to the configuration item takes effect only when
the ebase is restarted.
2-16
Steps
Follow these steps:
1. Log in to the active and standby servers as the user who installed in the ebase, for
example, zxin10, and then perform these steps:
l In the $HOME/etc directory on the active and standby servers, check whether
the [Link] and [Link] in the configuration files are consistent.
l Check whether the dual-server cluster scripts are correct:
l Run the following command to check the processes:
$ xstat
Reference Criteria
l The [Link] and [Link] in the configuration files of the active and
standby servers are consistent.
l Use the xbasemoni monitor process to start ebase processes, and use the xbasemoni
command to stop ebase processes.
l The xbasemoni and extrabase processes are not running on the standby server, and
the shared memory specified by the key_of_shm configuration item in the xbase
.cfg configuration file does not exist on the standby server. The xbasemoni and
extrabase processes are running on the active server.
l The paths configured in the [Link] configuration file are on the disk array. The
paths for the datafiles on the disk array include map_file_path, data_dict_path,
redo_log_path.
Exception Handling
1. If the configuration files are not consistent:
Modify the settings and check whether the configuration items take effect dynamically.
If not, restart the ebase to apply the modification.
2. If the dual-server cluster scripts are incorrect:
2-17
Stop the dual-server cluster at a proper time and then modify the scripts. Contact ZTE
technical support if necessary.
3. If the paths of the datafiles are not on the disk array:
Stop the dual-server cluster, copy the datafiles to the disk array, modify the xbase.c
fg item, and then start the dual-server cluster.
4. If the xbasemoni or extrabase process or the shared memory is found on the standby
server, delete them manually.
a. Run the kill -9 xbasemoni command.
b. Run the xstop command.
c. Delete the shared memory that the ebase is using on the standby server.
Contact ZTE technical support if necessary.
Steps
Follow these steps:
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to check the ebase version number:
$ extrabase -v
3. In the $HOME/bin directory, run the following commands to view the bit number:
$ cd $HOME/bin
$ file extrabase
Reference Criteria
l The version number is the same as the required version number.
l The extrabase process is 64–bit.
Exception Handling
If the version number or bit number used on site is different from the required, contact ZTE
technical support to confirm whether to replace the version.
2-18
Note:
Automatic backup is system-level logical backup.
3-1
Note:
Manual backup includes physical backup and logical backup and can be performed
according to site requirements.
Backup Period
l Automatic backup: The scheduled task performs backup every day at the backup time
when the service is idle.
l Manual backup: A backup should be performed manually before a service upgrade,
ebase upgrade or a major operation to the system.
Prerequisite
l The ebase is operating properly. To determine the ebase's status, refer to 2.2.1
Checking the Operation Status.
l There is sufficient free disk space.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to log in to the ebase on the xsql client:
$ xsql -s IP -p port
3-2
Note:
The datafile and data dictionary are used together and must be backed up
simultaneously.
Two files are generated in the /home/zxin10 directory: one is the exportdata
datafile, and the other is the [Link] data dictionary.
– End of Steps –
Prerequisite
l The ebase is operating properly.
l The backup file is stored in the /home/zxin10 directory, and you have the right to
read and write it.
l The free disk space is sufficient.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to log in to the ebase on the xsql client:
$ xsql -s IP -p port
3. Run the following command to recover the datafile:
Note:
The /home/zxin10 directory contains the exportdata datafile and the exportda
[Link] data dictionary. You only need to run the import ‘/home/zxin10/exportdata’
the command to complete the recovery.
3-3
Note:
After the import replaces the backup datafile with the original datafile, the ebase
must be restarted to import data to the memory again. Because the ebase exits
automatically when the import finishes the execution and then it is started by the
xbasemoni process, the connection is broken message that appears is normal.
4. After the recovery is completed, verify that the recovery is successful. For the detailed
procedure, refer to 3.2.3 Verifying a Physical Recovery.
– End of Steps –
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to check the [Link] log file:
$ more [Link]
The following shows an example of logs for the import command that is executed
successfully:
3. Run the following command to log in to the ebase through the xsql client:
$ xsql -s IP -p port
4. Verify that the correct tables and data are recovered, and the recovered data is valid
and complete.
– End of Steps –
3-4
Note:
By default the system-level backup and recovery is recommended.
l Table level
Export the data of one or multiple tables to specified files. Table-level backup and
recovery is applied when the service requires the export of data for a table.
l Database level
Export the data of all the tables in a database to specified files, and the data of each
table is saved as an independent file. Database-level backup and recovery is applied
when the service requires the export of all the table data in a database.
l System level
Export the data of all the tables in the ebase to specified files, and the data of
each table is saved as an independent file. System-level backup and recovery is
applied when a scheduled task performs a daily backup or the site requires a backup
operation.
Prerequisite
l The ebase is operating properly.
l The free disk space is sufficient.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to log in to the ebase through the xsql client:
$ xsql -s IP -p port
3. Run the following command on the xsql client to back up data for the target table:
3-5
Note:
The field_term '|' parameter indicates that the field delimiter is “|”. The default line
delimiter is the carriage return.
xsql> load data outfile '/home/zxin10/table1' from table table1 field_term '|';
4. (Optional) Enter the /home/zxin10 backup directory to verify that the table1
backup file is generated.
The generation time of the table1 file must be the current time.
– End of Steps –
Prerequisite
l The ebase is operating properly.
l The backup files are in the backup directory, and you have the right to read and write
these backup files.
l There is sufficient free disk space.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to log in to the ebase through the xsql client:
$ xsql -s IP -p port
3. Run the following command on the xsql client to recover data for the target table:
Note:
The field_term '|' parameter indicates that the field delimiter is “|”. The default line
delimiter is the carriage return. The field and line delimiters used in this command
must be consistent with the delimiters used in the backup procedure.
xsql> load data infile '/home/zxin10/table1' into table table1 field_term '|';
4. After the recovery is completed, verify that the recovery is successful. For the detailed
procedure, refer to 3.3.7 Verifying a Logical Recovery.
– End of Steps –
3-6
Prerequisite
l The ebase is operating properly.
l The free disk space is sufficient.
l The ebase installation directory (bin) contains the loadoutall tool.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to back up the data of all the tables in the target database.
The following takes the zxdbp_133 as an example.
Note:
The default field delimiter is “|”, and the line delimiter is the carriage return. This
command exports the data of all the tables in zxdbp_133 to the /home/xbase/da
tabak directory. A file is generated for each table, and the filename is the table name.
3. (Optional) Enter the backup directory to verify that the backup files are generated.
– End of Steps –
Prerequisite
l The ebase is operating properly.
l The free disk space is sufficient.
l The ebase installation directory (bin) contains the loadoutall tool.
l The backup files are in the recovery directory, and you have the right to read and write
these backup files.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
3-7
2. Run the following command to recover the target database. The following takes
zxdbp_133 as an example.
Note:
The field and line delimiters used in the loadinall command must be consistent with
the delimiters used in the loadoutall command. Otherwise, the recovery will fail.
Prerequisite
l The ebase is operating properly.
l The free disk space is sufficient.
l The ebase installation directory (bin) contains the loadoutall tool.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to complete a system-level backup:
Note:
The default field delimiter is “|”, and the line delimiter is a carriage return. This
command loads the data of all the tables in the system to the /home/xbase/databak
directory. A file is generated for each table, and the filename is the table name.
$ loadoutall /home/xbase/databak
3. (Optional) Enter the backup directory to verify that the backup files are generated and
the backup is successful.
The generation time of the backup files must be the current time.
– End of Steps –
3-8
Prerequisite
l The ebase is operating properly.
l The free disk space is sufficient.
l The ebase installation directory (bin) contains the loadoutall tool.
l The backup file is in the backup directory, and you have the right to read and write the
backup file.
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to recover the system database:
Note:
The field and line delimiters used in the loadinall command must be consistent with
the delimiters used in the loadoutall command, otherwise, the recovery will fail.
$ loadinall /home/xbase/databak
3. After the recovery is completed, verify that the recovery is successful. For the detailed
procedure, refer to 3.3.7 Verifying a Logical Recovery.
– End of Steps –
Steps
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Check whether the print by the load/loadinall command reports any error:
If the following message is displayed, it indicates that the recovery is successful.
3-9
4. Run the following command to log in to the ebase through the xsql client:
$ xsql -s IP -p port
5. Verify that the correct tables and data are recovered, and the recovered data is valid
and complete.
– End of Steps –
3-10
Fault Cause
The cause can be located by analyzing the $HOME/log/[Link] file.
l The following log indicates that the process is stopped manually:
l If the above log is not found, the process may have been terminated by the kill -9
command. If a core file is found, it indicates that the ebase exited due to a fault.
Fault Cause
Failed to set up listening.
4-1
Recommended Procedure
1. Open the $HOME/etc/[Link] configuration file as the user who installed the
ebase, for example, zxin10, and then record the values of the bind_ip and bind_port
parameters.
2. Run the following commands as the root user to check whether the server IP address
is incorrect and whether the server port number has been occupied:
# netstat -an | grep port
# ifconfig -a
l Yes: proceed to step 3.
l No: proceed to step 4.
3. Reconfigure the port number or IP address, restart the ebase to apply the
configuration, and then check whether the log is still generated:
l Yes: proceed to step 4.
l No: end.
4. Restart the server to check whether the log is still generated:
l Yes: proceed to step 5.
l No: end.
5. Contact ZTE technical support.
Fault Cause
The log file does not exist.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase, for example, zxin10.
2. Run the following command to generate the xbase_trace.log file:
Caution!
Running the tracing command decreases the execution efficiency, so tracing should
be performed during idle hours and terminated immediately after it is completed.
4-2
Recommended Procedure
1. Log in to the source and destination servers as the user who installed the ebase, for
example, zxin10.
2. Run the following command on both servers to stop the ebase service:
$ xsuperstop
3. Run the following command to pack the data, dict, and redolog directories on the
source server:
$ tar -cvf [Link] data dict redolog
4. Upload the [Link] file to the corresponding directory on the destination server
through FTP in binary mode.
5. Run the following command to extract the [Link] file:
$ tar -xvf [Link]
6. Run the following command on both servers to start the ebase service:
$ xbasemoni
Note:
For different operating systems, the [Link] filename may be different. It should be
modified in accordance with the actual requirements.
Recommended Procedure
1. Log in to the ebase server as the root user.
2. Run the following command to modify the values for the shmmax and shmall
parameters.
4-3
Note:
The values for these parameters are not fixed, depending on the actual requirements.
If you are not sure, contact ZTE technical support.
# vi [Link]
echo 16202652842 > /proc/sys/kernel/shmmax
echo 4147483648 > /proc/sys/kernel/shmall
If the settings are not modified after the system is restarted (the /etc/rc.d/[Link] file is
not executed), run the following commands to create a link file pointing to /etc/rc.
d/[Link]:
# cd /etc/rc.d/rc5.d/
# ln -s ../[Link] S99local
BM:page_init_pages():g_dwDataPageNum=16384, g_dwUsefulBMBytes=2048!
PSM:initializing page BITMAP OK!
PSM:configure error:Integrality Level of current configure is not same as existing database!!
extrabase_start_or_create: psm_sys_load() failed, exit.
Fault Cause
The ebase cannot start up because the interity_level parameter in the $HOME/etc/xba
[Link] configuration file is changed or replaced.
Recommended Procedure
Restore the original value of the interity_level parameter in the [Link] file and then
restart the ebase service.
4-4
Note:
The value of the interity_level parameter must not be changed during the service
operation.
Fault Cause
At startup, the ebase automatically reads the datafile. If the datafile does not exist, the
above logs are generated automatically.
If the logs indicate that the ebase cannot read the datafile at startup, it is because the
ebase does not have the permissions.
Recommended Procedure
1. Log in to the ebase server as the root user.
2. Run the following command to modify the permissions to the data and dict
directories:
# chmod 777 data dict
3. Restart the ebase service to verify that the startup is successful.
Fault Cause
The lock_memory parameter in the $HOME/etc/[Link] configuration file controls
whether to lock the memory to the physical memory.
4-5
Note:
The lock_memory parameter is effective for Linux kernel 2.6.9 or later and it is not effective
for an NT system. For the AIX, Solaris, and HP-IA systems, this parameter is effective only
when the root user is running the ebase.
Recommended Procedure
The following takes Linux as an example to describe the procedure:
1. Log in to the ebase server as the root user.
2. Modify the /etc/security/[Link] file by appending the following contents
to the file:
Caution!
Using the set sqltrace on command affects the system performance, so this command
should be used during off-peak hours.
Fault Cause
1. Log in to the ebase server as the user who installed the ebase.
2. Run the following command to start tracing:
4-6
Note:
The tracing will automatically stop in 30 minutes.
$ set sqltrace on
3. Check the [Link] log file in the $HOME/log directory.
The log file prints the ten statements that have been executed for the longest period
recently.
Fault Cause
The Oracle database has a tool named xsql, which has the same name as the ebase's
CLI client xsql. In the PATH environment variable, the ebase's bin directory appears at
the end of the path name, and it is required to move the bin directory to the front.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase.
2. Modify the PATH environment variable by moving the bin directory in front of oralc
e/bin so that the program in the bin directory will be found first during the program
operation.
The modified variable is as follows.
PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH:/sbin:.;export PATH
4-7
Fault Cause
The data cannot be inserted because the database is full.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase.
2. Check whether the [Link] log file contains the following log:
This log indicates that the database is full:
$ xsuperstop
4. Increase the value of the page_count parameter in the [Link] configuration file.
5. Run the following command to start the ebase server and then test whether data can
be inserted successfully:
$ xbasemoni
l Yes: end.
l No: proceed to step 6.
6. Contact ZTE technical support.
Fault Cause
The gen_clust_index is an internal object of the system. It is not a real index and can be
ignored.
4-8
Fault Cause
The disk space is insufficient. The ebase cannot write the redolog file properly, and the
size of the generated regolog file is 0.
Recommended Procedure
1. Log in to the ebase server as the root user.
2. Check the disk and delete the obsolete files.
Note:
Double-check and make a backup before you delete a file.
Fault Cause
The archive mode is not enabled for the Oracle database.
1. Log in to the database server as the oracle user.
2. Run the following commands to check the database mode:
4-9
$ sqlplus / as sysdba
SQL> archive log list;
The check results are as follows:
Recommended Procedure
1. Log in to the database server as the oracle user.
2. Run the following commands to log in to the database:
$ sqlplus /nolog
4-10
Fault Cause
The Oracle database's log file alert_zxin.log contains the following logs:
4-11
The log messages show that the Oracle database's system tablespace SYSAUX is full,
which means that the core functions of the database are still effective, but the functions of
the SYSAUX tablespace fail or are restricted.
Recommended Procedure
Expand the SYSAUX system tablespace.
Note:
For information about Oracle commands, refer to the related Oracle documents. Contact
ZTE technical support if necessary.
4-12
l Use the ALTER TABLESPACE ADD DATAFILE; command to increase the system
file or original partition.
l Increase the initial size, for example, by using the alter tablespace SYSAUX default
storage(next 500M pctincrease 1); command.
Fault Cause
According to the printed logs, messages are parsed repeatedly for 20110627 and
20110623. The repeated parsing causes the accumulated messages.
None of the .r files are changed to .o files in the redolog directory. It is because the
synchronization module and the source ebase server are installed by different users, and
the synchronization module does not have the permission to modify the files in the redo
log directory on the source ebase server, and thus the failed rename operation.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase.
2. Run the following command to modify the permissions to the redolog directory on
the source ebase server:
4-13
Fault Cause
l The ebase is not started, and the xbasemoni process keeps checking the ebase's
status. If the ebase is still not started after three checks, the xbasemoni process
restarts the ebase.
l The IP address and port number configured in the [Link] file are not
consistent with the IP address and port number configured in the [Link] file.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase.
2. Run the following command to check whether the ebase process is started:
$ xstat
l Yes: proceed to step 4.
l No: proceed to step 3.
3. Check the [Link] file, troubleshoot according to the log information, and
then check whether the problem is resolved:
l Yes: end.
l No: proceed to step 6.
4. Check whether the IP addresses and port numbers are consistent in the xbasemoni
.cfg and [Link] files:
l Yes: proceed to step 6.
l No: proceed to step 5.
5. Modify the IP addresses or port numbers to keep them consistent, and then restart the
ebase to check whether the problem is resolved:
l Yes: end.
l No: proceed to step 6.
4-14
Fault Cause
The logs indicate that the xbasemoni process is not connected to the ebase, and the IP
address or port number that the xbasemoni process monitors is not correct.
Recommended Procedure
1. Log in to the ebase server as the user who installed the ebase.
2. Check whether the IP addresses and port numbers in the [Link] and xba
[Link] files are consistent:
l Yes: proceed to step 4.
l No: proceed to step 3.
3. Modify the IP addresses or port numbers to keep them consistent, and then restart the
ebase to check whether the problem is resolved:
l Yes: end.
l No: proceed to step 4.
4. Contact ZTE technical support.
Fault Cause
The iostat is not installed on the device, or the environment variable is not configured for
the iostat. As a result, I/O traffic statistics cannot be collected.
Recommended Procedure
1. Log in to the ebase server as the root user.
2. Check whether the iostat is installed.
4-15
Run the iostat command. If the iostat is not installed, the command fails, and a
message is displayed.
l Yes: proceed to step 4.
l No: proceed to step 3.
3. Install the iostat using the system installation package and then check whether the
problem disappears:
l Yes: end.
l No: proceed to step 4.
4. Check whether the corresponding environment variable is configured for the iostat:
Note:
The environment variable for the iostat varies, depending on the specific operating
system. For the detailed information, refer to the operating system related documents.
Fault Cause
The default timeout for the iTool is 60 seconds, and sometimes a maintenance item takes
longer than 60 seconds.
Recommended Procedure
1. Enter the iTool main window.
2. Click . The Setting dialog box is displayed.
3. Modify the timeout, for example, set it to 200 seconds, and then click OK.
4-16
Fault Cause
Each maintenance package requires a corresponding user who performs the maintenance.
To execute a maintenance package, the corresponding user must log in to the device first.
Table 4-1 lists maintenance contents and the corresponding users.
Recommended Procedure
1. In the iTool main window, select Selecting Device > Edit Device.
2. Modify the users corresponding to the maintenance packages.
Fault Cause
A new device can be imported to the iTool or created manually.
If the ebase's [Link] file has not been used by the iTool, the Device type list does
not include the ebase database server and ebase-omm items when you create a new
device.
4-17
Recommended Procedure
1. Log in to the server where the iTool resides.
2. Delete the common_zh.xml and common_en.xml files in the OMM-iToolV1.01.0
7\install\itool\workspace\default\config directory.
3. Copy the common_en_ebase.xml and common_zh_ebase.xml files in the EXTRA
BASE-OMMV1.01.04\autoupdate\build\projectinfo directory to the OMM-i
ToolV1.01.07\install\itool\workspace\default\config directory.
4. Restart the iTool, and you can select ebase database server or ebase-omm from the
Device type list.
Fault Cause
To import a maintenance package, a user must select the checkbag directory's
higher-level directory. But the iTool does not allow the user to put the maintenance
package in the checkbag directory and import it directly.
Recommended Procedure
1. Log in to the iTool server.
2. Create the checkbag directory.
3. Put the DHSS maintenance package DHSS_CHECK in the new checkbag directory
and import it.
4-18
Note:
For information about more ebase commands, contact ZTE technical support.
show procedures; Shows the name of all the stored Used on the xsql client.
procedures.
show tables; Shows the index of all the tables. Used on the xsql client.
A-1
show session; Shows the sessions of all the Used on the xsql client.
clients. The session of each client is
represented by one record.
desc table tablename; Shows the information about the fields Used on the xsql client.
and index of a specified table. The
tablename indicates the name of the
target table,
desc procedure Shows the script used to create a Used on the xsql client.
procedurename; specified stored procedure. The
procedurename indicates the name of
the target stored procedure.
select get_used_pages(); Shows the number of used memory Used on the xsql client.
pages.
1 page=64K bytes,
select get_total_pages(); Shows the total number of memory Used on the xsql client.
pages.
The number is the same as [psm]
page_count in [Link].
load data outfile Exports the data of a table to a file. Used on the xsql client.
'/home/tmp/[Link]' from
table example field_term '|';
load data infile Imports data from a file to a table. Used on the xsql client.
'/home/tmp/[Link]' into
table example field_term '|';
A-2
export '/home/tag/tmp/[Link]'; Exports the whole database physically. Used on the xsql client.
import '/home/tag/tmp/[Link]'; Imports the whole database physically. Used on the xsql client.
source /home/zxin10/[Link]; Executes a specified SQL script. Used on the xsql client.
alter system switch redolog; Closes the current log file and Used on the xsql client.
generates a new one.
set show plan on/off; Shows/closes indexes used to display Used on the xsql client.
statements.
set trace on all ms; Prints all the statements whose Used on the xsql client.
set trace off all; execution time is longer than the set This command affects
milliseconds. the service operation
Stops tracing. and should be used only
when the service is idle.
The command must be
stopped immediately
when the task is
completed.
set sqltrace on; Prints the top 10 statements that take Used on the xsql client.
set sqltrace off; the longest execution time during the This command affects
last 30 minutes. the service operation
and should be used only
when the service is idle.
A-3
A-4
Prerequisite
l The ebase's preventive routine maintenance package EBASE_CHECK is copied to the
iTool's root directory checkbag.
Note:
For iTool V1.01.08 and later, the preventive routine maintenance package is imported
to the iTool's root directory.
Steps
1. Run [Link] to log in to the iTool.
2. Click and then configure the FTP server in accordance with the site
requirements.
B-1
3. Click and then configure the office information in accordance with the site
requirements.
4. Click in the device management window. The New device dialog box is
displayed, see Figure B-3.
B-2
Note:
You can add a device by importing it, but it is recommended to add a device by
creating it because the ebase server commissioning scheme is complicated and
involves multiple nodes.
B-3
7. Click . The Add check bag dialog box is displayed, see Figure B-5.
8. Select the desired maintenance items and then click OK. The selected items are added
to the target device.
B-4
Note:
When you click the text box for a parameter, the parameter description is displayed at
the bottom of the Edit Device dialog box, see Figure B-6.
10. On the Device check tab, right-click an object at any level to start the preventive
routine maintenance.
Note:
A level can be an office, a device, or a maintenance package.
B-5
11. (Optional) Click view detail to view the detailed information about the maintenance
items.
Note:
If too many messages are returned, the messages are not displayed on the Detailed
menu. You can click view detail to view the detailed information.
B-6
12. After the preventive routine maintenance is completed, right-click the device or the
maintenance package and then select Making report from the shortcut menu to
generate a report.
B-7
– End of Steps –
Maintenance
User Criteria
Item
CPU status root An alarm is raised when the sum of CPU utilization in system
mode (%sy) and user mode (%us) exceeds 80%.
Swap status root Check the swap utilization. An alarm is raised when the swap
utilization exceeds 10%.
Disk partition root Check the status of the disk partitions. An alarm is raised when
status the utilization of any partition exceeds 90%.
System logs root Check whether the system logs contain the ERROR keyword. If
ERROR is found, it indicates that an error has occurred, and the
latest 1000 error logs have been printed.
ebase bit number ebase user Check the ebase program's bit number.
B-8
Maintenance
User Criteria
Item
ebase operation ebase user Check the CPU utilization of the extrabase process. An alarm is
environment raised when the utilization exceeds 80%.
ebase user Check the memory utilization of the extrabase process. An alarm
is raised when the utilization exceeds 80%.
ebase user Partition where the data directory resides. An alarm is raised
when the partition size is less than 5 times of the file size.
Partition where the Redolog directory resides. An alarm is raised
when the partition size is less than 5 times of the file size.
ebase user Check the memory page usage. An alarm is raised when the
utilization of the total page count, used page count, or shared
memory page count exceeds 90%.
ebase ebase user 1. If the xsync_x2o or xsync_x2sx process exists, check the
configuration setting for the redo_log_used_by_xsync parameter in
[Link] file. An alarm is raised if this parameter is not
set to 1.
2. Check the value of the mem_size parameter. An alarm is
raised if the value is greater than 1024.
3. Check the value of the flush_all_pages_before_shutdown
parameter. An alarm is raised if this parameter is not set to 0.
4. Check the value of the max_n_session parameter. An
alarm is raised if the value is greater than 200.
5. Check the value of the page_count parameter. An alarm is
raised if the value exceeds the 50% of the total memory size.
6. If integrality_level=1, redo_log_buffer_size must be set to 0,
otherwise an alarm is raised.
If integrality_level=3, redo_log_buffer_size must be less
than 10 M, otherwise an alarm is raised.
xbasemoni ebase user 1. Check the settings for the XbaseSrvIP and XbaseSrvPort
configuration parameters in the [Link] file and the settings for
the bind_ip and bind_port parameters in the [Link]
file. The setting for XbaseSrvIP must be consistent with the
setting for bind_ip, and the setting for XbaseSrvPort must
be consistent with the setting for bind_port. An alarm is
raised if any of the settings is inconsistent.
2. Check whether the work_mode parameter in the
[Link] file is set to 0. An alarm is raised if this
parameter is not set to 0.
B-9
Maintenance
User Criteria
Item
Scheduled backup ebase user Check whether the output from the crontab -l command contains
task ebase_export.sh. If ebase_export.sh is found, it indicates
that a scheduled backup task has been set for the ebase.
Otherwise, an alarm is raised.
ebase operation ebase user 1. Check whether the [Link] file contains error,
status fail, or hung. If any of these keywords is found, it indicates
that an error or a failure has occurred, and the latest 1000
error logs have been printed.
2. Check whether the [Link] file contains abnormal.
If the file contains abnormal, it indicates that an alarm
has been raised, and the latest 1000 error logs have been
printed.
core file ebase user Check whether the extrabase process has generated a core
file. If a core file has been generated, it indicates that an alarm
has been raised, and the alarm shows the path and name of
the core file.
core file ebaseagent Check whether agtfunc has generated a core file. If a core file
user has been generated, it indicates that an alarm has been raised,
and the alarm shows the path and name of the core file.
xsync_o2x log file o2x user Check whether the xsync_o2x.log file contains error or fail.
If any of these keywords is found, it indicates that an alarm has
been raised, and the latest 1000 error logs have been printed.
B-10
Maintenance
User Criteria
Item
the returned results contain the configuration information,
it indicates that the directory is configured on the shared
storage, which is correct.
4. The configuration file for the xsync_o2x synchronization
module contains the [xbase1]-[xbasen] segment, and
each [xbase] in the segment contains the xbase_module
parameter. Ensure that the xbase_module parameter for
each [xbase] is set to a unique value in the [xbase1]-[xbasen]
segment.
5. Check whether you can connect to each xbase through
the xsql client. In the configuration file for the xsync_o2x
synchronization module, read the settings for the xbase_ip
and xbase_port parameters in each [xbase] segment, and
then run the xsql -s xbase_ip -p xbase_port command, for
example, xsql -s [Link] -p 8433. If 0 is returned, it indicates
that a link is established successfully.
core file o2x user Check whether the xsync_o2x synchronization module has
generated a core file. If a core file has been generated, it
indicates that an alarm has been raised, and the alarm shows
the path and the name of the core file.
xsync_x2sx log file x2sx user Check whether the xsync_x2sx.log file contains error or fail.
If any of the keywords is found, it indicates that an error or a
failure has occurred, and the latest 1000 error logs have been
printed.
B-11
Maintenance
User Criteria
Item
core file x2sx user Check whether the xsync_x2sx synchronization module has
generated a core file. If a core file has been generated, it
indicates that an alarm has been raised, and the alarm shows
the path and the name of the core file.
xsync_s2x log file s2x user Check whether the xsync_s2x.log file contains error or fail. If
any of the keywords is found, it indicates that an error or a failure
has occurred, and the latest 1000 error logs have been printed.
B-12
Maintenance
User Criteria
Item
xsync_s2x.ini s2x user 1. Check whether the trace_msg parameter is set to 1. During
configuration peak hours, the parameter must not be set to 1, because
for the s2x when the tracing function is enabled, a large amount of logs
synchronization are generated, and the service performance is affected.
module During off-peak hours, the tracing function can be enabled to
observe the service operation.
2. Run the ostool -r [Link] command to check whether
the logprintlevel parameter is set for xsync_s2x. If the
parameter is set, the set value must not be greater than or
equal to 4. It is allowed that the parameter is not set or the
set value is less than 4.
3. In the case of a dual-server cluster system, read the
configuration of the cache_dir directory, and use the df -k
command to check whether the command output contain the
configuration information about the cache_dir directory. If
the returned results contain the configuration information,
it indicates that the directory is configured on the shared
storage, which is correct.
4. The configuration file for the xsync_s2x synchronization
module contains the [xbase1]-[xbasen] segment, and
each [xbase] in the segment contains the xbase_module
parameter. Ensure that the xbase_module parameter for
each [xbase] is set to a unique value in the [xbase1]-[xbasen]
segment.
5. Check whether you can connect to each xbase through
the xsql client. In the configuration file for the xsync_s2x
synchronization module, read the settings for the xbase_ip
and xbase_port parameters in each [xbase] segment, and
then run the xsql -s xbase_ip -p xbase_port command, for
example, xsql -s [Link] -p 8433. If 0 is returned, it indicates
that a link is established successfully.
core file s2x user Check whether the xsync_s2x synchronization module has
generated a core file. If a core file has been generated, it
indicates that an alarm has been raised, and the alarm shows
the path and the name of the core file.
xsync_x2o log file x2o user Check whether the xsync_x2o.log file contains error or fail. If
any of the keywords is found, it indicates that an error or a failure
has occurred, and the latest 1000 error logs have been printed.
B-13
Maintenance
User Criteria
Item
core file x2o user Check whether the xsync_x2o synchronization module has
generated a core file. If a core file has been generated, it
indicates that an alarm has been raised, and the alarm shows
the path and the name of the core file.
B-14
RDBMS
- Relational Data Base Management System
SQL
- Structured Query Language
The loadoutall tool is essential for performing database and system-level backups in the ebase system. It exports the data of all tables into specified files, with each table's data stored in a separate file. This tool streamlines the backup process by ensuring a comprehensive data export, leveraging field and line delimiters for proper data structuring .
Verifying the generation time of backup files is important because it ensures that the backup operation has been performed recently and that the data is up-to-date. This helps to confirm that the current state of the system can be restored in the event of data loss or corruption, thereby minimizing data discrepancies during recovery .
Consistency of field and line delimiters is crucial during recovery operations. If the delimiters used in the recovery command do not match those used during the backup, the recovery will fail. Therefore, it is essential to use the same field and line delimiters in the loadinall command as were used in the loadoutall command to ensure successful data recovery .
To verify the success of a logical recovery in an ebase system, one must first log into the ebase server and check the output of the load/loadinall commands for errors. A successful recovery is indicated by a message stating that all tables have been loaded successfully. Additionally, examining the extrabase.log file for specific log entries that confirm rows were loaded successfully in tables is necessary. Lastly, validating that the correct tables and data have been restored involves logging in through the xsql client and confirming data integrity and completeness .
Improper settings of synchronization module parameters can lead to significant system performance degradation. For instance, enabling the tracing function by setting the trace_msg parameters while having a high logprintlevel value results in excessive log generation, which burdens the system resources. Furthermore, if the xbase_module parameter is not unique within the [xbase1]-[xbasen] segment, it can lead to conflicts, and improper df -k command outputs can imply misconfigurations in the shared storage setup, causing inefficiencies or errors in data synchronization .
Checking for core files in synchronization modules is important because their presence typically indicates an alarm has been raised and that a serious error has occurred within the module. Core files provide diagnostic information that can be used to pinpoint and troubleshoot the cause of failures. Investigating these files promptly prevents potential data integrity issues and system downtime .
When deciding to enable the tracing function in xsync_o2x, it is important to consider the timing and system load. Enabling tracing during peak operational periods can degrade service performance due to the substantial number of logs being generated. Therefore, it is advisable to enable tracing during off-peak hours. Additionally, the logprintlevel setting should be monitored to ensure it's below 4 to minimize system overhead, as values greater than or equal to 4 can reduce system efficiency significantly .
Access rights are crucial in the database-level recovery process because the user must have the necessary permissions to read and write the backup files. Without proper access rights, the recovery process cannot initiate or complete successfully, possibly leading to partial or failed data restoration. Ensuring correct permissions are set beforehand is vital for seamless execution of the recovery procedure .
Verifying recovery success through specific error messages is critical in ensuring the integrity of ebase operations. Accurate error message analysis not only confirms successful data restoration but also highlights potential issues needing immediate attention. The presence of 'In all, loadin [nn] tables successfully' message is essential for validation, as it signifies that no data inconsistencies occurred during the recovery. This practice helps maintain operational continuity and prevents data loss scenarios in subsequent operations .
To perform a database-level recovery in an ebase system, the prerequisites include: the ebase should be operating properly, there must be sufficient free disk space, the ebase installation directory should contain the loadoutall tool, and the backup files must be located in the recovery directory with appropriate read and write permissions .