I am writing a bacth file which is as below.

SVRMGRL
CONNECT internal/oracle@aaaa
select * from v$database

But as soon as SVRMGRL it doesn't type the next command
How to reslove this..?
Please help

Thanks
Harry