11_replicationweblogic 11G 第十一课
Weblogic_11g集群搭建

Weblogic_11g集群搭建Weblogic集群部署1.Server⽤过tomcat的朋友应该清楚,当我们有多个项⽬部署在同⼀个tomcat服务器下的时候,我们只需要启动这个tomcat就可以根据⽬录的不同,访问这些应⽤,此时我们⽤的端⼝号不需要改变。
在weblogic服务器中,⼀个server同等于⼀个tomcat。
⾸先我们在创建⼀个server的时候需要给它指定⼀个ip和端⼝(这个ip可以是⼀台远程机器的ip)。
创建好server以后,我们就可以将项⽬部署在其中了。
如果我们有多个项⽬,并且我希望每个项⽬能对应不同的端⼝,那么我们就可以通过创建多个server来实现。
有时候我们称server为'节点',所以以后听到别⼈说节点的时候也不要茫然,说的就是它了。
2.Cluster这个,就是我们本⽂要讲的重点,集群。
按照我个⼈的理解,集群就是把具有相同应⽤的⼀些server,放在⼀起,统⼀管理。
举个很简单的例⼦,就是我现在有项⽬,我分别放在三个不同的server⾥⾯(先别管我为什么放三个不同的server中)。
那么问题来了,我项⽬要有改动了怎么办?分别去各⾃的server中重新部署?别开玩笑了,万⼀不是三个是⼗个呢?万⼀不是在同⼀台机器上呢(前⾯说了,可以是⼀台远程机器)?我们带着这个问题再来看⼀下集群,放在⼀起....统⼀管理....现在明⽩了吧,这就是集群给我们带来的便利,将这些server加⼊到同⼀个集群当中,如果项⽬有变动的话,我们只需要在部署项⽬的时候,通过集群去部署,那么weblogic会⾃动帮我们将应⽤分配到各个⼦节点中。
3.domaindomian我们有时候也会把它称作为'域',他就相当于⼀个⼤的容器,⾥⾯可以存放很多server,其中有⼀个默认的server,它会随着域的启动⽽启动。
有⼀点我们必须要清楚,就是当你想要启动某个domain下的server 的时候,必须先启动这个domain。
Oracle WebLogic Server SIP Container 11g Release 1

