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

Sybase IQ Permormance monitor CPU user usage

$
0
0

Hi all,

 

 

We are monitoring an Sybase IQ 15.4 Server (simplex configuration) with performance Monitor of Sybase Central

 

 

When we see on section of CPU Usage, we can see "CPU user usage" with values over 600%, what does it mean?

 

 

 

Thank you for your support


How to Add a Temporal Dimension to Data in SAP IQ

$
0
0

Time is a key dimension of data, and integral to its meaning and importance.  Any data that changes has a temporal quality – taking on different values at  different times.  It is often necessary to be able to look at a snapshot of what the world looked like at some point in the past, and take action based on that state.  Consider these kinds of scenarios:

 

  • An internal audit requires a company to report on changes made to financial data during the past five years.
  • A pending lawsuit prompts a hospital to review a patient's medical data just before a new treatment was ordered.
  • A client challenges an insurance agency's resolution of a claim involving a car accident. The agency needs to determine the policy's terms in effect when the accident occurred.
  • A retailer needs to ensure that no more than one discount is offered for a given product during any period of time.
  • A customer inquiry reveals a data entry error involving a three-month introductory interest rate on a credit card. The bank needs to retroactively correct the error.

 

 

These are critical questions, and require the ability to reach back in time and query data as it existed in the past.   How do you easily maintain snapshots of data in SAP IQ, so that you can answer questions based on date and time?  SAP’s own Mark Mumy from our Global Center of Excellence, recently shared the following approach that he has used in real world implementations.

 

Suppose you want to find out the state of data at a particular point in time.  For database tables that store changing data, do the following:

  

Imagine that you have this data for table “insurance_policy”:

 

policy_idpolicy_detailseffective_dateend_date
11111Policy terms A ....2001-01-012002-12-31
11111Policy terms B....2003-01-012003-06-30
11111Policy terms C ...2003-07-012004-03-31
11111Policy terms D ...2004-04-012007-07-31
11111Policy terms E ...2007-08-019999-12-31


So let’s say you are investigating a policy claim made in 2005, and want to know what the associated insurance policy terms were at that time.  You would issue the following query:

 

SELECT policy_details

FROM insurance_policy

WHERE policy_id = ‘11111’ and ‘2005-01-01’ between effective_date and end_date

    

This would pull the fourth row of data, because 2005-01-01 is between the effective_date and end date of this row.  This gives you the details of the insurance policy as of January 1, 2005.

 

So that’s it – a simple and low overhead way to represent and query temporal data in SAP IQ.

 

You can check out Mark Mumy’s very informative blogs about SAP IQ here: http://scn.sap.com/people/markmumy/blog

DBISQL delete key button remove record from SYBASEIQ

$
0
0

using interactive SQL version 9.0.1 for Sybase IQ 12.7 , on client machine when we select record from table and  after  hitting  the delete key all the record permanently deleted from database is there anyway by which can disable delete keyboard button .

com.sybase.scc.jmx.ManagedObjectGateway.err_invoke_op SCC agent db2v105:9999 does not know Sybase IQ version string. Something is wrong with the IQ Agent plug-in.

$
0
0

Hello All,

 

I am a student and just want to try my hands on SAP IQ. So i downloaded SAP for linux. I set up a Virtual machine on my windows and loaded the linux image onto the virtual machine. So far i have been successfully able to install SAP IQ, create database and so on. But I have only got as far as authenticating the agent after registering it. When i authenticate the agent it gives me the below error and obviously the authentication fails

 

"com.sybase.scc.jmx.ManagedObjectGateway.err_invoke_op SCC agent db2v105:9999 does not know Sybase IQ version string. Something is wrong with the IQ Agent plug-in."

 

So i searched on internet and followed the process mentioned in SAP info center under change request number 723112 however I am still unable to get it working. I would be really grateful if someone could help me ASAP. Thanks in advance

Mutiplex vs Single server

$
0
0

Hi Team,

Could you please explain me the difference between Multiplex server and single server.

I also read that we can register only one database to IQ server.

 

Initially, post installation I have created a demo database and registered it to IQ server. So does this mean that I will not be able to to create a new database in SCC and subsequent database objects under it.

 

 

