Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 03:34 PM
Bret Schuhmacher
 
Posts: n/a
Default Sysprocbody is full - how to get more space???

Hello all - I'm new to Informix and I can't find an answer to this simple
question:

I'm trying to add stored procedures and I'm getting this error:

312: Cannot update system catalog (sysprocbody).
131: ISAM error: no free disk space

What I've read says I need to add more space, so I've run the following:

onspaces -c -d test_poc_dat -p c:\IFMXDATA\test_poc\test_poc_dat.002 -s
10240 -o 0

and

onspaces -c -d rootdbs_dat -p c:\IFMXDATA\test_poc\rootdbs_dat.002 -s 10240
-o 0

I'm still getting the error. Was I supposed to add the space to a different
dbspace? I don't have any more (I don't think). Was I supposed to add a
chunk instead or something? Do I have to add the dbspace to the oncfg file
or something?

Can one of you Informix gurus lend a hand, please?

Thanks,

Bret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 03:34 PM
Jonathan Leffler
 
Posts: n/a
Default Re: Sysprocbody is full - how to get more space???

On May 15, 7:17 pm, "Bret Schuhmacher" <b...@thelastmilellc.com>
wrote:
> Hello all - I'm new to Informix and I can't find an answer to this simple
> question:
>
> I'm trying to add stored procedures and I'm getting this error:
>
> 312: Cannot update system catalog (sysprocbody).
> 131: ISAM error: no free disk space


So, you need to add more space to the dbspace in which you created the
database where you're failing to a new procedure - most likely, that's
the root dbspace (probably called rootdbs), but it isn't certain. You
will also run into problems adding new data to the database unless the
tables are located in a separate dbspace.

> What I've read says I need to add more space, so I've run the following:
>
> onspaces -c -d test_poc_dat -p c:\IFMXDATA\test_poc\test_poc_dat.002 -s
> 10240 -o 0
>
> and
>
> onspaces -c -d rootdbs_dat -p c:\IFMXDATA\test_poc\rootdbs_dat.002 -s 10240
> -o 0


Those create new dbspaces.

> I'm still getting the error. Was I supposed to add the space to a different
> dbspace? I don't have any more (I don't think). Was I supposed to add a
> chunk instead or something? Do I have to add the dbspace to the oncfg file
> or something?


You need to add an extra chunk to the root dbspace. You also need to
do an archive after adding the chunk - if the data in the system will
matter. If it is a throwaway instance (are you sure?), you can
archive to /dev/null (NUL: on Windows).

Consider dropping the two new chunks since you probably don't need
them any more.

Then use 'onspaces -a' to add the chunk.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 03:34 PM
Bret Schuhmacher
 
Posts: n/a
Default Re: Sysprocbody is full - how to get more space???

Thanks very much, Jonathan! I think I've done what you recommended, but I'm
still getting the same error. I did the following:

onspaces -a rootdbs_dat -p c:\IFMXDATA\test_poc\rootdbs_dat.003 -s 10240 -o
0
onspaces -a test_poc_dat -p c:\IFMXDATA\test_poc\test_poc_dat.003 -s 10240
-o 0

onbar -b -L 0 -w

That should've done a whole system level 0 archive, right?

I restarted IDS (couldn't get in with dbaccess after all that)

tried to add my storedproc in dbaccess, got the same error:
312: Cannot update system catalog (sysprocbody).
131: ISAM error: no free disk space


I'm pretty sure the rootdbs is what I want to augment - I have the following
in my oncfg.test_poc
ROOTNAME rootdbs # Root dbspace name
ROOTPATH C:\IFMXDATA\test_poc\rootdbs_dat.000 # Path for device containing
root dbspace
ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
ROOTSIZE 64000 # Size of root dbspace (Kbytes)


Thanks for your patience helping out a newbie :-).

Rgds,

Bret
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 03:34 PM
Art S. Kagel
 
Posts: n/a
Default Re: Sysprocbody is full - how to get more space???

Bret Schuhmacher wrote:
> Thanks very much, Jonathan! I think I've done what you recommended, but I'm
> still getting the same error. I did the following:


Please post the following:

onstat -d

Output from the following select:

dbaccess sysmaster - <<EOF
select dbsname, tabname, st.partnum, hex(st.partnum), nextns,
name as dbspace
from systabnames st, sysptnhdr sp, sysdbspaces sd
where st.partnum = sp.partnum
and sd.dbsnum = (st.partnum / 1048576)
and dbsname = 'your database name'
and tabname = 'sysprocbody'
;
EOF

Art S. Kagel

> onspaces -a rootdbs_dat -p c:\IFMXDATA\test_poc\rootdbs_dat.003 -s 10240 -o
> 0
> onspaces -a test_poc_dat -p c:\IFMXDATA\test_poc\test_poc_dat.003 -s 10240
> -o 0
>
> onbar -b -L 0 -w
>
> That should've done a whole system level 0 archive, right?
>
> I restarted IDS (couldn't get in with dbaccess after all that)
>
> tried to add my storedproc in dbaccess, got the same error:
> 312: Cannot update system catalog (sysprocbody).
> 131: ISAM error: no free disk space
>
>
> I'm pretty sure the rootdbs is what I want to augment - I have the following
> in my oncfg.test_poc
> ROOTNAME rootdbs # Root dbspace name
> ROOTPATH C:\IFMXDATA\test_poc\rootdbs_dat.000 # Path for device containing
> root dbspace
> ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
> ROOTSIZE 64000 # Size of root dbspace (Kbytes)
>
>
> Thanks for your patience helping out a newbie :-).
>
> Rgds,
>
> Bret

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 03:34 PM
Bret Schuhmacher
 
Posts: n/a
Default Re: Sysprocbody is full - how to get more space???

Here's onstat -d output:

IBM Informix Dynamic Server Version 10.00.TC6TL -- On-Line -- Up 00:57:17
-- 21568 Kbytes

Dbspaces
address number flags fchunk nchunks pgsize flags owner
name
0C6297E8 1 0x60002 1 2 4096 M B informix
rootdbs
0C71C8B0 2 0x60002 2 1 4096 M B informix
wegmans_poc
0C71CA10 3 0x68002 3 1 4096 M SB informix
sbspace
0C71CB70 4 0x60005 4 1 4096 ND B informix
rootdbs2
0C71CCD0 5 0x60001 6 2 4096 N B informix
wegmans_poc_dat
0C71CE30 6 0x60001 7 2 4096 N B informix
rootdbs_dat
6 active, 2047 maximum

Chunks
address chunk/dbs offset size free bpages flags
pathname
0C629948 1 1 0 12800 6594 PO-B
C:\IFMXDATA\wegmans_poc\rootdbs_dat.000
0C629AC8 1 1 0 12800 0 MD-B
E:\IFMXDATA\wegmans_poc\rootdbs_mirr.000
0C72D6A0 2 2 0 12800 3 PO-B
C:\IFMXDATA\wegmans_poc\wegmans_poc_dat.000
0C71C430 2 2 0 12800 0 MD-B
E:\IFMXDATA\wegmans_poc\wegmans_poc_mirr.000
0C72D820 3 3 0 12800 11873 11879 POSB
C:\IFMXDATA\wegmans_poc\sbspace_dat.000
Metadata 868 554 868
0C71C5B0 3 3 0 12800 0 MDSB
E:\IFMXDATA\wegmans_poc\sbspace_mirr.000
0C72D9A0 4 4 0 12500 0 PD-B
\\.\C:\ifmxdata\wegmans_poc\rootdbs_dat.002
0C72DB20 5 1 0 12500 12497 PO-B
\\.\C:\IFMXDATA\wegmans_poc\wegmans_poc_dat.001
0C71C730 5 1 0 12500 0 MO-B \\.\C:
0C72DCA0 6 5 0 2560 2507 PO-B
c:\IFMXDATA\wegmans_poc\wegmans_poc_dat.002
0C72DE20 7 6 0 2560 2507 PO-B
c:\IFMXDATA\wegmans_poc\rootdbs_dat.002
0C629C90 8 6 0 2560 2557 PO-B
c:\IFMXDATA\wegmans_poc\rootdbs_dat.003
0C629E10 9 5 0 2560 2557 PO-B
c:\IFMXDATA\wegmans_poc\wegmans_poc_dat.003
9 active, 32766 maximum

NOTE: The values in the "size" and "free" columns for DBspace chunks are
displayed in terms of "pgsize" of the DBspace to which they belong.

Expanded chunk capacity mode: always




I had trouble with the query, so I pared it down to retrieve more results
(i.e. removed the where clause)
select dbsname, tabname, st.partnum, hex(st.partnum), nextns,
name as dbspace
from systabnames st, sysptnhdr sp, sysdbspaces sd
where st.partnum = sp.partnum
and sd.dbsnum = (st.partnum / 1048576)

Here's the query output:
no rows



At this point I'm feeling pretty hosed. I don't need *ANYTHING* in my
instance. What's the easiest way to remove EVERYTHING and add a new dbspace
to get going again? Can I use the onspaces -d to remove each dbspace, then
create a dbspace and start over? I'm sure there are many system stored
procedures that I don't want to get rid of... would it be easier to
completely remove Informix, delete IFMXDATA and reinstall? This is a test
instance I set up to try something and it's taking way too long :-(.

Thanks for your assistance!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 03:34 PM
John Carlson
 
Posts: n/a
Default Re: Sysprocbody is full - how to get more space???

On Wed, 16 May 2007 14:56:24 GMT, "Bret Schuhmacher"
<bret@thelastmilellc.com> wrote:

>Here's onstat -d output:
>
>IBM Informix Dynamic Server Version 10.00.TC6TL -- On-Line -- Up 00:57:17
>-- 21568 Kbytes

.... onstat -d output clipped . ..

>
>I had trouble with the query, so I pared it down to retrieve more results
>(i.e. removed the where clause)
>select dbsname, tabname, st.partnum, hex(st.partnum), nextns,
> name as dbspace
>from systabnames st, sysptnhdr sp, sysdbspaces sd
>where st.partnum = sp.partnum
> and sd.dbsnum = (st.partnum / 1048576)
>
>Here's the query output:
>no rows
>


That seems a bit odd.

>
>
>At this point I'm feeling pretty hosed. I don't need *ANYTHING* in my
>instance. What's the easiest way to remove EVERYTHING and add a new dbspace
>to get going again? Can I use the onspaces -d to remove each dbspace, then
>create a dbspace and start over? I'm sure there are many system stored
>procedures that I don't want to get rid of... would it be easier to
>completely remove Informix, delete IFMXDATA and reinstall? This is a test
>instance I set up to try something and it's taking way too long :-(.
>
>Thanks for your assistance!


Here's a quick primer . . .

When a database is created, the dbspace it's created in will contain
various system tables. Apparently, the dbspace that contains these
tables is full. Since the dbspace that holds the database isn't
clear, please answer the following questions.

1. What is the database name?

2. One way to determine the dbspace is to go into onmonitor (not sure
if it's still there in the Windows stack). Choose (S) for status and
(D) for databases ( I think, as I don't have access to an informix
instance at this time.). The database that contains the stored
procedures should show up, and with it, the dbspace that the database
is located in.

3. Depending on the Informix release level, you could also do:
Go into 'dbaccess' using the database name --
dbaccess your_database_name_here

Use the following select
select dbinfo("dbspace", partnum)
from systables
where tabname = "sysprocbody"

4. Another way to find the dbspace could also be
dbaccess sysmaster

select tabname, dbinfo("dbspace", partnum)
from systabnames
where dbsname = "(your db name here)"
and tabname = "sysprocbody"

JWC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852