Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • find_longsql.sql Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • Drop tempfiles from database Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Implementation of key based authentications Linux/Unix
  • get_aix_vmstat.ksh Oracle
  • set_env_dba Linux/Unix
  • TNSNAMES entries details Oracle
  • chk_space_SID.ksh Linux/Unix
  • Goog notes on X$ tables Oracle
  • Database logon trigger issue Oracle
  • Rman Notes -1 Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • good note for shared pool tunnig 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

  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • DBMS_SQL for alter session. Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Oracle Internal Good Websites 1 Oracle
  • import-export with multiple files Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • upload.html PHP/MYSQL/Wordpress
  • oracle_env_10g_CADEV Linux/Unix
  • create database syntax Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Insert cause enqueue locks Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme