Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Library cahe Latches and internal explaination Oracle
  • Nice notes on wait events Oracle
  • Paste command syntax Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • arch_configUOCIOTTO.ora Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Oracle 11g Training on 29JAN1010 Oracle
  • Caching sequence in Memory Oracle
  • grep multuple patterns Linux/Unix
  • sesswait.sql Oracle
  • chk_space_SID.ksh Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix

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

  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • db_status.sql Oracle
  • Kill a session dynanically using execute immediate Oracle
  • oradebug ipcrm ipcs 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • telnet listening Linux/Unix
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Find All internal Parameters Oracle
  • TRUNCATE Privs Oracle
  • scripts to take listener.log backup Linux/Unix
  • Changing default shell Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme