Home » SQL & PL/SQL » SQL & PL/SQL » How to get back purged data into the tables
How to get back purged data into the tables [message #606783] Wed, 29 January 2014 05:55 Go to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Hi all,

I purged all the data from the tables through purged program .How to get back purged data into the tables.Please its very important to me.


Thank You
Re: How to get back purged data into the tables [message #606786 is a reply to message #606783] Wed, 29 January 2014 06:07 Go to previous messageGo to next message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
That would depend on how you did this "purge". What is this "purged program"?
Re: How to get back purged data into the tables [message #606787 is a reply to message #606786] Wed, 29 January 2014 06:10 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
That would depend on how you did this "purge". What is this "purged program"?


I have one purged program ran in the Oracle applications & i deleted data from all most all from the 12 tables, how can i get the data into the tables Please help me.
Re: How to get back purged data into the tables [message #606788 is a reply to message #606787] Wed, 29 January 2014 06:11 Go to previous messageGo to next message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
You had better open a new topic in the EBS forum.
Re: How to get back purged data into the tables [message #606789 is a reply to message #606787] Wed, 29 January 2014 07:38 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator

Restore from a backup.

Re: How to get back purged data into the tables [message #606790 is a reply to message #606789] Wed, 29 January 2014 07:40 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
Restore from a backup.


No Back up. Please suggest me.
Re: How to get back purged data into the tables [message #606792 is a reply to message #606790] Wed, 29 January 2014 07:49 Go to previous messageGo to next message
gazzag
Messages: 1118
Registered: November 2010
Location: Bedwas, UK
Senior Member
What does the following query return?

SQL> SELECT LOG_MODE FROM V$DATABASE;
Re: How to get back purged data into the tables [message #606793 is a reply to message #606792] Wed, 29 January 2014 07:51 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
SELECT LOG_MODE FROM V$DATABASE; returns

NOARCHIVELOG
Re: How to get back purged data into the tables [message #606794 is a reply to message #606793] Wed, 29 January 2014 07:54 Go to previous messageGo to next message
gazzag
Messages: 1118
Registered: November 2010
Location: Bedwas, UK
Senior Member
In that case, we definitely can't help you sorry. The only chance you have is to find a copy (backup) of the database that was taken before the data was lost.

-g
Re: How to get back purged data into the tables [message #606795 is a reply to message #606783] Wed, 29 January 2014 07:58 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
select * from emp1

delete from emp1
where empno=1234

--insert into emp1 values(2222,'SIVA','ORacle',NULL,sysdate,7777,100,40);



SELECT TABLE_NAME,ROW_MOVEMENT FROM USER_TABLES WHERE TABLE_NAME='EMP1';

ALTER TABLE emp1 ENABLE ROW MOVEMENT;


SELECT TABLE_NAME,ROW_MOVEMENT FROM USER_TABLES WHERE TABLE_NAME='emp1';

FLASHBACK TABLE emp1 TO TIMESTAMP SYSDATE-1;


I tried with insert only 1 row in the table and if i insert 2 rows and delete one row and run the above queries , the data not recover.It is worked on only if i have only one record , then only it show the deleted data.
Re: How to get back purged data into the tables [message #606796 is a reply to message #606795] Wed, 29 January 2014 08:00 Go to previous messageGo to next message
gazzag
Messages: 1118
Registered: November 2010
Location: Bedwas, UK
Senior Member
What does this return?

SQL> SELECT FLASHBACK_ON FROM V$DATABASE;
Re: How to get back purged data into the tables [message #606797 is a reply to message #606796] Wed, 29 January 2014 08:03 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
SELECT FLASHBACK_ON FROM V$DATABASE;

It returns NO
Re: How to get back purged data into the tables [message #606798 is a reply to message #606794] Wed, 29 January 2014 08:07 Go to previous messageGo to next message
gazzag
Messages: 1118
Registered: November 2010
Location: Bedwas, UK
Senior Member
gazzag wrote on Wed, 29 January 2014 13:54
In that case, we definitely can't help you sorry. The only chance you have is to find a copy (backup) of the database that was taken before the data was lost.

-g

Re: How to get back purged data into the tables [message #606799 is a reply to message #606798] Wed, 29 January 2014 08:09 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Thank You for your supported answers gazzag..Smile
Re: How to get back purged data into the tables [message #606800 is a reply to message #606787] Wed, 29 January 2014 08:22 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
mist598 wrote on Wed, 29 January 2014 17:40

I have one purged program ran in the Oracle applications & i deleted data from all most all from the 12 tables, how can i get the data into the tables


With NOARCHIVELOG mode and no FLASHBACK_ON, is all this happening in your PROD or TEST environment? If PROD then you need to seriously think about it.
Re: How to get back purged data into the tables [message #606801 is a reply to message #606800] Wed, 29 January 2014 08:29 Go to previous messageGo to next message
mist598
Messages: 1195
Registered: February 2013
Location: Hyderabad
Senior Member
Quote:
With NOARCHIVELOG mode and no FLASHBACK_ON, is all this happening in your PROD or TEST environment? If PROD then you need to seriously think about it.


In PROD , Please help me.
Re: How to get back purged data into the tables [message #606802 is a reply to message #606795] Wed, 29 January 2014 08:34 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
mist598 wrote on Wed, 29 January 2014 08:58
[code]
SELECT TABLE_NAME,ROW_MOVEMENT FROM USER_TABLES WHERE TABLE_NAME='emp1';


That will never return any rows in your case.

Based on all your questions, I think you really need to read Database Concepts and learn a lot more before you continue using an Oracle database.

I also hope someone with more knowledge is the dba, although being that database is not in archivelog mode and flashback is off, I would think not.
Re: How to get back purged data into the tables [message #606803 is a reply to message #606790] Wed, 29 January 2014 08:41 Go to previous messageGo to next message
pablolee
Messages: 2882
Registered: May 2007
Location: Scotland
Senior Member
mist598 wrote on Wed, 29 January 2014 13:40
Quote:
Restore from a backup.


No Back up. Please suggest me.


Are you sure that there is no backup? To have a production database that has no backups seems unlikely to me. Not if there is anyone there who has a clue about Oracle. I strongly suggest that you go and speak to the person that actually knows about Oracle and ask him or her if they do actually have backups.

What is the nature of the database? Is it a transactional database or is it batch loaded? Is it cleared down and loaded each time or is the load incremental? What I'm getting at is, could the database be 'recovered' simply by re-running the previous batch load (if there was such a thing)
Re: How to get back purged data into the tables [message #606827 is a reply to message #606795] Wed, 29 January 2014 14:18 Go to previous message
John Watson
Messages: 8931
Registered: January 2010
Location: Global Village
Senior Member
The FLASHBACK TABLE command you demonstrated worked because you were quick. It will not work to solve your problem, firstly because too much time has gone by, and secondly because running a purge routine in an EBS database may have updated thousands of tables. You can't flashback just a few of them without destroying the financial integrity of the system.

Your only option, as I said before, is to ask a question in the EBS forum: explain what you did (for instance, which responsibility you were in, or what concurrent programs you ran) and perhaps someone there knows if the purge will have done an archive somewhere first.

I think it would help if you explained what is going on. The only EBS databases I have ever seen that were not in archivelog mode have been demonstration VISION databases. If that is what you have broken, no problem: remove everything, and start again. If it is a production database, you can also install new one - but of course all it will have is the seeded data. If it was a real production database, with lots of configuration and data, the best you can do is talk about it with the client. You, your DBA, your project manager, everyone involved, will all be trying to CYA, which is not helpful. You all need to remember that it is the client who matters.
Previous Topic: Searching string with special characters using INSTR function
Next Topic: Convert date format for easier lookup
Goto Forum:
  


Current Time: Fri Apr 26 08:53:49 CDT 2024