Question

In: Computer Science

1. What type of commands can you issue through the command line process? Start-> IBM DB2COPY1...

1. What type of commands can you issue through the command line process?

Start-> IBM DB2COPY1 (Default) -> DB2 Command Line Processor

Solutions

Expert Solution

Types of commands can be issued through the command line process:

i) XMLSCHEMA:

a)ADD

adds one or more XML schema documents to an existing.

Ex: ADD XMLSCHEMA DOCUMENT TO MYNAME.TEST

b)COMPLETE

  completes the registration.

  Ex:COMPLETE XMLSCHEMA  relational-identifier

c) REGISTER

registers an XML schema

Ex: REGISTER XMLSCHEMA http://mywebsite.com/prod/a1.xsd FROM file:///u/temp/a1.xsd AS EXAMPLE.TEST1 COMPLETE

d) REMOVE

  deletes a previously registered XML schema.

Ex: REMOVE XMLSCHEMA SYS.PRODSCHEMA

ii) BIND:

binds DBRMs that are in HFS files into a package.

Ex: BIND /u/usr1/myapp.dbrm -collection PKG05 ISOLATION(CS) RELEASE(DEALLOCATE)

iii) CHANGE :

a) ISOLATION

changes the isolation level for SQL statements

Ex: CHANGE ISOLATION TO -RR

b) MAXCOLUMNWIDTH

changes the number of bytes in a table column.

Ex: CHANGE MAXCOLUMNWIDTH TO 10

c) MAXLINESFROMSELECT

changes the number of rows

Ex: CHANGE MAXLINESFROMSELECT TO  5

iv)  COMMIT:

saves all SQL work

Ex: COMMIT

v) ROLLBACK:

rollbacks all saves.

Ex: ROLLBACK

vi) CONNECT:

  connects to a DB2 server

Ex: CONNECT TO url.abc.com:4096/JKL1 USER abc11 USING mypwd123

vii) DESCRIBE:

a) CALL

returns Parameter name,Parameter type,Data type,Length,Scale,Nullability.

Ex: DISPLAY CALL SchemaName.PROCname

b)TABLE

returns Column name,Table qualifier,Data type,Length,Scale,Nullability

Ex: DESCRIBE TABLE MYNAME.TABLENAME

viii) DISCONNECT:

  disconnects current connection to db2 server.

Ex: DISCONNECT

ix)ECHO :

prints text string to the output stream.

Ex: ECHO Hello World

x) HELP:

gives info about commands.

Ex: ? LIST

xi) LIST TABLES:

list tables.

Ex: LIST TABLES

xii) sql commands:

execute SQL statement.

Ex: CONNECT TO url.abc.com:4096/JKL1 USER abc11 USING mypwd123 SELECT * FROM MYTABLE.EMP


Related Solutions

Euler’s Method and Introduction to MATLAB • Start MATLAB • Inline Commands: You can type commands...
Euler’s Method and Introduction to MATLAB • Start MATLAB • Inline Commands: You can type commands directly into the command window: Type and expression and then hit enter to evaluate the expression. For example: >> 2+2 If you want to suppress the output of a command follow it with ‘;”.  For example >>2+2; Practice evaluating a few expressions in the command window. (In MATLAB multiplication is represented by * so 3*2=6). • Variables and Vectors: You can define variables in the...
QUESTION 1 User can interact with a PC using a command-line interface by issuing commands to...
QUESTION 1 User can interact with a PC using a command-line interface by issuing commands to the program in the form of successive lines of text. True False 1 points    QUESTION 2 A machine code (object code) is generated by an executor for process. True False 1 points    QUESTION 3 In case of all the resources are being used, the new process with a low priority might not get its resource forever. True False 1 points    QUESTION...
Research Managing Files via the Command Line Interface (CLI) commands, flags, and options that allow you...
Research Managing Files via the Command Line Interface (CLI) commands, flags, and options that allow you to: copy, delete, rename, and move files on Windows and Linux.
1. What command is used to change the current working directory at the command line?
1. What command is used to change the current working directory at the command line?
a) Observe the following Linux commands and work out what each command does: 1) $ ls...
a) Observe the following Linux commands and work out what each command does: 1) $ ls –al 2) $ /etc/profile 3) $ chmod 200 final_assignment.txt b) Consider a scenario where Bob has downloaded his messages to the local machine with an access of POP3, he can create mail folders and move the downloaded messages into the folders. Bob can then delete messages, move messages across folders, and search for messages (by sender name or subject). But this paradigm—namely, folders and...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL...
Use Workbench/Command Line to create the commands that will run the following queries/problem scenarios. Use MySQL and the Colonial Adventure Tours database to complete the following exercises. 1. List the last name of each guide that does not live in Massachusetts (MA). 2. List the trip name of each trip that has the type Biking. 3. List the trip name of each trip that has the season Summer. 4. List the trip name of each trip that has the type...
Q3.  Networking commands – ping, mount, hosts, netstat The ping command can be used to check the...
Q3.  Networking commands – ping, mount, hosts, netstat The ping command can be used to check the network working condition between two systems.  You may have to find the path name of the ping command file using which or whereis command and then type the full/absolute path name of the ping command.  Issue ping command with UNIX server IP address as argument.  If the command does not stop after displaying five packets transfer and receive information, terminate the command using ctrl-c.  Otherwise, the command may...
What is the command to view the process? What is a zombie process & What is...
What is the command to view the process? What is a zombie process & What is the command to take care of zombie process?
a.)Which of the following commands can be used to change the stateof a process,...
a.)Which of the following commands can be used to change the state of a process, including to stop a process?endkillstophaltb.)Responding to ping requests can leave a system vulnerable to which of the following?TCP wrappersDoS attacksMan-in-the-middle attacksAll of the abovec.)Which of the following is the de facto standard name resolution solution for the majority of systems connected to the Internet?DHCPLDAPDNSNISd.)DHCP stands for which of the following?Dynamic Host Configuration ProtocolDomain Host Configuration ProtocolDomain Host Configuration ProcessDynamic Host Configuration Processe.)After installing the correct...
Windows XP Command Line questions. a) What is the command to display all of the files...
Windows XP Command Line questions. a) What is the command to display all of the files on the disk in drive A:--do not use the DIR command or the CHKDSK command C:\> b) Display the contents of the PERSONAL.FIL file located in the root directory of drive A: one screenful at a time C) Display the contents of the PERSONAL.FIL file located in the root directory of drive A:, one screenful at a time, beginning with the 25th record, on...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT