摘要 |
PURPOSE: A database connection management method in case that there is an error is provided to perform secondary database when an error is generated in main database, thereby minimizing error time. CONSTITUTION: An application program accesses first and second database at the same time(S312). When a database task request message is received, a first application program searches for a sharing memory and confirms state parameters of the first and second databases(S314). The first application program performs a database task that the state parameter is requested to a normal first or second database(S316). The first application program senses a state of a database which performs the database task(S317). When an error is generated, the first application program changes a state parameter of the database from normality to abnormality(S319). [Reference numerals] (S311) Design state parameter values for each DB device and store the detected state parameter values; (S312) First application program simultaneously accesses first and second DB devices; (S313) Receive a DB operation requesting message; (S314) Inquire the state parameter value of each DB device stored in a sharing memory; (S315) State parameter value of the first DB device = Normal ?; (S316) Implement a DB operation with the first DB device; (S317) Detect the state of the first DB device; (S318,S324) Error occurred?; (S319) Change the state parameter value of the first DB device; (S321) State parameter value of the second DB device = Normal ?; (S322) Implement a DB operation with the second DB device; (S323) Detect the state of the second DB device; (S325) Change the state parameter value of the second DB device; (S326) Process the implementation failure of the DB operation
|