Sponsored Content
Top Forums Shell Programming and Scripting Oracle 11g script read from file in where clause (RHEL 5.7) Post 302883111 by gacanepa on Friday 10th of January 2014 09:23:33 PM
Old 01-10-2014
durden_tyler,
I don't have words to thank you enough for such a detailed answer, for the SQL*PLUS documentation and for the perl script.
Being a sysadmin, this wasn't actually my responsibility, but the DBA's to come up with the right query that I could use in a shell script (which in turns, formats the results of a set of queries in html and sends the output via email). That is why my user does not have sufficient privileges to use sqlldr, create a view (another thing I thought of) or a temporary table.
Anyway, I was glad that this guy finally came up (or found in his docs) the right query to use with SQL*PLUS.
I am glad I submitted the post because I got such excellent answers.
Thanks again and look forward to learning more from Yoda, Robin, and you!
 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Switching user to oracle to connect Oracle 11g DB with 'sysdba'

I need to connect my Oracle 11g DB from shell script with 'sysdba' permissions. To do this I have to switch user from 'root' to 'oracle'. I've tried the following with no success. su - oracle -c "<< EOF1 sqlplus -s "/ as sysdba" << EOF2 whenever sqlerror exit sql.sqlcode;... (2 Replies)
Discussion started by: NetBear
2 Replies

2. UNIX for Beginners Questions & Answers

ksh scripts migrating(Oracle 11G) from Solaris Sparc 10 to RHEL 7

Hi All, Now we are migrating oracle 11G from Solaris Sparc 10 to RHEL 7. We have 1000+ ksh scripts.. Could you please let em know what would be the best way to use exiting scripts in RHEL with minimal changes,. my concern was "Is it all Solaris command work in RHEL". (3 Replies)
Discussion started by: mssprince
3 Replies
All times are GMT -4. The time now is 02:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy