May 28, 2016 | Author: mohan9999999 | Category: Types, Research, Internet & Technology
Share Embed Donate

Short Description

Download SQL...


Plsql Interview Questions And Answers 1. What is the starting "oracle error number"? 2)What is meant by forward declaration in functions?

2. Can Commit,Rollback ,Savepoint be used in Database Triggers?If yes than HOW? If no Why?With Reasons

3. Can we declare a column having number data type and its scale is larger than pricesion ex: column_name NUMBER (10,100), column_name NUMBAER(10,-84)

4. Explain how procedures and functions are called in a PL/SQL block ? 5. Explain the two type of Cursors ? 6. Explain the usage of WHERE CURRENT OF clause in cursors ? 7. Explian rowid,rownum?What are the pseduocolumns we have? 8. Give the structure of the function ? 9. Give the structure of the procedure ?

10. How many types of database triggers can be specified on a table ? What are they ? 11. How packaged procedures and functions are called from the following? a. Stored

procedure or anonymous block b. an application program such a PRC *C, PRO* COBOL c. SQL *PLUS

12. How to avoid using cursors? What to use instead of cursor and in what cases to do so? 13. How to debug the procedure ?

14. How to disable multiple triggers of a table at at a time? 15. How we can create a table in PL/SQL block. insert records into it??? is it possible by some procedure or function?? please give example...

16. How we can create a table through procedure ? 17. In a Distributed Database System Can we execute two queries simultaneously ? Justify ? 18. In pl/sql functions what is use of out parameter even though we have return statement. 19. Whar are Integarity Constraints?

20. Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ? Why ?

21. Name the tables where characteristics of Package, procedure and functions are stored ? 22. Open C1; Fetch c1 into Z; Commit; Fetch c1 in to Z; end; 23. State the advantage and disadvantage of Cursor? 24. State the difference between implicit and explicit cursor's. 25. What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes? 26. What are advantages fo Stored Procedures 27. What are the PL/SQL Statements used in cursor processing ?

28. What are the Restrictions on Cursor Variables? 29. What are the components of a PL/SQL Block ? 30. What are the cursor attributes used in PL/SQL ? 31. What are the datatypes a available in PL/SQL ? 32. What are the modes of parameters that can be passed to a procedure ?

33. What are the return values of functions SQLCODE and SQLERRM ? 34. What are the two parts of a procedure ? 35. What are two parts of package ?

36. What are two virtual tables available during database trigger execution ? 37. What happens if a procedure that updates a column of table X is called in a database trigger of the same table ?

38. What is Overloading of procedures ? 39. What is PL/SQL ? 40. What is PL/SQL table ? 41. What is Pragma EXECPTION_INIT ? Explain the usage ? 42. What is Raise_application_error ? 43. What is a cursor ? Why Cursor is required ? 44. What is a cursor for loop ?

45. What is a database trigger ? Name some usages of database trigger ? 46. What is a stored procedure ? 47. What is an Exception ? What are types of Exception ? 48. What is difference between % ROWTYPE and TYPE RECORD ? 49. What is difference between a Cursor declared in a procedure and Cursor declared in a package specification ? 50. What is difference between a PROCEDURE & FUNCTION ? 51. What is difference between stored procedures and application procedures,stored function and application function? 52. What is pl/sql?what are the advantages of pl/sql? 53. What is ref cursor. 54. What is the basic structure of PL/SQL ?

55. What is trigger,cursor,functions in pl-sql and we need sample programs about it? 56. What will happen after commit statement ? 57. What will the Output for this Coding> Declare Cursor c1 is select * from emp FORUPDATE; Z c1%rowtype; Begin 58. Where the Pre_defined_exceptions are stored ?

59. Write the order of precedence for validation of a column in a table ? I. done using Database triggers. ii. done using

SQL General Interview Questions ... •

What are the different types of joins?

Explain normalization with examples.

What cursor type do you use to retrieve multiple recordsets?

Diffrence between a "where" clause and a "having" clause

What is the difference between "procedure" and "function"? -- Sponsored Links --

