473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help urgent Oracle

How can I say if my command is executed succesfully on a shell.

How can I read a file using a shell script. How can I distinguish Row and a Column in that script

How can I handle errors in PL/SQL blocks

How can I extract data into files from scripts

Difference between inner and outer joins

If I did any Oracle optimization How can I tune a Oracle query
Oct 11 '07 #1
1 1287
amitpatel66
2,367 Expert 2GB
1. How can I say if my command is executed succesfully on a shell.

2. How can I read a file using a shell script. How can I distinguish Row and a Column in that script

3. How can I handle errors in PL/SQL blocks

4. How can I extract data into files from scripts

5. Difference between inner and outer joins

6. If I did any Oracle optimization How can I tune a Oracle query
For your question 3,5,6 which are theoritical questions, you could find the information by checking in internet or any book for PLSQL

For your question no 4:

In order to transfer the data in to files in SHell script you can use redirect operator ">" or ">>"
Eg:

ls -l files.txt > a.txt

The above command will transfer the data generated by ls -l command in to file a.txt. The single ">" will over write the file. If the file a.txt does not exist then it creates new one

The operator ">>" is to append the data to the file. This operator also creates new file if the file does not exist!!

For transfer of data using PLSQL check below code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQL> SPOOL c:\a.txt
  3. SQL> <yur query goes here>;
  4. SQL> SPOOL off
  5.  
  6.  
For your Question no 2:

You can make use of SQL LOADER or EXTERNAL TABLES for transfer of data from flat file to oracle database.

ROWS are identified by end of line ie one line of data in the file will be considered as single row

COLUMNS are identified by some delimiter (space,tab,column etc)
Oct 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: WroteForLuck | last post by:
I am trying to write a simple SQL statement which will take a string (startdate) in the format DDMMYYYY and compare it to a date stored in an Oracle database. My SQL is as follows: <% "select...
0
ekekakos
by: ekekakos | last post by:
Hello, I am having a serious and urgent problem with the character settings of an oracle database. The database is sitting in a solaris unix server and when we run the env command we have the...
2
by: rajesh.us.it.recruiter | last post by:
Dear Professionals We have urgent requirements for J2EE, .Net, Siebel-CRM, Oracle Apps, SAP ERP, Mainframe, C++, Unix Professional on H1 Transfer in Bay Area. If you are looking out for a...
1
by: rajesh.us.it.recruiter | last post by:
Hi Guys/Partners, We have a URGENT Requirement for Perl Programmer with H1 visa in India/US for one of our prestigious Client. Location : New Jersey Requirements : Should be very strong in...
3
by: optionsindia | last post by:
hi partners, we are having a urgent requirement for one of our client cmmi level5 company in hyd if u intrested Kindly mail your responses to gangadhar.sadhu@optionsindia.com Project Lead -...
1
by: Imran | last post by:
JOB ID : JM 1202 >>Please refer to the Job ID in all your communication both in subject line of your email and in the body text. * Note: My new Yahoo MSGR ID < mji_imms > Hi Friends, Hope you...
1
by: ghiyas | last post by:
hi all ,please help me oracle ed with developer ed which developer edition i should install with oracle 10g,can this be developer6i or some1 suggest to me which oracle edition i shud install with...
2
by: suchy | last post by:
how to run oracle software without installing oracle. basically,i am developing an software with oracle as back end & visual basic as front end.hence I want to develop...
1
by: musai | last post by:
Hi Members I have created VB/Oracle Application Application is going to use multiple client (user machine) What I want to know is whether Oracle should be installed or not. I checked two...
4
by: musai | last post by:
I have created vb oracle application I installed oracle client in three machine. All machine was reconfigured after oracle installed I could see table and record set through sql plus sheet in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.