Oracle® WebLogic Server SIP Container Installation Guide11g Release 1 (11.1.1)E15460-01October 2009Oracle WebLogic Server SIP Container Installation Guide 11g Release 1 (11.1.1)E15460-01Copyright © 2006, 2009, Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.ContentsPreface (v)Audience (v)Documentation Accessibility (v)Related Documents (vi)Conventions (vi)1Installing Oracle WebLogic SIP Container Base PlatformInstalling Oracle WebLogic Server SIP Container............................................................................. 1-1iiiivPrefaceThis preface contains the following topics:■Audience■Documentation Accessibility■Related Documents■ConventionsAudienceThis guide is intended for system administrators and developers who want to installand use Oracle WebLogic SIP Container.Documentation AccessibilityOur goal is to make Oracle products, services, and supporting documentationaccessible to all users, including users that are disabled. To that end, ourdocumentation includes features that make information available to users of assistivetechnology. This documentation is available in HTML format, and contains markup tofacilitate access by the disabled community. Accessibility standards will continue toevolve over time, and Oracle is actively engaged with other market-leadingtechnology vendors to address technical obstacles so that our documentation can beaccessible to all of our customers. For more information, visit the Oracle AccessibilityProgram Web site at /accessibility/.Accessibility of Code Examples in DocumentationScreen readers may not always correctly read the code examples in this document. Theconventions for writing code require that closing braces should appear on anotherwise empty line; however, some screen readers may not always read a line of textthat consists solely of a bracket or brace.Accessibility of Links to External Web Sites in DocumentationThis documentation may contain links to Web sites of other companies ororganizations that Oracle does not own or control. Oracle neither evaluates nor makesany representations regarding the accessibility of these Web sites.Deaf/Hard of Hearing Access to Oracle Support ServicesTo reach Oracle Support Services, use a telecommunications relay service (TRS) to callOracle Support at 1.800.223.1711. An Oracle Support Services engineer will handletechnical issues and provide customer support according to the Oracle service requestvprocess. Information about TRS is available at/cgb/consumerfacts/trs.html, and a list of phonenumbers is available at /cgb/dro/trsphonebk.html.Related DocumentsFor more information, see the following documents:■Oracle WebLogic SIP Container Administrator’s Guide■Oracle WebLogic SIP Container Developer’s Guide■Oracle WebLogic SIP Container Release NotesConventionsThe following text conventions are used in this document:Convention Meaningboldface Boldface type indicates graphical user interface elements associatedwith an action, or terms defined in text or the glossary.italic Italic type indicates book titles, emphasis, or placeholder variables forwhich you supply particular values.monospace Monospace type indicates commands within a paragraph, URLs, codein examples, text that appears on the screen, or text that you enter.vi1Installing Oracle WebLogic SIP Container Base Platform 1-1Installing Oracle WebLogic SIP ContainerBase PlatformThis chapter describes how to install Oracle WebLogic Server SIP Container, and contains the following section:■Section 1.1, "Installing Oracle WebLogic Server SIP Container"These installation instructions are written using UNIX syntax and assume a bash shell. You can adapt them for your shell on UNIX or use the corresponding Microsoft Windows commands and syntax when installing on Microsoft Windows.1.1Installing Oracle WebLogic Server SIP ContainerPerform the following steps to install Oracle WebLogic Server SIP Container:1.Give executable permission on the installer file (if needed).2.Run one of the following commands, depending on your operating system. Forexample:■On Linux: ./owlcs103_linux32.bin ■On Windows: owlcs103_win32.exeThe installation files are extracted and the Welcome screen appears.3.On the Welcome screen click Next . The Choose Middleware Home Directory appears.4.In the Choose Middleware Home Directory screen, select Create a New Middleware Home (do not try to install into an existing middleware directory).5.Enter the absolute path to the middleware home.6.Click Next . The Register for Security Updates screen appears.7.In the Register for Security Updates screen you can optionally enter the following:■An e-mail address for receiving updates on security issues (recommended).Note:The Middleware Home Directory is the root directory for theOWLSC Base Platform installation. Middleware Home Directory is referred to as MW_HOME in this book. When you see MW_HOME or$MW_HOME, that means the absolute path to your MiddlewareHome directory.Installing Oracle WebLogic Server SIP Container1-2Oracle WebLogic Server SIP Container Installation Guide■Select the checkbox and enter your My Oracle Support password to receive security updates through My Oracle Support. For more information, see/support/policies.html .8.Click Next . The Choose Install Types screen appears.9.On the Choose Install Types screen select Typical . Click Next . The Choose ProductInstallation Directories screen appears.10.Though you can change locations, Oracle Corporation recommends that you use the default locations whenever possible. Click Next .11.If on a Windows operating system, the Choose Shortcut Location screen appears. Ifyou so choose, select the All Users Start Menu folder and click Next . The Installation Summary screen appears.12.On the Installation Summary screen, click Next .13.On the Installation Complete screen click Next .The installation is complete.IndexOOracle WebLogic SIP Container Base Platforminstalling,1-1Oracle WebLogic SIP Serverinstalling,1-1Index-1Index-2。
Oracle WebLogic 11g Rel 1 (10.3.5) 在 Windows 上的安装指

Copyright and Trademarks
Copyright © 1995, 2012, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
OracleWeblogic11g基础知识

主要特点
支持多种编程语 言和框架
WebLogic Server 11g 支持 Java EE 和 SOA 标准,以及多种流行的 编程语言和框架,如 Java、JSP、Servlets、 EJB、JMS、JAX-WS 等。
集成开发环境 (IDE)
高可用性和可伸 缩性
WebLogic Server 11g 提供了一个集成的开发 环境(IDE),支持从设 计到部署的全过程开发, 包括代码编辑、调试、 测试和部署等。
WebLogic Server 11g 支持高可用性和可伸缩 性,通过集群和负载均 衡技术,提供对关键业 务应用的保护,确保应 用程序的可靠性和性能 。
指导用户如何配置审计和日志功能,以便于监控和安全分析。
安全策略配置
指导用户如何配置安全策略,包括 IP 限制、URL 过滤等。
安全漏洞与防护
1 2
常见安全漏洞
介绍 WebLogic Server 11g 中常见的安全漏洞, 如跨站脚本攻击(XSS)、SQL 注入等。
安全补丁
及时发布安全补丁,修复已知的安全漏洞,提高 系统的安全性。
ABCD
VisualVM:用于监控 Java应用程序的内存、线 程和CPU使用情况。
AWR报告:Oracle自动 工作负载仓库报告,提供 数据库性能的详细分析和 诊断。
性能优化案例
案例一
某银行核心业务系统在高峰期出现性 能瓶颈,通过调整JVM参数和 WebLogic参数,成功提高了系统响 应速度和吞吐量。
3
安全加固
通过配置安全策略、限制访问权限等措施,加固 系统的安全性,防止潜在的安全威胁。
Oracle_Weblogic_11g_基础知识

