can we rebuild using catproc in production database.

I am connected properly but as soon as fired query on dba_segment tablespace it get disconneted