Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle 10g for solaris 10 Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • ipcs -l Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • GSQ.sql Oracle
  • PLSQL Table Syntax 1 Oracle
  • Formatter Explain plan Output 1 Oracle
  • find_idle_cpu.sql Oracle
  • process id based files and processes Linux/Unix
  • Temporary tablespace explaination Oracle
  • Roles and Stored Procs II Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • Find_planinfo.sql Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle

ORACLE_SID in sqlplus

Posted on 02-Aug-2005 By Admin No Comments on ORACLE_SID in sqlplus

PURPOSE

=========

To document one of the features of spooling in SQL*Plus. This article

explains the behavior of “@” when used in the spooled file name.

I checked for Unix and its working fine.

This is an undocumented behavior of 10g sqlplus.

How is “@” interpretted when used in spooled file name?

========================================================

When you spool output to file with “@” included in the file name, the “@” is

replaced with ORACLE_SID value.

For example:

SQL> spool c:aaa@aaa.txt

SQL> select sysdate from dual;

SYSDATE

———

28-SEP-02

SQL> spool off;

If ORACLE_SID= ora9ir2 in this environment, then the spool file created

will be aaaora9ir2aaa.txt.

Oracle, SQL scripts

Post navigation

Previous Post: compile_inv.sql
Next Post: myfile

Related Posts

  • Jai Shree Ram Oracle
  • normal maintenance for exp-imp and renaming table Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Caching sequence in Memory Oracle
  • Configure ssh authentications for RAC Oracle
  • myfile Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (394)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • For Search and replace unix command. Linux/Unix
  • Roles and Stored Object behaviour Oracle
  • Backup and Recovery Scenarios Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • how to find OS block size Oracle
  • find_longsql.sql Oracle
  • shutdown linux Linux/Unix
  • Find Plan Hash value fphv.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme