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

Question about sybase IQ 15.4 certification for linux x86-64.

$
0
0

Hi all,

 

Does IQ15.4 support RedHat 6.4?

I found a information regarding this like below.

 

** Supported Server Platforms

 

Sybase IQ is compatible with these platforms and operating systems.

 

- Red Hat Enterprise Linux 6.2 (Linux on POWER; 64-bit)

- Red Hat Enterprise Linux 6.2 x86-64, Advanced Server and Workstation Editions

- Red Hat Enterprise Linux 6.0 (Linux onPOWER;64-bit) - minimum patch level Update-2

- Red Hat Enterprise Linux 6.0 x86-64, Advanced Server and Workstation Editions -minimum patch level Update-2

 

Thanks

Gi-Sung Jang


How to log "Approximate CPU time used" foreach connection

$
0
0

Hi all,

     I have a set of custom procedures and events to log some informations (connId, login timestamp,...) about user connections and disconnections.

This custom informations are useful to me to identify possible performance issues during specific timeframes.

 

My idea is, once a user is logging out, to collect the connection properties: ConnectedTime and ApproximateCPUTime using the following query.

 

select value from sa_conn_properties(@connId) where PropName = 'ApproximateCPUTime' --value is in sec
select value from sa_conn_properties(@connId) where PropName = 'ConnectedTime' --value is in sec

I have the following event triggered on "User Disconnection" where I try to collect the properties of interest.

 

CREATE EVENT "dba"."ev_MON_Logout" TYPE "Disconnect"
HANDLER
begin             declare @user varchar(30)            declare @connid integer            declare @approx_cpu_time numeric(10)            declare @conn_time numeric(10)             select @connid=event_parameter('ConnectionID')            select @user=event_parameter('User')            select @approx_cpu_time=convert(numeric(10), value) from sa_conn_properties(@connid) where PropName = 'ApproximateCPUTime' -- in sec            select @conn_time=convert(numeric(10), value)/1000 from sa_conn_properties(@connid) where PropName = 'ConnectedTime' -- in sec          -- ...after collection they are stored in my own monitoring tables
end;

The problem is that I tried the above solution, but I have always the properties value equals to null.

Can be the problem the fact that when the event is triggered, the corresponding connection is already closed, so that only the @connid  and @user are returned and not the other properties?

How can I get ConnectedTime and ApproximateCPUTimeautomatically for each connection?

 

 

 

During my tests I tried also to use "sa_eng_properties" instead of "sa_conn_properties" in order to obtain an engine estimation at that moment instead of the connection one, but I obtain a strange result.

 

select * from sa_eng_properties() where PropName = 'ApproximateCPUTime'

PropNum,PropName,PropDescription,Value

385,ApproximateCPUTime,Approximate CPU time used,-6551729.6684032

 

Why do I obtain always the above value? ...and what does it mean?

 

 

Best regards,

Stefano

IQ 16.0 SP08 - Login (failed/success) and logout audit

$
0
0

Hi all,

       I need to track all login attempt, login success and logout events in my SAP IQ 16.0 SP08 engine.

The requirements is to collect these data and send them to an audit monitoring server.

I tried to use the "audit option", but the problem were:

 

1. Audit infos are written in transaction log files. I cannot access it (using dbtran) until the IQ engine is up. But in our PROD enivronment is not feasible any stop to extract that data. Do you have any suggestions? How can I use dbtran when IQ engine is running?

 

2. Audit infos are written in a very verbose format. Is it possible to specify a simpler format?

I tried: CALL sa_audit_string('DBA LOGIN AUDIT');

but what I want is something like:

#timestamp; user; action; result

2015-08-10 15:50:00,909; DBA; LOGIN; SUCCESSFULL

 

 

Do you have any suggestion about the above issues?

 

Best regards,

Stefano

Create table from Multiple tables (unknown number)

$
0
0

Hi,

 

Is it possible to create a overview table in Sybase from multiple other tables?

The number of tables to create this overview table.. depends on number of partitions.

 

Is there a way where create table statement can have a where clause to know number of partitions and then loop through it.

 

I know we can use Stored Procedure.. but what if the number of partitions gets changed? How can this be adapted.

 

Appreciate any help/suggestions. Thanks.

Extracting IQ user options

$
0
0

I'm extracting users and all the gory details regarding them from IQ.  In v15.4 there are 140 options per user stored in SYS.SYSUSEROPTIONS.  I want to extract only those options that aren't set to whatever is the default.  Any thoughts?

 

Update:  use SYS.SYSOPTIONS

 

one of those head*desk and lol at myself

 

 

'AES_Encrypt_Header_Format'

'ASE_Function_Behavior'

'Abort_On_Error_File'

'Abort_On_Error_Line'

'Abort_On_Error_Number'

'Affinity_Autoexclude_Timeout'

'Aggregate_Index_Cutover'

'Aggregation_Preference'

'Alloc_Rawdevice_Lastblock'

'Allow_Snapshot_Versioning'

'Append_Load'

'Ase_Binary_Display'

'Attention_Limit'

'BITMAP_Options1'

'BT_Prefetch_Max_Miss'

'BT_Prefetch_Size'

'BTree_Page_Split_Pad_Percent'

