Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / October 2008

Tip: Looking for answers? Try searching our database.

How to get database size in DB2?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jerry8huang@gmail.com - 30 Oct 2008 07:53 GMT
The DB2 runs on Redhat, and when I entered following command,

$ db2 call GET_DBSIZE_INFO(?,?,?,0)

I got error like this:

-bash: syntax error near unexpected token `('

anyone could advise, thanks in advance.
Frederik - 30 Oct 2008 13:04 GMT
On Oct 30, 7:53 am, jerry8hu...@gmail.com wrote:
> The DB2 runs on Redhat, and when I entered following command,
>
[quoted text clipped - 5 lines]
>
>  anyone could advise, thanks in advance.

The '(' and ')' characters have a special meaning in Bash. To tell
Bash not to interpret these characters, surround the command by
quotes:

 $ db2 "call GET_DBSIZE_INFO(?,?,?,0)"

You might want to read up on the Bash shell a bit...

Kind regards,

Frederik Engelen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.