Tuesday, October 28, 2008

Oracle One more important Questions and answers.

Difference between varchar2 and char

varchar2 – variable length character
char – fixed length character


How many rules did oracle satisfies

11 rules of Codd



Difference between dbms/rdbms/semirdbms

RDBMS – any package that satisfies 7 & above
Semi RDBMS (MS-ACCESS) – exaclty 7
DBMS – <7


Why is Oracle widely used than sqlserver ?

Oracle is platform independent. But sqlserver works only on windows and it won't support for clustering concept.



Difference between sorting and indexing

Indexing greatly affects the performance of the query. (i.e) each time we issue DML commands it is rearranged internally insert/delete/update... Hence performance will be affected. Hence generally it is advisable to index columns which are frequently used in where clause of select statement

Sorting is not a physical rearrangement where as indexing is physical rearrangement


Oracle9i new features

Timestamp – datatype
spfile – is introduced in 9i
data dictionary is maintained manually


Is it possible to create a table using procedures (PL/SQL)

Yes
CREATE OR REPLACE PACKAGE EX_CREATE_TABLE AUTHID CURRENT_USER AS
PROCEDURE P1 (N1 IN NUMBER);
END EX_CREATE_TABLE;
/


CREATE OR REPLACE PACKAGE BODY EX_CREATE_TABLE IS
PROCEDURE P1 (N1 NUMBER) IS
CUR INTEGER := 0;
CMD VARCHAR2(256);
RC INTEGER;
BEGIN
CUR := DBMS_SQL.OPEN_CURSOR;
CMD := 'CREATE TABLE (T1 NUMBER)';
DBMS_SQL.PARSE (CUR, CMD, DBMS_SQL.NATIVE);
RC := DBMS_SQL.EXECUTE (CUR);
DBMS_SQL.CLOSE_CURSOR (CUR);
EXCEPTION
WHEN OTHERS THEN
IF CUR <> 0 THEN
DBMS_SQL.CLOSE_CURSOR (CUR);
ENDIF;
END P1;
IS IT POSSIBLE TO CREATE PROCEDURES WITH SAME NAME
YES, WE CAN CREATE WITH SAME NAME WITH DIFFERENT PARAMETERS.
EG:-
PROCEDURE T1 (V1 IN VARCHAR2);
PROCEDURE T1;
PROCEDURE T1 (V1 IN NUMBER);


Is it possible to call a function and procedure in a query?

Yes, we can call the function

Eg:-
function name  func()
SQL > select func () from dual;

To find the first 3 max salary

SELECT ENAME, DEPTNO, SAL, ROWNUM FROM (SELECT ROWNUM R, ENAME, DEPTNO, SAL FROM EMP ORDER BY SAL DESC) WHERE ROWNUM <= 3

For break in records

SELECT ENAME, DEPTNO, SAL, ROWNUM FROM (SELECT ROWNUM R, ENAME, DEPTNO, SAL FROM EMP) WHERE MOD(R,9) = 0



To find nth max salary

SELECT SAL FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (SAL)) FROM EMP B WHERE B.SAL >= A.SAL)


To get the output in words

SELECT TO_CHAR (TO_DATE('1994','YYYY'),'YYYYSP') FROM DUAL;

Output  One thousand nine hundred ninety four


Delete the duplicate row in a table


DELETE FROM EMP A WHERE ROWID > (SELECT MIN (ROWID) FROM EMP B WHERE B.EMPNO = A.EMPNO)

SELECT TRUNC (SYSDATE,'MONTH')-1 FROM DUAL;

It will return previous month last date.


What is ROWID ?

Each and every row in Oracle DB will have ROWID, which is used for unique identification of rows in the table. Which is the fastest way to access the date.


What is correlated query?

Usually in the case of subquery the output of the outquery depends upon the output of the inquery.

But in the correlated query the output of the inner query depends on the outer query. Outer query is being executed for each row.


SELECT * FROM EMP WHERE ENAME IS NULL;
and
SELECT * FROM EMP WHERE ENAME = NULL;

Will the 2 statements return the same no. of rows ?

No. It will not return the same no. of rows, because NULL values cannot be compared.


Which of the following is the valid Trigger ?

1. AFTER 2. INSERT 3. UPDATE 4. DELETE

AFTER

In which part of PL/SQL you will use RAISE statement ?

1. DECLARE 2. BEGIN 3. EXECUTABLE PART 4. EXCEPTIONAL

Executable and Exceptional part


Which of the following can be used for all datatypes ?

1. To_char 2. min 3. max 4. CEIL

min and max


SELECT NVL(NULL,'NOTNULL') FROM DUAL;

NOTNULL


If I declare a variable 'a' as number datatype and not assigning any value to it then variable will be initialized to

1. 0 2. Null 3. garbage value 4. empty

NULL


What is a transaction in Oracle ?

A transaction is a logical unit of work that compromises one or more SQL statements executed by a single user. According to ANSI, a transaction begins with first executable statement and ends when it is explicitly committed or rolled back.










ORACLE KEYWORDS

TRANSACTION

A transaction is a sequence of SQL statements that Oracle treats as a single unit of work.

COMMITTING

A transaction is said to be committed when the transaction makes permanent changes resulting from the SQL statements.

ROLL BACK

A transaction that retracts any of the changes resulting from SQL statements in transaction.

SAVEPOINT

For long transactions that contain many SQL statements, intermediate markers or savepoints are declared. Savepoints can be used to divide a transaction in a smaller points.

ROLLING FORWARD

Process of applying redo log during recovery is called rolling forward.

CURSOR

A cursor is a handle (name or a pointer) for the memory associated with a specific statement. A cursor is basically an area allocated by oracle for executing the SQL statement.

Implicit cursor for single row query and Explicit cursor for multi row query.


SYSTEM GLOBAL AREA (SGA)
PROGRAM GLOBAL AREA (PGA)
DATABASE BUFFER CACHE
REDO LOG BUFFER
REDO LOG FILES
PROCESS


What are procedure, functions and packages ?

Procedures and functions consist of set of PL/SQL statements that are grouped together as a unit to solve a specific problem or perform set of related tasks.
Procedures do not return values whereas functions return only one value.
Packages provide a method of encapsulating and storing related procedures, functions, variables and other package contents.

What is database triggers ?

Database triggers are procedures that are automatically executed as a result of insert in, update to, or delete from table
:NEW and :OLD functionalities in the INSERT, DELETE and UPDATE in a table.

Create or replace trigger ARVI_DUMMY1 AFTER INSERT or DELETE or UPDATE ON ARVI_DUMMY_OUTPUT FOR EACH ROW
DECLARE
Insert into arvi_dummy_output1 values
(:new.t1, :new.t2, :new.t3);
Insert into arvi_dummy_output1 values
(:old.t1, :old.t2, :old.t3);
End;

ARVI_DUMMY_OUTPUT ARVI_DUMMY_OUTPUT1
T1 T2 T3

DELETE T1 T2 T3
:new

:old
2 2 2 - - -
3 3 4 2 2 2
4 3 2 - - -
3 3 2
- - -
4 3 2
ARVI_DUMMY_OUTPUT
T1 T2 T3

INSERT
88 88 88
ARVI_DUMMY_OUTPUT1

T1 T2 T3

:new
:old
88 88 88
- - -
ARVI_DUMMY_OUTPUT
T1 T2 T3

UPDATE
88
77 88
88

ARVI_DUMMY_OUTPUT1

T1 T2 T3

:new

:old
77 88 88
88 88 88
What are the various master and detail relationships
ISOLATED:- The master can be deleted when the child is existing
NON-ISOLATED:- The master cannot be deleted when the child is existing
CASCADING:- The child gets deleted when the master is deleted


SEQUENCES

CREATE SEQUENCE
[Increment by n]
[Start with n]
[{maxvalue n | nomaxvalue}]
[{minvalue n | nominvalue}]
[{cycle | nocycle}]
[{cache n | nocache}];

Eg:- create sequence dept_deptid_seq
increment by 10
startwith 120
maxvalue 9999
nocache
nocycle;

ALTER SEQUENCE
[Increment by n]
[{maxvalue n | nomaxvalue}]
[{minvalue n | nominvalue}]
[{cycle | nocycle}]
[{cache n | nocache}];

Eg:- alter sequence dept_deptid_seq
increment by 20
maxvalue 99999
nocache
nocycle;

DROP SEQUENCE ;
select sequence_name, min_value, max_value, increment_by, last_number from USER_SEQUENCES

INDEX

An Oracle server index is a schema object that can speed up the retrieval of rows by using a pointer. Indexes can be created explicitly or automatically. When the drop a table, the corresponding indexes are also dropped.

Automatically: A unique index is created automatically when you define a PRIMARY KEY or UNIQUE constraint in a table definition.

Manually: Users can create nonunique indexes on columns to speed up access to the rows.

CREATE INDEX ON (column [, column]...)

DROP INDEX ;

Eg:- To improve the speed of query access to the LAST_NAME column in the EMPLOYEES table.
CREATE INDEX emp_last_name_idx ON EMPLOYEES (last_name);

select ic.index_name, ic.column_name, ic.column_position, ix.uniqueness FROM USER_INDEXES ix, USER_IND_COLUMNS ic WHERE ic.index_name = ix.index_name AND ic.table_name = 'EMPLOYEES';
Function-Based Indexes
• A function-based index is and index based on expressions
• The index expression is built from table_columns, constants, SQL funtions, and user-defined funtions.
Eg:- CREATE INDEX upper_dept_name_idx ON departments (UPPER (department_name));

SYNONYMS
CREATE [PUBLIC] SYNONYM FOR object;
Eg:- To create a synonym for the DEPT_SUM_VU view
CREATE SYNONYM d_sum FOR dept_sum_vu;

DROP SYNONYM d_sum;
-------------------------------------------------------------------------------------------------------------
CREATING USERS
CREATE USER IDENTIFIED BY ;
Eg:- CREATE USER scott IDENTIFIED BY tiger;

CHANGING PASSWORD
ALTER USER scott IDENTIFIED BY lion;

SYSTEM PRIVILEGES
1. CREATE SESSION
2. CREATE TABLE
3. CREATE SEQUENCE
4. CREATE VIEW
5. CREATE PROCEDURE

USER SYSTEM PRIVILEGES
GRANT PRIVILEGE [, PRIVILEGE...] TO user [, user/role, PUBLIC...];
Eg:- GRANT create session, create table, create sequence, create view TO scott;

CREATING AND GRANTING PRIVILEGES TO A ROLE
• Create a role => CREATE ROLE manager;
• Grant Privileges to a role => GRANT create table, create view TO manager;
• Grant a role to users => GRANT manager TO DEHAAN, KOCHIHAR;

OBJECT PRIVILEGES
GRANT object_priv [(columns)]
ON object
TO {user/role/PUBLIC}
[WITH GRANT OPTION];
• To grant query privileges on the employees table:-
GRANT select
ON employees
TO sue, rich;
• To grant privileges to update specific columns to users and roles:-
GRANT UPDATE (department_name, location_id)
ON departments
TO scott, manager;
• To give a user authority to pass along privileges
GRANT select, insert ON departments TO scott WITH GRANT OPTION;
• To allow all users on the system to query data from Alice's departments table
GRANT select ON alice.departments TO PUBLIC;

TO REVOKE OBJECT PRIVILEGES
REVOKE {privilege [, privilege...]/ALL}
ON object
FROM {user [, user...]/role/PUBLIC}
[CASCADE CONSTRAINTS];
Eg:- REVOKE select, insert ON departments FROM scott;

DATABASE LINKS
CREATE PUBLIC DATABASE LINK hq.acme.com USING 'sales';

SELECT * FROM emp@hq.acme.com;

THE SET OPERATORS
UNION

All distinct rows selected by either query
SELECT employee_id, job_id from employees
UNION
SELECT employee_id, job_id from job_history;
UNION ALL

All rows selected by either query, including all duplicates.
SELECT employee_id, job_id, department_id FROM employees
UNION ALL
SELECT employee_id, job_id, department_id FROM job_history
ORDER BY employee_id;
INTERSECT

All distinct rows selected by both queries
SELECT employee_id, job_id FROM employees
INTERSECT
SELECT employee_id, job_id FROM job_history;
MINUS

All distinct rows that are selected by the first SELECT statement and not selected in the second SELECT statement
SELECT employee_id, job_id FROM employees
MINUS
SELECT employee_id, job_id FROM job_history;


select colum, group_function from table
[where condition]
[group by group_by_expression]
[having group_condition]
[order by column];

CREATE OR REPLACE TRIGGER BEFORE/AFTER INSERT/UPDATE/DELETE ON FOR EACHROW

CREATE OR REPLACE PROCEDURE (parameters) AUTHID current_user IS
Begin
.......
.......
.......
End;


CREATE OR REPLACE FUNCTION (parameters) RETURN IS
BEGIN
......
......
END;

select a.a1, a.a2, b.b1, b.b2 from a, b where a.a1(+) = b.b1;
CREATE OR REPLACE PACKAGE AUTHID current_user AS
......
......
END ;

CREATE OR REPLACE PACKAGE BODY AS
......
......
......
END ;

List of Placement Agencies

MUMBAI -- 400021
BRANCH AT WORLI

2 AXIOM MANAGEMENT CONSULTANTS 2872641, 2844949
DBS BUSINESS CENTRE,RAHEJA CENTRE
NARIMAN POINT,MUMBAI -- 400021

3 KEY BUSINESS CENTRE 2825846 , 2831087
206,TULSIANI CHAMBERS.NARIMAN POINT 2833298
MUMBAI -- 400021

4 DATAMATICS STAFFING SERVICES 2880541 TO 0544
EUCHARISTIC CONGRESS BLDG NO.3 FAX - 2850828
5, CONVENT STREET COLABA
MUMBAI -- 400039

5 EXECUTIVE ACCESS 2154322 / 2154323
17.ARCADE BUILDING.WORLD TRADE CENTRE 2154324
CUFF PARADE COLABA MUMBAI -- 400005 FAX - 2154325

6 PERSONNEL SEARCH SERVICES 2874665, 2041523
5 KARTAR BHAVAN COLABA CAUSEWAY COLABA 2041468
MUMBAI -- 400005 ( BRANCHES AT FORT,PRABHADEVI )

7 SHEEL INTERNATIONAL 2830952 / 2834446
6/B KULSUM TERRACE 3rd FLOOR 2856102 / 2856103
NEAR ELECTRIC HOUSE,WALTEN ROAD
COLABA MUMBAI -- 400005

FORT & CHURCHGATE

8 AIMS MANAGEMENT CONSULTANTS 2048060
302,SHREEJI CHAMBERS, 60 JANMBHOOMI MARG FAX -- 2836341
FORT MUMBAI -- 400001

9 CBS PLACEMENTS 2070797 / 2075440
GR.FLOOR K.K. CHAMBERS P.T. ROAD 2077705
NEAR HANDLOOM HOUSE FORT FAX -- 2074821
MUMBAI -- 400001

10 CONNEXIONS 2071489 / 2074538
32 / 33 MAHENDRA CHAMBERS DR. D. N ROAD 2075376 / 2076517
NEAR C.S.T FORT MUMBAI -- 400001 FAX -- 2077029

11 DAVER'S PLACEMENT 2632954 / 2617198
231, COMMASARIAT BLDG. 4th FLOOR 2614316
NEAR HANDLOOM HOUSE DR.D.N.ROAD
FORT MUMBAI -- 400001

12 DEOBHAKTA CONSULTANTS 2048067 / 2049737
38, PROSPECT CHAMBERS ANNEXE
317 / 21 DR.D.N.ROAD FORT MUMBAI -- 400001

13 KTA PLACEMENTS 2071117 / 2071689
74/ 75. 2nd FLOOR MAHENDRA CHAMBERS 2071690
D.N.ROAD,NEAR C.S.T. FORT MUMBAI -- 400001

14 MANPOWER SERVICES 2615983
402, CHANDAN CHAMBERS
138. MODI STREET, FORT
MUMBAI -- 400001

15 MARKET SOLUTIONS 2004332 / 2004333
EMPIRE HOUSE, 3rd FLOOR. A.K.NAYAK MARG
OPP NEW EXCELSIOR CINEMA. FORT
MUMBAI -- 400001

16 MEGA PROFILE 2676269 / 2658149
11,MOGUL BLDG GROUND FLOOR
25.VAJU KOTAK MARG FORT
MUMBAI -- 400001

17 NATIONAL PLACEMENT SERVICE 2614435
16,POLICE COURT LANE. FORT FAX -- 2614440
BEHIND OLD HANDLOOM HOUSE
MUMBAI -- 400001

18 PERFECT PERSONNEL 2874032 / 2047656
GROUND FLOOR, DOL BIN SHIR BLDG
JANMABHOOMI MARG FORT
MUMBAI -- 400001

19 PERSONNEL RESOURCES 2610078
5 th FLOOR,FINE MANSION FAX -- 3879149
POLICE COURT LANE,BEHIND HANDLOOM HOUSE
FORT MUMBAI -- 400001

20 PERSONNEL SELEXIONS 2662724 / 2665593
3 rd FLOOR SAMBAVA CHAMBERS P.M.ROAD
OPP BOMBAY STORES, FORT MUMBAI -- 400001
BRANCHES AT COLABA,PRABHADEVI

21 PROFESSIONAL MAN POWER SERVICES 2656576 / 2656329
PRAKASH CHAMBERS, GROUND FLOOR 2650334
BLUE CHIP BUSINESS PREMISES. CABIN NO.2
NAGINDAS MASTER ROAD FORT
MUMBAI -- 400023

22 RIGHT CONNEXIONS 2610418
3.NATIONAL HOUSE,RAGHUNATH DADAJI STREET
NEAR HANDLOOM HOUSE, FORT MUMBAI -- 400001

23 SECRETARIAL SELECT 2662578 / 2660454
2 nd FLOOR SONAWALA BLDG 19, BANK STREET FAX -- 2871441
FORT MUMBAI -- 400023

24 SHRUSHTI MANAGEMENT SERVICES 2663220 / 2652523
1.PRIMEROSE CHAMBERS J.D.LANE
BEHIND OLD CUSTOM HOUSE, FORT
MUMBAI -- 400001

25 TALENT UNLIMITED 2692061 / 2697746
204, CHANDAN CHAMBERS 138 MODI STREET 2619695
FORT MUMBAI -- 400001 FAX -- 2693184

26 TOTAL SOLUTIONS 2814547
3 rd FLOOR KERMANI BLDG OPP CITI BANK FAX -- 2812128
27. P.M.ROAD FORT, MUMBAI -- 400001


27 YASH MANAGEMENT SERVICES 2677353
19 / 16--D FORT MANSION,BRITISH HOTEL LANE
OFF MUMBAI SAMACHAR MARG.FORT
MUMBAI -- 400001

28 WESTERN PLACEMENT SERVICES 2836175 / 2873931
106, ESPLANDE MANSION 144, M.G.ROAD
FORT, MUMBAI -- 400001

29 ACCESS PLACEMENTS 2089272 / 2068740
4th FLOOR,BIRLA MTUSHREE HALL BLDG
12,MARINE LINES MUMBAI -- 400020

30 CHARACTER SKETCHES 2843100 / 2049032
5th FLOOR EROS BUILDING
CHURCHGATE, MUMBAI -- 400020

LAMINGTON ROAD & TARDEO

31 FACT PERSONNEL PVT LTD 3050170 / 3003572
OFFICE NO 26 BLDG NO.3, 11 th FLOOR 3082485
NAVJEEVAN SOCIETY OPP MINERVA CINEMA FAX -- 3083515
MUMBAI CENTRAL ( E ) MUMBAI -- 400008

32 MANGALAM PLACEMENT PVT LTD 3011199 / 3072233
OFFICE NO.12 BLDG NO.3, 11 th FLOOR 3079269
NAVJEEVAN SOCIETY OPP MINERVA CINEMA FAX -- 3092211
MUMBAI CENTRAL ( E ) MUMBAI -- 400008

33 MAKANDAR'S SERVICES 4929975 / 4954540
OFFICE NO.43, 5 th FLOOR A.C. MARKET BLDG FAX -- 4935585
TARDEO, MUMBAI -- 400034

34 THE CONCEPT 3674433 / 3618319
67.WHITE HALL,KEMP CORNER 3614423 / 24
143.AUGUST KRANTI MARG. MUMBAI -- 400036

DADAR, LALBAG & WORLI TELEPHONE NO.

35 CORPORATE PERSONNEL 4315312
6/ 7. UPENDRA NAGAR,OPP MANISH MARKET
SENAPATI BAPAT MARG DADAR ( W )
MUMBAI -- 400028

36 DECON MANANGEMENT SERVICES 4115386, 4129227
1st FLOOR SHRI KRISHNA BLDG 4132206
SANT GADGE MAHARAJ PATH FAX -- 4183737
OFF DADASAHEB PHALKE ROAD,DADAR(E)
MUMBAI -- 400014

37 MASCON CONSULTANTS 4112188, 4144692
2nd FLOOR SHRI KRISHNA BLDG FAX -- 4156125
SANT GADGE MAHARAJ PATH
OFF DADASAHEB PHALKE ROAD,DADAR(E)
MUMBAI -- 400014

38 PERFECT SOURCE 4221819, 4311605
7, DAVE'S ACADEMY.MOTI BHAVAN 4376242, 4321007
DR.D'SILVA ROAD NEAR RAILWAY STATION
DADAR (WEST) MUMBAI -- 400028



39 PERSONNEL SEARCH SERVICES 4377272
308,3rd FLOOR. PRABHADEVI IND ESTATE FAX -- 4362644
408, VEER SAVARKAR MARG. PRABHADEVI
MUMBAI -- 400025
BRANCHES AT COLABA, FORT

40 PROACTIVE MANAGEMENT CONSULTANTS 4118070, 4132523
5.DASTOOR WADI,OPP HOTEL AVON RUBY FAX -- 4132523
NAIGOAN CROSS ROAD DADAR (E)
MUMBAI -- 400014

41 PROFESSIONAL MANPOWER CONSULTANCY 4324261
403."A" WING GURUKRIPA,OPP PLAZA CINEMA
N.C.KELKAR ROAD DADAR (W)
MUMBAI -- 400028

42 PROGESSIVE PLACEMENT 4370595, 4314651
GR.FLOOR ABDUL KADAR MANZIL
OPP PORTUGUSE CHURCH GOKHALE ROAD.
DADAR (W) MUMBAI -- 400028
BRANCHES AT THANE, DOMBIVALI

43 RESUME SERVICES 4311026
1 / 25.CHANDAN BLDG OPP PORTUGUISE CHURCH
GOKHALE ROAD DADAR (W) MUMBAI -- 400028
BRANCH AT THANE

44 SIGMA MANPOWER MKTG PVT LTD 4111585
411.HIND RAJASTHAN BLDG,4 th FLOOR
DADASAHEB PHALKE ROAD DADAR( E)
MUMBAI -- 400014
BRANCHES AT BHANDUP,DOMBIVALI, GOREGAON

45 SEARCH & FIND
A / 301. 87 SHANTI KUNJ NEAR HOTEL AVON RUBY
NAIGOAN CROSS ROAD DADAR ( E )
MUMBAI -- 400014

46 APEX CONSULTANTS 4133338, 4133375
418 / 419 RANGOLI TIME COMPLEX
4th FLOOR DR. AMBEDKAR ROAD
NEAR HOTEL SHANTIDOOT PAREL ( E )
MUMBAI -- 400012

47 BOSS PLACEMENTS 4184280 / 4113786
SHOPPING CENTRE, NEAR PAREL RLY STATION
PAREL ( E ) MUMBAI -- 400012

48 CAREER SEARCH CONSULTANTS 4151173
JIMMY CHAMBERS, 2nd FLOOR.
NEAR ELPHISTON RLY BRIDGE
PAREL STATION ROAD. PAREL ( E )
MUMBAI -- 400012
BRANCHES AT THANE 5405034,KALYAN 312846

49 RELIEF CONSULTANY
NEAR GANESH CINEMA,ANANT MALVANKAR PATH
CHINCHPOKALI ( E) MUMBAI -- 400012
50 ABC CONSULTANTS PVT LTD 4981123
302,MANISH COMMERCIAL CENTRE FAX --4963963
DR.ANNIE BESANT ROAD WORLI
MUMBAI -- 400025
BRANCH AT NARIMAN POINT
51 GLOBAL SEARCH 4961633
HANSRAJ PRAGJI BLDG, 1st FLOOR FAX -- 4961635
83 C DR.E.MOSES ROAD NEAR WORLI NAKA
MUMBAI -- 400018

52 SHILPUTSI CONSULTANTS 4379611 / 4370135
FLAT NO.170, BLDG NO.11 ADARSH NAGAR
NEAR CENTURY BAZAR WORLI.
MUMBAI -- 400025
MATUNGA, MAHIM & BANDRA

53 S & S MANPOWER CONSULTANTS
1 / 7 TUNGEKAR BLDG, OPP AJAY SHOPPING CENTRE
MATUNGA ROAD,MATUNGA ( W ) MUMBAI -- 400016

54 ASHWAMEDH CONSULTANTS 4373887
26, 3rd FLOOR SWASTIK HOUSE, TAIKALWADI ROAD FAX - 4316128
NEAE RAJA BADHE CHOWK, MAHIM ( W )
MUMBAI -- 400016

55 JOB TRACK MANAGEMENT SERVICES 4464508
8. NAGREE TERRACE SONAWALA AGIARY LANE
BEHIND CANNOSA CONVENT SCHOOL MAHIM ( W )
MUMBAI -- 400016

56 EXECUTIVE SEARCH SERVICE 6454775 / 6443128
133, ST.CYRIL ROAD BANDRA ( W )
MUMBAI -- 400050

57 MANAGEMENT SYSTEMS & SERVICES 6514449 / 6514450
FLAT NO. 12 SEA VIEW BLDG.
23 BANDRA RECLAMATION ROAD BANDRA ( W )
OPP. O.N.G.C QUARTERS. MUMBAI -- 400050

58 NETWORK PLACEMENTS 6438777
6. JAIN CHAMBERS, ABOVE STAR AUTO GARRAGE
S.V.ROAD BANDRA ( W ) MUMBAI -- 400050

59 PATIL CONSULTANCY SERVICES 6423434 / 6411256
GLAMOUR BLDG. OPP GURU NANAK PARK
16 / 29 th ROAD JUNCTION.TURNER ROAD
BANDRA ( W ) MUMBAI -- 400050

60 PROFESSIONAL MANPOWER SERVICES 6410688 / 6443621
SHOP NO.11, NUTAN NAGAR
OPP SAHAKARI BHANDAR, GURU NANAK ROAD
BANDRA ( W ) MUMBAI -- 400050
BRANCH AT FORT

WESTERN SUBURBS

61 IMPACT MANAGEMENT SERVICES 6050426 / 6040536
VIRANI MANZIL, BEHIND BANK OF BARODA FAX -- 6040424
4 th ROAD KHAR (W) MUMBAI -- 400052

62 PERSONNEL SELECT 6457831 / 32 / 33
1st FLOOR, MAYA BUILDING.14 th ROAD
NEAR TELEPHONE EXCHANGE KHAR ( W )
MUMBAI -- 400052

63 BUSINESS ENHANCES 6490115 / 6494316
4.ANJU SHOPING CENTRE, TILAK ROAD 6495349
SANTACRUZ ( W ) MUMBAI -- 400054 FAX - 6040359

64 CEE PEE ASSOCIATES 6183197 / 6140026
C / 1. G 11 KHIRA NAGAR S.V.ROAD
SANTACRUZ ( W ) MUMBAI -- 400055

65 SINCLUS CONSULTANCY 6054012 / 13
2. GURU ASHISH BLDG. NORTH AVENUEROAD
SANTACRUZ ( W ) MUMBAI -- 400054

66 CLASSIC MANAGEMENT SERVICE 6149198 / 6113336
CITIZEN CENTRE,DAMODAR BHAVAN 6184834
OPP VILE PARLE RAILWAY STATION
VILE PARLE ( W ) MUMBAI -- 400056

67 SUPER SECRETARIES 6051133
MARKET MOVERS, 201 KUSUM VILLA 2 nd FLOOR
S.V.ROAD KHAR ( W ) MUMBAI -- 400052

68 TALENT PLACEMENTS 6492836
NAGREE BLDG,STATION ROAD
SANTACRUZ ( W ) MUMBAI -- 400054

69 PRO ACTIVE MANAGEMENT CONSULTANTS 6718007 / 6716650
74. JUHU SUPREME SHOPPING CENTRE FAX -- 6252574
OPP U.T.I JVPD SCHEME JUHU
GULMOHAR CROOSS ROAD NO.9
MUMBAI -- 400049

70 ACCORD SELECTION SERVICES 6287682 / 6283616
A / 30 LARAM BUSINESS CENTRE, 24 S.V.ROAD
OPP PLATFORM NO.6 ANDHERI ( W )
MUMBAI -- 400058

71 CAREER GRAPH CONSULTANCY 8376710 / 8376712
18, RADHA BLDG. TELLI LANE 8389859
ANDHERI ( E ) MUMBAI -- 400069 FAX -- 8373559

72 CORPORATE PRIDE 6243340
6 / D 158. PULAKIT BUILDING
OPP KALAPRADERSHANI PARK D.N.NAGAR
ANDHERI ( W ) MUMBAI -- 400053

73 HUMAN RESOURCES BANK 8377718
7.PALMLANDS,CHAKALA.NEAR CIGGARATE
FACTORY. KURLA ANDHERI ROAD.ANDHERI ( E )
MUMBAI -- 400099

