Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Encountered invalid logical page '0' while accessing database (TEXT column is null): why?

$
0
0

Bret,

 

FYI in the below samples the source table name has changed (a new one is created for each test run) but it is populated with the same data in each run.

 

1 "  You should probably change S_TEXT TEXT, to S_TEXT TEXT NULL,"

 

Updating the definition of the target table to

    S_TEXT TEXT null,

does not prevent the error:

Encountered invalid logical page '0' while accessing database 'CSCR1839' (6), object 'DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf' (263668956), index 'tDP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf' (255), partition 'tDP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf_263668956' (263668956). This is an internal system error. Please contact SAP Technical Support.

 

2. "What does sp_help on these tables show for "inrowlen"?"

 

"inrowlen" does not appear in the output of " sp_help DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf" or "sp_help SYB_NUMERICS". Is that what you expected me to run?

Full output at end.

 

3. "If not, how were they inserted?"

 

They were inserted using AseBulkCopy.WriteToServer(), with data migrated from Sql Server.

 

4 "Could you post the output from select textptr(Name_TEXT) from dbo.DP2_109_72ba58ce73a3472db8dce74bc54f827b"

 

select textptr(Name_TEXT) from dbo.DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf gives:

No Column Name

0x00000000000000000000000000000000

0x00000000000000000000000000000000

0xAC0300000000000000000000F93F0100

0x00000000000000000000000000000000

 

 

 

Output from sp_help follows:

 

 

 

***********************sp_help DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf

 

  Name Owner Object_type Object_status Create_date

  DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf dbo user table keep first text page Feb  6 2015 10:18AM

 

  Column_name Type Length Prec Scale Nulls Not_compressed Default_name Rule_name Access_Rule_name Computed_Column_object Identity

  Name_NVARCHAR nvarchar  4000 NULL NULL    1             0         0

  RGB int     4 NULL NULL    1             0         0

  RedComponent_INT int     4 NULL NULL    1             0         0

  GreenComponent_INT int     4 NULL NULL    1             0         0

  BlueComponent_INT int     4 NULL NULL    1             0         0

  RedComponent_DEC decimal     9  19   11    1             0         0

  GreenComponent_DEC decimal     9  19   11    1             0         0

  BlueComponent_DEC decimal     9  19   11    1             0         0

  RedComponent_TINYINT tinyint     1 NULL NULL    1             0         0

  RedComponent_SMALLINT smallint     2 NULL NULL    1             0         0

  RedComponent_BIGINT bigint     8 NULL NULL    1             0         0

  RedComponent_BIT bit     1 NULL NULL    0             0         0

  Name_VARCHAR varchar  8000 NULL NULL    1             0         0

  Name_CHAR nvarchar  4000 NULL NULL    1             0         0

  Name_NCHAR nvarchar  4000 NULL NULL    1             0         0

  Name_VARCHARMAX varchar  8000 NULL NULL    1             0         0

  Name_TEXT text    16 NULL NULL    1             0         0

  RedComponent_SMALLMONEY decimal     8  15    7    1             0         0

  RedComponent_MONEY decimal    11  24    7    1             0         0

  Now_DATETIME datetime     8 NULL NULL    1             0         0

  Now_DATETIME2 datetime     8 NULL NULL    1             0         0

  Now_SMALLDATETIME datetime     8 NULL NULL    1             0         0

  Now_DATE datetime     8 NULL NULL    1             0         0

 

  name type partition_type partitions partition_keys

  DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf base table roundrobin         1

 

  partition_name partition_id compression_level pages row_count segment create_date

  DP2_109_c3261ee9d6d5427dbb49b51c0b0f23bf_263668956   263668956 none    1        4 default Feb  6 2015 10:18AM

 

  Partition_Conditions

 

 

  Avg_pages Max_pages Min_pages Ratio(Max/Avg) Ratio(Min/Avg)

  1 1 1 1 1

 

  exp_row_size reservepagegap fillfactor max_rows_per_page identity_gap ascinserts

  0 0 0 0 0 0

 

  concurrency_opt_threshold optimistic_index_lock dealloc_first_txtpg cached_index_root_page

  0 0 0 0

 

 

83 (sp_helpindex) Object does not have any indexes.

127 (sp_helpkey) No defined keys for this object.

457 (sp_helpartition) 

692 (sp_helpartition) 

720 (sp_helpartition) 

1153 (sp_help) Table LOB compression level 0

1188 (sp_help) Lock scheme Allpages

1193 (sp_help) The attribute 'exp_row_size' is not applicable to tables with allpages lock scheme.

1198 (sp_help) The attribute 'concurrency_opt_threshold' is not applicable to tables with allpages lock scheme.

1232 (sp_help)

 

 

 

 

 

***********************sp_help SYB_NUMERICS

 

  Name Owner Object_type Object_status Create_date

  SYB_NUMERICS dbo user table keep first text page Feb  6 2015 10:14AM

 

  Column_name Type Length Prec Scale Nulls Not_compressed Default_name Rule_name Access_Rule_name Computed_Column_object Identity

  S_Name_NVARCHAR nvarchar    50 NULL NULL    1             0         0

  S_RGB int     4 NULL NULL    1             0         0

  S_RedComponent_INT int     4 NULL NULL    1             0         0

  S_GreenComponent_INT int     4 NULL NULL    1             0         0

  S_BlueComponent_INT int     4 NULL NULL    1             0         0

  S_RedComponent_DEC_15_6 decimal     8  15    6    1             0         0

  S_GreenComponent_DEC_18_10 decimal     9  18   10    1             0         0

  S_RedComponent_TINYINT tinyint     1 NULL NULL    1             0         0

  S_RedComponent_SMALLINT smallint     2 NULL NULL    1             0         0

  S_RedComponent_BIGINT bigint     8 NULL NULL    1             0         0

  S_RedComponent_BIT bit     1 NULL NULL    0             0         0

  S_VARCHAR_50 varchar    50 NULL NULL    0             0         0

  S_CHAR_50 char    50 NULL NULL    0             0         0

  S_NCHAR_50 nchar    50 NULL NULL    0             0         0

  S_NCHAR_5 nchar     5 NULL NULL    0             0         0

  S_VARCHARMAX varchar  4000 NULL NULL    0             0         0

  S_TEXT text    16 NULL NULL    1             0         0

  RedComponent_SMALLMONEY smallmoney     4 NULL NULL    1             0         0

  RedComponent_MONEY money     8 NULL NULL    1             0         0

 

  name type partition_type partitions partition_keys

  SYB_NUMERICS base table roundrobin         1

 

  partition_name partition_id compression_level pages row_count segment create_date

  SYB_NUMERICS_167668614   167668614 none    1        0 default Feb  6 2015 10:14AM

 

  Partition_Conditions

 

 

  Avg_pages Max_pages Min_pages Ratio(Max/Avg) Ratio(Min/Avg)

  1 1 1 1 1

 

  exp_row_size reservepagegap fillfactor max_rows_per_page identity_gap ascinserts

  0 0 0 0 0 0

 

  concurrency_opt_threshold optimistic_index_lock dealloc_first_txtpg cached_index_root_page

  0 0 0 0

 

 

83 (sp_helpindex) Object does not have any indexes.

127 (sp_helpkey) No defined keys for this object.

457 (sp_helpartition) 

692 (sp_helpartition) 

720 (sp_helpartition) 

1153 (sp_help) Table LOB compression level 0

1188 (sp_help) Lock scheme Allpages

1193 (sp_help) The attribute 'exp_row_size' is not applicable to tables with allpages lock scheme.

1198 (sp_help) The attribute 'concurrency_opt_threshold' is not applicable to tables with allpages lock scheme.

1232 (sp_help) 

 

 

 

Dave.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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