Thanks & Regards,

Vijay

How to take virtual backup in Sybase IQ 15.4

$
0
0

HI,

 

Please Can anyone tell me the steps to take virtual backup in Sybase IQ 15.4

 

Thanks in Advance.

[MPX] Failed to drop multiplex node due to error.

$
0
0

1. Problem

 

[Environment]

    - SAP IQ16 (MPX)

 

A User failed to drop multiplex server due to below error.

 

DBA) drop multiplex server Writer1;

 

[Error]

 

SQL Anywhere Error -198: Primary key for row in table 'ISYSIQMPXSERVER'

  is referenced by foreign key 'ISYSIQMPXSERVER' in table 'ISYSIQMPXSERVERAGENT'

 

 

2. Cause

 

ISYSIQMPXSERVERAGENT table stores agent connection definitions for the specified multiplex server.

 

  Constraints :

 

  - Primary key(server_id)

  - Foreign key(server_id) references SYS.SYSIQMPXSERVER

 

 

Primary key(server_id) for row in table 'ISYSIQMPXSERVER' is referenced by foreign key 'ISYSIQMPXSERVER' in table 'ISYSIQMPXSERVERAGENT'.

 

3. Solution

 

If agent exists, Need to drop the agent before drop the multiplex server.

 

DBA) select * from SYSIQMPXSERVERAGENT.

 

  DROP AGENT Statement

  : Deletes an SAP Sybase IQ agent for SAP Control Center.

 

[syntax]

 

  DROP AGENT FOR MULTIPLEX SERVER server-name;

  Ex) Drop agent for multiplex server Writer1;

 

Thanks

 

Gi-Sung Jang

Why a high utilization of the main cache raise an alert?

$
0
0

I recently activated the Cockpit Server and Agent (4 SP08 PL1) to monitor a single SAP IQ server 16.0 SP8 LP3.  I also set the alert to send me email using the default alert threshold.

 

After a few hours I started receiving alert from cockpit indicating that the main cache in use exceeded the thresholds.  As the main cache was getting filled up, the alerts were changing from LOW to HIGH priority. At the end, I was flooded with alerts for the main cache and disabled the monitor for the main cache.

 

As per SAP IQ documentation:

 

“Number of buffers in use. Normally this is 100% because the buffer manager leaves buffers in memory until they are needed for some other data. In general, the buffers used and buffers locked numbers are meaningless, because SAP IQ uses buffers as aggressively and efficiently as it can.

This value grows to the maximum number of buffers that fit in the main buffer cache. The number increments whenever a buffer is allocated, but decrements only when a buffer is destroyed, not when it is unlocked or flushed. Objects in the temporary cache release their buffers when they are finished, but in the main buffer cache, SAP IQ may or may not destroy the buffers because as long as a buffer is unlocked, it is available for reuse, whether it is empty, contains data, or contains destroyed data.”  SAP IQ SP08, Administration: Database; Table 27: IQ Main Store Blocks Message; Page 320

 

It seem to me that having a Main Cache 100% should not raise an alert, but the alert should be raise if the number of disk I/O is high indicating that there is excessive trashing for the main cache.

 

  1. Do I’m missing something?
  2. What is the use of having and alert to monitor the main cache used?
  3. Is there a method to flush the main cache while the database is online?

 

Thanks a lot,

 

Uvernes.


Configuring Logical Server Policies

$
0
0


In this doc we will discuss two scenario. In first scenario Coordinator is not a member of logical server and in second scenario, we Coordinator  as member in the logical Server.

 

1. First Scenario:

 

   

            Vicky_iq0801c(Coordinator) , Vicky_iq0801q1 and Vicky _iq0801q2 Writers.

 

 

$ dbisql -c 'uid=DBA;pwd=sql;eng=vicky_iq0801c' -nogui

 

 

(DBA)> create user testusr1 identified by sql

 

 

Execution time: 0.141 seconds

 

 

(DBA)> create logical server ls1 membership(vicky_iq0801q1,vicky_iqsp0801q2)  ------Create logical server ls1

 

 

(DBA)> create ls policy lsp1  REDIRECTION_WAITERS_THRESHOLD=3 LOGIN_REDIRECTION=ON ; -------Create ls policy lsp1

 

Execution time: 0.138 seconds

 

(DBA)> alter logical server ls1 policy lsp1 ----------> Assign ls policy lsp1 to logical server ls1

 

Execution time: 0.148 seconds

 

(DBA)> create login policy lp1 DEFAULT_LOGICAL_SERVER=SERVER MAX_CONNECTIONS=100;  ---------Create login policy lp1

 

Execution time: 0.161 seconds

 

(DBA)> alter login policy lp1  add logical server ls1 --------assign logical server ls1 to login policy lp1

 

Execution time: 0.129 seconds

 

$ dbisql -c 'uid=testusr1;pwd=sql;eng=vicky_iq0801c' -nogui

 

(testusr1)>

 

[q2]$ dbisql -c 'uid=testusr1;pwd=sql;eng=vicky_iq0801c;Ls=ls1;NODETYPE=WRITER'  –nogui

 

Could not connect to the database.---------------Expected error, because login policy lp1 haven't assigned user testusr1

 

Connection disallowed by login policy for this user

 

SQLCODE=-1212, ODBC 3 State="HY000"

 

 

---Now assign login policy lp1 to testusr1

 

 

dbisql -c 'uid=DBA;pwd=sql;eng=vicky_iq0801c' -nogui

 

(DBA)> alter user testusr1 login policy lp1

 

Execution time: 0.182 seconds

 

(DBA)>

 

 

dbisql -c 'uid=testusr1;pwd=sql;eng=vicky_iq0801c;Ls=ls1;NODETYPE=WRITER'  -nogui

 

 

(testusr1)> quit

 

 

2. Second Scenario

 

                     Vicky_iq0801c(Coordinator) , Vicky_iq0801q1

 

(DBA)> create user testusr4 identified by sql
Execution time: 0.187 seconds


(DBA)> create logical server ls3 membership (vicky_iq0801c,vicky_iq0801q1) -------create logical server ls3
Execution time: 0.149 seconds


(DBA)> create ls policy lsp3 REDIRECTION_WAITERS_THRESHOLD=3 LOGIN_REDIRECTION=ON;--------create login policy lsp3
Execution time: 0.136 seconds


(DBA)> alter logical server  ls3 policy lsp3--------assign ls policy lsp3 to logical server ls3
Execution time: 0.138 seconds

 

(DBA)> create login policy lp3 DEFAULT_LOGICAL_SERVER=SERVER MAX_CONNECTIONS=100 ---------create login policy lp3

Execution time: 0.135 seconds


(DBA)> alter login policy lp3 add logical server ls3-------Assign logical server ls3 to login policy lp3
Execution time: 0.151 seconds


(DBA)> alter user testusr4 login policy lp3-------Assign login policy lp3 to user testusr4
Execution time: 0.203 seconds


$ dbisql -c 'uid=testusr4;pwd=sql;eng=vicky_iq0801c;Ls=ls3;NODETYPE=WRITER' -nogui

(testusr4)> quit

CREATING ODBC DSN FOR LOGICAL SERVER

$
0
0


1. Launch ODBC Administrator. click Add

             

           odbclg.PNG

 

2. Select Sybase IQ click Finish

 

               odbclga.PNG

 

3.  Add ODBC Data Source Name

 

                  ocbclg1.PNG

 

 

4. On Login Tab, add Login, Host , Port and Server Name

 

 

                     odbclg2.PNG

 

5.  On advanced tab, specify Logical server connection parameters LS and NODETYPE

 

 

                       odbclg3.PNG

 

6.  Click Test Connection

 

                         odbclg4.PNG

 

7. Test Connection

 

                 

                           odbclg5.PNG

 

      

8. Select Login tab and verify logical server connection

 

 

                                odbclg6.PNG

VLDB license check

$
0
0

Hi all

 

Does IQ as start-up check the assigned or used space to determine if the current vldb licenses are valid?

 

regards

Johan Bornman

IQ 16 SP08 on AIX - procedure not found

$
0
0

Hi all,


We’re facing issue with SAP IQ on AIX. Interestingly, we’re unable to execute procedure. Sample of error screen is shown below. although we can create database, can start database.


