Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • All Hints for Oracle Databases Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • Load SPM baseline from AWR Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • oracle Dba site Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Query to Generate aggregate on every 30 mins. Oracle
  • SQL_PROFILE – I explaination Oracle
  • process id based files and processes Linux/Unix
  • Library cahe Latches and internal explaination Oracle
  • How to analyze statspack or AWR report. Oracle
  • prepfiles.sh for step by step generating pending statistics files 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

  • How can I tell if ASO is installed ? Oracle
  • Oracle Material from OTN Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Histogram Overview Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • sid_wise_sql.sql Further explaination 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Deleting first line and lastline of a file using sed Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • Exadata Basics Oracle
  • switchlogfile.sh Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • Renaming Oracle Instance Name Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Kernel Parameters for Solaris Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme