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 first character of the output in ls l command?

729


What are the dos commands?

746


What is “chmod” command?

646


Explain the steps that a shell follows while processing a command.

767


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

884






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

849


What is in grep command?

738


How do I use grep to search for a file?

670


How do you grep a case insensitive?

621


What is the use of finger command?

681


What is the use of cut command in unix?

810


How do I clear my terminal history?

677


What does the metacharacter mean?

691


What is .sh file?

729


How to use grep command to list find the records of a file containing 10 different strings?

729