1- If SGA_TARGET is specified then SHARED_POOL_SIZE (among others) will be automatically sized.

2- Have you traced the query?