Welcome to Competitive World

This Site is helpful for the aspirants who wants to be in Public sector, either from state level or central level.

We will be posting the articles on regular intervals related to Groups, Service Commission and Banks Exams.

Wednesday, April 8, 2015

What is Flashback drop in Oracle

This article is aimed at  explaining the ‘Flashback drop’ option and managing the ‘Oracle Recycle Bin’.

Flashback drop – A quick  intro:
Have you  ever thought of restoring a  table which is dropped accidently?
When you drop a table, the database does not immediately remove the space associated with the table.
The database renames the table and places it and any associated objects in a ‘recycle bin’, where, in case the table was dropped accidently, it can be recovered at a later time. (Very similar to our ‘Restore’ from Windows Recycle bin)
This feature is called Flashback Drop, and the ‘FLASHBACK TABLE’ statement is used to restore the table. This was introduced as a part of Oracle 10g.

Oracle Recycle Bin  – A quick  intro:
The recycle bin is actually a ‘data dictionary table’ containing information about dropped objects.
Dropped tables and any associated objects such as indexes, constraints etc. remain in the recycle bin.
They continue to remain so, until specifically ‘purged’ from the recycle bin or the unlikely situation where they must be purged by the database because of table space constraints.
Each user can be thought of as having his/her own recycle bin and he/she can view his/her dropped objects by using
 
SELECT * FROM RECYCLEBIN

What happens when a table is dropped?
Dropped table is moved to the recycle bin.
The table and its associated objects are given system-generated names. This is necessary to avoid name conflicts that may arise if multiple tables have the same name.
This could happen when a user drops a table, re-creates it with the same name, and drops it again.
The renaming convention is as follows:
     BIN$unique_id$version
             where:
        unique_id is a 26-character globally unique identifier for this object, which makes the recycle bin name unique across all databases
        version is a version number assigned by the database.

Enabling and Disabling the Recycle Bin:
The recycle bin is ‘enabled’ by default. The initialization parameter RECYCLEBIN can be used to explicitly enable or disable the recycle bin by providing ON/OFF values.

To enable the recycle bin:
   ALTER SESSION SET RECYCLEBIN=ON; -- specific for that session
   ALTER SYSTEM SET RECYCLEBIN=ON;-- for the entire database
To disable the recycle bin:
   ALTER SESSION SET RECYCLEBIN=OFF; -- specific for that session
   ALTER SYSTEM SET RECYCLEBIN=OFF;-- for the entire database

Viewing and Querying objects from the Recycle Bin:

•Say we have dropped our ‘TEST1234’ table, we can get to know the name of the table in recycle bin by using

SELECT object_name AS recycle_name,original_name,type FROM RECYCLEBIN
WHERE original_name= ‘TEST1234’;

•We can directly view the contents of the dropped table by using the ‘system generated name’

SELECT * FROM "BIN$DMA758TvVdLgUyvulAqPqA==$0";

(Note the use of quotes due to the special characters in the recycle bin name)

Restoring an object from the Recycle Bin:

•We can either use the recycle_name to restore back the dropped tables,

FLASHBACK TABLE " BIN$DMA758TvVdLgUyvulAqPqA==$0"  TO BEFORE DROP;

•Or the Original name as well
FLASHBACK TABLE TEST1234 TO BEFORE DROP RENAME TO TEST1234_bkp;

Pre-requisites:
•Recycle bin should have been enabled for that session/system.
•Be granted with the FLASHBACK TABLE or FLASHBACK ANY TABLE privilege (Generally, they are enabled by default)

Limitations:
•While Oracle permits queries against objects stored in the recycle bin, we cannot use DML or DDL statements on objects in the recycle bin.
•When space pressure arises, the database selects objects for automatic purging from the recycle bin on a first-in, first-out basis. That is, the objects dropped first are the ones first selected for purging.

What a Performance of Akkineni Akhil


Nagarjuna's younger son Akkineni Akhil who is making debut under VV Vinayak's  direction is celebrating the birthday today.

On this occasion the film maker has released the first look over teaser, in which Akhil looks smashing in the action scene that was stylishly shot by VV Vinayak. 
Akhil has the style and charisma to win the hearts of masses

 Film is producing by nithin and Music by Thaman and Anuoop Rubens


Ohhhh!!!! Lakshmi Manchu becomes professional singer




Once upon a time, Many Said  Lakshmi Manchu is the Daughter of Mohan Babu, but as the days passed, Now If you ask to the Telugu Film Lover/audience who is Lakshmi Manchu, They says She is an actor/Film Production/Maker what not and now she became a professional singer too.

She sung a song for Dongata, which is her forthcoming film,directed by Vamsi Krishna.
She said she completed the recording of songs in 4 hours just because of Simple Lyrics.
She also said Raghu Kunche supported and pushed her to sing the song.
Lakshmi Manchu is very happy for fulfilling her father's wish who wants her to be a playback singer.

We wish you to achieve many more mile stones in your career.

Lion to Roar Again - Nandamuri Balakrishna


Upcoming action entertainer "Lion" of Nandamuri Balakrishna is all to set Roar Again.
Nandamuri fans are having high expectations on this film ever since Balayya's first look stills were released.

Audio launch will take place very soon with  political presence and huge fan fare.
AP CM Nara Chandrababu Naidu may attend the audio launch function as the chief guest.

All these points stand at one end, but the latest news from the film circles the interval bang itself is more than sufficient to break all the records.And the Nandamuri fans will become crazy to watch the interval bang scenes again and again.

If the news turns out to be true on the release day, then the Words of Jr.NTR will become true as '2015 - Nandamuri Nama Samvatsaram'

Lets wait for few weeks to see the action of LION

Tuesday, April 7, 2015

Birthday Gift - Allu Arjun



There is no need the introduction of Allu Arjun, who is in cloud nine after the success of Race Gurram.

Today is his Birthday, and stylish star Allu Arjun has decided to give a birthday gift to his fans all over the world

And the Birthday gift is debuted on Twitter to make sure that he is constantly in touch with his fans.
Twitter Account : Yours Truly Bunny

Twitter Delicious Facebook Digg Stumbleupon Favorites More