Beruflich Dokumente
Kultur Dokumente
REMAP_TABLESPACE=;music_tblspc'dumpfile='music_db.dmp'
B)Import the MUSIC_ITEM table to the QA database using the following command
impdp tcmuser/tcmpswd@tcdb TABLES=;music_item;
REMAP_TABLESPACE='music_tblspc':'tcmdflt_tblspc'
dumpfile='music_db.dmp'
C)Import objects from the MUSIC_TBLSPC tablespace to the QA database using the following
command
impdp tcmuser/tcmpswd@tcdb
TABLESPACES='music_tblspc' dumpfile='music_db.dmp'
D)Import the tablespace MUSIC_TBLSPC into the QA database using the following command
impdb tcmuser/tcmpswd@tcdb
TRANSPORT_TABLESPACE='music_tblspc'
dumpfile='music_db.dmp' network_link='tcdb_prod'
E)Create the MUSIC_TBLSPC in the QA database and import using the following command
impdb tcmuser/tcmpswd@tcdb
TABLES='music_item' dumpfile='music_db.dmp'
4)DECLARE some_error EXCEPTION:
BEGIN
INSERT INTO tc_tmp_rec
SELECT tc_msg_id,tc_msg_text
FROM tc_perm_rec WHERE tc_id=100;
RAISE some_error;
<<lbl_ERROR_JUMP>>
DBMS_OUTPUT.PUT_LINE('EXCEPTION: INSERT Failed');
GOTO lbl_ERROR_JUMP;
END;
what is the result when you execute the sample code above?
A)The code gives a syntax error
B)The string Error Label:INSERT Failed!is printed on the screen
C)The string EXCEPTION:INSERT Failed! is printed on the screen
D)The code gives a run time error
E)The code goes into an interface loop,displaying both the strings one after another.
5)Which cursor attribute do you reference to determine the number of records that were deleted by a
DELETE Statement?
A)SQL%NUMROWS
B)SQL%DELETED_COUNT
C)SQL%ROW_COUNT
D)SQL%ROWCOUNT
E)SQL%COUNT
6)IF tax_amount=0 THEN
NULL;
ELSE
calculate_tax(tax_amount);
END IF;
Based on the sample code above,what is the purpose of the NULLstatement?
A)It sets the value in the tax_amountvariable to NULL
B)It resets all variables in the module to :NULLvalues
C)It passes the control to the next executable statement without performing any database
operations.
D)It causes the module to stop execution and return to the calling module
13)
DECLARE
X NUMBER;
max_num NUMBER:=10;
number_error EXCEPTION;
FUNCTION get_number(anl NUMBER)RETURN NUMBER IS
y NUMBER;
BEGIN
y := anl *4'
IF y > max_num THEN
RAISE number_error;
END IF;
RETURN y;
END;
BEGIN
x := get_numbet(4);
DBMS_OUTPUT.PUT_LINE(NVL(x,'NULL'));
EXCEPTION
WHEN number_error THEN
DBMS_OUTPUT.PUT_LINE(Nebr Error');
WHEN Program_error THEN
DBMS_OUTPUT.PUT_LINE('Progarm Error');
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Others error');
END;
Based on the sample code above ,what is the result when you execute the code?
A)The code does not compile
B)16 is printed
C)Program Error is printed
D)Number Error is Printed
E)Others Error is Printed
14)CRETE TABLE TC_PGS_TBL(ID NUMBER(S) NOT NULL,
PGC_DIT NUMBER(S) NOT NULL,
PGS_DSC VARCHAR(64) NULL)
Data in the table TC_PGS_TBL,
ID
PGS_DIT
PGS_DSC
-----------------------1
11
2
2
12
99
3
13
1
Based on the table in the sample code above,which SQL SELECT statement performs an implicit
conversion?
A)SELECT * FROM TC_PGS_TBL WHERE ID=1 AND PGS_DIT=1
B) SELECT * FROM TC_PGC_TBL WHERE PGS_DSC='1'
C)KEEP
D)PROPAGATE
E)NONDETERMINISTIC
26)You wish to have the following code assign the next sequence value to seq for the ID to be
added to table product_tab.
CREATE TABLE product_tab(ID INT,DESC VARCHAR(50));
CREATE SEQUENCE product_seq;
DECLARE
seq NUMBER;
BEGIN
--Add code below to Assign the sq in the next line
DBMS_OUTPUT.PUT_LINE('Adding '||TO_CHAR(seq));
INSERT INTO product_tab VALUES(seq,'CHEESE');
END;
Based on the scenario above,which line do you add after the commented line to achieve your
objective?
A)seq := procedure_seq.NEXTVAL;
B)seq := procedure_seq.NEXTSEQ;
C)seq := procedure_seq.NEXT_SEQ;
D)seq := procedure_seq.NEXT_VALUE;
E)seq := procedure_seq.NEXT_SEQUENCE;
27)The concept of overloading within a package includes having:
A)More than one procedure defined with the same name and a different number or type of
parameters
B)multiple cursors defined in a single module
C)more than one function defined with the same name and same parameters
D)more than one procedure defined with the same number of parameters but different names
E)more than one procedure defined with multiple cursors.
28)Which cursor attribute provides you with the number of records affected by the last DML
statement?
A)SQL%ERROR
B)SQL%FOUND
C)SQL%NUM_ROWS
D)SQL%ROWCOUNT
E)SQL%COUNT
29)Values in BOX_RCPT_TAB
ID
--100
101
102
RECEIPT_DT
--------------------09-JAN-98
08-JAN-98
09-JAN-98
DECLARE
v_id Number(2);
BEGIN
SELECT id INTO v_id FROM box_rcpt_tab WHERE id=105;
END;
/
Which exception is raised when you execute the code block in the scenario above?
A)NO_DATA_FOUND
B)VALUE_ERROR
C)DUP_VAL_ON_INDEX
D)INVALID_NUMBER
E)STORAGE_ERROR