74 INTERACT PLACEMENT 6262685
B / 26. TARAPORE GARDEN, NEW LINK ROAD
ANDHERI ( W ) MUMBAI -- 400052

75 MAP CONSULTANCY SERVICES 8572653 / 8572659
A-- 503 SOLARIS 1. OPP L& T GATE NO.6 8572671
SAKI VIHAR ROAD. POWAI MUMBAI -- 400072
76 NOBLE OPPORTUNITES 8386837
5. HARIPAD SOCIETY,NEAR JAY-VIJAY SOCIETY
ANDHERI SAHAR ROAD. ANDHERI ( E )
MUMBAI -- 400099

77 PROFILE 8367871
503 / 504. SHITAL APARTMENTS
BEHIND GODFRY PHILIPHS. CHAKALA
ANDHERI ( E ) MUMBAI -- 400099

78 RITE CHOICE CONSULTANCY PVT LTD 8388465
18. NITYANAND NAGAR NEAR RLY STATION
ANDHERI ( E ) MUMBAI -- 400069

79 R.S.PLACEMENTS 6240801 / 6703123
28,J.D.SAWANT BLDG. J.P.ROAD
OPP RAJ OIL MILL. ANDHERI ( W )
MUMBAI -- 400058

80 SHARP SELECTION SERVICES 8234446
4.TIWARI PREMISES,TELLI LANE FAX -- 8381293
BEHIND SAIWADI POLICE STATION, ANDHERI ( E )
MUMBAI -- 400069

81 SMART SEARCH 8328484 / 8328600
232, 2nd FLOOR. ADARSH IND ESTATE
GATE NO.2 NEAR CHAKALA CIGGARATE FACTORY
KURLA ANDHERI ROAD MUMBAI -- 400099

82 STOP SEARCH & PLACEMENTS 8513464
2 /5.CHIRAGUDDIN COMPLEX, SAKINAKA FAX -- 8516104
OPP LATHIA RUBBER CO ANDHERI ( E )
MUMBAI -- 400072

83 TALENT TRACKERS
35 / 1383 JAI JAWAN SOCIETY
OPP D.N.NAGAR POLICE STATION
ANDHERI ( W ) MUMBAI -- 400053

84 UXLMANAGEMENT SERVICES 8881227 / 8897522
5.GROUND FLOOR,SAHIBA APARTMENTS
NEXT TO MALAD POLICE STATION
UNDERAI ROAD VIA S.V.ROAD
MALAD ( W ) MUMBAI -- 400064

85 GLOBAL PLACEMENTS 8737178
D - 18 KUMUDNAGAR S.V.ROAD GOREGAON ( W ) FAX -- 8730891
MUMBAI -- 400104

86 EMPLOYMENT MANPOWER CENTRE 8745372 / 8721355
7A,GROUD FLOOR. KIRAN INDUSTRIAL ESTATE
M.G.ROAD GOREGAON ( W ) MUMBAI -- 400062

87 SHREE MANAGEMENT SERVICES 8755612
4 /A GOLDEN APARTMENTS, M.G.ROAD
GOREGAON( W ) MUMBAI -- 400090

88 SIGMA MANPOWER MARKETING PVT LTD 8726869
3 / 1, RAJENDRA PARK STATION ROAD
BEHIND NALANDA SHOPPING CENTRE
GOREGAON ( W ) MUMBAI -- 400062

89 JOB SECURA 8936621
403. TOP MARIAM COLONY L.M.ROAD
NEAR MARIE IMACULA SCHOOL BORIVALI ( W )
MUMBAI -- 400103


90 JYOTI PLACEMENT SERVICES 8942173 / 8934130
205 / A RAJ TOWER , 2nd FLOOR FAX --- 8959112
NEAR SILVER COIN HOTEL I.C.COLONY
BORIVALI ( W ) MUMBAI -- 400103
CENTRAL SUBURBS

91 QUICK PLACEMENTS PVT LTD 5116821 / 5786031
SHOP NO.4, PARVATI SADAN TILAK ROAD FAX -- 5786032
NEAR HOTEL OMPRAKASH GHATKOPAR ( E )
MUMBAI -- 400077

92 ROHAN ENTERPRISES 51469952
5. INDRADEEP SOCIETY, NEAR HOTEL AIRWAYS FAX -- 5143335
L.B.S MARG GHATKOPAR ( W )
MUMBAI -- 400086

93 PERSONNEL CONSULTANCY 5671537
116, BASEMENT STATION PLAZA. STATION ROAD
BHANDUP ( W ) MUMBAI -- 400078

94 SIGMA MANPOWER MKT PVT LTD 5903136
C /1012 STATION PLAZA,STATION ROAD
BHANDUP ( W ) MUMBAI -- 400078

95 ADROIT MANAGERS 5905669 / 70
14. PATEL BLDG, GANESH PADA ROAD
MULUND ( W ) MUMBAI -- 400080

96 MANAGEMENT CONSULTANY SERVICES 5603086 / 5642675
32. APSARA, DEVIDAYAL ROAD. MULUND ( W )
MUMBAI -- 400080

97 PRIME PLACEMENT 5694817 / 5605241
68. KADAM PADA, NEAR MUNICIPAL HOSPITAL 5905437
DR. RAJENDRA PRASAD ROAD MULUND ( W ) FAX -- 5694817
MUMBAI -- 400080

98 SAGAR PLACEMENT 5900645 / 5909137
9.DHIRAJ APARTMENTS,JATASHANKAR DOSA MARG
NEAR RAILWAY STATION MULUND ( W )
MUMBAI -- 400080

THANE TELEPHONE NO.

99 AK PLACEMENT CONSULTANT PVT LTD 5330988 / 5438143
106, PATKAR HOUSE. LOHAR ALI FAX -- 5361780
CHENDANI, THANE ( W ) -- 400601

100 CHOICE PLACEMENT 5400725 / 5434001
BANE BUSINESS CENTRE KRISHNA KUTIR 5373971
NEAR BEDEKAR HOSPITAL, RAM MARUTI X LANE NO.3
THANE ( W ) -- 400602

101 G.K.ASSOCIATES 5422671 / 5424107
B / 11 RAJ DARSHAN, JOSHI CHAMBERS
OPP PLATFORM NO .1 THANE ( W ) -- 400602

102 JOB SELECTION 5349925
JOSHI BLDG BASEMENT OPP DAMODAR APPT
COLLEGE ROAD, BEHIND ASHOK CINEMA
THANE -- 400601


103 NICHE CONSULTANCY 5423151 / 5424321
401, NAVRANG ARCADE. NEAR ALOK HOTEL 5426155
GOKHALE ROAD THANE ( W ) -- 400602

104 OXFORD PLACEMENT 5438863 / 5375198
207. 3rd FLOOR, SIDDARTH TOWER
NEAR KHANDELWAL SWEETS.
THANE ( W ) -- 400601

105 RAJESH PLACEMENT 5410397
SUMAN BUSINESS CENTRE JOSHI BLDG
R.S.ROAD, NEAR ASHOK CINEMA
THANE ( W ) -- 400601

106 REACTION 5385857
412, PARADISE TOWER . OPP ALOK HOTEL
GOKHALE ROAD THANE ( W ) -- 400602
BRANCHES AT DADAR, DOMBIVALI

107 RESUME SERVICES 5415337
5 th FLOOR INDIRA SMRUTI, TEMBHI NAKA
THANE ( W ) -- 400601
BRANCH AT DADAR

108 SEARCH PLACEMENT 5433151 / 5415704
1, BASEMENT . GANESH TOWERS
NEAR PLATFORM NO 1, THANE ( W ) -- 400602

109 SATGURU ENTERPRISES 5427655 / 5428082
JUPITER BUSINESS CENTRE, MASUNDA BLDG
OPP OLD MUNICIPAL BLDG, STATION ROAD
THANE ( W ) -- 400601

110 STAR EMPLOYMENT GUIDE 5361778
NAPHADE BUSINESS CENTRE, 1st FLOOR.
SIDHART TOWERS, OPP HOTEL TIP TOP
NEAR TO KHANDELWAL'S SHOP
THANE ( W ) -- 400601

111 TWENTI -- FIRST CENTURY CONSULTANTS 5404376 / 5423060
28, GANESH TOWER. GROUND FLOOR FAX -- 5406359
OPP PLATFORM NO. 1 THANE ( W ) -- 400602

112 U -- NEED PLACEMENT SERVICES 5448337
1 st FLOOOR, NAGARE BLDG. BHANDAR ALI FAX -- 5332849
OPP PRABHAT CINEMA, THANE ( W ) -- 400601

113 V -- HELP CONSULTANCY 5428724
7.GROUND FLOOR, DAMODAR APARTMENTS FAX -- 5332849
COLLEGE ROAD BEHIND ASHOK CINEMA
THANE ( W ) -- 400601

114 VIJAYA ENTERPRISES 5428724
OM SWAMI KRIPA BLDG, BHANDAR ALI FAX -- 5332849
OPP PRABHAT CINEMA. THANE ( W ) -- 400601

115 YASH PLACEMENT 5407049
FLAT NO 95, 2 nd FLOOR."A" WING
RAJDEEP SOCIETY, GOKHALE ROAD
NEAR MALHAR CINEMA THANE ( W ) -- 400602

AMBERNATH
116 QUICK PLACEMENT 683763 / 682948
4 & 5 NANDI APARTMENTS SHIVDHAM COMPLEX
NEAR RAILWAY STATION AMBERNATH -- 421501

IMPORTANT WEBSITES:

IMPORTANT WEBSITES:

Legal Affairs.
www.cyberlawindia.com
www.india-laws.com
www.lawinfo.com
www.lawsinindia.com
www.vakilno1.com
www.indiapropertylaws.com
www.courtsjudgements.com
www.lawinc.com
www.icj-cij.org
www.legiz.com
www.naavi.com
------------------------------------------
Contests.
www.hungama.com
www.ticklewit.com
www.contests2win.com
www.lycosasia.com
www.contestguide.com
www.2000photocontests.com
www.supercontest.com
www.huronline.com
www.beaniemania.com
www.contestworld.com
www.bluestreakcontest.com
www.artcontest.com
www.indiainfoline.com
www.computerdrawing.com
www.sweepstakesonline.com
www.guests.com
www.poetrytodayonline.com
www.imca.com
www.bbbonline.com
www.funnypages.com
www.dreamscape.com
------------------------------------------
Cricket.
www.total-cricket.com
www.cricinfo.com
www.cricket.org
www.go4cricket.com
www.khel.com
www.cricket.org
www.cricketnyou.com
www.clickcricket.com
www.thatscricket.com
www.magiccricket.com
www.cricketline.com
www.yehhaicricket.com
www.cricketnext.com
------------------------------------------
Finance.
www.finsights.com
www.walle[how wude!]ch.com
www.moneycontrol.com
www.myiris.com
www.stockmarkit.com
www.economywatch.com
www.equitymaster.com
www.indiainfoline.com
www.sharebazaar.com
www.kotakstreet.com
www.5paisa.com
www.indiabulls.com
www.dhan.com
www.starmarkettips.com
www.paisapower.com
www.nyse.com
www.nasdaq.com
www.nse-india.com
www.sebi.com
www.khel.com
www.pcquote.com
www.stockmaster.com
www.xe.net/currency
www.motilaloswal.com
www.mutualfundsindia.com
www.rrfinance.com
www.sharekhan.com
www.rupeesaver.com
www.ingsavingtrust.com
www.icicidirect.com
www.unittrustofindia.com
www.licmutual.com
www.bajajcapital.com
www.kotakmahindra.com
www.ebizbirlaglobal.com
www.creditcapitalamc.com
-----------------------------------------------

E-Greetings.
www.123greetings.com
www.3greetings.com
www.greetings.jagran.com
www.clubgreetings.com
www.archiesonline.com
www.hallmark.com
www.cardbymail.com
www.dgreetings.com
www.bluemountain.com
www.castlemountain.com
www.bharathgreetings.com
----------------------------------------------
Education.
www.egurucool.com
www.schoolcircle.com
www.netvarsity.com
www.onlinevarsity.com
www.shiksha.com
www.buckleyourshoe.com
www.freeskills.com
www.smartforce.com/smb
www.examsonline.com
www.competitionmaster.com
www.mastertutor.com
www.zeelearn.com
www.netprotraining.com
www.careerlauncher.com
www.classteacher.com
www.gurukulonline.com
www.iln.net
www.esaras.com
www.lycoszone.com
www.pinkmonkey.com
www.schoolsofcalcutta.com
www.entranceguru.com
www.pentafour.com
www.Qsupport.com
www.intelsyseducation.com
www.niit.com
www.aptech.com
www.institute.net
www.indiaedu.com
www.educationbangalore.com
www.upsc.gov.in
www.ed.gov
www.educationworld.com
www.nativechild.com
www.educationtimes.com
www.chemketaonline.com
www.getsmartonline.com
www.fastboot.scom
www.batchmates.com
www.fluentzy.com
www.15-21.com
www.teenfunda.com
www.sparkinglearning.com
www.zipahead.com
www.wiltiky.com
www.bostonci.com
www.sophiaopp.org
www.mindzones.com
www.kaplancollege.com
www.tutor4computer.com
www.talentduniya.com
www.worlduonline.com
www.englishpractice.com
www.barkeley.edu
www.utexas.edu
www.mit.edu
www.umich.edu
www.uiuc.edu
www.upenn.edu
www.wisc.edu
www.harvard.edu
www.cornell.edu
www.unc.edu
www.education-world.com
www.novell.com
www.gnacademy.org
www.shawguides.com
www.ias.org
www.apple.com
www.classroom.net
www.allindia.com
www.funbrain.com
www.petersons.com
www.educationplanet.com
www.discoveryschool.com
www.eduplace.com.com
www.free-ed.net
-----------------------------------------------------------------
Jobs.
www.naukri.com
www.3p-lobsearch.com
www.career1000.com
www.careerindia.com
www.employindia.com
www.indianjobs.com
www.placementindia.com
www.placementpoint.com
www.timesjobsandcareers.com
www.winjobs.com
www.redforwomen.com
www.go4careers.com
www.indiaventures.com
www.indiagateway.com
www.jobsahead.com
www.alltimejobs.com
www.careerage.com
www.headhunters.net
www.monster.com
www.careers.org
www.eresumes.com
www.careerxroads.com
www.nationjob.com
www.jobweb.com
www.aidnjobs.com
www.careerforyou.com
www.careergun.com
www.go4careers.com
www.lobs.itspace.com
www.joboptions.com
www.careermosaic.com
www.jobconnection.com
www.bestjobsusa.com
www.careerpath.com
www.americasemployers.com
www.job-interview.net
www.geojobs.bizland.com
www.job-hunt.org
www.e-netindia.com
www.mykeystone.com
www.gutterspace.com
www.netguide.com
www.tamilnadustate.com
www.cweb.com
www.espan.com
www.jobcurry.com
www.skillsandjobs.com
www.cioljobs.com
www.lampen.co.nz

