Get data after truncate

hi,
how can i get back my data after truncating the table.
regards
Kiran Sankpal

Hi Kiran,
Table backup is the only way to restore data of a truncated table, it is possible to get deleted data back but not data of a truncated table. Refer Flashback
*009*

Similar Messages

  • Rollback the data after TRUNCATE

    Hi All,
    By mistake if i truncate a table,is there any way to get back data.
    I mean can i recover data after i issue TRUNCATE TABLE .
    Thanks

    Are you sure?
    satyaki>
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Elapsed: 00:00:00.02
    satyaki>
    satyaki>
    satyaki>create table Test_SAM
      2     as
      3       select * from emp;
    Table created.
    Elapsed: 00:00:01.06
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
            14
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>delete from Test_SAM;
    14 rows deleted.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
             0
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>insert into Test_SAM
      2     select *
      3     from Test_SAM as of timestamp(sysdate - 1/1440);
    14 rows created.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>commit;
    Commit complete.
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
            14
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>truncate table Test_SAM;
    Table truncated.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>select count(*) from Test_SAM;
      COUNT(*)
             0
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>insert into Test_SAM
      2     select *
      3     from Test_SAM as of timestamp(sysdate - 1/1440);
    insert into Test_SAM
    ERROR at line 1:
    ORA-01466: unable to read data - table definition has changed
    Elapsed: 00:00:00.00
    satyaki>Regards
    Satyaki De.

  • Parse the URL column to get data after 5th "/"

    Hi All,
    I have a url column that i need to parse to get the data after 5th Slash. can anyone help me here.
    Table : URLData
    url
    http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
    http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx year=2015&region=Antaica&type=Sl
    http://www.abc.com
    I result should be below data
    the-Great-Explorers
    Times-new-time
    Any help would be much appreciated

    The code you gave me works fine but it always gets me second last position.
    http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
    http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx
    year=2015&region=Antaica&type
    http://www.abc.com
    what if i want to get 3rd last position.
    http://www.abc.com/OurJourneys/Ourlife/the-Great-Explorers/dp
    http://www.abc.com/OurJourneys/Ourlife/Times-new-time/OurJourneys.aspx
    year=2015&region=Antaica&type
    http://www.abc.com
    Can you help me to get code for that.

  • CCA_9 data source getting data after users are locked

    Hi All,
    In our company R/3 upgradation is going on from ECC5 to ECC6.  So I am clearing the Ques from LBWQ and SMQ1.
    So We have locked the all users and started loading data into BW,  When i loaded the 2LIS_02_BF and 2LIS_02_UM it gone fine and in the second attempt i got 0 from 0 records.
    But when I loaded with CCA_9 its getting data continuously.  That load has been scheduled for nearly 15 times but then also I am getting data into BW with different number of records
    Can any one please tell me why its happening and what is the resolvation for that.
    Regards
    Sankar

    Hi,
    Thanks for the reply.  But all the users are locked for sure.  Then also I am getting the data.
    Safety delta is set for 20 mins but after 1 hr also i got the data.  So for the time being we left that.
    But after upgradation I have to load it.
    So can anyone suggest me that can i go with delta or I have to do init   and  to do Init have we lock the users or not.
    Regards
    Sankar

  • Urgent help please ! Get data after executing query

    Hi all
    I have stored some data's with labVIEW to mysql by writing query using db tools execute query.vi.
    For fetching those data's also wrote a query(select* from....)using the same tool . 
    the query got executed . What tool i have to use to retrieve the data from mysql to a labview array.( the fetch recordset data.vi tool is not fetching.)
    Thanks
    Attachments:
    db.JPG ‏11 KB

    First, make sure your query string is correct, no typos, the table and fields exist.  If all of this is correct, try using Fetch Next Recordset instead of Fetch Recordset.  I've had to do that with some databases.  For some reason, the record pointer doesn't advance with the query.  Or maybe the record pointer is pointing to empty space and the query places the record found as the next record instead of the current record.
    - tbob
    Inventor of the WORM Global

  • How can i get back my data after i restored my iphone and accidentally created a new iphone ac.

    how can i get back my data after i restored my iphone and accidentally created a new iphone ac.
    it did a back up when i started my restored iphone and i cant retrieve my previous backup while i didnt back up on icloud....
    the new ac is actually the same apple id as the one i used. I lost all my contact, photos and data of whatsapp...
    what can i do...help!

    I don't know if this is a similar problem but I wrote 2 notes yesterday on my iphone. I opened my mail to print them and they appeared as notes but wouldn't load. Then I looked at them on my iphone and I could see the notes but they quickly updated to blank with a time of the last edit the same time I tried opening them on my computer.
    Yesterday I updated to 4.3.4  I don't know if somehow that affected them. Are they stored somewhere else. Can I get them back?

  • Using sharepoint designer 2013 - connected to sharepoint online - but getting " data source file cannot be saved" after making a new linked datasource

    using sharepoint designer 2013 - connected to sharepoint online - but getting " data source file cannot be saved" after making a new linked datasource

    Hi,
    Based on your description, I have done a test and I can’t reproduce your issue.
    I have used SharePoint Designer 2013 to open a SharePoint Online site and there are no issues.
    I’d like to clarify whether you encounter any issues when accessing SharePoint Online sites. If there are no issues during the accessing procedure, SharePoint Online service should be working fine at your side. The issue may be caused by specific SharePoint
    Designer client or network. I suggest you refer to the following steps to troubleshoot the issue.
    1. Use SharePoint Designer to open another site and check whether it is successful.
    2. When you are prompted to enter Office 365 account and password, try other users’ accounts and select the remembering the credential.
    3. Perform the connection procedure under another environment and verify whether the issue is resolved.
    If the issue persists, can you provide related screenshots for further troubleshooting?
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How to get the previous state of my data after issuing coomit method

    How to get the previous state of some date after issuing commit method in entity bean (It should not use any offline storage )

    >
    Is there any way to get the state apart from using
    offline storage ?As I said the caller keeps a copy in memory.
    Naturally if it is no longer in memory then that is a problem.
    >
    and also what do you mean by auditlog?
    You keep track of every change to the database by keeping the old data. There are three ways:
    1. Each table has a version number/delete flag for each record. A record is never updated nor deleted. Instead a new record is created with a new version number and with the new data.
    2. Each table has a duplicate table which has all of the same columns. When the first table is modified the old data is moved to the duplicate table.
    3. A single table is used which has columns for 'table', 'field', 'data' and 'activity' (update, delete). When a change is made in any table then this table is updated. This is generally of limited useability due to the difficulty in recovering the data.
    All of the above can have a user id, timestamp, and/or additional information which is relevant to the data being changed.
    Note that ALL of this is persisted storage.
    I am not sure what this really has to do with "offline storage" unless you are using that term to refer to backed up data which is not readily available.

  • Getting SQLSTATE:22001(Message : [Microsoft][SQL Server Native Client 11.0]String data, right truncation) in SQL Server 2012 but in SQL server 2008 R2.

    I have an application which connects to SQL through ODBC 11.
    ODBC statement is :
    SELECT PID
    FROM PENTITY PENTITY01 WHERE ((NUM1 NOT BETWEEN ? + 10.7895 AND ? + 200.6734 AND NUM2 NOT IN (5996/ 8, ? - 89.3892, ? + 80.7543))
    and the SQLBindparameter statement is :
    static UCHAR num1[12]=12.589
    rc = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_CHAR, sqlType, precision, scale,
    &num1, sizeof(num1), NULL);
    With this SQLBindparameter statement I am getting error, It is working without any error if I change the value to 12.
    The same code is working when connecting to SQL server 2008.
    Thanks in advance.

    Hi Nalsr,
    From my research, I found:
    "[Microsoft][ODBC SQL Server Driver]String
    data right truncation" error may be returned from a call to
    SQLBindParameter if the size of the string parameter being used is greater than the size of the column being compared to. In other words if the
    string size of the <expression> to the left of the <comparison_operator> is less than the
    string size of the <expression> to the
    right, ODBC may return this error.
    The resolution is to make the string size of the <expression> to the
    right of the <comparison_operator> less than or equal to the
    string size of the <expression> on the left.
    It is difficult to track down this type of problem when third party development applications are being used. ODBC Trace can be used to help determine if this problem is occuring.
    Here is an example where the customer has submitted a query "select count(*) from type1 where type1 = ?", type1 is varchar(5) and the
    data type being passed by the application is char[9].
    Here is the relevant portion of the trace. The following information from the "exit" of SQLDescribeParam
    SWORD * 0x0095e898 (12)
    UDWORD * 0x0095e880 (5)
    Maps to the following with the actual value in parenthesis - SQL_VARCHAR Size 5:
    SQLSMALLINT *DataTypePtr
    SQLUINTEGER *ParameterSizePtr
    The "exit" value from SQLBindParameter provides the following
    information:
    SWORD 1 <SQL_PARAM_INPUT>
    SWORD 1 <SQL_C_CHAR>
    SQL Data Type SWORD 12 <SQL_VARCHAR>
    Parameter Size UDWORD 5
    SWORD 0
    Value PTR 0x0181c188
    Value Buffer Size SDWORD 5
    String Length SDWORD * 0x0181c103 (9)
    The string length parameter is the length of the
    string being bound to the parameter, in this instance there is a size mismatch which results in the SQLError and the SQLErrorW with the message "[Microsoft][ODBC SQL Server
    Driver]String data
    right truncation" .
    Hope this could be helpful.
    Best regards,
    Halin Huang

  • Aperture 3: GPS data gets lost after 'Update from Master'

    My library contains photos in JPEG format that I geotag in Places, then I save the metadata with 'Write IPTC Metadata to Master'. The problem I have is, that the GPS data gets lost after I do an 'Update from Master', even if I saved the metadata before. I'm having this problem with referenced and managed photos and all my JPEGs from several different cameras. The only way to permanently store the GPS info into my photos seems to be to export the geotagged photos as versions.
    Does anybody has the same problem or knows how to solve this?
    Thanks in advance,
    Michael

    Use Houdah geo (http://www.houdah.com) to write location data back to the EXIF. It's interface is very similar to Places (Google maps and pins) and you can interface with the Aperture library. It's a bit of a pain, but if you need it done now rather than wait for an Aperture 3 fix, then...
    Also, see here: http://www.nickrains.com/index.php?option=com_content&view=article&id=65:apertur e-3&catid=12:news&Itemid=24

  • How to get next date or date after n th day of a given date ?

    I want to get the date after n th day of a given date.
    Here a date and an integer will be the input.
    suppose 15/12/2007 and 3 are the inputs and the output will be 18/12/2007
    Is there any method to solve this purpose ?
    Plz its urgent !!

    javagalaxy.com wrote:
    I didn't feel this is a home work for them. I feel the OP is trying to learn.Well, that is a part of what homework is. Now, tell me how doing it for them helps them learn? They might run it once, to make sure it does what it is suppossed to do, then simply turn it in. In the process, they haven't learned a thing. Only a very small fraction of posters will study the posted code to figure it out, as evidenced by the fact, that if the code is not 100% cut-n-paste capable for their assignment, they will come back and complain that this or that does not work, or was not done.
    >
    This will be good learning for the OP, why don't you point out what is done badly.
    Did you mean using
    now.add(Calendar.DAY_OF_MONTH, daysToAdd);
    instead of
    now.set(Calendar.DAY_OF_MONTH, now.get(Calendar.DAY_OF_MONTH)+daysToAdd);?
    That is the main crux of it, yes, but homework or not, you should actually attempt to catch and handle the exceptions, rather than simply declaring "throws Exception". Handling exceptions in the homework assignments will cause that to become a habit and you will actually do it correctly without thinking about it. Just like constantly declaring "throws Exception" in your homework will also make that a habit, and guarnatee that you will someday also do that when it counts, thereby causing all sorts of problems (usually for coworkers).
    if its something else then please do let us know.
    I can also learn how to do it good :)

  • After Generate Report Get Data to Modify.vi, the unbundle doesn't work right.

    I'm fairly new to the program, interning at a local company.  I activated LabVIEW 8.5 on two additional computers right as rain, but for some reason, on one of them, certain VIs, such as excel.llb\append report data (str).vi, do not execute.  The broken arrow points to the unbundle by names, which take place after a Generate Report Get Data to Modify.vi .  I took a look at the online evaluation version of LabVIEW 8.5 on the NI website, but the only differences between the working block diagrams online and the ones on my computer are that the ones on my computer don't have blue names.  I clicked on the names online and several options appeared.  I clicked on the names in the VI block diagram on my computer, and it didn't even have the option that it had by default.  It's like the Get Data to Modify isn't passing any, or the right information. 
    Additional info:  I had this problem on the other computer, but I just re-copied the files and it worked fine.  That didn't happen with this one.  Also, the same version of Office is installed on both of them.  The biggest difference between that desktop and my work laptop is just that the desktop had the instruments I'm working with attached to it already.  Could that be it?

    Hello,
    Are you sure that you have the Report Generation Toolkit completely installed on the computer where you are seeing the issue?  This may be available in the evaluation version, but not in your copy if you have not purchased it. 
    Also, I cannot find any VI titled excel.llb\Excel excel.llb\append report data (str).vi, could you double check this name so that others can help you out?  If you do not have full functionality, I would assume that not all of the components are installed completely.
    Kameralina
    Ask NI (ni.com/ask)
    Search The KnowledgeBase
    NI Developer Zone
    Measure It. Fix It. ni.com/greenengineering/
    NI Vision ni.com/vision/

  • Dd to wipe partiton, data gets read after write?

    Hi,
    want to wipe a partition on my hdd. Doing this with dd if=/dev/urandom of=/dev/sdxx and get ~10MB/s (it's a WD green 2TB in USB2 external case). I tried different bs values (2048, 4096, 1M, 4M, default) but nothing helped.
    Now I saw in conky that mot of the time read and write speeds are identical. So I assume that the data gets read after write, is that possible? I also tried it with shred, same behavior on read/write except it's a bit slower ~8MB/s. Perhaps this has to do something with USB. Of course I could connect with SATA directly for wiping but the problem then stays for later when I want to use it as external device...
    Any suggestions?
    Thanks in advance.

    Thanks for these replies.
    @ROOKIE Mh, thats not the case since the data gets read fom /dev/urandom.
    @brebs Doesn't know that there are settings/drives supporting that. Good to know but it says "write-read-verify = not supported"
    @teateawhy Lready done with urandom but always good to know that this exists.
    So I'm still curious whats going on. And now I can say that it still happens with filesystem on that drive while copying files.
    Got read = write = 30MB/s copying files from internal SATA connected to external USB 2.0 connected HDD. So overall 60MB/s what I assume it should be but just writing...
    Same when using dd with /dev/zero as source just slightly faster.
    Finally reading speed is ~85MB/s which seems to bee the USB 2.0 limit, so this works like expected.
    Thanks again and perhaps someone can (help me) solve this.

  • Function to get the date after substraction

    Hi Gurus,
    I understand that the function "RE_ADD_MONTH_TO_DATE" is used for calculate the date after added certain month(s).
    But, how do I do it in the other way. What I mean here is I want to substract the date.
    For example my current date is 09.05.2008, substract 3 years is 09.05.2005.
    All ideas and suggestion are greatly appreciated.
    Thanks.

    Hi ,
    u can use the same function module RE_ADD_MONTH_TO_DATE with passing months in negetive number like,
    month = -36.
    in the function module.
    regards,
    kk.

  • Contacts getting deleted after few dats

    Hello
    I am using iphone 4. i am facing a problem that my contacts which i saved from my watsapp are getting deleted after few days automatically. Pl help me

    Contact WhatsApp since it is their issue.

Maybe you are looking for

  • Displaying the count of search result?

    Hi, We have built new search pages for our client to search for candidates registering in their iRecruitment site. The client prefers to see the no of records of each search result. Typically some searches may fetch around 50000 records. How to achie

  • Get textFrame by label returns null and anchored objects

    I have the following two functions: function getByLabel(page, label)     for(var i=0; i < page.allPageItems.length; i++)         if( page.allPageItems[i].label == label )             return page.allPageItems[i]; and Object.prototype.findItems = funct

  • Exporting data in a format other than Excel

    HI, I am exporting data displayed on UI/JSPX page to an excel sheet using exportCollectionActionListener. what other types are supported to export the data and whats the procedure. I am specifically interested in PDF , CSV and txt formats. Thanks, Sa

  • HT201412 My iPhone 5 did not on after when I upgrade

    My iPhone 5 did not on after I upgrade

  • Printing Photo with Info

    I have a couple of hundred photos in iPhoto 5 that I want to print. With each picture, I also want to print the title and creation date/time that is stored with the photo so I have a record of when the photo was taken. Can I do this with iPhoto? How?