How to open a Database using Unix Command Please Do Reply

Answer Posted / srinivas panguluri

Answer for DB2:

db2 connect to database_name user schema_name using password

For rest of the SQL queries add db2 as alias

ex: db2 select * from tablename.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to display different lines that are found when compare two files?

595


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

962


What is unix command line?

612


What is sed awk grep?

609


Which command is used to copy files?

558






What is the difference between cat and more command?

627


What is command statement?

543


What is the nmap command?

586


What is awk command used for?

602


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

593


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

763


Explain command to show the space allocation of files?

633


What are reported commands?

569


Give the command for finding the current date.

583


What is the search command in unix?

606