Have you prepared for your interview, can you answer these basic Interview questions on Oracle.
- Interview Tips and Tricks – Its All Abоut Marketing the Skills and Talents
- Digging into the ways to delete multiple records in codeigniter
- How Does A MongoDB Developer Certification Benefit Your Career
- What Is The Best Programming Language For The Mobile Application Development?
- Advanced css interview questions
Oracle Interview Questions
Yes, Parameters can be passed to explicit cursors. A cursor parameter could appear wherever a constant appears in a query.
CURSOR c1 (median IN NUMBER) IS SELECT job, ename FROM emp WHERE sal > median;
The different types of rollback segments are:
- Private Available to particular instance and
- Public Available to all instances
No. SQL*Plus doesn’t contain PL/SQL engine, unlike Oracle Forms. Because of which all PL/SQL is sent to the database engine to get executed which increases the efficiency. Each SQL statement is individually sent to the database and not stripped off.
As of now a compiled/ parsed block of PL/SQL has a maximum size limitation of 64K and max. code size being 100K. The statement for querying existing procedure or the package size is as follows:
SQL> select * from dba_object_size where name = 'procedure_name'
Oracle 7.3 has a UTL_FILE package included in it which is used to read/ write files. The directory where you want to write to has to be in the INIT.ORA file. Prior to Oracle 7.3, DBMS_OUTPUT with the SQL*Plus SPOOL command was the only way to write a file.
Source codes of PL/SQL V2.2 made available with Oracle 7.2 are protected by implementing the binary wrapper. A stand-alone function does this by transforming the source code of PL/SQL to a portable binary object code. Thus the software can be distributed without the proprietary methods and algorithms getting exposed. Such scripts can still be understood and executed by SQL*DBA and SQL*Plus. The only precaution to be taken is that “decode” command shouldn’t be available.
There are two exception types:
- User-defined &
- Pre defined.
There exist 12 different types of database triggers. They are made up of different combinations of:
- Statement and row triggers,
- Before and after triggers,
- Update, delete and insert triggers.
Changing old and new values in an insert, delete and update triggers
INSERT : new = new value, old = NULL DELETE : new = NULL, old = old value UPDATE : new = new value, old = old value
Clusters reduce the access time for joins and increases it for insert.
In a table, a check condition of a column can reference another column in the same table thus providing self referential integrity.
Yes a rollback is possible to any savepoint.
A table can have maximum 254 columns.
The & operator signifies that a user input is needed for the PL SQL block variable. The && operator signifies that this variable’s value must be the same as inputted earlier by the user for same variable.
The various rollback segment states are:
- Needs recovery,
- Partly available,
- Offline and
Triggers giving Update/Insert to the table possessing referential integrity constraint on the triggering table are termed as constraining triggers.
Oracle is a database server that is used to handle data in a structured manner. It lets its users to retrieve and to store data in a way that multiple users can access similar data at the same time. Oracle achieves this with high efficiency. Many security checks are followed to limit access to authorized users only and to retrieve data in case of accidental data loss.
The constructs for a package, function or a procedure are:
- Variables and constants
In order to prevent Grants from getting dropped we create and replace procedures rather than drop and recreate.
It’s a cursor formed by Oracle internally for individual SQL.
Every user is given particular attributes identified by a username termed as a user account. The below can be incorporated into the user attributes:
- Passwords to access database,
- Roles and privileges,
- Default tablespace containing database objects and
- Default temporary tablespace facilitating query handling workspace.
It is a file which has a binary nature and contains initialization parameter’s list. It is located machines where database server executes. Initialization parameters of server parameter file are persistent.
Each operating Oracle database is associated with an Oracle instance. As soon as a database server starts the database, it is assigned a memory area by Oracle called System Global Area (SGA) and starts one or more than one processes. The SGA and Oracle processes together are referred to as an Oracle instance. The process and memory of an instance are used to efficiently handle data used by multiple users.
Parts of a database trigger are
- Trigger statement or event,
- Trigger restriction and
- Trigger action
Parameter file is a file having a track of initialization parameters and the matching values. The two types of Oracle supported parameter files are:
- Initialization parameter file – Text version and
- Server parameter file – Binary version
Based on individual installations users can specify their individual initialization parameters.
It is the memory area which contains shared data like SQL statements shared pool and buffer cache, between all users. As soon as an Oracle database instance starts the SGA is allocated. Value changes become effective during subsequent startup.
The five query types in Oracle are as follows:
- Compound queries,
- Nested queries,
- Correlated queries,
- Normal queries.
Overloading happens when an object is performing various functions based on the number or data types of the parameters passed through it. Yes, Functions can be overloaded.
A function is used to return a single value whereas a procedure doesn’t return any value. It returns multiple variables. This is achieved by passing variables by reference through OUT parameter.
When a triggered is fired due to a stamen in another trigger body then the triggers are termed as cascading triggers. There can be a maximum of 32 cascading triggers.
Triggers giving SELECT to the table on which they are written are termed as mutating triggers.
An Oracle database can be termed as a compilation of data housed in a database server and treated like a large unit.
A group of SQL statements flanked by any 2 ROLLBACK and COMMIT statements is a transaction.
Related Interview Questions
DB2 Interview Questions
DBMS Interview Questions
Stored procedures Interview questions
Mysql Interview Questions
Mssql Interview Questions
MongoDB Interview Questions
Neo4j interview questions
NoSQL interview questions
Oracle Interview Questions
OrientDB interview questions
PL/SQL Interview Questions
Postgresql Interview Questions
Redis interview questions
SQLite interview questions
RavenDB Interview Questions
Couchdb Interview Questions
Weblogic Interview Questions
MariaDB Interview Questions
Cassandra Interview Questions
PouchDB Interview Questions
Oracle DBA Interview Questions
Subscribe Our NewsLetter
Never Miss an Articles from us.
- Common Interview Questions
- Python Flask Interview Questions
- NoSQL interview questions
- JQuery Interview Questions
- C programming interview questions
- AngularJS Interview Questions
- Node JS Interview Questions with Express
- Core Java interview questions
- HTML Interview Questions
- Laravel interview questions
- Wordpress Interview Questions
- PHP Interview Questions