Results 1 to 5 of 5

Thread: Creating savepoint in database

  1. #1
    Join Date
    Apr 2008
    Posts
    242

    Creating savepoint in database

    Hello sir,

    I am a beginner in oracle PL/SQL and i am surfing and solving my problem for a long time and you all helps me a lot but i am here with one question which is different from my previous questions.

    I want to know the creating save point in oracle and why it is being used in the PL/SQL and please tell me how to implement and manage it.

    Thanks.

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Creating savepoint in database

    Creating savepoint in database

    A SAVEPOINT is a point specified during the transaction and used within the PL/SQL implementation.The save point also allows for a partial rollback.

    After updating the values in the table effected in the transaction, If we got any problem during execution and transmission of the transaction then you can rollback the transmission of data from the specified SAVEPOINT.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Creating savepoint in database

    Now,we will see the example to create the save point within the PL/SQL example.The example is illustrated below which can help you to understand the logic behind the savepoint.



    Code:
    SQL> Create Table ...............
    
        SQL> savepoint 1           ///save point created 
    
    
        SQL> INSERT INTO <table_name> VALUES ();
    
    
        SQL> savepoint 2 ;      ///save point created
    
        Savepoint created.
    
        
        SQL> rollback to 1;
    
        Rollback complete.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Creating savepoint in database

    If you want to understand the working of the savepoint then you should understand that the savepoint is closely related to the Rollback in the database.

    You can understand the example which is described by the opaper,The table is created first as well as a savepoint also created.The third statement specifies that insert a value in the table and then another savepoint has been created name suggested 2 .

    In the last statement,the 1st save point is being called by the statement and the inserted values would be destroyed because the whole statement would be rolled back.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Creating savepoint in database

    If you really know more about the savepoint and its working then accrding to me this one would be the best example for you.

    This tutorial describes the long chainn of values and then the continued operation is being performed with the savepoint associated with the Rollback statement.

    You can this example from this link. Tutorial of Savepoint

Similar Threads

  1. Creating view in oracle database
    By Aileen_L in forum Software Development
    Replies: 5
    Last Post: 11-02-2010, 04:27 PM
  2. Creating standby database(Data guard) in oracle 9i
    By Adriana_andros in forum Software Development
    Replies: 4
    Last Post: 03-02-2010, 07:22 PM
  3. Creating partition of database tables
    By LaMarcus in forum Software Development
    Replies: 4
    Last Post: 30-01-2010, 11:48 AM
  4. Creating Database link in database
    By Lachlann in forum Software Development
    Replies: 3
    Last Post: 28-01-2010, 01:17 PM
  5. Creating xml File from database table in VB.Net
    By Jateen in forum Software Development
    Replies: 2
    Last Post: 29-12-2008, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,748,557.65711 seconds with 16 queries