--------------------------------------------------------------
Women.
www.womeninfoline.com
www.sitagita.com
www.smartbahu.com
www.feminaindia.com
www.icleo.com
www.women.com
www.rebelleworld.com
www.prerana.com
www.sewa.com
www.evetimes.com
www.brideandhome.com
www.wcd.nic.in
www.indiaw2w.com
www.pyar.cjb.net
www.srimati.com
www.indiatimes.com/women
www.footforward.com
www.soulkurry.com
www.tips4me.com
www.indiaslady.com
--------------------------------------------------------------------
Search Engines.
www.yahoo.com
www.khoj.com
www.rediff.com
www.lycos.com
www.go.com
www.Excite.com
www.altavista.com
www.snap.com
www.looksmart.com
www.askjeeves.com
www.goto.com
www.infoseek.com
www.hotbot.com
www.indolink.com
www.webcrawler.com
www.Iwon.com
www.google.com
-----------------------------------------------------------
Shopping.
www.fabmart.com
www.noshutters.com
www.letsallsave.com
www.skumars.com
www.indiagifts.com
www.indiastores.com
www.indbazaar.com
www.indiashop.com
www.malamall.com
www.chennaibazaar.com
www.ibaya.com
www.infobanc.com
www.indianpurchase.com
www.buy.com
www.bluemountainarts.com
www.ebay.com
www.americangreetings.com
www.cdnow.com
www.mypoints.com
www.egreetings.com
www.coolsavings.com
www.bargainsbazaar.com
www.buyasone.com
www.aolshopping.com
---------------------------------------------------
Recipe.
www.daawat.com
www.bawrachi.com
www.deliciousindia.com
www.indiachef.com
www.bestindianmall.com
www.vegweb.com
www.cookingmarvel.com
www.indianrecipes.com
www.khanakhazana.com
www.tadka.com
www.indochef.com
www.topsecretrecipes.com
www.spicenflavor.com
www.epicurious.com
www.pppindia.com/recepies
www.gadnet.com/foodx.htm
www.emall.com/spice/indian.html
www.indiaworld.co.in/open/rec/recepies
www.namaste.net/html/recepies
www.pugmarks.com/1-stuff/recepie
www.foodtv.com
www.gorp.com/gorp/food/main.htm
www.chefnet.com
www.southerndelights.com
www.dfwms.com/food/dinning.html
www.tripod.com
www.welcomeindia.com/recepi.htm
www.sanjeevkapoor.com
www.tarladalal.com
www.bhojana.com
www.73coffees.com
www.best.com

--------------------------------
Auction.
www.bazaarno1.com
www.baazee.com
www.junction.com
www.auctioners.com
www.jthomas-india.com
www.koolmaal.com
www.terimeri.com
www.trade2gain.com
www.teaauction.com
www.auctionindia.com
www.secondsale.com
www.matexnet.com
www.yelam.com
www.bidorbuy.com
---------------------------------------------------
News/Entertainment.
www.thestatesman.net
www.telegraphindia.com
www.indiatimes.com
www.economictimes.com
www.business-standard.com
www.india-today.com
www.the-hindu.com
www.tamil.net
www.indiaexpress.com
www.expressindia.com
www.samachar.com
www.dinakaran.com
www.Aol.com
www.cnet.com
www.znet.com
www.msnbc.com
www.weather.com
www.broadcastindia.com
www.wahindia.com
www.disneyonline.com
www.go2net.com
www.pathfinder.com
www.ivillage.com
www.cnn.com
www.about.com
www.azcentral.com
www.suntimes.com/index
www.chicagotribune.com
www.dallasnews.com
www.chron.com
www.latimes.com
www.herald.com
www.nydailynews.com
www.nytimes.com
www.usatoday.com
-------------------------------------------------------
Web Directories.
www.infospace.com
www.switchboard.com
www.classmates.com
www.anywho.com
www.1800ussearch.com
www.zip2.com
www.knowx.com
www.bigfoot.com
www.easydo.com
www.yellowpages.net

-----------------------------------------------------------
Travel.
www.travelocity.com
www.travelmartindia.com
www.mapsofindia.com
www.chennaionline.com
www.mumbaitalaash.com
www.net2travel.com
www.jayahey.com
www.biztravel.com
www.outlooktraveller.com
www.razorfinish.com
www.hydonline.com
www.bharatplanet.com
www.shubhyatra.com
www.indiacity.com
www.indiamela.com
www.mapquest.com
www.southwest.com
www.aa.com
www.makemytrip.com
www.tourisminindia.com
www.accessworldwide.com
www.triple1.com
www.destinationindia.com
www.delta-air.com
www.americanair.com
www.itn.com
www.flycontinental.com
www.nwa.com
www.iflyswa.com
www.twa.com
www.ual.com
www.usairways.com
www.fly-virgin.com
www.lowestfare.com
www.aol.com
www.globe-online.com
www.australia.com
www.canada.com/travel
www.mauritius.com
www.touregypt.net
www.expedia.com
-------------------------------------
Loans.
www.allahabadbank.com
www.hdfc.com
www.countrywideindia.com
www.kotakmahindra.com
www.associatesindia.com
www.birlaglobal.com
www.anz.com/india
www.icici.com
www.apnaloan.com
www.citibank.com/india
------------------------------------------------------------------

Art.
www.art.net
www.art.com
www.indiancanvas.com
www.art-in-usa.com
www.rossfineart.com
www.dart.fine-art.com
www.artcyclopedia.com
www.wwar.com
www.nga.gov
www.arthorizons.com
www.art-in-canada.com
www.art-in-europe.com
www.artcottage.com
www.smfa.edu
www.collectorsguide.com
www.artinside.com
www.aboutscotland.com

-----------------------------------------------------
Domain Registration.
www.networksolutions.com
www.signdomains.com
www.domainthugs.com
www.enamaskar.com
www.123domainregistry.com
www.webdomains.net
www.surfport.com
www.virtualdomains.net
wwww.netwizards.net
--------------------------------------------------------------
Games.
www.abc.go.com
www.psygnosis.com
www.hasbrointeractive.com
www.mindspace.com
www.nazaragames.com
www.microsoft.com/games
www.shockblitz.com
www.simthemepark.com
www.gamesdomain.com
www.indiagames.com
www.gamesville.com
www.lycoszone.com
www.leftfoot.com
www.usacoop.com
www.funbrain.com
www.blakkat.com
www.moonme.com
www.nintendo.com
www.gungames.com
www.gamepen.com
www.huronline.com
www.gamesdomain.com
www.komando.com
www.mortalcombat.com
www.aylic.com
www.leftfoot.com
www.gamebot.com
www.happypuppy.com
www.station.sony.com
www.paget.com
www.avana.net
www.riddler.com
www.phrazzle.co.uk
www.gamesdepot.com
www.amo.qc.ca
www.free-gaming.com
www.arcadegamesonline.com
www.plusmedia.com
www.bytesize.com
www.piginc.org
www.nuclearnet.com
www.diablopro.com
------------------------------------------------------
Music.
www.hrithik.net
www.mp3.com
www.music3w.com
www.indiagaana.com
www.dhadkan.com
www.musicworld4u.com
www.enn2.com
www.rhythmindia.com
www.supernet.com www.musiccurry.com
www.whitepathmusic.com
www.indiaculture.miningco.com
www.musicweb.co.uk
www.tipsmusicfilms.com
www.topcassette.com
www.ancient-future.com
www.indiaexpress.com
www.hindustan.net
www.aishwarya-rai.com
www.freemusic2u.com
www.coolindiaworld.com
www.angelfire.com
www.bollynet.com
www.joyofindia.com
www.geocities.com
www.justgo.com
www.hamaracd.com
www.ccmusic.com
www.pointlycos.com
www.cqkmusic.com
www.guitarsite.com
www.steelguitarcanada.com
www.mtv.com
www.compass.com
www.rocknrollvault.com
www.music.indiana.edu.com
www.imusic.com
www.civilwarmusic.net
www.webprimitives.com
www.classical.net
www.allmusic.com
www.classicalmusic.co.uk
www.classicalusa.com
www.tunes.com
www.columbiahouse.com
www.mp3grand.com
www.irish-music.net
www.iuma.com
www.worldrecords.com
www.contemplator.com
www.humaracd.com
--------------------------------------------------------
Properties.
www.indiaproperties.com
www.architectmatters.com
www.buildzone.com
www.indiahomeseek.com
www.homeseekars.com
www.realestate.com
www.pioneershelters.com
www.propertyindian.com
www.propertymartindia.com
www.floor2roof.com
www.homes.com
www.indianpropertymarket.com
www.indiaconstruction.com
www.castles.org
www.propertybuilder.com
www.dcircle.com
www.estatebazar.com
www.worldlights.com
www.estatedeals.com
www.estateindia.com
www.homesby.com
-------------------------------------------------------------
Chat.
www.icq.com
www.netfandu.com
www.mirc.com
www.yahoo.com
www.rediff.com
www.coolchat.com
www.talkcity.com
www.chatting.com
www.cybertown.com
www.chatjunkies.com
www.parentcity.com
www.familybeat.com
www.kidsurf.com
www.womenwire.com
www.mainstreetearth.com
www.excite.com

-------------------------------------------------------------------
Software Companies.
www.accel-india.com
www.adsi-us.com
www.apar.com
www.apcc.com
www.daxil.com
www.aptech-worldwide.com
www.autodesk.com
www.baan.com
www.bdpsindia.com
www.bflsoftware.com
www.bitechm.com
www.bslindia.com
www.birlasoft.com
www.bsil.com
www.bplglobal.com
www.iflexsolution.com
www.citibank.com\cosi
www.cmcltd.com
www.cms.co.in
www.cognizant.com
www.ca.com
www.datacraft-asia.com
www.dataproinfoworld.com
www.dbups.com
www.deldot.com
www.digitalindiasw.com
www.dlink-india.com
www.epson.co.in
www.hclinfosystems.com
www.hp.com
www.ibm.com\in
www.itil.com
www.infy.com
www.zensar.com
www.itsindia.com
www.ltitl.com
www.lccinfotech.com
www.lgsi.co.in
www.lotus.com
www.mahindraconsulting.com
www.monitorsindia.com
www.netsol.co.in
www.nexuscomputers.com
www.nortelnetworks.com
www.novell.com
www.patni.com
www.pcsil.com
www.pentamedia-grafix.com
www.pentafour.com
www.polaris.co.in
www.rolta.com
www.samsungindia.com
www.sap.com
www.satyam.com
www.sasi.com
www.silverline.com
www.ssil-india.com
www.sqlstarintl.com
www.sumitindia.com
www.tataelxsi.com
www.tatainfotech.com
www.tata.com\ttil
www.tulipsoftware.com
www.vxl.com
www.wellwin-india.com
--------------------------------------------------------
Astrology.
www.astrology.com
www.astroexpert.com
www.astromantra.com
www.astro-vision.com
www.dailyprediction.com
www.astrology-online.com
www.astrosurfindia.com
www.starlightastrology.com
www.jagjituppal.com
www.nostradamus.org
www.lindagoodman.net
www.zodiacal.com
www.astrologyspot.com
www.ancientweb.com
www.spiritweb.org
www.astrostar.com
www.realastrology.com
www.chineseastrology.com
www.cyberastro.com
www.astrology-india.com
www.astrospeak.com
www.starteller.com
www.jyotish.com
www.metawire.com
www.jaked.org
www.celestialwitch.com
www.thenewage.com
-----------------------------------------------
Health.
www.apollolife.com
www.pharmabiz.com
www.onhealth.com
www.goodhealthnyou.com
www.alibaba.com
www.healthfinder.com
www.healthyideas.com
www.health-library.com
www.health2health.com
www.arogya.com
www.calcuttamedics.com
www.doctoranywhere.com
www.healthcarenyou.com
www.emedlife.com
www.bloodgivers.com
www.goodhealthdirectory.com
www.healthatoz.com
www.caducee.net
www.indegene.com
www.fem40plus.com
www.endocrineindia.com
www.embarrassingproblems.com
www.who.org
www.indmedica.com
www.ehirc.com
www.acupuncture.com
www.acupressure.org
www.apollohospitals.com
www.ayurvedic.org
www.cancer.org

www.doctorsofindia.com
www.doctorsaab.com
www.healingpeople.com
www.homeopathyhome.com
www.webmd.com
www.gynonline.com
www.mayohealth.com
www.yourhealth.com
www.indiaherbs.com
---------------------------------------------------------------------
Matrimonials.
www.jeevansathi.com
www.indiadaily.com
www.matrimonials.com
www.matrimonialonline.com
www.matrimonialsindia.com
www.snehaquest.com
www.a1im.com
www.couples-place.com
www.saakshi.com
www.searchpartner.com
www.inmatch.com
www.desilink.com
www.hastamilap.com
www.indiamatches.com
www.indianrishte.com
www.matrimonials.indiainfo.com
www.indianlink.com
www.indiausamarriage.com
www.indiacanadamarriage.com
www.indobride.com
www.marriage.com
www.rishteyhirishtey.com
www.suitablematch.com
www.godblessmatrimonials.com
www.indianalliance.com
www.indialite.com
www.timesmatrimonial.com
www.bachelorsindia.com
www.webmarriages.com
www.marriagebuilders.com
www.globeads.com
www.cyberproposal.com
www.ourmarriage.com
www.keralamatrimonial.com
www.waycoolwedding.com
www.weddingcircle.com
www.marriagetools.com
---------------------------------------------------------------------
Steel.
www.essar.com
www.clickforsteel.com
www.steel.org
www.recycle-steel.org
www.rolledsteel.com
www.steelnet.org
www.bethsteel.com
www.e-steel.com
www.ltvsteel.com
www.britishsteel.co.uk

------------------------------------------------
Sports.
www.wwf.com
www.collegesports-online.com
www.onlinesports.com
www.espn.go.com
www.khel.com
www.bharatiyahockey.org
www.golfindia.com
www.indianopengolf.com
www.indianhockey.com
www.indiarace.com
www.indiapolo.com
www.indianfootball.com
www.tennisindia.org
www.yourgolfguru.com
www.excite.com
www.ski.com.au
www.usatoday.com
www.adventuresports.com
www.iransports.net
www.activeusa.com
www.attpbgolf.com
www.nike.com
www.leisurepursuits.com
www.foxsports.com
www.wimbledon.com
www.allsports.com
www.caaws.ca/main.htm
www.sportingnews.com
----------------------------------------------------------------------
--
Animals.
www.allpets.com
www.petchannel.com
www.theoviary.com
www.peta-online.org
www.panda.org
www.aquarium.org
www.nj.com/yucky/worm
www.remedia.com
www.animalsunlimited.net
www.indianwildlife.com
www.sandiegozoo.com
www.animal.discovery.com
www.junglelore.com
www.wildphotos.com
www.cranes.org
www.mahaforest.gov.in
www.animalweb.com
-------------------------------------------
Books.
www.amazon.com
www.merikitaab.com
www.barnesandnoble.com
www.mozzie.com
www.idgbooks.com
www.ingrambook.com
www.ambook.org
www.bookwire.com
www.booktv.com
www.bestbookbuys.com
www.bigbook.com
www.1stbooks.com
www.borders.com
www.bookbrowser.com
www.bookweb.org
www.abebook.com
www.worldbooknetwork.com
www.vintage-books.com
www.bookstudio.com
www.booktalk.com

------------------------------------------------------
Comedy
www.comedy.com
www.comedycentral.com
www.jokewallpaper.com
www.theonion.com
www.humorsearch.com
www.funnies.com
www.netfunny.com/rhf
www.humorpower.com
www.humorproject.com
www.jokes.com
www.lotsofjokes.com
www.comedynet.com
www.cybercheeze.com
www.comedyorama.com
www.cartoon.com
www.humorspace.com
www.humorandhealth.com
www.jokeaday.com
www.funny.co.uk
www.makeyoulaugh.com
www.planethumor.com
www.comic-relief.com

----------------------------------------------------
Hobbies
www.coinuniverse.com
www.stampworld.com
www.juggling.com
www.hobbyworld.com
www.hobbies.net
www.ehobbies.com
www.creative-hobbies.com
www.caboosehobbies.com
www.guineahobbies.com
www.hobbystores.com
www.sabersedge.com
www.hobbyhobby.com
www.towerhobbies.com
-------------------------------------------------------
Films/Movies
www.film..com
www.filmscouts.com
www.imdb.com
www.777film.com
www.reel.com
www.hollywood.com
www.bollywood.com
www.filmtvindia.com
www.bollywoodonline.com
www.bollywoodpremiere.com
www.indiamoviebiz.com
www.cinesouth.com
www.indiatalkies.com
www.qcinema.com
www.actress-actor.com
----------------------------------------------------

Kids.
www.cyberkids.com
www.kidlink.org
www.kidsworld.com
www.vsa.cape.com/powens
www.headbone.com
www.kids-corner.com
www.kidsdomain.com
www.kids-space.org
www.kidscom.com
www.safekids.com
www.child.net
www.4kids.com
www.kotb.com
www.timeforkids.com
www.foxkids.com
www.cyberkids.com
www.bonus.com
------------------------------------------------

Decorations
www.orientarts.com
www.creepypeepers.com
www.decor.a2z-holidays.com
www.indodecor.com
www.dir-dd.com
www.alliving.com
www.decoegypt.com
www.gospurk.com
www.topbrillant.com
www.decoratingstudio.com
www.homeartdecor.com
www.interiorworld.com

---------------------------------------------

Religious
www.ashramonline.com
www.onlinedarshan.com
www.saranam.com
www.sevapooja.com
www.indiablessings.com
www.bhagavadgita.org
www.buddhanet.net
www.indiantemples.com
www.islaam.org
www.islam.org/mosque
www.jaindarshan.com
www.thegreatgoddess.com
www.balaji.net
www.shirdibaba.org
www.shraddhanjali.com
www.siddhivinayak.org
www.hindumythology.com
www.sgpc.net

-------------------------------------------------
E-Barter
www.spun.com
www.tradeaway.com
www.bartertrust.com
www.ubarter.com
www.switchouse.com
--------------------------------------------------
Organiser
www.yourorganiser.com
www.dailydrill.com
www.digital.daytimer.com
www.magicdesk.com
www.when.com
www.anyday.com
-------------------------------------------------
Fitness
www.fitnesslink.com
www.fitnessonline.com
www.netsweat.com
www.muscle-fitness.com
www.fitnesszone.com
www.fitness.com
www.cyberfitness.net
www.walkabyebaby.com
www.24hourfitness.com
www.fitnessmagazine.com
www.abc2day.com
www.bennygoodsport.com
www.modelfitness.com
www.atozfitness.com
www.shapeup.org
www.fitnessworld.com
www.resort2fitness.com
--------------------------------------------------
Automobiles
www.automobiles.com
www.classiccar.com
www.autosite.com
www.auto.com
www.automartindia.com
www.automeet.com
www.driveindia.com
www.bsmotoring.com
www.autodarling.com
www.vipclassics.com
www.wwwheels.com
www.carstreet.com
www.carmasala.com
www.cybersteering.com
www.mercedes.com
www.toyota.com
www.mitsubishi.com
www.india.ford.com
www.daewooindia.com
www.marutiudyog.com
www.telcoindia.com
www.generalmotors.com
www.hindustanmotors.com
www.mahindraworld.com
www.carloansindia.com
www.aaa.com
www.pacificomazda.com
---------------------------------------------
Furniture
www.furniture.com
www.furnitureonline.com
www.goodhome.com
www.drawrn.com/furn.htm
www.furniturefind.com
www.go-furniture.com
www.bluetomatoes.com
www.jori.com
www.furnitureguys.com
www.thomasville.com
www.chinese-furniture.com
www.furnitureshoppers.com
www.willowcreekfurniture.com
www.worlddesigncenter.com

----------------------------------------------
Jewellery
www.enchantejewellery.com
www.la.premiere.com
www.indianjewellery.net
www.jewellery-net-asia.com
www.asfour-crystal.com
www.24carat.co.uk
www.tiffany.com
www.pearlglass.com
www.damesjewel.com
www.jewellery-direct.com
www.jewellerystore.com
www.jewellerywarehouse.co.uk
www.jemsandjewels.com
www.18carat.co.uk
www.mehtajewellery.com
www.adiamondsforever.com
www.gold-jewelry.co.uk
www.jewelleryshow.com
----------------------------------------------
Encyclopedia
www.encyclopedia.com
www.encarta.msn.com
www.britannica.com
www.ntreasearch.com
www.go.grolier.com
www.kids.infoplease.com
www.letsfindout.com
www.stars.com
www.boatshowusa.com
www.encyclozine.com
www.libraryspot.com
www.shotokai.cl
www.emulateme.com
-----------------------------------------
Photography
www.photographyreview.com
www.agfaphoto.com
www.indiaphotography.com
www.masters-of-photography.com
www.photodisc.com
www.indialight.com
www.photoindia.com
www.photocentreindia.com
www.onlinephotography.com
www.photographymuseum.com
www.photoresource.com
www.sightphoto.com
www.kodak.com
www.digital-photography.org
www.photolinks.net
www.thephotosite.com
www.arteffects.com
----------------------------------------
History
www.historychannel.com
www.thehistorynet.com
www.history.com
www.historyhouse.com
www.historyinternational.com
www.historyplace.com
www.historyoftheworld.com
www.hyperhistory.com
www.womeninworldhistory.com
---------------------------------------
Maps
www.mapquest.com
www.map.org
www.map.excite.com
www.map.com
www.emagame.com
www.maptown.com
www.thomas.com
www.chicagomap.com
www.mapacademy.com
www.3datlas.com
www.4maps.com

--------------------------------------------
Literature
www.vrindaindia.com
www.amedeo.com
www.litrature.org
www.iranonline.com
www.afganonline.com
www.ethiopiaonline.com
---------------------------------------------
Quiz
www.quizsite.com
www.coolquiz.com
www.brainstormers.com
www.posterquiz.com
www.quotequiz.com
www.wordquiz.com
www.qunlimited.com
www.allstarquiz.com
----------------------------------------------------
Parenting
www.indiaparenting.com
www.fathersworld.com
www.allaboutparents.com
www.familyplay.com
www.indiachildren.com
www.indianmoms.com
www.indianmother.com
www.parentsoup.com
www.parentstages.com
www.mustformums.com
www.drspock.com
www.babycenter.com
www.parenting.com
-----------------------------------------------------
Banking
www.rbi.org.in.
www.sbi.co.in
www.bankofbaroda.com
www.icicibank.com
www.allahabadbank.com
www.bank-of-maharashtra.com
www.globaltrustbank.com
www.hdfcbank.com
www.idbibank.com
www.indian-bank.com
www.mysorebank.com
www.pnbindia.com
www.punjabandsindbank.com
www.vijayabank.com
www.ucobank.com
www.syndicatebank.com
www.statebankofindore.com
www.standardchartered.com/in
www.citibank.com/india
www.corpbank.com
www.denabank.com
www.canbankindia.com
www.boiind.com
------------------------------------------------------
Others
www.sawaal.com
www.planetcustomer.com
www.screensaver.com
www.bimaonline.com
www.masti.com
www.fashiononline.com
www.mailmetoday.com
www.bimatimes.com
www.indialedger.com
www.glamorousfaces.com
www.ideas2.com
www.bizkool.com
www.indianroots.com
www.bonzi.com
www.elabh.com
www.directhit.com
www.orbitcybertech.com
www.setindia.com
www.evoke.com
www.pugmarks.net
www.familycq.com.com
www.banglanatak.com
www.zatang.com
www.bsmotoring.com
www.roomairconditioner.com
www.electricmela.com
www.bigwebindia.com
www.hyperoffice.com
www.allwonders.com
www.windpowerindia.com
www.virinchi.com
www.indiaelectricmarket.com
www.americaonline.com
www.rightserve.com
www.phone.com
www.software.com
www.apnatransport.com
www.dgreetings.com
www.yet2.com
www.vsnl.com
www.satyamonline.com
www.123india.com
www.hifunda.com
www.indya.com
www.indiafm.com
www.a4india.com
www.caltiger.com
www.indiainfo.com
www.mantraonline.com
www.onlysmart.com
www.indiatimes.com
www.indiabiz.com
www.indiamarkets.com
www.nazara.com
www.bharatnet.com
www.forindia.com
www.jaldi.com
www.nerdworld.com
------------------------------------

ORACLE EXAM CODES



Oracle
ORACLE
1Z0-007
Introduction to Oracle9i: SQL
295 Q&A with explanation
Sep 14, 05
1Z0-020
Oracle8i: New Features for Administrators
83 Q&A with explanation
Jan 10, 05
1Z0-023
Architecture and Administration
151 Q&A with explanation
Feb 21, 05
1Z0-024
Performance Tuning
92 Q&A with explanation
jan 12, 05
1Z0-025
Backup and Recovery
127 Q&A with explanation
Sep 30, 05
1Z0-026
Network Administration
126 Q&A with explanation
Feb 14, 05
1Z0-030
Oracle 9i: New Features for Administrators
121 Q&A with explanation
Nov 28, 04
1Z0-031
Oracle9i Database Fundamentals I
205 Q&A with explanation
Aug 8, 05
1Z0-032
Oracle9i Database Fundamentals II
259 Q&A with explanation
Jul 2, 05
1Z0-033
Oracle9i Performance Tuning Study Guide
311 Q&A with explanation
Jul 2, 05
1Z0-035
Oracle 7.3 & 8 to Oracle9i DBA OCP Upgrade
726 Q&A with explanation
May 5, 05
1z0-040
Oracle Database 10 g”New Features for Administrator”
114 Q&A with explanation
Mar 14, 05
1z0-042
Oracle Database 10g: Administration I
85 Q&A with explanation
Mar 24, 05
1Z0-043
Oracle Database 10g: Administration II
127 Q&A with explanation
May 5, 05
1Z0-045
Oracle Database 10g: New Features for Oracle8i OCPs
86 Q&A with explanation
Oct 17, 05
1Z0-101
Develop PL/SQL Program Units
92 Q&A with explanation
Jan 4, 05
1Z0-131
Oracle9i Build Internet Applications I
153 Q&A with explanation
Apr 19, 05
1Z0-132
Oracle9i, Build Internet Applications II
157 Q&A with explanation
Feb 12, 05
1Z0-140
Oracle9i Forms Developer: New Features
120 Q&A with explanation
Mar 8, 05
1Z0-141
Oracle9i Forms Developer: Build Internet Applications
166 Q&A with explanation
Jan 18, 05
1Z0-147
Oracle9i: Program with PL/SQL
71 Q&A with explanation
Apr 29, 05

All About Indexes in Oracle

All About Indexes in Oracle
By Gavin JT Powell (BSc, OCP)
October 8th, 2002
What is an Index?
An index is used to increase read access performance. A book, having an index, allows rapid access to a particular subject area within that book. Indexing a database table provides rapid location of specific rows within that table, where indexes are used to optimize the speed of access to rows. When indexes are not used or are not matched by SQL statements submitted to that database then a full table scan is executed. A full table scan will read all the data in a table to find a specific row or set of rows, this is extremely inefficient when there are many rows in the table.
 It is often more efficient to full table scan small tables. The optimizer will often assess full table scan on small tables as being more efficient than reading both index and data space, particularly where a range scan rather than an exact match would be used against the index.
An index of columns on a table contains a one-to-one ratio of rows between index and indexed table, excluding binary key groupings, more on this later. An index is effectively a separate table to that of the data table. Tables and indexes are often referred to as data and index spaces. An index contains the indexed columns plus a ROWID value for each of those column combination rows. When an index is searched through the indexed columns rather than all the data in the row of a table is scanned. The index space ROWID is then used to access the table row directly in the data space. An index row is generally much smaller than a table row, thus more index rows are stored in the same physical space, a block. As a result less of the database is accessed when using indexes as opposed to tables to search for data. This is the reason why indexes enhance performance.
The Basic “How to” of Indexing
There are a number of important factors with respect to efficient and effective creation and use of indexing.
 The number of indexes per table.
 The number of table columns to be indexed.
 What datatypes are sensible for use in columns to be indexed?
 Types of indexes from numerous forms of indexes available.
 How does SQL behave with indexes?
 What should be indexed?
 What should not be indexed?
Number of Indexes per Table
Whenever a table is inserted into, updated or deleted from, all indexes plus the table must be updated. Thus if one places ten indexes onto a single table then every change to that table requires an effective change to a single table and ten indexes. The result is that performance will be substantially degraded since one insert requires eleven inserts to insert the new row into both data and index spaces. Be frugal with indexing and be conscious of the potential ill as well as the good effects produced by indexing. The general rule is that the more dynamic a table is the fewer indexes it should have.
 A dynamic table is a table changes constantly, such as a transactions table. Catalog tables on the other hand store information such as customer details; customers change a lot less often than invoices. Customer details are thus static in nature and over-indexing may be advantageous to performance.
Number of Columns to Index
Composite indexes are indexes made up of multiple columns. Minimize on the number of columns in a composite key. Create indexes with single columns. Composite indexes are often a requirement of traditional relational database table structures.
 With the advent of object-oriented application programming languages such as Java, sequence identifiers tend to be used to identify every row in every table uniquely. The result is single column indexes for every table. The only exceptions are generally many-to-many join resolution entities.
It may sometimes be better to exclude some of the lower-level or less relevant columns from the index since at that level there may not be much data, if there are not many rows to index it can be more efficient to read a group of rows from the data space. For instance, a composite index comprised of five columns could be reduced to the first three columns based on a limited number of rows traversed as a result of ignoring the last two columns. Look at your data carefully when constructing indexes. The more columns you add to a composite index the slower the search will be since there is a more complex requirement for that search and the indexes get physically larger. The benefit of indexes is that an index occupies less physical space than the data. If the index gets so large that it is as large as the data then it will become less efficient to read both the index and data spaces rather than just the data space.
 Most database experts recommend a maximum of three columns for composite keys.
