`
zzhdi
  • 浏览: 76693 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

Storing settings for SQL*PLUS (login.sql and glogi

阅读更多

glogin.sql

Whenever SQL*PLUS starts up, it looks for a file namedglogin.sql under the directory $ORACLE_HOME/sqlplus/admin. If such a file is found, it is read and the containing statements executed. This allows to store settings (such as linesize) accross SQL*PLUS sessions.
New in Oracle 10g: Oracle also reads glogin.sql and login.sql at a connect in sql*plus.

login.sql

Additionally, after reading glogin.sql, sql*plus also looks for a file named login.sql in the directory from where SQL*PLUS was and in the directory that the environment variable SQLPATHpoints to and reads it and executes it. Settings from the login.sql take precedence over settings from glogin.sql
If the restriction level is set to 3, the login.sql is not read.

A common login.sql file

set pagesize 0
set linesize 190
define _editor=gvim

10g

Since Oracle 10g, the login.sql is executed after a connect
This allows to have a prompt that displays the username. For that, the following line must be in the login.sql:

分享到:
评论

相关推荐

    oa源码 大型oa asp.net 源码

    Additionally, it showcases the use of cookies for storing user credentials and the importance of localization in software development. Understanding these components is crucial for anyone working ...

    mongoDB说明文档

    数据结构设计(Structuring Data for Mongo)** 数据结构设计是数据库设计的重要一环,这部分内容提供了关于如何在MongoDB中合理设计数据模型的建议和最佳实践。 ### **38. 设计概览(Design Overview)** 设计...

    HTTP & FTP 返回值大全

    - **220 Service ready for new user**: 服务器准备好为新用户提供服务。 - **221 Service closing control connection**: 关闭控制连接。 - **225 Data connection open**: 数据连接打开。 - **226 Closing data ...

    Programming in Emacs Lisp

    Cutting and Storing Text** - 讲解了如何使用Emacs Lisp来剪切和存储文本。 **9. How Lists are Implemented** - 探讨了列表在Emacs Lisp中的实现细节。 **10. Yanking Text Back** - 介绍了如何使用Emacs ...

    常见IIS错误,适合web编程者

    - **403.20 Passport Login Failed**:Passport登录失败,IIS 6.0特有。 - **404 Not Found**:请求的资源不存在。 - **404.0 Not Found**:找不到文件或目录。 - **404.1 Cannot Map URL to File**:无法将URL...

    深入浅出JavaScript 4th.Edition(英文原版)

    - **循环结构**:讲解while循环、for循环等循环控制结构的使用方法。 - **函数定义与调用**:介绍如何定义函数、传递参数、返回值等基本概念,并讨论高阶函数的应用。 **4. Common Mistakes, Debugging, and ...

    Oracle Database 10g PL-SQL Programming

    - **SQL*Plus**: A command-line tool for interacting with the Oracle database, executing SQL commands, and running PL/SQL scripts. - **JDeveloper**: An integrated development environment (IDE) provided...

    DevArt dbForge Studio for SQL Server Enterprise Edition 5.0.337

    dbForge Studio for SQL Server is a powerful IDE for SQL Server management, administration, development, data reporting and analysis. The tool will help SQL developers to manage databases, speed up ...

    Rails.Angular.Postgres.and.Bootstrap.2nd.Edition

    Embrace the full stack of web development, from styling with Bootstrap, building an interactive user interface with Angular 2, to storing data quickly and reliably in PostgreSQL. With this fully ...

    cirris operation manual

    This manual serves as a comprehensive guide for the Cirris 1100H+ tester, outlining its setup and usage procedures. It is designed to assist users in understanding the functionalities of the tester, ...

    IRM.Press,.Video.Data.Management.and.Information.Retrieval.pdf

    Based on the given information from the file "IRM.Press,.Video.Data.Management.and.Information.Retrieval.pdf", we can derive several key points and concepts related to video data management and ...

    商业编程-源码-access源代码 storing_paintbrush_in_accessdb.zip

    而VBA(Visual Basic for Applications)允许用户编写更复杂的程序来扩展Access的功能。在这个项目中,可能包含了宏或VBA代码,用于实现业务逻辑,如自动计算库存、验证输入数据等。 7. **数据导入导出**:Access...

    Sql for mysql

    1.2 Database, Database Server, and Database Language. . . . . . . . . 4 1.3 The Relational Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4 What Is SQL? . . . . . . . . . ...

    IIS 7.5配置参考手册

    Internet Information Services (IIS) 7 and later use an XML-based configuration system for storing IIS settings which replaces the metabase that was used in IIS 6.0 and earlier. This new configuration ...

    PhoneGap 3.x Mobile Application Development Hotshot.2014.pdf

    - Storing data locally using SQLite and WebSQL databases. - Retrieving and displaying data from remote servers using AJAX requests and JSON. 6. **Optimizing Performance** - Techniques for ...

    关于jsp的简介以及优点和缺点

    JSP's performance can be impacted due to the need to keep class files in memory, which may lead to higher resource usage, especially in terms of memory and disk space for storing .java and .class ...

    android 经典教程

    数据存储与检索(Storing and Retrieving Data)** - **文件系统访问**:教授如何利用Android内置API来读写文件,包括内部存储和外部存储的操作方法。 - **SQLite数据库应用**:详细介绍了SQLite数据库的使用方法...

Global site tag (gtag.js) - Google Analytics