'Backup_Exec_Cmd'

'Backup_Free_Space'

'Bit_Vector_Pinnable_Cache_Percent'

'Bitmap_Percent_Factor'

'Blockmap_Prefetch_Size'

'Bloom_Max_Partitions'

'Bloom_Threads_Per_Partition'

'Buffer_Cache_Wash_Intensity'

'Bufman_Options1'

'Bufman_Options2'

'Bufman_Test_Options1'

'CORE_OPTIONS67'

'CORE_Options1'

'CORE_Options10'

'CORE_Options100'

'CORE_Options11'

'CORE_Options12'

'CORE_Options13'

'CORE_Options14'

'CORE_Options15'

'CORE_Options16'

'CORE_Options17'

'CORE_Options18'

'CORE_Options19'

'CORE_Options20'

'CORE_Options22'

'CORE_Options23'

'CORE_Options24'

'CORE_Options25'

'CORE_Options26'

'CORE_Options27'

'CORE_Options28'

'CORE_Options29'

'CORE_Options3'

'CORE_Options30'

'CORE_Options31'

'CORE_Options32'

'CORE_Options33'

'CORE_Options34'

'CORE_Options35'

'CORE_Options36'

'CORE_Options37'

'CORE_Options38'

'CORE_Options39'

'CORE_Options4'

'CORE_Options40'

'CORE_Options41'

'CORE_Options42'

'CORE_Options43'

'CORE_Options44'

'CORE_Options45'

'CORE_Options46'

'CORE_Options47'

'CORE_Options48'

'CORE_Options49'

'CORE_Options5'

'CORE_Options50'

'CORE_Options51'

'CORE_Options52'

'CORE_Options53'

'CORE_Options54'

'CORE_Options55'

'CORE_Options56'

'CORE_Options57'

'CORE_Options58'

'CORE_Options59'

'CORE_Options6'

'CORE_Options60'

'CORE_Options61'

'CORE_Options62'

'CORE_Options63'

'CORE_Options64'

'CORE_Options65'

'CORE_Options66'

'CORE_Options68'

'CORE_Options69'

'CORE_Options7'

'CORE_Options70'

'CORE_Options71'

'CORE_Options72'

'CORE_Options73'

'CORE_Options74'

'CORE_Options75'

'CORE_Options76'

'CORE_Options77'

'CORE_Options78'

'CORE_Options79'

'CORE_Options8'

'CORE_Options80'

'CORE_Options81'

'CORE_Options82'

'CORE_Options83'

'CORE_Options84'

'CORE_Options86'

'CORE_Options87'

'CORE_Options88'

'CORE_Options89'

'CORE_Options9'

'CORE_Options90'

'CORE_Options91'

'CORE_Options92'

'CORE_Options94'

'CORE_Options95'

'CORE_Options_Pass2_Threads'

'CREATE_HG_AND_FORCE_PHYSICAL_DELETE'

'CREATE_HG_WITH_EXACT_DISTINCTS'

'Cache_Affinity_Percent'

'Cache_Partitions'

'Check_Alias_Enabled'

'Command_Stats'

'Command_Stats_Verbosity'

'Conversion_Mode'

'Convert_Varchar_To_1242'

'Core_Options85'

'Core_Options93'

'Cursor_Window_Rows'

'DBCC_Large_Memory_Usage_Bytes'

'DBCC_Pinnable_Cache_Percent'

'DDL_Information'

'DDL_Options2'

'DDL_Options3'

'DML_Options1'

'DML_Options10'

'DML_Options101'

'DML_Options102'

'DML_Options103'

'DML_Options104'

'DML_Options105'

'DML_Options106'

'DML_Options107'

'DML_Options11'

'DML_Options12'

'DML_Options13'

'DML_Options14'

'DML_Options15'

'DML_Options16'

'DML_Options17'

'DML_Options18'

'DML_Options19'

'DML_Options2'

'DML_Options20'

'DML_Options21'

'DML_Options22'

'DML_Options23'

'DML_Options24'

'DML_Options25'

'DML_Options26'

'DML_Options27'

'DML_Options28'

'DML_Options29'

'DML_Options3'

'DML_Options30'

'DML_Options31'

'DML_Options33'

'DML_Options34'

'DML_Options35'

'DML_Options36'

'DML_Options37'

'DML_Options38'

'DML_Options39'

'DML_Options4'

'DML_Options40'

'DML_Options41'

'DML_Options42'

'DML_Options43'

'DML_Options44'

'DML_Options45'

'DML_Options46'

'DML_Options47'

'DML_Options48'

'DML_Options49'

'DML_Options5'

'DML_Options50'

'DML_Options51'

'DML_Options52'

'DML_Options53'

'DML_Options54'

'DML_Options55'

'DML_Options56'

'DML_Options57'

'DML_Options58'

'DML_Options59'

'DML_Options6'

'DML_Options60'

'DML_Options61'

'DML_Options62'

'DML_Options63'

'DML_Options64'

'DML_Options65'

'DML_Options66'

'DML_Options67'

'DML_Options68'

'DML_Options69'

'DML_Options7'

'DML_Options70'

'DML_Options71'

'DML_Options72'

'DML_Options73'

'DML_Options74'

'DML_Options75'

'DML_Options76'

'DML_Options77'

'DML_Options78'

'DML_Options79'

'DML_Options8'

'DML_Options80'

'DML_Options81'

'DML_Options82'

'DML_Options83'

'DML_Options84'

'DML_Options85'

'DML_Options86'

'DML_Options87'

'DML_Options88'

'DML_Options89'

'DML_Options9'

'DML_Options90'

'DML_Options91'

'DML_Options92'

'DML_Options93'

'DML_Options94'

'DML_Options95'

'DML_Options96'

'DML_Options97'

'DML_Options98'

'DML_Options99'

'DQP_Enabled'

'DQP_Enabled_Over_Network'

'DQP_Exclude_Types'

'DQP_Max_Fragment_KB'

'DQP_Options1'

'DQP_Options10'

'DQP_Options2'

'DQP_Options3'

'DQP_Options4'

'DQP_Options5'

'DQP_Options6'

'DQP_Options7'

'DQP_Options8'

'DQP_Options9'

'DQP_Preference'

'DQP_Row_Reduction_Percent'

'Date_First_Day_Of_Week'

'Dbcc_Log_Block_Numbers'

'Dbcc_Log_Progress'

'Default_Disk_Striping'

'Default_Having_Selectivity_PPM'

'Default_KB_Per_Stripe'

'Default_Like_Match_Selectivity_PPM'

'Default_Like_Range_Selectivity_PPM'

'Default_Proxy_Table_Row_Count'

'Default_Table_UDF_Row_Count'

'Delay_Invariants_Under_Usefulness_PPM'

'Disable_RI_Check'

'Disk_Striping_Packed'

'DmContext_Display_Limit'

'Dump_Bufman_Info_Details'

'Dump_Bufman_Info_IQMSG'

'Early_Predicate_Execution'

'Early_Resource_Release'

'Enable_Async_IO'

'Enable_LOB_Variables'

'Encrypt_Key_Per_Column_Optimizations'

'Exchange_Enabled'

'Exchange_Unit_Size'

'FHashtb_drain_pct'

'FHashtb_max_keys_per_bucket'

'FHashtb_max_rehash'

'FHashtb_rehash_pct'

'FPL_Expression_Memory_KB'

'FP_LOB_Workunit_MBSize'

'FP_Lookup_Size'

'FP_Lookup_Size_PPM'

'FP_NBIT_Autosize_Limit'

'FP_NBIT_Enforce_Limits'

'FP_NBIT_IQ15_Compatibility'

'FP_NBIT_Lookup_MB'

'FP_NBIT_Rollover_Max_MB'

'FP_Predicate_Workunit_Pages'

'FP_Prefetch_Size'

'Floating_Point_Accumulator'

'Force_Drop'

'Force_Fixed_Width_Numerics'

'Force_No_Scroll_Cursors'

'Force_Updatable_Cursors'

'Garray_Fill_Factor_Percent'

'Garray_Insert_Prefetch_Size'

'Garray_Page_Split_Pad_Percent'

'Garray_RO_Prefetch_Size'

'Give_Error_On_Control_C'

'GroupCount_selectivity_cutoff_ppm'

'Groupby_Column_Correlation'

'Groupby_Table_Correlation'

'HG_Delete_Method'

'HG_Search_Range'

'Hash_Pinnable_Cache_Percent'

'Hash_Thrashing_Percent'

'Hos_MemCheck'

'Hpux_PBO_Shutdown'

'IN_Subquery_Preference'

'IQ_Diag_Info_Level'

'IQ_Utility_Prefetch_Size'

'IQgovern_Max_priority'

'IQgovern_priority'

'IQgovern_priority_time'

'Ignore_Affinity_Cost'

'Index_Advisor'

'Index_Advisor_Max_Rows'

'Index_Preference'

'Infer_Subquery_Predicates'

'Initialize_Memory_To_Ones_On_Allocation'

'Join_Expansion_Factor'

'Join_Optimization'

'Join_Preference'

'Join_Simplification_Threshold'

'LF_Bitmap_Cache_KB'

'LF_Max_Unique_Values'

'LM_Leak_Visible'

'LOB_Prefetch_Size'

'Large_Doubles_Accumulator'

'Load_Memory_MB'

'Load_ZeroLength_AsNull'

'Log_Connect'

'Log_Cursor_Operations'

'MPX_MIPC_Timeout'

'MPX_Options1'

'MPX_Options10'

'MPX_Options11'

'MPX_Options12'

'MPX_Options2'

'MPX_Options3'

'MPX_Options4'

'MPX_Options5'

'MPX_Options6'

'MPX_Options7'

'MPX_Options8'

'MPX_Options9'

'Main_Reserved_DBSpace_MB'

'Max_Cartesian_Result'

'Max_Client_Numeric_Precision'

'Max_Client_Numeric_Scale'

'Max_Cube_Result'

'Max_GBH_Rows'

'Max_Hash_Rows'

'Max_IQ_Threads_Per_Connection'

'Max_IQ_Threads_Per_Team'

'Max_Join_Enumeration'

'Max_Partitioned_Hash_MB'

'Max_Prefix_Per_Contains_Phrase'

'Max_Query_Parallelism'

'Max_Query_Time'

'Max_Spinlock_Loop'

'Max_Temp_Space_Per_Connection'

'Max_Warnings'

'Memory_Leaks_Visible'

'Memory_Snapshot_First'

'Memory_Snapshot_Increment'

'Minimize_Storage'

'Monitor_Output_Directory'

'Mpx_Autoexclude_Timeout'

'Mpx_Heartbeat_Frequency'

'Mpx_Idle_Connection_Timeout'

'Mpx_Liveness_Timeout'

'Mpx_Max_Connection_Pool_Size'

'Mpx_Max_Global_Alloc_Size'

'Mpx_Max_Unused_Pool_Size'

'Mpx_Shtemp_Alloc_Lease_Time'

'Mpx_Suspend_MIPC_HB'

'Mpx_Suspend_Simulation'

'Mpx_Test_Options1'

'Mpx_Test_Options2'

'Mpx_Test_Options3'

'Mpx_Test_Options4'

'Mpx_Test_Options5'

'Mpx_Test_Options6'

'Mpx_Test_Options7'

'Mpx_Test_Options8'

'Mpx_Test_Options9'

'Mpx_Work_Unit_Timeout'

'Mpx_Worker_Wait_Time'

'Mpx_event'

'Mutex_Trigger_Percent'

'Mutex_Trigger_Threshold'

'Mutex_Trigger_Try_Ratio_Threshold'

'N_Emerg_Buffers'

'NoExec'

'No_Row_Reject'

'Non_Ansi_Null_Varchar'

'Notify_Modulus'

'Num_FHashtb_Buckets'

'Numeric_Overflow_Error'

'OS_File_Cache_Buffering'

'OS_File_Cache_Buffering_Tempdb'

'OS_Options2'

'OS_Options3'

'Parallel_GBH_Preference'

'Prefetch_Buffer_Limit'

'Prefetch_Buffer_Percent'

'Prefetch_FP_Percent'

'Prefetch_Garray_Percent'

'Prefetch_Hash_Percent'

'Prefetch_LOB_Percent'

'Prefetch_Sort_Percent'

'Prefetch_TextPost_Percent'

'Prefetch_Threads_Percent'

'QUERY_PLAN_HTML_DIRECTORY'

'Query_Detail'

'Query_Name'

'Query_Plan'

'Query_Plan_After_Run'

'Query_Plan_Append_Date_To_File'

'Query_Plan_As_HTML'

'Query_Plan_As_HTML_Directory'

'Query_Plan_Min_Time'

'Query_Plan_Text_Access'

'Query_Plan_Text_Caching'

'Query_Rows_Returned_Limit'

'Query_Temp_Space_Limit'

'Query_Timing'

'ROW_Prefetch_Size'

'RV_Auto_Merge_Eval_Interval'

'RV_BitMap_Chunk_Capacity'

'RV_BitMap_Chunk_Restrictions'

'RV_BitMap_RidList_Chunks_Only'

'RV_BitMap_RidList_NumRids'

'RV_DML_Options1'

'RV_Disable_Logging'

'RV_Disable_Logging_Flusher'

'RV_Fix_Data_BlockSize'

'RV_Force_ECS_DelEBM'

'RV_LM_Options_1'

'RV_Log_Options1'

'RV_MERGE_TABLE_NUMROWS'

'RV_Max_Active_SubFragment_Count'

'RV_Max_Token'

'RV_Merge_Node_MemSize'

'RV_Merge_Table_MemPercent'

'RV_Options1'

'RV_Para_Proj_WU_Size'

'RV_Reserved_DBSpace_MB'

'RV_SubFragment_Selection_Strategy'

'RV_Trace_LogBuf'

'RV_Trace_LogRec'

'RV_Trace_LogSpace'

'RV_Use_Para_Proj'

'RV_Var_Data_BlockSize'

'Revert_To_V15_Optimizer'

'Round_To_Even'

'Row_Count'

'Secondary_File_Error'

'SignificantDigitsForDoubleEquality'

'Snapshot_Versioning'

'Sort_Pinnable_Cache_Percent'

'Stats_Condition_Variables'

'Stats_Mutexes'

'Stats_RW_Locks'

'Stats_Recursive_Mutexes'

'Stats_Recursive_RW_Locks'

'Stats_Semaphores'

'Stats_Shared_Variables'

'Stats_Spinlocks'

'Stats_Threads'

'Subquery_Caching_Preference'

'Subquery_Flattening_Percent'

'Subquery_Flattening_Preference'

'Subquery_Placement_Preference'

'Sweeper_Threads_Percent'

'Table_UDF_Row_Block_Chunk_Size_KB'

'Target_Query_Parallelism'

'Temp_Extract_Append'

'Temp_Extract_Binary'

'Temp_Extract_Column_Delimiter'

'Temp_Extract_Directory'

'Temp_Extract_Escape_Quotes'

'Temp_Extract_Name1'

'Temp_Extract_Name2'

'Temp_Extract_Name3'

'Temp_Extract_Name4'

'Temp_Extract_Name5'

'Temp_Extract_Name6'

'Temp_Extract_Name7'

'Temp_Extract_Name8'

'Temp_Extract_Null_As_Empty'

'Temp_Extract_Null_As_Zero'

'Temp_Extract_Quote'

'Temp_Extract_Quotes'

'Temp_Extract_Quotes_All'

'Temp_Extract_Row_Delimiter'

'Temp_Extract_Size1'

'Temp_Extract_Size2'

'Temp_Extract_Size3'

'Temp_Extract_Size4'

'Temp_Extract_Size5'

'Temp_Extract_Size6'

'Temp_Extract_Size7'

'Temp_Extract_Size8'

'Temp_Extract_Swap'

'Temp_Reserved_DBSpace_MB'

'Test_Attention_Location'

'TextPost_Prefetch_Size'

'Text_Delete_Method'

'ThreadMgr_Silence'

'ThreadMgr_SpecialPool'

'Thread_Stacksize_KB'

'Time_Series_Error_Level'

'Time_Series_Log_Level'

'Top_NSort_CutOff_Pages'

'Trim_Partial_MBC'

'Uncorrelated_Scalar_Subquery_Selectivity_PPM'

'Unicode_Collation_Name'

'User_Resource_Reservation'

'Virtual_Backup'

'WD_Delete_Method'

'Wash_Area_Buffers_Percent'

'XT_Options1'

'XT_Options2'

'XT_Options3'

'XT_Options4'

'XT_Options5'

'allow_nulls_by_default'

'allow_read_client_file'

'allow_snapshot_isolation'

'allow_write_client_file'

'ansi_blanks'

'ansi_close_cursors_on_rollback'

'ansi_permissions'

'ansi_substring'

'ansi_update_constraints'

'ansinull'

'assume_distinct_servers'

'auditing'

'auditing_options'

'auto_commit_on_create_local_temp_index'

'background_priority'

'base_tables_in_rlv_store'

'blob_threshold'

'blocking'

'blocking_others_timeout'

'blocking_timeout'

'chained'

'checkpoint_time'

'cis_option'

'cis_rowset_size'

'close_on_endtrans'

'collect_statistics_on_dml_updates'

'compression'

'conn_auditing'

'connection_authentication'

'continue_after_raiserror'

'conversion_error'

'cooperative_commit_timeout'

'cooperative_commits'

'database_authentication'

'date_format'

'date_order'

'db_publisher'

'debug_messages'

'dedicated_task'

'default_dbspace'

'default_timestamp_increment'

'delayed_commit_timeout'

'delayed_commits'

'delete_old_logs'

'disk_sandbox'

'divide_by_zero_error'

'escape_character'

'exclude_operators'

'extended_join_syntax'

'extern_login_credentials'

'external_remote_options'

'external_udf_execution_mode'

'fire_triggers'

'first_day_of_week'

'for_xml_null_treatment'

'force_view_creation'

'global_database_id'

'http_connection_pool_basesize'

'http_connection_pool_timeout'

'http_session_timeout'

'identity_enforce_uniqueness'

'identity_insert'

'integrated_server_name'

'isolation_level'

'java_class_path'

'java_location'

'java_main_userid'

'java_vm_options'

'lock_rejected_rows'

'log_deadlocks'

'login_mode'

'login_procedure'

'materialized_view_optimization'

'max_client_statements_cached'

'max_cursor_count'

'max_hash_size'

'max_plans_cached'

'max_priority'

'max_query_tasks'

'max_recursive_iterations'

'max_statement_count'

'max_temp_space'

'min_password_length'

'min_role_admins'

'ml_remote_id'

'nearest_century'

'non_keywords'

'normalize_histogram'

'odbc_describe_binary_as_varbinary'

'odbc_distinguish_char_and_varchar'

'oem_string'

'on_charset_conversion_failure'

'on_tsql_error'

'optimization_goal'

'optimization_level'

'optimization_workload'

'pinned_cursor_percent_of_cache'

'post_login_procedure'

'precision'

'prefetch'

'preserve_source_format'

'prevent_article_pkey_update'

'priority'

'progress_messages'

'qualify_owners'

'query_mem_timeout'

'quote_all_identifiers'

'quoted_identifier'

'read_past_deleted'

'recovery_time'

'remote_idle_timeout'

'replicate_all'

'replication_error'

'replication_error_piece'

'request_timeout'

'reserved_keywords'

'return_date_time_as_string'

'rollback_on_deadlock'

'row_counts'

'save_remote_passwords'

'scale'

'secure_feature_key'

'sort_collation'

'sql_flagger_error_level'

'sql_flagger_warning_level'

'sr_date_format'

'sr_time_format'

'sr_timestamp_format'

'sr_timestamp_with_time_zone_format'

'st_geometry_asbinary_format'

'st_geometry_astext_format'

'st_geometry_asxml_format'

'st_geometry_describe_type'

'st_geometry_interpolation'

'st_geometry_on_invalid'

'string_rtruncation'

'subscribe_by_remote'

'subsume_row_locks'

'suppress_tds_debugging'

'synchronize_mirror_on_commit'

'tds_empty_string_is_null'

'temp_space_limit_check'

'time_format'

'time_zone_adjustment'

'timestamp_format'