Datatypes of Index Columns
Integers make the most efficient indexes. Try to always create indexes on columns with fixed length values. Avoid using VARCHAR2 and any object data types. Use integers if possible or fixed length, short strings. Also try to avaoid indexing on dates and floating-point values. If using dates be sure to use the internal representation or just the date, not the date and the time. Use integer generating sequences wherever possible to create consistently sequential values.
Types of Indexes
There are different types of indexes available in different databases. These different indexes are applicable under specific circumstances, generally for specific search patterns, for instance exact matches or range matches.
The simplest form of indexing is no index at all, a heap structure. A heap structure is effectively a collection of data units, rows, which is completely unordered. The most commonly used indexed structure is a Btree (Binary Tree). A Btree index is best used for exact matches and range searches. Other methods of indexing exist.
1. Hashing algorithms produce a pre-calculated best guess on general row location and are best used for exact matches.
2. ISAM or Indexed Sequential Access Method indexes are not used in Oracle.
3. Bitmaps contain maps of zero’s and 1’s and can be highly efficient access methods for read-only data.
4. There are other types of indexing which involve clustering of data with indexes.
In general every index type other than a Btree involves overflow. When an index is required to overflow it means that the index itself cannot be changed when rows are added, changed or removed. The result is inefficiency because a search to find overflowing data involves a search through originally indexed rows plus overflowing rows. Overflow index space is normally not ordered. A Btree index can be altered by changes to data. The only exception to a Btree index coping with data changes in Oracle is deletion of rows. When rows are deleted from a table, physical space previously used by the index for the deleted row is never reclaimed unless the index is rebuilt. Rebuilding of Btree indexes is far less common than that for other types of indexes since non-Btree indexes simply overflow when row changes are applied to them.
Oracle uses has the following types of indexing available.
 Btree index. A Btree is a binary tree. General all-round index and common in OLTP systems. An Oracle Btree index has three layers, the first two are branch node layers and the third, the lowest, contains leaf nodes. The branch nodes contain pointers to the lower level branch or leaf node. Leaf nodes contain index column values plus a ROWID pointer to the table row. The branch and leaf nodes are optimally arranged in the tree such that each branch will contain an equal number of branch or leaf nodes.
 Bitmap index. Bitmap containing binary representations for each row. A zero implies that a row does not have a specified value and a 1 denotes that row having that value. Bitmaps are very susceptible to overflow in OLTP systems and should only be used for read-only data such as in Data Warehouses.
 Function-Based index. Contains the result of an expression pre-calculated on each row in a table.
 Index Organized Tables. Clusters index and data spaces together physically for a single table and orders the merged physical space in the order of the index, usually the primary key. An index organized table is a table as well as an index, the two are merged.
 Clusters. Partial merge of index and data spaces, ordered by an index, not necessarily the primary key. A cluster is similar to an index organized table except that it can be built on a join (more than a single table). Clusters can be ordered using binary tree structures or hashing algorithms. A cluster could also be viewed as a table as well as an index since clustering partially merges index and data spaces.
 Bitmap Join index. Creates a single bitmap for one table in a join.
 Domain index. Specific to certain application types using contextual or spatial data, amongst others.
Indexing Attributes
Various types of indexes can have specific attributes or behaviors applied to them. These behaviors are listed below, some are Oracle specific and some are not.
 Ascending or Descending. Indexes can be order in either way.
 Uniqueness. Indexes can be unique or non-unique. Primary keys must be unique since a primary key uniquely identifies a row in a table referentially. Other columns such as names sometimes have unique constraints or indexes, or both, added to them.
 Composites. A composite index is an index made up of more than one column in a table.
 Compression. Applies to Btree indexes where duplicated prefix values are removed. Compression speeds up data retrieval but can slow down table changes.
 Reverse keys. Bytes for all columns in the index are reversed, retaining the order of the columns. Reverse keys can help performance in clustered server environments (Oracle8i Parallel Server / RAC Oracle9i) by ensuring that changes to similar key values will be better physically spread. Reverse key indexing can apply to rows inserted into OLTP tables using sequence integer generators, where each number is very close to the previous number. When searching for and updating rows with sequence identifiers, where rows are searched for
 Null values. Null values are generally not included in indexes.
 Sorting (NOSORT). This option is Oracle specific and does not sort an index. This assumes that data space is physically ordered in the desired manner.
What SQL does with Indexes
In general a SQL statement will attempt to match the structure of itself to an index, the where clause ordering will attempt to match available indexes and use them if possible. If no index is matched then a full table scan will be executed. A table scan is extremely inefficient for anything but the smallest of tables. Obviously if a table is read sequentially, in physical order then an index is not required. A table does not always need an index.
What to Index
Use indexes where frequent queries are performed with where and order by clause matching the ordering of columns in those indexes. Use indexing generally on larger tables or multi-table, complex joins. Indexes are best created in the situations listed below.
 Columns used in joins.
 Columns used in where clauses.
 Columns used in order by clauses.
 In most relational databases the order-by clause is generally executed on the subset retrieved by the where clause, not the entire data space. This is not always unfortunately the case for Oracle.
 Traditionally the order-by clause should never include the columns contained in the where cause. The only case where the order-by clause will include columns contained in the where clause is the case of the where clause not matching any index in the database or a requirement for the order by clause to override the sort order of the where, typically in highly complex, multi-table joins.
 The group-by clause can be enhanced by indexing when the range of values being grouped is small in relation to the number of rows in the table selected.
What not to Index
Indexes will degrade performance of inserts, updates and deletes, sometimes substantially.
 Tables with a small number of rows.
 Static tables.
 Columns with a wide range of values.
 Tables changed frequently and with a low amount of data retrieval.
 Columns not used in data access query select statements.
Tuning Oracle SQL Code and Using Indexes
What is SQL Tuning?
Tune SQL based on the nature of your application, OLTP or read-only Data Warehouse. OLTP applications have high volumes of concurrent transactions and are better served with exact match SQL where many transactions compete for small amounts of data. Read-only Data Warehouses require rapid access to large amounts of information at once and thus many records are accessed at once, either by many or a small number of sessions.
The EXPLAIN PLAN command can be used to compare different versions of SQL statements, and tune your application SQL code as required. When tuning OLTP applications utilize sharing of SQL code in PL/SQL procedures and do not use triggers unless absolutely necessary. Triggers can cause problems such as self-mutating transactions where a table can expect a lock on a row already locked by the same transaction. This is because triggers do not allow transaction termination commands such as COMMIT and ROLLBACK. In short, do not use triggers unless absolutely necessary.
The best approach to tuning of SQL statements is to seek out those statements consuming the greatest amount of resources (CPU, memory and I/O). The more often a SQL statement is executed the more finely it should be tuned. Additionally SQL statements executed many times more often than other SQL statements can cause issues with locking. SQL code using bind variables will execute much faster than those not. Constant re-parsing of similar SQL code can over stress CPU time resources.
Tuning is not necessarily a never-ending process but can be iterative. It is always best to take small steps and then assess improvements. Small changes are always more manageable and more easier to implement. Use the Oracle performance views plus tools such as TKPROF, tracing, Oracle Enterprise Manager, Spotlight, automated scripts and other tuning tools or packages which aid in monitoring and Oracle performance tuning. Detection of bottlenecks and SQL statements causing problem is as important as resolving those issues. In general tuning falls into three categories as listed below, in order of importance and performance impact.
1. Data model tuning.
2. SQL statement tuning.
3. Physical hardware and Oracle database configuration.
 Physical hardware and Oracle database configuration installation will, other than bottleneck resolution, generally only affect performance by between 10% and 20%. Most performance issues occur from poorly developed SQL code, with little attention to SQL tuning during development, probably causing around 80% of general system performance problems. Poor data model design can cause even more serious performance problems than SQL code but it is rare because data models are usually built more carefully than SQL code. It is a common problem that SQL code tuning is often left to DBA personnel. DBA people are often trained as Unix Administrators, SQL tuning is conceptually a programming skill; programming skills of Unix Administrators are generally very low-level, if present at all, and very different in skills requirements to that of SQL code.
How to Tune SQL
Indexing
When building and restructuring of indexing never be afraid of removing unused indexes. The DBA should always be aware of where indexes are used and how.
 Oracle9i can automatically monitor index usage using the ALTER INDEX index name [NO]MONITORING USAGE; command with subsequent selection of the USED column from the V$OBJECT_USAGE column.
Taking an already constructed application makes alterations of any kind much more complex. Pay most attention to indexes most often utilized. Some small static tables may not require indexes at all. Small static lookup type tables can be cached but will probably be force table-scanned by the optimizer anyway; table-scans may be adversely affected by the addition of unused superfluous indexes. Sometimes table-scans are faster than anything else. Consider the use of clustering, hashing, bitmaps and even index organized tables, only in Data Warehouses. Many installations use bitmaps in OLTP databases, this often a big mistake! If you have bitmap indexes in your OLTP database and are having performance problems, get rid of them!
Oracle recommends the profligate use of function-based indexes, assuming of course there will not be too many of them. Do not allow too many programmers to create their indexes, especially not function-based indexes, because you could end-up with thousands of indexes. Application developers tend to be unaware of what other developers are doing and create indexes specific to a particular requirement where indexes may be used in only one place. Some DBA control and approval process must be maintained on the creation of new indexes. Remember, every table change requires a simultaneous update to all indexes created based on that table.
SQL Statement Reorganisation
SQL statement reorganization encompasses factors as listed below, amongst others.
 WHERE clause filtering and joining orders matching indexes.
 Use of hints is not necessarily a good idea. The optimizer is probably smarter than you are.
 Simplistic SQL statements and minimizing on table numbers in joins.
 Use bind variables to minimize on re-parsing. Buying lots of expensive RAM and sizing your shared pool and database buffer cache to very large values may make performance worse. Firstly, buffer cache reads are not as fast as you might think. Secondly, a large SQL parsing shared pool, when not using bind variables in SQL code, will simply fill up and take longer for every subsequent SQL statement to search.
 Oracle9i has adopted various SQL ANSI standards. The ANSI join syntax standard could cause SQL code performance problems. The most effective tuning approach to tuning Oracle SQL code is to remove rows from joins using where clause filtering prior to joining multiple tables, obviously the larger tables, requiring the fewest rows should be filtered first. ANSI join syntax applies joins prior to where clause filtering; this could cause major performance problems.
Nested subquery SQL statements can be effective under certain circumstances. However, nesting of SQL statements increases the level of coding complexity and if sometimes looping cursors can be utilized in PL/SQL procedures, assuming the required SQL is not completely ad-hoc.
 Avoid ad-hoc SQL if possible. Any functionality, not necessarily business logic, is always better provided at the application level. Business logic, in the form of referential integrity, is usually best catered for in Oracle using primary and foreign key constraints and explicitly created indexes.
Nested subquery SQL statements can become over complicated and impossible for even the most brilliant coder to tune to peak efficiency. The reason for this complexity could lie in an over-Normalized underlying data model. In general use of subqueries is a very effective approach to SQL code performance tuning. However, the need to utilize intensive, multi-layered subquery SQL code is often a symptom of a poor data model due to requirements for highly complex SQL statement joins.
Some Oracle Tricks
Use [NOT] EXISTS Instead of [NOT] IN
In the example below the second SQL statement utilizes an index in the subquery because of the use of EXISTS in the second query as opposed to IN. IN will build a set first and EXISTS will not. IN will not utilize indexes whereas EXISTS will.
SELECT course_code, name FROM student
WHERE course_code NOT IN
(SELECT course_code FROM maths_dept);
SELECT course_code, name FROM student
WHERE NOT EXISTS
(SELECT course_code FROM maths_dept
WHERE maths_dept.course_code = student.course_code);
In the example below the nesting of the two queries could be reversed depending on which table has more rows. Also if the index is not used or not available, reversal of the subquery is required if tableB has significantly more rows than tableA.
DELETE FROM tableA WHERE NOT EXISTS
(SELECT columnB FROM tableB WHERE tableB.columnB = tableA.columnA);
Use of value lists with the IN clause could indicate a missing entity. Also that missing entity is probably static in nature and can potentially be cached, although caching causing increased data buffer size requirements is not necessarily a sensible solution.
SELECT country FROM countries WHERE continent IN ('africa','europe','north america');
Equijoins and Column Value Transformations
AND and = predicates are the most efficient. Avoid transforming of column values in any form, anywhere in a SQL statement, for instance as shown below.
SELECT * FROM WHERE TO_NUMBER(BOX_NUMBER) = 94066;
And the example below is really bad! Typically indexes should not be placed on descriptive fields such as names. A function-based index would be perfect in this case but would probably be unnecessary if the data model and the data values were better organized.
SELECT * FROM table1, table2
WHERE UPPER(SUBSTR(table1.name,1,1)) = UPPER(SUBSTR(table2.name,1,1));
Transforming literal values is not such a problem but application of a function to a column within a table in a where clause will use a table-scan regardless of the presence of indexes. When using a function-based index the index is the result of the function which the optimizer will recognize and utilize for subsequent SQL statements.
Datatypes
Try not to use mixed datatypes by setting columns to appropriate types in the first place. If mixing of datatypes is essential do not assume implicit type conversion because it will not always work, and implicit type conversions can cause indexes not to be used. Function-based indexes can be used to get around type conversion problems but this is not the most appropriate use of function-based indexes. If types must be mixed, try to place type conversion onto explicit values and not columns. For instance, as shown below.
WHERE zip = TO_NUMBER('94066') as opposed to WHERE TO_CHAR(zip) = '94066'
The DECODE Function
The DECODE function will ignore indexes completely. DECODE is very useful in certain circumstances where nested looping cursors can become extremely complex. DECODE is intended for specific requirements and is not intended to be used prolifically, especially not with respect to type conversions. Most SQL statements containing DECODE function usage can be altered to use explicit literal selection criteria perhaps using separate SELECT statements combined with UNION clauses. Also Oracle9i contains a CASE statement which is much more versatile than DECODE and may be much more efficient.
Join Orders
Always use indexes where possible, this applies to all tables accessed in a join, both those in the driving and nested subqueries. Use indexes between parent and child nested subqueries in order to utilize indexes across a join. A common error is that of accessing a single row from the driving table using an index and then to access all rows from a nested subquery table where an index can be used in the nested subquery table based on the row retrieved by the driving table.
Put where clause filtering before joins, especially for large tables where only a few rows are required.
Try to use indexes fetching the minimum number of rows. The order in which tables are accessed in a query is very important. Generally a SQL statement is parsed from top-to-bottom and from left-to-right. The further into the join or SQL statement, then the fewer rows should be accessed. Even consider constructing a SQL statement based on the largest table being the driving table even if that largest table is not the logical driver of the SQL statement. When a join is executed, each join will overlay the result of the previous part of the join, effectively each section (based on each table) is executed sequentially. In the example below table1 has the most rows and table3 has the fewest rows.
SELECT * FROM table1, table2, table3
WHERE table1.index = table2.index AND table1.index = table3.index;
Hints
Use them? Perhaps. When circumstances force their use. Generally the optimizer will succeed where you will not. Hints allow, amongst many other things, forcing of index usage rather than full table-scans. The optimizer will generally find full scans faster with small tables and index usage faster with large tables. Therefore if row numbers and the ratios of row between tables are known then using hints will probably make performance worse. One specific situation where hints could help are generic applications where rows in specific tables can change drastically depending on the installation. However, once again the optimizer may still be more capable than any programmer or DBA.
Use INSERT, UPDATE and DELETE ... RETURNING
When values are produced and contained in insert or update statements, such as new sequence numbers or expression results, and those values are required in the same transaction by following SQL statements, the values can be returned into variables and used later without recalculation of expression being required. This tactic would be used in PL/SQL and anonymous procedures. Examples are shown below.
INSERT INTO table1 VALUES (test_id.nextval, 'Jim Smith', '100.12', 5*10)
RETURNING col1, col4 * 2 INTO val1, val2;
UPDATE table1 SET name = 'Joe Soap'
WHERE col1 = :val1 AND col2 = :val2;
DELETE FROM table1 RETURN value INTO :array;
Triggers
Simplification or complete disabling and removal of triggers is advisable. Triggers are very slow and can cause many problems, both performance related and can even cause serious locking and database errors. Triggers were originally intended for messaging and are not intended for use as rules triggered as a result of a particular event. Other databases have full-fledged rule systems aiding in the construction of Rule-Based Expert systems. Oracle triggers are more like database events than event triggered rules causing other potentially recursive events to occur. Never use triggers to validate referential integrity. Try not to use triggers at all. If you do use triggers and have performance problems, their removal and recoding into stored procedures, constraints or application code could solve a lot of your problems.
Data Model Restructuring
Data restructuring involves partitioning, normalization and even denormalization. Oracle recommends avoiding the use of primary and foreign keys for validation of referential integrity, and suggests validating referential integrity in application code. Application code is more prone to error since it changes much faster. Avoiding constraint-based referential is not necessarily the best solution.
Referential integrity can be centrally controlled and altered in a single place in the database. Placing referential integrity in application code is less efficient due to increased network traffic and requires more code to be maintained in potentially many applications. All foreign keys must have indexes explicitly created and these indexes will often be used in general application SQL calls, other than just for validation of referential integrity. Oracle does not create internal indexes when creating foreign reference keys. In fact Oracle recommends that indexes should be explicitly created for all primary, foreign and unique hey constraints. Foreign keys not indexed using the CREATE INDEX statement can cause table locks on the table containing the foreign key. It is highly likely that foreign keys will often be used by the optimizer in SQL statement filtering where clauses, if the data model and the application are consistent with each other structurally, which should be the case.
Views
Do not use views as a basis for SQL statements taking a portion of the rows defined by that view. Views were originally intended for security and access privileges. No matter what where clause is applied to a view the entire view will always be executed first. On the same basis also avoid things such as SELECT * FROM …, GROUP BY clauses and aggregations such as DISTINCT. DISTINCT will always select all rows first. Do not create new entities using joined views, it is better to create those intersection view joins as entities themselves; this applies particularly in the case of many-to-many relationships. Also Data Warehouses can benefit from materialized views which are views actually containing data, refreshed by the operator at a chosen juncture.
Maintenance of Current Statistics and Cost Based Optimization
Maintain current statistics as often as possible, this can be automated. Cost-based optimization, using statistics, is much more efficient than rule-based optimization.
Regeneration and Coalescing of Indexes
Indexes subjected to constant DML update activity can become skewed and thus become less efficient over a period of time. Use of Oracle Btree indexes implies that when a value is searched for within the tree, a series of comparisons are made in order to depth-first traverse down through the tree until the appropriate value is found.
Oracle Btree indexes are usually only three levels, requiring three hits on the index to find a resulting ROWID pointer to a table row. Index searches, even into very large tables, especially unique index hits, not index range scans, can be incredibly fast.
In some circumstances constant updating of a binary tree can cause the tree to become more heavily loaded in some parts or skewed. Thus some parts of the tree require more intensive searching which can be largely fruitless. Indexes should sometimes be rebuilt where the binary tree is regenerated from scratch, this can be done online in Oracle9i, as shown below.
ALTER INDEX index name REBUILD ONLINE;
Coalescing of indexes is a more physical form of maintenance where physical space chunks which are fragmented. Index fragmentation is usually a result of massive deletions from table, at once or over time. Oracle Btree indexes do not reclaim physical space as a result of row deletions. This can cause serious performance problems as a result of fruitless searches and very large index files where much of the index space is irrelevant. The command shown below will do a lot less than rebuilding but it can help. If PCTINCREASE is not set to zero for the index then extents could vary in size greatly and not be reusable. In that the only option is rebuilding.
ALTER INDEX index name REBUILD COALESCE NOLOGGING;

Friday, October 24, 2008

100 Usefull Oracle Questions and Answers.

List components of an Oracle instance?
An Oracle instance is comprised of memory structures and background processes.
The Systems Global Area (SGA) and shared pool are memory structures. The process monitor is a background process (DBWn, LGWR, ARCn, and PMON). The Oracle database consists of the physical components such as data files; redo log files, and the control file.

Which background process and associated database component guarantees that committed data is saved even when the changes have not been recorded in the data files?
LGWR (log writer) and online redo log files. The log writer process writes data to the buffers when a transaction is committed. LGWR writes to the redo log files in the order of events (sequential order) in case of a failure.

What is the maximum number of database writer processes allowed in an Oracle instance?
The maximum is ten. Every Oracle instance begins with only one database writer process, DBW0. Additional writer processes may be started by setting the initialization parameter DB_WRITER_PROCESSES (DBW1 through DBW9).

Which background process is not started by default when you start up the Oracle instance?
ARCn. The ARCn process is available only when the archive log is running (LOG_ARCHIVE_START initialization parameter set to true). DBWn, LGWR, CKPT, SMON, and PMON are the default processes associated with all instances (start by default).

Describe a parallel server configuration?
In a parallel server configuration multiple instances known as nodes can mount one database. In other words, the parallel server option lets you mount the same database for multiple instances. In a multithreaded configuration, one shared server process takes requests from multiple user processes.

Choose the right hierarchy, from largest to smallest, from this list of logical database structures?
Database, tablespace, segment, extent, data blocks.

Which component of the SGA contains the parsed SQL code?
The library cache contains the parsed SQL code. During parsing, Oracle allocates a shared SQL area for the statement in the library cache, and stores its parsed representation there. If a query is executed again before its aged out of the library cache, Oracle will use the parsed code and execution plan from the library cache.

Name the stages of processing a DML statement. What stages are parts of processing a query?
When processing a query or select statement, the parsing operation occurs first, followed by the fetch operation and the execute operation. However, when processing a DML statement, the parse operation is conducted as well as the execute operation, but not the fetch operation.

Which background process is responsible for writing the dirty buffers to the database files?
The purpose if the DBWn is to write the contents of the dirty buffer to the database file.
This occurs under two circumstances – when a checkpoint occurs or when the server process searches the buffer cache for a set threshold.

Which component in the SGA has the dictionary cache?
The dictionary cache is part of the shared pool. The shared pool also contains the library cache and control structures.

When a server process is terminated abnormally, which background process is responsible for releasing the locks held by the user?
The process monitor (PMON) releases the locks on tables and rows held by the user during failed processes and it reclaims all resources held by the user. PMON cleans up after failed user processes.


What is a dirty buffer?
A dirty buffer refers to blocks in the database buffer cache that are changed, but are not yet written to the disk.

If you are updating one row in a table using the ROWID in the WHERE clause (assume that the row is not already in the buffer cache), what will be the minimum amount of information read to the database buffer cache?
The block is the minimum amount of information read/copied to the database buffer cache.

What happens next when a server process is not able to find enough free buffers to copy the blocks from disk?
To reduce I/O contention, the DBWn process does not write the changed buffers immediately to the disk. They are written only when the dirty buffers reach a threshold or when there are not enough free buffers available or when the checkpoint occurs.

Which memory structures are shared? Name two.
The library cache contains the shared SQL areas, private SQL areas, PL/SQL procedures, and packages, and control structures. The large pool is an optional area in the SGA.

When a SELECT statement is issued, which stage checks the user’s privileges?
Parse checks the user’s privileges, syntax correctness, and the column names against the dictionary. Parse also determines the optional execution plan and finds a shared SQL area for the statement.

Which memory structure records all database changes made to the instance?
The redo log files holds information on the changes made to the database data. Changes are made to the database through insert, update, delete, create, alter, or drop commands.

What is the minimum number of redo log files required in a database?
The minimum number of redo log files required in a database is two because the LGWR (log writer) process writes to the redo log files in a circular manner.

When is the system change numbers assigned?
System changed numbers (SCN) are assigned when a transaction is committed. The SCN is a unique number acting as an internal timestamp, used for recovery and read-consistent queries. In other words, the SCN number is assigned to the rollback statement to mark it as a transaction committed.

Name the parts of the database buffer pool?
The database buffer pool consists of the keep buffer pool; recycle buffer pool, and the default buffer pool.
The keep buffer pool retains the data block in memory.
The recycle buffer pool removes the buffers from memory when it’s not needed.
The default buffer pool contains the blocks that are not assigned to the other pools.

List all the valid database start-up option?
STARTUP MOUNT, STARTUP NOMOUNT, and STARTUP FORCE.
STARTUP NOMOUNT is used for creating a new database or for creating new control files. STARTUP MOUNT is used for performing specific maintenance operations such as renaming data files, enabling or disabling archive logging, renaming, adding or dropping redo log files, or for performing a full database recovery. Finally, STARTUP FORCE is used to start a database forcefully, (if you have problems starting up an instance.) STARTUP FORCE shuts down the instance if it is already running and then restarts it.
Which two values from the V$SESSION view are used to terminate a user session?
The session identifier (SID) and the serial number (SERIAL #) uniquely identify each session and both are needed to kill a session. Ex. SQL > ALTER SYSTEM KILL SESSION ‘SID’,’ SERIAL #’;

To use operating system authentication to connect the database as an administrator, what should the value of the parameter REMOTE_LOGIN_PASSWORDFILE be set to?
The value of the REMOTE_LOGIN_PASSWORDFILE parameter should be set to NONE to use OS authentication. To use password file authentication, the value should be either EXCLUSIVE or SHARED.

What information is available in the alert log files?
The alert log store information about block corruption errors, internal errors, and the non-default initialization parameters used at instance start-up. The alert log also records information about database start-up, shutdown, archiving, recovery, tablespace modifications, rollback segment modifications, and the data file modifications.

Which parameter value is use to set the directory path where the alert log file is written?
The alert log file is written in the BACKGROUND_DUMP_DEST directory. This directory also records the trace files generated by the background processes. The USER_DUMP_DEST directory has the trace files generated by user sessions. The CORE_DUMP_DEST directory is used primarily on UNIX platforms to save the core dump files. ALERT_DUMP_DEST is not a valid parameter.

Which SHUTDOWN option requires instance recovery when the database is started the next time?
SHUTDOWN ABORT requires instance recovery when the database is started the next time. Oracle will also roll back uncommitted transactions during start-up. This option shuts down the instance without dismounting the database.

Which SHUTDOWN option will wait for the users to complete their uncommitted transactions?
When SHUTDOWN TRANSACTIONAL is issued, Oracle waits for the users to either commit or roll back their pending transactions. Once all users have either rolled back or committed their transactions, the database is shut down. When using SHUTDOWN IMMEDIATE, the user sessions are disconnected and the changes are rolled back. SHUTDOWN NORMAL waits for the user sessions to disconnect from the database.

How do you make a database read-only?
To put a database into read-only mode, you can mount the database and open the database in read-only mode. This can be accomplished in one step by using STARTUP OPEN READ ONLY.

Which role is created by default to administer databases?
The DBA role is created when you create the database and is assigned to the SYS and SYSTEM users.

Which parameter in the ORAPWD utility is optional?
The parameter ENTRIES is optional. You must specify a password file name and the SYS password. The password file created will be used for authentication.

Which privilege do you need to connect to the database, if the database is started up by using STARTUP RESTRICT?
RESTRICTED SESSION privilege is required to access a database that is in restrict mode. You can start up the database in restrict mode by using STARTUP RESTRICT, or change the database to restricted mode by using ALTER SYSTEM ENABLE RESTRICTED SESSION.

At which stage of the database start-up is the control file opened?
The control file is opened when the instance mounts the database. The data files and redo log files are opened after the database is opened. When the instance is started, the background processes are started.

User SCOTT has opened a SQL * Plus session and left for lunch. When you queried the V$SESSION view, the STATUS was INACTVE. You terminated SCOTT’s session in V$SESSION?
When you terminate a session that is INACTIVE, the STATUS in V$SESSION will show as KILLED. When SCOTT tries to perform any database activity in the SQL *Plus window, he receives an error that his session is terminated. When an ACTIVE session is killed, the changes are rolled back and an error message is written to the user’s screen.

Which command will “bounce” the database-that is, shut down the database and start up the database in a single command?
STARTUP FORCE will terminate the current instance and start up the database. It is equivalent to issuing SHUTDOWN ABORT and STARTUP OPEN.

When performing the command SHUTDOWN TRANASACTIONAL, Oracle performs the following tasks in what order?
1) Wait for all user transactions to complete;
2) Closes all sessions;
3) Performs a checkpoint;
4) Closes the data files and redo log files;
5) Dismounts the database;
6) Terminates the instance.
SHUTDOWN TRANSACTIONAL waits for all user transactions to complete. Once no transactions are pending, it disconnects all sessions and proceeds with the normal shutting down process. The normal shut down process performs a checkpoint, closes data files and redo log files, dismounts the database, and shuts down the instance.

How many panes are there in the Enterprise Manager console?
There are four panes in the Enterprise Manager console: Navigator, Group, Jobs, and Events.
The Navigator pane displays a hierarchical view of all the databases, listeners, nodes, and other services in the network and all their relationships. The Group pane enables you to graphically view and construct logical administrative groups of objects for more efficient management and administration. The Jobs pane is the user interface to the Job Scheduling System, which can be used to automate repetitive tasks at specified times on one or multiple databases. The Events pane is the user interface to the Event Management System, which monitors the network for problem events.

Using SQL*Plus, list two options which show the value of the parameter DB_BLOCK_SIZE?
The SHOW PARAMETER command (SHOW PARAMETER
DB_BLOCK_SIZE or SHOW ALL) will show the current value of the parameter. If you provide parameter name, its value is shown; if you omit the parameter name, all the values are shown. SHOW ALL in SQL *Plus will display the SQL *Plus environment settings, not the parameters.

