Movatterモバイル変換


[0]ホーム

URL:


CN1945579A - Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger - Google Patents

Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger
Download PDF

Info

Publication number
CN1945579A
CN1945579ACN 200610134109CN200610134109ACN1945579ACN 1945579 ACN1945579 ACN 1945579ACN 200610134109CN200610134109CN 200610134109CN 200610134109 ACN200610134109 ACN 200610134109ACN 1945579 ACN1945579 ACN 1945579A
Authority
CN
China
Prior art keywords
trigger
interimtable
sql
transaction
technology
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610134109
Other languages
Chinese (zh)
Inventor
关玉双
宋祝军
刘建林
徐磊
罗怀达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Liaohe Petroleum Exploration Bureau
Original Assignee
Liaohe Petroleum Exploration Bureau
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Liaohe Petroleum Exploration BureaufiledCriticalLiaohe Petroleum Exploration Bureau
Priority to CN 200610134109priorityCriticalpatent/CN1945579A/en
Publication of CN1945579ApublicationCriticalpatent/CN1945579A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The invention relates to a technology which is used in the human resources management and materials management software, and uses PL/SQL trigger to realize data synchronization between the tables of Oracle Spatial. It characters are that: it establishes the temporary table interimtable, uses the function before and after of Delete trigger, storing the Id number in the interimtable and reading it out into the data variables to avoid ':old.Id' direct application, to realize data synchronization between the tables of Oracle Spatial and achieve the purpose of inquiring information accurately and conveniently.

Description

Use the PL/SQL trigger and realize data synchronization technology between the oracle database table
Technical field:
The present invention relates to a kind of technical method that is used for software application such as human resource management, material management.
Background technology:
Along with the development of infotech, the oracle database technology promotes the use of every field more and more widely, in human resource management, material management software.Use oracle database and carry out in the process of data processing, in order to explain the different attribute of a certain affairs, the designer sets up N transaction attributes table according to the different attribute of affairs, and attribute list is used to write down the evolution process of transaction attributes.N attribute list links up with transaction table with one or more key word.In order to satisfy user's demand, make things convenient for the realization of polling routine, the designer often joins together the field of N transaction attributes table, sets up the community set table, when attribute list changes, the latest development of community set table record attribute list.At present, in the different table of human resource management software oracle database, set up Update, Insert trigger, follow the PL/SQL language rule, all can use ": new.Id ", ": old.Id " and explain the setting of compound condition value in the Where condition, and then realize the new extraction that is worth, and the data in the community set table are upgraded.But in the implementation procedure of Delete trigger, " old.Id " can not be cited, if quoted ": old.Id ", when the Delete trigger moves, the recurrence error message can be pointed out by the oracle database system, and the function that this mistake provides with Oracle itself can't be resolved.
Summary of the invention:
The object of the present invention is to provide and a kind ofly can realize data sync between the oracle database table and can avoid the application PL/SQL trigger of recurrence error message to realize data synchronization technology between the oracle database table.
The technical solution adopted for the present invention to solve the technical problems is: this technology is by setting up temporary table interimtable, use the before and the after function of Delete trigger, by among the interimtable to Id number storage, and read in the data variable, avoidance is to the direct application of ": old.Id ", realize data sync between the oracle database table, reach the purpose of the accurate information of convenient inquiry.With the human resource management software is that the example implementation step is as follows:
1, sets up the transaction table table1 that is writing down worker's natural situation, comprise Id, name (Name), sex (Sex), national (Nationality) etc. in the table, wherein Id (key word) is this table major key, Varthar2 is a character string type, length refers to byte, 1 byte of English 1 letter, 1 Chinese character of Chinese character is 2 syllables;
Table 1 transaction table table1
The row nameTypeLength
Id Varchar2 10
Name Varchar2 10
Sex Varchar2 2
Nationality Varchar2 6
2, set up the transaction attributes table table2 that is writing down worker's educational background differentiation attribute, comprise Id, graduation time (Graduationdate), previous graduate college (School) etc. in the table, wherein Id is the external bond of this table, and Id, Gnaduationdate are the index keys of this table;
First transaction attributes table of table 2 table2
The row nameTypeLength
Id Varchar2 10
Graduationdate Datetime
School Varchar2 30
3, set up second the transaction attributes table table3 that is writing down worker's resume, comprise Id, zero-time, work unit etc. in the table, wherein Id is the external bond of this table, and Id, Startdate are the index keys of this table;
Second transaction attributes table of table 3 table3
The row nameTypeLength
Id Varchar2 10
Startdate Datetime
Workunit Varchar2 30
4, establish the community set table table0 of table1, table2, three table set of table3, wherein, Id is the external bond of this table, and the record in the table forms automatically;
Table 4 community set table table0
The row nameTypeLength
Id Varchar2 10
Name Varchar2 10
Sex Varchar2 2
Nationality Varchar2 6
Graduationdate Datetime
School Varchar2 30
Startdate Datetime
Workunit Varchar2 30
5, in different tables, set up Update, Delete, Insert trigger, use the PL/SQL language rule, realize the interlock of table0 table content.
Technical method provided by the invention is easy and simple to handle, and is easy to implement, utilizes it can realize making things convenient for data sync between management software oracle database tables such as human resources the carrying out of polling routine, and can avoid the recurrence error message.
Description of drawings: table 1, table 2, table 3, table 4 are respectively needs the transaction table table1, transaction attributes table table2, table3 and the community set table table0 that set up in the invention process process.
Embodiment:
According to aforesaid technical solution of the present invention implementation step and the chart that provides, corresponding concrete literal of input or numeral can be carried out inquiry and the application of human resource management software oracle database to program smoothly.
If material management or other management softwares then need be set up correspondent transaction table table1, transaction attributes table table2, table3 and community set table table0, and import corresponding data information and get final product.

