Speed up data transport between primary and standby database

In order to speed up the data transport or log shipping rates between primary and standby databases in a DataGuard environment, set the Oracle network services session data unit (SDU) to its maximum setting of 32K on both the primary and secondary databases. This can result a 5% gain in throughput over the default setting of 2K for LGWR ASYNC transport services and a 10% gain for the LGWR SYNC transport service.

When using the SDU setting, dynamic instance registration (SERVICE_NAMES) cannot be used prior to release 9.2.0.4. as it overrides any SDU setting to be the default SDU of 2K.

The SDU parameter needs to be set in listener.ora and tnsnames.ora on the primary and the standby databases.

Primary listener with static registration
-----------------------------------------
LISTENER =
(DESCRIPTION_LIST =
 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = prim_host)(PORT = 1521)))
) 

SID_LISTENER =
(SID_LIST =
 (SID_DESC = (SDU=32767) SID_NAME = prim_instance) ) 
)


Primary tnsnames.ora
--------------------
primDB =
( DESCRIPTION =
 (SDU = 32767)
 (ADDRESS_LIST = (ADDRESS = (PROTOCOL = tcp)(PORT = 1521)(HOST = prim_host))
 (CONNECT_DATA = (SID = prim_inst) ) 
 )

The same is required on the standby.

For More Information

    Requires Free Membership to View

  • Feedback:
    E-mail the editor with your thoughts about this tip.
  • More tips: Hundreds of free Oracle tips and scripts.
  • Tip contest: Have an Oracle tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize -- submit your tip today!
  • Ask the Experts: Our applications, SQL, database administration, and data warehousing gurus are waiting to answer your toughest questions.
  • Forums: Ask your technical Oracle questions--or help out your peers by answering them--in our active forums.
  • Best Web Links: Oracle tips, tutorials, and scripts from around the Web.

This was first published in October 2003

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.