数据质量
or
3rd
party JEE Application Server (Oracle AS, WebLogic, WebSphere, JBoss)
应用网格
OSBOSB- 基于配置的企业服务总线
• 功能简介
– 成熟的面向服务体系结构(SOA) 的轻型应用集成平台,简单、无编码、基于配置的服务集成,使您更快地 获得实施部署。
– 应用服务器的领导者,全球企业首选的应用服务器。 – 支持最新的 Java 平台、企业版5 (Java EE5) 规范及Web 服务标准,从而可简化开发并增强互操作性, 以支持面向服务的体系结构 (SOA)。 – 领先的可靠性、可用性、可扩展性和业界领先的性能。
• 主要优势
– – – – – – – – – J2EE应用服务器性能记录的保持者 应用程序和服务坚若磐石的可用性和运行时间 更好地监视和管理生产应用程序 能够仅仅获取并安装所需的项目 更快、更高效的开发-部署-调试周期 卓越的最终用户客户端可用性 高效快速的服务器管理 简化新应用程序和服务的开发 工具选项扩充了可用的开发人员知识库
对客户端最友好的应用停用方式确保版本升级中的交易完整性weblogicserver被管服务器同一个jvm已经在服务的外部访问已经在服务的外部访问新到达的外部访问新到达的外部访问旧的应用版本旧的应用版本新的应用版本新的应用版本管理员测试客户端连接管理员测试客户端连接在向所有客户提供服务之前只对管理员进行测试在向所有客户提供服务之前只对管理员进行测试不停机的应用网格维护零停机应用服务器升级不影响用户的情况下进行应用服务器升级集群中的服务器实例可以轮流升丌仅仅是应用服务器升级所有融合中间件都可以丌停机升级维单播机制节点节点33被管服务器节点管理器应用应用11节点节点44被管服务器节点管理应用1节点节点11被管服务器节点管理器节点节点22被管服务器节点管理器应用应用11patchxypatchxypatchxypatchxy应用应用11实际操作自劢化和深度洞察的管理操作深度洞察的管理操作管理操作lifecyclemanagementgridcontrolfmwcontrolwldfdiagnosticspackweblogicdeploymentweblogicscriptingtooldomaintemplatescamm企业级fmw服务器级部署配置维护供应复合应用级agendaoracle中间件产品家族一览weblogicserver11g整体架构预览weblogicserver11g基础知识和概念weblogicserver11g安装实例一个weblogic服务器实例的逻辑相关组您可以使用单一配置属性集管理它们
weblogic11g for windows配置文档

第1节Weblogic11g for windows+MSSQL安装方法1.1安装Weblogic10g(1)产品的安装双击文件“wls1031_win32.exe”,安装BEA产品单击“Done ”按钮,完成安装(2)创建域安装成功后,找到“F:\weblogic10g\Middleware\wlserver_10.3\common\bin”目录下的config.cmd,双击打开config.cmd,按向导创建domain(1)选择“”,然后按“NEXT”按钮。
(2)在下一页面,按下图1-2-1选择:图1-2-1(3)输入用户名、用户密码,界面如下图1-2-2:图1-2-2然后按“NEXT”按钮。
(4)域的启动模式和JDK的选择。
域的启动模式选择“”,JDK选择钮。
(5) 配置管理服务器,输入如下信息,如图1-2-3所示:图1-2-3然后按“Create”按钮。
单击“Done ”按钮完成域的创建。
1.2 配置Weblogic 运行环境1、拷贝文件,将hrms 文件夹拷贝到“F:\weblogic10g\Middleware\user_projects\domains\base_domain”目录下注意:hrms文件夹中有两个文件夹,分别为config和lib文件夹,如图1-2-4所示:图1-2-42、修改config目录下的system.properties文件,如下图1-2-5。
图1-2-53、到D:\weblogic\bea\user_projects\domains\my_domain\bin目录下,用记事本打开startWebLogic.cmd文件,在文件头增加下面语句,因为它是MSSQL2000 或2005的驱动程序,如图1-2-6所示。
『如果数据库是oralce10g时,Weblogic91应用服务器已内置了jdbc for oracle10g的驱动,带下划线的部分就不要了(电子文档中显示为绿色)』。
Weblogic11g部署web应用程序详细图解

