Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Rename Oracle Instance Name Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • Debugging Shell FIles Linux/Unix
  • Backup and Recovery Scenarios Oracle
  • Python class import from different folders Python/PySpark
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • Difference between SYNC and AFFIRM Oracle
  • Renaming the column name Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • Find nth max and min. Oracle
  • logminer and my_lbu Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Oracle 10g for solaris 10 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

  • DBMS_Shared_pool pinning triggers Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • First Entry in RAC Oracle
  • Good links for x$ tables in oracle. Oracle
  • ORACLE_SID in sqlplus 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
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • purge_trc.sh Linux/Unix
  • Temporary tablespace explaination Oracle
  • For Search and replace unix command. Linux/Unix
  • Optimizer SORT Operations Oracle
  • Privilege to describe the table. Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • checking redhat linux version Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme