Database Content
Total Page:16
File Type:pdf, Size:1020Kb
PUBLIC SAP IQ 16.0 SP 10 Document Version: 1.2 – 2016-04-13 Administration: Database Content 1 Database Administration Workflow..............................................13 2 Run SAP IQ Database Servers..................................................14 2.1 Starting Servers.............................................................14 The Server Startup Utility....................................................16 Starting the Server Using the Startup Utility.......................................17 Starting a Server from Interactive SQL...........................................17 Automatic Server Startup....................................................18 2.2 Command Line Options........................................................18 Displaying Command Line Options............................................. 19 Required Command Line Options.............................................. 19 Server and Database Names................................................. 20 Performance Options.......................................................21 Privilege Options..........................................................23 Client/Server Environment Options............................................ 24 Catalog Page Size Option....................................................24 2.3 Multiple Servers on a System....................................................25 2.4 Configuration Files...........................................................26 Configuration File List...................................................... 26 Examples of Configuration Files............................................... 26 Default Configuration File....................................................27 Configuration File for the Demo Database........................................27 2.5 Server Activity Logs..........................................................28 Naming the Server Log File...................................................30 UNIX Log Files............................................................30 2.6 Stopping Servers............................................................ 31 Operating System Session Shutdown...........................................34 When to Stop and Restart the Server............................................34 2.7 Starting and Stopping Databases.................................................35 Database Startup Guidelines................................................. 35 Stopping Databases....................................................... 36 2.8 Starting the iqdemo Database...................................................37 3 Connect to SAP IQ Servers and Databases........................................38 3.1 Ways to Connect............................................................ 39 Connecting to the Demo Database from dbisql (UNIX)............................... 41 Connecting to the Demo Database from dbisql (Windows)............................ 42 PUBLIC Administration: Database 2 © 2016 SAP SE or an SAP affiliate company. All rights reserved. Content How Database Status Affects Local Connections...................................42 Connecting to an Embedded Database..........................................43 TCP/IP protocol..........................................................44 Connecting Using a Data Source...............................................48 Connecting from SAP IQ Utilities...............................................49 Default Connection Parameters...............................................49 3.2 Supported Connection Interfaces................................................ 50 3.3 Connection Status........................................................... 51 3.4 How Connection Parameters Work................................................52 Format for Connection Strings................................................53 How Applications Pass Connection Parameters....................................53 3.5 Connection Parameters in ODBC Data Sources.......................................54 3.6 Drivers for Connections........................................................55 3.7 File Data Sources............................................................55 Creating a File Data Source Using the ODBC Administrator............................57 File Data Sources and Text Editors............................................. 57 3.8 Connections from Other Databases...............................................57 Avoiding Port Number Conflicts on UNIX.........................................59 3.9 How to Test Connections...................................................... 59 3.10 Integrated Logins............................................................60 Using Integrated Logins.....................................................62 Security Concerns: Unrestricted Database Access..................................65 Temporary Public Options Provide Added Security..................................66 Network Aspects of Integrated Logins...........................................66 Default Integrated Login Users................................................67 3.11 Connection Pooling...........................................................67 3.12 Temporary Connections.......................................................69 3.13 Logical Server Configuration....................................................70 Connections in Simplex..................................................... 71 Connections in Multiplex.....................................................71 3.14 How to End Connections.......................................................72 3.15 Connection Logging..........................................................72 4 Create and Manage SAP IQ Databases...........................................74 4.1 SAP IQ Database Design.......................................................74 4.2 Create SAP IQ Databases...................................................... 75 Database Creation with SQL..................................................76 IQ Main Store and IQ Temporary Store Space Management........................... 85 4.3 Dropping a Database......................................................... 86 4.4 Schema and Data Export.......................................................86 iqunload Utility - For Schema and Data Export.....................................87 Load Schema and Data.....................................................90 Administration: Database PUBLIC Content © 2016 SAP SE or an SAP affiliate company. All rights reserved. 3 4.5 Disconnecting Other Users From a Database.........................................91 4.6 Disconnecting from a Database in Embedded SQL.................................... 92 4.7 Disconnecting All Connections from a Database in Interactive SQL.........................92 4.8 Showing System Objects in Interactive SQL.........................................92 4.9 Setting Database Options in Interactive SQL.........................................93 5 Manage Data Storage in SAP IQ................................................94 5.1 Space Allocation.............................................................95 5.2 Types of Dbspaces...........................................................95 Catalog Store............................................................97 IQ_SYSTEM_MAIN Dbspace..................................................98 Other User Main Dbspaces...................................................98 IQ Temporary Dbspace..................................................... 98 IQ Shared Temporary Dbspace................................................99 IQ Message File Dbspace...................................................100 5.3 Space for Databases.........................................................100 5.4 Space Requirements for IQ Stores and Temporary Stores...............................101 5.5 Sizing Guidelines for Main and Temporary Stores.....................................101 5.6 Setting Up Windows Access to Raw Devices........................................ 103 5.7 Choosing Drives for Raw Devices on Windows.......................................104 5.8 Viewing Access Permissions of a Raw Device........................................105 5.9 Setting Permissions for a Raw Device.............................................106 5.10 Estimating Space and Dbspaces Required..........................................107 5.11 Dbspace Management Example.................................................108 5.12 Data Storage...............................................................113 Dbfile Attributes and Operations.............................................. 113 Dbspace Attributes and Operations............................................117 Read-only and Read-write Dbspaces and Files.................................... 120 5.13 Cache Dbspace for Direct-Attached Storage........................................125 Creating the Cache Dbspace.................................................127 Dropping the Cache Dbspace................................................ 127 Adding Storage to the Cache Dbspace..........................................128 Removing Storage from the Cache Dbspace......................................129 Disabling and Reenabling the Cache Dbspace.....................................129 Changing the Readonly/Readwrite Status of a Cache Dbspace Dbfile....................130 Monitoring the Cache Dbspace............................................... 131 6 Manage SAP IQ Tables and Views..............................................134