Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • on IBM-AIX for display Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • cp_filesystem.sql Oracle
  • setting prompt display with .profile Linux/Unix
  • Backup and Recovery Scenarios Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • New OFA for 11g Oracle
  • Ports used by Oracle Software Oracle
  • OEM-Commnds Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • GSQ.sql Oracle
  • find_idle_cpu.sql Oracle
  • Absolute file number and relative file number Oracle
  • Check Oracle installed products using one command Oracle
  • Locktree.sql Oracle

login.sql

Posted on 02-Aug-2005 By Admin No Comments on login.sql

REM Author : Paresh Mehta

REM Created : June 4, 2004

REM Purpose : Change the look of sql prompt (for 9i).

set echo off

set numwidth 9

set linesize 100

set pagesize 24

Set head off

set time on

set timing on

define _PVMUSRNM=””

column USERNAME new_value _PVMUSRNM;

column name new_value _PVMDBSTR;

select username from user_users;

select name from v$database;

set SQLPROMPT ‘&_PVMUSRNM@&_PVMDBSTR:-> ‘

Oracle, SQL scripts

Post navigation

Previous Post: block_ident.sql
Next Post: tab.sql

Related Posts

  • Histogram information Oracle
  • switchover for primary database Oracle
  • Jai Shree Ram Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • arch_configUOCIOTTO.ora Oracle
  • Mutating Table Error while using database trigger Oracle
  • ORACLE_SID in sqlplus Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • SAN Linux/Unix
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Changing default shell Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme