Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • Proc Compilation Oracle
  • Drop tempfiles from database Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • Processes Parameter decision Oracle
  • Updated LCK.SQL file. Oracle
  • load SPM baseline from cursor cache Oracle
  • CPU speed on solaris Linux/Unix
  • Add new columns in dataframe Python/PySpark
  • tblwopk.sql tablewopk.sql Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Caching sequence in Memory Oracle
  • ORA-01220 Oracle
  • get_vmstat_linux 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

  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • track_autoupgrade_copy_progress.sql Oracle
  • Rownum with Order by Oracle
  • Oracle 10g Installation/Applying Patches Tips 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 (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • scp with ssh2 Linux/Unix
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • How to find password change date for user Oracle
  • Removing Blank lines from file using grep Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme