Complex Queries in SQL
Complex Queries in SQL
Oralce SQL *Plus in windows though not widely preferred interface doing
database operation, still people use it ,especially beginners.But the problem with
this interface is that even if you change the default properties like linesize and
pagesize ( which is very much required to set the right formatting the output SQL
* Plus produces) to your preferred size for your convenience , it won't persists the
change once you restart it. I saw many students including me getting frustrate
issuing same command every time they start SQL*Plus.
The glogin.sql is a file which executes while the SQL *Plus starts. And is located
in $OracleHome/sqlplus/admin folder. In my case it is in
C:\oracle\product\10.1.0\db_1\sqlplus\admin folder. You can issue your favorite
sql command inside it which you want to execute when SQL *Plus starts
1.set pagesize 100;
2.
3.set linesize 100;
I have added the value 100 , which suits my need. You can have yours preferred
size. You can even add any other sql query you want to.
After saving the file you restart SQL *Plus, to see the effect.
This works in Windows Oracle 10.1.0 , try this even if you have different version
or environment.