How to get database size in DB2?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jerry8huang@gmail.com

    How to get database size in DB2?

    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

    #2
    Re: How to get database size in DB2?

    On Oct 30, 7:53 am, jerry8hu...@gma il.com wrote:
    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

    Comment

    Working...