Make $5k a mo. Become rich with this system

Embedded Course with Job Trained 1500 Embedded Professionals since 2004. Join Oasis Tech Pune. Your Ad Here •

How will you copy the structure of a table without copying the data?

How to find out the database name from SQL*PLUS command prompt?

Tadeoffs with having indexes

Talk about "Exception Handling" in PL/SQL?

What is the diference between "NULL in C" and "NULL in Oracle?"

What is Pro*C? What is OCI?

Give some examples of Analytical functions.

What is the difference between "translate" and "replace"?

What is DYNAMIC SQL method 4?

How to remove duplicate records from a table?

What is the use of ANALYZing the tables?

How to run SQL script from a Unix Shell?

What is a "transaction"? Why are they necessary?

Explain Normalizationa dn Denormalization with examples.

When do you get contraint violtaion? What are the types of constraints?

How to convert RAW datatype into TEXT?

Difference - Primary Key and Aggregate Key

How functional dependency is related to database table design?

What is a "trigger"?

Why can a "group by" or "order by" clause be expensive to process?

What are "HINTS"? What is "index covering" of a query?

What is a VIEW? How to get script for a view?

What are the Large object types suported by Oracle?

What is SQL*Loader?

Difference between "VARCHAR" and "VARCHAR2" datatypes.

What is the difference among "dropping a table", "truncating a table" and "deleting all records" from a table.

Difference between "ORACLE" and "MICROSOFT ACCESS" databases.

How to create a database link ?

PL/SQL interview questions... •

Normalize many to many relationships

Difference - Equijoin and union -- Sponsored Links -Your Ad Here

What is TEMP table space in Oracle, what is rollback segment

How do we find row chaining?

Pattern matching operators

Features in oracle 9i and 10g

Why truncating table is faster than delete

copy commit syntax

Convert Zulu time zone to US Eastern time zone

Difference - union and union all

Difference - Group by, Order by clause

Which Ranking functions are available?

Difference - Decode, NVL, NVL2

Tradeoffs of using partitioned tables

How can we call stored procedure in SQL query

What are the restrictions on calling PL/SQL from SQL

Why EXISTS is preferable to distinct

Give two examples of avoiding unnecessary parsing.

Can a Tablespace hold objects from different Schemes ?

Can a View based on another View ?

Can a property clause itself be based on a property clause?

Can a tablespace hold objects from different schemes?

Can a view based on another view?

Can objects of the same Schema reside in different tablespaces.?

-- Sponsored Links -Your Ad Here

