Sybase IQ 12.4.0 Improved output in stored procedures, New Stored Procedure Columns

Page 41

Example

Assume that the DBA cannot successfully open and connect to database foo,

 

because of reported IQ errors during database open and recovery. To force

 

recovery and correct leaked space, follow the steps below.

 

 

 

Note Do not confuse an inability to connect to a database with an IQ server-

 

level error while IQ is trying to open a database.

 

 

 

 

1

Start the database server with the -iqfrecswitch:

 

 

asiqsrv12 -iqfrec foo ... -gd dba ... foo.db

 

 

or on UNIX

 

 

start_asiq -iqfrec foo ... -gd dba ... foo.db

 

2

Connect to the database (foo).

 

 

The .iqmsg file reports that the database was opened in forced recovery

 

 

mode.

 

3

Bring down the server as you would normally. (If you use dbstop to bring

 

 

down the server, be sure to include -iqfrecin the dbstop command.)

 

4

Start up the server again with the -iqdroplksswitch:

 

 

asiqsrv12 -iqdroplks foo ... -gd dba ... foo.db

5Connect to the database. It will be fully allocated.

6To correct the leaks created by the forced recovery open, run sp_iqcheckdb on foo.

9.5.5Improved output in stored procedures

Several stored procedures now display output in units that are easier to understand. The following table describes the new column names. The stored procedure sp_iqindexsize displays all of these columns except Nblocks. The stored procedures sp_iqdbsize, sp_iqtablesize, and sp_iqjoinindexsize display all of these columns except Info.

Table 3: New Stored Procedure Columns

Column name

Description

Kbytes

Physical object size in KB

 

 

Pages

Number of IQ pages needed to hold the object in

 

memory

 

 

Compressed Pages

Number of IQ pages when the object is compressed (on

 

disk)

 

 

41

Image 41
Contents Product summary Release Bulletin Adaptive Server IQ For Digital UnixRequired Operating System Patches Adaptive Server IQ Required Operating System PatchesRelease Bulletin for Digital Unix RestrictionsAdaptive Server IQ Converting 12.0.x databases to Following outer join format is supported Documentation for this version Installation InstructionsSetting the Ldlibrarypath Environment Variable Special migration instructions Accessing Current Release Bulletin InformationObtaining query plans Go to support.sybase.comChanged functionality in Adaptive Server IQ Changed functionality in this versionImproved stored procedure output Adaptive Server IQ Adaptive Server IQ Stopasiq utility Known problemsData definition Temporary tables in proceduresAdaptive Server IQ Queries 1 ANY, SOME, and ALL subquery supportLarge in subqueries Adaptive Server IQ OperationsOutput to file in Dbisql Changing length of Dbisql column valuesDbspawn Error when starting a server User-defined variable issueUnsupported terminal types cause Dbisql error User-defined variable issue Adaptive Server IQDSE not installed on Windows client systems Problems with Add User-defined Data Type wizardAdd Service utility installed only with Server Components Notification message setting omitted from Index PropertiesProduct compatibilities Documentation updates and clarificationsStartup, shutdown, and connection Data Type column in Table Editor retains focusSpecifying server switches Additions to the startasiq or asiqsrv12 command-line optionsGn command-line option Gm command line optionUsing -v switch on 64-bit platforms Gm command line option Adaptive Server IQAdaptive Server IQ Confirming connections Using Odbc connectivity with UnixConfirming connections Stopasiq utility Using a .odbc.ini fileUsing a .odbc.ini file Adaptive Server IQ Adaptive Server IQ Addition to Stop Database statement Addition to Stop Database statementConfiguration files do not accept quotes Error in Dbstop exampleError in Dbstop example Adaptive Server IQ Disconnect details omittedAdaptive Server IQ Switch must be uppercase Switch must be uppercaseData definition DDL Change to Create Database statementColumn Limit Correction LowDisk functions as HighGroupJoint Virtual Table JVT definition IQ database file paths must be uniqueError in raw partition limit Error documenting IQ PathError on Create Dbspace Adaptive Server IQ Error documenting IQ PathSize clause of Create Dbspace Adaptive Server IQ Size clause of Create DbspaceAddition to Drop Database statement Adaptive Server IQ Recommended index types Changes to Using join indexesRecommended 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 LocationCorrection to Char function String function Repeat is supportedNumber* function not supported Adaptive Server IQ String function Repeat is supportedUsing Isnull and Coalesce Backup and system administrationUsing Isnull and Coalesce Adaptive Server IQ New options for reserving spaceInsufficient 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 proceduresTransaction Log utility Minpasswordlength optionSpiqstatus now displays IQ Page Size Maintaining a transaction log or mirror Grant Connect for existing user ID Error message for buffer cache settingsSetting PrefetchBufferLimit option Dropping users may delete tables Documentation on Data Backup and RecoveryCleaning up after abnormal exit Changes to Backup statementMonitoring server activity Creating attribute tables for PowerBuilder Using PC client applicationsClient applications Help filesAdaptive Server IQ plug-in help reflects Multiplex support Technical SupportSybase Certifications on the Web Other sources of informationTechinfo.sybase.com