Summary of the invention
The object of this invention is to provide a kind of database upgrade method and system, base station self-starting method and system, can carry out in conjunction with the data of original database in base station the smooth upgrade of database.
For achieving the above object, the invention provides following scheme:
A database upgrade method, comprises step:
The new database profile information that reception comprises new data table;
For each legacy data table in legacy data storehouse, search in described new database, whether to there is the new data table identical with its attribute;
If had, according to the preset features of each field in legacy data table, the data in described new data table are merged in described legacy data table, generate the tables of data after upgrading.
Preferably, described in search in described new database, whether to there is the new data table identical with the attribute of the legacy data table in legacy data storehouse, comprising:
Be respectively in advance each new data table and each legacy data table generating identification; The attribute information that described sign comprises tables of data;
By the sign of more described new data table and the sign of described legacy data table, judge that whether described legacy data table is identical with the attribute of described new data table.
Preferably, described attribute information comprises: the title of each field, length, type in tables of data;
In the following manner for each tables of data generates described sign:
The title of each field in tables of data, length, type are formed to character string by preset mode;
Utilize MD5 algorithm, described character string is converted to the digital digest of presetting length, described digital digest is defined as to described sign.
Preferably, also comprise: for each field in described legacy data table and new data table increases field identification, described field identification is for representing whether described field needs to adopt the data of described new data table in advance; Described data in described new data table are merged in described legacy data table, comprising:
Obtain the field identification of each field in described legacy data table, for the field that need to adopt the data of described new data table, adopt the data of this field of legacy data table described in the data replacement of described new data table respective field; For the field that does not need to adopt the data of described new data table, retain the data of described this field of legacy data table.
Preferably, for the field that need to adopt the data of described new data table, before the data of this field of legacy data table, also comprise described in the data replacement of the described new data table of described employing respective field:
If described, need to adopt the field of the data of described new data table to meet prerequisite,,
In increase legacy data table, this field can be held the maximum magnitude of data;
Or,
The request that reduces this field in legacy data table and can hold the maximum magnitude of data is sent to operation maintenance center, after receiving the confirmation conversion instruction of operation maintenance center, reduce the maximum magnitude that this field in legacy data table can be held data.
Preferably, also comprise:
Other parameters in tables of data after adopting self-optimizing technology to described upgrading are carried out additional configurations.
Preferably, also comprise:
The parameter information of described additional configurations is sent to described operation maintenance center.
A base station self-starting method, comprising:
Form with broadcast sends startup request;
The message of the described startup request of response that reception operation maintenance center issues, creates and connects to described operation maintenance center;
By described connection upgrade software and the firmware of described base station;
Receive the database version information that described operation maintenance center sends;
According to described database version information judge whether the to upgrade database of described base station;
If so, also comprise the database upgrade method described in aforementioned any one; And
To described operation maintenance center return data qurush level success message;
Start described base station.
A database upgrade system, comprising:
Configuration information receiver module, for receiving the new database profile information that comprises new data table;
Attribute matching module, for each legacy data table to legacy data storehouse, searches in described new database, whether to have the new data table identical with its attribute;
Data merge module, for according to the preset features of each field of legacy data table, the data in the described new data table identical with described legacy data Table Properties are merged in described legacy data table, generate the tables of data after upgrading.
A base station self-starting system, comprising:
Start request sending module, for the form with broadcast, send and start request;
Connect creation module, for receiving the message of the described startup request of response that operation maintenance center issues, to described operation maintenance center, create and connect;
Software firmware upgrade module, for software and the firmware of the described base station of upgrading by described connection;
Database version information receiving module, the database version information sending for receiving described operation maintenance center;
Database upgrade judge module, for the database of the described base station that judges whether according to described database version information to upgrade;
And aforesaid database upgrade system, for when judgment result is that of database upgrade judge module need to be upgraded, the database of the described base station of upgrading;
Upgrade successfully message and return to module, for to described operation maintenance center return data qurush level success message;
Base station initiated module, for starting described base station.
Adopt method and system of the present invention, in carrying out the process of database upgrade, can be according to the preset features of each field in legacy data table, data in described new data table are merged in described legacy data table, rather than adopt the mode all covering, realized the smooth upgrade to database.Therefore, the staff of OMC only needs the partial data in tables of data to carry out manual configuration, thereby has saved the process of a large amount of artificial inputs, and then has improved the efficiency of database upgrade, has saved human resources, has reduced the operation cost of communication network.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, it is database upgrade method flow diagram described in the embodiment of the present invention.As shown in Figure 1, the method comprising the steps of:
S101: receive the new database profile information that comprises new data table;
Wherein, a database can comprise a plurality of new data tables.Each tables of data can comprise a plurality of fields, and the data in tables of data are stored in corresponding field.For example in the tables of data of certain " base station frequency " by name, have as next record: Beijing 1,1500,500.Wherein field name corresponding to " Beijing 1 " is " base station name ", and field name corresponding to " 1500 " is " peak frequency ", and field name corresponding to " 500 " is " minimum frequency ".
S102: for each legacy data table in legacy data storehouse, search whether there is the new data table identical with its attribute in described new database;
So-called attribute is identical, can refer to that new data table is identical with the table name of legacy data table; Also can refer to that two tables have identical field number, and the field name of each Related fields is identical, also new table is compared with male cousin, there is no field newly-increased or deletion, and the meaning of each field do not change (variation be only the concrete data under each field).
For the latter, the attribute of tables of data described in step S102 just can comprise the attribute information of each field of this tables of data.The attribute information of field can comprise field: title, type, length.In above-mentioned example, " base station name " is exactly field name, and the type of this field can be text-type, and length can be 8 bytes.
S103: according to the preset features of each field in legacy data table, the data in described new data table are merged in described legacy data table, generate the tables of data after upgrading.
Wherein, the preset features of field can represent whether the data of this field need to adopt the data of the data replacement legacy data table respective field in new data table.This is because a part of data in new data base configuration file may be identical with legacy data, for this part data, just can retain the data of legacy data table respective field, needn't replace, and also needn't carry out human configuration; Some data (for example neighboring BS relationship parameter), system, according to the actual adjacent area situation of this base station, can configure automatically, for this part data, can allow system automatically generate according to actual conditions, does not also need to be manually configured.
Adopt database upgrade method of the present invention, in carrying out the process of database upgrade, can be according to the preset features of each field in legacy data table, data in described new data table are merged in described legacy data table, rather than adopt the mode all covering, realized the smooth upgrade to database.Therefore, the staff of OMC only needs the partial data in tables of data to carry out manual configuration, thereby has saved the process of a large amount of artificial inputs, and then has improved the efficiency of database upgrade, has saved human resources, has reduced the operation cost of communication network.
Concrete, in step S102, for each legacy data table in legacy data storehouse, search in described new database, whether to there is the new data table identical with its attribute, can be in the following ways:
Be respectively in advance each new data table and each legacy data table generating identification; The attribute information that described sign comprises tables of data;
By the sign of more described new data table and the sign of described legacy data table, judge that whether described legacy data table is identical with the attribute of described new data table.
Described sign can be the table name of tables of data, in practical application, can, only by comparing the table name of new data table and legacy data table, judge that whether two tables are identical.But, in some cases, the table name of tables of data does not change, but may increase or reduce some field in this tables of data, or change has occurred the implication of some field (is for example " 1500 " these data equally, may in legacy data table, represent peak frequency, in new data table, represent minimum frequency).Now, by comparing the table name of new data table and legacy data table, judge that the whether identical meeting of two tables causes database upgrade mistake.
Therefore in another embodiment of the present invention, described sign can comprise other attribute information of tables of data, concrete, and described attribute information can comprise: the title of each field, length, type in tables of data.Described sign can generate in the following manner:
The title of each field in tables of data, length, type are formed to character string by preset mode;
Utilize MD5 algorithm, described character string is converted to the digital digest of presetting length, described digital digest is defined as to described sign.
Wherein, the described preset mode that the title of each field in each tables of data, length, type is formed to character string is identical, can guarantee that like this character string forming according to the field of same names, length, type is identical.
MD5 algorithm is a kind of widely used digital digest algorithm.Adopt this algorithm, no matter there is any type of change in the attribute information of tables of data, all can cause the digital digest of this tables of data to change.Therefore, as long as the digital digest of two tables of data that employing MD5 algorithm generates is identical, just can represent that these two tables of data have identical field number, and in two tables, title, length, the type of corresponding each field is also identical.
Hold intelligible, the attribute information of tables of data described in the present invention also can, only comprise title and the type of each field in tables of data, or comprise other attribute of this field.
In step S103 according to the preset features of each field in legacy data table, data in described new data table are merged in described legacy data table, the preset features of each field can be original certain attribute of this field, can be to be also certain newly-increased attribute of this field.
Preset features for field is original certain attribute of this field, might as well continue to describe with precedent: in previous examples, mention, the title of some field is " base station name ", in practical application, the title of base station may can change hardly, so, can judge the title of field, if the title of this field is " base station name ", think that this field is the field that does not need to adopt the data of described new data table, retains the data of described this field of legacy data table.
In original attribute due to each field, not necessarily there is one can be used for representing whether this field needs to adopt the data of described new data table, so in another embodiment of the present invention, provide a step for the newly-increased attribute of this field:
Be that in described legacy data table and new data table, each field increases field identification in advance, described field identification is for representing whether described field needs to adopt the data of described new data table;
Obtain the field identification of each field in described legacy data table, for the field that need to adopt the data of described new data table, adopt the data of this field of legacy data table described in the data replacement of described new data table respective field; For the field that does not need to adopt the data of described new data table, retain the data of described this field of legacy data table.
Wherein, described field identification is to be the newly-increased attribute of this field, can be defined as " template " or " non-template "." template " represents that the data of this field in legacy data table need to adopt the data replacement of described new data table respective field; " non-template " represents that the data of this field in legacy data table can retain.
Get after described field identification, can judge this field identification, if " template " adopts the data of this field of legacy data table described in the data replacement of described new data table respective field; If " non-template ", retains the data of described this field of legacy data table.
For the ease of operating personnel, the data in new data table are configured, the method for the invention also comprises:
On the configuration interface of new data table, do not need to adopt the field of new data table data to be set to hide or read states only.
When this field is set to after described hidden state, on the configuration interface of tables of data, will not show this field; When this field is set to, after a described read states, on the configuration interface of tables of data, can not input data in this field.These two kinds of methods, can make operating personnel adopt the field of new data table data to be configured to not needing, and also avoided the mistake that may cause due to human configuration.
In practical application, may there is this situation: certain field in new data table, with the respective field in corresponding legacy data table, both field names, type are all identical, but it is different in two fields, can to hold the maximum magnitude of data.In this case, just need to, according to prerequisite, to this field in legacy data table, can hold the maximum magnitude of data and change.
The maximum magnitude conversion that can hold data to this field in legacy data table comprises: in increase legacy data table, this field can be held the maximum magnitude of data; Or, reduce the maximum magnitude that this field in legacy data table can be held data.
Described prerequisite can be: judge that this field in new data table can hold the maximum magnitude of data and whether be greater than the maximum magnitude that this field in legacy data table can be held data.If so, increase the maximum magnitude that this field in legacy data table can be held data.Accordingly, if the maximum magnitude that in new data table, this field can be held data is less than the maximum magnitude that this field in legacy data table can be held data, reduce the maximum magnitude that this field in legacy data table can be held data.
It is pointed out that owing to reducing when this field in legacy data table can be held the maximum magnitude of data to cause the data that under this field, other length is larger to store.So, reduce this field in legacy data table and can hold the detailed process of the maximum magnitude of data and comprise:
The request that reduces this field in legacy data table and can hold the maximum magnitude of data is sent to operation maintenance center, after receiving the confirmation conversion instruction of operation maintenance center, reduce the maximum magnitude that this field in legacy data table can be held data.
Operation maintenance center (OMC) can judge according to the physical length of data, if under this field the physical length of all data all in the legacy data table after reducing this field can hold in the maximum magnitude of data, send and confirm conversion instruction; Otherwise, this field is not carried out to scope conversion.
It should be noted that, when simultaneously, adopt of the present invention: " be respectively in advance each new data table and each legacy data table generating identification; The attribute information that described sign comprises tables of data; By the sign of more described new data table and the sign of described legacy data table, judge that whether described legacy data table is identical with the attribute of described new data table " when " maximum magnitude that can hold data to this field in legacy data table is changed " this two steps; after carrying out scope conversion; the information such as the length attribute of field may change; and then cause the attribute-bit of corresponding tables of data to change, two identical tables of data of attribute become the tables of data that attribute is not identical originally.
For fear of above-mentioned condition, occur, the method for the invention also comprises:
The length attribute that can carry out the field of scope conversion, represents by unified title.
Can avoid like this some field owing to having carried out scope conversion, and cause the attribute-bit of this tables of data to change.For example: U8 indicates without symbol 8 bit value types, U16 indicates without symbol 16 bit value types, just can be both representing with NUM, and can avoid like this attribute-bit of tables of data to carry out scope conversion because of some field and change.
Adopt the method for the invention, also comprise: for each legacy data table in legacy data storehouse, after searching and whether thering is the new data table identical with its attribute in described new database, if certain legacy data table does not have the new data table identical with this legacy data Table Properties in described new database: delete this legacy data table.
Because if certain legacy data table new data table identical with this legacy data Table Properties not in described new database, can think practical function useless after this legacy data table upgrading, so by its deletion.
In like manner, if certain the new data table in described new database does not have the legacy data table identical with this new data Table Properties in described legacy data table, this new data table is written in described legacy data storehouse.
After executing above-mentioned steps, completed for the field that need to adopt the data of described new data table, adopt the data of this field of legacy data table described in the data replacement of described new data table respective field; For the field that does not need to adopt the data of described new data table, retain the data of described this field of legacy data table.
Wherein, for the field that does not need to adopt the data of described new data table, also there are two kinds of situations: a kind of is the data that can directly retain this field of legacy data table, and another kind needs system automatically to configure according to the actual conditions of self.
So database upgrade method of the present invention, also comprises:
Other parameters in tables of data after adopting self-optimizing technology to described upgrading are carried out additional configurations.
Described self-optimizing technology, refers to the correlation technique of self-optimizing network (self-optimizing network, SON).Name, just can find out, the main function of SON is for reducing unnecessary and a large amount of waste of human resource.
A kind of technology in self-optimizing technology is: Automatic Neighboring Relation (ANR automatic neighborrelation) technology.Adopt ANR technology to generate neighboring BS relationship parameter according to the actual adjacent area situation of base station.
Therefore, other parameters in the tables of data of employing self-optimizing technology of the present invention after to described upgrading are carried out additional configurations and are comprised:
Adopt the neighboring BS relationship parameter in Automatic Neighboring Relation ANR technical configuration tables of data.
In practical application, adopt other parameters of self-optimizing technique complementary configuration for base station self, OMC is ignorant.Because OMC is when being configured the database of other base stations, may need aforementioned base station self to adopt the parameter of self-optimizing technique complementary configuration, according to the parameter of aforementioned base station self additional configurations, could unify configuration to other base stations.So the method for the invention also comprises:
The parameter information of described additional configurations is sent to described operation maintenance center.
The parameter information of described additional configurations is sent to after described operation maintenance center (OMC), and OMC just can obtain the parameter information of this base station additional configurations, and then according to the parameter of this base station self additional configurations, configuration is unified in other base stations.
The invention also discloses a kind of base station self-starting method, as shown in Figure 2, the method comprising the steps of:
S201: the form with broadcast sends startup request;
Upgrade request and initial configuration information are all to be initiated by base station (eNodeB) end, and give basic parameter configuration by OMC end.ENodeB does not also know the specific address of OMC, so what send out is broadcast.
S202: the message of the described startup request of response that reception operation maintenance center issues, creates and connect to described operation maintenance center;
S203: by described connection upgrade software and the firmware of described base station;
S204: receive the database version information that described operation maintenance center sends;
S205: according to described database version information judge whether the to upgrade database of described base station;
Concrete, according to described database version information judge whether the to upgrade database of described base station, can be in the following way: the database version information that the OMC relatively receiving sends and the database version information of base station self, if both versions are identical, do not upgrade; For example, if self version is compared comparatively legacy version (version sequence number is less) with the version that OMC sends, carry out the upgrading of database.
S206: if also comprise database upgrade method of the present invention; And
S207: to described operation maintenance center return data qurush level success message;
S208: start described base station.
Adopt base station self-starting method of the present invention, one side can realize base station automatically and OMC connects, and owing to having adopted database upgrade method of the present invention, can also realize the smooth upgrade to database on the other hand.
Corresponding with database upgrade method of the present invention, the invention also discloses a kind of database upgrade system.Referring to Fig. 3, it is database upgrade system construction drawing described in the embodiment of the present invention.As shown in Figure 3, this system comprises:
Configuration information receiver module 301, for receiving the new database profile information that comprises new data table;
Wherein, a database can comprise a plurality of new data tables.Each tables of data can comprise a plurality of fields, and the data in tables of data are stored in corresponding field.
Attribute matching module 302, for each legacy data table to legacy data storehouse, searches in described new database, whether to have the new data table identical with its attribute;
So-called attribute is identical, can refer to that new data table is identical with the table name of legacy data table; Also can refer to that two tables have identical field number, and the field name of each Related fields is identical, also new table is compared with male cousin, there is no field newly-increased or deletion, and the meaning of each field do not change (variation be only the concrete data under each field).
For the latter, the attribute of described tables of data just can comprise the attribute information of each field of this tables of data.The attribute information of field can comprise field: title, type, length.
Data merge module 303, for according to the preset features of each field of legacy data table, the data in the described new data table identical with described legacy data Table Properties are merged in described legacy data table, generate the tables of data after upgrading.
Wherein, the preset features of field can represent whether the data of this field need to adopt the data of the data replacement legacy data table respective field in new data table.This is because a part of data in new data base configuration file may be identical with legacy data, for this part data, just can retain the data of legacy data table respective field, needn't replace, and also needn't carry out human configuration; Some data (for example neighboring BS relationship parameter), system, according to the actual adjacent area situation of this base station, can configure automatically, for this part data, can allow system automatically generate according to actual conditions, does not also need to be manually configured.
Adopt database upgrade system of the present invention, in carrying out the process of database upgrade, can be according to the preset features of each field in legacy data table, data in described new data table are merged in described legacy data table, rather than adopt the mode all covering, realized the smooth upgrade to database.Therefore, the staff of OMC only needs the partial data in tables of data to carry out manual configuration, thereby has saved the process of a large amount of artificial inputs, and then has improved the efficiency of database upgrade, has saved human resources, has reduced the operation cost of communication network.
In practical application, database upgrade system of the present invention, can also comprise:
Tables of data sign generation module, for being respectively each new data table and each legacy data table generating identification; The attribute information that described sign comprises tables of data;
Accordingly, described attribute matching module 302 comprises:
Tables of data sign comparing unit, for by the sign of more described new data table and the sign of described legacy data table, judges that whether described legacy data table is identical with the attribute of described new data table.
Described tables of data sign generation module can generate described sign in the following manner:
The title of each field in tables of data, length, type are formed to character string by preset mode;
Utilize MD5 algorithm, described character string is converted to the digital digest of presetting length, described digital digest is defined as to described sign.
Wherein, the described preset mode that the title of each field in each tables of data, length, type is formed to character string is identical, can guarantee that like this character string forming according to the field of same names, length, type is identical.
Hold intelligible, the attribute information of tables of data described in the present invention also can, only comprise title and the type of each field in tables of data, or comprise other attribute of this field.
In practical application, database upgrade system of the present invention can also comprise:
Field identification generation module, is used to each field in described legacy data table and new data table to increase field identification, and described field identification is for representing whether described field needs to adopt the data of described new data table;
Accordingly, described data merging module 303 comprises:
Field identification recognition unit, for obtaining the field identification of described each field of legacy data table, judges whether respective field needs to adopt the data of described new data table;
Data replacement unit, for the field for adopting the data of described new data table, adopts the data of this field of legacy data table described in the data replacement of described new data table respective field.
Wherein, the described field identification that field identification generation module generates is to be the newly-increased attribute of this field, can be defined as " template " or " non-template "." template " represents that the data of this field in legacy data table need to adopt the data replacement of described new data table respective field; " non-template " represents that the data of this field in legacy data table can retain.
Field identification recognition unit gets after described field identification, can judge this field identification, if " template " adopts the data of this field of legacy data table described in the data replacement of described new data table respective field; If " non-template ", retains the data of described this field of legacy data table.
For the ease of operating personnel, the data in new data table are configured, in database upgrade system of the present invention, described field identification generation module also comprises:
Field status setting unit, for the configuration interface at new data table, does not need to adopt the field of new data table data to be set to hide or read states only.
In practical application, may there is this situation: certain field in new data table, with the respective field in corresponding legacy data table, both field names, type are all identical, but it is different in two fields, can to hold the maximum magnitude of data.In this case, just need to, according to prerequisite, to this field in legacy data table, can hold the maximum magnitude of data and change.
Accordingly, in database upgrade system of the present invention described data merge module 303 and also comprise:
Scope converting unit, for judging that whether the described field of the data of described new data table that need to adopt meets prerequisite, can hold the maximum magnitude of data and change to this field in qualified legacy data table.
The maximum magnitude conversion that can hold data to this field in legacy data table comprises: in increase legacy data table, this field can be held the maximum magnitude of data; Or, reduce the maximum magnitude that this field in legacy data table can be held data.
Accordingly, described scope converting unit comprises:
Scope increases subelement, can hold the maximum magnitude of data for increasing this field of legacy data table;
Scope reduces subelement, for the request that reduces this field of legacy data table and can hold the maximum magnitude of data is sent to operation maintenance center, after receiving the confirmation conversion instruction of operation maintenance center, reduce the maximum magnitude that this field in legacy data table can be held data.
Corresponding to database upgrade method of the present invention, database upgrade system of the present invention can also comprise:
Tables of data removing module, for judging whether certain legacy data table has the new data table identical with this legacy data Table Properties in described new database, if there is no the new data table identical with this legacy data Table Properties, deletes this legacy data table.
Tables of data writing module, for judging certain new data table of described new database, in described legacy data table, whether there is the legacy data table identical with this new data Table Properties, if the legacy data table identical with this new data Table Properties, is not written to this new data table in described legacy data storehouse.
Additional configurations module, carries out additional configurations for other parameters of the tables of data after adopting self-optimizing technology to described upgrading.
Wherein, additional configurations module can comprise: neighboring BS relationship dispensing unit, and for adopting the neighboring BS relationship parameter of Automatic Neighboring Relation ANR technical configuration tables of data.
Additional configurations information sending module, for being sent to described operation maintenance center by the parameter information of described additional configurations.
The invention also discloses a kind of base station self-starting system, as shown in Figure 4, comprising:
Start request sending module 401, for the form with broadcast, send and start request;
Connect creation module 402, for receiving the message of the described startup request of response that operation maintenance center issues, to described operation maintenance center, create and connect;
Software firmware upgrade module 403, for software and the firmware of the described base station of upgrading by described connection;
Database version information receiving module 404, the database version information sending for receiving described operation maintenance center;
Database upgrade judge module 405, for the database of the described base station that judges whether according to described database version information to upgrade;
And the database upgrade system described in claim 14 to 24 any one, for when judgment result is that of database upgrade judge module need to be upgraded, the database of the described base station of upgrading;
Upgrade successfully message and return to module 406, for to described operation maintenance center return data qurush level success message;
Base station initiated module 407, for starting described base station.
Adopt base station of the present invention self-starting system, one side can realize base station automatically and OMC connects, and owing to having adopted database upgrade system of the present invention, can also realize the smooth upgrade to database on the other hand.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part partly illustrates referring to method.
Applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.