Can one export to multiple files?/ Can one beat the Unix 2 Gig limit? (for DBA

Can one import/export between different versions of Oracle? (for DBA

Can one rename a database user (schema)?

Can you have more than one content canvas view attached with a window?

Can you pass data parameters to forms?

Define Transaction ?

Describe two phases of Two-phase commit ?

Differentiate simple and complex, snapshots ?

Do View contain Data ?

Do a view contain data?

Do user parameters appear in the data modal editor in 2.5?

Does Oracle write to data files in begin/hot backup mode? (for DBA

Does a Before form trigger fire when the parameter form is suppressed?

Does a grouping done for objects in the layout editor affect the grouping done in the data model editor?

Does one need to drop/ truncate objects before importing? (for DBA

EXIT_FORM is a restricted package procedure ?a. True b. False

Explain about horizontal, Vertical tool bar canvas views?

Explain about stacked canvas views?

Explain the relationship among Database, Tablespace and Data file.?

Explain the relationship among database, tablespace and data file.

From which designation is it preferred to send the output to the printed?

Give the sequence of execution of the various report triggers?

How are extents allocated to a segment?

How are the index updates?

-- Sponsored Links -$5277 Profit in 12 Days Forex Robot Earns More Money Than The Worlds 15 Best Traders Combined Do you seek a wholesaler? Enter the wholesale suppliers directory and solve your problems. Do you own your domains? One search to know which domain extensions are still available! Earn $1000/month Parttime First and Only single leg compensation plan Ads on AutoPilot Automated advertising and list management system. Your Ad Here •

How can I message to passed to the user from reports?

How can a break order be created on a column in an existing group? What are the various sub events a mouse double click event involves?

How can a button be used in a report to give a drill down facility?

How can a group in a cross products be visually distinguished from a group that does not form a cross product?

How can a square be drawn in the layout editor of the report writer?

How can a text file be attached to a report while creating in the report writer?

How can one dump internal database structures? (for DBA

How can one improve Import/ Export performance? (for DBA

How can one see who is using a temporary segment? (for DBA

How can values be passed bet. precompiler exits and Oracle call interface?

How can we reduce the network traffic?

How can we specify the Archived log file name format and destination?

How can you Enforce Referential Integrity in snapshots ?

How can you enable automatic archiving ?

How do I find used/free space in a TEMPORARY tablespace?

How do you control the constraints in forms ?

How do you create a new session while open a new form?

How do you display console on a window ?

How do you reference a Parameter?

How do you reference a parameter indirectly?

How do you trap the error in forms 3.0 ?

How does Space allocation table place within a block ?

How does one add users to a password file? (for DBA

How does one backup a database using RMAN? (for DBA

How does one backup archived log files? (for DBA

How does one coalesce free space?

How does one connect to an administrative user? (for DBA

How does one create a RMAN recovery catalog? (for DBA

How does one create a new database?

How does one create a password file? (for DBA

How does one do off-line database backups? (for DBA

How does one do on-line database backups? (for DBA

How does one get the view definition of fixed views/tables?

How does one prevent tablespace fragmentation?

How does one put a database into ARCHIVELOG mode? (for DBA

How does one see the uptime for a database? (for DBA

How free extents are managed in Ver 6.0 and Ver 7.0 ?

How is it possible to select generate a select set for the query in the query property sheet?

How is link tool operation different bet. reports 2 & 2.5?

How many pages you can in a single form ?

How many windows in a form can have console?

How to define Data Block size ?

How to implement the multiple control files for an existing database ?

How will you create multiple rollback segments in a database ?

How will you enforce security using stored procedures?

How will you estimate the space required by a non-clustered tables?

How will you force database to use particular rollback segment ?

How will you monitor rollback segment status ?

How will you monitor the space allocation ?

How will you swap objects into a different table space for an existing database ?

I've lost my REDOLOG files, how can I get my DB back? (for DBA

I've lost some Rollback Segments, how can I get my DB back? (for DBA

If a break order is set on a column would it affect columns which are under the column?

If a parameter is used in a query without being previously defined, what diff. exist betw. report 2.0 and 2.5 when the query is applied?

If two groups are not linked in the data model editor, What is the hierarchy between them?

Is it possible to link two groups inside a cross products after the cross products group has been created?

Is it possible to modify an external query in a report which contains it?

Is the After report trigger fired if the report execution fails?

It is possible to use raw devices as data files and what is the advantages over file. system files ?

List the Optional Flexible Architecture (OFA) of Oracle database? or How can we organize the tablespaces in Oracle database to have maximum performance ?

My database is down and I cannot restore. What now? (for DBA

My database was terminated while in BACKUP MODE, do I need to recover? (for DBA

Name of the functions used to get/set canvas properties?

State any three mouse events system variables?

To display the page no. for each page on a report what would be the source & logical page no. or & of physical page no.?

To execute row from being displayed that still use column in the row which property can be used?

Use the Add_group_row procedure to add a row to a static record group 1. true or false?

WWhat is the use of ANALYZE command ?

What are Clusters ?

What are Most Common types of Complex master-detail relationships?

What are Roles ?

What are Schema Objects?

What are built-ins associated with timers?

What are built-ins used for Processing rows?

What are clusters?

What are different types of canvas views?

What are different types of images?

What are different types of modules available in oracle form?

What are disadvantages of having raw devices ?

What are modal windows?

What are parameters?

What are roles? How can we implement roles ?

What are synonyms used for?

What are the Built-ins used for sending Parameters to forms?

What are the Characteristics of Data Files ?

What are the Coordination Properties in a Master-Detail relationship?

What are the Referential actions supported by FOREIGN KEY integrity constraint ?

What are the advantages of views?

What are the basic element of Base configuration of an oracle Database ?

What are the benefits of distributed options in databases?

What are the built -ins used for Modifying a groups structure?

What are the built-in used for getting cell values?

What are the built-ins that are used for setting the LOV properties at runtime?

What are the built-ins that are used to Attach an LOV programmatically to an item?

What are the built-ins used for Creating and deleting groups?

What are the built-ins used for Getting cell values?

What are the built-ins used for finding Object ID function?

What are the built-ins used for finding object ID functions?

What are the built-ins used for processing rows?

What are the common Import/ Export problems? (for DBA

What are the components of logical database structure of Oracle database?

What are the components of physical database structure of Oracle database?

What are the database administrators utilities avaliable ?

What are the default extensions of the files created by forms modules?

What are the default extensions of the files created by library module?

What are the default extensions of the files created by menu module?

What are the default parameter that appear at run time in the parameter screen? What are the various sub events a mouse double click event involves?

What are the dictionary tables used to monitor a database space?

What are the dictionary tables used to monitor a database spaces ?

Difference between lov & list item?

Differences between EBU and RMAN? (for DBA

Different Levels of Auditing ?

Different Parameter types?

Different approaches used by Optimizer in choosing an execution plan ?

Different default triggers created when Master Deletes Property is set to Cascade?

Different default triggers created when Master Deletes Property is set to Non-isolated?

Different default triggers created when Master Deletes Property is set to isolated?

Different display styles of list items?

Different file extensions that are created by oracle reports?

Different kind of export backups?

Different methods of backing up oracle database ?

Different modals of windows?

Different styles of activation of ole Objects?

Different type of Segments ?

Different types of Delete details we can establish in Master-Details?

Different types of Record Groups?

Different windows events activated at runtimes?

What are the factors causing the reparsing of SQL statements in SGA?

What are the master-detail triggers?\

What are the options available to refresh snapshots ?

What are the sql clauses supported in the link property sheet?

What are the system resources that can be controlled through Profile ?

What are the three types of user exits available ?

What are the trigger associated with image items?

What are the two panes that Appear in the design time pl/sql interpreter?

What are the two phases of block coordination?

What are the two repeating frame always associated with matrix object?

What are the two types of views available in the object navigator(specific to report 2.5)?

What are the two ways by which data can be generated for a parameters list of values?

What are the type of Synonyms?

What are the types of Pop-up window ?

What are the types of calculated columns available?

What are the types of synonyms?

What are the use of Roles ?

What are the various methods of performing a calculation in a report ?

What are the various sub events a mouse double click event involves? What are the various sub events a mouse double click event involves?

What are the various type of snapshots?

What are the vbx controls?

What are the ways to monitor the performance of the report?

What are three panes that appear in the run time pl/sql interpreter?

What are visual attributes?

What database aspects should be monitored? (for DBA

What database block size should I use?

What database events can be set? (for DBA

What does COMMIT do ?

What does ROLLBACK do ?

What does a Control file Contain ?

What dynamic data replication?

What is Auditing ?

What is COST-based approach to optimization ?

What is Database Buffers ?

What is Distributed database ?

What is Full Backup ?

What is Index Cluster ?

What is Mirrored on-line Redo Log ?

What is Object Auditing ?

What is Oracle table?

What is Parallel Server ?

What is Partial Backup ?

What is Privilege Auditing ?

What is Read-Only Transaction ?

What is Rollback Segment ?

What is SGA?

What is SYSTEM tablespace and when is it created?

What is Statement Auditing ?

What is Table ?

What is Tablespace Quota ?

What is Two-Phase Commit ?

What is WHEN-Database-record trigger?

What is a Control file ?

What is a Database instance ? Explain

What is a Redo Log ?

What is a Rollback segment entry ?

What is a SNAPSHOT ?

What is a SNAPSHOT LOG ?

What is a SQL * NET?

What is a Schema ?

What is a Shared SQL pool?

What is a Static Record Group?

What is a Tablespace?

What is a Text_io Package?

What is a User_exit?

What is a View ?

What is a cluster Key ?

What is a combo box?

What is a data segment?

What is a database EVENT and how does one set it? (for DBA

What is a deadlock ? Explain .

What is a difference between pre-select and pre-query?

What is a logical backup?

What is a physical page ? & What is a logical page ?

What is a private synonym?

What is a profile ?

What is a property clause?

What is a public synonym?

What is a record group?

What is a shared pool?

What is a synonym?

What is a tablespace?

What is a text list?

What is a timer?

What is advantage of having disk shadowing/ Mirroring ?

What is an Extent ?

What is an Index ?

What is an Index ? How it is implemented in Oracle Database ?

What is an Index Segment ?

What is an Integrity Constrains ?

What is an LOV?

What is an Oracle index?

What is an Oracle sequence?

What is an Oracle view?

What is an SQL *FORMS ?

What is an administrative (privileged) user? (for DBA

What is an object group?

What is an user exit used for?

What is bind reference and how can it be created?

What is cluster key?

What is clusters ?

What is cold backup? What are the elements of it?

What is coordination Event?

What is default tablespace ?

What is dictionary cache ?

What is difference between UNIQUE constraint and PRIMARY KEY constraint ?

What is difference between open_form and call_form?

What is forms_DDL?

What is hot backup and how it can be taken?

What is lexical reference? How can it be created?

What is mean by Program Global Area (PGA)?

What is meant by Redo Log file mirroring ? How it can be achieved?

What is meant by free extent ?

What is meant by recursive hints ?

What is meant by redo log buffer ?

What is new_form built-in?

What is pop list?

What is relation between the window and canvas views?

What is schema?

What is snapshot log ?

What is snapshots?

What is strip sources generate options?

What is synchronize?

What is system.coordination_operation?

What is term?

What is the "LOV of Validation" Property of an item? What is the use of it?

What is the Maximum allowed length of Record group Column?

What is the User-Named Editor?

What is the advantage of the library?

What is the basic data structure that is required for creating an LOV?

What is the diff. bet. setting up of parameters in reports 2.0 reports2.5?

What is the diff. when Flex mode is mode on and when it is off?

What is the diff. when confine mode is on and when it is off?

What is the difference between OLE Server & Ole Container?

What is the difference between ON-VALIDATE-FIELD trigger and a POST-CHANGE trigger ?

What is the difference between SHOW_EDITOR and EDIT_TEXTITEM?

What is the difference between locks, latches, enqueues and semaphores? (for DBA

What is the difference between object embedding & linking in Oracle forms?

What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command ? What are the factors that affect OPTIMIZER in choosing an Optimization approach ?

What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ?

What is the frame & repeating frame?

What is the maximum no of chars the parameter can store?

What is the mechanism provided by ORACLE for table replication ?

What is the purpose of the product order option in the column property sheet?

What is the remove on exit property?

What is the significance of having storage clause ?

What is the usage of an ON-INSERT,ON-DELETE and ON-UPDATE TRIGGERS ?

What is the use of ANALYSE ( Ver 7) option in EXP command ?

What is the use of COMPRESS option in EXP command ?

What is the use of CONSISTENT (Ver 7) option in EXP command ?

What is the use of CONSTRAINTS option in EXP command ?

What is the use of Control File ?

What is the use of FILE option in IMP command ?

What is the use of FULL option in EXP command ?

What is the use of GRANT option in EXP command?

What is the use of GRANT option in IMP command ?

What is the use of IGNORE option in IMP command ?

What is the use of INCTYPE option in EXP command ?

What is the use of INDEXES option in EXP command ?

What is the use of INDEXES option in IMP command ?

What is the use of PARFILE option in EXP command ?

What is the use of RECORD LENGTH option in EXP command ?

What is the use of RECORD option in EXP command?

What is the use of ROWS option in EXP command ?

What is the use of ROWS option in IMP command ?

What is the use of SHOW option in IMP command ?

What is the use of hidden column? What are the various sub events a mouse double click event involves?

What is the use of image_zoom built-in?

What is the use of place holder column? What are the various sub events a mouse double click event involves?

What is the use of transactional triggers?

What is trigger associated with the timer?

What is use of term?

What is user Account in Oracle database?

What third party tools can be used with Oracle EBU/ RMAN? (for DBA

What use of command line parameter cmd file?

When do you use data parameter type?

When is PRE-QUERY trigger executed ?

When will the data in the snapshot log be used?

Where are my TEMPFILES, I don't see them in V$DATAFILE or DBA_DATA_FILE? (for DBA

Where can one find the high water mark for a table?

Where can one get a list of all hidden Oracle parameters? (for DBA

Where is a procedure return in an external pl/sql library executed at the client or at the server?

Where is the external query executed at the client or the server?

Where should the tuning effort be directed? (for DBA

Which of the above methods is the faster method?

Which of the two views should objects according to possession?

Which parameter can be used to set read level consistency across multiple queries?

Which parameter in Storage clause will reduce no. of rows per block?

While specifying master/detail relationship between two blocks specifying the join condition is a must ? True or False. ?

Why and when should one tune? (for DBA

Why are OPS$ accounts a security risk in a client/server environment? (for DBA

Why is it preferable to create a fewer no. of queries in the data model?

Why query fails sometimes ?

With which function of summary item is the compute at options required?

what are difference between post database commit and post-form commit?

INDEX - Indexes help us retrieve data from tables quicker. Let's use an example to illustrate this point: Say we are interested in reading about how to grow peppers in a gardening book. Instead of reading the book from the beginning until we find a section on peppers, it is much quicker for us to go to the index section at the end of the book, locate which pages contain information on peppers, and then go to these pages directly. Going to the index first saves us time and is by far a more efficient method for locating the information we need. The same principle applies for retrieving data from a database table. Without an index, the database system reads through the entire table (this process is called a 'table scan') to locate the desired

information. With the proper index in place, the database system can then first go through the index to find out where to retrieve the data, and then go to these locations directly to get the needed data. This is much faster. Therefore, it is often desirable to create indexes on tables. An index can cover one or more columns. The syntax for creating a table index is shown in the CREATE INDEX section. Below we discuss some general strategies when building and using an index: 1. Build index on columns of integer type Integers take less space to store, which means the query will be faster. If the column you want to build an index for is not of type integer, consider creating a surrogate integer key (or simply a surrogate column of type integer) which maps one-to-one to the column you want to build the index for. 2. Keep index as narrow as possible Narrower indexes take less space, require less time to process, which in turn means the query will run faster. 3. Column order is important For indexes covering multiple columns, the order of the columns in the index is important. The best practice is to use the column with the lowest cardinality first, and the column with the highest cardinality last. Recall cardinality means the number of distinct values for that column. So, if "SELECT DISTINCT (COLUMN1) FROM TABLE_NAME;" returns 5, that means the cardinality for COLUMN1 is 5. 4. Make sure the column you are building an index for is declared NOT NULL This can decrease the size of the index, which in turn will speed up the query. VIEW – A view is a virtual table. A view consists of rows and columns just like a table. The difference between a view and a table is that views are definitions built on top of other tables (or views), and do not hold data themselves. If data is changing in the underlying table, the same change is reflected in the view. A view can be built on top of a single table or multiple tables. It can also be built on top of another view. In the SQL Create View page, we will see how a view can be built. Views offer the following advantages: 1. Ease of use: A view hides the complexity of the database tables from end users. Essentially we can think of views as a layer of abstraction on top of the database tables. 2. Space savings: Views takes very little space to store, since they do not store actual data. 3. Additional data security: Views can include only certain columns in the table so that only the nonsensitive columns are included and exposed to the end user. In addition, some databases allow views to have different security settings, thus hiding sensitive data from prying eyes.

View more...


Copyright ©2017 KUPDF Inc.