Connecting Tech Pros Worldwide Forums | Help | Site Map

How to get database size in DB2?

jerry8huang@gmail.com
Guest
 
Posts: n/a
#1: Oct 30 '08
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
Guest
 
Posts: n/a
#2: Oct 30 '08

re: How to get database size in DB2?


On Oct 30, 7:53*am, jerry8hu...@gmail.com wrote:
Quote:
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.
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
Closed Thread