GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL Plus
Go To First  |  Previous Question  |  Next Question 
 SQL Plus  |  Question 116 of 132    Print  
How Multiple Transactions can be controlled ?

  
Total Answers and Comments: 2 Last Update: December 04, 2006     Asked by: tiru 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 26, 2006 10:17:00   #1  
vssandilya Member Since: December 2005   Contribution: 8    

RE: How Multiple Transactions can be controlled ?

FOR MULTIPLE TRANSACTIONS TO BE CONTROLLED U NEED TO USE

A TRANSACTION FILE. FOR EXAMPLE A STORES PROGRAM IS THERE.

THERE ARE 50 BOTTLES OF PHYNYLE OF BRAND X OF BATCH NO 99.

SUPPOSE THERE ARE 5 COUNTERS OF ISSUE.

COUNTER 1 OPENED THE ISSUE SCREEN AND TYPED 4. IMMIDIATELY WHEN THE ENTER KEY IS PRESSED 4 IS ENTERED INTO THE TRANSACTION TABLE

WITH USER CODE. A FLAG FIELD IS ALSO NECESSARY. FOR EXAMPLE N STANDS FOR NOT COMMITED INTO THE ISSUE TABLE AND D STANDS FOR

COMMITED TO ISSUE TABLE. SO LONG AS THE FLAG REMAINS N IN THE TRANSACTION TABLE TILL THEN

THE FORMULA IS TOTAL STOCK OF BOTTLES OF PHYNYLE OF BRAND X OF BATCH NO 99 -(NO OF BOTTLES OF PHYNYLE IN THE TRANSACTION FILE

OF ALL USERS WHERE THE FIELD FLAG IS N). THIS OUTPUT FLASHES ON

ALL SCREENS WHO WANT TO ISSUE BOTTLES OF PHYNYLE OF BRAND X OF BATCH NO 99.

THE MOMENT THE TRANSACTION IS COMMITED TO THE ISSUE TABLE

STEP -1 SUBTRACT ALL THE TRANSACTIONS FROM STOCK THOSE THAT HAVE BEEN ISSUED USING THE TRANSACTION FILE AND STOCK FILE

STEP -2 CHANGE THE FLAG OF THE TRANSACTION RECORDS OF THAT USER

TO D.

STEP -3 DELETE ALL THOSE RECORDS FROM THE TRANSACTION FILE

WHERE THE FLAG D AND THE USER CODE USER CODE OF COUNTER 1.

ALL SHOULD BE DONE USING THE BACKEND PL/SQL PROGRAMMING.

U NEED TO USE

PACKAGES THAT USE STORED PROCEDURES FOR DATA ENTRY AND RETRIVAL

AFTER PROCESSING.

THANKS

V.S.SANDILYA


 
Is this answer useful? Yes | No
December 04, 2006 12:55:20   #2  
rampratap409 Member Since: September 2006   Contribution: 111    

RE: How Multiple Transactions can be controlled ?
use savepoint after each DML statement. If using procedure/function then do not give commit in them. commit in proc/function will erase your savepoints.
 
Is this answer useful? Yes | No

 Related Questions

Join is a query which retrieves related columns or rows from multiple tables.Self Join - Joining the table with itself.Equi Join - Joining two tables by equating two common columns.Non-Equi Join 
Latest Answer : In Full Outer Join we get both matched and unmatched data from both the tables whereas Cartesian join is a join in which each row of one table is cross multiplied with each row of the second table ...

Latest Answer : use savepoint after each DML statement. If using procedure/function then do not give commit in them. commit in proc/function will erase your savepoints. ...
Read Answers (2) | Asked by : tiru


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

ODP.NET - Retrieving Multiple Rows on to the Grid

ODP NET Retrieving Multiple Rows on to the Grid In the previous section we tried to retrieve only one row using OracleDataReader In this section we will try to retrieve more than one row or a result set and populate a DataGridView on a WinForm mosgoogle The following code lists out the details of al
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

Step by Step Oracle PL-SQL Tutorial

This introductory tutorial to PL SQL will help you to understand the basic concepts of PL SQL Please review the following tutorials and practice the sample SQL Statements on your local Oracle Database Please note that you must learn these basic things before we actually start getting in to Advanced
 

Working with XML in Oracle

Working with XML in Oracle Introduction to XML Extensive markup language is the language which presents data in a human readable form of text The data can be anything from a purchase order or a stock quote or weather radar or a flight schedule it can be represented using XML XML is very similar to H
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape