glogin

walkerdba
walkerdba used Ask the Experts™
on
[oracle@wtu sqlplus]$ cd admin/
[oracle@wtu admin]$ ls
glogin.sql  help  libsqlplus.def  plustrce.sql  pupbld.sql
[oracle@wtu admin]$ cat glogin.sql
--
-- Copyright (c) 1988, 2005, Oracle.  All Rights Reserved.
--
-- NAME
--   glogin.sql
--
-- DESCRIPTION
--   SQL*Plus global login "site profile" file
--
--   Add any SQL*Plus commands here that are to be executed when a
--   user starts SQL*Plus, or uses the SQL*Plus CONNECT command.
--
-- USAGE
--   This script is automatically run
--
[oracle@wtu admin]$


Is this the expected output..

IF not do you need to run the script again..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
johnsoneSenior Oracle DBA

Commented:
The glogin file is a script that is run every time someone does an initial login through SQL*Plus on the machine.

There is no expected commands in there.  In fact, your file is empty, as all of those lines are comments.

Be aware, that it only applies to logins initiated on that machine.  Any remote login will not run those commands.
David VanZandtOracle Database Administrator III

Commented:
Think of it as a global environment for all users (on that machine).  I commonly set the session arraysize to a higher/better value, to set a common prompt, or to change default tracing.
Database Administrator
Commented:
I usually use this file to change the defaults for: linesize, pagesize, etc.  This file is used by SQL*Plus , but only by SQL*Plus, and since Oracle is encouraging us to move to other applications for most tasks other than starting, stopping or upgrading the database, any commands that you add to this file probably will not get used very often.

What is your question regarding this file?

Author

Commented:
yes

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial