Problem while calling Oracle 10g SQLPLUS files


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problem while calling Oracle 10g SQLPLUS files
# 1  
Old 04-30-2007
Lightbulb Problem while calling Oracle 10g SQLPLUS files

Hi all,

Iam facing a lot of problem while calling Oracle 10g SQLPLUS files from shell.
What is the standard procedures to be taken care.

Any help would be useful for me.

Thanks in advance,
Ganapati.
# 2  
Old 04-30-2007
Code:
tablename="TAB"
spoolfile="myfile.txt"
sqlplus user/pwsd -s<<EOF
spool "$spoolfile"
select * from "$tablename";
exit
EOF

Here document.
# 3  
Old 05-01-2007
Lightbulb

But for Oracle 10g, our job is using "SQLPLUS.SH".

What is the syntax to use "SQLPLUS.SH". Also I've to store the result of this SQLPLUS call to one variable.

RESULT=`sqlplus.sh -s $USERID_PASSWORD $SQLFILE $PARAMETER`

In the above case Iam not able to assign the result to variable and also not able to use -s option.

Could you pls suggest.

Ganapati.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Oracle/SQLPlus help - ksh Script calling .sql file not 'pausing' at ACCEPT, can't figure out why

Hi, I am trying to write a script that calls an Oracle SQL file who in turns call another SQL file. This same SQL file has to be run against the same database but using different username and password at each loop. The first SQL file is basically a connection test and it is supposed to sort... (2 Replies)
Discussion started by: newbie_01
2 Replies

2. AIX

Oracle 10g on AIX7

Hi, anyone know if Oracle Database 10g is AIX 7 certified??? thanks in advance. Regards. Mario (2 Replies)
Discussion started by: Zio Bill
2 Replies

3. Solaris

How can i install oracle 10g on x86

Please guide me to install oracle 10g in x86 machine running solaris10. I tried the method that is distributed with the Oracle cd, but i finds it to be too complicated for me to complete. Please help. (2 Replies)
Discussion started by: Sesha
2 Replies

4. AIX

oracle 10g on AIX 5

hi can anyone help me by telling step by stem oracle10g installation in AIX 5 . Munir mondolsoft Bangladesh (3 Replies)
Discussion started by: dbamunir
3 Replies

5. UNIX for Advanced & Expert Users

problem connecting to oracle 10g after NCR node reboot

Hi All, I am facing a connection problem with Oracle 10g on Solaris 10 when my application (started by /etc/rc3.d at node reboot) tries to establish a session after reboot of the node where my application is running (NCR UNIX (MP RAS)). I find that my application (run as a deamon process)... (1 Reply)
Discussion started by: sowjanya
1 Replies

6. Solaris

Oracle 10G installation on Solaris 9

Hi Guys, I need to install Oracle 10g on solaris 9, the server is not in cluster. The server is already running applications like OVO and Weblogic. Can you guys please tell me the steps to do this and what paramaters ( Kernal and otherwise) which need to be modified? There will be about 100... (2 Replies)
Discussion started by: nitinkgoud
2 Replies

7. UNIX for Advanced & Expert Users

oracle 10g

I have download Oracle 10g for Solaris and I have configurate environment than I will start runInstaller and I have a messege that my version of solaris is not 5.7 , 5.8 and 5,9 I have 5.10 Solaris version what I shoud do I have download most actuall Oracle databases. (4 Replies)
Discussion started by: Deux
4 Replies
Login or Register to Ask a Question