Translate

Labels

Saturday 30 March 2013

HOW TO VIEW THE HIDDEN PASSWORD BEHIND ********

1.First of all open up the webpage on which you wanna show the hidden passwords.


2.Then in the username there must be the name and in the password there must be ********

3.Now to see the password which is behind the ******** Just copy and paste the following JavaScript into the
address bar of the browser and you are done.

javascript:(function(){var%20s,F,j,f,i;%20s%20=%20%22%22;
%20F%20=%20document.forms;%20for(j=0;%20j<F.length;%20++j)
%20{%20f%20=%20F[j];%20for%20(i=0;%20i<f.length;%20++i)
%20{%20if%20(f[i].type.toLowerCase()%20==%20%22password%22)
%20s%20+=%20f[i].value%20+%20%22\n%22;%20}%20}%20if
%20(s)%20alert(%22Passwords%20in%20forms%20on%20this
%20page:\n\n%22%20+%20s);%20else%20alert(%22There%20are
%20no%20passwords%20in%20forms%20on%20this
%20page.%22);})();


4.After copying and pasting the JavaScript given above press the enter key and hidden passwords will be shown to you.

You can use This script when some one has checked the remember me button in the login form
of any website and to reveal password from that saved astrisk or encrypted password.


HOW TO FIX CORRUPTED XP FILES


How to fix corrupted windows file is very easy.Following these following steps

Requirement:
1. Windows XP CD

Now, follow this steps:
1. Place the xp cd in your cd/dvd drive
2. Go to start
3. Run
4. Type sfc /scannow

 It should all load and fix all your corrupted file on win XP.Hope this method can fix your corrupted
xp system files.

 If this Does Not Work Then You Need to Format The Computer as there would be Viruses in the
PC and you can can Also Use the antivirus if the Possible otherwise format the PC .

Friday 29 March 2013

RESTARTING WINDOWS WITHOUT RESTARTING YOUR PC

A modern PC with vista Home Edition takes about one and a half minute to boot.An older machine with XP is about the same.that,s 30 seconds for the PC itself (the BIOS) to boot up, plus a minute for the Windows OS to boot.


Sometimes,you need to reboot Windows(e.g When installing new software),but there is no need to restart BIOS, too.However,the default is to reboot both.(That's called doing a "cold boot", rather than a "warm boot"). There's a trick that works on the both XP and vista to get it to do a warm boot instead, thus saving you 30 seconds/cycle.


The trick is to hold down the SHIFT key when invoking the restart.


Windows Vista:Select start,then hover over the right arrow that is to the right of the padlock icon until the pop-up menu appears that contains "restart" as one of it's  choices.Hold down the SHIFT key while clicking on the "restart" choice.


Windows XP:select start.Select "Shut down...".Change the drop-down combo box under "What do you want the computer to do?" to "Restart".Hold down the SHIFT key while clicking on the "OK"

Tuesday 26 March 2013

DIVISION WITHOUT OPERATOR ' / '

#include<stdio.h>
#include<conio.h>
main()
{
int a,b,i,t,s=0;
clrscr();
printf("Enter two numbers to divide \n");
printf("A,B :");
scanf("%d,%d",&a&b);
if(a>b)
{
t=a;
a=b;
b=t;
}
s=b;
for(i=1;i<=b;i++)
{
s=s-a;
if(s<b)
break;
}
printf("\n Your answer is");
printf("\n %d(quotient),%d(remainder)",i,s);
getch();
}
OUTPUT
Enter two number to divide
A,B:25,39
Your answer is 
1(quotient),14(remainder)

COMPUTER NETWORKS


  • What is virtual channel?

Virtual channel is normally a connection from one source to one destination, although multicast connections are also permitted. The other name for virtual channel is virtual circuit.

  • What is virtual path?

Along any transmission path from a given source to a given destination, a group of virtual circuits can be grouped together into what is called path.

  • What is packet filter?

Packet filter is a standard router equipped with some extra functionality. The extra functionality allows every incoming or outgoing packet to be inspected. Packets meeting some criterion are forwarded normally. Those that fail the test are dropped.

  • What is traffic shaping?

One of the main causes of congestion is that traffic is often busy. If hosts could be made to transmit at a uniform rate, congestion would be less common. Another open loop method to help manage congestion is forcing the packet to be transmitted at a more predictable rate. This is called traffic shaping.

  • What is multicast routing?

Sending a message to a group is called multicasting, and its routing algorithm is called multicast routing.

  • What is region?

When hierarchical routing is used, the routers are divided into what we will call regions, with each router knowing all the details about how to route packets to destinations within its own region, but knowing nothing about the internal structure of other regions.

  • What is silly window syndrome?

It is a problem that can ruin TCP performance. This problem occurs when data are passed to the sending TCP entity in large blocks, but an interactive application on the receiving side reads 1 byte at a time.

  • What are Digrams and Trigrams?

The most common two letter combinations are called as digrams. e.g. th, in, er, re and an. The most common three letter combinations are called as trigrams. e.g. the, ing, and, and ion.

  •  Expand IDEA.

IDEA stands for International Data Encryption Algorithm.

  • What is wide-mouth frog?

Wide-mouth frog is the simplest known key distribution center (KDC) authentication protocol.

  • What is Mail Gateway?

It is a system that performs a protocol translation between different electronic mail delivery protocols.

  •  What is IGP (Interior Gateway Protocol)?

It is any routing protocol used within an autonomous system.

  • What is EGP (Exterior Gateway Protocol)?

It is the protocol the routers in neighboring autonomous systems use to identify the set of networks that can be reached within or via each autonomous system.

  • What is autonomous system?

It is a collection of routers under the control of a single administrative authority and that uses a common Interior Gateway Protocol.

  •  What is BGP (Border Gateway Protocol)?

It is a protocol used to advertise the set of networks that can be reached with in an autonomous system. BGP enables this information to be shared with the autonomous system. This is newer than EGP (Exterior Gateway Protocol).

  • What is Gateway-to-Gateway protocol?

It is a protocol formerly used to exchange routing information between Internet core routers.

  • What is NVT (Network Virtual Terminal)?

It is a set of rules defining a very simple virtual terminal interaction. The NVT is used in the start of a Telnet session.

  •  What is a Multi-homed Host?

It is a host that has a multiple network interfaces and that requires multiple IP addresses is called as a Multi-homed Host.

  • What is Kerberos?

It is an authentication service developed at the Massachusetts Institute of Technology. Kerberos uses encryption to prevent intruders from discovering passwords and gaining unauthorized access to files.

  • What is OSPF?

It is an Internet routing protocol that scales well, can route traffic along multiple paths, and uses knowledge of an Internet's topology to make accurate routing decisions.

  •  What is Proxy ARP?

It is using a router to answer ARP requests. This will be done when the originating host believes that a destination is local, when in fact is lies beyond router.


  •  What is SLIP (Serial Line Interface Protocol)?

It is a very simple protocol used for transmission of IP datagrams across a serial line.

  •  What is RIP (Routing Information Protocol)?

It is a simple protocol used to exchange information between the routers.

  • What is source route?

It is a sequence of IP addresses identifying the route a datagram must follow. A source route may optionally be included in an IP datagram header.

COMPUTER NETWORKS


  • What is Bandwidth?

            Every line has an upper limit and a lower limit  on the frequency of signals it can carry. This limited range is called the bandwidth.

  • What are the types of Transmission media?

Signals are usually transmitted over some transmission media that are broadly classified in to two categories.
a)      Guided Media:
These are those that provide a conduit from one device to another that include twisted-pair, coaxial cable and fiber-optic cable. A signal traveling along any of these media is directed and is contained by the physical limits of the medium. Twisted-pair and coaxial cable use metallic that accept and transport signals in the form of electrical current. Optical fiber is a glass or plastic cable that accepts and transports signals in the form of light.
           b) Unguided Media:
This is the wireless media that transport electromagnetic waves without using a physical conductor. Signals are broadcast either through air. This is done through radio communication, satellite communication and cellular telephony.

  • What is Project 802?

It is a project started by IEEE to set standards to enable intercommunication between equipment from a variety of manufacturers. It is a way for specifying functions of the physical layer, the data link layer and to some extent the network layer to allow for interconnectivity of major LAN
protocols.
It consists of the following:
Ø  802.1 is an internetworking standard for compatibility of different LANs and MANs across protocols.
Ø  802.2 Logical link control (LLC) is the upper sublayer of the data link layer which is non-architecture-specific, that is remains the same for all IEEE-defined LANs.
Ø  Media access control (MAC) is the lower sublayer of the data link layer that contains some distinct modules each carrying proprietary information specific to the LAN product being used. The modules are Ethernet LAN (802.3), Token ring LAN (802.4), Token bus LAN (802.5).
Ø  802.6 is distributed queue dual bus (DQDB) designed to be used in MANs.

  • What is Protocol Data Unit?

The data unit in the LLC level is called the protocol data unit (PDU). The PDU contains of four fields a destination service access point (DSAP), a source service access point (SSAP), a control field and an information field. DSAP, SSAP are addresses used by the LLC to identify the protocol stacks on the receiving and sending machines that are generating and using the data. The control field specifies whether the PDU frame is a information frame (I - frame) or a supervisory frame (S - frame) or a unnumbered frame (U - frame).

  • What are the different type of networking / internetworking devices?

Repeater:
Also called a regenerator, it is an electronic device that operates only at physical layer. It receives the signal in the network before it becomes weak, regenerates the original bit pattern and puts the refreshed copy back in to the link.
Bridges:
These operate both in the physical and data link layers of LANs of same type. They divide a larger network in to smaller segments. They contain logic that allow them to keep the traffic for each segment separate and thus are repeaters that relay a frame only the side of the segment containing the intended recipent and control congestion.
Routers:
They relay packets among multiple interconnected networks (i.e. LANs of different type). They operate in the physical, data link and network layers. They contain software that enable them to determine which of the several possible paths is the best for a particular transmission.
Gateways:
They relay packets among networks that have different protocols (e.g. between a LAN and a WAN). They accept a packet formatted for one protocol and convert it to a packet formatted for another protocol before forwarding it. They operate in all seven layers of the OSI model.
    
  • What is ICMP?

ICMP is Internet Control Message Protocol, a network layer protocol of the TCP/IP suite used by hosts and gateways to send notification of datagram problems back to the sender. It uses the echo test / reply to test whether a destination is reachable and responding. It also handles both control and error messages.

  • What are the data units at different layers of the TCP / IP protocol suite?

The data unit created at the application layer is called a message, at the transport layer the data unit created is called either a segment or an user datagram, at the network layer the data unit created is called the datagram, at the data link layer the datagram is encapsulated in to a frame and finally transmitted as signals along the transmission media.

  •  What is difference between ARP and RARP?

The address resolution protocol (ARP) is used to associate the 32 bit IP address with the 48 bit physical address, used by a host or a router to find the physical address of another host on its network by sending a ARP query packet that includes the IP address of the receiver.
The reverse address resolution protocol (RARP) allows a host to discover its Internet address when it knows only its physical address.

  • What is the minimum and maximum length of the header in the TCP segment and IP datagram?

            The header should have a minimum length of 20 bytes and can have a maximum length of 60 bytes.  
                    
  • What is the range of addresses in the classes of internet addresses?

Class A            0.0.0.0             -           127.255.255.255
Class B            128.0.0.0         -           191.255.255.255
Class C            192.0.0.0         -           223.255.255.255
Class D            224.0.0.0         -           239.255.255.255
Class E            240.0.0.0         -           247.255.255.255        

  • What is the difference between TFTP and FTP application layer protocols?

            The Trivial File Transfer Protocol (TFTP) allows a local host to obtain files from a remote host but does not provide reliability or security. It uses the fundamental packet delivery services offered by UDP.
            The File Transfer Protocol (FTP) is the standard mechanism provided by TCP / IP for copying a file from one host to another. It uses the services offer by TCP and so is reliable and secure. It establishes two connections (virtual circuits) between the hosts, one for data transfer and another for control information.

  • What are major types of networks and explain?

Ø  Server-based network
Ø  Peer-to-peer network
Peer-to-peer network, computers can act as both servers sharing resources and as clients using the resources.
Server-based networks provide centralized control of network resources and rely on server computers to provide security and network administration

  • What are the important topologies for networks?

Ø  BUS topology:
In this each computer is directly connected to primary network cable in a single line.
Advantages:
                        Inexpensive, easy to install, simple to understand, easy to extend.

Ø  STAR topology:
                        In this all computers are connected using a central hub.
Advantages:
            Can be inexpensive, easy to install and reconfigure and easy to trouble shoot physical problems.

Ø  RING topology:
                        In this all computers are connected in loop.
Advantages:
                        All computers have equal access to network media, installation can be simple, and signal does not degrade as much as in other topologies because each computer regenerates it.

  •  What is mesh network?

A network in which there are multiple network links between computers to provide multiple paths for data to travel.

  • What is difference between baseband and broadband transmission?

In a baseband transmission, the entire bandwidth of the cable is consumed by a single signal. In broadband transmission, signals are sent on multiple frequencies, allowing multiple signals to be sent simultaneously.

  •  Explain 5-4-3 rule?

In a Ethernet network, between any two points on the network ,there can be no more than five network segments or four repeaters, and of those five segments only three of segments can be populated.

  • What MAU?

In token Ring , hub is called Multistation Access Unit(MAU).

  • What is the difference between routable and non- routable protocols?

Routable protocols can work with a router and can be used to build large networks. Non-Routable protocols are designed to work on small, local networks and cannot be used with a router

  • Why should you care about the OSI Reference Model?

It provides a framework for discussing network operations and design.
  • What is logical link control?

One of two sublayers of the data link layer of OSI reference model, as defined by the IEEE 802 standard. This sublayer is responsible for maintaining the link between computers when they are sending data across the physical network connection. 

COMPUTER NETWORKS


  •  What are the two types of transmission technology available?

            (i) Broadcast   and      (ii) point-to-point

  •    What is subnet?

            A generic term for section of a large networks usually separated by a bridge or router.

  •   Difference between the communication and transmission.

            Transmission is a physical movement of information and concern issues like bit polarity, synchronisation, clock etc.
            Communication means the meaning full exchange of information between two communication media.

  •  What are the possible ways of data exchange?

            (i) Simplex       (ii) Half-duplex           (iii) Full-duplex.

  •   What is SAP?

            Series of interface points that allow other computers to communicate with the other layers of network protocol stack.

  •    What do you meant by "triple X" in Networks?   

The function of PAD (Packet Assembler Disassembler) is described in a document known as X.3. The standard protocol has been defined between the terminal and the PAD, called X.28; another standard protocol exists between hte PAD and the network, called X.29. Together, these three recommendations are often called "triple X"

  •    What is frame relay, in which layer it comes?

Frame relay is a packet switching technology. It will operate in the data link layer.
           
  •   What is terminal emulation, in which layer it comes?

            Telnet is also called as terminal emulation. It belongs to application layer.

  •    What is Beaconing?

            The process that allows a network to self-repair networks problems. The stations on the network notify the other stations on the ring when they are not receiving the transmissions. Beaconing is used in Token ring and FDDI networks.

  •    What is redirector?

            Redirector is software that intercepts file or prints I/O requests and translates them into network requests. This comes under presentation layer.

  •    What is NETBIOS and NETBEUI?

            NETBIOS is a programming interface that allows I/O requests to be sent to and received from a remote computer and it hides the networking hardware from applications.
            NETBEUI is NetBIOS extended user interface. A transport protocol designed by microsoft and IBM for the use on small subnets.

  •    What is RAID?

            A method for providing fault tolerance by using multiple hard disk drives.

  •    What is passive topology?

            When the computers on the network simply listen and receive the signal, they are referred to as passive because they don’t amplify the signal in any way. Example for passive topology - linear bus.

  •     What is Brouter?

            Hybrid devices that combine the features of both bridges and routers.

  •    What is cladding?

            A layer of a glass surrounding the center fiber of glass inside a fiber-optic cable.

  •   What is point-to-point protocol

            A communications protocol used to connect computers to remote networking services including Internet service providers.

  •     How Gateway is different from Routers?

            A gateway operates at the upper levels of the OSI model and translates information between two completely different network architectures or data formats

  •     What is attenuation?

            The degeneration of a signal over distance on a network cable is called attenuation.

  •    What is MAC address?

            The address for a device as it is identified at the Media Access Control (MAC) layer in the network architecture. MAC address is usually stored in ROM on the network adapter card and is unique.

              Difference between bit rate and baud rate.
            Bit rate is the number of bits transmitted during one second whereas baud rate refers to the number of signal units per second that are required to represent those bits.
baud rate  = bit rate / N
where N is no-of-bits represented by each signal shift.

MULTIPLICATION WITHOUT OPERATOR ' * '

#include<stdio.h>
#include<conio.h>
main()
{
int a,b,i,t,s=0;
clrscr();
printf("Enter  two numbers to multiply \n");
printf("A ,B :");
scanf("%d,%d",&a,&b);
if(a>b)
{
t=a;
a=b;
b=t;
}
for(i=1;i<=a;i++)
{
s=s+b;
}
printf("\n Your answer is %d ",s);
getch();
}
OUTPUT
Enter two number to multiply
A,B :100,22
Your answer is 22000

Monday 25 March 2013

RDBMS CONCEPTS


  •         What are database files, control files and log files. How many of these files should a database have at least? Why?

Database Files
The database files hold the actual data and are typically the largest in size. Depending on their sizes, the tables (and other objects) for all the user accounts can go in one database file—but that's not an ideal situation because it does not make the database structure very flexible for controlling access to storage for different users, putting the database on different disk drives, or backing up and restoring just part of the database.
You must have at least one database file but usually, more than one files are used. In terms of accessing and using the data in the tables and other objects, the number (or location) of the files is immaterial.
The database files are fixed in size and never grow bigger than the size at which they were created
Control Files
The control files and redo logs support the rest of the architecture. Any database must have at least one control file, although you typically have more than one to guard against loss. The control file records the name of the database, the date and time it was created, the location of the database and redo logs, and the synchronization information to ensure that all three sets of files are always in step. Every time you add a new database or redo log file to the database, the information is recorded in the control files.
Redo Logs
Any database must have at least two redo logs. These are the journals for the database; the redo logs record all changes to the user objects or system objects. If any type of failure occurs, the changes recorded in the redo logs can be used to bring the database to a consistent state without losing any committed transactions. In the case of non-data loss failure, Oracle can apply the information in the redo logs automatically without intervention from the DBA.
The redo log files are fixed in size and never grow dynamically from the size at which they were created.

  •          What is ROWID?

            The ROWID is a unique database-wide physical address for every row on every table. Once assigned (when the row is first inserted into the database), it never changes until the row is deleted or the table is dropped.
The ROWID consists of the following three components, the combination of which uniquely identifies the physical storage location of the row.
Ø  Oracle database file number, which contains the block with the rows
Ø  Oracle block address, which contains the row
Ø  The row within the block (because each block can hold many rows)
The ROWID is used internally in indexes as a quick means of retrieving rows with a particular key value. Application developers also use it in SQL statements as a quick way to access a row once they know the ROWID

  •             What is Oracle Block? Can two Oracle Blocks have the same address?

            Oracle "formats" the database files into a number of Oracle blocks when they are first created—making it easier for the RDBMS software to manage the files and easier to read data into the memory areas.
The block size should be a multiple of the operating system block size. Regardless of the block size, the entire block is not available for holding data; Oracle takes up some space to manage the contents of the block. This block header has a minimum size, but it can grow.
These Oracle blocks are the smallest unit of storage. Increasing the Oracle block size can improve performance, but it should be done only when the database is first created.
Each Oracle block is numbered sequentially for each database file starting at 1. Two blocks can have the same block address if they are in different database files.

  •           What is database Trigger?

            A database trigger is a PL/SQL block that can defined to automatically execute for insert, update, and delete statements against a table. The trigger can e defined to execute once for the entire statement or once for every row that is inserted, updated, or deleted. For any one table, there are twelve events for which you can define database triggers. A database trigger can call database procedures that are also written in PL/SQL.

  •            Name two utilities that Oracle provides, which are use for backup and recovery.

            Along with the RDBMS software, Oracle provides two utilities that you can use to back up and restore the database. These utilities are Export and Import.
The Export utility dumps the definitions and data for the specified part of the database to an operating system binary file. The Import utility reads the file produced by an export, recreates the definitions of objects, and inserts the data
If Export and Import are used as a means of backing up and recovering the database, all the changes made to the database cannot be recovered since the export was performed. The best you can do is recover the database to the time when the export was last performed.

  •            What are stored-procedures? And what are the advantages of using them.

Stored procedures are database objects that perform a user defined operation. A stored procedure can have a set of compound SQL statements. A stored procedure executes the SQL commands and returns the result to the client. Stored procedures are used to reduce network traffic.

  •              How are exceptions handled in PL/SQL? Give some of the internal exceptions' name

            PL/SQL exception handling is a mechanism for dealing with run-time errors encountered during procedure execution. Use of this mechanism enables execution to continue if the error is not severe enough to cause procedure termination.
The exception handler must be defined within a subprogram specification. Errors cause the program to raise an exception with a transfer of control to the exception-handler block. After the exception handler executes, control returns to the block in which the handler was defined. If there are no more executable statements in the block, control returns to the caller.
User-Defined Exceptions
PL/SQL enables the user to define exception handlers in the declarations area of subprogram specifications. User accomplishes this by naming an exception as in the following example:
                                ot_failure  EXCEPTION;
In this case, the exception name is ot_failure. Code associated with this handler is written in the EXCEPTION specification area as follows:
EXCEPTION
      when OT_FAILURE then
        out_status_code := g_out_status_code;
        out_msg         := g_out_msg;
The following is an example of a subprogram exception:
EXCEPTION
      when NO_DATA_FOUND then
        g_out_status_code := 'FAIL';
        RAISE ot_failure;
Within this exception is the RAISE statement that transfers control back to the ot_failure exception handler. This technique of raising the exception is used to invoke all user-defined exceptions.
System-Defined Exceptions
Exceptions internal to PL/SQL are raised automatically upon error. NO_DATA_FOUND is a system-defined exception. Table below gives a complete list of internal exceptions.

PL/SQL internal exceptions.

Exception Name
Oracle Error
CURSOR_ALREADY_OPEN
ORA-06511
DUP_VAL_ON_INDEX
ORA-00001
INVALID_CURSOR
ORA-01001
INVALID_NUMBER
ORA-01722
LOGIN_DENIED
ORA-01017
NO_DATA_FOUND
ORA-01403
NOT_LOGGED_ON
ORA-01012
PROGRAM_ERROR
ORA-06501
STORAGE_ERROR
ORA-06500
TIMEOUT_ON_RESOURCE
ORA-00051
TOO_MANY_ROWS
ORA-01422
TRANSACTION_BACKED_OUT
ORA-00061
VALUE_ERROR
ORA-06502
ZERO_DIVIDE
ORA-01476

In addition to this list of exceptions, there is a catch-all exception named OTHERS that traps all errors for which specific error handling has not been established.

  •            Does PL/SQL support "overloading"? Explain

            The concept of overloading in PL/SQL relates to the idea that you can define procedures and functions with the same name. PL/SQL does not look only at the referenced name, however, to resolve a procedure or function call. The count and data types of formal parameters are also considered.
PL/SQL also attempts to resolve any procedure or function calls in locally defined packages before looking at globally defined packages or internal functions. To further ensure calling the proper procedure, you can use the dot notation. Prefacing a procedure or function name with the package name fully qualifies any procedure or function reference.

  •            Tables derived from the ERD

            a) Are totally unnormalised
            b) Are always in 1NF
            c) Can be further denormalised
            d) May have multi-valued attributes

 (b) Are always in 1NF

  •           Spurious tuples may occur due to

       i. Bad normalization 
      ii. Theta joins
     iii. Updating tables from join
            a) i & ii                                    b) ii & iii
            c) i & iii                                   d) ii & iii

 (a) i & iii  because  theta joins are joins made on keys that are not primary keys.

  •            A B C is a set of attributes. The functional dependency is as follows

      AB  ->   B
      AC ->    C
         C ->    B
            a) is in 1NF
            b) is in 2NF
            c) is in 3NF
            d) is in BCNF

 (a) is in 1NF since (AC)+ = { A, B, C} hence AC is the primary key. Since         C  ->     B is a FD given, where neither C is a Key nor B is a prime attribute, this it is not in 3NF. Further B is not functionally dependent on key AC thus it is not in 2NF.  Thus the given FDs is in 1NF.

  •            In mapping of ERD to DFD

            a) entities in ERD should correspond to an existing entity/store in DFD
            b) entity in DFD is converted to attributes of an entity in ERD
            c) relations in ERD has 1 to 1 correspondence to processes in DFD
            d) relationships in ERD has 1 to 1 correspondence to flows in DFD

 (a) entities in ERD should correspond to an existing entity/store in DFD

  •            A dominant entity is the entity

            a) on the N side in a 1 : N relationship
            b) on the 1 side in a 1 : N relationship
            c) on either side in a 1 : 1 relationship
            d) nothing to do with 1 : 1 or 1 : N relationship

(b) on the 1 side in a 1 : N relationship

  •            Select  'NORTH', CUSTOMER From CUST_DTLS Where REGION = 'N' Order By

CUSTOMER Union Select  'EAST', CUSTOMER From CUST_DTLS Where REGION = 'E' Order By CUSTOMER
The above is
            a) Not an error
            b) Error - the string in single quotes 'NORTH' and 'SOUTH'
            c) Error - the string should be in double quotes
            d) Error -  ORDER BY clause

(d)  Error - the ORDER BY clause. Since ORDER BY clause cannot be used in UNIONS

  •            What is Storage Manager? 

It is a program module that provides the interface between the low-level data stored in database, application programs and queries submitted to the system.   
 
  •              What is Buffer Manager?

It is a program module, which is responsible for fetching data from disk storage into main memory and deciding what data to be cache in memory. 

  •              What is Transaction Manager?

It is a program module, which ensures that database, remains in a consistent state despite system failures and concurrent transaction execution proceeds without conflicting.

  •              What is File Manager?

It is a program module, which manages the allocation of space on disk storage and data structure used to represent information stored on a disk.  

  •            What is Authorization and Integrity manager?

It is the program module, which tests for the satisfaction of integrity constraint and checks the authority of user to access data.   

  •            What are stand-alone procedures?

Procedures that are not part of a package are known as stand-alone because they independently defined. A good example of a stand-alone procedure is one written in a SQL*Forms application. These types of procedures are not available for reference from other Oracle tools. Another limitation of stand-alone procedures is that they are compiled at run time, which slows execution.

  •             What are cursors give different types of cursors.

PL/SQL uses cursors for all database information accesses statements. The language supports the use two types of cursors
Ø  Implicit
Ø  Explicit

  •         What is cold backup and hot backup (in case of Oracle)?

Ø  Cold Backup:
It is copying the three sets of files (database files, redo logs, and control file) when the instance is shut down. This is a straight file copy, usually from the disk directly to tape. You must shut down the instance to guarantee a consistent copy.
If a cold backup is performed, the only option available in the event of data file loss is restoring all the files from the latest backup. All work performed on the database since the last backup is lost.
Ø  Hot Backup:
Some sites (such as worldwide airline reservations systems) cannot shut down the database while making a backup copy of the files. The cold backup is not an available option.
So different means of backing up database must be used — the hot backup. Issue a SQL command to indicate to Oracle, on a tablespace-by-tablespace basis, that the files of the tablespace are to backed up. The users can continue to make full use of the files, including making changes to the data. Once the user has indicated that he/she wants to back up the tablespace files, he/she can use the operating system to copy those files to the desired backup destination.
The database must be running in ARCHIVELOG mode for the hot backup option.
If a data loss failure does occur, the lost database files can be restored using the hot backup and the online and offline redo logs created since the backup was done. The database is restored to the most consistent state without any loss of committed transactions.