When you issue the command ALTER SYSTEM ENABLE RESTRICTED SESSION, what happens to the users who are connected to the database?
If you enable the RESTRICTED SESSION when users are connected, nothing happens to the already connected sessions. Future sessions are started only if the user has the RESTRICTED SESSION privilege.

Which view has information about users who are granted SYSDBA or SYSOPER privilege?
A dynamic view of V$PWFILE_USERS has the username and a value of TRUE in column SYSDBA if the SYSDBA privilege is granted, or a value of TRUE in column SYSOPER if the SYSOPER privilege is granted.

What is the recommended configuration for control files?
Oracle allows multiplexing of control files. If you have two control files on two disks, one disk failure will not damage both control files.

How many control files are required to create a database?
You do not need any control files to create a database; the control files are created when you create a database, based on the filenames specified in the CONTROL_FILES parameter of the parameter file

Which DB administration tools are included in the DBA Studio Pack?
The DBA Management Pack is a set of tools integrated with the OEM, which helps administrators with their daily routine tasks. These tools provide complete database administration, via GUI tools (vs. SQL *Plus), and can be accessed by using the OEM, through DBA Studio, or by individually accessing each tool.
The DB Studio Pack includes Instance Manager, Schema Manager, Storage Manager, and Security Manager. Instance Manager allows you to startup or shut down an instance; modify parameters; view and change memory allocations, redo logs, and archival status; age resource allocations and long-running sessions. Schema Manager allows you to create, alter, or drop any schema object, including advanced queries and Java-stored procedures. You can clone any object. Storage Manager allows you to manage tablespaces, data files, rollback segments, redo log groups, and archive logs. Security Manager allows you to change the security privileges for users and roles, and create and alter users, roles, and profiles.

Which environment variable or registry entry variable is used to represent the instance name?
The Oracle_SID environment variable is used to represent the instance name. When you connect to the database without specifying a connect string, Oracle connects you to this instance.

You have specified the LOGFILE clause in the CREATE DATABASE command as follows. What happens if the size of the log file redo0101.log, which already exists, is 10MB?
LOGFILE GROUP 1
(‘/oradata02/PR0D01/redo0101.log’,
‘/oradata03/PR0D01/redo0102.log’) SIZE 5M REUSE,
GROUP 2
(‘/oradata02/PR0D01/redo0201.log’,
‘/oradata03/PR0D01/redo0202.log’) SIZE 5M REUSE
The CREATE DATABASE command fails. To use the REUSE clause, the file that exists should be the same size as the size specified in the command.

Which command should be issued before you can execute the CREATE DATABASE command?
You must start up the instance to create the database. Connect to the database by using the SYSDBA privilege and start the instance by using the command STARTUP NOMOUNT.

Which initialization parameter cannot be changed after creating the database?
The block size of the database cannot be changed after database creation. The database name can be changed after re-creating the control file with a new name, and the CONTROL_FILES parameter can be changed if the files are copied to a new location.

What does OFA stand for?
OFA- Optimal Flexible Architecture is a set of guidelines to organize the files related to the Oracle database and software for better management and performance.

When creating a database, where does Oracle find information about the control files that need to be created?
The control file names and locations are obtained from the initialization parameter file. The parameter name is CONTROL_FILES. If this parameter is not specified, Oracle creates a control file; the location and name depend on the OS platform

Which script creates the data dictionary views?
The catalog.sql script creates the data dictionary views. The base tables for these views are created by the script sql.bsq, which is executed when you issue the CREATE DATABASE command.

Which prefix for the data dictionary views indicate that the contents of the view belong to the current user?
DAB_prefixed views are accessible to the DBA or anyone with the SELECT_CATALOG_ROLE privilege; these views provide information on all the objects in the database and have an OWNER column. The ALL_views show information about the structures owned by the user.

Which data dictionary view shows information about the status of a procedure?
The DBA_OBJECTS dictionary view has information on the objects, their creation, and modification timestamp and status.

How do you correct a procedure that has become invalid when one of the tables it is referring to was altered to drop a constraint?
The invalid procedure, trigger, package, or view can be recompiled by using the ALTER COMPILE command.

Which event trigger from the following cannot be created at the database level?
DML event triggers should always be associated with a table or view. They cannot be created at the database level. All other event triggers can be created at the database level.

How many data files can be specified in the DATAFILE clause when creating a database?
You can specify more than one data file; the files will be used for the SYSTEM tablespace. The files specified cannot exceed the number of data files specified in the MAXDATAFILES clause.

Who owns the data dictionary?
The SYS user owns the data dictionary. The SYS and SYSTEM users are created when the database is created.

What is the default password for the SYS user?
The default password for the SYS user is CHANGE_ON_INSTALL, and for SYSTEM it is MANAGER. You should change these passwords once the database is created.

Which data dictionary view provides information on the version of the database and installed components?
The dictionary view PRODUCT_COMPONENT_VERSION shows information about the database version. The view V$VERSION has the same information.

What is the prefix for dynamic performance views?
The dynamic performance views have a prefix of V$. The actual views have the prefix of V_$, and the synonyms have a V$ prefix. The views are called dynamic performance views because they are continuously updated while the database is open and in use, and their contents related primarily to performance.

Which clauses in the CREATE DATABASE command specify limits for the database?
The control file size depends on the following limits (MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, MAXINSTANCES), because Oracle pre-allocates space in the control file.

Which clauses in the CREATE DATABASE command specify limits for the database?
The control file size depends on the following limits (MAXLOGFILES, MAXLOGMEMBERS, MAXLOGHISTORY, MAXDATAFILES, MAXINSTANCES), because Oracle pre-allocates space in the control file.
MAXLOGFILES - specifies the maximum number of redo log groups that can ever be created in the database.
MAXLOGMEMBERS – specifies the maximum number of redo log members (copies of the redo logs) for each redo log group.
MAXLOGHISTORY – is used only with Parallel Server configuration. It specifies the maximum number of archived redo log files for automatic media recovery.
MAXDATAFILES – specifies the maximum number of data files that can be created in this database. Data files are created when you create a tablespace, or add more space to a tablespace by adding a data file.
MAXINSTANCES – specifies the maximum number of instances that can simultaneously mount and open this database. If you want to change any of these limits after the database is created, you must re-create the control file.

Which optional component in the database creation process sets up functions and procedures to store, access, and analyze data needed for Geographical Information Systems (GIS)?
The Oracle Spatial component installs procedures and functions needed to access spatial data. This option can be installed after creating the database by running the script catmd.sql.

What is the best method to rename a control file?
Use the ALTER DATABASE RENAME FILE command.
Shut down the database, rename the control file by using an OS command, and restart the database after changing the CONTROL_FILES parameter.
Put the database in RESTRICTED mode and issue the ALTER DATABASE RENAME FILE command.
Shut down the database, change the CONTROL_FILES parameter, and start up the database.
Re-create the control file using the new name.


What piece of information is not available in the control file?
The instance name is not available. The control files include the following:
Database name the control file belongs to, database creation timestamp, data files, redo log files, tablespace names, current log sequence number, most recent checkpoint information, and Recovery Manager’s backup information.

When you create a control file, the database has to be:
Not mounted. If you mount the database it automatically opens the database.

Which data dictionary view provides the names of the control files?
V$CONTROLFILES shows the names of the control files.

The initialization parameter file has LOG_CHECKPOINT_INTERVAL = 60; what does this mean?
LOG_CHECKPOINT_INTERVAL ensures that no more than a specified number of redo log blocks (OS blocks) need to be read during instance recovery. LOG_CHECKPOINT_TIMEOUT ensures that no more than a specified number of seconds worth of redo log blocks need to be read during instance recovery.

Which data dictionary view shows that the database is in ARCHIVELOG mode?
The V$DATABASE view shows if the database is in ARCHIVELOG mode or in NOARCHIVELOG mode.

What is the biggest advantage of having the control files on different disks?
By storing the control file on multiple disks, you avoid the risk of a single point of failure.

Which file is used to record all changes made to the database and is used only when performing an instance recovery?
Redo logs are used to record all changes to the database. The redo log buffer in the SGA is written to the redo log file periodically by the LGWR process, which is used to roll forward, or to update, the data files during an instance recovery.

What will happen if ARCn could not write to a mandatory archive destination?
Oracle will write a message to the alert file and all database operations will be stopped. Database operation resumes automatically after successfully writing the archived log file. If the archive destination becomes full you can make room for archives either by deleting the archive log files after copying them to a different location, or by changing the parameter to point to a different archive location.

How many ARCn processes can be associated with an instance?
You can have a max of 10 ARCn processes associated with an instance.

What are the valid status codes in the V$LOGFILE view?
Valid status codes V$LOGFILE views include STALE, INVALID, DELETED, or the status can be blank. STALE means the file contents are incomplete; INVALID means the file is not accessible; DELETED means the file is no longer used; and blank status means the file is in use.

If you have two redo log groups with four members each, how many disks does Oracle recommend to keep the redo log files?
You should keep a minimum of two redo log groups, with a recommended two members in each group. Oracle recommends that you keep each member of a redo log group on a different disk. The maximum number of redo log groups is determined by the MAXLOGFILES database parameter. The MAXLOGMEMBERS database parameter specifies the maximum number of members per group.

What happens if you issue the following command?
ALTER DATABASE ADD LOGFILE
(‘/logs/file1’ REUSE, ‘/logs/file2’ REUSE)
The statement creates a new log group with two members. When the GROUP option is specified, you must see a higher integer value. Oracle will automatically generate a group number if the GROUP option is not specified. Use the SIZE option if you are creating a new file. Use the REUSE option if the file already exists.

What packages are associated with the LogMiner utility?
DBMS_LOGMNR is used to add and drop files (including redo log files) and to start the LogMiner utility. DBMS_LOGMNR_D is used to create the data dictionary. The script dbmslogmnrd.sql creates the DBMS_LOGMNR_D package.

Querying which view will show whether automatic archiving is enabled?
Automatic archiving is enabled by setting the initialization parameter LOG_ARCHIVE_START = TRUE. Querying the parameter view, V$PARAMETER, will show all parameter values. Also, the ARCHIVE LOG LIST command will show whether automatic archiving is enabled.

If you need to have your archive log files named with the log sequence numbers as arch_0000001, arch_0000002, and so on (zero filled, fixed width), what should be the value of the LOG_ARCHIVE_FORMAT parameter?
The LOG_ARCHIVE_FORMAT parameter should be arch_%S. Of the four formatting variables available, %S specifies the log sequence number, leading zero filled. %s specifies the log sequence number; %t specifies the thread; and %T specifies the thread, leading zero filled.

List the steps needed to rename a redo log file.
1) shut down the database;
2) use an OS command to rename the redo log file;
3) STARTUP MOUNT;
4) ALTER DATABASE RENAME FILE ‘oldfile’ TO ‘newfile’;
5) ALTER DATABASE OPEN; and 6) back up the control file.

Which parameter is used to limit the number of dirty buffers in the buffer cache, thereby limiting the time required for instance recovery?
By setting the parameter FAST_START_TO_TARGET to the desired number of blocks, the instance recovery time can be controlled. This parameter limits the number of I/O operations that Oracle should perform for instance recovery. If the number of operations required for recovery at any point in time exceeds this limit, then Oracle writes the dirty buffers to disk until the number of I/O operations needed for instance recovery is reduced to the limit.

Create a statement that will add a member /logs/redo22.log to log file group 2?
ALTER DATABASE ADD
LOGFILE ‘/logs/redo/22.log
When adding log files, you should specify the group number or specify all the existing group members.
In using the ARCn (archive) process, redo log files are copied to other locations on or off site. This process allows for recovery in case of failure, establishing a standby database, or allows auditing of the database through LogMiner.

When does the SMON process automatically coalesce the tablespaces?
When the PCTINCREASE default storage of the tablespace is set to 0. You can manually coalesce a tablespace by using ALTER TABLESPACE COALESCE.

Which operation is permitted on a read – only tablespace?
A table can be dropped from a read-only tablespace. When a table is dropped, Oracle does not have to update the data file; it updates the dictionary tables. Any change to data or creation of new objects is not allowed in a read-only tablespace.

How would you drop a tablespace if the tablespace were not empty?
Use DROP TABLESPACE INCLUDING CONTENTS.
The INCLUDING CONTENTS clause is used to drop a tablespace that is not empty. Oracle does not remove the data files that belong to the tablespace; you need to do it manually using an OS command. Oracle updates only the control file.

Which command is used to enable the auto-extensible feature for a file, if the file is already part of a tablespace?
To enable auto=extension, use ALTER DATABASE DATAFILE AUTOEXTEND ON NEXT MAXSIZE .

The database block size is 4KB. You created a tablespace using the following command.
CREATE TABLESPACE USER_DATA DATAFILE ‘C:/DATA01.DBF’;
If you create an object in the database without specifying any storage parameters, what will be the size of the third extent that belongs to the object?
When you create a tablespace with no default storage parameters, Oracle assigns (5 X DB_BLOCK_SIZE) to INTIAITAL and NEXT; PCTINCREASE is 50. The third extent would be 50 % more than the second. The first extent is 20KB, the second is 20KB, and third is 32KB (because the block size is 4kb).

What are the recommended INITIAL and NEXT values for a temporary tablespace, to reduce fragmentation?
The recommended INITIAL and NEXT should be equal to each other and it should be a multiple of SORT_AREA_SIZE plus DB_BLOCK_SIZE to reduce the possibility of fragmentation. Keep PCTINCREASE equal to zero. Fro example, if you r sort area size is 64 kb and database block size is 8KB, provide the default storage of the temporary tables as (INITIAL 136K PCTINCREASE 0 MAXEXTENST UNLIMITED).

How would you determine how much sort space is used by a user session?
The V$SORT_USAGE shows the active sorts in the database; it shows the space used, username, SQL address, and hash value. It also provides the number of EXTENTS and number of BLOCKS used by each sort session, and the username. The V$SORT can be joined with V$SESSION or V$SQL to obtain more information on the session or the SQL statement causing the sort.

When a table is updated, where is the before image information (which can be used for undoing the changes) stored?
Rollback segment. Before any DML operation, the undo information (before-image of data) is stored in the rollback segments. This information is used to undo the changes and to provide a read-consistent view of the data.

Which parameter specifies the number of transaction slots in a data block?
INITRANS specifies the number of transaction slots in a data block. A transaction slot is used by Oracle when the data block is being modified. INITRANS reserves space for the transactions in the block.

Which data dictionary view would you query to see the free extents in a tablespace?
DBA_FREE_SPACE shows the free extents in a tablespace. DBA_EXTENTS shows all the extents that are allocated to a segment.

What is the minimum number of extents a rollback segment can have?
The roll back segment should always have at least two extents. When creating a rollback segment, the MINEXTENTS value should be two or more.

Which portion of the data block stores information about the table having rows in this block?
Row Data. The table directory portion of the block stores information about the table having rows in the block. The row directory stores information such as row address and size of the actual rows stored in the row data area.