Sybase IQ 12.4.0 installation instructions Spiqcheckdb

Page 39

Running

sp_iqcheckdb

Value

Action

2

Runs CheckStorage. Checks for leaked blocks and corrupt

 

database pages by walking all the block maps in the system and

 

reading every database page. Runs about 50 times slower than

 

option 1. Produces a report of findings. Does not reset the free list.

 

This option is the same as the default option when -iqdroplksis

 

passed to the server except that it runs in read-only mode.

 

 

3

Runs CheckAllocation Fix. Server must have been started with -

 

iqdroplks switch. Checks for leaked blocks by walking all block

 

maps in the system. Runs very fast (about 1 second per GB of

 

data). Produces a report of findings. If no error is detected, resets

 

database free list to calculated allocation map.

 

Sybase recommends that you use this option to recover the

 

database free list only when the default option cannot do so due to

 

errors encountered during processing, and no backed up version is

 

available to restore.

 

 

In order to recover leaked storage within a database, first start the server with the -iqdroplksswitch in the asiqsrv12 command.

Next, connect to your database and issue the command:

sp_iqcheckdb

The stored procedure reads all storage within the database. On successful completion, it updates the database free list to reflect the true storage allocation for the database. It then generates a report listing the working and actions it has performed.

If it finds an error, sp_iqcheckdb reports the name of the object and the type of error found. It does not update the free list if any errors are detected.

Because it reads the entire database, sp_iqcheckdb may take a long time to run. The length of time depends on the size of the database and the size of the machine it executes on. Typically, sp_iqcheckdb can process between 20GB and 100GB per hour.

The dbcc_option settings of 1 and 3 provide a fast way to check for leaked storage within the system. They do this by walking the various block maps, or object directories, that make up the database. The underlying database pages that make up the actual tables and indexes are not read. Therefore, successful completion of sp_iqcheckdb using option 1 or 3 does not guarantee absolutely that the database is not corrupt.

39

Image 39
Contents Product summary Release Bulletin Adaptive Server IQ For Digital UnixRequired Operating System Patches Adaptive Server IQ Required Operating System PatchesRestrictions Adaptive Server IQ Converting 12.0.x databases toRelease Bulletin for Digital Unix Following outer join format is supported Installation Instructions Setting the Ldlibrarypath Environment VariableDocumentation for this version Go to support.sybase.com Accessing Current Release Bulletin InformationSpecial migration instructions Obtaining query plansChanged functionality in Adaptive Server IQ Changed functionality in this versionImproved stored procedure output Adaptive Server IQ Adaptive Server IQ Stopasiq utility Known problems1 ANY, SOME, and ALL subquery support Temporary tables in proceduresData definition Adaptive Server IQ QueriesChanging length of Dbisql column values Adaptive Server IQ OperationsLarge in subqueries Output to file in DbisqlUser-defined variable issue Adaptive Server IQ User-defined variable issueDbspawn Error when starting a server Unsupported terminal types cause Dbisql errorNotification message setting omitted from Index Properties Problems with Add User-defined Data Type wizardDSE not installed on Windows client systems Add Service utility installed only with Server ComponentsData Type column in Table Editor retains focus Documentation updates and clarificationsProduct compatibilities Startup, shutdown, and connectionSpecifying server switches Additions to the startasiq or asiqsrv12 command-line optionsGm command line option Adaptive Server IQ Gm command line optionGn command-line option Using -v switch on 64-bit platformsUsing Odbc connectivity with Unix Confirming connectionsAdaptive Server IQ Confirming connections Using a .odbc.ini file Using a .odbc.ini file Adaptive Server IQStopasiq utility Adaptive Server IQ Addition to Stop Database statement Addition to Stop Database statementDisconnect details omitted Error in Dbstop exampleConfiguration files do not accept quotes Error in Dbstop example Adaptive Server IQChange to Create Database statement Switch must be uppercaseAdaptive Server IQ Switch must be uppercase Data definition DDLIQ database file paths must be unique LowDisk functions as HighGroupColumn Limit Correction Joint Virtual Table JVT definitionAdaptive Server IQ Error documenting IQ Path Error documenting IQ PathError in raw partition limit Error on Create DbspaceSize clause of Create Dbspace Addition to Drop Database statementSize clause of Create Dbspace Adaptive Server IQ Changes to Using join indexes Recommended index typesAdaptive Server IQ Recommended index types Id custid idlname Changes to Using join indexes Adaptive Server IQAdaptive Server IQ Changes to Using join indexes Data manipulation DML Error in Diskstriping defaultSupport for joins between stores or databases Adaptive Server IQ DefaultNew and changed general database options Adaptive Server IQ New and changed general database optionsInsertnumberrowsperrawiobuffer Adaptive Server IQ DescriptionDescription Adaptive Server IQ Corrections to Insert LocationAdaptive Server IQ String function Repeat is supported String function Repeat is supportedCorrection to Char function Number* function not supportedNew options for reserving space Backup and system administrationUsing Isnull and Coalesce Using Isnull and Coalesce Adaptive Server IQInsufficient disk space Change to error messageEffect of checkpoints Adaptive Server IQ Forced recovery and leaked space recoveryStorage within the database as in use Dbccoption option Spiqcheckdb Set dbccoption to 2, as a temporary option New Stored Procedure Columns Improved output in stored proceduresMinpasswordlength option Spiqstatus now displays IQ Page SizeTransaction Log utility Maintaining a transaction log or mirror Error message for buffer cache settings Setting PrefetchBufferLimit optionGrant Connect for existing user ID Dropping users may delete tables Documentation on Data Backup and RecoveryCleaning up after abnormal exit Changes to Backup statementMonitoring server activity Help files Using PC client applicationsCreating attribute tables for PowerBuilder Client applicationsAdaptive Server IQ plug-in help reflects Multiplex support Technical SupportSybase Certifications on the Web Other sources of informationTechinfo.sybase.com