Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to avoid @ for running a sql query in sqlplus

KunwarJun 19 2012 — edited Jun 20 2012
Hi friends,

Is there a way to avoid typing @ for the execution of every sql script in the database. Maybe playing around with the login.sql or something.

I am bored of typing shift+@ every execution of running any of my scripts(i have nearly 3000 scripts) :(. May sound like a request from a lazy guy , but still can anyone please suggest some solution.??

like instead of
14:12:04 sa@TESTDB> @active


                                                                 Client                                                 last
   SID   SER# LOGON_AT        USERNAME   OSUSER     MACHINE      PID      MODULE               PROGRAM    SQL_ID        call et
------ ------ --------------- ---------- ---------- ------------ -------- -------------------- ---------- ------------- -------------
   225      1 17-jun 07:00               oracle     tkxti019      4543                          oracle@tkxt                 55h 11m 43s
   224      1 17-jun 07:00               oracle     tkxti019      4651                          oracle@tkxt                 55h 11m 43s
   223      1 17-jun 07:00               oracle     tkxti019      4708                          oracle@tkxt                 55h 11m 43s
something like below is needed
 14:12:05 sa@TESTDB> active
   
   
                                                                    Client                                                 last
   SID   SER# LOGON_AT        USERNAME   OSUSER     MACHINE      PID      MODULE               PROGRAM    SQL_ID        call et
------ ------ --------------- ---------- ---------- ------------ -------- -------------------- ---------- ------------- -------------
   225      1 17-jun 07:00               oracle     tkxti019      4543                          oracle@tkxt                 55h 11m 43s
   224      1 17-jun 07:00               oracle     tkxti019      4651                          oracle@tkxt                 55h 11m 43s
   223      1 17-jun 07:00               oracle     tkxti019      4708                          oracle@tkxt                 55h 11m 43s
Thanks,
Kunwar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2012
Added on Jun 19 2012
7 comments
323 views