If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Store procs and backup question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-04, 12:06
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Store procs and backup question

Hi, Is there a way that I can take a look at all of the stored procedures and trigers in the database

select data from sysprocbody, does not do it, I'm getting a bunch of unreadable characters.

I can not run dbschema -d database name, tables are constantly locked

Also,

Does Informix on NT have the same 2GB limit on backup to disk like it does on unix boxes, if yes, has anybody come up with the way to work around it?

running Informix 7.31TC5 on Win NT box

Appreciate the help
Reply With Quote
  #2 (permalink)  
Old 05-06-04, 15:38
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Hi,

What the proc's : Have you tried dbschema -d <db> -p all

I believe it is all, it could be that is must be between quotes.

What about back-up file size.

Today I worked on an older system (NT 4 / IDS 7.30) that creates backups of 20 GB. Redaing it back, without problems.

Hope this helps,

Rob Prop
Reply With Quote
  #3 (permalink)  
Old 05-06-04, 17:38
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Appreciate the help, will deffinately try the backup

procs is the abreviation for the stored procedure ))

i saw the dbaschema thanks, what i wanted to ask is how to get the triggers.

Tables are always locked and dbschema exits as soon as it finds a locked table
Reply With Quote
  #4 (permalink)  
Old 05-07-04, 08:19
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
trigger iformation is stored in the catalog tables systriggers and systrigbody

The actual triggerbody is stored in the records where the datakey is 'D' (trigger heading or 'A' = trigger body. I tried something like this and it began to look good. You might have to change the query some more.

select a.data || b.data
from systrigbody a, systrigbody b
where a.datakey = 'D'
and b. datakey = 'A'
and a.trigid = b.trigid

systriggers stores the tabid -> unique table id in systables.
This way you can build a qry that represents all te triggers of one table.

What is your problem with locks? dbschema locks the database exclusively while unloading the schema. This is neccessary to be sure to unload the entire DDL in a correct manner.

If you want to unload the procedures, select from sysprocbody only those records where the datakey = 'T' and add the seqnumbers.

In regards of you backup problem. IBM advises to upgrade to IDS 9.40. This version does not have those limits anymore. Another thing you can try is using onbar instead of ontape. only ontape has the limits.
__________________
rws
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On