Unix Technical Forum

db2look question

This is a discussion on db2look question within the DB2 forums, part of the Database Server Software category; --> Hi All: I'm learning db2 (migrating from PostgreSQL). I have a quick question about backing up stored procedures (SQL ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 03:10 AM
BarryS
 
Posts: n/a
Default db2look question

Hi All:

I'm learning db2 (migrating from PostgreSQL). I have a quick question
about backing up stored procedures (SQL Only).

I've created a DDL file using db2look and after reviewing the output, I
can see where it defines the "CREATE PROCEDURE", but I don't see the
actual definition of the stored procedure.

Can someone point me in the right direction to backup a SQL Stored
Proccedure.

Thanks,
Barry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 03:10 AM
Ian
 
Posts: n/a
Default Re: db2look question

BarryS wrote:
> Hi All:
>
> I'm learning db2 (migrating from PostgreSQL). I have a quick question
> about backing up stored procedures (SQL Only).
>
> I've created a DDL file using db2look and after reviewing the output, I
> can see where it defines the "CREATE PROCEDURE", but I don't see the
> actual definition of the stored procedure.
>
> Can someone point me in the right direction to backup a SQL Stored
> Proccedure.


SQL Stored Procedures are backed up as part of a normal database backup
(i.e. BACKUP DATABASE).

If you just want to extract the text, see the column TEXT in
syscat.procedures.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 03:10 AM
dotyet
 
Posts: n/a
Default Re: db2look question

you can also have a look at "GET ROUTINE" and "PUT ROUTINE" statements
to export and import SQL procedures in binary format.

refer to documentation for further details...

regards,
dotyet

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 03:11 AM
BarryS
 
Posts: n/a
Default Re: db2look question

dotyet wrote:
> you can also have a look at "GET ROUTINE" and "PUT ROUTINE" statements
> to export and import SQL procedures in binary format.
>
> refer to documentation for further details...
>
> regards,
> dotyet
>


Perfect. Thanks to both of you...

-Barry
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 01:38 PM.


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