|
|
Re: How to create Text file on local machine [message #364569 is a reply to message #364567] |
Tue, 09 December 2008 02:24   |
dr.s.raghunathan
Messages: 540 Registered: February 2008
|
Senior Member |
|
|
hi,
similar question raised by some other person too. There he expressed his inability to write text file using sqlldr in the client environment (local machine) and he is able to do that in the server
shekar please give some more information about your need.
yours
dr.s.raghuanthan
|
|
|
Re: How to create Text file on local machine [message #364571 is a reply to message #364569] |
Tue, 09 December 2008 02:32   |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
Creating text files on your client is something that is done by the local client software.
SQL*PLus has SPOOL to output to local files.
Oracle Forms has the Text_IO package to do it
The solution depends entirely on what local software you are running.
|
|
|
|
|
|
|
Re: How to create Text file on local machine [message #364827 is a reply to message #364811] |
Wed, 10 December 2008 03:29   |
panyam
Messages: 146 Registered: May 2008
|
Senior Member |
|
|
Hi shekar,
using Sqlldr you can load the data ( of text file ) to the database.
C:\Documents and Settings\rp47976>sqlldr system/oracle
control = C:\nis_ctl.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Wed Dec 10 14:53:34 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 6
SQL> select * From tt;
NAME SALES
---------- ----------
John 10
Jennifer 15
Stella 20
Sophia 40
Greg 50
Jeff 20
6 rows selected.
SQL>
|
|
|
|
Re: How to create Text file on local machine [message #364882 is a reply to message #364565] |
Wed, 10 December 2008 05:57   |
cookiemonster
Messages: 13972 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Tell your boss(es) to stop being so ridiculous?
PL/SQL runs in the Database.
Consequently it can ONLY access files on the database server.
You need to either use some other tool - sqlloader being an obvious choice, or get that file onto the database server.
|
|
|
Re: How to create Text file on local machine [message #364915 is a reply to message #364882] |
Wed, 10 December 2008 07:59  |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
cookiemonster wrote on Wed, 10 December 2008 06:57 |
You need to either use some other tool - sqlloader being an obvious choice, or get that file onto the database server.
|
Or...
Tell your boss to stop telling you how to do your job unless they want you to tell them how to do their job
|
|
|