Shell script with Oracle PL/SQL


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell script with Oracle PL/SQL
# 1  
Old 09-21-2013
Shell script with Oracle PL/SQL

Hi Gurus,

I am new to this unix world...I need your help to walk through.

I want to learn shell scripting..... The shell script which can be able to use with oracle pl/sql...
So please suggest me which shell is good.

Which Unix/Linux version is good for this to Install to get practice the script.
[Is puppy Linux suite for this - give me a clear idea].

Even after Installation of the Unix/Linux OS, do I need to install the shell separately.

Please guide me and suggest me the study materials of shell scripting.

Also send me the study guides to my mailaddress
<email address removed>

Thanks In Advance,
Ganesh

Last edited by Scott; 09-21-2013 at 04:10 AM.. Reason: Please DO NOT post your email address
# 2  
Old 09-21-2013
Quote:
Originally Posted by GaneshAnanth
I want to learn shell scripting..... The shell script which can be able to use with oracle pl/sql...

So please suggest me which shell is good.
It doesn't matter what shell you use. PL/SQL runs inside SQL*Plus, which is a separate program and has nothing to do with the shell.

Quote:
Originally Posted by GaneshAnanth
Which Unix/Linux version is good for this to Install to get practice the script.
[Is puppy Linux suite for this - give me a clear idea].
If you mean for the purposes of practicing with the shell, any mainstream distribution will do. I have no idea what "Puppy Linux" is. For PL/SQL go to the Oracle website to see which Linux distributions they support, then go to the download site for that distribution and fetch a copy. For the purposes of learning shell, or PL/SQL, it doesn't matter which one you chose.

Quote:
Originally Posted by GaneshAnanth
Even after Installation of the Unix/Linux OS, do I need to install the shell separately.
No. Bash is the default shell in Linux. It's a powerful shell, and you don't need to install it. If, for some reason, you'd prefer to use another shell, then you might have to install it. Whatever you do do not start off using the C-Shell.

Quote:
Originally Posted by GaneshAnanth
Please guide me and suggest me the study materials of shell scripting.
There are plenty of resources both here (if you have specific difficulties) or on the internet (for general research).

Quote:
Originally Posted by GaneshAnanth
Also send me the study guides to my mailaddress
<email address removed>
Please, as per the rules you agreed to when you registered, do not post your email address seeking personal responses.
# 3  
Old 09-21-2013
Hey Scott,

Thank you very much..

I will start with Bash as per you advice...I need more advice and help from you in future.

I plan to Install Redhat and need to practice on the basic commands first.

So we can able to do the things in bash what are all possible in other shells also - correct me if I wrong

I don't know why csh is said - so harmful to get the things do.

As a guru I need your help and you please make me to walk on this.

Here is the Puppy link:
http://
puppylinux.org/main/Overview%20and%20Getting%20Started.htm

Thanks,
Ganesh
# 4  
Old 09-23-2013
@scott

Here is the Puppy link:
http://
puppylinux.org/main/Overview%20and%20Getting%20Started.htm
# 5  
Old 09-23-2013
I am also pretty new to this scripting as well. I have found some bash script files from a legacy software. I need to find out the meaning. Could anyone help me regarding the following line:

LOGFILE=/export/home/test/log/test1.log

where and how this log file is being saved and why this line is required to write scripts in UNIX environment?

Very eagerly waiting. Thanking in advance.
# 6  
Old 09-23-2013
@GaneshAnanth. Please do not bump posts if they are not answered promptly.

Please provide more information about your environment. Which OS you are using; is it 32- or 64-bit; do you plan to install Linux on a stand-alone, physical machine, or in a VM; which architecture does the host machine have (32- or 64-bit); how much memory does it have; how many CPU's / cores does it have.

I would start by downloading an ISO image of CentOS (which one depends on answers to the above questions) (I don't know why you'd want to install Oracle on Puppy Linux, or any other cut-down distribution. Stick to what Oracle supports, or at least a rebrand of a popular, fully supported distro.). You can easily find CentOS by searching the internet for it (www.centos.org - The Community ENTerprise Operating System - pick a mirror near you (You're looking for the two DVD images (i.e. like here))).

If you're installing into a VM, point the CD/DVD to the first ISO file (if you're installing it on a physical machine, you may need to burn the ISO to a DVD).

Make sure the machine has around 700MB of memory if you want to use the GUI installer. You'll need about 6GB of diskspace to comfortably install CentOS with the desktop option. The installation process itself is well described along the way. Don't worry about funny stuff like networks, and other software. Just install the OS first, then we can fix it up as you want.

So, it goes something like this:
  • Create a virtual machine with around 700MB of memory and at least 6GB of disk space
  • Connect the ISO image to the CD/DVD (if not asked when creating the VM)
  • Start the VM. If all goes well, you should see "Welcome to CentOS 6.4"
  • Select the first option ("Install or upgrade an existing system")
  • On the next screen, when asked, you can Skip the media test
  • On the next screen, click Next, then...
  • Basic Storage Devices -> Click Next
  • Choose "Yes, discard any data"
  • Enter a hostname -> Click Next
  • Pick a timezone -> Click Next
  • Enter a root password -> Click Next
  • Choose "Use All Space"
  • Choose "Write changes to disk"
  • Choose the type of installation - probably "Desktop" -> Click Next
  • The installation will begin. Click Reboot when asked.

If you need to install some virtualisation software, there's various options. Oracle's VirtualBox is free - there may be others.

On the other hand, if all you really want is to learn shell scripting, or Oracle is already installed on a remote server, install Puppy using the instructions on their website.

@sMark31: Don't 'hijack' others threads. Please create a new one. Thanks.
# 7  
Old 09-23-2013
Thank you Scott.
I have started a new thread name: "Include logfile in scripts".
Could you please reply?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to pass Oracle sql script as argument to UNIX shell script?

Hi all, $ echo $SHELL /bin/bash Requirement - How to pass oracle sql script as argument to unix shell script? $ ./output.sh users.sql Below are the shell scripts and the oracle sql file in the same folder. Shell Script $ cat output.sh #!/bin/bash .... (7 Replies)
Discussion started by: a1_win
7 Replies

2. UNIX for Advanced & Expert Users

Use of Oracle pl/sql in UNIX shell script

Hi, I have basic knowledge on how to write pl/sql code inside shell script. I am looking for more advance thing. Is there any book for that which can just talk about how to write more advance plsql code inside shell script. Please help Thanks!!!!!! (1 Reply)
Discussion started by: diehard
1 Replies

3. Programming

pass value from Oracle sql to Korn shell

Hi All , I am trying to pass a value from sqlplus to korn shell . There is a table tab1 in Oracle that has a column userdate. I need to pass the userdate to the korn shell . This is what I am doing . VALUE=`sqlplus -silent username/password << END set pagesize 0 feedback off verify off... (14 Replies)
Discussion started by: megha2525
14 Replies

4. Shell Programming and Scripting

How to run a SQL select query in Oracle database through shell script?

I need to run a SQL select query in Oracle database and have to capture the list of retrieved records in shell script. Also i would like to modify the query for certain condition and need to fetch it again. How can i do this? Is there a way to have a persistent connection to oracle database... (9 Replies)
Discussion started by: vel4ever
9 Replies

5. Shell Programming and Scripting

Running Oracle SQL from shell script

Hi, can anyone help me with this script please. I need the oracle command to go into the unix batch file. #!/bin/sh # A menu driven Shell script which has following options # for acmtoron@> # # # Exit # As per option do the job #---- while : do clear echo " A C M LOG MONITORING... (0 Replies)
Discussion started by: tinaaguilera
0 Replies

6. Shell Programming and Scripting

How to capture value in shell variable from oracle sql?

Hi Friends, Do someone know how to capture value in a shell variable from oracle sql? Requirement : In a table we want to count the number of records and want to pass this value to a shell variable where it can be manipulated later. In ksh shell we open oracle connection from sqlplus. For... (1 Reply)
Discussion started by: sourabhsharma
1 Replies

7. Shell Programming and Scripting

Calling SQL LDR and SQL plus scripts in a shell script

Hi- I am trying to achieve the following in a script so I can schedule it on a cron job. I am fairly new to the unix environment... I have written a shell script that reads a flat file and loads the data into an Oracle table (Table1) via SQLLDR. This Works fine. Then, I run a nested insert... (5 Replies)
Discussion started by: rajagavini
5 Replies

8. Shell Programming and Scripting

Logging into oracle or SQL from shell script

Hi, I have a shell script where I log on to sqlplus like this log() { sqlplus -s scott/tiger <<! select count(*) from EMP; ! } log Here I have hardcoded/used the username : scott and password : tiger directly to log on to SQLPLUS. If i have my log in information in my profile file... (2 Replies)
Discussion started by: manirsendhil
2 Replies

9. Shell Programming and Scripting

Shell script for accessing a file in the network drive and invoking oracle sql loader

Hi, Please let me know if anybody is having a solution handy for the below tasks... It would be helpful if somebody can resolve my query. I am new to unix and oracle environment and looking for some online reference for completing a task. Task: Check if the network drive exists Check... (0 Replies)
Discussion started by: sayydevara
0 Replies

10. UNIX for Dummies Questions & Answers

how to pass values from oracle sql plus to unix shell script

how to pass values from oracle sql plus to unix shell script (2 Replies)
Discussion started by: trichyselva
2 Replies
Login or Register to Ask a Question