Weblogic 11g 部署web应用程序详细图解----浪花滚滚1. 手动部署A.创建web工程。
B.将web工程导出war格式。
导出的包:C.启动weblogic服务。
服务启动成功:D.打开服务配置页面并登陆。
E.登陆成功后,点击左侧菜单栏的部署F.点右边的安装按钮G.点上传文件F.选择刚才导出的war包,将其上传,下一步。
G.选择上传好的文件,下一步。
H.选择“讲次部署安装为应用程序”,下一步。
I.可以在这里为工程取个别名,也可以用默认。
其他都选择默认,下一步。
J.完成。
H.再点左侧菜单栏的部署,显示部署的应用程序的状态。
J.地址栏输入工程的地址:http://localhost:7001/工程文件名(或者刚才改过的别名),发现网页正常运行,部署成功!2. weblogic和myeclips集成的配置部署A.点击myeclips工具栏的按钮的黑色小三角,在弹出窗口的左侧选择Configure Server →Servers→WebLogic→Weblogic 10.xB.选择EnableC.配置WebLogic的路径及其登录用户名和密码D.左侧点击JDK右边点ADD按钮点Directory…选择weblogic安装目录下的JDK包。
注意:weblogic的版本和JDK的版本是严格匹配的,一定要选择正确的版本号。
并且需要使用跟安装weblogic时选择的同一个JDK。
E.点左侧的Launch,右边选择Run modeF.配置完成!G.部署工程点myeclips上方工具栏的按钮,选择要部署的工程点ADD后Server选择WebLogic10.x点finashi,ok后,部署完成。
H.点的黑色小箭头后选择WebLogic 10.x→Start启动服务。
I.服务启动成功。
J.当工程有重名时,会发生冲突,部署失败。
比如上图的情况,手动部署了该工程,再集成部署,就会失败。
同时,在启动服务时,myeclips会抛出异常。
weblogic11g补丁安装及回退