iq procedure not found.png

 

Any advice on the above?

 

Many thanks

Quang.

France - French "What's New" Session on SAP ASE 16 & SAP IQ

Creating proxy table in IQ pointing to AE table does not work, I wonder why

$
0
0


We would like to create proxy table in IQ 15.4 latest patches applied, real table being in ASE, we use aseodbc connection. At the creation of  the proxy table we are faced with the following error:

 

Could not execute statement.

  SQL Anywhere Error -656: Unable to connect to server 'ASE_SERVER_NAME':

  [Sybase][ODBC Driver Manager] Data source not found and no default

  driver specified

  Sybase error code=11206, SQLState="WO001"

  Line 1, column 1

  create existing table TOTO at 'ASE_SERVER_NAME.myDB.dbo.TOTO_ON_ASE'

we have tried to put the columns description in teh create statement it doe snot chnage anything at all.

 

Unfortunately our dbas do not know much about IQ. One of them has opened a case with SAP.sybase; no reaction from them as yet after 10 days

Please help us advance with our work.

All you help and suggestions are gratefully appreciated.

Ahmad.

peformance issue

$
0
0

Hi,

 

We are facing this issue.

 

If we copy 10GB of data from Table A to Table B, Table B supposed to have 10GB size however it is allocating almost 1.6 times of parent table(so Table B is having 18GB).


We tried below solution :

Before table creation & load, we set the parameter ‘set option public.minimize_storage = ON.

Direct load instead table creation and then load ‘select * into Table B from Table A’.

Rebuild the system index on individual table (sp_iqrebuildindex ‘gateway.Table B’, ‘index index_name’)


Can anyone help us.


Regards,

Santosh Negalur


sp_iqsysmon: Large Memory Allocator(LMA) Statistics

$
0
0

sp_iqsysmon system stored procedure monitors multiple components of SAP IQ, including the management of Buffer allocations, Buffer manager, Buffer pool, Catalog statistics, CPU utilization , Free list management, Memory management,  Prefetch management, IQ RLV-Memory Store statistics , Large Memory Allocator(LMA) statistics,  Server context statistics, Thread management and Transaction management.

 

Large Memory Allocator has been added in SAP IQ 16 and is responsible for enforcing large memory allocation.  Large memory is used by load and query engine.

 

Example:  Starts sp_iqmonitor in the file mode and write statistics for Large Memory Allocator(LMA) to the log file

 

sp_iqsysmon start_monitor,'filemode' , '-section lma'

sp_iqsysmon stop_monitor

 

Large Memory Allocator (Statistics)

 

Large Memory Space 8421m

Large Memory Max Flexible  2105mb

Large Memory Num Flex Allocations  0

Large Memory Flexible %     50%

Large Memory Flexible used 0 mb

Large Memory Inflexible %  90%

Large Memory Inflexible used  0 MB

Large Memory Anti-Starvation %  50%

Large Memory Num Connections 0

 

Large Memory Space” – Maximum Large Memory configured size (-iqlm value from params.cfg)

“Large Memory Max Flexible” -  Maximum memory granted for flexible  operators. (e.g Load Engine(hash sort merge for hash/has-range partitioned table and hash sort merge cursor)).

“Large Memory Num Flex Allocations” – This is the count of memory chunks allocated as flex memory.

“Large Memory Flexible %” – percentage of large memory used for flexible operators.

“Large Memory Flexible used” –   This is the total amount of memory allocated to flex users.

“Large Memory Inflexible %” –  Percentage of large memory used for inflexible operators(N-bit metadata structures, data buffer of column vector in load ).

“Large Memory Inflexible used” – Large memory used  by inflexible operators

“Large Memory Anti-Starvation %” – This only applies to flexible operators.

“Large Memory Num Connections” – This only applies to flexible operators and is the number of clients using lma.  Internal concept only – has nothing to do with DB connections or users.  There could be unregistered users too so this is not an accurate count of users.

IQ Cockpit fails to start

$
0
0

After several days IQ Cockpit froze, it was stopped normally and now it fails to start with the messages below. Also in the same installation SCC is not running, it only starts the agent, not the web app. Any ideas?

 

asiq bin $ cockpit.sh

Starting Cockpit Server...

 

 

---------- SYSTEM INFO ----------

 

 

Home Directory:      /f6/asiq/COCKPIT-4

Version:              Cockpit server Cockpit server 4.0 GA

Node:                NEDDWR1(172.29.78.38)

Log Message level:    WARN

 

 

 

 

Platform:              aix

Bitwidth:              64

OS Name:              AIX

OS Version:            7.1

OS Architecture:      ppc64

 

 

 

 

Available Processors:  8

Total Physical Memory: 0 MB

Free Physical Memory:  0 MB

 

 

 

 

java.library.path:    /f6/asiq/COCKPIT-4/rtlib:/f6/asiq/COCKPIT-4/bin/sa16/aix64/lib64

Java Home:            /f6/asiq/shared/SAPJRE-7_1_015_64BIT

Java Version:          1.7.0_51

Java VM Version:      7.1.015 24.51-b03

VM Process ID          22413364@NEDDWR1

VM Arguments:          -Xms128m, -XX:MaxPermSize=128m, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/f6/asiq/COCKPIT-4/log, -Dcom.sybase.home=/f6/asiq, -Dcom.sybase.ua.toplevel=/f6/asiq/COCKPIT-4, -Dcom.sybase.ua.home=/f6/asiq/COCKPIT-4, -Dcom.sybase.platform=aix, -Djava.library.path=/f6/asiq/COCKPIT-4/rtlib:/f6/asiq/COCKPIT-4/bin/sa16/aix64/lib64, -Djava.security.policy=/f6/asiq/COCKPIT-4/conf/java.policy, -Djava.util.logging.manager=com.sybase.ua.util.logging.bridge.JavaToLog4jLogManager, -Dcom.sybase.security.BootstrapConfigurationURL=file:////f6/asiq/COCKPIT-4/conf/csibootstrap.properties

Failed to start agent: Failed to start MessagingService. Failed to start broker: Protocol message contained an invalid tag (zero). java.lang.IllegalStateException: Failed to start broker: Protocol message contained an invalid tag (zero).

On IQ 16 load fails due to "block factor" and block size" clauses

$
0
0

During upgrading to IQ 16 we fould that the load commands containing the "block size" and "block factor" clauses fail. This is documented int hdiscontinued features of IQ 16 (SyBooks Online)

However the customer uses Informatica as ETL platform which adds these cluases by default in the load command. Is there any way to allow this syntax in IQ 16, or we should rewrite all the files containig the load commands? Any other suggestion?

[MPX] How to change the port number in MPX.

$
0
0

A user sometimes needs to change port number in mpx environment.

 

Environment


SAP IQ15.x, IQ16.x all (MPX)

 

If user wants to change the port number of coordinator, Here are steps to change the port number.

 

1. ALTER MULTIPLEX SERVER iq154MPX_C HOST '10.34.193.108' PORT 2649; --> new port number (2649)

 

2. Coordinator is shutdowned because of configuration change.

              I. 10/07 16:34:26. 0000000188 Warning : Multiplex server changed configuration: 'Connection Info' which needs Shutdown.

              I. 10/07 16:34:26. 0000000188 Warning : Multiplex server iq154MPX_C is shutting down because of configuration change.

 

3. change the port number from old to new port number in cfg file.

 

4. restart coordinator

 

5. check the consistency using sp_iqmpxvalidate

 

[Cautions]

         ** I recommend to shutdown all secondary nodes because DDL/DML is not working before change the port number.

 

[Files to be changed]

1. odbc file
2. cfg file
3. interfaces file
...

 

Thanks

Gi-Sung Jang

Is there a way to export performance data from IQ

$
0
0

Hello ,

 

 

Could you please let me know  Is there a way to export performance data from IQ in text file ?

 

We would like to  perform trend analysis of the performance data.

 

I guess   sp_iqsysmon can be used in file mode to monitor perforrmance.

 

Is there any good script in limux to perform this monitoring.

 

What are the thresholds in sp_iqsysmon report that needs to  be  monitored.

 

Regards,

AK

Viewing all 716 articles
Browse latest View live


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