Multiplex Server

  • View
    65

  • Download
    4

Embed Size (px)

Text of Multiplex Server

  • Administration: MultiplexSAP Sybase IQ 16.0 SP01

  • DOCUMENT ID: DC01839-01-1601-01LAST REVISED: April 2013Copyright 2013 by SAP AG or an SAP affiliate company. All rights reserved.No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission ofSAP AG. The information contained herein may be changed without prior notice.Some software products marketed by SAP AG and its distributors contain proprietary software components of other softwarevendors. National product specifications may vary.These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only,without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to thematerials. The only warranties for SAP Group products and services are those that are set forth in the express warrantystatements accompanying such products and services, if any. Nothing herein should be construed as constituting an additionalwarranty.SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registeredtrademarks of SAP AG in Germany and other countries. Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.

  • ContentsMultiplex Overview ................................................................1

    Audience .........................................................................1Introduction to SAP Sybase IQ Multiplex ........................1SAP Sybase IQ Multiplex Architecture ...........................2

    Multiplex Architecture Diagram ..............................2Data Storage ..........................................................3Multiplex Configuration ..........................................4Files on Shared Disk Arrays ..................................6Communication Infrastructure ................................7

    Create Multiplex Servers .....................................................11Planning the Configuration ...........................................11

    Multiplex Storage Requirements ..........................11Main Store Requirements ....................................12Hardware Requirements ......................................12Java External Environment in a Multiplex ............13Multiplex Planning Worksheet ..............................13

    Converting Databases to Multiplex ...............................14Multiplex Database Files ......................................16

    Manage Multiplex Servers ...................................................17Multiplex System Privileges ..........................................17

    ACCESS SERVER LS System Privilege .............17MANAGE MULTIPLEX System Privilege .............17DBO System Role in a Multiplex Environment .....18

    Starting Multiplex Servers .............................................19Checking Server Status in Interactive SQL ..........19

    Adding Multiplex Servers ..............................................19Adding a Temporary Dbfile ..................................21Including or Excluding Servers ............................21Designating a Failover Node ................................22

    Dropping Multiplex Servers ...........................................22Reclaiming Free List ............................................23

    Administration: Multiplex iii

  • Altering Multiplex Servers .............................................23Changing Host and Port ......................................23Changing Server Roles ........................................23Changing the Database File Path ........................24Renaming Multiplex Servers ................................24

    Synchronizing Servers ..................................................24Multiplex Login Management ........................................25

    Counting User Connections .................................25High Availability .............................................................26

    Reader Node Failure ............................................26Writer Node Failure ..............................................26Coordinator Failure ..............................................27SAN or Shared Disk Failure .................................30

    Manage Transactions ..........................................................31DML Commands ...........................................................31

    Global DML Commands ......................................31Table Data Scope ................................................32

    DDL Commands ...........................................................32DDL Command Scope .........................................32Role Restriction ...................................................34Dbspace Updates in Multiplex .............................35Global Transaction Resiliency ..............................42

    Troubleshoot Transactions ............................................43Communication Failure or Coordinator Failure

    and Restart During Global Transaction ...........43Coordinator Failover and Global Transactions .....45Dynamic Collisions ..............................................45

    Manage Resources Through Logical Servers ...................47Logical Servers Overview .............................................47

    Effective Logical Server Configuration .................48Coordinator as a Logical Server Member ............48Logical Servers and Simplex Configurations .......48

    Use Built-in Logical Servers ..........................................49ALL Logical Server ..............................................50AUTO Logical Server ...........................................50

    Contents

    iv SAP Sybase IQ

  • COORDINATOR Logical Server ..........................50NONE Logical Server .......................................... 51OPEN Logical Server ...........................................51SERVER Logical Server ......................................52

    Creating a Logical Server .............................................52Commenting on Logical Servers .........................53

    Altering a Logical Server ............................................. 53Dropping a Logical Server ............................................54

    Results of Dropping Logical Servers ................... 54Connecting to a Logical Server .....................................54Configure Logical Server Policies .................................56

    Altering Root Logical Server Policy ..................... 56Manage Logical Server Membership ............................57

    Logical Server Assignment Inheritance ...............58Lock-down Prevention ......................................... 58Changing Logical Server Assignments ................58Removing Logical Server Assignments ...............59Node Membership Overlap ..................................59

    Redirecting Logins ........................................................59Disabling Login Redirection ..........................................60Login Policies ................................................................61

    Modifying the Root Login Policy ...........................62Creating a New Login Policy ................................62Modifying an Existing Login Policy .......................63Displaying a List of Users Assigned a Login

    Policy ...............................................................63Deleting a Login Policy ........................................ 64Assigning a Login Policy When Creating a New

    User .................................................................64Assigning a Login Policy to an Existing User .......65

    Distributed Query Processing ............................................67Leader and Worker Nodes ............................................68Query Portions ..............................................................68Distributed Query Performance ....................................69

    Back Up and Restore ...........................................................71

    Contents

    Administration: Multiplex v

  • Checking Database Consistency ..................................71Backup Requirements ..................................................71Backing Up Multiplex Databases ..................................72Before You Restore .......................................................72Restoring IQ Store Data When Restoring Database in

    a Different Location ..................................................73Restoring IQ Store Data When Restoring the

    Database in the Same Location ...............................75Selective Restore Operations in a Multiplex

    Environment .............................................................76Restoring Read-only Backups for a Coordinator

    .........................................................................76Multiplex Reference .............................................................79

    SQL Statements ...........................................................79ALTER LOGICAL SERVER Statement ................79ALTER LOGIN POLICY Statement ......................80ALTER LS POLICY Statement .............................87ALTER MULTIPLEX RENAME Statement ...........90ALTER MULTIPLEX SERVER Statement ............90BACKUP Statement .............................................92COMMENT ON LOGICAL SERVER Statement

    .........................................................................98CREATE LOGICAL SERVER Statement .............98CREATE LOGIN POLICY Statement .................100CREATE LS POLICY Statement ........................107CREATE MULTIPLEX SERVER Statement .......109DROP LOGICAL SERVER Statement ...............111DROP MULTIPLEX SERVER Statement ..