Oracle
Oracle
Oracle provides the world’s most complete, open, and integrated business
software and hardware systems , with more than 370,000 customers including
100 of the Fortune 100 representing a variety of sizes and industries in more than
145 countries around the globe.
Oracle's product strategy provides flexibility and choice to our customers across
their IT infrastructure. Now, with Sun server, storage , operating system , and
virtualization technology, Oracle is the only vendor able to offer a complete
technology stack in which every layer is integrated to work together as a single
system.
Starting more than 30 years ago with Oracle's innovative relational database, the
Oracle stack today includes Oracle Enterprise Linux , Oracle VM, Oracle Fusion
Middleware, and the largest and most complete set of industry and business
applications software on the market. The addition of Sun storage and systems
technology makes the Oracle stack complete.
Oracle integrates every layer of the IT stack to deliver compelling value, based on
high system availability and security , stunning performance, and low TCO. Only
Oracle can offer this stack advantage to its customers through deep and seamless
integration between the tiers that our competitors cannot match.
Oracle India:
Oracle India provides the Asian subcontinent with enterprise software for
managing business data, supporting business operations, and facilitating
collaboration and application development. Companies use its database
management software to store and access data across numerous platforms. The
company also offers business applications for data warehousing, customer
relationship management, and supply chain management. Oracle opened its first
office in India in 1991, and formed its first Indian subsidiary in 1993. Oracle's
other Indian operations include the India Development Center, which is its largest
research facility outside the US.
It has weaved 400 channel networks and alliance partners in India under the
Oracle Partner Network, including Infosys, Satyam, Sonata, Tata Consultancy
Services and Wipro. It recently hosted Oracle Education Foundation’s Think.com,
available in Hindi. The company offers a young and dynamic corporate culture. It
offers discount stock purchasing, semi-annual performance bonuses, medical
cover, 13 days of vacation etc to its employees.
Head Office:
Oracle India Private Limited
DLF Building No 8, Tower C
Ground & 7th Floor
DLF Cyber City, DLF Phase - II
Gurgaon - 122002, Haryana
Phone: +91 124 4328000 begin_of_the_skype_highlighting +91 124
4328000
Test Paper :1
Posted By : Waseem
Oracle Company Profile
Corporate View:
Oracle provides the world’s most complete, open, and integrated business
software and hardware systems , with more than 370,000 customers including
100 of the Fortune 100 representing a variety of sizes and industries in more than
145 countries around the globe.
Oracle's product strategy provides flexibility and choice to our customers across
their IT infrastructure. Now, with Sun server, storage , operating system , and
virtualization technology, Oracle is the only vendor able to offer a complete
technology stack in which every layer is integrated to work together as a single
system.
In addition, Oracle's open architecture and multiple operating system options
gives our customers unmatched benefits from industry leading products, including
excellent system availability, scalability, energy efficiency, powerful performance,
and low total cost of ownership.
Starting more than 30 years ago with Oracle's innovative relational database, the
Oracle stack today includes Oracle Enterprise Linux , Oracle VM, Oracle Fusion
Middleware, and the largest and most complete set of industry and business
applications software on the market. The addition of Sun storage and systems
technology makes the Oracle stack complete.
Oracle integrates every layer of the IT stack to deliver compelling value, based on
high system availability and security , stunning performance, and low TCO. Only
Oracle can offer this stack advantage to its customers through deep and seamless
integration between the tiers that our competitors cannot match.
Oracle India:
Oracle India provides the Asian subcontinent with enterprise software for
managing business data, supporting business operations, and facilitating
collaboration and application development. Companies use its database
management software to store and access data across numerous platforms. The
company also offers business applications for data warehousing, customer
relationship management, and supply chain management. Oracle opened its first
office in India in 1991, and formed its first Indian subsidiary in 1993. Oracle's
other Indian operations include the India Development Center, which is its largest
research facility outside the US.
It has weaved 400 channel networks and alliance partners in India under the
Oracle Partner Network, including Infosys, Satyam, Sonata, Tata Consultancy
Services and Wipro. It recently hosted Oracle Education Foundation’s Think.com,
available in Hindi. The company offers a young and dynamic corporate culture. It
offers discount stock purchasing, semi-annual performance bonuses, medical
cover, 13 days of vacation etc to its employees.
Head Office:
Oracle India Private Limited
DLF Building No 8, Tower C
Ground & 7th Floor
DLF Cyber City, DLF Phase - II
Gurgaon - 122002, Haryana
Phone: +91 124 4328000 begin_of_the_skype_highlighting +91 124
4328000 end_of_the_skype_highlighting
Company Speaks:
Work Culture:
Projects at Oracle provide a peek into more than 100 teams developing
Oracle's global products and services. Graduates and prospects around
the world use this snapshot of the Oracle development organization to
guide their interest in future employment with the world's largest
business software company.
Oracle's business is information how to manage it, use it, share it, and
protect it. For three decades, Oracle has helped governments and
businesses around the world drive their enterprises based on quality,
real-time information. They invite you to consider joining the committed
developers and managers that make it all possible.
Entry level Recruitment:
For over three decades, Oracle has been the center of innovation for
business software birthplace of the first commercially available relational
database, the first suite of internet based applications, and the next-
generation enterprise computing platform, Oracle Fusion. Today, Oracle
provides the world's most complete, open, and integrated business
software and hardware systems, with more than 370,000 customers
including 100 of the Fortune 100 representing a variety of sizes and
industries in more than 145 countries around the globe. And Oracle's
104,500 global employees including 30,000 developers working full-time
on Oracle products are critical to that success.
Oracle recruiters are always searching for brilliant employees with an
entrepreneurial spirit, looking for a work culture where innovation is the
goal, hard work is expected, and creativity is rewarded. Oracle
employees enjoy competitive salaries, excellent health benefits, and a
network of like minded co-workers that drive innovation across the
entire technology industry.
For more information, please visit official website.
2.English:
Section Time Questions
Sentence Structure 5 Minutes 10
Grammatical Usage 5 Minutes 5
Written Expression 7 Minutes 5
Reading Comprehension 8 Minutes 5
Totals 25 Minutes 25 Questions
Hi friends!!
I gave written on 15sept2007 at MAIT, Rohini. Selection at oracle consists
of
1. Written test (Tech + apti – 1hr – 60Q’s)
2. Group Discussion
3. 3 Tech rounds (will be held at oracle, Noida/Gurgaon)
4. 1 HR round
There were 4 different sets, it was offcampus drive. Around 175 shortlisted after
GD’s out of 800.
I am sorry I don’t remember much questions but I will give u a brief idea.
Technical exam was very simple. It was below oracle standard. They asked questions
related to oracle 8i, 9i features.
They were questions from c, java, dbms.
1. Which storage class can’t be used to initialize an array.
a) register
b) auto
c) extern
d) static.
2. Can decomposition property of dbms be achieved using reflexivity ,
augmentation & transitivity rule?
Most of the questions were from Java and 5 –6 ques from ORACLE 8i o 9i.
In aptitude paper,
8. There was a puzzle from shakuntala devi, where in, 9 circles are given, each
line had 3 circles joined by vertical, horizontal and diagonal lines. We were
required to find out the numbers, which can fit in the figure such that every
line has total sum of 15. and digits allowed were from 1-9 and none should be
repeated. There were 3-4 questions on it.
9. There was a problem on ages given, had a long relationship structure. Most of
us found it difficult to solve. And it again had 3-4 ques based on it.
10. There was a table given of students of class, which had various 5 sections.
All of them plays only game and everyone does. In the table,
Complete Data was filled in the table. Girls were 25% in numbers in each
class.
And there were 5 questions given based on this table.
There were around 6-7 questions on the jumbled up sentences, which we were
supposed to arrange in sequence.
Q. There was question on train, to find the length of train. It was lil difficult.
Q. One dearer quality product mixed with the cheaper one, and ratio of the
mixture was to be calculated. Sp was given and profit %n was given
Q. One question on equations. It was to find the equation, which has 2 more
roots than the given equation.
Rest of the apti questions were very easy and from r.s aggarwal.
Sorry friends, I could mention exact figures in the question. Still I hope This would
help u.
GD Topics.
1. Impact of globalization on Indian economy & culuture.
2. Is Management education required?
3. Hockey or cricket should be our national game.?
4. Red colour?
5. Sting operations
I got through, Written n GD, now waiting for the interviews date. I wish you all,
Good Luck!!!
Regards,
Amit Jain
a) There will be a sentence and two fill ups. Choice were given to fill the blanks.
b) Analogy
c) There will be 4 sentences. You have to arrange them in order.
d) Only 6-7 questions from apti.
2. starts with T. The letter E occurs in word one only. The questions were,
a). Which number represents T.
b). Which number represents S.
c). Which character represents 2.
d). Which digit represents A.
e). Which word represents word 2.
3. There was a table with data related to net sales, gross profit, etc... and some
questions were asked related to it. Very easy…
4. A man spent 1/6th of his life in child hood, 1/12th of his life as youngster and
1/7th of his life as a bachelor. After five years of his marriage a son was born
to him. The son died four years before the father died and at the time of his
death his age was half the total age of his father.
The questions were,
a. What is the age of the father. (84)
b. At what age was he married.(33)
c. What is the age of his son.(42)
5. Rita puts 9 pairs of black socks and 8 pairs of white socks in a drawer. She
takes 3 socks. What is the probability that we get a pair of black socks.
6. What is the value of the following series 1/7 + 2/72 + 1/73 +2/74 + 1/75 +
……….
7. What should be the value of a, in the polynomials x2 – 11x + a and x2 – 14x +
2a, so that these two polynomials have common factors. a) 24 b)1 c)-1
d)1/2
8. What is the sum of all the four digit numbers form ed using the digits 0, 1, 2
and 3. None of the two digits should be repeated.
9. a right angled triangle, the square of the hypotenuse is twice the product of the
other two sides. Then one of the acute angles of the triangle is… a) 450 b)
300 c) 600 d) 150
10. There are two square rooms. Both are of same height. The second room is 5m
longer than the first room. The rate for papering the walls is 10 paisa per
square meter. The total cost for papering the rooms is Rs 60 and Rs 80. What
is the height of the rooms.
11. There are two numbers in the ratio 8:9. if the smaller of the two numbers is
increased by 12 and the larger number is reduced by 19 thee the ratio of the
two numbers is 5:9.
Find the larger number.
12. In class of 10 student s , the teacher writes a number on the board. The first
student tells that the number is divisible by 1, the second student tells that the
number is divisible by 2, the third by 3, the forth by 4 and so on till 10. If the
statement of one of the students in wrong then what is the least number
possible.
13. The first and the last sentences of a set of sentences are given. The middle four
sentences are in jumbled form we have to select the order in which the
sentences are to be placed so that they convey a meaningful message.
14. A passage with two paragraphs is given. Then two questions are asked based
on it. Could not remember it.
15. A stamp collector arranges his stamps during his free time. When he arranges
his stamps in pairs, there is one stamp left. It is the same when he arranges the
stamps in groups of 3, 4, 5 and 6. Now, how many stamps will he be left with
when he arranges them in groups of 8.
Technical
16. Delete from table tempv where rowid in (select rowid from tempv where
rowid in (((select min(rowid) from tempv where ... count(*) > 1)))
union(select rowid from tempv where rowid in (((select min(rowid) from
tempv where ... count(*) > 1)));
19. here is a question of Package body and Package Specification, they have
provided the code for that describing the scenario of movie_tickets_sold and
asked the programmer to insert a block of code...., where that code block to
be inserted? In Package body? or in Package Specification?
31. main()
{
file *fp;
fp=fopen(“xyz”,”r”);
}
What does fp point to?
32. What is the maximum no. of arguments that can be given in a command line in
C.
33. When the variables are pushed into the stack, which method is used to retrieve
them from it.
a) pop b) pull c) remove d) none of these.
35. A programs reads “The man and the boy\r\n” from a file using fgets() and
stores it in str[]. Then the string stored in str is
a) “The man and the boy\r\n\0”
b) “The man and the boy\r\0”
c) “The man and the boy\n\0”
d) “The man and the boy\0”
36. After this written exam, we had another written for the short-listed students. It
contained algorithms and coding. There were two questions.
37. The first one was the conversion of a given expression into its postfix form
and then to evaluate it.
39. Three beauty pageant finalists-Cindy, Amy and Linda-The winner was
musician. The one who was not last or first was a math major.The one who came in
third had black hair. Linda had red hair. Amy had no musical abilities. Who was
first?
(A) Cindy (B) Amy (C) Linda (D) None of these
40. Two twins have certain peculiar characteristics. One of them always lies on
Monday, Wednesday, Friday. The other always lies on Tuesdays, Thursday and
Saturdays. On the other days they tell the truth. You are given a conversation.Person
A- today is Sunday, my name is Anil Person B-today is Tuesday, my name is
Bill What day is today?
(A) Sunday (B) Tuesday (C) Monday (D) Thursday
41. The difference of a number and its reciprocal is 1/2.The sum of their squares
is
(A) 9/4 (B) 4/5 (C) 5/3 (D) 7/4
42. The difference of a number and its square is 870.What is the number?
(A) 42 (B) 29 (C) 30 (D) 32
43. A trader has 100 Kg of wheat, part of which he sells at 5% profit and the rest
at 20% profit. He gains 15% on the whole. Find how much is sold at 5% profit?
(A) 60 (B) 50 (C) 66.66 (D) 33.3
45. A man leaves office daily at 7pm.a driver with car comes from his home to
pick him from office and bring back home. One day he gets free at 5.30 and instead
of waiting for driver he starts walking towards home. In the wayhe meets the car and
returns home on car. He reaches home 20 minutes earlier than usual. In how much
time does the man reach home usually?
(A) 1 hr 20 min (B) 1 hr (C) 1 hr 10 min (D) 55 min
47. dog taken four leaps for every five leaps of hare but three leaps of the dog is
equal to four leap of the hare. Compare speed?
(A) 12:16 (B) 19:20 (C) 16:15 (D) 10:12
48. A watch ticks 90 times in 95 seconds. And another watch ticks 315 times in
323 secs. If they start together, how many times will they tick together in first hour?
(A) 100 times (B) 101 times (C) 99 times (D) 102 times
51. To group users based on common access permission one should use
(A) User Groups (B) Roles (C) Grants (D) None of the above
54. To change the default date format in a SQLPLUS Session you have to
(A) Set the new format in the DATE_FORMAT key in the windows Registry.
(B) Alter session to set NLS_DATE-FORMAT.
(C) Change the Config.ora File for the date base.
(D) Change the User Profile USER-DATE-FORMAT.
Friends if u clear all this four rounds u are ready for ORACLE.
4. Output from a table called PLAYS with two columns, PLAY_NAME and
AUTHOR,is shown below.Which of the following SQL statements produced
it?
PLAY_TABLE
"Midsummer Night's Dream", SHAKESPEARE
"Waiting For Godot", BECKETT
"The Glass Menagerie", WILLIAMS
6. The user issues the following statement. What will be displayed if the EMPID
selected is 60494? SELECT DECODE(empid,38475, "Terminated",60494,
"LOA", "ACTIVE")FROM emp;
a. 60494
b. LOA
c. Terminatedd. ACTIVE
11. The default character for specifying runtime variables in SELECT statements
is
a. Ampersand
b. Ellipses
c. Quotation marks
d. Asterisk
12. A user is setting up a join operation between tables EMP and DEPT. There are
some employees in the EMP table that the user wants returned by the query,
but the employees are not assigned to departments yet. Which SELECT
statement is most appropriate for this user?
a. select e.empid, d.head from emp e, dept d;
b. Select e.empid, d.head from emp e, dept d where e.dept# = d.dept#;
c. Select e.empid, d.head from emp e, dept d where e.dept# = d.dept# (+);
d. Select e.empid, d.head from emp e, dept d where e.dept# (+) = d.dept#;
14. User JANKO would like to insert a row into the EMPLOYEE table, which
has three columns: EMPID,LASTNAME, and SALARY. The user would like
to enter data for EMPID 59694, LASTNAME Harris, but no salary. Which
statement would work best?
a. INSERT INTO employee VALUES (59694,'HARRIS', NULL);
b. INSERT INTO employee VALUES (59694,'HARRIS');
c. INSERT INTO employee (EMPID, LASTNAME, SALARY) VALUES
(59694,'HARRIS');
d. INSERT INTO employee (SELECT 59694 FROM 'HARRIS');
15. Which three of the following are valid database datatypes in Oracle? (Choose
three.)
a. CHAR
b. VARCHAR2
c. BOOLEAN
d. NUMBER
16. Omitting the WHERE clause from a DELETE statement has which of the
following effects?
a. The delete statement will fail because there are no records to delete.
b. The delete statement will prompt the user to enter criteria for the
deletion
c. The delete statement will fail because of syntax error.
d. The delete statement will remove all records from the table.
17. Creating a foreign-key constraint between columns of two tables defined with
two different datatypes will produce an error.
a. TRUE
b. FALSE
18. Dropping a table has which of the following effects on a nonunique index
created for the table?
a. No effect.
b. The index will be dropped.
c. The index will be rendered invalid.
d. The index will contain NULL values.
22. Which of the following lines in the SELECT statement below contain an
error?
a SELECT DECODE(empid, 58385, "INACTIVE", "ACTIVE") empid
b. FROM emp
c. WHERE SUBSTR(lastname,1,1) > TO_NUMBER('S')
d. AND empid > 02000
e. ORDER BY empid DESC, lastname ASC;
f. There are no errors in this statement.
23. Which function below can best be categorized as similar in function to an IF-
THEN-ELSE statement?
a. SQRT
b. DECODE
c. NEW_TIME
d. ROWIDTOCHAR
24. Which two of the following orders are used in ORDER BY clauses? (choose
two)
a. ABS
b. ASC
c. DESC
d. DISC
25. You query the database with this command SELECT name FROM
employee WHERE name LIKE ‘_a%’; Which names are displayed?
a. Names starting with “a”
b. Names starting with “a” or “A”
c. Names containing “a” as second character
d. Names containing “a” as any letter except the firs
PL/SQL
30. If left out, which of the following would cause an infinite loop to occur in a
simple loop?
a. LOOP
b. END LOOP
c. IF-THEN
d. EXIT
33. What happens when rows are found using a FETCH statement
a. It causes the cursor to close
b. It causes the cursor to open
c. It loads the current row values into variables
d. It creates the variables to hold the current row values
36. What is the maximum number of handlers processed before the PL/SQL block
is exited when an
exception occurs?
a. Only one
b. All that apply
c. All referenced
d. None
37. For which trigger timing can you reference the NEW and OLD
qualifiers?
a. Statement and Row
b. Statement only
c. Row only
d. Oracle Forms trigger
42. The CHECK_THEATER trigger of the THEATER table has been disabled.
Which command can yo issue to enable this trigger?
a. ALTER TRIGGER check_theater ENABLE;
b. ENABLE TRIGGER check_theater;
c. ALTER TABLE check_theater ENABLE check_theater;
d. ENABLE check_theater;
45. Under which circumstance must you recompile the package body after
recompiling the package specification?
a. Altering the argument list of one of the package constructs
b. Any change made to one of the package constructs
c. Any SQL statement change made to one of the package constructs
d. Removing a local variable from the DECLARE section of one of the
package constructs
46. Procedure and Functions are explicitly executed. This is different from a
database trigger. When is
a database trigger executed?
a. When the transaction is committed
b. During the data manipulation statement
c. When an Oracle supplied package references the trigger
d. During a data manipulation statement and when the transaction is
committed
47. Which Oracle supplied package can you use to output values and messages
from database triggers, stored procedures and functions within SQL*Plus?
a. DBMS_DISPLAY
b. DBMS_OUTPUT
c. DBMS_LIST
d. DBMS_DESCRIBE
48. What occurs if a procedure or function terminates with failure without being
handled?
a. Any DML statements issued by the construct are still pending and can be
committed or rolled back.
b. Any DML statements issued by the construct are committed
c. Unless a GOTO statement is used to continue processing within the
BEGIN section, the construct terminates. The
construct rolls back any DML statements issued and returns the unhandled
exception to the calling environment.
50. A stored function must return a value based on conditions that are determined
at runtime. Therefore, the SELECT statement cannot be hard-coded and must
be created dynamically when he function is executed. Which Oracle supplied
package will enable this feature?
a. DBMS_DDL
b. DBMS_DML
c. DBMS_SYN
d. DBMS_SQL
Placement Materials
Oracle Placement Question Papers
इस पृष का िहनदी अनुवाद
By dimple ⋅ September 6, 2009 ⋅ Post a comment
3. There was a table with data related to net sales, gross profit, etc… and some
questions were asked related to it. Very easy…
4. A man spent 1/6th of his life in child hood, 1/12th of his life as youngster and 1/7th
of his life as a bachelor. After five years of his marriage a son was born to him. The
son died four years before the father died and at the time of his death his age was half
the total age of his father.
The questions were,
a. What is the age of the father. (84)
b. At what age was he married.(33)
c. What is the age of his son.(42)
5. Rita puts 9 pairs of black socks and 8 pairs of white socks in a drawer. She takes 3
socks. What is the probability that we get a pair of black socks.
6. What is the value of the following series 1/7 + 2/72 + 1/73 +2/74 + 1/75 + ……….
7. What should be the value of a, in the polynomials x2 – 11x + a and x2 – 14x + 2a,
so that these two polynomials have common factors. a) 24 b)1 c)-1 d)1/2
8. What is the sum of all the four digit numbers formed using the digits 0, 1, 2 and 3.
None of the two digits should be repeated.
9. a right angled triangle, the square of the hypotenuse is twice the product of the
other two sides. Then one of the acute angles of the triangle is… a) 450 b) 300 c) 600
d) 150
10. There are two square rooms. Both are of same height. The second room is 5m
longer than the first room. The rate for papering the walls is 10 paisa per square
meter. The total cost for papering the rooms is Rs 60 and Rs 80. What is the height of
the rooms.
11. There are two numbers in the ratio 8:9. if the smaller of the two numbers is
increased by 12 and the larger number is reduced by 19 thee the ratio of the two
numbers is 5:9.
Find the larger number.
12. In class of 10 students, the teacher writes a number on the board. The first student
tells that the number is divisible by 1, the second student tells that the number is
divisible by 2, the third by 3, the forth by 4 and so on till 10. If the statement of one of
the students in wrong then what is the least number possible.
13. The first and the last sentences of a set of sentences are given. The middle four
sentences are in jumbled form we have to select the order in which the sentences are
to be placed so that they convey a meaningful message.
14. A passage with two paragraphs is given. Then two questions are asked based on it.
Could not remember it.
15. A stamp collector arranges his stamps during his free time. When he arranges his
stamps in pairs, there is one stamp left. It is the same when he arranges the stamps in
groups of 3, 4, 5 and 6. Now, how many stamps will he be left with when he arranges
them in groups of 8.
Technical
16. Delete from table tempv where rowid in (select rowid from tempv where rowid in
(((select min(rowid) from tempv where … count(*) > 1))) union(select rowid from
tempv where rowid in (((select min(rowid) from tempv where … count(*) > 1)));
19. here is a question of Package body and Package Specification, they have provided
the code for that describing the scenario of movie_tickets_sold and asked the
programmer to insert a block of code…., where that code block to be inserted? In
Package body? or in Package Specification?
31. main()
{
file *fp;
fp=fopen(“xyz”,”r”);
}
What does fp point to?
32. What is the maximum no. of arguments that can be given in a command line in C.
33. When the variables are pushed into the stack, which method is used to retrieve
them from it.
a) pop b) pull c) remove d) none of these.
35. A programs reads “The man and the boyrn” from a file using fgets() and stores it
in str[]. Then the string stored in str is
a) “The man and the boyrn
ORACLE PAPER ON 30th NOVEMBER 2008
1. Is it possible to split the print reviewer into more than one region?
Yes
3. For a field in a repeating frame, can the source come from the column which does
not exist in the data group which forms the base for the frame?
Yes
5. The join defined by the default data link is an outer join yes or no?
Yes
8. Is it possible to insert comments into sql statements return in the data model editor?
Yes
10. When a form is invoked with call_form, Does oracle forms issues a save point?
Yes
11. Explain the difference between a hot backup and a cold backup and the benefits
associated with each.
A hot backup is basically taking a backup of the database while it is still up and
running and it must be in archive log mode. A cold backup is taking a backup of the
database while it is shut down and does not require being in archive log mode. The
benefit of taking a hot backup is that the database is still available for use while the
backup is occurring and you can recover the database to any point in time. The benefit
of taking a cold backup is that it is typically easier to administer the backup and
recovery process. In addition, since you are taking cold backups the database does not
require being in archive log mode and thus there will be a slight performance gain as
the database is not cutting archive logs to disk.
12. You have just had to restore from backup and do not have any control files. How
would you go about bringing up this database?
I would create a text based backup control file, stipulating where on disk all the data
files where and then issue the recover command with the using backup control file
clause.
14. Explain the difference between a data block, an extent and a segment.
A data block is the smallest unit of logical storage for a database object. As objects
grow they take chunks of additional storage that are composed of contiguous data
blocks. These groupings of contiguous data blocks are called extents. All the extents
that an object takes when grouped together are considered the segment of the database
object.
15. Give two examples of how you might determine the structure of the table DEPT.
Use the describe command or use the dbms_metadata.get_ddl package.
16. Where would you look for errors from the database engine?
In the alert log.
19. Give the two types of tables involved in producing a star schema and the type of
data they hold.
Fact tables and dimension tables. A fact table contains measurements while dimension
tables will contain data that will help describe the fact tables.
20. What type of index should you use on a fact table?
A Bitmap index.
22. A table is classified as a parent table and you want to drop and re-create it. How
would you do this without affecting the children tables?
Disable the foreign key constraint to the parent, drop the table, re-create the table,
enable the foreign key constraint.
24. What command would you use to create a backup control file?
Alter database backup control file to trace.
25. Give the stages of instance startup to a usable state where normal users may
access it.
STARTUP NOMOUNT - Instance startup
STARTUP MOUNT - The database is mounted
STARTUP OPEN - The database is opened
26. What column differentiates the V$ views to the GV$ views and how?
The INST_ID column which indicates the instance in a RAC environment the
information came from.
28. How would you go about increasing the buffer cache hit ratio?
Use the buffer cache advisory over a given workload and then query the
v$db_cache_advice table. If a change was necessary then I would use the alter system
set db_cache_size command.
31. How would you determine the time zone under which a database was operating?
select DBTIMEZONE from dual;
37. Where in the Oracle directory tree structure are audit traces placed?
In unix $ORACLE_HOME/rdbms/audit, in Windows the event viewer
39. When a user process fails, what background process cleans up after it?
PMON
41. How would you determine what sessions are connected and what resources they
are waiting for?
Use of V$SESSION and V$SESSION_WAIT
42. Describe what redo logs are.
Redo logs are logical and physical structures that are designed to hold all the changes
made to a database and are intended to aid in the recovery of a database.
44. Give two methods you could use to determine what DDL changes have been
made.
You could use Logminer or Streams
48. When creating a user, what permissions must you grant to allow them to connect
to the database?
Grant the CONNECT to the user
51. What view would you use to look at the size of a data file?
DBA_DATA_FILES
52. What view would you use to determine free space in a tablespace?
DBA_FREE_SPACE
53. How would you determine who has added a row to a table?
Turn on fine grain auditing for the table.
59. What is the difference between the SQL*Loader and IMPORT utilities?
These two Oracle utilities are used for loading data into the database. The difference
is that the import utility relies on the data being produced by another Oracle utility
EXPORT while the SQL*Loader utility allows data to be loaded that has been
produced by other utilities from different data sources just so long as it conforms to
ASCII formatted or delimited files.
63. Can one resize tablespaces and data files? (for DBA)
One can manually increase or decrease the size of a datafile from Oracle 7.2 using the
command.
ALTER DATABASE DATAFILE 'filename2' RESIZE 100M;
Because you can change the sizes of datafiles, you can add more space to your
database without adding more datafiles. This is beneficial if you are concerned about
reaching the maximum number of datafiles allowed in your database.
Manually reducing the sizes of datafiles allows you to reclaim unused space in the
database. This is useful for correcting errors in estimations of space requirements.
Also, datafiles can be allowed to automatically extend if more space is required. Look
at the following command:
CREATE TABLESPACE pcs_data_ts
DATAFILE 'c:\ora_apps\pcs\pcsdata1.dbf' SIZE 3M
AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED
DEFAULT STORAGE (INITIAL 10240
NEXT 10240
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0)
ONLINE
PERMANENT;
64. What is SAVE POINT ?
For long transactions that contain many SQL statements, intermediate markers or
savepoints can be declared which can be used to divide a transaction into smaller
parts. This allows the option of later rolling back all work performed from the current
point in the transaction to a declared savepoint within the transaction.
65. What are the values that can be specified for OPTIMIZER MODE Parameter ?
COST and RULE.
68. What are the values that can be specified for OPTIMIZER_GOAL parameter of
the ALTER SESSION Command ? )
CHOOSE,ALL_ROWS,FIRST_ROWS and RULE.
70. How does one give developers access to trace files (required as input to tkprof)?
(for DBA)
The "alter session set sql_trace=true" command generates trace files in
USER_DUMP_DEST that can be used by developers as input to tkprof. On Unix the
default file mask for these files are "rwx r-- ---".
There is an undocumented INIT.ORA parameter that will allow everyone to read (rwx
r-r--) these trace files:
_trace_files_public = true
Include this in your INIT.ORA file and bounce your database for it to take effect.
71. What are the responsibilities of a Database Administrator ?
Installing and upgrading the Oracle Server and application tools. Allocating system
storage and planning future storage requirements for the database system. Managing
primary database structures (tablespaces) Managing primary objects
(table,views,indexes) Enrolling users and maintaining system security . Ensuring
compliance with Oralce license agreement Controlling and monitoring user access to
the database. Monitoring and optimizing the performance of the database. Planning
for backup and recovery of database information. Maintain archived data on tape
Backing up and restoring the database. Contacting Oracle Corporation for technical
support .
73. What are the roles and user accounts created automatically with the database?
DBA - role Contains all database system privileges.
SYS user account - The DBA role will be assigned to this account. All of the base
tables and views for the database's dictionary are store in this schema and are
manipulated only by ORACLE.
SYSTEM user account - It has all the system privileges for the database and
additional tables and views that display administrative information and internal tables
and views used by oracle tools are created using this username.
74. What are the minimum parameters should exist in the parameter file (init.ora) ?
DB NAME - Must set to a text string of no more than 8 characters and it will be
stored inside the datafiles, redo log files and control files and control file while
database creation.
DB_DOMAIN - It is string that specifies the network domain where the database is
created. The global database name is identified by setting these parameters
(DB_NAME & DB_DOMAIN) CONTORL FILES - List of control filenames of the
database. If name is not mentioned then default name will be used.
DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA.
PROCESSES - To determine number of operating system processes that can be
connected to ORACLE concurrently. The value should be 5 (background process) and
additional 1 for each user.
ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance
acquires at database startup. Also optionally
LICENSE_MAX_SESSIONS,LICENSE_SESSION_WARNING and
LICENSE_MAX_USERS.
76. What strategies are available for backing-up an Oracle database? (for DBA
The following methods are valid for backing-up an Oracle database:
Export/Import - Exports are "logical" database backups in that they extract logical
definitions and data from the database to a file.
Cold or Off-line Backups - Shut the database down and backup up ALL data, log, and
control files.
Hot or On-line Backups - If the databases are available and in ARCHIVELOG mode,
set the tablespaces into backup mode and backup their files. Also remember to backup
the control files and archived redo log files.
RMAN Backups - While the database is off-line or on-line, use the "rman" utility to
backup the database.
It is advisable to use more than one of these methods to backup your database. For
example, if you choose to do on-line database backups, also cover yourself by doing
database exports. Also test ALL backup and recovery scenarios carefully. It is better
to be save than sorry.
Regardless of your strategy, also remember to backup all required software libraries,
parameter files, password files, etc. If your database is in ARCGIVELOG mode, you
also need to backup archived log files.
77. What is the difference between online and offline backups? (for DBA
A hot backup is a backup performed while the database is online and available for
read/write. Except for Oracle exports, one can only do on-line backups when running
in ARCHIVELOG mode.
A cold backup is a backup performed while the database is off-line and unavailable to
its users.
78. What is the difference between restoring and recovering? (for DBA
Restoring involves copying backup files from secondary storage (backup media) to
disk. This can be done to replace damaged files or to copy/move a database to a new
location.
Recovery is the process of applying redo logs to the database to roll it forward. One
can roll-forward until a specific point-in-time (before the disaster occurred), or roll-
forward until the last transaction recorded in the log files. Sql> connect SYS as
SYSDBA
Sql> RECOVER DATABASE UNTIL TIME '2001-03-06:16:00:00' USING
BACKUP CONTROLFILE;
79. How does one backup a database using the export utility? (for DBA
Oracle exports are "logical" database backups (not physical) as they extract data and
logical definitions from the database into a file. Other backup strategies normally
back-up the physical data files.
One of the advantages of exports is that one can selectively re-import tables, however
one cannot roll-forward from an restored export file. To completely restore a database
from an export file one practically needs to recreate the entire database.
Always do full system level exports (FULL=YES). Full exports include more
information about the database in the export file than user level exports.
80. What are the built_ins used the display the LOV?
Show_lov
List_values
81. How do you call other Oracle Products from Oracle Forms?
Run_product is a built-in, Used to invoke one of the supported oracle tools products
and specifies the name of the document or module to be run. If the called product is
unavailable at the time of the call, Oracle Forms returns a message to the operator.
85. What does the term panel refer to with regard to pages?
A panel is the no. of physical pages needed to print one logical page.
87.What is a library?
A library is a collection of subprograms including user named procedures, functions
and packages.
88. What is an anchoring object and what is its use? What are the various sub events a
mouse double click event involves?
An anchoring object is a print condition object which used to explicitly or implicitly
anchor other objects to itself.
89. Use the add_group_column function to add a column to record group that was
created at a design time?
False
90. What are the various sub events a mouse double click event involves? What are
the various sub events a mouse double click event involves?
Double clicking the mouse consists of the mouse down, mouse up, mouse click,
mouse down & mouse up events.
91. What is the use of break group? What are the various sub events a mouse double
click event involves?
A break group is used to display one record for one group ones. While multiple
related records in other group can be displayed.
93. What tools/utilities does Oracle provide to assist with performance tuning? (for
DBA
Oracle provide the following tools/ utilities to assist with performance monitoring and
tuning:
. TKProf
. UTLBSTAT.SQL and UTLESTAT.SQL - Begin and end stats monitoring
. Statspack
. Oracle Enterprise Manager - Tuning Pack
94. What is STATSPACK and how does one use it? (for DBA
Statspack is a set of performance monitoring and reporting utilities provided by
Oracle from Oracle8i and above. Statspack provides improved BSTAT/ESTAT
functionality, though the old BSTAT/ESTAT scripts are still available. For more
information about STATSPACK, read the documentation in file
$ORACLE_HOME/rdbms/admin/spdoc.txt.
Install Statspack:
cd $ORACLE_HOME/rdbms/admin
sqlplus "/ as sysdba" @spdrop.sql -- Install Statspack -
sqlplus "/ as sysdba" @spcreate.sql-- Enter tablespace names when prompted
Use Statspack:
sqlplus perfstat/perfstat
exec statspack.snap; -- Take a performance snapshots
exec statspack.snap;
o Get a list of snapshots
select SNAP_ID, SNAP_TIME from STATS$SNAPSHOT;
@spreport.sql -- Enter two snapshot id's for difference report
Other Statspack Scripts:
. sppurge.sql - Purge a range of Snapshot Id's between the specified begin and end
Snap Id's
. spauto.sql - Schedule a dbms_job to automate the collection of STATPACK
statistics
. spcreate.sql - Installs the STATSPACK user, tables and package on a database (Run
as SYS).
. spdrop.sql - Deinstall STATSPACK from database (Run as SYS)
. sppurge.sql - Delete a range of Snapshot Id's from the database
. spreport.sql - Report on differences between values recorded in two snapshots
. sptrunc.sql - Truncates all data in Statspack tables
95. What are the common RMAN errors (with solutions)? (for DBA
Some of the common RMAN errors are:
RMAN-20242: Specification does not match any archivelog in the recovery catalog.
Add to RMAN script: sql 'alter system archive log current';
RMAN-06089: archived log xyz not found or out of sync with catalog
Execute from RMAN: change archivelog all validate;
96. How can you execute the user defined triggers in forms 3.0 ?
Execute Trigger (trigger-name)
100. When the form is running in DEBUG mode, If you want to examine the values
of global variables and other form variables, What package procedure command you
would use in your trigger text ?
Break.
SYSTEM VARIABLES
The value recorded in system.last_record variable is of type
a. Number
b. Boolean
c. Character. ?
b. Boolean.
101. What is mean by Program Global Area (PGA) ?
It is area in memory that is used by a Single Oracle User Process.
107. How many minimum groups are required for a matrix report
The minimum number of groups in matrix report are 4
109. How does one manage Oracle database users? (for DBA
Oracle user accounts can be locked, unlocked, forced to choose new passwords, etc.
For example, all accounts except SYS and SYSTEM will be locked after creating an
Oracle9iDB database using the DB Configuration Assistant (dbca). DBA's must
unlock these accounts to make them available to users.
Look at these examples:
ALTER USER scott ACCOUNT LOCK -- lock a user account
ALTER USER scott ACCOUNT UNLOCK; -- unlocks a locked users account
ALTER USER scott PASSWORD EXPIRE; -- Force user to choose a new password
110. How does one tune Oracle Wait events? (for DBA
Some wait events from V$SESSION_WAIT and V$SYSTEM_EVENT views:
111. What is the difference between DBFile Sequential and Scattered Reads? (for
DBA
Both "db file sequential read" and "db file scattered read" events signify time waited
for I/O read requests to complete. Time is reported in 100's of a second for Oracle 8i
releases and below, and 1000's of a second for Oracle 9i and above. Most people
confuse these events with each other as they think of how data is read from disk.
Instead they should think of how data is read into the SGA buffer cache.
db file sequential read:
A sequential read operation reads data into contiguous memory (usually a single-
block read with p3=1, but can be multiple blocks). Single block I/Os are usually the
result of using indexes. This event is also used for rebuilding the controlfile and
reading datafile headers (P2=1). In general, this event is indicative of disk contention
on index reads.
db file scattered read:
Similar to db file sequential reads, except that the session is reading multiple data
blocks and scatters them into different discontinuous buffers in the SGA. This statistic
is NORMALLY indicating disk contention on full table scans. Rarely, data from full
table scans could be fitted into a contiguous buffer area, these waits would then show
up as sequential reads instead of scattered reads.
The following query shows average wait time for sequential versus scattered reads:
prompt "AVERAGE WAIT TIME FOR READ REQUESTS"
select a.average_wait "SEQ READ", b.average_wait "SCAT READ"
from sys.v_$system_event a, sys.v_$system_event b
where a.event = 'db file sequential read'
and b.event = 'db file scattered read';
115. How does one use ORADEBUG from Server Manager/ SQL*Plus? (for DBA
Execute the "ORADEBUG HELP" command from svrmgrl or sqlplus to obtain a list
of valid ORADEBUG commands. Look at these examples:
SQLPLUS> REM Trace SQL statements with bind variables
SQLPLUS> oradebug setospid 10121
Oracle pid: 91, Unix process pid: 10121, image: oracleorcl
SQLPLUS> oradebug EVENT 10046 trace name context forever, level 12
Statement processed.
SQLPLUS> ! vi /app/oracle/admin/orcl/bdump/ora_10121.trc
SQLPLUS> REM Trace Process Statistics
SQLPLUS> oradebug setorapid 2
Unix process pid: 1436, image: ora_pmon_orcl
SQLPLUS> oradebug procstat
Statement processed.
SQLPLUS>> oradebug TRACEFILE_NAME
/app/oracle/admin/orcl/bdump/pmon_1436.trc
SQLPLUS> REM List semaphores and shared memory segments in use
SQLPLUS> oradebug ipc
SQLPLUS> REM Dump Error Stack
SQLPLUS> oradebug setospid <pid>
SQLPLUS> oradebug event immediate trace name errorstack level 3
SQLPLUS> REM Dump Parallel Server DLM locks
SQLPLUS> oradebug lkdebug -a convlock
SQLPLUS> oradebug lkdebug -a convres
SQLPLUS> oradebug lkdebug -r <resource handle> (i.e 0x8066d338 from convres
dump)
117. If the maximum record retrieved property of the query is set to 10 then a
summary value will be calculated?
Only for 10 records.
118. What are the different objects that you cannot copy or reference in object
groups?
Objects of different modules
Another object groups
Individual block dependent items
Program units.
121. Is it possible to set a filter condition in a cross product group in matrix reports?
No
123. What are the return values of functions SQLCODE and SQLERRM ? What is
Pragma EXECPTION_INIT ? Explain the usage ?
SQLCODE returns the latest code of the error that has occurred.
SQLERRM returns the relevant error message of the SQLCODE.
Backups in RMAN
Oracle backups in RMAN are of the following type
RMAN complete backup OR RMAN incremental backup
These backups are of RMAN proprietary nature
IMAGE COPY
The advantage of uing Image copy is its not in RMAN proprietary format..
Backup Format
RMAN backup is not in oracle format but in RMAN format. Oracle backup comprises
of backup sets and it consists of backup pieces. Backup sets are logical entity In
oracle 9i it gets stored in a default location There are two type of backup sets Datafile
backup sets, Archivelog backup sets One more important point of data file backup
sets is it do not include empty blocks. A backup set would contain many backup
pieces.
A single backup piece consists of physical files which are in RMAN proprietary
format.
Restoring database
Restoring database has been made very simple in 9i .
It is just
Restore database..
RMAN has become intelligent to identify which datafiles has to be restored
and the location of backuped up file.
With the new DURATION option for the RMAN BACKUP command, DBAs can
weigh backup performance against system service level requirements. By specifying a
duration, RMAN will automatically calculate the appropriate backup rate; in addition,
DBAs can optionally specify whether backups should minimize time or system load.
New Features in Oem to identify RMAN related backup like backup pieces, backup
sets and image copy
Observation
Introduced in Oracle 8 it has become more powerful and simpler with newer version
of Oracle 9 and 10 g.
So if you really don't want to miss something critical please start using RMAN.
131. Should the OEM Console be displayed at all times (when there are scheduled
jobs)? (for DBA
When a job is submitted the agent will confirm the status of the job. When the status
shows up as scheduled, you can close down the OEM console. The processing of the
job is managed by the OIA (Oracle Intelligent Agent). The OIA maintains a .jou file
in the agent's subdirectory. When the console is launched communication with the
Agent is established and the contents of the .jou file (binary) are reported to the
console job subsystem. Note that OEM will not be able to send e-mail and paging
notifications when the Console is not started.
133. What kind of jobs can one schedule with OEM? (for DBA
OEM comes with pre-defined jobs like Export, Import, run OS commands, run sql
scripts, SQL*Plus commands etc. It also gives you the flexibility of scheduling
custom jobs written with the TCL language.
135. How does one backout events and jobs during maintenance slots? (for DBA
Managemnet and data collection activity can be suspended by imposing a blackout.
Look at these examples:
agentctl start blackout # Blackout the entrire agent
agentctl stop blackout # Resume normal monitoring and management
agentctl start blackout ORCL # Blackout database ORCL
agentctl stop blackout ORCL # Resume normal monitoring and management
agentctl start blackout -s jobs -d 00:20 # Blackout jobs for 20 minutes
ROLESystem Control :
ALTER SYSTEM.
138. How does one start the Oracle Intelligent Agent? (for DBA
One needs to start an OIA (Oracle Intelligent Agent) process on all machines that will
to be managed via OEM.
For OEM 9i and above:
agentctl start agent
agentctl stop agent
Start the OEM console and create a new event. Select option "Enable Unsolicited
Event". Select test "Unsolicited Event". When entering the parameters, enter values
similar to these:
Event Name: /oracle/script/myalert
Object: *
Severity: *
Message: *
One can now write the script and invoke the oemevent command to send alerts to the
console. Look at this example: oemevent /oracle/script/myalert DESTINATION alert
"My custom error message" where DESTINATION is the same value as entered in
the "Monitored Destinations" field when you've registered the event in the OEM
Console.
860. Where can one get more information about TCL? (for DBA
One can write custom event checking routines for OEM using the TCL (Tool
Command Language) language. Check the following sites for more information about
TCL:
. The Tcl Developer Xchange - download and learn about TCL
. OraTCL at Sourceforge - Download the OraTCL package
. Tom Poindexter's Tcl Page - Oratcl was originally written by Tom Poindexter
139. Are there any troubleshooting tips for OEM? (for DBA
Create the OEM repository with a user (which will manage the OEM) and store it in a
tablespace that does not share any data with other database users. It is a bad practice
to create the repository with SYS and System.
. If you are unable to launch the console or there is a communication problem with the
intelligent agent (daemon). Ensure OCX files are registered. Type the following in the
DOS prompt (the current directory should be $ORACLE_HOME\BIN:
C:\Orawin95\Bin> RegSvr32 mmdx32.OCX
C:\Orawin95\Bin> RegSvr32 vojt.OCX
. If you have a problem starting the Oracle Agent
Solution A: Backup the *.Q files and Delete all the *.Q Files
($Oracle_home/network/agent folder)
Backup and delete SNMP_RO.ora, SNMP_RW.ora, dbsnmp.ver and services.ora files
($Oracle_Home/network/admin folder) Start the Oracle Agent service.
Solution B: Your version of Intelligent Agent could be buggy. Check with Oracle for
any available patches. For example, the Intelligent Agent that comes with Oracle 8.0.4
is buggy.
Sometimes you get a Failed status for the job that was executed successfully.
Check the log to see the results of the execution rather than relying on this status.
140. What is import/export and why does one need it? (for DBA
The Oracle export (EXP) and import (IMP) utilities are used to perform logical
database backup and recovery. They are also used to move Oracle data from one
machine, database or schema to another.
The imp/exp utilities use an Oracle proprietary binary file format and can thus only be
used between Oracle databases. One cannot export data and expect to import it into a
non-Oracle database. For more information on how to load and unload data from files,
read the SQL*Loader FAQ.
The export/import utilities are also commonly used to perform the following tasks:
. Backup and recovery (small databases only)
. Reorganization of data/ Eliminate database fragmentation
. Detect database corruption. Ensure that all the data can be read.
. Transporting tablespaces between databases
. Etc.
141. what is a display item?
Display items are similar to text items but store only fetched or assigned values.
Operators cannot navigate to a display item or edit the value it contains.
142. How does one use the import/export utilities? (for DBA
Look for the "imp" and "exp" executables in your $ORACLE_HOME/bin directory.
One can run them interactively, using command line parameters, or using parameter
files. Look at the imp/exp parameters before starting. These parameters can be listed
by executing the following commands: "exp help=yes" or "imp help=yes".
The following examples demonstrate how the imp/exp utilities can be used:
exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
exp scott/tiger file=emp.dmp tables=(emp,dept)
imp scott/tiger file=emp.dmp full=yes
imp scott/tiger file=emp.dmp fromuser=scott touser=scott tables=dept
exp userid=scott/tiger@orcl parfile=export.txt
... where export.txt contains:
BUFFER=100000
FILE=account.dmp
FULL=n
OWNER=scott
GRANTS=y
COMPRESS=y
NOTE: If you do not like command line utilities, you can import and export data with
the "Schema Manager" GUI that ships with Oracle Enterprise Manager (OEM).
145. What are the two ways to incorporate images into a oracle forms application?
Boilerplate Images
Image_items
146. Can one monitor how fast a table is imported? (for DBA
If you need to monitor how fast rows are imported from a running import job, try one
of the following methods:
Method 1:
select substr(sql_text,instr(sql_text,'INTO "'),30) table_name,
rows_processed,
round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd
hh24:mi:ss'))*24*60)) rows_per_min
from sys.v_$sqlarea
where sql_text like 'INSERT %INTO "%'
and command_type = 2
and open_versions > 0;
For this to work one needs to be on Oracle 7.3 or higher (7.2 might also be OK). If the
import has more than one table, this statement will only show information about the
current table being imported.
Contributed by Osvaldo Ancarola, Bs. As. Argentina.
Method 2:
Use the FEEDBACK=n import parameter. This command will tell IMP to display a
dot for every N rows imported.
150. How is possible to restrict the user to a list of values while entering values for
parameters?
By setting the Restrict To List property to true in the parameter property sheet.
152. How does one use the SQL*Loader utility? (for DBA
One can load data into an Oracle database by using the sqlldr (sqlload on some
platforms) utility. Invoke the utility without arguments to get a list of available
parameters. Look at the following example:
sqlldr scott/tiger control=loader.ctl
This sample control file (loader.ctl) will load an external data file containing
delimited data:
load data
infile 'c:\data\mydata.csv'
into table emp
fields terminated by "," optionally enclosed by '"'
( empno, empname, sal, deptno )
The mydata.csv file may look like this:
10001,"Scott Tiger", 1000, 40
10002,"Frank Naude", 500, 20
Another Sample control file with in-line data formatted as fix length records. The
trick is to specify "*" as the name of the data file, and use BEGINDATA to start the
data section in the control file.
load data
infile *
replace
into table departments
( dept position (02:05) char(4),
deptname position (08:27) char(20)
)
begindata
COSC COMPUTER SCIENCE
ENGL ENGLISH LITERATURE
MATH MATHEMATICS
POLY POLITICAL SCIENCE
155. Can one load variable and fix length data records? (for DBA
Yes, look at the following control file examples. In the first we will load delimited
data (variable length):
LOAD DATA
INFILE *
INTO TABLE load_delimited_data
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
( data1,
data2
)
BEGINDATA
11111,AAAAAAAAAA
22222,"A,B,C,D,"
If you need to load positional data (fixed length), look at the following control file
example:
LOAD DATA
INFILE *
INTO TABLE load_positional_data
( data1 POSITION(1:5),
data2 POSITION(6:15)
)
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB
Can one skip header records load while loading?
Use the "SKIP n" keyword, where n = number of logical rows to skip. Look at this
example:
LOAD DATA
INFILE *
INTO TABLE load_positional_data
SKIP 5
( data1 POSITION(1:5),
data2 POSITION(6:15)
)
BEGINDATA
11111AAAAAAAAAA
22222BBBBBBBBBB
156. Can one modify data as it loads into the database? (for DBA
Data can be modified as it loads into the Oracle Database. Note that this only applies
for the conventional load path and not for direct path loads.
LOAD DATA
INFILE *
INTO TABLE modified_data
( rec_no "my_db_sequence.nextval",
region CONSTANT '31',
time_loaded "to_char(SYSDATE, 'HH24:MI')",
data1 POSITION(1:5) ":data1/100",
data2 POSITION(6:15) "upper(:data2)",
data3 POSITION(16:22)"to_date(:data3, 'YYMMDD')"
)
BEGINDATA
11111AAAAAAAAAA991201
22222BBBBBBBBBB990112
LOAD DATA
INFILE 'mail_orders.txt'
BADFILE 'bad_orders.txt'
APPEND
INTO TABLE mailing_list
FIELDS TERMINATED BY ","
( addr,
city,
state,
zipcode,
mailing_addr "decode(:mailing_addr, null, :addr, :mailing_addr)",
mailing_city "decode(:mailing_city, null, :city, :mailing_city)",
mailing_state
)
157.Can one load data into multiple tables at once? (for DBA
Look at the following control file:
LOAD DATA
INFILE *
REPLACE
INTO TABLE emp
WHEN empno != ' '
( empno POSITION(1:4) INTEGER EXTERNAL,
ename POSITION(6:15) CHAR,
deptno POSITION(17:18) CHAR,
mgr POSITION(20:23) INTEGER EXTERNAL
)
INTO TABLE proj
WHEN projno != ' '
( projno POSITION(25:27) INTEGER EXTERNAL,
empno POSITION(1:4) INTEGER EXTERNAL
)
158. What is the difference between boiler plat images and image items?
Boiler plate Images are static images (Either vector or bit map) that you import from
the file system or database to use a graphical elements in your form, such as company
logos and maps. Image items are special types of interface controls that store and
display either vector or bitmap images. Like other items that store values, image items
can be either base table items(items that relate directly to database columns) or
control items. The definition of an image item is stored as part of the form module
FMB and FMX files, but no image file is actually associated with an image item until
the item is populate at run time.
159. What are the triggers available in the reports?
Before report, Before form, After form , Between page, After report.
160. Why is a Where clause faster than a group filter or a format trigger?
Because, in a where clause the condition is applied during data retrievalthan after
retrieving the data.
161. Can one selectively load only the records that one need? (for DBA
Look at this example, (01) is the first character, (30:37) are characters 30 to 37:
LOAD DATA
INFILE 'mydata.dat' BADFILE 'mydata.bad' DISCARDFILE 'mydata.dis'
APPEND
INTO TABLE my_selective_table
WHEN (01) <> 'H' and (01) <> 'T' and (30:37) = '19991217'
(
region CONSTANT '31',
service_key POSITION(01:11) INTEGER EXTERNAL,
call_b_no POSITION(12:29) CHAR
)
162. Can one skip certain columns while loading data? (for DBA
One cannot use POSTION(x:y) with delimited data. Luckily, from Oracle 8i one can
specify FILLER columns. FILLER columns are used to skip columns/fields in the
load file, ignoring fields that one does not want. Look at this example: -- One cannot
use POSTION(x:y) as it is stream data, there are no positional fields-the next field
begins after some delimiter, not in column X. -->
LOAD DATA
TRUNCATE INTO TABLE T1
FIELDS TERMINATED BY ','
( field1,
field2 FILLER,
field3
)
164. How can get SQL*Loader to COMMIT only at the end of the load file? (for
DBA
One cannot, but by setting the ROWS= parameter to a large value, committing can be
reduced. Make sure you have big rollback segments ready when you use a high value
for ROWS=.
167. How does one use SQL*Loader to load images, sound clips and documents? (for
DBA
SQL*Loader can load data from a "primary data file", SDF (Secondary Data file - for
loading nested tables and VARRAYs) or LOGFILE. The LOBFILE method provides
and easy way to load documents, images and audio clips into BLOB and CLOB
columns. Look at this example:
Given the following table:
CREATE TABLE image_table (
image_id NUMBER(5),
file_name VARCHAR2(30),
image_data BLOB);
Control File:
LOAD DATA
INFILE *
INTO TABLE image_table
REPLACE
FIELDS TERMINATED BY ','
(
image_id INTEGER(5),
file_name CHAR(30),
image_data LOBFILE (file_name) TERMINATED BY EOF
)
BEGINDATA
001,image1.gif
002,image2.jpg
168. What is the difference between the conventional and direct path loader? (for
DBA
The conventional path loader essentially loads the data by using standard INSERT
statements. The direct path loader (DIRECT=TRUE) bypasses much of the logic
involved with that, and loads directly into the Oracle data files. More information
about the restrictions of direct path loading can be obtained from the Utilities Users
Guide.
172.Can you have two functions with the same name in a PL/SQL block ?
Yes.
173.Can you have two stored functions with the same name ?
Yes.
178. Can 2 functions have same name & input parameters but differ only by return
datatype
No.
201.What are the states of a rollback segment ? What is the difference between partly
available and needs recovery ?
The various states of a rollback segment are :
ONLINE, OFFLINE, PARTLY AVAILABLE, NEEDS RECOVERY and INVALID.
216.Which symbol preceeds the path to the table in the remote database ?
@
217. Are views automatically updated when base tables are updated ?
Yes
219.If all the values from a cursor have been fetched and another fetch is issued, the
output will be : error, last record or first record ?
Last Record
220.A table has the following data : [[5, Null, 10]]. What will the average function
return ?
7.5
227.What is Auditing ?
The database has the ability to audit all actions that take place within it.
a) Login attempts, b) Object Accesss, c) Database Action Result of Greatest(1,NULL)
or Least(1,NULL) NULL
232.Can database trigger written on synonym of a table and if it can be then what
would be the effect if original table is accessed.
Yes, database trigger would fire.
237.What is the effect of synonym and table name used in same Select statement ?
Valid
240.If content of dual is updated to some value computation takes place or not ?
Yes
242. Assume that there are multiple databases running on one machine. How can you
switch from one to another ?
Changing the ORACLE_SID
247.What all important parameters of the init.ora are supposed to be increased if you
want to increase the SGA size ?
In our case, db_block_buffers was changed from 60 to 1000 (std values are 60, 550 &
3500) shared_pool_size was changed from 3.5MB to 9MB (std values are 3.5, 5 &
9MB) open_cursors was changed from 200 to 300 (std values are 200 & 300)
db_block_size was changed from 2048 (2K) to 4096 (4K) {at the time of database
creation}.
The initial SGA was around 4MB when the server RAM was 32MB and The new
SGA was around 13MB when the server RAM was increased to 128MB.
250.If you insert a row in a table, then create another table and then say Rollback. In
this case will the row be inserted ?
Yes. Because Create table is a DDL which commits automatically as soon as it is
executed. The DDL commits the transaction even if the create statement fails
internally (eg table already exists error) and not syntactically.
252.What is a transaction ?
A transaction is a set of SQL statements between any two COMMIT and
ROLLBACK statements.
254.Which of the following is not a schema object : Indexes, tables, public synonyms,
triggers and packages ?
Public synonyms
255.What is PL/SQL?
PL/SQL is Oracle's Procedural Language extension to SQL. The language includes
object oriented programming techniques such as encapsulation, function overloading,
information hiding (all but inheritance), and so, brings state-of-the-art programming
to the Oracle database server and a variety of Oracle tools.
260.Can one use dynamic SQL within PL/SQL? OR Can you use a DDL in a
procedure ? How ?
From PL/SQL V2.1 one can use the DBMS_SQL package to execute dynamic SQL
statements.
Eg: CREATE OR REPLACE PROCEDURE DYNSQL
AS
cur integer;
rc integer;
BEGIN
cur := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(cur,'CREATE TABLE X (Y DATE)', DBMS_SQL.NATIVE);
rc := DBMS_SQL.EXECUTE(cur);
DBMS_SQL.CLOSE_CURSOR(cur);
END;
Hi Companions,
Recently I have taken up the selection process with Oracle Corporation
for (0-6) months experienced candidates. The Interview process was very very
cool... multiple Telephonic Interview. As i have mentioned Java as my fav language I
had most of the Q's from Java.
Entire Int Through Telephone:
HR Round:
Int: Hi venkatesh
Me: Hi
Int: Can u tell me bout yourself
Me: Told
Int: Ok wat r ur hobbies?
Me: Told
Int: Why Oracle? and Why not present Employer?
Me: Told
Int: Some backgrounn questions
Me:answd
Int: Ok this is s telephonic screening process if u clear this u will be getting a call on
tomoro that will be ur technical round be prepared.
Me: Fine,its my pleasure to take up the selection process with Oracle!!!!!
Int: Bye..
4. When do you use WHERE clause and when do you use HAVING clause?
HAVING clause is used when you want to specify a condition for a group function
and it is written after GROUP BY clause. The WHERE clause is used when you want
to specify a condition for columns, single row functions except group functions and it
is written before GROUP BY clause if it is used.
7. What is syntax for dropping a procedure and a function .Are these operations
possible?
Drop Procedure procedure_name
Drop Function function_name
16. What is the maximum buffer size that can be specified using the
DBMS_OUTPUT.ENABLE function?
1,000,00
27. How to access the current value and next value from a sequence ? Is it possible to
access the current value in a session before accessing next value ?
Sequence name CURRVAL, Sequence name NEXTVAL.It is not possible. Only if
you access next value in the session, current value can be accessed
28. What are the usage of SAVEPOINTS ?value in a session before accessing next
value ?
SAVE POINTS are used to subdivide a transaction into smaller parts. It enables
rolling back part of a transaction. Maximum of five save points are allowed.
30. Explain Connect by Prior ?in a session before accessing next value ?
Retrieves rows in hierarchical order.e.g. select empno, ename from emp where.
31. How many LONG columns are allowed in a table ? Is it possible to use LONG
columns in WHERE clause or ORDER BY ?
Only one LONG columns is allowed. It is not possible to use LONG column in
WHERE or ORDER BY clause.
34. If an unique key constraint on DATE column is created, will it validate the rows
that are inserted with SYSDATE ?
It won't, Because SYSDATE format contains time attached with it.
35. How does one stop and start the OMS? (for DBA
Use the following command sequence to stop and start the OMS (Oracle Management
Server):
oemctl start oms
oemctl status oms sysman/oem_temp
oemctl stop oms sysman/oem_temp
Windows NT/2000 users can just stop and start the required services. The default
OEM administrator is "sysman" with a password of "oem_temp".
NOTE: Use command oemctrl instead of oemctl for Oracle 8i and below.
38. If a View on a single base table is manipulated will the changes be reflected on the
base table ?
If changes are made to the tables which are base tables of a view will the changes be
reference on the view.
39. The following describes means to create a OEM V1.x (very old!!!) repository on
WindowsNT:
. Create a tablespace that would hold the repository data. A size between 200- 250
MB would be ideal. Let us call it Dummy_Space.
. Create an Oracle user who would own this repository. Assign DBA, SNMPAgent,
Exp_Full_database, Imp_Full_database roles to this user. Lets call this user
Dummy_user. Assign Dummy_Space as the default tablespace.
. Create an operating system user with the same name as the Oracle username. I.e.
Dummy_User. Add 'Log on as a batch job' under advanced rights in User manager.
. Fire up Enterprise manager and log in as Dummy_User and enter the password. This
would trigger the creation of the repository. From now on, Enterprise manager is
ready to accept jobs.
41. How does one list one's databases in the OEM Console? (for DBA
Follow these steps to discover databases and other services from the OEM Console:
1. Ensure the GLOBAL_DBNAME parameter is set for all databases in your
LISTENER.ORA file (optional). These names will be listed in the OEM Console.
Please note that names entered are case sensitive. A portion of a listener.ora file:
(SID_DESC =
(GLOBAL_DBNAME = DB_name_for_OEM)
(SID_NAME = ...
2. Start the Oracle Intelligent Agent on the machine you want to discover. See section
"How does one start the Oracle Intelligent Agent?".
3. Start the OEM Console, navigate to menu "Navigator/ Discover Nodes". The OEM
Discovery Wizard will guide you through the process of discovering your databases
and other services.
47. What are the different types of Coordinations of the Master with the Detail block?
POPULATE_GROUP(function)
POPULATE_GROUP_WITH_QUERY(function)
SET_GROUP_CHAR_CELL(procedure)
SET_GROUP_DATE_CELL(procedure)
SET_GROUP_NUMBER_CELL(procedure)
49. Use the ADD_GROUP_ROW procedure to add a row to a static record group? I)
TRUE II) FALSE
I) FALSE
52. Suppose a customer table is having different columns like customer no,
payments.What will be the query to select top three max payments?
SELECT customer_no, payments from customer C1
WHERE 3<=(SELECT COUNT(*) from customer C2
WHERE C1.payment <= C2.payment)
53. How you will avoid your query from using indexes?
SELECT * FROM emp
Where emp_no+' '=12345;
i.e you have to concatenate the column name with space within codes in the where
condition.
SELECT /*+ FULL(a) */ ename, emp_no from emp
where emp_no=1234;
i.e using HINTS
55. What are the Back ground processes in Oracle and what are they.
This is one of the most frequently asked question.There are basically 9 Processes but
in a general system we need to mention the first five background processes.They do
the house keeping activities for the Oracle and are common in any system.
The various background processes in oracle are
a) Data Base Writer(DBWR) :: Data Base Writer Writes Modified blocks from
Database buffer cache to Data Files.This is required since the data is not written
whenever a transaction is commited.
b)LogWriter(LGWR) :: LogWriter writes the redo log entries to disk. Redo Log data
is generated in redo log buffer of SGA. As transaction commits and log buffer fills,
LGWR writes log entries into a online redo log file.
c) System Monitor(SMON) :: The System Monitor performs instance recovery at
instance startup.This is useful for recovery from system failure
d)Process Monitor(PMON) :: The Process Monitor peforms process recovery when
user Process fails. Pmon Clears and Frees resources that process was using.
e) CheckPoint(CKPT) :: At Specified times, all modified database buffers in SGA are
written to data files by DBWR at Checkpoints and Updating all data files and control
files of database to indicate the most recent checkpoint
f) Archieves(ARCH) :: The Archiver copies online redo log files to archival storal
when they are busy.
g) Recoveror(RECO) :: The Recoveror is used to resolve the distributed transaction in
network
h) Dispatcher (Dnnn) :: The Dispatcher is useful in Multi Threaded Architecture
i) Lckn :: We can have upto 10 lock processes for inter instance locking in parallel
sql.
61. How many Integrity Rules are there and what are they
There are Three Integrity Rules. They are as follows ::
a) Entity Integrity Rule :: The Entity Integrity Rule enforces that the Primary key
cannot be Null
b) Foreign Key Integrity Rule :: The FKIR denotes that the relationship between the
foreign key and the primary key has to be enforced.When there is data in Child Tables
the Master tables cannot be deleted.
c) Business Integrity Rules :: The Third Intigrity rule is about the complex business
processes which cannot be implemented by the above 2 rules.
62. What are the Various Master and Detail Relation ships.
The various Master and Detail Relationship are
a) NonIsolated :: The Master cannot be deleted when a child is exisiting
b) Isolated :: The Master can be deleted when the child is exisiting
c) Cascading :: The child gets deleted when the Master is deleted.
68. Who created all these users in my database?/ Can I drop this user? (for DBA
Oracle creates a number of default database users or schemas when a new database is
created. Below are a few of them:
SYS/CHANGE_ON_INSTALL or INTERNAL
Oracle Data Dictionary/ Catalog
Created by: ?/rdbms/admin/sql.bsq and various cat*.sql scripts
Can password be changed: Yes (Do so right after the database was created)
Can user be dropped: NO
SYSTEM/MANAGER
The default DBA user name (please do not use SYS)
Created by: ?/rdbms/admin/sql.bsq
Can password be changed: Yes (Do so right after the database was created)
Can user be dropped: NO
OUTLN/OUTLN
Stored outlines for optimizer plan stability
Created by: ?/rdbms/admin/sql.bsq
Can password be changed: Yes (Do so right after the database was created)
Can user be dropped: NO
SCOTT/TIGER, ADAMS/WOOD, JONES/STEEL, CLARK/CLOTH and
BLAKE/PAPER.
Training/ demonstration users containing the popular EMP and DEPT tables
Created by: ?/rdbms/admin/utlsampl.sql
Can password be changed: Yes
Can user be dropped: YES - Drop users cascade from all production environments
HR/HR (Human Resources), OE/OE (Order Entry), SH/SH (Sales History).
Training/ demonstration users containing the popular EMPLOYEES and
DEPARTMENTS tables
Created by: ?/demo/schema/mksample.sql
Can password be changed: Yes
Can user be dropped: YES - Drop users cascade from all production environments
CTXSYS/CTXSYS
Oracle interMedia (ConText Cartridge) administrator user
Created by: ?/ctx/admin/dr0csys.sql
TRACESVR/TRACE
Oracle Trace server
Created by: ?/rdbms/admin/otrcsvr.sql
DBSNMP/DBSNMP
Oracle Intelligent agent
Created by: ?/rdbms/admin/catsnmp.sql, called from catalog.sql
Can password be changed: Yes - put the new password in snmp_rw.ora file
Can user be dropped: YES - Only if you do not use the Intelligent Agents
ORDPLUGINS/ORDPLUGINS
Object Relational Data (ORD) User used by Time Series, etc.
Created by: ?/ord/admin/ordinst.sql
ORDSYS/ORDSYS
Object Relational Data (ORD) User used by Time Series, etc
Created by: ?/ord/admin/ordinst.sql
DSSYS/DSSYS
Oracle Dynamic Services and Syndication Server
Created by: ?/ds/sql/dssys_init.sql
MDSYS/MDSYS
Oracle Spatial administrator user
Created by: ?/ord/admin/ordinst.sql
AURORA$ORB$UNAUTHENTICATED/INVALID
Used for users who do not authenticate in Aurora/ORB
Created by: ?/javavm/install/init_orb.sql called from ?/javavm/install/initjvm.sql
PERFSTAT/PERFSTAT
Oracle Statistics Package (STATSPACK) that supersedes UTLBSTAT/UTLESTAT
Created by: ?/rdbms/admin/statscre.sql
Remember to change the passwords for the SYS and SYSTEM users immediately
after installation!
Except for the user SYS, there should be no problem altering these users to use a
different default and temporary tablespace.
69. How does one enforce strict password control? (for DBA
By default Oracle's security is not extremely good. For example, Oracle will allow
users to choose single character passwords and passwords that match their names and
userids. Also, passwords don't ever expire. This means that one can hack an account
for years without ever locking the user.
From Oracle8 one can manage passwords through profiles. Some of the things that
one can restrict:
. FAILED_LOGIN_ATTEMPTS - failed login attempts before the account is locked
. PASSWORD_LIFE_TIME - limits the number of days the same password can be
used for authentication
. PASSWORD_REUSE_TIME - number of days before a password can be reused
. PASSWORD_REUSE_MAX - number of password changes required before the
current password can be reused
. PASSWORD_LOCK_TIME - number of days an account will be locked after
maximum failed login attempts
. PASSWORD_GRACE_TIME - number of days after the grace period begins during
which a warning is issued and login is allowed
. PASSWORD_VERIFY_FUNCTION - password complexity verification script
Look at this simple example:
CREATE PROFILE my_profile LIMIT
PASSWORD_LIFE_TIME 30;
ALTER USER scott PROFILE my_profile;
70. How does one switch to another user in Oracle? (for DBA
Users normally use the "connect" statement to connect from one database user to
another. However, DBAs can switch from one user to another without a password. Of
course it is not advisable to bridge Oracle's security, but look at this example: SQL>
select password from dba_users where username='SCOTT';
PASSWORD
F894844C34402B67
SQL> alter user scott identified by lion;
User altered.
74. What is the difference between candidate key, unique key and primary key
Candidate keys are the columns in the table that could be the primary keys and the
primary key is the key that has been selected to identify the rows. Unique key is also
useful for identifying the distinct rows in the table.)
75. What is concurrency
Cuncurrency is allowing simultaneous access of same data by different users. Locks
useful for accesing the database are
a) Exclusive
The exclusive lock is useful for locking the row when an insert,update or delete is
being done.This lock should not be applied when we do only select from the row.
b) Share lock
We can do the table as Share_Lock as many share_locks can be put on the same
resource.
86. What is the Difference between a post query and a pre query
A post query will fire for every row that is fetched but the pre query will fire only
once.
107. What are the types of triggers and how the sequence of firing in text item
Triggers can be classified as Key Triggers, Mouse Triggers ,Navigational Triggers.
Key Triggers :: Key Triggers are fired as a result of Key action.e.g :: Key-next-field,
Key-up,Key-Down
Mouse Triggers :: Mouse Triggers are fired as a result of the mouse navigation.e.g.
When-mouse-button-presed,when-mouse-doubleclicked,etc
Navigational Triggers :: These Triggers are fired as a result of Navigation. E.g : Post-
Text-item,Pre-text-item.
We also have event triggers like when ?new-form-instance and when-new-block-
instance.
We cannot call restricted procedures like go_to(?my_block.first_item?) in the
Navigational triggers
But can use them in the Key-next-item.
The Difference between Key-next and Post-Text is an very important question. The
key-next is fired as a result of the key action while the post text is fired as a result of
the mouse movement. Key next will not fire unless there is a key event. The sequence
of firing in a text item are as follows ::
a) pre - text
b) when new item
c) key-next
d) when validate
e) post text
109. What are property classes ? Can property classes have trigger?
Property class inheritance is a powerful feature that allows you to quickly define
objects that conform to your own interface and functionality standards. Property
classes also allow you to make global changes to applications quickly. By simply
changing the definition of a property class, you can change the definition of all
objects that inherit properties from that class.
Yes . All type of triggers .
110. If you have property class attached to an item and you have same trigger written
for the item . Which will fire first?
Item level trigger fires , If item level trigger fires, property level trigger won't fire.
Triggers at the lowest level are always given the first preference. The item level
trigger fires first and then the block and then the Form level trigger.
111. What are record groups ? Can record groups created at run-time?
A record group is an internal Oracle Forms data structure that has a column/row
framework similar to a database table. However, unlike database tables, record groups
are separate objects that belong to the form module in which they are defined. A
record group can have an unlimited number of columns of type CHAR, LONG,
NUMBER, or DATE provided that the total number of columns does not exceed 64K.
Record group column names cannot exceed 30 characters.
Programmatically, record groups can be used whenever the functionality offered by a
two-dimensional array of multiple data types is desirable.
TYPES OF RECORD GROUP:
Query Record Group A query record group is a record group that has an associated
SELECT statement. The columns in a query record group derive their default names,
data types, and lengths from the database columns referenced in the SELECT
statement. The records in a query record group are the rows retrieved by the query
associated with that record group.
Non-query Record Group A non-query record group is a group that does not have an
associated query, but whose structure and values can be modified programmatically at
runtime.
Static Record Group A static record group is not associated with a query; rather, you
define its structure and row values at design time, and they remain fixed at runtime.
113. Can a button have icon and lable at the same time ?
-NO
120. Can you pass values to-and-fro from foreign function ? how ?
Yes . You obtain a return value from a foreign function by assigning the return value
to an Oracle Forms variable or item. Make sure that the Oracle Forms variable or item
is the same data type as the return value from the foreign function.
After assigning an Oracle Forms variable or item value to a PL/SQL variable, pass the
PL/SQL variable as a parameter value in the PL/SQL interface of the foreign function.
The PL/SQL variable that is passed as a parameter must be a valid PL/SQL data type;
it must also be the appropriate parameter type as defined in the PL/SQL interface.
Locking mode :
Specifies when Oracle Forms should attempt to obtain database locks on rows that
correspond to queried records in the form. a) immediate b) delayed
129. What are savepoint mode and cursor mode properties ? level?
Specifies whether Oracle Forms should issue savepoints during a session. This
property is included primarily for applications that will run against non-ORACLE
data sources. For applications that will run against ORACLE, use the default setting.
Cursor mode - define cursur state across transaction Open/close.
147. What are the different modes of mounting a Database with the Parallel Server ?
Exclusive Mode If the first instance that mounts a database does so in exclusive
mode, only that Instance can mount the database.
Parallel Mode If the first instance that mounts a database is started in parallel mode,
other instances that are started in parallel mode can also mount the database.
148. What are the advantages of operating a database in ARCHIVELOG mode over
operating it in NO ARCHIVELOG mode ?
Complete database recovery from disk failure is possible only in ARCHIVELOG
mode. Online database backup is possible only in ARCHIVELOG mode.
157. How many types of columns are there and what are they
Formula columns :: For doing mathematical calculations and returning one value
Summary Columns :: For doing summary calculations such as summations etc. Place
holder Columns :: These columns are useful for storing the value in a variable
159. Can you run the report with out a parameter form ?
Yes it is possible to run the report without parameter form by setting the PARAM
value to Null
161. What are the minimum number of groups required for a matrix report
The minimum of groups required for a matrix report are 4 e -----