'timestamp_with_time_zone_format'

'truncate_timestamp_values'

'trusted_certificates_file'

'tsql_outer_joins'

'tsql_variables'

'updatable_statement_isolation'

'update_statistics'

'upgrade_database_capability'

'user_estimates'

'uuid_has_hyphens'

'verify_all_columns'

'verify_password_function'

'verify_threshold'

'wait_for_commit'

'webservice_namespace_host'

'webservice_sessionid_name'

How do I see what tables are referencing a primary key?

$
0
0

Hi, I am trying to work out the indexes and primary key on a table, and I know the primary key is used as a foreign key on other tables, how do I see these references in IQ15?

 

Thanks,

how to change ownership of tables , views and other objects in sybase iq.

$
0
0

Hello,

 

Could you please let me know how to  change ownership  of tables , views and other objects in sybase iq?

 

I guess the sybase command  alter table  <owner.tablename>  modify owner  <newowner> does not work  in sybase iq ?

 

Regards,

Arun

Multiple connections in with same values in sp_iqconnection(), sp_iqcontext()

$
0
0

Hello Community members and Experts,

 

It's quite often I'm seeing on my Sybase IQ 15.4, when I am fetching connection details using below query:

 

select distinct X.Connhandle,"User Name"=X.userid,'I.P. Address'=X.nodeaddr,X.IQthreads,'Last Request Time'=X.lastreqtime,

'Last Command Time'=X.lastiqcmdtime,'Temp Table Space Used'=X.TempTablespaceKB,'Temp Work Space Used'=X.TempworkspaceKB,'Command'=Y.cmdline,'Last Idle'=X.lastidle,

'Login Time'=X.conncreatetime from sp_iqconnection() X,sp_iqcontext() Y where X.connhandle=Y.connhandle and Y.cmdline not like '%NO COMMAND%' and Y.cmdline is not null

and Y.cmdline <> ' ' and X.userid not in ( 'DBA','dbo')  order by X.lastreqtime

 

I am getting below outputs like below: (it is sample output)

 

Connhandle          Username          IP Address     IQthreads          Command

-----------------          -----------------        -----------------    -------------------     -------------------

86162                    john                 10.10.10.10     5                         select * from emp

86162                    john                 10.10.10.10     5                         select * from emp

86222                    mike                11.11.11.11     8                         select * from dept

86222                    mike                11.11.11.11     8                         select * from dept

86230                    mark                12.12.12.12     9                         select * from sal

86230                    mark                12.12.12.12     9                         select * from sal

 

------------------------------------------------------------------------------------------------------------------------------

 

Kindly assist me to understand this. why I am seeing identical connections more than once with same values ??

 

Is this a server bug or something else..??

 

Inputs and suggestions will be appreciated.

 

Thanks & Regards

pankaj


Invalid use of an aggregate function

$
0
0

Dear All,

What law has been violated in the following select statement ...  into #tmp  ?  

 

create table agg ( i int null , j int null, k int null );


select count(*) Cj, count(*) Ck, i

into #tmp

from agg

group by i

having 1 <= Cj and 1 <= Ck


Could not execute statement.

  Invalid use of an aggregate function

  SQLCODE=-150, ODBC 3 State="42000"

 

These work
1.- commenting out #tmp table

 

2.-
select count(*) , count(*)  , i
into #tmp
from agg
group by i
having 1 <= count(*) and 1 <= count(*) 

 

3.-
select count(*) as Cj, count(*)+0  as  Ck, i
into #tmp
from agg
group by i
having 1 <= Cj and 1 <= Ck

 

Thank you

cjd

How to identify the Sybase IQ license you have is a sub-capacity one.

$
0
0


The Solaris Sparc  machine on which Sybase IQ 16 is installed is having 64 cores . But IQ works only when 8 cores are enabled and rest are disabled.

 

This is limiting the Server to be used by other applications . Is the 8 core license I am having is not  a sub-capacity license ?

Sybase IQ version space

$
0
0

When a connection in SYBASE IQ starts using version space ?

IQ index usage statistics

$
0
0

Does anybody know what is the meaning of NOpt value returned by sp_iqindexuse procedure.
NQry and NConstraint is clear, but what does NOpt (used by the optimizer) stands for?

Load Table not working

$
0
0

Hi,

 

Is there a limit on number of columns that I can enter for load table query?

 

I am trying to load a file with 10 rows and 105 columns.

I am getting following error -

SQL Anywhere Error -1013028: An invalid size (too large) was specified for a LOAD option.

-- (db_sqlins.cxx 5113)

 

Please help.

Problem with join returning zero rows

$
0
0

Hello, I am trying to do a select with joins on a IQ16 server, the query is returning 0 rows when it should be returning 23 rows. If I use a subquery instead of a join, it correctly returns the 23 expected rows.

 

e.g.

select count(*) from t1, t2 where t1.ID = t2.ID and t2.misc = 'A'

returns 0 rows

 

select count(*) from t1 where t1.ID in (select t2.ID from t2 where t2.misc = 'A')

returns 23 rows

 

I can't explain this behaviour. I've checked the datatypes and and data match (thankfully these are very small tables), there are no hidden characters, i.e. I compared select len(ID) from t1 and select len(ID) from t2 and they match. ID is a varchar(30) in both tables. I don't understand.

 

Any help with this mystery would be appreciated!

LOAD TABLE slow performance in IQ16SP08PL24 vs. IQ15.4ESD5

$
0
0

Hi

 

I was testing load table in IQ16SP08PL24 vs. IQ15.4ESD5. Using the exact same cfg file (except IQ16 need -iqlm in the cfg), and use the exact same raw device for dbspace and same file system temp space. Same create table script, same load table script.

 

Load 110000000 rows table from gzip file

 

IQ16SP08PL24 took 1384 seconds while IQ15.4ESD5 took 319 seconds.

 

I used iostat to check io and cpu, IQ16SP08PL24 only 4% cpu usage during the load while IQ15.4 ESD5 has 35% cpu usage. Seems like IQ15.4 ESD5 using parallel loading while IQ16SP08PL24 use sing thread loading.

 

Tested with gunzip file, same performance, 1314 seconds vs. 313 seconds.

 

I am not using RLV, so not configuring RLV at all.

 

Then I downloaded IQ16SP08PL35, did the same LOAD TABLE test with the same script and cfg.file.

The performance was not really improving for gzip file loading, IQ16SP08PL35 took 1294 seconds, yet, it improved quite dramatically when loading gunzip file, it took 261 seconds. And iostat show cpu was up to 36%.

 

Just a note of it, IQ database was created with all default options for IQ16 and IQ15.4, no option added in the load table script and the DDL was using IQ UNIQUE(255).

 

Thanks for any tips to resolve this slow performance issue.


Long Running thread SYBASE IQ

$
0
0

Hi to find the long running processes in SYBASE IQ ?. In sybase ASE , we have system table to find the long running queries (Master..syslogshold).

Do we have anything in IQ too ? . please share the queries to find the same 

IQ 15.4 ESD#6 crash-AIX 7.1

$
0
0

Hi,

I had this stack which caused IQ  to crash after an attempt to insert a duplicate key when running an insert select:

 

I. 09/08 17:19:46. 0000000466 Exception Thrown from s_ohcins.cxx:722, Err# 0, tid 8 origtid 583

I. 09/08 17:19:46. 0000000466    O/S Err#: 0, ErrID: 6145 (hgex_dataexception); SQLCode: -1002003, SQLState: 'QGA03', Severity: 14

I. 09/08 17:19:46. 0000000466 [20505]: Tried to insert a duplicate value into a unique index DW.DW_PAR_QUERIES.ASIQ_IDX_T822_I17_HG on row 1968.

-- (s_ohcins.cxx 722)

I. 09/08 17:19:46. 0000000466 [20917]: Delete of 1 rows started for table:

I. 09/08 17:19:46. 0000000466 

I. 09/08 17:19:46. 0000000466 **************************************************

I. 09/08 17:19:46. 0000000466 ***   Sybase IQ Abort:

I. 09/08 17:19:46. 0000000466 ***      From:  st_server.cxx:1442

I. 09/08 17:19:46. 0000000466 ***      PID: 23724032

I. 09/08 17:19:46. 0000000466 ***      Message: caught signal 11, program abort

I. 09/08 17:19:46. 0000000466 ***      Thread: 15164  (TID: 8)

I. 09/08 17:19:46. 0000000466 **************************************************

I. 09/08 17:19:46. 0000000466 

I. 09/08 17:19:46. 0000000466     **  Error from IQ connection:  SA connHandle: 44  SA connID: 26  IQ connID: 0000000466  User: DW

I. 09/08 17:19:46. 0000000466     **  Time of error:  2015-09-08 17:19:46

I. 09/08 17:19:46. 0000000466     **  IQ Version:  Sybase IQ/15.4.0/150610/P/ESD6

 

after that sever the stack has :

 

===== Thread Number  15164  (IQ connID: 0000000466) =====

I. 09/08 17:19:47. 0000000466 pc: 0x9000000313bf8e8 .pcstkwalk(stk_trace*,int,db_log*,hos_fd*)+0x1c8()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000313bf1d8 .ucstkgentrace(int,int)+0xb8()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000313bd964 .DumpAllThreads(const char*,unsigned int,int)+0x184()

I. 09/08 17:19:47. 0000000466 pc: 0x900000030b60078 .hos_ABORT(const char*,unsigned int,const char*,char*,char*)+0x1d8()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000313c52d4 .SigHndlr+0x54()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000314b6a70 .s_btParallelCursor::SetDeleteNotifier(int,void*,int(*)(void*,const void*,const int,const void*))+0x10()

I. 09/08 17:19:47. 0000000466 pc: 0x900000031fd6f7c .hs_word::LargeDelete(const s_bm&,int)+0x19c()

I. 09/08 17:19:47. 0000000466 pc: 0x900000031fd5598 .hs_word::Delete(const s_bm*,unsigned long,int,int,s_CKInfo*,const hos_ValueRange*)+0x238()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000310679f8 .hdb_delete_indices::Unit_of_Work(int)+0xf8()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000310681a4 .hdb_delete_indices::hdb_delete_index_iter::ExecWork(int&,unsigned int)+0xe4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003152ea84 .workAllocator::DoWork(unsigned int)+0xe4()

I. 09/08 17:19:47. 0000000466 pc: 0x900000031532bd0 .workAllocator::sDoWork(workAllocator*,unsigned int)+0x30()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003217bfb4 .hos_team::StartWork(void(*)(void*,void*),void*)+0x114()

I. 09/08 17:19:47. 0000000466 pc: 0x900000031532b10 .hos_team::Exec(hos_workIter&)+0x50()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000310668cc .hdb_delete_indices::Delete_Indices()+0x24c()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000310639f4 .hdb_hdelete::Delete(const char*,hdb_hinsertindexlist*,unsigned int)+0x8b4()

I. 09/08 17:19:47. 0000000466 pc: 0x900000031b8f7e8 .hdb_hdelete::Delete(const char*)+0x28()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003154aa2c .db_sqlinsert::DeleteDisplayInsertError(unsigned int,s_bm*)+0x12c()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003154b044 .db_sqlinsert::VExecute()+0x4c4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003157f4c8 .db_sqlinsert::Execute()+0x388()

I. 09/08 17:19:47. 0000000466 pc: 0x900000030beafec .st_command::DoCmdThroughResourceGate()+0x36c()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000321b4df8 .st_iqdml::Insert(a_statement*,UIConnection*,UICursor*,unsigned int*)+0xd8()

I. 09/08 17:19:47. 0000000466 pc: 0x90000003212cd88 .UIQDML_Insert+0x48()

I. 09/08 17:19:47. 0000000466 pc: 0x900000030bf80a0 .st_SAIQInterfaceInfo::callFunction()+0x40()

I. 09/08 17:19:47. 0000000466 pc: 0x900000032243650 .st_SAIQInterface::RunIQFunc(st_SAIQInterfaceInfo*)+0x170()

I. 09/08 17:19:47. 0000000466 pc: 0x900000030bf8fa0 .st_SAIQInterface::Execute(int,void*,unsigned int(*)(void*,void*),void*,unsigned int)+0x600()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000321f9ca8 .saint_iqthresholddml::Insert(a_statement*,IConnection*,ICursor*,unsigned int*)+0xe8()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002fa3f85c .InsertFromHost(a_db_cursor*,a_statement*,unsigned int)+0xfc()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002fa3f424 .dbi_insert(Connection*,a_statement*,a_stmt*,a_stmt_identifier*,unsigned int,unsigned int,TableDef*)+0x2e4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f80773c .DoExecuteBodyLocal(Connection*,a_stmt*,a_statement*,a_stmt_identifier*,bool,unsigned int,unsigned short)+0x3fc()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f7f816c .DoExecuteBody(Connection*,a_stmt*,a_statement*,a_stmt_identifier*,bool,unsigned int,unsigned short)+0x12c()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f7f74b8 .DoExecuteStmt(Connection*,a_stmt*,a_statement*,a_stmt_identifier*,unsigned short,unsigned int)+0x2b8()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f7f9b1c .db__execute(Connection*,an_sqlpres_receive*)+0x27c()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6b7a78 .RequestProcedure::call()+0xbb8()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f8501b8 .Context::call(Procedure*,Context**)+0x78()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f851c08 .Worker::call_on_stack(Procedure*)+0x48()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6b9404 .TopProcedure::call()+0x44()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f851518 .Worker::spawn(Procedure*)+0x98()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6b9604 .EngStream::handle_ind(unsigned char,unsigned int)+0xc4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6b9fd4 .EngStream::execute()+0x4f4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6bb948 .RQBaseItem::do_work(Worker*)+0x48()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f5561c4 .RequestQueue::worker_body()+0xc4()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f6bb820 .request_task(void*)+0x80()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f5f3288 .run_task_body+0x48()

I. 09/08 17:19:47. 0000000466 pc: 0x90000002f5edb94 .UnixTask::pre_body(void*)+0x134()

I. 09/08 17:19:47. 0000000466 pc: 0x9000000004f5e14 ()

 

I've done some research and found that several CRs related to insert on duplicate key on HG unique and  with  WD index may cause IQ server to fail but most of them are fixed starting from ESD#3 and higher

Any clues for this?

 

Thank you

 

Regards

Jose

SAP IQ Edge license conditions

$
0
0

Hi
I know IQ Edge is limited to 4 cores and 1TB.
But is it 1TB of raw input data or 1TB or database compressed data?
Also the 4 core limit. Can these be virtual cores on a virtual machine. So the virtualization host machine can have more than 4 cores?

 

Thank you in advance!

ODBC driver for sap iq database Download link

$
0
0

Please provide direct link to download odbc driver for Sybase IQ database.

My database server is Windows server 2008 Standard x64 and I am testing in Windows 7 x64.

Please provide for both.

Exclude special G\l accounts from f.27

$
0
0

Hi Gurus,

 

We have an issue with tcode f.27. We are trying to print an account statement, but we have an uncorrected balance.

In fact in FBL5N we display a special G\L account line item and we don't want it on our output.

How can we exclude this Special G\l account line item from the printing?

 

Thank you in advance,

 

Kind regards

 

Luca

Viewing all 716 articles
Browse latest View live


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