Professional Documents
Culture Documents
Asked Question Interview Written
Asked Question Interview Written
Written question
1. Update statement in set clause subquery is allowed or not? Ans:- Allowed
2. Oracle 8 & 7 what is size of VARCHAR? Ans:- oracle-8 4000
Oracle 7 2000
3. What is maximum number of compound key Ans :: 32
4. Month_between first date is later than second date than value is ________ Ans : postive
5. LOB date type is allowed in table only one column or not?
6 What is default in LPAD funtion? Ans: Space
7.what is stand for OFA. Ans Oracle flexible Architecture
8. What is latest date in oracle 8 ? Ans Jan 1, 4712 BC to dec 31,9999AD
9.Length function is return from CHAR datatype
Ans. It return size of datatype whether data is less than the size is store.
10.Without define in package specification we can write the procedure or function package body or not?
Yes we can write that is called private type procedure or function in package.
11. In oracle 7 & 8 How we create read only view
1. use expression in view select statement
2. take multiple table in view.
12. What value display ?
Select empno from emp
Where deptno in (Select deptno from dept order by deptno)
13.Which true about summary query?
Column of the base table in query select clause is essentially present in group by clause.
14. What must the second parameter if where the first is negative?
Ans. There is no restriction.
15. What happen when sum() function NULL value?
Ans. Ignore NULL.
16. Can you delete rows from two table at time ? Ans: - No.
17. The default character for specified substitution variable select status is Ampersand.
18. How rename the table ? Ans:- Rename command
19. Can you pass length of the data in function and procedure parameter ? Ans:- No
20. Each DDL command procedure commit before or after of execution itself?
Ans. DDL command produce commit both before and after even if it execute successfully.
21.It is optional that we produce the return data type of a function in package specification ? Ans:- No.
22. To protect irrelevant data from user we create a _______? Ans.View
Interview question
1. Can you use if then else in SQL statement ? Ans. Yes by decode
2. Can you use if then else in SQL loader script? Ans. Yes by When clause
3. Through Shell script in Unix how you run the oracle procedure ?
Ans. Sqlplus username/password@connectstring @filenameofSQLcommand
4. How you write file through DBMS_OUTPUT package?
Ans. This is tricky question through DBMS_OUTPUT you cann’t write file for this other package is
UTIL_FILE.
5. How you can drop the partition of table?
6. What is local Index and global index in partition table?
7. When partition drop in table what effect come in local index and global index?
8. What is prefix Index and nonprefix Index in table ?
9. When at the procedure compile it come error “The 10 character is truncated .“ Why this error come ?
10. Through procedure you can drop partition or not ?
11. Through procedure you can create or drop Index or not??
12. If same name procedure you want to create What you do first drop the table and then create it??
Ans. No for this we use CREATE OR REPLACE.
13. ls –l|grep –v ‘..\.’ What it does in unix?
14. How you pass array in procedure write the code?
15. How you pass array in procedure write the code?
16. How define VARRAY in oracle ?
17. Through IMMEDIATE EXECUTE we can use DDL command or not ?
Ans :- Yes you can create table by this.
18. What materlise view?
19. If table is drop the what about the Materlise view?
1. If transaction is very big and rollback segment is all time full then what you do?
Ans Create big rollback segment and before that transaction write
SET TRANSACTION USE ROLLBACK SEGMENT segmentName
2. Write SQL from emp table how many employee working in particular manager?
3. In function and procedure the parameter pass is call by value or call by reference?
4. How you debug the PL/SQL ?
5. How you create the dynamic SQL?
Interview question
1. How you implement view on block?
Ans Retrieval is easy but at the time of insert it take care on_insert trigger but different insert statement for
different table.
2. How you access of form global variable, system variable in library function ? Ans. NAME_IN function
3. How you change the user in form ?
Ans. In On_logon trigger write logon function with user name and password?
M.B.T (Interview)
1. Why not create table in procedure or function ? Because PL/SQL early binding of variable
2. Can you hide the code of procedure from client? Ans. Yes by wrap command.
4. In sql*plus what is quit command and what effect in database ?
5. Write the SQL to find 10,11,12 position of sql code?
6. select from A table through cursor and update B table if it update successfully then insert into another table
handled every type of exception in the code ? Ans. There is no exception fired.
7. In declare section exception is fired then others exception of same block is catch or not ?
Ans. Not it is handled by parent block.
8. In synonym of table you can write trigger on that table or not ? Ans You can write do any thing with table
9. If we want to fetch data from dump file of the into the table only first 200 rows only How will do that?
10. Can you write >= with rownum in where clause it not why?
11. If you disable the index then it is used or not ?
12. If install SQL*PLUS in client where SQL engine in run server side or client side?
13. Can you create index on the ROWID? Ans . No
14. What oracle feather you have to like most ?
15. When relationship put isolated and master record is deleted or not ? Ans. You can do in form but in database
you cann’t save it.
16. How write the condition in where clause in select statement ? Ans Left to right processing
17. You can write insert statement in row trigger or not?
18. what sequence of trigger fired when cursor navigate one text box to other text box?
19. What is Ref cursor?
20. Sysdate contain current time or not?
21. Can you raise exception in exception clause?
22. What is difference between pre_query and post_query ?
23. What difference between TRANSALATE AND REPLACE function ?
24. How many repeating frame is required to create deptwise display the employee detail report?
25. What is output of this SQL where current value of sequence is 3?
Select seq.curval,seq.Nextval,seq.Nextval from dual ?
26. In form for create relationship in block it is necessary in database relationship is their ?
27. If change in code part of the library procedure then it is required to recompile or not ? Ans not required
28. What is the sequence of the firing of these trigger?
1. before insert
2. after insert
3. before insert for each row
4. after insert for each row
29. We can put commit in trigger or not ? Ans NO