Administration: Database SAP Sybase IQ 16.0 DOCUMENT ID: DC01771-01-1600-01 LAST REVISED: February 2013 Copyright © 2013 by Sybase, Inc
Total Page:16
File Type:pdf, Size:1020Kb
Administration: Database SAP Sybase IQ 16.0 DOCUMENT ID: DC01771-01-1600-01 LAST REVISED: February 2013 Copyright © 2013 by Sybase, Inc. All rights reserved. This publication pertains to Sybase software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement. Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc. Sybase trademarks can be viewed at the Sybase trademarks page at http://www.sybase.com/detail?id=1011207. Sybase and the marks listed are trademarks of Sybase, Inc. ® indicates registration in the United States of America. SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. Java and all Java-based marks are trademarks or registered trademarks of Oracle and/or its affiliates in the U.S. and other countries. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names mentioned may be trademarks of the respective companies with which they are associated. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies. Sybase, Inc., One Sybase Drive, Dublin, CA 94568. Contents Database Administration Workflow .....................................1 Guidelines for Scheduling Data Definition Tasks ............1 System Privileges for Data Definition .............................2 Device Selection .............................................................2 Run Database Servers ...........................................................3 Starting Servers ..............................................................3 Starting Database Servers .............................................4 The Server Startup Utility ......................................5 Starting Servers from the Windows Start Menu ...........................................................................6 The Server as a Windows Service .................................6 Automatic Server Startup .......................................6 Command Line Switches ................................................6 Displaying Command Line Options .......................6 Configuration Files .................................................7 Command Line Example Formatting in SAP Sybase IQ Documentation ................................8 Required Command Line Options .........................8 Default Configuration File ......................................8 Configuration File for the Demo Database .............8 Naming Restrictions ...............................................9 Server and Database Names ................................9 Command Line Options for Performance ............10 Command Line Options That Control Privileges .........................................................................21 Maximum Catalog Page Size ...............................26 Client/Server Environment Options .....................27 Forced Recovery Mode Options ..........................31 Starting a Server from Interactive SQL ................31 Shared Memory Conflicts ....................................31 Server Activity Logs ......................................................32 Administration: Database iii Contents Naming the Server Log File .................................34 UNIX Log Files .....................................................35 Database Server Shutdown ..........................................35 When to Stop and Restart the Server ..................35 Stopping Servers .................................................35 Permissions Required to Stop the Server ............38 Operating System Session Shutdown .................38 Starting and Stopping Databases .................................39 Database Startup Guidelines ...............................39 Stopping Databases ............................................40 Starting the iqdemo Database ......................................40 Connect to Servers and Databases ...................................41 Roadmap for Connections ............................................41 Ways to Connect ...........................................................42 Connecting to the Demo Database from Interactive SQL ................................................43 How Database Status Affects Local Connections ....................................................43 Connecting to a Running Database on a Local Server ..............................................................43 Connecting to a Database from Interactive SQL on UNIX ...........................................................44 Connecting from a UNIX System .........................44 Connecting from a Windows System ...................45 Connections to Embedded Databases ................46 TCP/IP protocol ...................................................47 Connecting Using a Data Source ........................50 Default Connection Parameters ...........................51 Connecting from SAP Sybase IQ Utilities ............51 Supported Connection Interfaces .................................52 Connection Status ........................................................53 How Connection Parameters Work ...............................54 Format for Connection Strings .............................55 How Applications Pass Connection Parameters .........................................................................55 iv SAP Sybase IQ Contents Connection Parameters in ODBC Data Sources ..........55 Interactive SQL Connections ........................................56 The Connect Dialog .............................................58 Opening the Connect dialog (Interactive SQL) ....58 Drivers for Connections ....................................... 58 Using Server Classes for Remote Data Access ...........62 ODBC-Based Server Classes ..............................63 JDBC-Based Server Classes (Deprecated) .........76 ODBC Data Sources .....................................................79 Where Data Sources Are Held ............................ 80 Creating a Data Source from the ODBC Administrator ...................................................80 Creating an ODBC Data Source from the Command Line ................................................81 Testing an ODBC Data Source ............................82 Configuring ODBC Data Sources in ODBC Administrator ...................................................82 ODBC Data Sources on UNIX .............................83 File Data Sources .........................................................85 Creating a File Data Source Using the ODBC Administrator ...................................................86 File Data Sources and Text Editors ......................86 The iAnywhere Solutions Oracle Driver ........................87 Creating an Oracle DSN on UNIX ....................... 89 Creating an Oracle DSN on Windows ................. 89 Creating an Oracle DSN Using IQDSN ............... 89 Database Connections Using OLE DB .........................90 OLE DB Providers ............................................... 91 Connections from ADO ........................................91 Connections from Other Databases ............................. 92 Avoiding Port Number Conflicts on UNIX ........... 93 How to Test Connections ..............................................93 Integrated Logins ..........................................................94 Using Integrated Logins .......................................96 Administration: Database v Contents Security Concerns: Unrestricted Database Access .............................................................97 Temporary Public Options Provide Added Security ...........................................................98 Network Aspects of Integrated Logins .................99 Default Integrated Login Users ............................99 Connection Pooling .......................................................99 Temporary Connections ..............................................101 Logical Server Configuration ......................................102 Connections in Simplex .....................................103 Connections in Multiplex ....................................104 How to End Connections ............................................104 Connection Logging ....................................................105 Create and Manage Databases .........................................107 Create Databases .......................................................107 Database Creation with SQL .............................107 IQ Main Store and IQ Temporary Store Space Management .................................................115 Dropping a Database ..................................................116 Disconnecting Other Users From a Database ...........116 Disconnecting from a Database in Embedded SQL ...117 Disconnecting All Connections from a Database in Interactive SQL .......................................................117