Claims (1)

CN 2006101341092006-10-282006-10-28Technology for realizing data synchronization between Oracle data base lists by using PL/SQL triggerPendingCN1945579A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN 200610134109CN1945579A (en)2006-10-282006-10-28Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN 200610134109CN1945579A (en)2006-10-282006-10-28Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger

Publications (1)

Publication NumberPublication Date
CN1945579Atrue CN1945579A (en)2007-04-11

Family

ID=38044982

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN 200610134109PendingCN1945579A (en)2006-10-282006-10-28Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger

Country Status (1)

CountryLink
CN (1)CN1945579A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN100454311C (en)*2006-12-252009-01-21华为技术有限公司 SQL-based data synchronization method and device
CN101739447B (en)*2009-11-162012-11-28金蝶软件(中国)有限公司Method and device for managing temporary tables
CN104111957A (en)*2013-04-222014-10-22阿里巴巴集团控股有限公司Method and system for synchronizing distributed transaction
CN112836063A (en)*2021-01-272021-05-25四川新网银行股份有限公司Method for realizing feature tracing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN100454311C (en)*2006-12-252009-01-21华为技术有限公司 SQL-based data synchronization method and device
CN101739447B (en)*2009-11-162012-11-28金蝶软件(中国)有限公司Method and device for managing temporary tables
CN104111957A (en)*2013-04-222014-10-22阿里巴巴集团控股有限公司Method and system for synchronizing distributed transaction
CN104111957B (en)*2013-04-222017-08-11阿里巴巴集团控股有限公司A kind of synchronous method and system of distributed transaction
CN112836063A (en)*2021-01-272021-05-25四川新网银行股份有限公司Method for realizing feature tracing

Similar Documents

PublicationPublication DateTitle
CN103699638B (en)Method for realizing cross-database type synchronous data based on configuration parameters
CN103761318B (en)A kind of method and system of relationship type synchronization of data in heterogeneous database
CN103631907B (en)A kind of method and system that relational data is migrated to HBase
US8756495B2 (en)Computer-implemented system and method for tagged and rectangular data processing
US9058370B2 (en)Method, system and program product for defining imports into and exports out from a database system using spread sheets by use of a control language
CN111782731B (en) Data synchronization method and device
CN103810212A (en)Automated database index creation method and system
CN114090760B (en) Data processing method, electronic device and readable storage medium for form question answering
CN102103605A (en)Method and system for intelligently extracting document structure
US7627595B2 (en)Apparatus, method, and computer program product for synchronizing data sources
CN113282599A (en)Data synchronization method and system
CN104699758B (en)The commanding document intelligent generating system and method for a kind of graphics and text library association
CN1945579A (en)Technology for realizing data synchronization between Oracle data base lists by using PL/SQL trigger
CN115033827A (en)Method for updating front-end field
CN115658815A (en)CDC (control data center) -based data synchronization method
CN115617773A (en)Data migration method, device and system
CN103246753A (en)Method for generating entity metadata model according to database structure
FehilySQL Database Programming
CN101937433A (en)Real-time searching method of product
EP3635580A1 (en)Functional equivalence of tuples and edges in graph databases
CN116010439A (en)Visual Chinese SQL system and query construction method
CN101908063A (en)Universal report query tool
CN102866985B (en)For data formatter and the method for on-line analysing processing system
CN118349602A (en) A method for ES data synchronization
CN118170851A (en)Heterogeneous database data field synchronization method and system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C12Rejection of a patent application after its publication
RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp