Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Running a query from remote Comp and saving results

Running a query from remote Comp and saving results

From: <harishkasuganti_at_gmail.com>
Date: 5 Oct 2005 13:23:29 -0700
Message-ID: <1128543809.365358.281660@o13g2000cwo.googlegroups.com>


Hi,
I need to run a simple select query from my desktop and save the results in a text file on my desktop. I am planning on setting it up as a scheduled task in windows.

I tried using the following
echo exec dbms_output.putline(desc campaign_0_A) >> C:\test.txt; | sqlplus username/pwd_at_DBSERVER

But, it puts out the text 'desc campaign_0_A' in the output file test.txt. Can I use dmbs_output command to do this? Or something else?

any suggestion greatly appreciated.

TIA Received on Wed Oct 05 2005 - 15:23:29 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US