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

Describe the zip/unzip command using gzip.

825


What is the comma to show the space allocation of files?

762


Write a command to display a file’s contents in various formats?

847


What do know about tee command and its usage?

850


Describe the usage and functionality of the command rm –r * in unix?

1455


Who wrote grep?

767


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

1014


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

909


how to sort the content of the file based on numeric values

1506


What is a bash command?

830


Explain mount and unmount command.

842


How do I find previous commands in unix?

813


What does pipe () return?

777


Enlist some filename manipulation commands in unix.

750


What is the unix command to confirm a remote host is alive or not?

799