|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Scripts
Hi,
Can anyone direct me to a nice site where i can get scripts such as tablespace usage etc. Thanks. |
|
#2
|
||||
|
||||
|
I don't know of any script sites myself though I'm sure someone out there has written some perl scripts to do what you are looking for. One that I was able to find rather quickly was: http://safariexamples.informit.com/...ts/tbs_usage.pl
But if you look at this script, all it does is call the "list tablespaces show detail" command and redisplay that information. There are a bunch of LIST and GET commands that provide a lot of information that would make either an external script unnecessary or make it easy to write your own if you wanted to rearrange the way the data was presented: http://publib.boulder.ibm.com/infoc...re/r0002004.htm |
|
#3
|
|||
|
|||
|
Hi,
yes there are a lot of scripts but most of them are for unix. in windows it is entirely different: 1. you have to connect to db2cmd and then run the db2 command 2. if you use any of the list commands it does not display on screen. however i've kind a find a workaround using the build in function but and then using the dbd (which is mach better than the list). Thanks, Galit. |
|
#4
|
||||
|
||||
|
For Windows only there are a couple of interesting article on shell scripting on IBM's web site:
http://www-106.ibm.com/developerwor...307fierros.html http://www-106.ibm.com/developerwor...dm-0406fierros/ http://www-106.ibm.com/developerwor...rros/index.html http://www-106.ibm.com/developerwor...ip/0203yip.html |
|
#5
|
||||
|
||||
|
Quote:
Here is one way you can call a sql script from anywhere. You can create a sql script (an example) Code:
connect to your_dsn user your_username using your_password; select * from some_schema.some_table; connect reset; So you could do something like c:\progra~1\SQLLIB\bin\db2cmd "db2 -t -f c:\path\to\scriptfile" and this will run the script. |
|
#6
|
|||
|
|||
|
Hi Joe,
Thanks for the input. i eventually used the function to do what the db2 show commands does. ps. nice dog. how old is he? |
|
#7
|
||||
|
||||
|
Thanks
The female (first picture) is 1 & 1/2 years old. The male (full picture) is 13 months. |
|
#8
|
|||
|
|||
|
Hi Joe,
- babies ... ![]() |
|
#9
|
||||
|
||||
|
Yep, they sure are.
![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > DB2 Development > Scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|