Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Facts about SCN and Rollback Segment Oracle
  • Formatter Explain plan Output 1 Oracle
  • Vivek Tuning for Row Locks. Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • find_longsql.sql Oracle
  • shutdown linux Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix
  • Specify the Rollback segment to use in Transaction Oracle
  • ORA-01220 Oracle
  • find_idle_cpu.sql Oracle
  • How to change hostname in Linux Linux/Unix
  • Unix split command to split files Linux/Unix
  • Changing default shell Linux/Unix
  • Proc code Oracle
  • Multiple listeners Oracle

refre.sql

Posted on 02-Aug-2005 By Admin No Comments on refre.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: ext#.sql
Next Post: eplan.sql

Related Posts

  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • lck.sql Oracle
  • Generating XML from SQLPLUS Oracle
  • DBMS_STATS Metalinks Notes Oracle
  • executing Function from SQLPLUS prompt 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • newupload.html PHP/MYSQL/Wordpress
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Getting started with notebook Python/PySpark
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • chk_space_SID.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme