Question

In: Computer Science

Explain the function/purpose of the following section of the script -- Set environment variables SET FEEDBACK...

  1. Explain the function/purpose of the following section of the script

-- Set environment variables

SET FEEDBACK OFF

SET HEADING OFF

SET VERIFY OFF

  1. Explain the function/purpose of the following section of the script

PROMPT ********** Create New Order **********

PROMPT

SELECT 'Date: ', TO_CHAR(SYSDATE,'MM/DD/YYYY') FROM DUAL;

PROMPT

  1. Explain the function/purpose of the following section of the script

DEFINE v_cus_lname = 'Customer Not Found'

DEFINE v_cus_fname = 'Customer Not Found'

DEFINE v_cus_phone = 'N/A'

  1. Explain the function/purpose of the following section of the script

ACCEPT v_cus_code NUMBER FORMAT 99999 PROMPT 'Enter Customer Code (format 99999): '

Solutions

Expert Solution

SET FEEDBACK OFF: FEEDBACK setting controls whether SQL*Plus displays the number of records returned by a select statement, deleted by a delete statement, updated by an update statement or inserted by an insert statement. we can set a threshold below which we do not get any feedback. FEEDBACK OFF means SQL*Plus won't let you know how many rows are affected by SQL statements you have issued.

SET HEADING OFF : heading setting controls printing of column heading in reports. HEADING OFF does not affect the column width display but suppressed the printing of column header.

SET VERIFY OFF : VERIFY setting controls whether to list the text of SQL statement or PL/SQL command before and after replacing substitution variables with values OFF suppresses the listing.

PROMPT: this helps to represent the text of the message you want to display. You can use this command to give information to user.

DEFINE: This command allows user to explicitly create user variables and assigns it an initial value. DEFINE also lets you list all currently defines variables with their values. Explain the function/purpose of the following section of the script.

ACCEPT v_cus_code NUMBER FORMAT 99999 PROMPT 'Enter Customer Code (format 99999): '-->To get input from the user is to explicitly prompt for values using the ACCEPT and PROMTPT commands. The ACCEPT COMMAND takes input from the user and stores it in a user variable and allows us some level of control over what the user enters. PROMPT command may be used to display messages to the user.


Related Solutions

A _______________ is defined as the set of local variables in a function that are kept alive after the function has returned.
Fill in the blanks in each of the following.A _______________ is defined as the set of local variables in a function that are kept alive after the function has returned.All JavaScript objects inherit the properties and functions (or also called methods) from their _______________ that is created using an object constructor function.The _______________ operator removes a given property from an object. (Note that the operator is a keyword, not a symbol.)A ____________________ is a web app that interacts with the...
Explain the meaning of the following terms: constraints, decision variables, feasible region and objective function. Explain...
Explain the meaning of the following terms: constraints, decision variables, feasible region and objective function. Explain their relevance to product mix decisions.
Explain the meaning of the following terms: constraints, decision variables, feasible region and objective function. Explain...
Explain the meaning of the following terms: constraints, decision variables, feasible region and objective function. Explain their relevance to product mix decisions.
Once you are in the Linux environment, perform the following steps: Set an environment variable for...
Once you are in the Linux environment, perform the following steps: Set an environment variable for USER that holds the value of your name. For this submission, you will write a BASH shell program that meets the following requirements: Clear the screen. Display to the user what the program will do and that the program is starting. Display to the user the string “Hello“ and the value of the USER environment variable. Output a blank line. Display to the user...
Examine the following shell script and describe its function line-by-line: #! /bin/bash #This script backs up...
Examine the following shell script and describe its function line-by-line: #! /bin/bash #This script backs up the Oracle DB rm -f /SAN/backup-oracle* if tar -zcvf /SAN/backup-oracle- 'date +%F'.tar.gz/oracledb/* then echo "Oracle backup completed on 'date'" >>/var/log/oraclelog else echo "Oracle backup failed on 'date'" >>/var/log/oraclelog mail -s ALERT [email protected] </var/log/oraclelog fi
What is the purpose of section 1245 and 1250? Explain rather than describe them.
What is the purpose of section 1245 and 1250? Explain rather than describe them.
Explain the section of code in the setup() function that implements the following instructions Wire.beginTransmission(0x68); Wire.write(0);             ...
Explain the section of code in the setup() function that implements the following instructions Wire.beginTransmission(0x68); Wire.write(0);              // set the address byte sec = Wire.read(); Wire.endTransmission();     // stop transmitting Wire.beginTransmission(0x68); Wire.write(0);              // set the address Wire.write(sec & 0x7F);     // clear CH bit Wire.endTransmission();     // stop transmitting Why is this necessary?
Add a sphere into Unity. write ONE C# script in Unity that does the following: Set...
Add a sphere into Unity. write ONE C# script in Unity that does the following: Set the sphere to a color of your choice. Start with growing the sphere’s scale at 0.0005/frame until its scale reaches 3, then shrink the sphere’s scale at the same rate until it reaches 1. Repeat. Sphere rotate around the origin in XY plane at radius of 5. position = transform.localPosition; position.x = radius * Mathf.Sin(Time.fixedTime); position.y = radius * Mathf.Cos(Time.fixedTime);
IRC Section 245 - Explain its purpose and operation. Outline the changes effectuated by the Tax...
IRC Section 245 - Explain its purpose and operation. Outline the changes effectuated by the Tax Cuts & Jobs Act of 2017 and its application to foreign sourced dividend."
Use the R script to finish the following operations: (1) Generate 60 normally distributed random variables...
Use the R script to finish the following operations: (1) Generate 60 normally distributed random variables with the mean 30 and the variance 16, and store them in the vector ‘rand.vec’. (2) Turn the vector ‘rand.vec’ into a 6X10 matrix, and assign the name ‘rand.mat’ to the matrix. (3) Given a normal distribution with the mean 30 and the variance 16, find the two values of x that contain the middle 50% of the normal curve area.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT