Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




Of Interest

Business Intelligence and Analytics



Oracle Training





Sybase » Administration » DBA » Sybase IQ

Sybase IQ: Database Creation (Raw Devices)

     



Below is a collection of code snippets and details related to a Sybase IQ server build. In the below example, the server/database is called HELENA.





##-------------------------------------------------------------##
## Create DB and rename the IQ Server
##-------------------------------------------------------------##

pwd

start_asiq -n util @util.cfg

echo "Start Create DB: " `date`

dbisqlc -q -c "uid=DBA;pwd=SQL;dbn=utility_db;eng=util;links=tcpip" ./admin/sql/create_db_HELENA.sql

echo "Create DB Completed: " `date`

dblog -t ./HELENA.log HELENA.db



# -- 12.X syntax - contents of create_db_HELENA.sql


CREATE DATABASE './HELENA.db'
TRANSACTION LOG ON './HELENA.log'
BLANK PADDING ON
-- CASE IGNORE
IQ PATH './Main/main001'
TEMPORARY PATH './Temp/temp001'
IQ PAGE SIZE 262144
BLOCK SIZE 16384
MESSAGE PATH 'HELENA.iqmsg';



# -- 15.X .. use iqinit .. # Note: no dev sizes, for raw devices

./iqinit -iqpath './Main/main001' -iqpgsize 262144 -iqblksize 16384 -p 4096 -iqsize 200G -iqtmppath './Temp/temp001' -iqtmpsize 50G -dba iqadmin,dragonfly './HELENA.db'



# -- Adding DB Spaces (Raw devices are used here)


CREATE DBSPACE main002 AS './Main/main002' IQ STORE
go
CREATE DBSPACE main003 AS './Main/main003' IQ STORE
go
CREATE DBSPACE main004 AS './Main/main004' IQ STORE
go
CREATE DBSPACE main005 AS './Main/main005' IQ STORE
go
CREATE DBSPACE main006 AS './Main/main006' IQ STORE
go
CREATE DBSPACE main007 AS './Main/main007' IQ STORE
go
CREATE DBSPACE main008 AS './Main/main008' IQ STORE
go

CREATE DBSPACE TEMP02 AS './Temp/temp002' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP03 AS './Temp/temp003' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP04 AS './Temp/temp004' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP05 AS './Temp/temp005' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP06 AS './Temp/temp006' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP07 AS './Temp/temp007' IQ TEMPORARY STORE
go
CREATE DBSPACE TEMP08 AS './Temp/temp008' IQ TEMPORARY STORE
go




What are typical page size / block size settings, for Sybase IQ?

catalog page size ........... 4 k
iq page size ................ 128 k
block size .................. 8 k


To view these settings later, run sp_iqstatus from dbisql.







Sybase : Related Topics

Sybase : Administration : Post-installation check
Sybase : Administration : Device initialization
Sybase : Administration : Database Creation
Sybase : Administration : A backup routine
Sybase : Administration : Striping Dump Devices
Sybase : Administration : Moving the transaction log to another device
Sybase : Administration : Adding a segment to a database
Sybase : Administration : Configuring the cache
Sybase : Administration : Apply multiple transaction dumps
Sybase : Administration : Database maintenance procedure
Sybase : Administration : Database maintenance script
Sybase : Administration : Server configuration
Sybase : Administration : Dealing with a Corrupted Database
Sybase : Administration : Dealing with a Server Failure
Sybase : Administration : DBCC Notes
Sybase : Administration : Create proxy tables and external logins
Sybase : Administration : Renaming a database
Sybase : Administration : Reorg: rebuilding a table
Sybase : Administration : Sybase ASE 15 Enhancements
Sybase : Administration : Setting the thresholds
Sybase : Administration : Apply a transaction dump
Sybase : Administration : Security Tasks
Sybase : Administration : Setting Process Priorities
Sybase : Administration : Sybase ASE Architecture Overview
Sybase : Administration : Drop an alias, with objects linked to login
Sybase : Administration : Display grants, effective rights to objects
Sybase : Administration : Displaying access information from sysprotects
Sybase : Administration : Database Engines: Status and Settings
Sybase : Administration : Replication Server 15 Configuration
Sybase : Administration : Loading data into Sybase IQ from a Remote Server
Sybase : Administration : Sybase IQ Overview
Sybase : Administration : Sybase IQ Functions
Sybase : Administration : Sybase IQ - Remote Access From ASE
Sybase : Administration : Sybase IQ : Procedure Profiling / Monitoring
Sybase : Administration : Sybase IQ: Restoring a Database from Dump Files
Sybase : Administration : Sybase IQ: Minimize Storage option
Sybase : Administration : Sybase IQ: Index Types
Sybase : Administration : Sybase IQ: HUGEPAGE Support
Sybase : Administration : Sybase IQ : Repairing Problems / Troubleshooting Corruption
Sybase : Administration : Sybase IQ : Moving / Re-allocating / Re-org
Sybase : Administration : Sybase IQ: Sysmon / System Performance Analysis
Sybase : Administration : Sybase IQ: Monitoring Connections / Processes
Sybase : Administration : Sybase ASE: Installing a new server via srvbuildres utility
Sybase : Administration : Sybase IQ: Copying users/logins between databases
Sybase : Administration : Sybase IQ: Managing User Accounts
Sybase : Administration : Sybase ASE: Database Schema Compare
Sybase : Administration : Sybase IQ: Listing tables, ordered by size allocated
Sybase : Administration : Sybase IQ : Comparing grants / permissions between servers
Sybase : Administration : Sybase ASE: Database page size
Sybase : Administration : Sybase ASE: Managing users and roles
Sybase : Administration : Sybase ASE: Setting resource limits for users
Sybase : Administration : Sybase ASE: Setting up user assigned custom tempdbs
Sybase : Administration : Sybase ASE: Setting up the transaction log cache using logiosize
Sybase : Administration : Sybase IQ: Server Startup Switches
Sybase : Administration : Sybase ASE: Managing Identity Columns
Sybase : Administration : Sybase IQ: Working with options and server settings
Sybase : Administration : Sybase IQ: Monitoring and Troubleshooting via System Procedures

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site



Get the latest Rocket99 news and tech tips via






Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2016 Stoltenbar Inc All Rights Reserved.