Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • How to know current SID Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Good RAC & Standby Notes Oracle
  • get_vmstat_linux Oracle
  • create a folder in multiple places Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • To see mem usage and CPU usage system wide. Linux/Unix
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • TNSNAMES entries details Oracle
  • Directory wise folder wise space usage Linux/Unix
  • arch_configUOCIOTTO.ora 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

  • Important Script Method for tuning Oracle
  • standard Monitoring – 1 Oracle
  • Kill a session dynanically using execute immediate Oracle
  • All About oracle password and security from metalink Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • True Session Wait Activity in Oracle 10g Verygood 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
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Generating XML from SQLPLUS Oracle
  • Paste command syntax Linux/Unix
  • crontab syntax Linux/Unix
  • USE_NL and INDEX hints example Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • Sequence Resetting Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme