Quantcast
Channel: SCN : All Content - SAP IQ
Viewing all 716 articles
Browse latest View live

Are there Sybase IQ settings to match with hardware failover timing

$
0
0

Our sys admin thinks we could be experiencing Bufman I/O read and/or write errors on mains in dbspaces whenever the underlying device on the SAN is in the middle of a failover and IQ attempts to read or write to that device during the time it is failing over.

 

If he is correct, is there a setting we can increase so IQ does not fail right away when IQ detects a SCSI or I/O no respoinse evernt?


Sybase IQ 15 to 16 Upgrade Error - slib/s_packedRec.cxx 1313

$
0
0

Hi, We are attempting to upgrade our Sybase IQ database from 15 to 16. We have two simple queries that insert records into global temp tables and then a 3rd Insert that join the 2 temp tables and inserts into another global temp table. This query works on 15 but fails with following error on 16. Has anyone else seen this?

IQ Internal error. Please report this to SAP IQ support. -- (slib/s_packedRec.cxx 1313)

Sybase IQ 15.4 - Database expansion best practises [re: Disk Striping]

$
0
0

Hi,


We have recently expanded our production Sybase IQ 15.4 environment by another 125GB device/file for user main (now 7x125GB user main devices in total).  My understanding is that only newly updated data will be striped across all 7 files (existing data will remain striped across the existing 6 files).

 

Looking to get some feedback in terms of whether or not you have considered (in some way or another) re-striping the existing data to also traverse all 7 files (6 old + 1 new)

 

Regards,

Brett

[PAM] Sybase IQ on CentOS issue

$
0
0

Hi experts,

 

I have checked the documentation e.g. installation guide, it only mentions the supported platforms are:

 

RHEL 6.2 & 5.5 (based on IQ 16 SP08 guide)

 

May I know if CentOS is also officially supported by IQ assuming I have  ? Shall I make a assumption that

 

Thanks all.

How to generate monitoring file with date suffix.

$
0
0

Hi

 

Here is a way to generate a monitoring file with date format suffix.

 

The Below Example is monitoring and generating the monitoring file for 10 hours at the 5 seconds interval with current date suffix.

 

begin

declare v_n int;   

declare @v_mode varchar(50);

declare @v_date date;

select getdate() into @v_date;

set @v_mode='-summary -interval 5 -file_suffix';

set v_n=1;

 

execute immediate 'iq utilities main into monitor_dummy start monitor '''||@v_mode|| ' ' ||@v_date||'''';

 

while v_n <= 10 loop

    waitfor delay '01:00:00';

rollback;

      set v_n=v_n+1;

    end loop;

iq utilities main into monitor_dummy stop monitor;

end ;

 

The monitoring file is generated as follows.

Ex) iqdemo.8-main-2014-12-24

 

HTH

 

Gi-Sung Jang

[Share] Error in making a hash partitioned table

$
0
0

While investigating a customer's problem, I found another unexpected error in making a hash paritioned table.
IQ server returned an error "Cannot add a partition or subpartition to table bar" against an "alter table... partition by hash..." statement.

 

[Reproduction]
1. Create a table.
CREATE TABLE bar (
      c1 bigint NOT NULL,
      c2 char(2) NULL,
      c3 date NULL,
      c4 varchar(200) NULL,
      PRIMARY KEY (c1)
) IN DBS01 ;

 

2. Run the alter table statement.
Alter table bar partition by hash (c2) ;

 

3. Error message
I. 01/06 10:18:47. 0001739559 Exception Thrown from dblib/db_alter.cxx:845, Err# 261, tid 6 origtid 6
I. 01/06 10:18:47. 0001739559    O/S Err#: 0, ErrID: 4098 (db_sqlexception); SQLCode: -1013122, SQLState: 'QDD30', Severity: 14
I. 01/06 10:18:47. 0001739559 [22152]: Cannot add a partition or subpartition to table bar

 

According to IQ manual, there are some restrictions regarding hash paritioning as below.
- You can only hash partition a base table. Attempting to partitioning a global temporary table or a local temporary table raises an error.
- You can only subpartition a hash-partitioned table by range if the the table is empty.
- You cannot add, drop, merge, or split a hash partition.
- You cannot add or drop a column from a hash partition key.

 

The "alter table" statement I ran does not match with any restrictions above, but failed.

So, this problem is logged CR776888 and under investigation by engineering team.

 

A workaround to make a hash partitioned table is,

1) Extract the table data, if needed.
2) Drop the table.
3) Recreate it with new partition key(s) within "create table ..." statement.
    CREATE TABLE bar (
      c1 bigint NOT NULL,
      c2 char(2) NULL,
      c3 date NULL,
      c4 varchar(200) NULL,
      PRIMARY KEY (c1)
     ) IN DBS01
     partition by hash(c2);

4) Load the extracted data, if needed.

 

Please refer to the IQ manual page below explaining about the hash partitioning.
http://help.sap.com/saphelp_iq1608_iqrefso/helpdata/en/a6/136fd584f21015a0afcf632ba5877d/content.htm?frameset=/en/a8/90e66f84f210158e8f869393336af4/frameset.htm&current_toc=/en/a8/90e66f84f210158e8f869393336af4/plain.htm&node_id=32

 

HTH
Jerry

[SAP IQ] The meaning of TeamBase while load jobs are running.

$
0
0

We can sometimes see the below message while concurrent load jobs are running heavily.

 

[iqmsg]

 

I. 12/30 00:07:37. 0001944086 TeamBase: LoadEngine Team W 174; G 4

I. 12/30 00:07:44. 0001944101 TeamBase: LoadEngine Team W 182; G 2

I. 12/30 00:07:46. 0001944094 TeamBase: LoadEngine Team W 174; G 2

 

These messages are logged into iqmsg by the thread team management subsystem.

 

The TeamBase messages are shown because of a difference of number of threads between wanted and gained while load jobs are running.

 

Here are explanations of meaning of TeamBase as follows.

 

The Meaning of TeamBase

TeamBase: <label> W <integer>; G <integer>

 

- <label> says which processing algorithm is requesting a thread team.

- W <integer> tells us how many threads were requested.

- G <integer> tells us how many threads were actually allocated to the thread team by the thread team manager.

 

HTH

 

Gi-Sung Jang

highest memory

$
0
0

Hi All,

 

How to check which query is using highest memory in Sybase IQ.

 

Regards,

Santosh


Multiplex dbo connections queueing up

$
0
0

Hi All

 

I most probably need to log an indecent but I just need to get my head around the multiplex inner workings.

 

We have an IQ 15.4 ESD4.3 multiplex with 3 nodes (1 Query 2 Writer with Coordinator on the one 1 Writer)

As a norm there are 2 dbo connections named IQ_MPX_SERVER_H0 open from each node on the coordinator. When all is well there will be new connections created as

IQ_MPX_SERVER_Pnnn for each node , They execute and go away. Lately we get these connections queuing up and taking a long time to resolve.

This means that the iqgovern slots fill up and the server grinds to a crawl.

 

Can anybody explain the the process the multiplex follows and what these connections are doing or potentially waiting for?

 

regards

Johan Bornman

Sybase IQ Stop at Server

$
0
0

Dear Sybase Gurus,

 

Our Sybase IQ stop at midnight , i found some logs.

Server : Windows Server 2008 R2

Sybase IQ 16.0

 

Windows Event Viewer ;

The description for Event ID 1 from source IQ 16.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

C:\ProgramData\SybaseIQ\logfiles;


I. 12/17 03:01:04. Sybase IQ

I. 12/17 03:01:04. Version 16.0

I. 12/17 03:01:04. (64bit mode)

I. 12/17 03:01:04. Copyright 1992-2013 by SAP AG or an SAP affiliate company. All rights reserved

I. 12/17 03:01:04. Copyright © 2013 SAP AG or an SAP affiliate company.

I. 12/17 03:01:04. All rights reserved.

I. 12/17 03:01:04. Use of this software is governed by the Sybase License Agreement.

I. 12/17 03:01:04. Refer to http://www.sybase.com/softwarelicenses.

I. 12/17 03:01:04. Processors detected: 4 (containing 32 logical processors)

I. 12/17 03:01:04. Maximum number of processors the server will use: 4 physical processor(s), 32 core(s)

I. 12/17 03:01:04. Running Windows 2008R2 Build 7601 Service Pack 1 on X86_64

I. 12/17 03:01:04. Server built for X86_64 processor architecture

I. 12/17 03:01:13. 131072K of memory used for caching

I. 12/17 03:01:13. Minimum cache size: 131072K, maximum cache size: 262144K

I. 12/17 03:01:13. Using a maximum page size of 4096 bytes

I. 12/17 03:01:14. Multiprogramming level: 105

I. 12/17 03:01:14. Automatic tuning of multiprogramming level is disabled

E. 12/17 03:01:15. Cannot access "C:\Sybase\ProdData\IntIQPrd.db": another process may be using the file

Database server shutdown due to startup error

Database server stopped

Change server password IQ16.

$
0
0

Good day everyone,

 

Is there a way to change the IQ server password?

 

Thanks in advance

[Question] How to use multiple IPs/Ports in IQ16.

$
0
0

Dear All,

 

Are there any ways to use multiple IPs/Ports in IQ16?

I can use multiple IPs/Ports in Previous Version(IQ12.x/IQ15.x).


-x tcpip(host=xxx;port=xxx;host=xxx;port=xxx)

 

But It's not able to startup with above configuration in IQ16.

 

I already have tested as follows.

 

-x tcpip(MyIP=IP Address1:Port1,IP Address2:Port2)

 

But I failed to startup IQ.

 

Could please let me know how to use multiple IPs/Ports in IQ16?

 

Thanks

Gi-Sung Jang

[SAP IQ] How to use multiple IPs/Ports in IQ16.

$
0
0

Dear All,

 

[Problem]

 

I could use multiple IPs/Ports in Previous Version(IQ12.x/IQ15.x).


-x tcpip(host=xxx;port=xxx;host=xxx;port=xxx)

 

But It's not able to startup with above configuration in IQ16.

 

[Solution]

 

I have tried to test with below Scenario.

 

[Test Scenario]

 

1. -x tcpip{host=IP_Address_1;port=Port_Number_1;host=IP_Address_2;port=Port_Number_2} --X

    -x tcpip(host=IP_Address_1;port=Port_Number_1;host=IP_Address_2;port=Port_Number_2)

 

2. -x tcpip{MyIP=IP_Address_1, IP_Address_2 ;Port=Port_Number_1,Port_Number_2} --O

    -x tcpip(MyIP=IP_Address_1, IP_Address_2 ;Port=Port_Number_1,Port_Number_2)

 

3. -x tcpip{MyIP=IP_Address_1:Port_Number_1,IP_Address_1:Port_Number_2} --X

    -x tcpip(MyIP=IP_Address_1:Port_Number_1,IP_Address_1:Port_Number_2)

 

Here are my results of test with above Scenario.

 

  1) 1,3 Fail

  2) 2 Success(IQ is able to startup and be connected)

 

HTH

 

Thanks

Gi-Sung Jang

 

This document was generated from the following discussion: [Question] How to use multiple IPs/Ports in IQ16.

Upgrading Sybase IQ 16 SP01 to SP04

$
0
0

Dear Sybase Gurus,

 

I am very new to Sybase IQ. We want to Upgrade Sybase IQ 16.0 SP01 to SP04. Could you please guide me on this, i have found many documents but i am confused a abit.

 

Server : Windows Server 2008 R2 Enterprise

 

 

Best Regards

Sybase IQ 16 Backup and Restore (interactive sql)

$
0
0

Dear IQ Gurus,

 

We want to backup and restore via Interactive SQL

 

Database name : iqdemo

Backup directory C:\backup

 

Could you please help me on syntax ?

 

backup.png

 

Best Regards


Create IQ DB and best practices

$
0
0

hello IQ world!

 

I will have to work on POC project where SAP IQ 16 is used as main DWH and i would like to get experts overview about the parameters, when we create IQ db from the scratch. There are bunch of parametrs, which makes sense for experts, but if you are not in touch with this 24/7 , then this can turn into a nightmare The size of DB is expected to be around 1.5-2 Tb, no extra wide tables - max 15 columns, biggest fact table expected to be around 700m, max up to 1 billion rows.

According to best practices, i think that Page Size can be 4096 IQ Page Size 131072.

What about IQ Main dbspaze size and Local temporary DB size? Does it makes sense to set these values close to expected max size?

 

regards, Mike

Getting Sybase IQ 16 SP04 Express Edition

$
0
0

Hello,

 

I recently installed Sybase IQ 16 SP01 Express Edition and now I want to upgrade it to SP04 - is it possible?

 

If yes, where can I find the SP04 installation? (I am looking for Win as well as Linux installation packages)

 

Is it available for Express Edition too?

 

Thanks in advance,

AS

Redirection output is empty when using dbisqlc in IQ15.2 ESD3 and over.

$
0
0

Here are explanations of redirection change of dbisqlc.


[Problem]


After upgrading to IQ15.4, redirection output is empty when using dbisqlc like below.


> dbisqlc -c dsn=xxx -q "select @@version" > output.log

> ls -al output.log -- 0 byte (empty) output is generated.


[Cause]


An Output redirection in dbisqlc was changed in IQ 15.2 ESD#3 (CR# 679284).


[Resolution]

 

From 15.2 ESD#3 SQL "output redirection" should be managed with the ">&" syntax instead of ">" at the command line like below.

> dbisqlc -c dsn=xxx -q "select @@version >& output.log"

 

        A dbisql redirection's has not been changed, and dbisqlc is deprecated.

        Recommend to use a dbisql not dbisqlc.

 

If you want to redirect to output file with input file,
you need to use a read statement and enclose the input/output file with double qoute symbol.
And need to change the redirect from > to >& like below.

> dbisqlc -c dsn=xxx -q -nogui "read input.sql >& output_file"

 

[input.sql]

select @@version;

 

An output_file is generated with above way like below.

 

Ex)
[hpita:/gjang]dbisqlc -c dsn=hpita_iqdemo -q -nogui "read a.sql >& a.log"

[hpita:/gjang]cat a.log
    ...
  'SAP IQ/16.0.0.808/150105/P/sp08.22/ITANIUM/HP-UXi 11.31/64bit/2015-01-05 12:04:21'

 

[Reference]

 

** dbisqlc Interactive SQL Classic Utility (Deprecated)  --IQ15.4 Utility Guide

(SyBooks Online)

 

HTH

Gi-Sung Jang

A numeric error is returned when using isql.

$
0
0

Hi

 

Here is a Numeric problem in case of using an isql.

 

[Problem]

 

A numeric error is returned when executing a select query via isql.

 

Error :-

========

 

1> select * from gjang

 

     CT-LIBRARY error: ct_results(): protocol specific layer: external error: There is a tds protocol error.

      An invalid numeric precision was received.

 

[Reproduction]

 

1. create table with default value of numeric on column.

 

    isql -Udba -Psql -Shpita_iqdemo

 

    1> create table gjang(c1 numeric)

    2> go

 

2. execute a select query via isql.

 

    1> select * from gjang

    2> go

 

[Cause]

 

An OpenClient (OC) CT-Lib(isql) is oriented for ASE, which has numeric/decimal datatype limited to scale/precision of 38/38.

Below error is returned when two numeric/decimal values exceeded the scale/precision limits of OpenClient(77/77).

 

[Error]

   An invalid numeric precision was received.

 

Please refer to below Numeric Data Types.

 

NumericDataTypes

(SyBooks Online)

Adaptive Server, SQL Anywhere, and SAP Sybase IQ have different default precision and scale.

  • In Adaptive Server, the default is precision 18 scale 0.
  • In SQL Anywhere, the default is precision 30 scale 6.
  • In SAP Sybase IQ, the default is precision 126 scale 38. Because these defaults are too large for TDS and for some client tools, always specify a precision and scale for SAP Sybase IQ exact numeric types.

 

[Solution]

 

  1. When creating table, NUMERIC and DECIMAL datatypes with precision less than or equal to 77.

 

      Ex) create table gjang(c1 numeric(77));

 

  2. Use an IQ's default client such as dbisql /dbisqlc instead of isql.

 

  3. Set the below two options regarding precision with less than or equal to 77.

 

     - MAX_CLIENT_NUMERIC_SCALE

     - MAX_CLIENT_NUMERIC_PRECISION

 

      Ex) 1> set temporary option MAX_CLIENT_NUMERIC_PRECISION=76

            2> go

 

HTH

 

======

Gi-Sung Jang

MAX_TEMP_SPACE_PER_CONNECTION option

$
0
0

Dear All,

 

Is There any Way by which we can restrict  max temp use on user level  on Sybase IQ 15.4 ??

can we set MAX_TEMP_SPACE_PER_CONNECTION option for it ?



Thanks & Regards,

Pankaj

Viewing all 716 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>