07-24-2009
I know how to do for a single .txt file, the fact is, I have to do something like a FOR command for all txt files in that directory, but can I do that???
for a single file I create a procedure.sql with the lines:
exec prc_cargatxt('TESTE_SUPERVISAO','PRECOLETA.1502_17.06.2009_16h19m13s.txt');
/
and in the batch file I put:
sqlplus username/password@dbname @C:\procedure.sql
its working correct, but how to do for all files???
thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
this is urgent..can i run a shell script from store procedure without using java. (8 Replies)
Discussion started by: arnabb4u
8 Replies
2. Shell Programming and Scripting
hai,
can anybody say how to call or to execute an oracle stored procedure in oracle from unix...
thanks in advance.... for ur reply....
by,
leo (2 Replies)
Discussion started by: Leojhose
2 Replies
3. Shell Programming and Scripting
i want to call a oracle function in my shell script (4 Replies)
Discussion started by: dineshr85
4 Replies
4. Shell Programming and Scripting
Here's a shell script snippet.....
cd $ORACLE_HOME/bin
Retval=`sqlplus -s <<eof
$TPDB_USER/april@$TPD_DBCONN
whenever SQLERROR exit 2 rollback
whenever OSERROR exit 3 rollback
set serveroutput on
set pages 999
var status_desc char(200)
var status_code... (1 Reply)
Discussion started by: hidnana
1 Replies
5. Shell Programming and Scripting
Hi
i want to call a oracle stored procedure from unix (using bash shell).
consider this is my oracle stored procedure with parameter
create procedure testproc(name IN varchar, age IN Number, id OUT Number )
AS
begin
id=1;
dbms_output.put.line('successfull validation')
end;... (6 Replies)
Discussion started by: barani75
6 Replies
6. Shell Programming and Scripting
Hi,
Can you assist me in how to redirect the output of oracle stored procedure from unix script?
Something similar to what i did for sybase
isql -U$MYDBLOG -D$MYDBNAME -S$MYDBSVR -P$MYDBPWD -o$MYFILE<< %%
proc_my_test 8
go
%%
Thanks in advance - jak (0 Replies)
Discussion started by: jakSun8
0 Replies
7. Shell Programming and Scripting
Hi Gurus,
Want to execute a shell script from a oracle procedure and get the status of the same, any assistance in this regard will be appreciated.
proc_data.sh is script name which I want to execute from oracle procedure
It should work something like below
procedure test
begin... (1 Reply)
Discussion started by: palanisvr
1 Replies
8. Shell Programming and Scripting
I have written a stored procedure in oracle database, which is having a CLOB OUT parameter. How can i call this stored procedure from shell script and get the CLOB object in shell script variable? (0 Replies)
Discussion started by: vel4ever
0 Replies
9. Shell Programming and Scripting
hi Guys,
is there a way to pass parameter into oracle store procedure by reading date range in file and increment accordingly. Something like this
file.txt
01-JAN-2015
03-JAN-2015
sqlplus -s user/pwd@DB
execute TEST( to_date( '01-JAN-2015, 'dd.mm.yyyy' ), to_date( '03-JAN-2015', ... (1 Reply)
Discussion started by: rohit_shinez
1 Replies
10. UNIX for Beginners Questions & Answers
Here is the shell script which need to trigger a stored procedure and when the record count is 0 then it should capture in the log that 0 duplicate records are found and if it's more than 0 then log with no of records. Also if there is any sqlerror then it should write the same in the log file and... (17 Replies)
Discussion started by: senmng
17 Replies
LEARN ABOUT HPUX
xtmenupopdown
XtMenuPopdown() XtMenuPopdown()
Name
XtMenuPopdown - built-in action for popping down a widget.
Synopsis (Translation Table)
<Event sequence>: XtMenuPopdown([shell])
Inputs
shell An optional argument which specifies the name of the shell to pop down.
Availability
This action is named MenuPopdown prior to Release 4.
Description
XtMenuPopdown is a predefined action procedure which does not have a corresponding public C routine. It can only be invoked from a trans-
lation table. If passed an argument, that argument is interpreted as a shell name, and XtMenuPopdown tries to find the named shell by
looking up the widget tree starting at the parent of the widget in which it is invoked. If it finds a shell with the specified name in the
popup children of that parent, it pops down the shell by calling XtPopdown(); otherwise, it moves up the parent chain as needed. If
XtMenuPopdown gets to the application top-level shell widget and cannot find a matching shell, it generates a warning and returns immedi-
ately. If XtMenuPopdown is called with no argument, it calls XtPopdown() on the widget for which the translation is specified.
Usage
Note that XtMenuPopdown is an action procedure; you cannot call it from C code.
The action name MenuPopdown is a synonym for XtMenuPopdown. Either action can be used to pop down menus or other popup shells.
Popup shells can also be popped down by calling XtPopdown() explicitly, or by using the predefined callback procedure XtCallbackPopdown().
The action XtMenuPopup can be used to pop up a spring-loaded popup from a translation table.
See Also
XtCallbackPopdown(1), XtMenuPopup(1), XtPopDown(1), XtPopup(1), XtPopupSpringLoaded(1).
Xt - Pop Ups XtMenuPopdown()