Solved

glogin

Posted on 2012-12-31
4
365 Views
Last Modified: 2013-01-10
[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..
0
Comment
Question by:walkerdba
4 Comments
 
LVL 34

Expert Comment

by:johnsone
ID: 38732386
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.
0
 
LVL 23

Expert Comment

by:David
ID: 38732849
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.
0
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 500 total points
ID: 38733112
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?
0
 

Author Closing Comment

by:walkerdba
ID: 38765212
yes
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now