<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>E- Learning.</title><description>E-learning, online training, E-books and collections for various technologies like .NET, Sql Server, Windows 2008, Windows 2003 and interview preperation kit and many more....</description><managingEditor>noreply@blogger.com (Praveen Kumar Bonala)</managingEditor><pubDate>Sat, 31 Aug 2024 07:03:19 +0530</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">68</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://hitechpoint.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><copyright>HitechWorld 2007 Copy Rights Protected</copyright><itunes:subtitle>E-learning, online training, E-books and collections for various technologies like .NET, Sql Server, Windows 2008, Windows 2003 and interview preperation kit and many more....</itunes:subtitle><itunes:category text="Technology"><itunes:category text="Gadgets"/></itunes:category><itunes:category text="News &amp; Politics"/><itunes:category text="TV &amp; Film"/><itunes:category text="Education"><itunes:category text="Educational Technology"/></itunes:category><itunes:category text="Sports &amp; Recreation"><itunes:category text="Outdoor"/></itunes:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>MICROSOFT Windows Longhorn</title><link>http://hitechpoint.blogspot.com/2011/03/microsoft-windows-longhorn.html</link><category>MICROSOFT Windows Longhorn</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Mon, 28 Mar 2011 08:28:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-3967707417501978130</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;What is Windows Longhorn?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Longhorn is the codename for the next-generation version of Microsoft's flagship Windows operating system.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;IT is the next major desktop Windows release, which follows Windows XP. Windows Longhorn will includes a number of new features including a revised task-based (or "iterative") user interface, an extensible, dock-like, Sidebar, and a SQL Server 2003-based storage engine called WinFS (Windows Future Storage).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Features of Longhorn&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will feature a task-based (or "iterative") interface that goes far beyond the task-based interface found today in Windows XP.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Long Horn will feature WinFS, a new file system based around relational database technology (NTFS will still be available) &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will require 3D video hardware to render special effects that will make the screen more photorealistic and deep.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn Features Improved Security. Longhorn will optionally include the Palladium security technology Microsoft is developing with Intel and AMD &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will include new anti-virus (AV) APIs that will help developers more easily integrate their wares into the base OS.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will include integrated recordable DVD capabilities and will work with every type of recordable DVD format. Digital media enthusiasts will be able to copy video from a digital camcorder directly to recordable DVD, bypassing the system's hard drive entirely, if desired.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will include a new Setup routine that installs the OS in about 15 minutes.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• Longhorn will feature hundreds of new APIs that will let provide access to the new system's features. The Win32 API from previous Windows versions is being replaced by a new .NET-based API called WinFX, for example. It will also feature a new communications and collaboration subsystem, dubbed Indigo.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The visual display in Longhorn is awesome, simply awesome because…..&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Longhorn includes...&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• an enhanced desktop experience that includes advanced 3D graphics capabilities and driver functionality. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• a new display driver model that will feature radically advanced functionality, stability, and reliability. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• a radically redesigned user interface with a dynamically composed desktop featuring compelling new visual effects like graphically tumbling, rotating, and warped windows. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• hardware accelerated and resolution independent anti-aliased 2D scalable graphics that will expose functionality based on the capabilities of your system's 3D video hardware. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;• a rich 3D graphics architecture that is integrated directly into the Windows UI.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>.NET Windows Forms Interview Questions</title><link>http://hitechpoint.blogspot.com/2011/03/net-windows-forms-interview-questions.html</link><category>.NET Windows Forms Interview Questions</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Sun, 27 Mar 2011 17:35:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-550689516560575779</guid><description>1. Write a simple Windows Forms MessageBox statement.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. System.Windows.Forms.MessageBox.Show&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. ("Hello, Windows Forms");&lt;br /&gt;
&lt;br /&gt;
4. Can you write a class without specifying namespace? Which namespace does it belong to by default??&lt;br /&gt;
&lt;br /&gt;
Yes, you can, then the class belongs to global namespace which has no name. For commercial products, naturally, you wouldn’t want global namespace. &lt;br /&gt;
&lt;br /&gt;
5. You are designing a GUI application with a window and several widgets on it. The user then resizes the app window and sees a lot of grey space, while the widgets stay in place. What’s the problem? One should use anchoring for correct resizing. Otherwise the default property of a widget on a form is top-left, so it stays at the same location when resized. &lt;br /&gt;
&lt;br /&gt;
6. How can you save the desired properties of Windows Forms application? .config files in .NET are supported through the API to allow storing and retrieving information. They are nothing more than simple XML files, sort of like what .ini files were before for Win32 apps. &lt;br /&gt;
&lt;br /&gt;
7. So how do you retrieve the customized properties of a .NET application from XML .config file? Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. &lt;br /&gt;
&lt;br /&gt;
8. Can you automate this process? In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval. &lt;br /&gt;
&lt;br /&gt;
9. My progress bar freezes up and dialog window shows blank, when an intensive background process takes over. Yes, you should’ve multi-threaded your GUI, with taskbar and main form being one thread, and the background process being the other. &lt;br /&gt;
&lt;br /&gt;
10. What’s the safest way to deploy a Windows Forms app? Web deployment: the user always downloads the latest version of the code; the program runs within security sandbox, properly written app will not require additional security privileges. &lt;br /&gt;
&lt;br /&gt;
11. Why is it not a good idea to insert code into InitializeComponent method when working with Visual Studio? The designer will likely throw it away; most of the code inside InitializeComponent is auto-generated. &lt;br /&gt;
&lt;br /&gt;
12. What’s the difference between WindowsDefaultLocation and WindowsDefaultBounds? WindowsDefaultLocation tells the form to start up at a location selected by OS, but with internally specified size. WindowsDefaultBounds delegates both size and starting position choices to the OS. &lt;br /&gt;
&lt;br /&gt;
13. What’s the difference between Move and LocationChanged? Resize and SizeChanged? Both methods do the same, Move and Resize are the names adopted from VB to ease migration to C#. &lt;br /&gt;
&lt;br /&gt;
14. How would you create a non-rectangular window, let’s say an ellipse? Create a rectangular form, set the TransparencyKey property to the same value as BackColor, which will effectively make the background of the form transparent. Then set the FormBorderStyle to FormBorderStyle.None, which will remove the contour and contents of the form. &lt;br /&gt;
&lt;br /&gt;
15. How do you create a separator in the Menu Designer? A hyphen ‘-’ would do it. Also, an ampersand ‘&amp;amp;\’ would underline the next letter. &lt;br /&gt;
&lt;br /&gt;
16. How’s anchoring different from docking? Anchoring treats the component as having the absolute size and adjusts its location relative to the parent form. Docking treats the component location as absolute and disregards the component size. So if a status bar must always be at the bottom no matter what, use docking. If a button should be on the top right, but change its position with the form being resized, use anchoring.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>.NET Remoting Interview Questions</title><link>http://hitechpoint.blogspot.com/2011/03/net-remoting-interview-questions.html</link><category>.NET Remoting Interview Questions</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Sun, 27 Mar 2011 17:34:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-163775009809784497</guid><description>1. What’s a Windows process? It’s an application that’s running and had been allocated memory. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. What’s typical about a Windows process in regards to memory allocation? Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down. &lt;br /&gt;
&lt;br /&gt;
3. Why do you call it a process? What’s different between process and application in .NET, not common computer usage, terminology? A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application. &lt;br /&gt;
&lt;br /&gt;
4. What distributed process frameworks outside .NET do you know? Distributed Computing Environment/Remote Procedure Calls (DEC/RPC), Microsoft Distributed Component Object Model (DCOM), Common Object Request Broker Architecture (CORBA), and Java Remote Method Invocation (RMI). &lt;br /&gt;
&lt;br /&gt;
5. What are possible implementations of distributed applications in .NET? .NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services. &lt;br /&gt;
&lt;br /&gt;
6. When would you use .NET Remoting and when Web services? Use remoting for more efficient exchange of information when you control both ends of the application. Use Web services for open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else. &lt;br /&gt;
&lt;br /&gt;
7. What’s a proxy of the server object in .NET Remoting? It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling. &lt;br /&gt;
&lt;br /&gt;
8. What are remotable objects in .NET Remoting? Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed. &lt;br /&gt;
&lt;br /&gt;
9. What are channels in .NET Remoting? Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred. &lt;br /&gt;
&lt;br /&gt;
10. What security measures exist for .NET Remoting in System.Runtime.Remoting? None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level. &lt;br /&gt;
&lt;br /&gt;
11. What is a formatter? A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end. &lt;br /&gt;
&lt;br /&gt;
12. Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs? Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable. &lt;br /&gt;
&lt;br /&gt;
13. What’s SingleCall activation mode used for? If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode. &lt;br /&gt;
&lt;br /&gt;
14. What’s Singleton activation mode? A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease. &lt;br /&gt;
&lt;br /&gt;
15. How do you define the lease of the object? By implementing ILease interface when writing the class code. &lt;br /&gt;
&lt;br /&gt;
16. Can you configure a .NET Remoting object via XML file? Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config. &lt;br /&gt;
&lt;br /&gt;
17. How can you automatically generate interface for the remotable object in .NET with Microsoft tools? Use the Soapsuds tool.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>C#.NET Interview Questions</title><link>http://hitechpoint.blogspot.com/2011/03/cnet-interview-questions.html</link><category>C#.NET Interview Questions</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Sun, 27 Mar 2011 17:32:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-3835096878355548751</guid><description>1. What’s the implicit name of the parameter that gets passed into the class’ set method? Value, and its datatype depends on whatever variable we’re changing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. How do you inherit from a class in C#? Place a colon and then the name of the base class. Notice that it’s double colon in C++. &lt;br /&gt;
&lt;br /&gt;
3. Does C# support multiple inheritance? No, use interfaces instead. &lt;br /&gt;
&lt;br /&gt;
4. When you inherit a protected class-level variable, who is it available to? Classes in the same namespace. &lt;br /&gt;
&lt;br /&gt;
5. Are private class-level variables inherited? Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are. &lt;br /&gt;
&lt;br /&gt;
6. Describe the accessibility modifier protected internal. It’s available to derived classes and classes within the same Assembly (and naturally from the base class it’s declared in). &lt;br /&gt;
&lt;br /&gt;
7. C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write? Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in it. &lt;br /&gt;
&lt;br /&gt;
8. What’s the top .NET class that everything is derived from? System.Object. &lt;br /&gt;
&lt;br /&gt;
9. How’s method overriding different from overloading? When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class. &lt;br /&gt;
&lt;br /&gt;
10. What does the keyword virtual mean in the method definition? The method can be over-ridden. &lt;br /&gt;
&lt;br /&gt;
11. Can you declare the override method static while the original method is non-static? No, you can’t, the signature of the virtual method must remain the same, only the keyword virtual is changed to keyword override. &lt;br /&gt;
&lt;br /&gt;
12. Can you override private virtual methods? No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access. &lt;br /&gt;
&lt;br /&gt;
13. Can you prevent your class from being inherited and becoming a base class for some other classes? Yes, that’s what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It’s the same concept as final class in Java. &lt;br /&gt;
&lt;br /&gt;
14. Can you allow class to be inherited, but prevent the method from being over-ridden? Yes, just leave the class public and make the method sealed. &lt;br /&gt;
&lt;br /&gt;
15. What’s an abstract class? A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it’s a blueprint for a class without any implementation. &lt;br /&gt;
&lt;br /&gt;
16. When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)? When at least one of the methods in the class is abstract. When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden. &lt;br /&gt;
&lt;br /&gt;
17. What’s an interface class? It’s an abstract class with public abstract methods all of which must be implemented in the inherited classes. &lt;br /&gt;
&lt;br /&gt;
18. Why can’t you specify the accessibility modifier for methods inside the interface? They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it’s public by default. &lt;br /&gt;
&lt;br /&gt;
19. Can you inherit multiple interfaces? Yes, why not. &lt;br /&gt;
&lt;br /&gt;
20. And if they have conflicting method names? It’s up to you to implement the method inside your own class, so implementation is left entirely up to you. This might cause a problem on a higher-level scale if similarly named methods from different interfaces expect different data, but as far as compiler cares you’re okay. &lt;br /&gt;
&lt;br /&gt;
21. What’s the difference between an interface and abstract class? In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes. &lt;br /&gt;
&lt;br /&gt;
22. How can you overload a method? Different parameter data types, different number of parameters, different order of parameters. &lt;br /&gt;
&lt;br /&gt;
23. If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor? Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside the inherited class. &lt;br /&gt;
&lt;br /&gt;
24. What’s the difference between System.String and System.StringBuilder classes? System.String is immutable; System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. &lt;br /&gt;
&lt;br /&gt;
25. What’s the advantage of using System.Text.StringBuilder over System.String? StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it’s being operated on, a new instance is created. &lt;br /&gt;
&lt;br /&gt;
26. Can you store multiple data types in System.Array? No. &lt;br /&gt;
&lt;br /&gt;
27. What’s the difference between the System.Array.CopyTo() and System.Array.Clone()? The first one performs a deep copy of the array, the second one is shallow. &lt;br /&gt;
&lt;br /&gt;
28. How can you sort the elements of the array in descending order? By calling Sort() and then Reverse() methods. &lt;br /&gt;
&lt;br /&gt;
29. What’s the .NET datatype that allows the retrieval of data by a unique key? HashTable. &lt;br /&gt;
&lt;br /&gt;
30. What’s class SortedList underneath? A sorted HashTable. &lt;br /&gt;
&lt;br /&gt;
31. Will finally block get executed if the exception had not occurred? Yes. &lt;br /&gt;
&lt;br /&gt;
32. What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception? A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}. &lt;br /&gt;
&lt;br /&gt;
33. Can multiple catch blocks be executed? No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block. &lt;br /&gt;
&lt;br /&gt;
34. Why is it a bad idea to throw your own exceptions? Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project. &lt;br /&gt;
&lt;br /&gt;
35. What’s a delegate? A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers. &lt;br /&gt;
&lt;br /&gt;
36. What’s a multicast delegate? It’s a delegate that points to and eventually fires off several methods. &lt;br /&gt;
&lt;br /&gt;
37. How’s the DLL Hell problem solved in .NET? Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly. &lt;br /&gt;
&lt;br /&gt;
38. What are the ways to deploy an assembly? An MSI installer, a CAB archive, and XCOPY command. &lt;br /&gt;
&lt;br /&gt;
39. What’s a satellite assembly? When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies. &lt;br /&gt;
&lt;br /&gt;
40. What namespaces are necessary to create a localized application? System.Globalization, System.Resources. &lt;br /&gt;
&lt;br /&gt;
41. What’s the difference between // comments, /* */ comments and /// comments? Single-line, multi-line and XML documentation comments. &lt;br /&gt;
&lt;br /&gt;
42. How do you generate documentation from the C# file commented properly with a command-line compiler? Compile it with a /doc switch. &lt;br /&gt;
&lt;br /&gt;
43. What’s the difference between &lt;c&gt;and &lt;code&gt;XML documentation tag? Single line code example and multiple-line code example. &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
44. Is XML case-sensitive? Yes, so &lt;student&gt;and &lt;student&gt;are different elements. &lt;br /&gt;
&lt;br /&gt;
45. What debugging tools come with the .NET SDK? CorDBG – command-line debugger, and DbgCLR – graphic debugger. Visual Studio .NET uses the DbgCLR. To use CorDbg, you must compile the original C# file using the /debug switch. &lt;br /&gt;
&lt;br /&gt;
46. What does the This window show in the debugger? It points to the object that’s pointed to by this reference. Object’s instance data is shown. &lt;br /&gt;
&lt;br /&gt;
47. What does assert() do? In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true. &lt;br /&gt;
&lt;br /&gt;
48. What’s the difference between the Debug class and Trace class? Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds. &lt;br /&gt;
&lt;br /&gt;
49. Why are there five tracing levels in System.Diagnostics.TraceSwitcher? The tracing dumps can be quite verbose and for some applications that are constantly running you run the risk of overloading the machine and the hard drive there. Five levels range from None to Verbose, allowing to fine-tune the tracing activities. &lt;br /&gt;
&lt;br /&gt;
50. Where is the output of TextWriterTraceListener redirected? To the Console or a text file depending on the parameter passed to the constructor. &lt;br /&gt;
&lt;br /&gt;
51. How do you debug an ASP.NET Web application? Attach the aspnet_wp.exe process to the DbgClr debugger. &lt;br /&gt;
&lt;br /&gt;
52. What are three test cases you should go through in unit testing? Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly). &lt;br /&gt;
&lt;br /&gt;
53. Can you change the value of a variable while debugging a C# application? Yes, if you are debugging via Visual Studio.NET, just go to Immediate window. &lt;br /&gt;
&lt;br /&gt;
54. Explain the three services model (three-tier application). Presentation (UI), business (logic and underlying code) and data (from storage or other sources). &lt;br /&gt;
&lt;br /&gt;
55. What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET? SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it’s a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines. &lt;br /&gt;
&lt;br /&gt;
56. What’s the role of the DataReader class in ADO.NET connections? It returns a read-only dataset from the data source when the command is executed. &lt;br /&gt;
&lt;br /&gt;
57. What is the wildcard character in SQL? Let’s say you want to query database with LIKE for all employees whose name starts with La. The wildcard character is %, the proper query with LIKE would involve ‘La%’. &lt;br /&gt;
&lt;br /&gt;
58. Explain ACID rule of thumb for transactions. Transaction must be Atomic (it is one unit of work and does not dependent on previous and following transactions), Consistent (data is either committed or roll back, no “in-between” case where something has been updated and something hasn’t), Isolated (no transaction sees the intermediate results of the current transaction), Durable (the values persist if the data had been committed even if the system crashes right after). &lt;br /&gt;
&lt;br /&gt;
59. What connections does Microsoft SQL Server support? Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords). &lt;br /&gt;
&lt;br /&gt;
60. Which one is trusted and which one is untrusted? Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction. &lt;br /&gt;
&lt;br /&gt;
61. Why would you use untrusted verificaion? Web Services might use it, as well as non-Windows applications. &lt;br /&gt;
&lt;br /&gt;
62. What does the parameter Initial Catalog define inside Connection String? The database name to connect to. &lt;br /&gt;
&lt;br /&gt;
63. What’s the data provider name to connect to Access database? Microsoft.Access. &lt;br /&gt;
&lt;br /&gt;
64. What does Dispose method do with the connection object? Deletes it from the memory. &lt;br /&gt;
&lt;br /&gt;
65. What is a pre-requisite for connection pooling? Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ASP.NET Interview Questions</title><link>http://hitechpoint.blogspot.com/2011/03/aspnet-interview-questions.html</link><category>ASP.NET Interview Questions</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Sun, 27 Mar 2011 17:31:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-80715958589422675</guid><description>1. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. What’s the difference between Response.Write() andResponse.Output.Write()? The latter one allows you to write formattedoutput. &lt;br /&gt;
&lt;br /&gt;
3. What methods are fired during the page load? Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading. &lt;br /&gt;
&lt;br /&gt;
4. Where does the Web page belong in the .NET Framework class hierarchy?System.Web.UI.Page &lt;br /&gt;
&lt;br /&gt;
5. Where do you store the information about the user’s locale? System.Web.UI.Page.Culture &lt;br /&gt;
&lt;br /&gt;
6. What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only. &lt;br /&gt;
&lt;br /&gt;
7. What’s a bubbled event? When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents. &lt;br /&gt;
&lt;br /&gt;
8. Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? It’s the Attributesproperty, the Add function inside that property. So btnSubmit.Attributes.Add("onMouseOver","someClientCode();") &lt;br /&gt;
&lt;br /&gt;
9. What data type does the RangeValidator control support? Integer,String and Date.&lt;br /&gt;
&lt;br /&gt;
10. Explain the differences between Server-side and Client-side code? Server-side code runs on the server. Client-side code runs in the clients’ browser.&lt;br /&gt;
&lt;br /&gt;
11. What type of code (server or client) is found in a Code-Behind class? Server-side code.&lt;br /&gt;
&lt;br /&gt;
12. Should validation (did the user enter a real date) occur server-side or client-side? Why? Client-side. This reduces an additional request to the server to validate the users input.&lt;br /&gt;
&lt;br /&gt;
13. What does the "EnableViewState" property do? Why would I want it on or off? It enables the viewstate on the page. It allows the page to save the users input on a form.&lt;br /&gt;
&lt;br /&gt;
14. What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.&lt;br /&gt;
&lt;br /&gt;
15. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? &lt;br /&gt;
&lt;br /&gt;
• A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. &lt;br /&gt;
&lt;br /&gt;
• A DataSet is designed to work without any continuing connection to the original data source. &lt;br /&gt;
&lt;br /&gt;
• Data in a DataSet is bulk-loaded, rather than being loaded on demand. &lt;br /&gt;
&lt;br /&gt;
• There's no concept of cursor types in a DataSet. &lt;br /&gt;
&lt;br /&gt;
• DataSets have no current record pointer You can use For Each loops to move through the data. &lt;br /&gt;
&lt;br /&gt;
• You can store many edits in a DataSet, and write them to the original data source in a single operation. &lt;br /&gt;
&lt;br /&gt;
• Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources. &lt;br /&gt;
&lt;br /&gt;
16. Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines? This is where you can set the specific variables for the Application and Session objects.&lt;br /&gt;
&lt;br /&gt;
17. If I’m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? Maintain the login state security through a database.&lt;br /&gt;
&lt;br /&gt;
18. Can you explain what inheritance is and an example of when you might use it? When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.&lt;br /&gt;
&lt;br /&gt;
19. Whats an assembly? Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN&lt;br /&gt;
&lt;br /&gt;
20. Describe the difference between inline and code behind. Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.&lt;br /&gt;
&lt;br /&gt;
21. Explain what a diffgram is, and a good use for one? The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.&lt;br /&gt;
&lt;br /&gt;
22. Whats MSIL, and why should my developers need an appreciation of it if at all? MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.&lt;br /&gt;
&lt;br /&gt;
23. Which method do you invoke on the DataAdapter control to load your generated dataset with data? The .Fill() method&lt;br /&gt;
&lt;br /&gt;
24. Can you edit data in the Repeater control? No, it just reads the information from its data source</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of Indexes</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-indexes.html</link><category>Overview of Indexes</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:58:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-4248150241662035076</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:"Times New Roman";
 mso-fareast-font-family:"Times New Roman";}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Indexes are optional structures associated with tables and clusters. You can create indexes on one or more columns of a table to speed SQL statement execution on that table. Just as the index in this manual helps you locate information faster than if there were no index, an Oracle index provides a faster access path to table data. Indexes are the primary means of reducing disk I/O when properly used.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;You can create many indexes for a table as long as the combination of columns differs for each index. You can create more than one index using the same columns if you specify distinctly different combinations of the columns. For example, the following statements specify valid combinations:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;CREATE INDEX employees_idx1 ON employees (last_name, job_id); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;CREATE INDEX employees_idx2 ON employees (job_id, last_name); &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Oracle provides several indexing schemes, which provide complementary performance functionality:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;B-tree indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;B-tree cluster indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Hash cluster indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Reverse key indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Bitmap indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Bitmap join indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Oracle also provides support for function-based indexes and domain indexes specific to an application or cartridge.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;The absence or presence of an index does not require a change in the wording of any SQL statement. An index is merely a fast access path to the data. It affects only the speed of execution. Given a data value that has been indexed, the index points directly to the location of the rows containing that value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Indexes are logically and physically independent of the data in the associated table. You can create or drop an index at any time without affecting the base tables or other indexes. If you drop an index, all applications continue to work. However, access of previously indexed data can be slower. Indexes, as independent structures, require storage space.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Oracle automatically maintains and uses indexes after they are created. Oracle automatically reflects changes to data, such as adding new rows, updating rows, or deleting rows, in all relevant indexes with no additional action by users.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Retrieval performance of indexed data remains almost constant, even as new rows are inserted. However, the presence of many indexes on a table decreases the performance of updates, deletes, and inserts, because Oracle must also update the indexes associated with the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;The optimizer can use an existing index to build another index. This results in a much faster index build.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Unique and Nonunique Indexes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Indexes can be unique or nonunique. Unique indexes guarantee that no two rows of a table have duplicate values in the key column (or columns). Nonunique indexes do not impose this restriction on the column values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Oracle recommends that unique indexes be created explicitly, using CREATE UNIQUE INDEX. Creating unique indexes through a primary key or unique constraint is not guaranteed to create a new index, and the index they create is not guaranteed to be a unique index.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;A composite index (also called a concatenated index) is an index that you create on multiple columns in a table. Columns in a composite index can appear in any order and need not be adjacent in the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Composite indexes can speed retrieval of data for SELECT statements in which the WHERE clause references all or the leading portion of the columns in the composite index. Therefore, the order of the columns used in the definition is important. Generally, the most commonly accessed or most selective columns go first.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of Synonyms</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-synonyms.html</link><category>Overview of Synonyms</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:57:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-8654826743183861695</guid><description>&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:"Times New Roman";
 mso-fareast-font-family:"Times New Roman";}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A synonym is an alias for any table, view, materialized view, sequence, procedure, function, package, type, Java class schema object, user-defined object type, or another synonym. Because a synonym is simply an alias, it requires no storage other than its definition in the data dictionary.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Synonyms are often used for security and convenience. For example, they can do the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Mask the name and owner of an object&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Provide location transparency for remote objects of a distributed database&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Simplify SQL statements for database users&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Enable restricted access similar to specialized views when exercising fine-grained access control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;You can create both public and private synonyms. A public synonym is owned by the special user group named PUBLIC and every user in a database can access it. A private synonym is in the schema of a specific user who has control over its availability to others.&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Synonyms are very useful in both distributed and nondistributed database environments because they hide the identity of the underlying object, including its location in a distributed system. This is advantageous because if the underlying object must be renamed or moved, then only the synonym needs to be redefined. Applications based on the synonym continue to function without modification.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Synonyms can also simplify SQL statements for users in a distributed database system. The following example shows how and why public synonyms are often created by a database administrator to hide the identity of a base table and reduce the complexity of SQL statements. Assume the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;A table called SALES_DATA is in the schema owned by the user JWARD.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;The SELECT privilege for the SALES_DATA table is granted to PUBLIC.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;At this point, you have to query the table SALES_DATA with a SQL statement similar to the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;SELECT * FROM jward.sales_data; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Notice how you must include both the schema that contains the table along with the table name to perform the query.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Assume that the database administrator creates a public synonym with the following SQL statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;CREATE PUBLIC SYNONYM sales FOR jward.sales_data; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;After the public synonym is created, you can query the table SALES_DATA with a simple SQL statement:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;SELECT * FROM sales; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;Notice that the public synonym SALES hides the name of the table SALES_DATA and the name of the schema that contains the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of the Sequence Generator</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-sequence-generator.html</link><category>Overview of the Sequence Generator</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:54:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-8035245842820472753</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:"Times New Roman";
 mso-fareast-font-family:"Times New Roman";}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;The sequence generator provides a sequential series of numbers. The sequence generator is especially useful in multiuser environments for generating unique sequential numbers without the overhead of disk I/O or transaction locking. For example, assume two users are simultaneously inserting new employee rows into the employees table. By using a sequence to generate unique employee numbers for the employee_id column, neither user has to wait for the other to enter the next available employee number. The sequence automatically generates the correct values for each user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Therefore, the sequence generator reduces serialization where the statements of two transactions must generate sequential numbers at the same time. By avoiding the serialization that results when multiple users wait for each other to generate and use a sequence number, the sequence generator improves transaction throughput, and a user's wait is considerably shorter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Sequence numbers are Oracle integers of up to 38 digits defined in the database. A sequence definition indicates general information, such as the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;The name of the sequence&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Whether the sequence ascends or descends&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;The interval between numbers&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Whether Oracle should cache sets of generated sequence numbers in memory&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Oracle stores the definitions of all sequences for a particular database as rows in a single data dictionary table in the SYSTEM tablespace. Therefore, all sequence definitions are always available, because the SYSTEM tablespace is always online.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Sequence numbers are used by SQL statements that reference the sequence. You can issue a statement to generate a new sequence number or use the current sequence number. After a statement in a user's session generates a sequence number, the particular sequence number is available only to that session. Each user that references a sequence has access to the current sequence number.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Sequence numbers are generated independently of tables. Therefore, the same sequence generator can be used for more than one table. Sequence number generation is useful to generate unique primary keys for your data automatically and to coordinate keys across multiple rows or tables. Individual sequence numbers can be skipped if they were generated and used in a transaction that was ultimately rolled back. Applications can make provisions to catch and reuse these sequence numbers, if desired.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Caution:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;If your application can never lose sequence numbers, then you cannot use Oracle sequences, and you may choose to store sequence numbers in database tables. Be careful when implementing sequence generators using database tables. Even in a single instance configuration, for a high rate of sequence values generation, a performance overhead is associated with the cost of locking the row that stores the sequence value.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Define Constraints on Views</title><link>http://hitechpoint.blogspot.com/2011/03/define-constraints-on-views.html</link><category>Define Constraints on Views</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:53:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-1815489003959496898</guid><description>&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:"Times New Roman";
 mso-fareast-font-family:"Times New Roman";}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Data warehousing applications recognize multidimensional data in the Oracle database by identifying Referential Integrity (RI) constraints in the relational schema. RI constraints represent primary and foreign key relationships among tables. By querying the Oracle data dictionary, applications can recognize RI constraints and therefore recognize the multidimensional data in the database. In some environments, database administrators, for schema complexity or security reasons, define views on fact and dimension tables. Oracle provides the ability to constrain views. By allowing constraint definitions between views, database administrators can propagate base table constraints to the views, thereby allowing applications to recognize multidimensional data even in a restricted environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Only logical constraints, that is, constraints that are declarative and not enforced by Oracle, can be defined on views. The purpose of these constraints is not to enforce any business rules but to identify multidimensional data. The following constraints can be defined on views:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Primary key constraint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Unique constraint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Referential Integrity constraint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Given that view constraints are declarative, DISABLE, NOVALIDATE is the only valid state for a view constraint. However, the RELY or NORELY state is also allowed, because constraints on views may be used to enable more sophisticated query rewrites; a view constraint in the RELY state allows query rewrites to occur when the rewrite integrity level is set to trusted mode.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Refresh Materialized Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Oracle maintains the data in materialized views by refreshing them after changes are made to their master tables. The refresh method can be incremental (fast refresh) or complete. For materialized views that use the fast refresh method, a materialized view log or direct loader log keeps a record of changes to the master tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Materialized views can be refreshed either on demand or at regular time intervals. Alternatively, materialized views in the same database as their master tables can be refreshed whenever a transaction commits its changes to the master tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Materialized View Logs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A materialized view log is a schema object that records changes to a master table's data so that a materialized view defined on the master table can be refreshed incrementally.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Each materialized view log is associated with a single master table. The materialized view log resides in the same database and schema as its master table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of Materialized Views</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-materialized-views.html</link><category>Overview of Materialized Views</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:51:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-1210812124755432645</guid><description>&lt;div style="text-align: justify;"&gt;Materialized views are schema objects that can be used to summarize, compute, replicate, and distribute data. They are suitable in various computing environments such as data warehousing, decision support, and distributed or mobile computing:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In data warehouses, materialized views are used to compute and store aggregated data such as sums and averages. Materialized views in these environments are typically referred to as summaries because they store summarized data. They can also be used to compute joins with or without aggregations. If compatibility is set to Oracle9i or higher, then materialized views can be used for queries that include filter selections.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The optimizer can use materialized views to improve query performance by automatically recognizing when a materialized view can and should be used to satisfy a request. The optimizer transparently rewrites the request to use the materialized view. Queries are then directed to the materialized view and not to the underlying detail tables or views.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In distributed environments, materialized views are used to replicate data at distributed sites and synchronize updates done at several sites with conflict resolution methods. The materialized views as replicas provide local access to data that otherwise has to be accessed from remote sites.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;In mobile computing environments, materialized views are used to download a subset of data from central servers to mobile clients, with periodic refreshes from the central servers and propagation of updates by clients back to the central servers.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Materialized views are similar to indexes in several ways:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;They consume storage space.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;They must be refreshed when the data in their master tables changes.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;They improve the performance of SQL execution when they are used for query rewrites.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Their existence is transparent to SQL applications and users.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Unlike indexes, materialized views can be accessed directly using a SELECT statement. Depending on the types of refresh that are required, they can also be accessed directly in an INSERT, UPDATE, or DELETE statement.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A materialized view can be partitioned. You can define a materialized view on a partitioned table and one or more indexes on the materialized view.&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>how to perform a join.</title><link>http://hitechpoint.blogspot.com/2011/03/how-to-perform-join.html</link><category>how to perform a join.</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:49:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-8403450752408422150</guid><description>&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin:0in;
 margin-bottom:.0001pt;
 mso-pagination:widow-orphan;
 font-size:12.0pt;
 font-family:"Times New Roman";
 mso-fareast-font-family:"Times New Roman";}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Present the data in a different perspective from that of the base table&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;For example, the columns of a view can be renamed without affecting the tables on which the view is based.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Isolate applications from changes in definitions of base tables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;For example, if a view's defining query references three columns of a four column table, and a fifth column is added to the table, then the view's definition is not affected, and all applications using the view are not affected.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Express a query that cannot be expressed without using a view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;For example, a view can be defined that joins a GROUP BY view with a table, or a view can be defined that joins a UNION view with a table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Save complex queries&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;For example, a query can perform extensive calculations with table information. By saving this query as a view, you can perform the calculations each time the view is queried.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Mechanics of Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Oracle stores a view's definition in the data dictionary as the text of the query that defines the view. When you reference a view in a SQL statement, Oracle:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Merges the statement that references the view with the query that defines the view&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Parses the merged statement in a shared SQL area&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Executes the statement&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Oracle parses a statement that references a view in a new shared SQL area only if no existing shared SQL area contains a similar statement. Therefore, you get the benefit of reduced memory use associated with shared SQL when you use views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Globalization Support Parameters in Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;When Oracle evaluates views containing string literals or SQL functions that have globalization support parameters as arguments (such as TO_CHAR, TO_DATE, and TO_NUMBER), Oracle takes default values for these parameters from the globalization support parameters for the session. You can override these default values by specifying globalization support parameters explicitly in the view definition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Dependencies and Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Because a view is defined by a query that references other objects (tables, materialized views, or other views), a view depends on the referenced objects. Oracle automatically handles the dependencies for views. For example, if you drop a base table of a view and then create it again, Oracle determines whether the new base table is acceptable to the existing definition of the view.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Updatable Join Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A join view is defined as a view that has more than one table or view in its FROM clause (a join) and that does not use any of these clauses: DISTINCT, aggregation, GROUP BY, START WITH, CONNECT BY, ROWNUM, and set operations (UNION ALL, INTERSECT, and so on).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;An updatable join view is a join view that involves two or more base tables or views, where UPDATE, INSERT, and DELETE operations are permitted. The data dictionary views ALL_UPDATABLE_COLUMNS, DBA_UPDATABLE_COLUMNS, and USER_UPDATABLE_COLUMNS contain information that indicates which of the view columns are updatable. In order to be inherently updatable, a view cannot contain any of the following constructs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A set operator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A DISTINCT operator&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;An aggregate or analytic function&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A GROUP BY, ORDER BY, CONNECT BY, or START WITH clause&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A collection expression in a SELECT list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;A subquery in a SELECT list&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Joins (with some exceptions)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Views that are not updatable can be modified using INSTEAD OF triggers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Object Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;In the Oracle object-relational database, an object view let you retrieve, update, insert, and delete relational data as if it was stored as an object type. You can also define views with columns that are object datatypes, such as objects, REFs, and collections (nested tables and VARRAYs).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;Inline Views&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 115%; margin-bottom: 10pt;"&gt;&lt;span lang="EN" style="font-family: Calibri; font-size: 11pt; line-height: 115%;"&gt;An inline view is not a schema object. It is a subquery with an alias (correlation name) that you can use like a view within a SQL statement.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of Views</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-views.html</link><category>Overview of Views</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 18:47:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-86706466456397085</guid><description>A view is a tailored presentation of the data contained in one or more tables or other views. A view takes the output of a query and treats it as a table. Therefore, a view can be thought of as a stored query or a virtual&amp;nbsp; table. You can use views in most places where a table can be used. For example, the employees table has several columns and numerous rows of information. If you want users to see only five of these columns or only specific rows, then you can create a view of that table for other users to access. Because views are derived from tables, they have many similarities. For example, you can define views with up to 1000 columns, just like a table. You can query views, and with some restrictions you can update, insert into, and delete from views. All operations performed on a view actually affect data in some base table of the view and are subject to the integrity constraints and triggers of the base tables. You cannot explicitly define triggers on views, but you can define them for the underlying base tables referenced by the view. Oracle does support definition of logical constraints on views.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How Views are Stored&lt;/b&gt;&lt;br /&gt;
Unlike a table, a view is not allocated any storage space, nor does a view actually contain data. Rather, a view is defined by a query that extracts or derives data from the tables that the view references. These tables are called base tables. Base tables can in turn be actual tables or can be views themselves (including&amp;nbsp; materialized views). Because a view is based on other objects, a view requires no storage other than storage for the definition of the view (the stored query) in the data dictionary.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;How Views Are Used&lt;/b&gt;&lt;br /&gt;
Views provide a means to present a different representation of the data that resides within the base tables. Views are very powerful because they let you tailor the presentation of data to different types of users. Views are often used to: Provide an additional level of table security by restricting access to a predetermined set of rows or columns of a table.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Hide data complexity&lt;/b&gt;&lt;br /&gt;
For example, a single view can be defined with a join, which is a collection of related columns or rows in multiple tables. However, the view hides the fact that this information actually originates from several tables.&lt;br /&gt;
Simplify statements for the user For example, views allow users to select information from multiple tables without actually</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Foreign Key Constraint</title><link>http://hitechpoint.blogspot.com/2011/03/foreign-key-constraint.html</link><category>Constraints</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:28:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-3461666964309071343</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Courier;
 panose-1:2 7 4 9 2 2 5 2 4 4;
 mso-font-alt:"Courier New";
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:fixed;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:Palatino-Roman;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:ZapfDingbats;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-alt:"MS Mincho";
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
 {font-family:"\@ZapfDingbats";
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:Calibri;
 mso-fareast-font-family:"Times New Roman";
 mso-bidi-font-family:"Times New Roman";
 mso-ansi-language:EN-IN;
 mso-fareast-language:EN-IN;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;    &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;Whenever two tables contain one or more common columns, you can enforce the relationship between the tables through a referential integrity constraint with a foreign key. A foreign key requires that all column values in the child table exist in the parent table. The table that includes the foreign key is called the dependent or child table. The table that is referenced is called the parent table.&lt;o:p&gt;&lt;/o:p&gt; An example of a foreign key constraint is when the department column of the employees &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;table (child) must contain a department ID that exists in the departments &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;table (parent).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Foreign keys can be made up of multiple columns. Such a composite foreign key must reference a composite primary or unique key of the exact same structure, with the same number of columns and the same datatypes. Because composite primary and unique keys are limited to 32 columns, a composite foreign key is also limited to 32&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;columns. You must use the same datatype for corresponding columns in the parent and child tables. The column names do not need to match. For performance purposes, you might want to add an index to the columns you define&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;in a child table when adding a foreign key constraint. Oracle Database XE does not do this for you automatically.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;When you create a foreign key constraint on a table, you can specify the action to take when rows are deleted in the referenced (parent) table. These actions include:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Disallow Delete - Blocks the delete of rows from the referenced table when there are dependent rows in the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Cascade Delete - Deletes the dependent rows from the table when the corresponding parent table row is deleted from the referenced table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Null on Delete - Sets the foreign key column values in the table to null values when the corresponding table row is deleted from the referenced table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Unique Constraint and Primary Key Constraint</title><link>http://hitechpoint.blogspot.com/2011/03/unique-constraint-and-primary-key.html</link><category>Constraints</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:26:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-4873272653028238998</guid><description>&lt;div style="text-align: justify;"&gt;&lt;b&gt;Unique Constraint&lt;br /&gt;
&lt;/b&gt;A unique constraint requires that every value in a column be unique. That is, no two rows can have duplicate values in a specified column or combination of columns. Choose columns for unique constraints carefully. The purpose of these constraints is different from that of primary keys. Unique key constraints are appropriate for any column where duplicate values are not allowed. Primary keys identify each row of the table uniquely, and typically contain values that have no significance other than being unique. In the employees table, the email column has a unique key constraint because it is important that the e-mail address for each employee is unique. Note that the email column has a NOT NULL constraint.Some examples of good unique keys include:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ An employee social security number, where the primary key might be the employee number&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ A truck license plate number, where the primary key might be the truck number&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ A customer phone number, consisting of the two columns area_code and local_phone, where the primary key might be the customer number&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ A department name and location, where the primary key might be the department number Primary Key Constraint A primary key requires that a column (or combination of columns) be the unique identifier of the row and ensures that no duplicate rows exist. A primary key column cannot contain NULL values. Each table can have only one primary key. Use the following guidelines when selecting a primary key:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Whenever practical, create a sequence number generator to generate unique numeric values for your primary key values. Choose a column whose data values are unique, because the purpose of a primary&lt;/div&gt;&lt;div style="text-align: justify;"&gt;key is to uniquely identify each row of the table.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Choose a column whose data values are never changed. A primary key value is only used to identify a row in the table, and its data should never be used for any other purpose. Therefore, primary key values should rarely or never be changed. Choose a column that does not contain any null values. A PRIMARY KEY&lt;/div&gt;&lt;div style="text-align: justify;"&gt;constraint, by definition, does not allow any row to contain a null value in any column that is part of the primary key.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Choose a column that is short and numeric. Short primary keys are easy to type.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Minimize your use of composite primary keys. A composite primary key constraint applies to more than one column. Although composite primary keys are allowed, they do not satisfy all of the other recommendations. For example, composite primary key values are long and cannot be assigned by sequence&lt;/div&gt;&lt;div style="text-align: justify;"&gt;numbers.&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>NOT NULL Constraint</title><link>http://hitechpoint.blogspot.com/2011/03/not-null-constraint.html</link><category>Constraints</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:22:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-303350248518842749</guid><description>&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Courier;
 panose-1:2 7 4 9 2 2 5 2 4 4;
 mso-font-alt:"Courier New";
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:fixed;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:Helvetica-Narrow-Bold;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Palatino-Roman;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:ZapfDingbats;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-alt:"MS Mincho";
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
 {font-family:"\@ZapfDingbats";
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:Calibri;
 mso-fareast-font-family:"Times New Roman";
 mso-bidi-font-family:"Times New Roman";
 mso-ansi-language:EN-IN;
 mso-fareast-language:EN-IN;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;      &lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;The &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;constraint is a column-level constraint that requires that the column must contain a value whenever a row is inserted or updated. The &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;NOT NULL constraint must be defined as part of the column definition.&lt;o:p&gt;&lt;/o:p&gt; Use a &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;constraint when the data is required for the integrity of the database. For example, if all employees must belong to a specific department, then the column that contains the department identifier should be defined with a &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;constraint. On the other hand, do not define a column as &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;if the data might be&lt;o:p&gt;&lt;/o:p&gt; unknown or might not exist when rows are added or changed, for example, the second, optional line in a mailing address.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;A primary key constraint automatically adds a &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;constraint to the columns included in the primary key, in addition to enforcing uniqueness among the values.&lt;/span&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold;"&gt;Check Constraint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;A check constraint requires that a column (or combination of columns) satisfies a&lt;o:p&gt;&lt;/o:p&gt; condition for every row in the table. A check constraint must be a Boolean expression that is evaluated using the column value about to be inserted or updated to the row. Use check constraints when you need to enforce integrity rules based on logical&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;expressions, such as comparisons. Never use CHECK constraints when any of the&lt;o:p&gt;&lt;/o:p&gt; other types of integrity constraints can provide the necessary checking. Examples of check constraints include the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;A check constraint on employee salaries so that no salary value is less than 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;A check constraint on department locations so that only the locations &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;Boston&lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;, New York&lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;, and &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;Dallas &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;are allowed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;A check constraint on the salary and commissions columns to prevent the&lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 11pt; line-height: 115%;"&gt; commission from being larger than the salary.&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Ensuring Data Integrity in Tables With Constraints</title><link>http://hitechpoint.blogspot.com/2011/03/ensuring-data-integrity-in-tables-with.html</link><category>Constraints</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:19:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-3920176154739646521</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Courier;
 panose-1:2 7 4 9 2 2 5 2 4 4;
 mso-font-alt:"Courier New";
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:fixed;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:Helvetica-Narrow-Bold;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Palatino-Roman;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:ZapfDingbats;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-alt:"MS Mincho";
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
 {font-family:Courier-Bold;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:"\@ZapfDingbats";
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:Calibri;
 mso-fareast-font-family:"Times New Roman";
 mso-bidi-font-family:"Times New Roman";
 mso-ansi-language:EN-IN;
 mso-fareast-language:EN-IN;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold; font-size: 13.5pt;"&gt;Ensuring Data Integrity in Tables With Constraints&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;With Oracle Database XE, you can define integrity constraints to enforce business rules on data in your tables to preserve the integrity of the data. Business rules specify conditions and relationships that must always be true, or must always be false. For example, in a table containing employee data, the employee e-mail column must be&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;unique. Similarly, in this table you cannot have two employees with the same employee ID. When an integrity constraint applies to a table, all data in the table must conform to the corresponding rule. When you issue a SQL statement that inserts or modifies data in the table, Oracle Database XE ensures that the new data satisfies the integrity constraint, without the need to do any checking within your program. Any attempt to&lt;o:p&gt;&lt;/o:p&gt; insert, update, or remove a row that violates a constraint results in an error, and the statement is rolled back. Likewise, any attempt to apply a new constraint to a populated table also results in an error if any existing row violates the new constraint. Constraints can be created and, in most cases, modified with a number of different status values. The options include enabled or disabled, which determine if the constraint is checked when rows are added, modified, or removed; and deferred or immediate, which cause constraint validation to occur at the end of a transaction or at the end of a statement, respectively. You can enforce rules by defining integrity constraints more reliably than by adding logic to your application. Oracle Database XE can check that all the data in a table&lt;o:p&gt;&lt;/o:p&gt; obeys an integrity constraint faster than an application can. Constraints can be defined at the column level or at the table level:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Column-level constraints are syntactically defined where the column to which the constraint applies is defined. These constraints determine what values are valid in the column. When creating a table with Object Browser, the only constraint defined at the column level is the &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NOT NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;constraint, which requires that a value&lt;o:p&gt;&lt;/o:p&gt; is included in this column for every row in the table. Table-level constraints are syntactically defined at the end of the table definition and apply to the entire table. With Object Browser, you can create primary key,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;foreign key, unique, and check constraints.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold; font-size: 11.5pt;"&gt;Column Default Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;You can define default values that are values that are automatically stored in the&lt;o:p&gt;&lt;/o:p&gt; column whenever a new row is inserted without a value being provided for the column. When you define a column with a default value, any new rows inserted into the table store the default value unless the row contains an alternate value for the&lt;o:p&gt;&lt;/o:p&gt; column. Assign default values to columns that contain a typical value. For example, in the &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;employees &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;table, if most employees work in the sales department, then the default value for the &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;department_id &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;column can be set to the ID of the sales department. Depending on your business rules, you might use default values to represent zero or FALSE&lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;, or leave the default values as &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;NULL &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;to signify an unknown value. Default values can be defined using any literal, or almost any expression including &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;SYSDATE&lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;which is a SQL function that returns the current date.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Courier-Bold;"&gt;CREATE TABLE &lt;/span&gt;&lt;/b&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;personal_info (&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;employee_id NUMBER(6,0) NOT NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;birth_date DATE NOT NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;social_security_id VARCHAR2(12) NOT NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;marital_status VARCHAR2(10),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;dependents_claimed NUMBER(2,0) DEFAULT 1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;contact_name VARCHAR2(45) NOT NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;contact_phone VARCHAR2(20) NOT NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;contact_address VARCHAR2(80) NOT NULL&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Datatypes</title><link>http://hitechpoint.blogspot.com/2011/03/datatypes.html</link><category>Datatypes</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:15:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-5586324842391696839</guid><description>&lt;div style="text-align: justify;"&gt;&lt;b&gt;Using Datatypes&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;A datatype associates a fixed set of properties with values that are used in a column of a table or in an argument of a procedure or function. The properties of datatypes cause Oracle Database XE to treat values of one datatype differently from values of another datatype. For example, Oracle Database XE can use the addition operator on values of numeric datatypes, but not with values of some other datatypes.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The datatypes supported by Oracle Database Express Edition include:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Character datatypes&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Numeric datatypes&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Date and time (date-time) datatypes&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Large Object (LOB) datatypes&lt;/div&gt;&lt;div style="text-align: justify;"&gt;When you create a table, you must specify a datatype for each of its columns to define the nature of the data to be stored in the column. For example, a column defined as a DATE datatype cannot accept the value February 29 (except for a leap year) or the values 2 or SHOE. When specifying a datatype, you can also indicate the longest value that can be placed in the column. In most cases, you only need columns of NUMBER, VARCHAR2, and DATE datatypes to create a definition of a table.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;What Are the Character Datatypes?&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You can use the following SQL datatypes to store character (alphanumeric) data:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ The VARCHAR2 datatype stores variable-length character literals. When creating a VARCHAR2 column in a table, you must specify a string length between 1 and 4000 bytes for the VARCHAR2 column. Set the size to the maximum number of characters to be stored in the column. For example, a column to hold&lt;/div&gt;&lt;div style="text-align: justify;"&gt;the last name of employees can be restricted to 25 bytes by defining it as&lt;/div&gt;&lt;div style="text-align: justify;"&gt;VARCHAR2(25).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;For each row, Oracle Database XE stores each value in the column as a variable-length field unless a value exceeds the column's maximum length, in which case Oracle returns an error. Using VARCHAR2 saves on space used by the table. For most cases where you need to store character data, you would use the&lt;/div&gt;&lt;div style="text-align: justify;"&gt;VARCHAR2 datatype.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ The CHAR datatype stores fixed-length character literals. When creating a CHAR column in a table, you must specify a string length between 1 and 2000 bytes for the CHAR column. For each row, Oracle Database XE stores each value in the column as a fixed-length field. If the value of the character data is&lt;/div&gt;&lt;div style="text-align: justify;"&gt;less than specified length of the column, then the value is blank-padded to the fixed length. If a value is too large, Oracle Database XE returns an error.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ NCHAR and NVARCHAR2 datatypes store only Unicode character data.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The NVARCHAR2 datatype stores variable-length Unicode character literals. The NCHAR datatype stores fixed-length Unicode character literals Choosing Between the Character Datatypes. When deciding which datatype to use for a column that will store character data in a table, consider the following:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Space usage&lt;/div&gt;&lt;div style="text-align: justify;"&gt;To store data more efficiently, use the VARCHAR2 datatype. The CHAR datatype adds blanks to maintain a fixed column length for all column values, whereas the VARCHAR2 datatype does not add extra blanks.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Comparison semantics&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Use the CHAR datatype when trailing blanks are not important in string comparisons. Use the VARCHAR2 datatype when trailing blanks are important in string comparisons.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ Future compatibility&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The CHAR and VARCHAR2 datatypes are fully supported.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;What Are the Numeric Datatypes?&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The following SQL datatypes store numeric data:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ NUMBER&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ BINARY_FLOAT&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ BINARY_DOUBLE&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Use the NUMBER datatype to store integers and real numbers in a fixed-point or floating-point format. Numbers using this datatype are guaranteed to be portable among different Oracle database platforms. For nearly all cases where you need to store numeric data, you would use the NUMBER datatype. When defining numeric data, you can use the precision option to set the maximum number of digits in the number, and the scale option to define how many of the digits are to the right of the decimal point. For example, a field to hold the salary of an employee can be defined as NUMBER(8,2), providing 6 digits for the primary unit of currency (dollars, pounds,marks, and so on) and two digits for the secondary unit (cents, pennies, pfennigs, and so on).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Oracle Database XE provides the numeric BINARY_FLOAT and BINARY_DOUBLE datatypes exclusively for floating-point numbers. They support all of the basic functionality provided by the NUMBER datatype. However, while the NUMBER datatype uses decimal precision, BINARY_FLOAT and BINARY_DOUBLE datatypes use binary precision. This enables faster arithmetic calculations and usually reduces storage requirements.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Using the NUMBER Datatype&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The NUMBER datatype stores zero as well as positive and negative fixed numbers with absolute values from 1.0 x 10-130 to (but not including) 1.0 x 10126. If you specify an arithmetic expression whose value has an absolute value greater than or equal to 1.0 x 10126, then Oracle Database XE returns an error.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The NUMBER datatype can be specified with a precision (p) and a scale (s) designator. Precision is the total number of significant decimal digits, where the most significant digit is the left-most, nonzero digit, and the least significant digit is the right-most, known digit. Scale is the number of digits from the decimal point to the least.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You can specify a NUMBER datatype as follows:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ NUMBER(p) for an integer&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This represents a fixed-point number with precision p and scale 0, and is equivalent to NUMBER(p,0).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ NUMBER(p, s) for a fixed-point number&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This explicitly specifies the precision (p) and scale (s). It is good practice to specify the scale and precision of a fixed-point number column for extra integrity checking on input. Specifying scale and precision does not force all values to a fixed length. If a value exceeds the precision, then Oracle Database XE returns an error. If a value exceeds the scale, then Oracle Database XE rounds it.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ NUMBER for a floating-point number&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The absence of precision and scale designators specifies the maximum range and precision for an Oracle number.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Storage of Scale and Precision&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Actual Data   Specified As   Stored As 123.8915    NUMBER   123.8915 123.8915    NUMBER(3)   124&lt;/div&gt;&lt;div style="text-align: justify;"&gt;123.8915    NUMBER(4,1)   123.9&lt;/div&gt;&lt;div style="text-align: justify;"&gt;123.8915    NUMBER(5,2)   123.89&lt;/div&gt;&lt;div style="text-align: justify;"&gt;123.8915    NUMBER(6,3)   123.892&lt;/div&gt;&lt;div style="text-align: justify;"&gt;123.8915    NUMBER(7,4)   123.8915&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1.238915e2   NUMBER(7,4)   123.8915&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Using Floating-Point Number Formats&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The BINARY_FLOAT and BINARY_DOUBLE datatypes store floating-point data in the 32-bit IEEE 754 format and the double precision 64-bit IEEE 754 format respectively.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Compared to the Oracle NUMBER datatype, arithmetic operations on floating-point data are usually faster for BINARY_FLOAT and BINARY_DOUBLE. High-precision values require less space when stored as BINARY_FLOAT and BINARY_DOUBLE datatypes.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The BINARY_FLOAT datatype has a maximum positive value equal to 3.40282E+38F and the minimum positive value equal to 1.17549E-38F. The BINARY_DOUBLE datatype has a maximum positive value equal to&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1.79769313486231E+308 and the minimum positive value equal to&lt;/div&gt;&lt;div style="text-align: justify;"&gt;2.22507485850720E-308.Storing Date and Time Data Oracle Database XE stores dates in its own internal format that corresponds to century, year, month, day, hour, minute, and second. For input and output of dates, the standard Oracle Database XE default date format is DD-MON-RR. The RR date-time format element enables you store 20th century dates in the 21st century by specifying only the last two digits of the year. Time is stored in a 24-hour format as HH24:MI:SS. Oracle Database Express Edition provides various SQL functions to calculate and convert date-time data.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Using DATE and TIMESTAMP Datatypes&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Oracle Database supports the following date and time (date-time) datatypes:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ DATE&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ TIMESTAMP&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ TIMESTAMP WITH TIME ZONE&lt;/div&gt;&lt;div style="text-align: justify;"&gt;■ TIMESTAMP WITH LOCAL TIME ZONE&lt;/div&gt;&lt;div style="text-align: justify;"&gt;DATE and TIMESTAMP Examples&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Datatype     Example&lt;/div&gt;&lt;div style="text-align: justify;"&gt;DATE      09-DEC-05&lt;/div&gt;&lt;div style="text-align: justify;"&gt;TIMESTAMP     09-DEC-05 02.05.49.000000 PM&lt;/div&gt;&lt;div style="text-align: justify;"&gt;TIMESTAMP WITH TIME ZONE  09-DEC-05 02.05.49.000000 PM -08:00&lt;/div&gt;&lt;div style="text-align: justify;"&gt;TIMESTAMP WITH LOCAL TIME ZONE 09-DEC-05 02.05.49.000000 PM&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Using the DATE Datatype Use the DATE datatype to store point-in-time values (dates and times) in a table. For example, a column to hold the date that an employee is hired can by defined as a DATE datatype. An application that specifies the time for a job might also use the DATE datatype. For most cases where you need to store date data, you would use the DATE datatype. DATE columns are automatically formatted by Oracle Database XE to include a date and time component. The DATE datatype stores the century, year, month, day, hours, minutes, and seconds. The valid date range is from January 1, 4712 BC to December 31,&lt;/div&gt;&lt;div style="text-align: justify;"&gt;9999 AD. Although both the date and time are stored in a date column, by default, the date portion is automatically displayed for you, when retrieving date data. However, Oracle Database Express Edition enables you great flexibility in how you can display your dates and times. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Using the TIMESTAMP Datatype Use the TIMESTAMP datatype to store values that are precise to fractional seconds. An application that must decide which of two events occurred first might use TIMESTAMP. Using the TIMESTAMP WITH TIME ZONE Datatype Because the TIMESTAMP WITH TIME ZONE datatype can also store time zone information, it is particularly suited for recording date information that must be gathered or coordinated across geographic regions. Using the TIMESTAMP WITH LOCAL TIME ZONE Datatype Use the TIMESTAMP WITH LOCAL TIME ZONE datatype when the time zone is not significant. For example, you might use it in an application that schedules teleconferences, where participants each see the start and end times for their own time zone.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The TIMESTAMP WITH LOCAL TIME ZONE datatype is appropriate for two-tier applications in which you want to display dates and times that use the time zone of the client system. It is generally inappropriate in three-tier applications because data displayed in a Web browser is formatted according to the time zone of the Web server, not the time zone of the browser. The Web server is the database client, so its local time&lt;/div&gt;&lt;div style="text-align: justify;"&gt;is used.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Storing Large Objects&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Large Objects (LOBs) are a set of datatypes that are designed to hold large amounts of data. A LOB can hold up to a maximum size ranging from 8 terabytes to 128 terabytes depending on how your database is configured. Storing data in LOBs enables you to access and manipulate the data efficiently in your application.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;The BLOB, CLOB, and NCLOB datatypes are internal LOB datatypes and are stored in the database. The BFILE datatype is the only external LOB datatype and is stored in an operating system file, outside the database.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;b&gt;Managing Tables&lt;/b&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Tables are the basic unit of data storage in an Oracle database. They hold all user-accessible data. A table is a two-dimensional object made up of columns and rows. For example, the employees table includes (vertical) columns called employee_id, first_name, and last_name. Each (horizontal) row in the table contains a value for employee name and ID number. The most common type of table in an Oracle database is a relational table.&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Database Objects</title><link>http://hitechpoint.blogspot.com/2011/03/database-objects.html</link><category>Database Objects</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 17:00:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-8529355845437234152</guid><description>&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Courier;
 panose-1:2 7 4 9 2 2 5 2 4 4;
 mso-font-alt:"Courier New";
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:fixed;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:Helvetica-Narrow-Bold;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Palatino-Roman;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:ZapfDingbats;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-alt:"MS Mincho";
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
 {font-family:"\@ZapfDingbats";
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:Calibri;
 mso-fareast-font-family:"Times New Roman";
 mso-bidi-font-family:"Times New Roman";
 mso-ansi-language:EN-IN;
 mso-fareast-language:EN-IN;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold; font-size: 13.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;You need to create database objects before you start developing your application.&lt;o:p&gt;&lt;/o:p&gt; These database objects are primarily used to store and organize the data that your&lt;o:p&gt;&lt;/o:p&gt; application manipulates. These databases objects include tables, indexes, views,&lt;o:p&gt;&lt;/o:p&gt; sequences and synonyms.&lt;o:p&gt;&lt;/o:p&gt; When creating some database objects, you need to specify a datatype for the data that&lt;o:p&gt;&lt;/o:p&gt; is used by the object. When you create a table, you must specify a datatype for each of&lt;o:p&gt;&lt;/o:p&gt; its columns. A datatype associates a fixed set of properties with the values that can be&lt;o:p&gt;&lt;/o:p&gt; used in a column, or in an argument of a procedure or function. Each column value&lt;o:p&gt;&lt;/o:p&gt; and constant in a SQL statement has a datatype, which is associated with a specific&lt;o:p&gt;&lt;/o:p&gt; storage format, constraints, and a valid range of values. The most common data-types&lt;o:p&gt;&lt;/o:p&gt; are character, numeric, and date.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold; font-size: 16pt;"&gt;Overview of Managing Objects&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;You need to create tables, indexes, and possibly other database objects in a schema&lt;o:p&gt;&lt;/o:p&gt; before you start developing your application. A schema is a collection of database&lt;o:p&gt;&lt;/o:p&gt; objects. A schema is owned by a database user and has the same name as that user,&lt;o:p&gt;&lt;/o:p&gt; such as the &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier;"&gt;HR &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;schema. Schema objects are logical structures created by users. Objects&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;can define areas of the database to hold data, such as tables, or can consist of just a&lt;o:p&gt;&lt;/o:p&gt; definition, such as views.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Tables are the basic database objects and contain all the user data. When creating a&lt;o:p&gt;&lt;/o:p&gt; table, it is important that you define that data that you want to store in the table. You&lt;o:p&gt;&lt;/o:p&gt; need to specify the datatype of the data and any restrictions on the range of values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Helvetica-Narrow-Bold; font-size: 13.5pt;"&gt;Database Objects for Your Application&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;Some object types have many more management options than others, but most have a&lt;o:p&gt;&lt;/o:p&gt; number of similarities. Every object in the database belongs to just one schema and has&lt;o:p&gt;&lt;/o:p&gt; a unique name within that schema. Therefore, when you create an object, you must&lt;o:p&gt;&lt;/o:p&gt; ensure it is in the schema where you intend to store it. Generally, you place all of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman;"&gt;objects that belong to a single application in the same schema.&lt;o:p&gt;&lt;/o:p&gt; A database object name must abide by certain rules. For example, object names cannot&lt;o:p&gt;&lt;/o:p&gt; be longer than 30 bytes and must begin with a letter. If you attempt to create an object&lt;o:p&gt;&lt;/o:p&gt; with a name that violates any of these rules, then Oracle Database XE raises an error.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of SQL Command Line</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-sql-command-line.html</link><category>Overview of SQL Command Line</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 16:54:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-3703178961722679386</guid><description>SQL Command Line (SQL*Plus) is a command-line tool for accessing Oracle Database XE. It enables you to enter and run SQL, PL/SQL, and SQL*Plus commands and statements to:&lt;br /&gt;
■ Query, insert, and update data&lt;br /&gt;
■ Execute PL/SQL procedures&lt;br /&gt;
■ Examine table and object definitions&lt;br /&gt;
■ Develop and run batch scripts&lt;br /&gt;
■ Perform database administration&lt;br /&gt;
&lt;br /&gt;
You can use SQL Command Line to generate reports interactively, to generate reports&lt;br /&gt;
as batch processes, and to write the results to a text file, to a screen, or to an HTML file for browsing on the Internet.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Starting and Exiting SQL Command Line&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To start SQL Command Line from the operating-system command prompt, enter the&lt;br /&gt;
following:&lt;br /&gt;
sqlplus&lt;br /&gt;
When prompted, enter the username and password of the user account (schema) that you want to access in the local database. For example, enter HR for the username and my_hr_password for the password when prompted. You can also include the username and password when you start SQL Command Line.&lt;br /&gt;
For example:&lt;br /&gt;
sqlplus hr/my_hr_password&lt;br /&gt;
If you want to connect to a database running on a remote system, you need to include a connect string when starting SQL Command Line. For example:&lt;br /&gt;
sqlplus hr/my_hr_password@host_computer_name&lt;br /&gt;
After you have started SQL Command Line, the SQL&amp;gt; prompt displays as follows:&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
At the SQL&amp;gt; prompt, you can enter SQL statements.&lt;br /&gt;
When you want to exit SQL Command Line, enter EXIT at the SQL prompt, as follows:&lt;br /&gt;
SQL&amp;gt; EXIT&lt;br /&gt;
&lt;br /&gt;
Displaying Help With SQL Command Line&lt;br /&gt;
&lt;br /&gt;
To display a list of Help topics for SQL Command Line, enter HELP INDEX at the SQL&lt;br /&gt;
prompt as follows:&lt;br /&gt;
SQL&amp;gt; HELP INDEX&lt;br /&gt;
From the list of SQL Command Line Help topics, you can display Help about an individual topic by entering HELP with a topic name. For example, the following displays Help about the SQL Command Line COLUMN command, which enables you to format column output:&lt;br /&gt;
SQL&amp;gt; HELP COLUMN&lt;br /&gt;
&lt;br /&gt;
Entering and Executing SQL Statements and Commands&lt;br /&gt;
&lt;br /&gt;
To enter and execute SQL statements or commands, enter the statement or command at the SQL prompt. At the end of a SQL statement, put a semi-colon (;) and then press the Enter key to execute the statement. For example:&lt;br /&gt;
SQL&amp;gt; SELECT * FROM employees;&lt;br /&gt;
If the statement does not fit on one line, enter the first line and press the Enter key. Continue entering lines, and terminate the last line with a semi-colon (;). For example:&lt;br /&gt;
SQL&amp;gt; SELECT employee_id, first_name, last_name&lt;br /&gt;
2 FROM employees&lt;br /&gt;
3 WHERE employee_id &amp;gt;= 105 AND employee_id &amp;lt;= 110; The output from the previous SELECT statement is similar to: EMPLOYEE_ID FIRST_NAME LAST_NAME ----------- -------------------- ----------------------- 105 David Austin 106 Valli Pataballa 107 Diana Lorentz 108 Nancy Greenberg 109 Daniel Faviet 110 John Chen 6 rows selected. Note that a terminating semi-colon (;) is optional with SQL Command Line commands, such as DESCRIBE o r SET, but required with SQL statements. SQL Command Line DESCRIBE Command SQL Command Line provides the DESCRIBE command to display a description of a database object. For example, the following displays the structure of the employees table. This description is useful when constructing SQL statements that manipulate the employees table. SQL&amp;gt; DESCRIBE employees&lt;br /&gt;
Name Null? Type&lt;br /&gt;
---------------------------------------- -------- ------------&lt;br /&gt;
EMPLOYEE_ID NOT NULL NUMBER(6)&lt;br /&gt;
FIRST_NAME VARCHAR2(20)&lt;br /&gt;
LAST_NAME NOT NULL VARCHAR2(25)&lt;br /&gt;
EMAIL NOT NULL VARCHAR2(25)&lt;br /&gt;
PHONE_NUMBER VARCHAR2(20)&lt;br /&gt;
HIRE_DATE NOT NULL DATE&lt;br /&gt;
JOB_ID NOT NULL VARCHAR2(10)&lt;br /&gt;
SALARY NUMBER(8,2)&lt;br /&gt;
COMMISSION_PCT NUMBER(2,2)&lt;br /&gt;
MANAGER_ID NUMBER(6)&lt;br /&gt;
DEPARTMENT_ID NUMBER(4)&lt;br /&gt;
SQL Command Line SET Commands&lt;br /&gt;
The SQL Command Line SET commands can be used to specify various SQL&lt;br /&gt;
Command Line settings, such as the format of the output from SQL SELECT&lt;br /&gt;
statements. For example, the following SET commands specify the number of lines for each page and the number of characters for each line in the output:&lt;br /&gt;
SQL&amp;gt; SET PAGESIZE 200&lt;br /&gt;
SQL&amp;gt; SET LINESIZE 140&lt;br /&gt;
To enable output from PL/SQL blocks with DBMS_OUTPUT.PUT_LINE, use the&lt;br /&gt;
following:&lt;br /&gt;
SQL&amp;gt; SET SERVEROUTPUT ON&lt;br /&gt;
To view all the settings, enter the following at the SQL prompt:&lt;br /&gt;
SQL&amp;gt; SHOW ALL&lt;br /&gt;
Running Scripts From SQL Command Line&lt;br /&gt;
You can use a text editor to create SQL Command Line script files that contain&lt;br /&gt;
SQL*Plus, SQL, and PL/SQL statements. For consistency, use the .sql extension for&lt;br /&gt;
the script file name.&lt;br /&gt;
A SQL script file is executed with a START or @ command. For example, in a Windows&lt;br /&gt;
environment, you can execute a SQL script as follows:&lt;br /&gt;
SQL&amp;gt; @c:\my_scripts\my_sql_script.sql&lt;br /&gt;
A SQL script file can be executed in a Linux environment as follows:&lt;br /&gt;
SQL&amp;gt; START /home/cjones/my_scripts/my_sql_script.sql&lt;br /&gt;
You can use SET ECHO ON to cause a script to echo each statement that is executed. You can use SET TERMOUT OFF to prevent the script output from displaying on the screen. When running a script, you need to include the full path name unless the script is located in the directory from which SQL Command Line was started, or the script is located in the default script location specified by the SQLPATH environment variable.&lt;br /&gt;
Spooling From SQL Command Line The SPOOL command can be used to direct the output from SQL Command Line to a disk file, which enables you to save the output for future review.&lt;br /&gt;
To start spooling the output to an operating system file, you enter the SPOOL&lt;br /&gt;
command followed by a file name. For example SQL&amp;gt; SPOOL my_log_file.log&lt;br /&gt;
If you want to append the output to an existing file:&lt;br /&gt;
SQL&amp;gt; SPOOL my_log_file.log APPEND&lt;br /&gt;
To stop spooling and close a file, enter the following:&lt;br /&gt;
SQL&amp;gt; SPOOL OFF&lt;br /&gt;
Using Variables With SQL Command Line&lt;br /&gt;
You can create queries that use variables to make SELECT statements more flexible. You can define the variable before running a SQL statement, or you specify that the statement prompts for a variable value at the time that the SQL statement is run. When using a variable in a SQL statement, the variable name must be begin with an ampersand (&amp;amp;).&lt;br /&gt;
Prompting for a Variable Value in a Query&lt;br /&gt;
You can use &amp;amp; to identify a variable that you want to define dynamically&lt;br /&gt;
Prompting for a Variable Value in SQL Command Line&lt;br /&gt;
-- prompt for employee_id in a query, you need to enter a valid ID such as 125&lt;br /&gt;
SELECT employee_id, last_name, job_id FROM employees&lt;br /&gt;
WHERE employee_id = &amp;amp;employee_id;&lt;br /&gt;
When you run the previous SELECT statement, the output is similar to:&lt;br /&gt;
Enter value for employee_id: 125&lt;br /&gt;
...&lt;br /&gt;
EMPLOYEE_ID LAST_NAME JOB_ID&lt;br /&gt;
----------- ------------------------- ----------&lt;br /&gt;
125 Nayer ST_CLERK&lt;br /&gt;
Reusing a Variable Value in a Query&lt;br /&gt;
You can use &amp;amp;&amp;amp; to identify a variable that you want to define dynamically multiple times, but only want to prompt the user once.&lt;br /&gt;
&amp;amp;&amp;amp;column_name variable causes the SQL statement to prompt for a value when the statement is executed. The value that is entered is substituted for all remaining occurrences of &amp;amp;&amp;amp;column_name in the SQL statement.&lt;br /&gt;
Defining a Variable Value for a Query&lt;br /&gt;
-- define a variable value for a query as follows&lt;br /&gt;
DEFINE job_id = "ST_CLERK"&lt;br /&gt;
-- run a query using the defined value for job_id (ST_CLERK)&lt;br /&gt;
SELECT employee_id, last_name FROM employees WHERE job_id = '&amp;amp;job_id';</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Overview of SQL</title><link>http://hitechpoint.blogspot.com/2011/03/overview-of-sql.html</link><category>Overview of SQL</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Thu, 3 Mar 2011 16:44:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-4600335035375851119</guid><description>&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Courier;
 panose-1:2 7 4 9 2 2 5 2 4 4;
 mso-font-alt:"Courier New";
 mso-font-charset:0;
 mso-generic-font-family:modern;
 mso-font-format:other;
 mso-font-pitch:fixed;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
 {font-family:Palatino-Roman;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:0;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:3 0 0 0 1 0;}
@font-face
 {font-family:ZapfDingbats;
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-alt:"MS Mincho";
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
@font-face
 {font-family:"\@ZapfDingbats";
 panose-1:0 0 0 0 0 0 0 0 0 0;
 mso-font-charset:128;
 mso-generic-font-family:auto;
 mso-font-format:other;
 mso-font-pitch:auto;
 mso-font-signature:1 134676480 16 0 131072 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-parent:"";
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:Calibri;
 mso-fareast-font-family:"Times New Roman";
 mso-bidi-font-family:"Times New Roman";
 mso-ansi-language:EN-IN;
 mso-fareast-language:EN-IN;}
@page Section1
 {size:8.5in 11.0in;
 margin:1.0in 1.25in 1.0in 1.25in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.Section1
 {page:Section1;}
--&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;SQL is nonprocedural language for accessing a database. You run SQL statements commands to perform various tasks, such as retrieving data from tables in Oracle&lt;o:p&gt;&lt;/o:p&gt; Database XE. The SQL language automatically handles how to navigate the database&lt;o:p&gt;&lt;/o:p&gt; and perform the desired task. All database operations are performed using SQL statements. With SQL statements you can perform the following:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Query, insert, and update data in tables&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Format, perform calculations on, store, and print from query results&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt; line-height: 115%;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt; line-height: 115%;"&gt;Examine table and object definitions&lt;b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;b&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Oracle SQL statements are divided into several categories:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Data Manipulation Language (DML) statements&lt;o:p&gt;&lt;/o:p&gt; These statements query, insert, update, and delete data in tables.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Transaction Control statements&lt;o:p&gt;&lt;/o:p&gt; These statements commit or roll back the processing of transactions. A group of changes that you make is referred to as a transaction.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN-IN" style="font-family: ZapfDingbats; font-size: 12pt;"&gt;■ &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;Data Definition Language (DDL) statements These statements create, alter, and drop database objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;A statement consists partially of SQL reserved words, which have special meaning in&lt;o:p&gt;&lt;/o:p&gt; SQL and cannot be used for any other purpose. For example, &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier; font-size: 12pt;"&gt;SELECT &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;and &lt;/span&gt;&lt;span lang="EN" style="font-family: Courier; font-size: 12pt;"&gt;UPDATE &lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;are&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt; line-height: 115%;"&gt; reserved words and cannot be used as table names.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt; line-height: 115%;"&gt;&lt;b&gt;List of the SQL reserved words&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;ACCESS, ADD*, ALL*, ALTER*, AND*, ANY*, AS*, ASC*, AUDIT&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;BETWEEN*, BY*, CHAR*, CHECK*, CLUSTER, COLUMN, COMMENT, COMPRESS, CONNECT*, CREATE*, CURRENT*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;DATE*, DECIMAL*, DEFAULT*, DELETE*, DESC*, DISTINCT*, DROP*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;ELSE*, EXCLUSIVE, EXISTS&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;FILE, FLOAT*, FOR*, FROM*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;GRANT*, GROUP*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;HAVING*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;IDENTIFIED, IMMEDIATE*, IN*, INCREMENT, INDEX, INITIAL, INSERT*, INTERSECT*, INTO*, IS*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;LEVEL*, LIKE*, LOCK, LONG&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;MAXEXTENTS, MINUS, MLSLABEL, MODE, MODIFY&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;NOAUDIT, NOCOMPRESS, NOT*, NOWAIT, NULL*, NUMBER&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;OF*, OFFLINE, ON*, ONLINE, OPTION*, OR*, ORDER*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;&amp;nbsp;PCTREE, PRIOR*, PRIVLEGES*, PUBLIC*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt; line-height: 115%;"&gt;&amp;nbsp;RAW, RENAME, RESOURCE, REVOKE*, ROW, ROWID, ROWNUM, ROWS*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;SSELECT*, SESSION*, SET*, SHARE, SIZE*, SMALLINT*, START, SUCCESSFUL, SYNONYM, SYSDATE&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;TABLE*, THEN*, TO*, TRIGGER&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;UID, UNION*, UNIQUE*, UPDATE*, USER*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt;"&gt;VALIDATE, VALUES*, VARCHAR*, VARCHAR2, VIEW*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;span lang="EN" style="font-family: Palatino-Roman; font-size: 12pt; line-height: 115%;"&gt;WHENEVER*, WHERE, WITH*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Microsoft Management Console has stopped working.</title><link>http://hitechpoint.blogspot.com/2011/02/microsoft-management-console-has.html</link><category>MMC has stopped working</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Mon, 28 Feb 2011 17:24:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-7831911009280803411</guid><description>Hiii I am Working on windows server 2008 32-bit&amp;nbsp;standard edition. When i am trying to open Server Manager i am getting error Microsoft Management Console has stopped working. and evend error is APPcrash. i did maximum troubleshooting like installed .net framework 3.5 and activated windows, all services are running and hardware compability. Even i googled for the same if any of you know solution please write in comment or send mail to &lt;a href="mailto:praveenbonala@gmail.com"&gt;praveenbonala@gmail.com&lt;/a&gt;&lt;br /&gt;
Thank you....</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to do post installation steps</title><link>http://hitechpoint.blogspot.com/2011/02/how-to-do-post-installation-steps.html</link><category>Command for post installation steps</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Fri, 18 Feb 2011 20:27:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-4231022521421399556</guid><description>1. Command To set administrator password

C:\users\admin&gt; Net user administrator yourpasswordhere.

2. Command to configure network interface: By default it will take IP from DHCP. If you dont have DHCP and you want to configure manually use netsh command

To list all network interfaces use following command

C:\users\admin&gt;netsh interface ipv4 show interfaces.

To assign Ip use following commnad

C:\users\admin&gt;netsh interface ipv4 set address name=2 source=static address=192.168.1.1 mask=255.255.255.0 gateway=192.168.1.100
&lt;span style="color:#cc0000;"&gt;values are taken for example please give apropriate values. &lt;/span&gt;
&lt;span style="color:#000000;"&gt;&lt;/span&gt;
3. Command to Activating server
Once trial period expired you need to activate windows. To activate windows run following command.

C:\users\admin&gt;Slmgr.vbs -at0

4. command to rename computer;

C:\users\admin&gt; Wmic computersystem where name=" %computername%" rename name="your name here"

this command should results in a return value=0 to indicate sucessfull rename.

5. Command to join computer in domain:

C:\users\admin&gt;Netdom Join %computername% /domain:practice.com /userd:admin
/passwordd:*
Note: If you dont want to expose password here then type * it will prompt for password which you can give your password securly.

6. Configure Automatic Updates:

To enable Automatic updates manually

C:\users\admin&gt; CScript Scregedit.wsf /AU 4

To Turnoff Automatic updates

C:\users\admin&gt;CScript Sregedit.wsf /AU 1

7. To Enable Remote Administration

C:\users\admin&gt;SCregedit.wsf /AR 0</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Post installation tasks in windows server 2008 core installation</title><link>http://hitechpoint.blogspot.com/2011/02/post-installation-tasks-in-windows.html</link><category>Server Core in Windows Server 2008</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Fri, 18 Feb 2011 20:17:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-73771551099381465</guid><description>As we discussed earlier core installation is great feature for windows server 2008 it is very help full for who need to install ADC where system admin is not present. It is much more secure because it comes only with command prompt no GUI. It support only sevel roles listed below....
1. Active directory domain service.
2. Active directory light weight directory services.
3. File server.
4. DHCP server.
5. DNS server.
6. Print server.
7. Streaming media server.

In Windows server 2008 you need to do following Post- Installation Tasks

&lt;ul&gt;&lt;li&gt;Set Admin Password&lt;/li&gt;&lt;li&gt;Configure your network interface&lt;/li&gt;&lt;li&gt;Activate server&lt;/li&gt;&lt;li&gt;Rename server and join it into domain&lt;/li&gt;&lt;li&gt;configure automatic updates&lt;/li&gt;&lt;li&gt;Enable remote administration&lt;/li&gt;&lt;li&gt;Configure Windows Firewall&lt;/li&gt;&lt;/ul&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Installing Windows Server 2008.</title><link>http://hitechpoint.blogspot.com/2011/02/installing-windows-server-2008.html</link><category>Installing Windows Server 2008.</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Fri, 18 Feb 2011 19:57:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-6347719576118732544</guid><description>Installing windows server 2008 just like installing other operating systems but windows server 2008 reduces user interaction while installing. It is just like unattended installation. At starting you just give inputs after windows server 2008 never ask user to give inputs like all other operation systems. Installation of windows server 2008 contains following steps.

1. First of all you should require DVD drive and make it as your first boot device.
2. After loading all files first it will ask for media like language , time and currency. keyboard.
3. Next you will get installation screen, in this screen you will get install now option and repair option for repair your windows server 2008, and know more about installation option.
4. Next it prompts for product key you can skip this step
5. In this step it will prompt for opetaing system selection. One important thing to tell here is in all other os you will need seperate boot disk for different types of version but in windows server 2008 all versions will come in only one boot disk. Like Enterprise edition, standard edition , core installation or full installation. You can select desired os edition here. next you need to agree licence agriment.
6. Next you will get installation types like advanced and custom and in which partiotion you want to install.
7. once you selected partition and start installation again you no need to give any inputs till installation completes. Installation process contains following steps

&lt;ul&gt;&lt;li&gt;Copying files&lt;/li&gt;&lt;li&gt;Extracting files&lt;/li&gt;&lt;li&gt;Installing features&lt;/li&gt;&lt;li&gt;Installing Updates&lt;/li&gt;&lt;li&gt;Completing Installation&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;8. After sucessfull installation it will prompt for set administrator password.&lt;/p&gt;&lt;p&gt;All above steps included in installing Windows server 2008.&lt;/p&gt;&lt;p&gt;Here one more thing i want to discuss with you people...basicall all earlier version of operating system uses NTLDR to load os but in windwos server 2008 it uses BCD instead of NTLDR. BCD stands for Boot Configuration Data&lt;/p&gt;&lt;p&gt; &lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Introduction To Windows server 2008</title><link>http://hitechpoint.blogspot.com/2011/02/introduction-windows-server-2008.html</link><category>Introduction TO Windows server 2008</category><author>noreply@blogger.com (Praveen Kumar Bonala)</author><pubDate>Fri, 18 Feb 2011 19:44:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-8752425678795233991.post-7217414766205029110</guid><description>After 2003 server sucess Microsoft introduced Windows server 2008. Windows server 2008 comes with many advanced features to ease up the system administrators task. First of all we can see what are the minimum system requirements for Windows server 2008.

Processor : Minimum - 1 GHz
Recomonded - 2 GHz
Optimal - 3 GHZ or faster
Itanium 2 processor required.

Memory : Minimum - 512MB
Recomonded - 1 GB
Optimal - 2 GB for full Installation 1GB for core installation(Will Discuss further regarding core installation)

Disk Space : Min. - 8 GB
Recomonded - 40 GB for full, 10 GB for core
Optimal - 80 GB for full, 40 GB for Core.

Drive: DVD drive.

All these above are minimum system requirements to install windows server 2008.

When installing windows server 2008, we have two choices

1. Full installation : Just like all remaining operating systems.
2. Core installation: This is new concept introduced in windows server 2008. If you install core os it doesn't include a GUI or any other unneeded services. It only installs key roles like Active Directory, DNS, DHCP..... After installing core installation you will not get GUI instead it gets only command prompt.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>