<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3552788501701953173</id><updated>2012-01-28T18:02:55.657+05:30</updated><title type='text'>oracle tutorial</title><subtitle type='html'>Easily Get Help From An Expert For Programming And project assignment.
http://hyparoffice.com/</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-1609404768828905054</id><published>2008-01-07T06:55:00.001+05:30</published><updated>2008-01-07T06:56:29.373+05:30</updated><title type='text'>Oracle-9</title><content type='html'>Which is more faster - IN or EXISTS ? &lt;br /&gt;EXISTS is more faster than IN because EXISTS returns a Boolean value whereas IN &lt;br /&gt;returns a value. &lt;br /&gt;&lt;br /&gt;What is a OUTER JOIN ? &lt;br /&gt;Outer Join--Its a join condition used where you can query all the rows of one of the tables &lt;br /&gt;in the join condition even though they don't satisfy the join condition. &lt;br /&gt;&lt;br /&gt;What is a pseudo column. Give some examples ? &lt;br /&gt;It is a column that is not an actual column in the table. &lt;br /&gt;eg USER, UID, SYSDATE, ROWNUM, ROWID, NULL, AND LEVEL. &lt;br /&gt;&lt;br /&gt;Suppose customer table is there having different columns like customer no, payments.What &lt;br /&gt;will be the query to select top three max payments ? &lt;br /&gt;SELECT&lt;br /&gt;customer_no, payments from customer C1 WHERE 3&lt;=(SELECT COUNT(*) from &lt;br /&gt;customer C2 WHERE C1.payment &lt;= C2.payment) &lt;br /&gt;&lt;br /&gt;What is the purpose of a cluster ? &lt;br /&gt;Oracle does not allow a user to specifically locate tables, since that is a part of the function &lt;br /&gt;of the RDBMS. However, for the purpose of increasing performance, oracle allows a developer &lt;br /&gt;to create a CLUSTER. A CLUSTER provides a means for storing data from different tables &lt;br /&gt;together for faster retrieval than if the table placement were left to the RDBMS. &lt;br /&gt;&lt;br /&gt;What is a cursor ? &lt;br /&gt;Oracle uses work area to execute SQL statements and store processing information PL/SQL &lt;br /&gt;construct called a cursor lets you name a work area and access its stored information A cursor is a &lt;br /&gt;mechanism used to fetch more than one row in a PL/SQL block. &lt;br /&gt;Difference between an implicit &amp; an explicit cursor ? &lt;br /&gt;PL/SQL declares a cursor implicitly for all SQL data manipulation statements, including &lt;br /&gt;quries that return only one row. However,queries that return more than one row you must declare &lt;br /&gt;an explicit cursor or use a cursor FOR loop.Explicit cursor is a cursor in which the cursor name is explicitly assigned to a SELECT &lt;br /&gt;statement via the CURSOR...IS statement. An implicit cursor is used for all SQL statements &lt;br /&gt;Declare, Open, Fetch, Close. An explicit cursors are used to process multirow SELECT statements &lt;br /&gt;An implicit cursor is used to process INSERT, UPDATE, DELETE and single row SELECT. &lt;br /&gt;.INTO statements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-1609404768828905054?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/1609404768828905054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=1609404768828905054' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/1609404768828905054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/1609404768828905054'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2008/01/oracle-9.html' title='Oracle-9'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-1732429269019096780</id><published>2007-08-07T15:07:00.000+05:30</published><updated>2007-08-07T15:13:30.272+05:30</updated><title type='text'>oracle 8</title><content type='html'>Questions and Answers : &lt;br /&gt;&lt;br /&gt;What is a CO-RELATED SUBQUERY ? &lt;br /&gt;A CO-RELATED SUBQUERY is one that has a correlation name as table or view designator in &lt;br /&gt;the FROM clause of the outer query and the same correlation name as a qualifier of a search &lt;br /&gt;condition in the WHERE clause of the subquery. &lt;br /&gt;eg SELECT field1 from table1 X WHERE field2&gt;(select avg(field2) from table1 Y &lt;br /&gt;where field1=X.field1); &lt;br /&gt;(The subquery in a correlated subquery is revaluated &lt;br /&gt;for every row of the table or view named in the outer query.) &lt;br /&gt;What are various joins used while writing SUBQUERIES ? &lt;br /&gt;Self join-Its a join foreign key of a table references the same table. &lt;br /&gt;Outer Join--Its a join condition used where One can query all the rows of one of the &lt;br /&gt;tables in the join condition even though they don't satisfy the join condition. &lt;br /&gt;Equi-join--Its a join condition that retrieves rows from one or more tables in which one &lt;br /&gt;or more columns in one table are equal to one or more columns in the second table. &lt;br /&gt;&lt;br /&gt;What are various constraints used in SQL ? &lt;br /&gt;NULL, NOT NULL, CHECK, DEFAULT &lt;br /&gt;&lt;br /&gt;What are different Oracle database objects ? &lt;br /&gt;TABLES, VIEWS, INDEXES, SYNONYMS, SEQUENCES, TABLESPACES etc &lt;br /&gt;&lt;br /&gt;What is difference between Rename and Alias ? &lt;br /&gt;Rename is a permanent name given to a table or column whereas Alias is a temporary &lt;br /&gt;name given to a table or column which do not exist once the SQL statement is executed. &lt;br /&gt;&lt;br /&gt;What is a view ? &lt;br /&gt;A view is stored procedure based on one or more tables, it's a virtual table. &lt;br /&gt;&lt;br /&gt;What are various privileges that a user can grant to another user ? &lt;br /&gt;SELECT, CONNECT, RESOURCES &lt;br /&gt;&lt;br /&gt;What is difference between UNIQUE and PRIMARY KEY constraints ? &lt;br /&gt;A table can have only one PRIMARY KEY whereas there can be any number of UNIQUE &lt;br /&gt;keys. The columns that compose PK are automatically define NOT NULL, whereas a column that &lt;br /&gt;compose a UNIQUE is not automatically defined to be mandatory must also specify the column is &lt;br /&gt;NOT NULL.&lt;br /&gt;&lt;br /&gt;Can a primary key contain more than one columns ? &lt;br /&gt;Yes &lt;br /&gt;&lt;br /&gt;How you will avoid duplicating records in a query ? &lt;br /&gt;&lt;br /&gt;By using DISTINCT &lt;br /&gt;&lt;br /&gt;What is difference between SQL and SQL*PLUS ? &lt;br /&gt;SQL*PLUS is a command line tool where as SQL and PL/SQL language interface and &lt;br /&gt;reporting tool. Its a command line tool that allows user to type SQL commands to be executed &lt;br /&gt;directly against an Oracle database. SQL is a language used to query the relational &lt;br /&gt;database(DML,DCL,DDL). SQL*PLUS commands are used to format query result, Set options, &lt;br /&gt;Edit SQL commands and PL/SQL. &lt;br /&gt;&lt;br /&gt;Which datatype is used for storing graphics and images ? &lt;br /&gt;LONG RAW &lt;br /&gt;data type is used for storing BLOB's (binary large objects). &lt;br /&gt;&lt;br /&gt;How will you delete duplicating rows from a base table ? &lt;br /&gt;DELETE FROM &lt;br /&gt;table_name A WHERE rowid&gt;(SELECT min(rowid) from table_name B where &lt;br /&gt;B.table_no=A.table_no); &lt;br /&gt;CREATE TABLE&lt;br /&gt;new_table AS SELECT DISTINCT * FROM old_table; &lt;br /&gt;DROP&lt;br /&gt;old_table &lt;br /&gt;RENAME&lt;br /&gt;new_table TO old_table &lt;br /&gt;DELETE FROM table_name A &lt;br /&gt;WHERE rowid NOT IN (SELECT MAX(ROWID) FROM table_name &lt;br /&gt;GROUP BY column_name)&lt;br /&gt;&lt;br /&gt;What is difference between SUBSTR and INSTR ? &lt;br /&gt;SUBSTR returns a specified portion of a string eg SUBSTR('BCDEF',4) output BCDE &lt;br /&gt;INSTR provides character position in which a pattern is found in a string. &lt;br /&gt;eg INSTR('ABC-DC-F','-',2) output 7 (2&lt;br /&gt;nd&lt;br /&gt;occurence of '-') &lt;br /&gt;&lt;br /&gt;There is a string '120000 12 0 .125' ,how you will find the position of the decimal place ? &lt;br /&gt;&lt;br /&gt;INSTR('120000 12 0 .125',1,'.') &lt;br /&gt;output 13 &lt;br /&gt;&lt;br /&gt;There is a '%' sign in one field of a column. What will be the query to find it ? &lt;br /&gt;'\' Should be used before '%'. &lt;br /&gt;&lt;br /&gt;When you use WHERE clause and when you use HAVING clause ? &lt;br /&gt;HAVING &lt;br /&gt;clause is used when you want to specify a condition for a group function and it is &lt;br /&gt;written after GROUP BY clause &lt;br /&gt;The WHERE clause is used when you want to specify a condition for columns, single row &lt;br /&gt;functions except group functions and it is written before GROUP BY clause if it is used.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-1732429269019096780?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/1732429269019096780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=1732429269019096780' title='90 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/1732429269019096780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/1732429269019096780'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/08/oracle-8.html' title='oracle 8'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>90</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-4199434238971590010</id><published>2007-06-11T12:14:00.000+05:30</published><updated>2007-06-11T12:16:01.765+05:30</updated><title type='text'>Oracle 7</title><content type='html'>What is Pseudo Colomn ? &lt;br /&gt;USER, UID, SYSDATE, ROWNUM, ROWID, NULL, AND LEVEL &lt;br /&gt;&lt;br /&gt;How to Display output in PL/SQL ? &lt;br /&gt;&lt;br /&gt;we first &lt;br /&gt;set serveroutput on&lt;br /&gt;at SQL Prompt. and then in sql programming we specify as &lt;br /&gt;dbms_output.put_line(`hdjhd' || `sakdha'); &lt;br /&gt;No Displays are allowed in PL/SQL programming with select statement &lt;br /&gt;&lt;br /&gt;Write about Commands and Keywords ? &lt;br /&gt;Alter : ALTER TABLE EMP ADD .......... , MODIFY .......... ; &lt;br /&gt;for a in 1..10 loop ........... end loop; &lt;br /&gt;loop exit when a&lt;1 .................. end loop; &lt;br /&gt;while ..... loop.................end loop; &lt;br /&gt;Data Types : number, integer, varchar2, char, date, Boolean; &lt;br /&gt;goto procedure name;..............&lt;&lt;procedure name&gt;&gt;.............. &lt;br /&gt;exit, rollback, commit, savepoint. &lt;br /&gt;References: This keyword is used to refer two similar fields of different tables. &lt;br /&gt;&lt;br /&gt;What are different built in functions ? &lt;br /&gt;CONCATENATE, INITCAP, LENGTH, LOWER, UPPER, LPAD, RPAD, LTRIM &lt;br /&gt;(removes the character specified left side of word), RTRIM, SUBSTR (displays values from &lt;br /&gt;specified location onwards), TRANSLATE (for single character), REPLACE (for more than one &lt;br /&gt;character ),CHR ( prints character of given ASCII value), ASCII (value of given character ). &lt;br /&gt;ABS, CEIL, FLOOR, SQRT, POWER, SIGN, TRUNC, ROUND, EXP, MOD, LOG, LN, &lt;br /&gt;GREATEST, LEAST, SYSDATE, ADD_MONTHS, MONTHS_BETWEEN. &lt;br /&gt;&lt;br /&gt;what are emp.sal%type and emp%rowtype ? &lt;br /&gt;First one is to assign a variable of type sal only. &lt;br /&gt;Second is to assign a complete row of type emp table. &lt;br /&gt;&lt;br /&gt;What are constraints ? &lt;br /&gt;Constraint Clause : This will constrain a single column or a group of columns in a table. &lt;br /&gt;and are used for maintaining integrity of the database. &lt;br /&gt;Different Constraints are : candidate keys, primary keys, foreign keys, check conditions. &lt;br /&gt;Can specify as a part of column definition, or at the end of the table (if more than one column). &lt;br /&gt;Check Constraint : for validations to fields. &lt;br /&gt;Naming Constraint (table constraints): Can name the constraint else system will name it &lt;br /&gt;by default. &lt;br /&gt;&lt;br /&gt;Different types of joins ? &lt;br /&gt;Equi join : where emp.deptno = dept.deptno; &lt;br /&gt;Non Equi join : where e.sal &gt;= g.losal; &lt;br /&gt;Outer join :***********e.deptno(+)=d.deptno; &lt;br /&gt;&lt;br /&gt;Different types of Keys ? &lt;br /&gt;Foreign Key : This is a referential integrity constraint and specifies the values of primary &lt;br /&gt;key in other table. and is mentioned as : &lt;br /&gt;&lt;br /&gt;DEPTNO number(2) REFERENCES DEPT(DEPTNO); &lt;br /&gt;The clause ON DELETE CASCADE added to REFERENCES clause tells Oracle to delete the &lt;br /&gt;dependent rows when we delete the row in the parent table. &lt;br /&gt;Unique Key : If declared, then does not accept duplicate and also NULL values. And can &lt;br /&gt;have many Unique key fields. &lt;br /&gt;Primary Key : Similar to Unique key but, also maintains an index on primary key and also &lt;br /&gt;used to connect two tables. &lt;br /&gt;&lt;br /&gt;Write about cursors ? &lt;br /&gt;Implicit (SQL is implicit by default ) and Explicit cursors. &lt;br /&gt;EXIT WHEN C1%NOTFOUND, IF C1%FOUND THEN, IF C1%ISOPEN THEN, &lt;br /&gt;FOR LOOP in CURSOR will : &lt;br /&gt;1) open the cursor. &lt;br /&gt;2) fetches the records from cursor one by one. &lt;br /&gt;3) keeps the track of number of records in the cursor.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Super Dynamism in Cursors is obtained by passing the values as parameters( ie pass by value) &lt;br /&gt;&lt;br /&gt;ie., for x in c1(a,b) &lt;br /&gt;Multiple Cursors : These are nothing but nested cursors........... &lt;br /&gt;In Implicit Cursors there is no need of declaration of cursors, by default system will create &lt;br /&gt;a cursor whenever a query is written...and the conditions are like if SQL%NOTFOUND &lt;br /&gt;if SQL%ROWCOUNT &gt; 2 will keep a count of the number of records updated. &lt;br /&gt;SQL is a keyword and cannot be used to name as a cursor name explicitly. &lt;br /&gt;&lt;br /&gt;Difference between group functions and single row functions ? &lt;br /&gt;Group Function &lt;br /&gt;Single Row Function &lt;br /&gt;A group function operates &lt;br /&gt;A single row function &lt;br /&gt;on many rows returns one and &lt;br /&gt;result for one row. &lt;br /&gt;returns single result. &lt;br /&gt;Not allowed in Pl/sql procedural Allowed in Pl/Sql Procedural statements &lt;br /&gt;eg SUM(),AVG,MIN,MAX etc &lt;br /&gt;eg UPPER,LOWER,CHR... &lt;br /&gt;&lt;br /&gt;Difference between DECODE and TRANSLATE ? &lt;br /&gt;DECODE is value by value &lt;br /&gt;TRANSLATE is character by &lt;br /&gt;character replacement. &lt;br /&gt;replacement. &lt;br /&gt;Ex SELECT DECODE('ABC','A',1,'B',2,'ABC',3) eg SELECT &lt;br /&gt;from dual; o/p 3 &lt;br /&gt;TRANSLATE('ABCGH', &lt;br /&gt;'ABCDEFGHIJ', 1234567899) &lt;br /&gt;FROM DUAL; o/p 12378 &lt;br /&gt;(DECODE command is used to bring IF,THEN,ELSE logic to SQL.It tests for the IF values(s) and &lt;br /&gt;then aplies THEN value(s) when true, the ELSE value(s) if not.) &lt;br /&gt;&lt;br /&gt;Difference between TRUNCATE and DELETE ? &lt;br /&gt;TRUNCATE deletes much faster than DELETE &lt;br /&gt;Truncate &lt;br /&gt;Delete &lt;br /&gt;It is a DDL statement &lt;br /&gt;It is a DML statement &lt;br /&gt;It is a one way trip,cannot &lt;br /&gt;One can Rollback &lt;br /&gt;ROLLBACK &lt;br /&gt;Doesn't have selective features (where clause) &lt;br /&gt;Has &lt;br /&gt;Doesn't fire database triggers &lt;br /&gt;Does &lt;br /&gt;It requires disabling of referential &lt;br /&gt;Does not require &lt;br /&gt;constraints.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-4199434238971590010?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/4199434238971590010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=4199434238971590010' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/4199434238971590010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/4199434238971590010'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/06/oracle-7.html' title='Oracle 7'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-2073228441632950551</id><published>2007-04-18T12:48:00.000+05:30</published><updated>2007-04-18T12:49:09.549+05:30</updated><title type='text'>Oracle 6</title><content type='html'>INTRODUCTION &lt;br /&gt;According to Elmasri and Navathe (1994), Dr. E. F. Codd, the originator of the relational &lt;br /&gt;data model, published a two-part article in ComputerWorld (Codd, 1985) that lists 12 rules for &lt;br /&gt;how to determine whether a DBMS is relational and to what extent it is relational. These rules &lt;br /&gt;provide a very useful yardstick for evaluating a relational system. Codd also mentions that,according to these rules, no fully relational system is available yet. In particular, rules 6, 9, 10, 11, &lt;br /&gt;and 12 are difficult to satisfy. &lt;br /&gt;&lt;br /&gt;THE 12 RULES &lt;br /&gt;&lt;br /&gt;Rule 1: The Information Rule &lt;br /&gt;All information in a relational database is represented explicitly at the logical level in &lt;br /&gt;exactly one way by values in tables. &lt;br /&gt;All data is represented in the form of relations/tables (with rows and columns)Simple &lt;br /&gt;Consistent and versatile &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Rule 2: Guaranteed Access Rule &lt;br /&gt;Each and every datum (atomic value) in a relational database is guaranteed to be logically &lt;br /&gt;accessible by resorting to a table name, primary key value, and column name. All Data is uniquely &lt;br /&gt;identified and accessible via this identity. &lt;br /&gt;&lt;br /&gt;Rule 3: Systematic Treatment of Null Values &lt;br /&gt;Null values (distinct from empty character string or a string of blank characters and distinct &lt;br /&gt;from zero or any other number) are supported in the fully relational DBMS for representing &lt;br /&gt;missing information in a systematic way, independent of data type. &lt;br /&gt;&lt;br /&gt;Rule 4: Dynamic On-line Catalog based on the Relational Model &lt;br /&gt;The database description is represented at the logical level in the same way as ordinary &lt;br /&gt;data, so authorized users can apply the same relational language to its interrogation as they apply &lt;br /&gt;to regular data. &lt;br /&gt;&lt;br /&gt;Rule 5: Comprehensive Data Sublanguage Rule &lt;br /&gt;A relational system may support several languages and various modes of terminal use (for &lt;br /&gt;example, the fill-in-blanks mode). However, there must be at least one language whose statements &lt;br /&gt;are expressible, per some well-defined syntax, as character strings and whose ability to support all &lt;br /&gt;of the following is comprehensible: data definition, view definition, data manipulation (interactive &lt;br /&gt;and by program), integrity constraints, and transaction boundaries (begin, commit, and rollback). &lt;br /&gt;&lt;br /&gt;Rule 6: View Updating Rule &lt;br /&gt;All views that are theoretically updateable are also updateable by the system. &lt;br /&gt;Views are virtual tables. They appear to behave as conventional tables except that they are built &lt;br /&gt;dynamically when the query is run. This means that a view is always up to date. It is not always &lt;br /&gt;theoretically possible to update views. One problem exists when a view relates to part of a table &lt;br /&gt;not including a candidate key. This means that potential updates would violate the entity integrity &lt;br /&gt;rule. &lt;br /&gt;&lt;br /&gt;Rule 7: High-level Insert, Update, and Delete &lt;br /&gt;The capability of handling a base relation or a derived relation as a single operand applies &lt;br /&gt;not only to the retrieval of data but also to the insertion, update, and deletion of data. i.e. The user &lt;br /&gt;should be allowed to Delete, Update a set of tuples (rather than row by row) &lt;br /&gt;&lt;br /&gt;Rule 8: Physical Data Independence &lt;br /&gt;Application programs and terminal activities remain logically unimpaired whenever any &lt;br /&gt;changes are made in either storage representation or access methods. i.e. Users and programs are &lt;br /&gt;not dependent on the physical structure of the database. &lt;br /&gt;&lt;br /&gt;Rule 9: Logical Data Independence &lt;br /&gt;Application programs and terminal activities remain logically unimpaired when &lt;br /&gt;information-preserving changes of any kind that theoretically permit unimpairment are made to &lt;br /&gt;the base tables. Users and Programs are independent of the logical structure of the database, i.e. &lt;br /&gt;the logical structure of the data can evolve with minimal impact on the programs. &lt;br /&gt;&lt;br /&gt;Rule 10: Integrity Independence &lt;br /&gt;Integrity constraints specific to a particular relational database must be definable in the &lt;br /&gt;relational data sublanguage and storable in the catalog, not in the application programs. A &lt;br /&gt;minimum of the following two integrity constraints must be supported: &lt;br /&gt;1. Entity integrity: No component of a primary key is allowed to have a null value. &lt;br /&gt;2. Referential integrity: For each distinct non-null foreign key value in a relational database, &lt;br /&gt;there must exist a matching primary key value from the same domain. &lt;br /&gt;&lt;br /&gt;Rule 11: Distribution Independence &lt;br /&gt;A relational DBMS has distribution independence. Distribution independence implies that &lt;br /&gt;users should not have to be aware of whether a database is distributed. Applications should still &lt;br /&gt;work in a distributed database (DDB). &lt;br /&gt;&lt;br /&gt;Rule 12: Nonsubversion Rule &lt;br /&gt;If a relational system has a low-level (single-record-at-a-time) language, that low-level &lt;br /&gt;language cannot be used to subvert or bypass the integrity rules or constraints expressed in the &lt;br /&gt;higher-level (multiple-records-at-a-time) relational language. &lt;br /&gt;If there is a record at a time interface (e.g. via 3GL), Security and integrity of the database &lt;br /&gt;must no be violated. There should be no backdoor to bypass the security imposed by the DBMS. &lt;br /&gt;&lt;br /&gt;On the basis of the above rules, there is no fully relational DBMS available today.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-2073228441632950551?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/2073228441632950551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=2073228441632950551' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/2073228441632950551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/2073228441632950551'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/04/oracle-6.html' title='Oracle 6'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-5960454259767503484</id><published>2007-04-11T19:13:00.000+05:30</published><updated>2007-04-11T19:15:26.046+05:30</updated><title type='text'>Oracle 5</title><content type='html'>NORMALIZATION&lt;br /&gt;Normalization is a process of simplifying the relationship between data elements in a record. Through Normalization a collection of data in a record structure is replaced by successive record structures that are simpler and more predictable and therefore more manageable. It is process of reducing redundancy and eliminating the anomalies. (anamali means inconsistent state.)&lt;br /&gt;Normalization is carried out for four reasons: · To Structure the data so that any pertinent relationships between entities can be represented. · To permit simple retrieval of data in response to query and report requests. · To simplify the maintenance of the data through updates, insertions, and deletion · To reduce the need to restructure or reorganize data when new application requirements arise. · Normalization can improve the quality of design for an application.&lt;br /&gt;There are totally Five Normal Forms(Rules) out of which, any database should necessarily satisfy three of them, those Three Normal Forms are as follows:&lt;br /&gt;First normal form is achieved when all repeating groups are removed so that a record is of fixed length. A repeating group, the re-occurrence of a data item within a record, is actually another relation. Hence, it is removed from the record and treated as an additional record structure, or relation.&lt;br /&gt;Second Normal form should be in first normal form and no partial dependency exists. Means if we have a composite primary key(combination of 2 or more fields) then all the non keys must depend on the composite primary key. no attribute should depend upon the part of key.(for example if Rollno and SSno is a composite key, then no other field in that particular table should be depedent upon either Rollno or ssno individually)&lt;br /&gt;Third Normal form is achieved when Transitive Dependencies are removed from a record design. The general case is as follows : A,B and C are three data items in a record. If C is functionally dependent on B (2nd N.F) and B is functionally dependent on A Then C is functionally dependent on A Therefore, a Transitive Dependency exists. In data management, transitive dependency is a concern because data can inadvertently be lost when the relationship is hidden. In the general case above, if A is deleted, then B and C are deleted also, whether or not this is intended. This problem is eliminated by designing the record for third normal form. Conversion to third normal form removes the transitive dependency by splitting the relation into two separate relations.&lt;br /&gt;BCNF must be 3NF and every determinant is a candidate key. Candidate key is other than primary key, which uniquely identify each row in the table. for example ssno is PK then rollno becomes Candidate key.&lt;br /&gt;4NF and 5NF are depends on instance. we can not give a proper def. bcz it all depends on joins. "CODD's 12 RULES" for a fully Relational DBMS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-5960454259767503484?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/5960454259767503484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=5960454259767503484' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/5960454259767503484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/5960454259767503484'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/04/oracle-5.html' title='Oracle 5'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-8159365131770171796</id><published>2007-02-22T09:57:00.001+05:30</published><updated>2007-02-22T09:57:32.289+05:30</updated><title type='text'>Oracle 4</title><content type='html'>WHY ORACLE ? Oracle is an open system i.e. the database is accessing by different data access languages like SQL, Visual Basic, Power Builders,Delphi,VC++,JAVA etc. Oracle supports database upto gigabytes in size. * Oracle supports large number of concurrent users. * Oracle supports true client/server environment.if enable processing to be spilt between database server and the client application programs. * Oracle provides high levelof data security in terms of users, passwords privileges, and permissions. * Oracle database behaves same on all platform line Windows,Unix,Dos,Mainframes etc.&lt;br /&gt;Structure of Oracle Database:&lt;br /&gt;physical structure: one or more data files, Two of more log files, One control file. Logical structure: Table spaces, Segments, Extents, Data blocks.&lt;br /&gt;The data files contain all user data in terms of tables, index, and views. The log files contain the information to open and be recovered, of Undone after a transaction(Rollback).&lt;br /&gt;The control file physical data, media information to open and manage data files .If the control file is damaged the server will not be able to open are use the database even if&lt;br /&gt;the database is undamaged.&lt;br /&gt;What are the Back ground processes in Oracle and what are they. ? There are basically 9 Processes but in a general system we need to mention the first five background processes. They do the house keeping activities for the Oracle and are common&lt;br /&gt;in any system. a) Data Base Writer(DBWR) :: Data Base Writer Writes Modified blocks from Database buffer cache to Data Files.This is required since the data is not written whenever a transaction is commited. b)LogWriter(LGWR) :: LogWriter writes the redo log entries to disk. Redo Log data is generated in redo log&lt;br /&gt;buffer of SGA. As transaction commits and log buffer fills, LGWR writes log entries into a online&lt;br /&gt;redo log file. c) System Monitor(SMON) :: The System Monitor performs instance recovery at instance startup. This is useful for recovery from system failure. d)Process Monitor(PMON) :: The Process Monitor peforms process recovery when user Process fails. Pmon Clears and Frees resources that process was using. e) CheckPoint(CKPT) :: At Specified times, all modified database buffers in SGA are written to data files by DBWR at Checkpoints and Updating all data files and control files of database to indicate&lt;br /&gt;the most recent checkpoint. f)Archieves(ARCH) :: The Archiver copies online redo log files to archival storal when they are busy. g) Recoveror(RECO) :: The Recoveror is used to resolve the distributed transaction in network h) Dispatcher (Dnnn) :: The Dispatcher is useful in Multi Threaded Architecture i) Lckn :: We can have upto 10 lock processes for inter instance locking in parallel sql.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-8159365131770171796?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/8159365131770171796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=8159365131770171796' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/8159365131770171796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/8159365131770171796'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/02/oracle-4.html' title='Oracle 4'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-8448786964358095601</id><published>2007-02-22T09:55:00.000+05:30</published><updated>2007-02-22T09:56:33.915+05:30</updated><title type='text'>Oracle 3</title><content type='html'>The Oracle Environment Oracle is a modular system that consists of the Oracle database and several functional programs. Oracle's tools do four major things of work. 1. Database Management. 2. Data access and Manipulation. 3. Programming 4. Connectivity.&lt;br /&gt;Database Management Tools&lt;br /&gt;This (is usually known as RDBMS by oracle) includes the core programs for Oracle's database management system, the Oracle database with its associated tables and views, which are stores information related to every fact of the database system.User name, user access rights, table attribute, storage information and auditing data for disaster recovery are stored in the data dictionary.&lt;br /&gt;The Database Administrator&lt;br /&gt;The person responsible for a Database is called the DatabaseAdministrator(DBA).The DBA has a special set of previleges and has complete over the database.Any system with more than one user should have a DBA.The function of DBA include. Creating primary database storage structures. Modifying the structure of the database. Backing up and restoring the database.&lt;br /&gt;Monitoring database performance and efficiency. Transfering data between database and external files. Manipulating the phisical location of the database.&lt;br /&gt;THE END USER End user have less complex but equally important tasks.They must be able to · Query the database. · Generate printed output. · Share data with or secure data from others. · Use non-export methods to update the database. · Define applications from a user point of view.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-8448786964358095601?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/8448786964358095601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=8448786964358095601' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/8448786964358095601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/8448786964358095601'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/02/oracle-3.html' title='Oracle 3'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-4782697754714196322</id><published>2007-02-12T11:07:00.001+05:30</published><updated>2007-02-12T11:06:22.111+05:30</updated><title type='text'>Oracle 2</title><content type='html'>Oracle the Right Tool To keep track of records is often the best reason to consider buying a software package.Choosing a proven product increase the chance that we will get a system capable of meeting all our needs .Oracle has had many years in the relational market to often on the large,Complex applications. Although Oracle demands greater expertise on the part of the application developed,an application developed oracle will be able to keep pace with growth and change in the world at large.&lt;br /&gt;Oracle Gives You Security and Control&lt;br /&gt;Oracle has several features that ensure the integrity of the data base. If an interruption occurs in processing, a Rollback can reset the database to a point before the disaster. If a restore is necessary, Oracle has a Roll forward command for recreating your database to its mast resent save point.&lt;br /&gt;Oracle provides user with several functions for securing data. Grant and Revoke commands limit access to information down to the row and column levels. Views are valuable feature for limiting access to the primary tables in the database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-4782697754714196322?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/4782697754714196322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=4782697754714196322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/4782697754714196322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/4782697754714196322'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/02/oracle-2.html' title='Oracle 2'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-540007058534034806</id><published>2007-02-12T11:04:00.000+05:30</published><updated>2007-02-12T11:04:25.516+05:30</updated><title type='text'>Introduction to Oracle</title><content type='html'>Introduction to Oracle. Oracle is a comprehensive operating environment that packs the power of mainframe relation database management system into user's micro computer. It provides a set of functional programs that user can use as tools to build structures and perform tasks. Because applications are developed on oracle are completely portable to the other versions of the programmer can create a complex application in a single user, environment and them move it to a multi user platform.Users do not have to be an expert to appriciate Oracle but the better user understand the program,the more productively and creatively he can use the tools it provides Relational Database Management system A Relational Database Management System (RDBMS) can perform a wide range of tasks. It acts as a transparent interface between the physical storage and the logical presentation of data.It provides a set of more or less flexible and sofesticated tools for handling information. Users can use the tools to&lt;br /&gt; · Define a Database&lt;br /&gt;· Query the Database&lt;br /&gt;· Add,Edit and Delete data.&lt;br /&gt; · Modify the structure of the Database.&lt;br /&gt; · Communicate with in the Networks.&lt;br /&gt; · Exports and Imports the data.&lt;br /&gt;· Security.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-540007058534034806?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/540007058534034806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=540007058534034806' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/540007058534034806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/540007058534034806'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/02/introduction-to-oracle.html' title='Introduction to Oracle'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3552788501701953173.post-7730150282132215897</id><published>2007-01-29T10:23:00.000+05:30</published><updated>2007-02-12T11:02:29.224+05:30</updated><title type='text'>welcome to oracle tutorial</title><content type='html'>welcome to oracle tutorial&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3552788501701953173-7730150282132215897?l=oracletutorials.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://oracletutorials.blogspot.com/feeds/7730150282132215897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3552788501701953173&amp;postID=7730150282132215897' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/7730150282132215897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3552788501701953173/posts/default/7730150282132215897'/><link rel='alternate' type='text/html' href='http://oracletutorials.blogspot.com/2007/01/webstore-to-oracle-tutorial.html' title='welcome to oracle tutorial'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