weblogic11g补丁安装及回退1Weblogic 11gWeblogic Server 10.3.5及以下版本,需要将BSU升级到3.3.0,具体步骤参见1.31.1Weblogic 11g补丁安装1)修改$BEA_HOME /utils/bsu/bsu.sh,将java heap增加到1024m2)在$BEA_HOME下创建目录patch ($BEA_HOME为weblogic 安装目录,如/home/weblogic) 3)上传补丁到$BEA_HOME/patch 4)解开补丁:如unzip p2*******_1036_Generic.zip5)将patch-catalog_*.xml复制到$BEA_HOME/util/bsu/cache_dir (如cache_dir不存在,则创建此目录)6)在$BEA_HOME/util/bsu下执行:./bsu.sh -prod_dir=$BEA_HOME/wlserver_10.3-patch_download_dir=$BEA_HOME/patch -patchlist=patchid -install -verbosePatchid为第3步解开后,jar文件的文件名,如LFAC如:./bsu.sh -prod_dir=/bea/weblogic/wlserver_10.3-patch_download_dir=/bea/weblogic/patch -patchlist=EJUW -install-verbose7)验证补丁安装Cd $BEA_HOME/wlserver_10.3/server/bin. ./setWLSEnv.shjava weblogic.version输出中包含补丁信息。
如果输出没有包含补丁信息,将整个weblogic目录及其下文件权限改为7551.2Weblogic 11g补丁回退1)在$BEA_HOME/util/bsu下执行:./bsu.sh -prod_dir=$BEA_HOME/wlserver_10.3 -patchlist=patchid-verbose -remove如:./bsu.sh -prod_dir=/bea/weblogic/wlserver_10.3 -patchlist=LFAC-verbose –remove1.310.3.5及以下版本bsu升级Weblogic Server 10.3.5及以下版本,需要将BSU升级到3.3.0:1.从/doc/2f6075104.html,下载补丁124268282.将补丁p1*******_1035_Generic.zip,获得patch-client-installer330_generic32.jar3.执行java -jar patch-client-installer330_generic32.jar -mode=consoleExtracting0%....................................................................................................100%<- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...->Welcome:--------This installer will guide you through the installation of Oracle WebLogic Smart UpdateInstaller 3.3.0.0. Type "Next" or enter to proceed to the next prompt.If you want to change data entered previously, type "Previous". You may quitthe installer at any time by typing "Exit".Enter [Exit][Next]> (直接回车)<- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...->Choose Middleware Home Directory:---------------------------------->1|* Create a new Middleware Home2|/oem/wls10363|/oem/wls1035Enter index number to select OR [Exit][Previous][Next]> 3 (注意:选择已有及正确的weblogic安装路径)<- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...->Choose Install Type:--------------------Select the type of installation you wish to perform.->1|Typical| Install the following product(s) and component(s):| - Common Infrastructure Engineering| - Oracle WebLogic Smart Update2|Custom| Choose software products and components to install and perform optional|configuration.Enter index number to select OR [Exit][Previous][Next]> (直接回车)<- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...-> Installing files..0% 25% 50% 75% 100%[------------|------------|------------|------------][***************************************************]Performing String Substitutions...<- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...-> [Exit]><- Oracle WebLogic Smart Update - Oracle WebLogic Smart Update Installer 3.3 ...-> Clean up process in progress ...。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Server C
Connection Pool P
Load Balanc cer
Server B
Hale Waihona Puke Configurations for JDBC replication
首先在要存放session的database里,create一个 WL_SERVLET_SESSIONS table
Oracle WebLogic cluster会将HTTP session以及stateful session bean的state复制到cluster里所有其他正在运作的Oracle WebLogic Server Session persistence存放方式
In-memory replication JDBC replication File system replication
SG: GB Serv A ver PG: GA Serv A ver Load Balancer Server B Server C PG: GA PG: GC SG: GA PG: GB SG: GC SG: GB
Load Balancer
Server B Server C
PG: GC
SG: GA
Column Name WL_ID WL_CONTEXT_PATH WL_CREATE_TIME WL_IS_VALID WL_SESSION_VALUES WL_ACCESS_TIME WL_VERSION WL_MAX_INACTIVE_INTERVAL Column Data Type VARCHAR2(100) VARCHAR2(100) NUMBER(20) CHAR(1) BLOB NUMBER(20) NUMBER(20) NUMBER(38)
<session-descriptor> <persistent-store-type>replicated<persistent-store-type> </session-descriptor>
JDBC replication
Session所有的data都存 放在database 当client传送request到 cluster,cluster里的任何 server都可以处理相关 session的资料 Performance可以比较慢, 尤其针对大型的 applications session尽量避免存放大 量的data 所有的server都是透过 connection pool连接到存 放session的database
PG: GB
SG: GC
InConfiguring applications for In-Memory Replication
weblogic.xml需设定persistent-store-type
replicated或是replicated_if_clustered replicated_if_clustered:假如application只deploy到cluster里部 份的server,则是不会执行replicated
Oracle提供Coherence,也可做到Distributed caching
Replication Groups
Oracle WebLogic cluster的session replication方式是以 groups为主 每个cluster里的server必须设定primary group以及 secondary group 当server有session产生时,primary group会将数据复制到 secondary group 尽量让每个cluster里的server的replication groups可以相互 backup
Client
RAC
ActiveOracle Active-Active Topology
Apache Plug-in与Oracle WebLogic可安装在不同的机器上
Apache Plug-in与Oracle WebLogic即使安装在同 一台机器上
Oracle Session State Replication
Configurations for JDBC replication
再设定connection pool连接到存放session的database, Ex. replicaitonDS 修改application的weblogic.xml,设定session存放方式
<session-descriptor> <persistent-store-type>jdbc<persistent-store-type> <persistent-store-pool>replicationDS<persistent-store-pool> <persistent-store-table>WL_SERVLET_SESSIONS<persistent-store-table> </session-descriptor>
Configurations for File replication
Session的资料以file的方式存放 存放session file的目录必须要被cluster里的所有server都可 以读取 修改application的weblogic.xml,设定session存放方式
<session-descriptor> <persistent-store-type>file<persistent-store-type> <persistent-store-dir>share folder<persistent-store-dir> </session-descriptor>
Configuring Replication Groups
1
3
2
In - Memory Replication
当client连接到Server A并create session时,session的数据将 复制到Server B的GB,并标示为backup object 当Server A发生crash无法服务时,此时在Server B的backup object成为primary object,并复制到Server C
Session Replications
End-ToThe End-To-End High Availability Solution
Web users
Wireless Mobile
Load balancer/ Web cache Apache Plug-in
Oracle WebLogic clusters Oracle database
In - Memory Failover
当client连接到server A时,会在client写一个cookie并标示 primary group以及secondary group 假如Server A发生crash,而client被load balancer分到Server C,则server C会根据cookie到server B取得backup object,成 为primary object