5oracledatabase12c最大化应用程序的可用性

上传人:千****8 文档编号:118604784 上传时间:2019-12-19 格式:PPT 页数:32 大小:703.22KB
返回 下载 相关 举报
5oracledatabase12c最大化应用程序的可用性_第1页
第1页 / 共32页
5oracledatabase12c最大化应用程序的可用性_第2页
第2页 / 共32页
5oracledatabase12c最大化应用程序的可用性_第3页
第3页 / 共32页
5oracledatabase12c最大化应用程序的可用性_第4页
第4页 / 共32页
5oracledatabase12c最大化应用程序的可用性_第5页
第5页 / 共32页
点击查看更多>>
资源描述

《5oracledatabase12c最大化应用程序的可用性》由会员分享,可在线阅读,更多相关《5oracledatabase12c最大化应用程序的可用性(32页珍藏版)》请在金锄头文库上搜索。

1、Maximum Application Availability with Oracle Database 12c,Kuassi Mensah Director Product Management,The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any m

2、aterial, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracles products remains at the sole discretion of Oracle.,My Next Session,Oracle In-Database MapReduce: When Hadoop Meet

3、s Exadata 7/25/13, 12:00 13:00, Room 431,Program Agenda,Problems to Solve New Concepts Transaction Guard Application Continuity Application Design Considerations,Problems to Solve,Upon Database Outage Four Problems Confront Applications Hang Errors Outcome of In-Flight Work Resubmission of In-Flight

4、 Work,Hang - Fast Application Notification (FAN) Errors Handling? Not formalized In-Flight Work? Lost! Resubmission of In-Flight Work? N/A!,Current Situation,Program Agenda,Problems to Solve New Concepts Transaction Guard Application Continuity Application Design Considerations,Recoverable Error,For

5、malized OracleException.IsRecoverable property Applications No longer need to maintain own list of error codes (e.g., ora-1033, ora-1034, ora-xxx) JDBC throws SQLRecoverableException,Database Request Unit of Work,PoolDataSource pds = GetPoolDataSource(); Connection conn = getConnection(pds); Prepare

6、dStatement pstmt = SQL, PL/SQL, local calls, RPC mit(); conn.close();,Request Begins,Request Body Usually ends with COMMIT,Request Ends,Program Agenda,Problems to Solve New Concepts Transaction Guard Application Continuity Application Design Considerations,Transaction Guard,Tool that supports known

7、outcome for every transaction Without Transaction Guard, retry can cause logical corruption Used by Application Continuity Can be used independently of Application Continuity,4. Enforce Outcome,Work Request,2. DB Calls,12c ORACLE Database,3. Errors,4. Reliable Commit Outcome,Transaction Guard Typica

8、l Usage,Upon database instance crash FAN aborts dead session Application gets an error Pool removes orphan connection from pool If “recoverable error” then Get last LTXID from dead session Obtain new database session Get transaction status,Transaction Guard In Action,getConnection() Txn.Commit(); ge

9、t Last LTXID Commit outcome? COMMIT/ROLLBACK,start transaction assign LTXID COMMIT? Return & Preserve COMMIT OUTCOME,Client/Mid-tier,Database,Time,Get Logical TX ID,TG in Action,On Service COMMIT_OUTCOME Values TRUE and FALSE Default FALSE Applies to new sessions RETENTION_TIMEOUT Units seconds Defa

10、ult 24 hours (86400) Maximum value 30 days (2592000),Transaction Guard Configuration,Transaction Guard in Oracle database 12c,JDBC-thin, ODP.NET, OCI, OCCI Commit Models Local TXN Auto-commit, Commit on Success Commit embedded in PL/SQL DDL, DCL, Parallel DDL Remote, Distributed Exclusions XA R/W DB

11、Links from Active Data Guard or Read Only,Program Agenda,Problems to Solve New Concepts Transaction Guard Application Continuity Design Considerations,Application Continuity,Mask Database Outage When Successful,Replays in-flight work on recoverable errors Masks many hardware, software, network, stor

12、age errors and outages when successful Improves end user experience,5. Response,Work Request,2. DB Calls,12c ORACLE Database,4. Replay,3. Errors,Phases in Application Continuity,Application Continuity In Action,Call 1,Application,Call 2,Oracle JDBC Driver,DEMO,Solution Coverage Application Continuit

13、y for Java,Client JDBC-Thin driver UCP, WebLogic Server Database SQL, PL/SQL, RPC Select, ALTER SESSION, DML, DDL, COMMIT/ROLLBACK/SAVEPOINT Transaction models: Local, Parallel, Remote, Distributed Mutable function support Hardware acceleration on current Intel & SPARC chips,Exclusions,Restrictions

14、When Does Replay Not Occur?,Program Agenda,Problems to Solve New Concepts Transaction Guard Application Continuity Application Design Considerations,Application Assessment,Side Effects,When Replay is enabled, some calls may be repeated. Apps may need to use disableReplay() API to prevent this: Auton

15、omous transactions UTL_HTTP , UTL_URL UTL_FILE, UTL_FILE_TRANSFER - files operations UTL_SMPT, UTL_TCP, UTL_MAIL - sending messages DBMS_PIPE, RPCs - to external sources DBMS_ALERT - email or other notifications,Configure JDBC Replay Driver Set replay data source in property file datasource=oracle.j

16、dbc.replay.OracleDataSourceImpl Enable Application Continuity on Service Set FAILOVER_TYPE = TRANSACTION Review settings for: REPLAY_INITIATION_TIMEOUT = 1800 FAILOVER_DELAY = 3 seconds FAILOVER_RETRIES = 60 retries SESSION_STATE_CONSISTENCY = DYNAMIC COMMIT_OUTCOME = TRUE,Configuration,GRANT KEEP DATE TIME | KEEP SYSGUID to USER REVOKE KEEP DATE TIME | KEEP SYSGUIDfrom USER GRANT KEEP SEQ

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 企业信息化/信息管理

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号