Flush 3G

I have a 3g phone running 4.1. It is starting to run very slowly, even simple keyboard typing. I'd like to "first birthday" the phone and then install fresh copies of the apps in an attempt to get rid of any old data.
Restore would put me right back where I started. Any suggestions?

There are two types of a restore with iTunes. From your iPhone's backup, and as a new iPhone or not from your iPhone's backup.
Choose the later.

Similar Messages

  • Control flush error in gui_download

    Hi All,
    I get a control flush error while trying to use the FM GUI_DOWNLOAD
    in my BSP Application.
    Can anyone suggest the possible cause and solution?

    Dear Raja,
    I used the code given in one of the posts:
    ITAB contains my data so..
    LOOP AT ITAB INTO WA.
    CONCATENATE L_STRING WA-PARTNER
    WA-ADR_KIND
    WA-ADDRNUMBER
    CL_ABAP_CHAR_UTILITIES=>CR_LF
    INTO L_STRING SEPARATED BY SPACE.
    ENDLOOP.
    APP_TYPE = 'APPLICATION/MSEXCEL'.
    call function 'SCMS_STRING_TO_XSTRING'
    exporting
    text = l_string
    MIMETYPE = APP_TYPE
    IMPORTING
    BUFFER = l_xstring
    EXCEPTIONS
    FAILED = 1
    OTHERS = 2
    response->set_header_field( name = 'content-type'
    value = APP_TYPE ).
    some Browsers have caching problems when loading Excel format
    response->delete_header_field( name =
    if_http_header_fields=>cache_control ).
    response->delete_header_field( name =
    if_http_header_fields=>expires ).
    response->delete_header_field( name =
    if_http_header_fields=>pragma ).
    start Excel viewer either in the Browser or as a separate window
    response->set_header_field(
    name = 'content-disposition'
    value = 'attachment;
    filename=webforms.xls' ).
    finally display Excel format in Browser
    l_len = xstrlen( l_xstring ).
    response->set_data( data = l_xstring
    length = l_len ).
    navigation->response_complete( ).
    But I'm getting runtime errors in the line
    response->set_header_field( name = 'content-type'
    value = APP_TYPE ).
    Do you have any idea about how to correct it?
    Or, could you please suggest a simpler method?

  • After call commit sql , data can not flush to disk

    I use berkey db which support sql . It's version is db-5.1.19.
    1, Open a database.
    2. Create a table.
    3. exec "begin;" sql
    4. exec sql which is insert record into table
    5. exec "commit;" sql
    6. copy database file (SourceDB_912_1.db and SourceDB_912_1.db-journal) to Local Disk of D, then use a tool of dbsql to open the database.
    7. use select sql to check data, there is no record in table.
    1
    sqlite3 * m_pDB;
    int nRet = sqlite3_open_v2(strDBName.c_str(), & m_pDB,SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,NULL);
    2
    string strSQL="CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );";
    char * errors;
    nRet = sqlite3_exec(m_pDB, strSQL.c_str(), NULL, NULL, &errors);
    3
    nRet = sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
    4
    nRet = sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
    5
    nRet = sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
    Edited by: 887973 on Sep 27, 2011 11:15 PM

    Hi,
    Here is a simple test case program I used based on your description:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include "sqlite3.h"
    int error_handler(sqlite3*);
    int main()
         sqlite3 *m_pDB;
         const char *strDBName = "C:/SRs/OTN Core 2290838 - after call commit sql , data can not flush to disk/SourceDB_912_1.db";
         char * errors;
         sqlite3_open_v2(strDBName, &m_pDB, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "begin;", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "INSERT INTO TBLClientAccount (ClientId,AccountId) VALUES('dd','ddd'); ", NULL, NULL, &errors);
         error_handler(m_pDB);
         sqlite3_exec(m_pDB, "commit;", NULL, NULL, &errors);
         error_handler(m_pDB);
         //sqlite3_close(m_pDB);
         //error_handler(m_pDB);
    int error_handler(sqlite3 *db)
         int err_code = sqlite3_errcode(db);
         switch(err_code) {
         case SQLITE_OK:
         case SQLITE_DONE:
         case SQLITE_ROW:
              break;
         default:
              fprintf(stderr, "ERROR: %s. ERRCODE: %d.\n", sqlite3_errmsg(db), err_code);
              exit(err_code);
         return err_code;
    }Than I copied the SourceDB_912_1.db database and the SourceDB_912_1.db-journal directory containing the environment files (region files, log files) to D:\, opened the database using the "dbsql" command line tool, and queried the table; the data is there:
    D:\bdbsql-dir>ls -al
    -rw-rw-rw-   1 acostach 0 32768 2011-10-12 12:51 SourceDB_912_1.db
    drw-rw-rw-   2 acostach 0     0 2011-10-12 12:51 SourceDB_912_1.db-journal
    D:\bdbsql-dir>C:\BerkeleyDB\db-5.1.19\build_windows\Win32\Debug\dbsql SourceDB_912_1.db
    Berkeley DB 11g Release 2, library version 11.2.5.1.19: (August 27, 2010)
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    dbsql> .tables
    TBLClientAccount
    dbsql> .schema TBLClientAccount
    CREATE TABLE [TBLClientAccount] ( [ClientId] CHAR (36), [AccountId] CHAR (36) );
    dbsql> select * from TBLClientAccount;
    dd|dddI do not see where the issue is. The data can be successfully retrieved, it is present in the database.
    Could you try putting in the sqlite3_close() call and see if you still get the error?
    Did you remove the __db.* files from the SourceDB_912_1.db-journal directory?
    Did you use PRAGMA synchronous, and if so, what is the value you set?
    If this is still an issue for you, please describe in more detail the exact steps needed to get this reproduced and provide a simple stand-alone test case program that reproduces it.
    Regards,
    Andrei

  • Can not find Flush Return Data Buffer.vi

    When I try to start my Labview program I get a "Error -70025 occurred at Read Home Input Status.vi" because the Return Data Buffer is not empty.
    I searched for the Flush Return Data Buffer.vi in the Labview library but it is not there.
    Where can I find it?

    Hello Mishka,
    The Flush Return Data Buffer.vi should be located in your functions palette at Vision and Motion>>73xx>>Advanced>>Flush RDB.vi. Alternatively, you can press ctrl+space on your keyboard to open the quick drop menu and then search for Flush RDB.vi. 
    Regards,
    J_Bou

  • Not able to flush the data output stream in n/w prg.

    Hi,
    I am trying to send and receive the data using TCP/IP channel using socket programming.
    Following is the server side code I have
    Socket socket = server_socket.accept();
    OutputStream output = socket.getOutputStream();
    BufferedReader input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    String inputMessage = (String) input.readLine();
    System.out.println(inputMessage);
    output.write("Message from server");
    output.flush();I am able to receive the message from the client and as per the code the message is getting printed in the console. But I am unable to send the message back to the Client inspite of flushing the output stream.
    I am sure that the problem is because of the flush method which is not acutally flushing the data. If I use the "println" method instead of the write & flush method, everything seems to be working fine. I do not want to use the "println" method because I get an extra new line character in the msg I send to the Client.
    Any help on this is appreciated!

    No. I am not using BufferedReader to listen for the server response. Given below is my client side code.
    Socket socket = new Socket(<ip>, <port>);
    InputStream input = socket.getInputStream();
    PrintWriter output = new PrintWriter(socket.getOutputStream(),true);
    output.println("Request from the client");
    System.out.println("Waiting for the server response...");
    byte buffer[] = new byte[2000];
    input.read(buffer);
    System.out.println(new String(byte));I am not receiving the message from server, it hangs on "Waiting for the server response..".

  • The system failed to flush data to the transaction log. Corruption may occur.

    We have a windows server 2008 R2 Virtual machine and we are getting the following Warning Event.
    Event 51 Volmgr
    The system failed to flush data to the transaction log.  Corruption may occur.
    Any idea what is wrong with this server? Why this event is occurring?

    Hi Jitender KT,
    Before going further, would you please let me know the complete error message that you can find (such as a
    screenshot if you can provide)? Please check and confirm in Event Viewer if there other related event you can find, such as Event 57 and so on. Meanwhile, can you remember what operations you have done before the warning occurred?
    Based on current message that you provided, please run
    Chkdsk command to check if you can find error. The issue seems to be related to the storage device. Please refer to the following similar question.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/044b10af-c253-46de-b40d-ce9d128b83d7/event-id-57-source-volmgr?forum=winservergen
    In addition, please also refer to the following link. It should be helpful.
    http://www.eventid.net/display-eventid-57-source-volmgr-eventno-8865-phase-1.htm
    Hope this helps.
    Best regards,
    Justin Gu

  • A serious problem with flush 11.3 on Windows XP! Forgive assistance.../Серьёзная проблема с флешем..

    Я вчера поставил и обнаружил проблему со звуком.(если смотреть видео с звуком(разумеется) или слушать муз через инет(браузер(вообщем где задействован хоть как то  флеф-плеер) звук какой то с разрывами(слушать не возможно).... Это как и в флеше для так и на других браузерах. Пробовал на ,,,,, Opera Next 12.00 1351, Maxthon 3 и даже на Lunascape6 не на одном из этих браузерах звук не был нормальным.
    Наверное будем ждать беты 2. Потом Я попробую поставить бету 2 если будет тоже самое, наверное придётся ждать релиза а в бету лезть не нужно.
    У кого такая же проблема? Если как то исправили её напишите пожалуйста как?
    I had put it yesterday and found a problem with sound.(if you watch the video with sound(of course) or listen to the muses through the Internet(browser(generally where used at least as a флеф-player sound some with gaps(not listen possible).... It's like in the flash to and on other browsers. Tried the 
    , Opera Next 12.00 1351, Maxthon 3 and even on Lunascape6 not in one of these browsers sound was not normal.
    I guess I will wait for beta 2. Then I try to put the beta 2 if it is the same thing, probably have to wait for the release and beta climb is not necessary.
    Have anyone the same problem? If as you fix it please write how?
    Жду ответа...
    С уважением Владислав.
    Waiting for reply...
    With respect Vladislav.

    Hi! Have you but in beta 2 this problem has a little bit worse. Sound a little more intermittent. Is not it possible that all this is the end.... I Have to life sit on the final version
    I hope You will fix this problem...
    And by the way, no Matter what link or video or song, everywhere, the sound is not correct (damaged)!!!
    Here's for example (even without a link) I set the flash beta 2 for Internet Explorer and open the song in Windows Media Player and the sound of the damaged (it does not matter where and how and through the video or the song sound all the same will be damaged).
    I don't think that the flash will be such problems...
    And in the flush as I understand are the codecs?(for playback of music, video, pictures and other things???)
    If Yes. It seems to me that some codec or is not compatible with some or did he not correct (or is damaged (but then it would be an idea to do a video or music is not played b?))
    I hope... good Luck to You and let You mistake find and fix.
    Here, just in case throw a link where the sound is damaged.(I have already introduced the correspondence and throw this link but throw again):
    http://www.youtube.com/watch?v=2Retqf5Drsg
    Waiting for reply...
    With respect Vladislav. =)
    Привет! У вы но в бете 2 эта проблема еще на немного хуже. Звук еще немного сильней прерывистый. Не ужели это всё на этом и закончится.... Придётся всё жизнь сидеть на финальной версии
    Надеюсь Вы исправите эту проблему...
    И кстати, не Важно какая ссылка или видео или песня, везде звук не правильный(повреждённый)!!!
    Вот Вам к примеру(даже без ссылки) ставлю Я флеш бету 2 для IE и открываю песню через Windows Media Player и звук повреждённый(не важно где и как и через что открывается видео или песня звук все одно будет повреждённый).
    Я не думал что в флеше будут такие проблемы...
    А в флеше Я так понимаю находятся кодеки?(для воспроизведения музыки,видео,картинок и прочего???)
    Если да. То мне кажется что какой то кодек или не совместим с каким то или же он не правильный(или сам повреждён(но тогда бы по идее вообще видео или музыка не играли б?))
    Надеюсь... Удачи Вам и пусть Вы ошибку найдёте и исправите.
    Вот на всякий случай кидаю ссылку где звук повреждённый.(Я уже ввел переписку и кидал эту ссылку но кину еще раз):
    http://www.youtube.com/watch?v=2Retqf5Drsg
    Жду ответа...
    С уважением Владислав. =)

  • I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    >SystemPreferences>Network>DNS

  • Sidebar not flush with top border

    I am brand new to web design and DW.  I can't figure out how to bring my left sidebar flush with the header of the page.  I am following along in the DW-CS6 Class in a book.  Here is the code.
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
              background-color: #FFF;
              margin: 0;
              padding: 0;
              color: #000;
              font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
              font-size: 100%;
              line-height: 1.4;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any box model math. A nested block with side padding can also be used as an alternate method. */
    .sidebar1 aside {
              font-size: 90%;
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color: #42413C;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #6E6C64;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: none;
    /* ~~ This fixed width container surrounds all other blocks ~~ */
    .container {
              width: 950px;
              background-color: #FFFFFF;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
              border: 2px solid #060;
    #logo {
              position: absolute;
              width: 170px;
              height: 158px;
              z-index: 1;
              margin-top: 10px;
              margin-left: 30px;
    /* ~~ The header is not given a width. It will extend the full width of your layout. ~~ */
    header {
              background-color: #090;
              background-image: url(images/banner.jpg);
              background-repeat: no-repeat;
              height: 130px;
    /* ~~ These are the columns for the layout. ~~
    1) Padding is only placed on the top and/or bottom of the block elements. The elements within these blocks have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the block itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the block element and place a second block element within it with no width and the padding necessary for your design.
    2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating toward (for example: a right margin on a block set to float right). Many times, padding can be used instead. For blocks where this rule must be broken, you should add a "display:inline" declaration to the block element's rule to tame a bug where some versions of Internet Explorer double the margin.
    3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned class names instead of IDs. For example, two sidebar blocks could be stacked if necessary. These can very easily be changed to IDs if that's your preference, as long as you'll only be using them once per document.
    4) If you prefer your nav on the left instead of the right, simply float these columns the opposite direction (all left instead of all right) and they'll render in reverse order. There's no need to move the blocks around in the HTML source.
    .sidebar1 {
              float: left;
              width: 180px;
              background-color: #EADCAE;
              padding-bottom: 10px;
    .content {
              padding: 10px 0;
              width: 770px;
              float: right;
    .content h1 {
              font-size: 200%;
              margin-top: 10px;
              margin-bottom: 5px;
    /* ~~ This grouped selector gives the lists in the .content area space ~~ */
    .content ul, .content ol {
              padding: 0 15px 15px 40px; /* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the bottom for space between other elements on the lists and on the left to create the indention. These may be adjusted as you wish. */
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
    nav p a:link, nav p a:visited {
              text-decoration: none;
              color: #FFC;
              padding: 5px;
    nav p a:hover, nav p a:active {
              color: #FFF;
              background-color: #060;
    /* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
    ul.nav {
              list-style: none; /* this removes the list marker */
              border-top: 1px solid #666; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
              margin-bottom: 15px; /* this creates the space between the navigation on the content below */
    ul.nav li {
              border-top-width: 1px;
              border-right-width: 1px;
              border-bottom-width: 1px;
              border-left-width: 1px;
              border-top-style: solid;
              border-right-style: solid;
              border-bottom-style: solid;
              border-left-style: solid;
              border-top-color: #0C0;
              border-right-color: #060;
              border-bottom-color: #060;
              border-left-color: #0C0;
    ul.nav a, ul.nav a:visited { /* grouping these selectors makes sure that your links retain their button look even after being visited */
              padding: 5px 5px 5px 15px;
              display: block; /* this gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
              width: 160px;  /*this width makes the entire button clickable for IE6. If you don't need to support IE6, it can be removed. Calculate the proper width by subtracting the padding on this link from the width of your sidebar container. */
              text-decoration: none;
              background-color: #090;
              color: #FFC;
    ul.nav a:hover, ul.nav a:active, ul.nav a:focus { /* this changes the background and text color for both mouse and keyboard navigators */
              background-color: #060;
              color: #FFF;
    /* ~~ The footer ~~ */
    footer {
              padding: 10px 0;
              background-color: #090;
              position: relative;/* this gives IE6 hasLayout to properly clear */
              clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
              font-size: 90%;
              color: #FFC;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
    /*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know how to render the tags properly. */
    header, section, footer, aside, article, figure {
              display: block;
    .green {
              color: #090;
    -->
    </style><!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]--></head>
    <body>
    <div class="container">
      <div class="green" id="logo"><img src="images/butterfly-ovr.png" width="170" height="158" alt="GreenStart Logo"></div>
      <header></header>
      <nav>
        <p><a href="#">Home</a> | <a href="#">About Us</a> | <a href="#">Contact Us</a></p>
      </nav>
      <div class="sidebar1">
        <ul class="nav">
          <li><a href="#">Green News</a></li>
          <li><a href="#">Green Products</a></li>
          <li><a href="#">Green Events</a></li>
          <li><a href="#">Green Travel</a></li>
          <li><a href="#">Green Tips</a></li>
        </ul>
        <aside>
          <img name="Sidebar" src="" width="180" height="150" alt="">
          <p>Insert caption here</p>
        </aside>
      <!-- end .sidebar1 --></div>
      <article class="content">
        <h1>Insert main heading here</h1>
        <section>
         <h2>Insert subheading here</h2>
          <p>Insert content here</p>
        </section>
        <!-- end .content --></article>
      <footer>
        <p>Copyright 2012 Meridien GreenStart.  All rights reserved.</p>
        <address>
          Address Content
        </address>
      </footer>
      <!-- end .container --></div>
    </body>
    </html>
    Any help would be greatly appreciated.

    Add this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
    margin-bottom: -2px;
    Your nav p will then look like this:
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
              margin-bottom: -2px;

  • Is possible to flush data from RAM to disk automatically ?

    hello all,
    My question is regarding to flushing of Data from RAM to DISK .
    question is whether any flag set is available at Berekeley DB to flush the Data from RAM to DISK automatically( on any criteria whenever the pages in cache become full or some thing else).
    Context is based on CDS with memory pool not Transactional.
    thanks
    Rath.

    hello Debsubhra Roy,
    Thanks Debsubhra, thanks for your valuble comments.
    Actually My objective is to periodically flush the in memory Data to physical database at Filesystem to minimize the write cycle of Flash.
    based on your opinion, i have created a in memory Database in cache,and It is working fine with in cache memory, but problem is ,it is not flushing (exactly not creating) to a Physical file of "Database name" at the filesystem.
    1.i checked with with below api 's for flushing,but not worked.
    myEnvironment->memp_trickle(100,0);
                        myEnvironment->memp_sync(lsn);
                        mydbpDbHandle->sync(0);
    2.Secondly my assumption is that ,whenever the Cache memory will fill,then it will flush the Data in to physical Database "TestDb" named at the Db->open () api.
    it is also not working, it is showing exception of "cannot allocate space from Buffer cache " exception.
    For better understanding i am pasting my sample code, please see that and give me a solution to reach my objective.
    #include <iostream>
    #include <db_cxx.h>
    using namespace std;
    typedef unsigned char byte;
    struct DBKey
         int iSerNum;
    struct DBValue
         int RolNo;
         int Marks;
    DbLsn *lsn;
    int icount=0;
    class DBEnvironment{
    protected:
         DbEnv* myEnvironment;
         int percent;
         int *nwrotep;
    public:
         DBEnvironment(){}
         ~DBEnvironment(){}
         int ienvCreation()
              myEnvironment = new DbEnv(0);
              myEnvironment->set_flags(DB_DIRECT_DB,0);               
              myEnvironment->set_cachesize(0, 100*100, 1);     
              myEnvironment->set_shm_key(100);
              myEnvironment->open("/root/Desktop/TestD", DB_CREATE|DB_INIT_MPOOL|DB_THREAD|DB_INIT_CDB| DB_SYSTEM_MEM,0644);
    int ienvClose()
              myEnvironment->close(0);
              delete myEnvironment;
              myEnvironment = NULL;
    class Database :public DBEnvironment
    private:
         Db* mydbpDbHandle;
         DbMpoolFile* myDbMpooFile;
    public:
         Database(){}
         ~Database(){}
         int openDB()
              byte breturn=false;
              if(mydbpDbHandle == NULL )
                   mydbpDbHandle = new Db(myEnvironment, 0);
                   if(mydbpDbHandle->open(NULL,NULL,"TestDb", DB_BTREE, DB_CREATE|DB_THREAD,0644) ==0)
                        breturn = true;
         int closeDB()
              byte breturn = false;
              if(mydbpDbHandle != NULL)
                   mydbpDbHandle->close(DB_NOSYNC);//     0     
                   delete mydbpDbHandle;
                   mydbpDbHandle = NULL;
                   breturn = true;
    int insertDB(const byte* cpkey, void* vpvalue)
              Dbt dbtkey;
              Dbt dbtvalue;
              Dbc* dbcp = NULL;
              DBKey mytkey;
              DBValue mytdata;
              byte breturn = false;
              icount++;
              int k;
              try
                   if (mydbpDbHandle == NULL)
                        return(breturn);
                   memset(&dbtkey, 0, sizeof(dbtkey));
                   memset(&dbtvalue, 0, sizeof(dbtvalue));
                   dbtkey.set_data((void*)cpkey);
                   dbtkey.set_size(sizeof(mytkey));
                   dbtvalue.set_data(vpvalue);
                   dbtvalue.set_size(sizeof(mytdata));
                   mydbpDbHandle->cursor(NULL, &dbcp, DB_WRITECURSOR);
                   dbcp->put(&dbtkey, &dbtvalue,DB_KEYLAST);
                   cerr<<"\n "<<icount<<"inserted";
         //flushing the Data ,whenever the icount reaches multiples of 10     
                   k=(icount%10);
                   if(k==0)
                        //myEnvironment->memp_trickle(100,0);
                        myEnvironment->memp_sync(lsn);
                        mydbpDbHandle->sync(0);
                        cerr<<"\n sync called to flush.";
                   breturn = true;
              catch(DbException ex)
                   cerr<<ex.what();
              if(dbcp!=NULL)
                   dbcp->close();
                   dbcp = NULL;
         return(breturn);
         int iserachRecord(const byte* cpkey, void* vpvalue)
              Dbt dbtkey;
              Dbt dbtvalue;
              Dbc* dbcp = NULL;
              DBKey mytkey;
              byte breturn = false;
              try
                   if (mydbpDbHandle == NULL)
                        return(breturn);
                   memset(&dbtkey, 0, sizeof(dbtkey));
                   memset(&dbtvalue, 0, sizeof(dbtvalue));
                   dbtkey.set_data((void*)cpkey);
                   dbtkey.set_size(sizeof(mytkey));
                   mydbpDbHandle->cursor(NULL, &dbcp, DB_READ_COMMITTED);
                   if(dbcp->get(&dbtkey, &dbtvalue, DB_SET)!=DB_NOTFOUND)
                        cerr<<"\nRecord Found...";
                        memcpy(vpvalue,(byte *)dbtvalue.get_data(), dbtvalue.get_size());
                        breturn = true;
              catch(DbException ex)
                   cerr<<ex.what();
              if(dbcp!=NULL)
                   dbcp->close();
                   dbcp = NULL;
              return(breturn);
    int main()
         Database* Dbp=new Database();
         Dbp->ienvCreation();
         Dbp->openDB();
         DBKey Key,Key1,SearchKey;
         DBValue Value,Value1,RetrieveValue;
         for(int i=1;i<100;i++)
              Key.iSerNum=i;
              Value.RolNo=i+1;
              Value.Marks=i+2;
              Dbp->insertDB((byte*)&Key,(void*)&Value);
         cerr<<"\n------------Search Results-----------";
         SearchKey.iSerNum=10;
         Dbp->iserachRecord((byte*)&SearchKey,&RetrieveValue);
         cerr<<"\nkey is:- "<<SearchKey.iSerNum<<"\nvalue -RolNo:- "<<RetrieveValue.RolNo<<"\nMark:- "<<RetrieveValue.Marks;
    //     Dbp->closeDB();
    //     Dbp->ienvClose();
    }

  • BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'CA_BAB_MSSQL_e85860_10001_2085d987_ERP_DATABASE_ST_1'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application reque

    hello,
    i getting the following error message in event id while backing up my SQL db by third party backing tool
    BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'CA_BAB_MSSQL_e85860_10001_2085d987_ERP_DATABASE_ST_1'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).
      <Data>995(The I/O operation has been aborted because of either a thread exit or an application request.)
    please suggest the solution.

    Hi pulkit,
    According to your description, the actual error could be caused by but not limited to the following issues: Memory issues, Third Party issues, or SQL Server issues and so on. However, as shanky post, if you use an external or third party backup tool like
    NetBackup, BackupExec, or one of the many other tools available for backing up SQL Server databases without having to write your own backup scripts, and the error occurs. You need to check if there are some issues about your VDI or SQLVDI.DLL. Meanwhile,
    you also need to troubleshooting Memory Issue or the third tool issue. For more information about troubleshooting the error 995 when backing up database via the third party tool. You can review the following blog.
    https://support.software.dell.com/kb/SOL14674
    In addition, the error may include additional text from the operating system indicating that the disk is full. When performing a backup or restore operation with third-party backup software an additional message may occur indicating that the backup failed.
    Perform the following tasks as appropriate:
     1. Review the underlying system error messages and SQL Server error messages preceding this one to identify the cause of the failure.
     2. Ensure that the backup and restore medium has sufficient space.
     3. Correct any errors raised by third-party backup and restore software.
    There is also detail about backing up database via T-SQL statement /GUI, you can review the following article.
    http://technet.microsoft.com/en-us/library/ms187510.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Page doesn't flush to the bottom of the screen, despite the lack of content on the page

    On the home page of my website, the content doesn't fill the whole screen, therefore the footer isn't flushed to the bottom of the screen. Is there a way for the footer to automatically flush to the bottom for any resolution? Here is a link to my page so you can  see the example:
    www.ees-energy.com
    or a better example at
    www.ees-energy.com/downloads.html
    Thank you,
    Obaid

    Hello
    This is where it gets tricky for me!
    I have never used a sticky footer - I just don't like the idea and it has always seemed a bit over complicated to me.
    I did have a go at applying it to your page and got it to work without too much difficulty but, adding an effect like this to an established page is tricky because it's hard to see how different components interact with each other.
    The basic advice from the sticky footer site is to use this as fundamental structure to the page:
    <div id="wrap">
        <div id="main" class="clearfix">
        </div>
    </div>
    <div id="footer">
    </div>
    If you want to go this way then I would suggest starting from the beginning with that HTML and adding your content to it.   Notice that the footer is outside the wrapper and your content would need to go in the #main div.  They have page giving instructions on the site and a wedge of CSS that you can just cut and paste into your style sheet.
    You have chosen to use a liquid layout (which is a part of the problem with width that you have asked about in your other post).  I agree that a liquid layout is a neat idea but again, I don't like it so much because it's over complicated..  For instance, your page doesn't look so good in a wide monitor.
    One other way to get your footer further down the page would be to add some content to your sidebar.  How about a mission statement or a green quote of some kind or a pull quote from your text?
    Sorry I can't be of any further help with the sticky footer thing.
    Martin

  • Moving datafiles to a new location: change not flushed

    Hi all,
    I am using Oracle 10g release 10.2.0.1.0 patched 10.2.0.3.0
    I need to move all datafiles of the DB from a current location to a new one. Here are the steps I follow (I use SPFILE):
    1-Shutdown the DB
    2-Move all .DBF .LOG .CTL files to the new location
    3-startup mount
    4-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    5-alter system set control_file=<list of CTL files in new location>
    6-alter system set core_dump_dest=<new empty location for cdump>
    7-alter system set user_dump_dest=<new empty location for udump>
    8-alter system set background_dump_dest=<new empty location for bdump>
    9-alter database open
    From this point, if I use select * from v$logfile or select name from v$datafile or show parameter, I see that the DB is using all files in the new location. That's correct.
    My problem is: if now, I issue a shutdown followed by a startup, the DB will then show the old location for files as if my updates (steps 1 to 9) were not flushed/commited.
    Is there a kind of commit to have my changes taken into account ? How may I resolve my problem ?
    Thanks for any help.

    This does not work:
    1-Shutdown the DB
    2-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    4-alter system set control_file=<list of CTL files in new location>
    5-alter system set core_dump_dest=<new empty location for cdump>
    6-alter system set user_dump_dest=<new empty location for udump>
    7-alter system set background_dump_dest=<new empty location for bdump>
    (So changes are now in the old location)
    8-shutdown
    8-copy all .DBF .LOG .CTL files to the new location
    9-startup
    ... because when the alter database statement is issued, oracle does not find the file in 'new location'. So the correct sequence with the spfile is:
    1-Shutdown the DB
    2-copy all .DBF .LOG to the new location. Do not copy the .CTL files at this step.
    3-startup mount
    3-alter database rename file 'old location' to 'new location' ; ... for all .DBF and .LOG files
    (Oracle finds them in the new location)
    4-alter system set control_file=<list of CTL files in new location> scope=spfile
    5-alter system set core_dump_dest=<new empty location for cdump> scope=spfile
    6-alter system set user_dump_dest=<new empty location for udump> scope=spfile
    7-alter system set background_dump_dest=<new empty location for bdump> scope=spfile
    (CTL are still in old location but contain information about the new location)
    8-shutdown
    9-copy all .CTL files to the new location
    10-startup
    Many thanks to you all for your help.

  • Batch managment and back flush

    Dears
    Some of my raw material is batch managment activated now i want it to be as back flush
    so pleae tell me what will be the imapct of doing the same'
    How system automatically issue the raw material from the old date batches
    AF

    Hi Abu Fathima,
    Batch Determination step as follows:
    For that you have to do five important steps or features you have to know OK.
    1) Batch number assignment: We use this function to assign a batch with a number that uniquely identifies it OK.
    2) Batch Specf: To describe each batch uniquely using like Characteristics and characteristic The values. are allocated in the material master.
    3) Batch status management: To indicate weather a batch is usable or unusable: We can set (a) Manually in the batch master record or at goods receipt and (b) Automatically in the usage dissension in quality management.
    4) Batch Determination: We can use this function for various criteria to search for batches that are in stock (a) movement type: When posting goods issues (b) When combining suitable components for order types.
    5) Where used list: The batch where used list shows the path of the batch from its procurement to its delivery to the customer.
    6) Active Ingredient Management: This function is to administrate and process materials with active ingredients that are to be handled in batches OK.
    Condition types: Say for x material if we want to determine the batch at the movement type/ plant/order type.
    Access Sequence: It will checks weather the batch determination is done with movement type/ plant/ material &
    order type/ plant/ material.
    Strategy type: We will assign here condition type and Access sequence and as well we have to maintain Class type: 023
    sort sequence, batch split
    Batch Search Procedure: Here we will define the search procedure and using the condition type here OK.
    Batch Search Procedure Allocation and Check Activation: Here we will assign the search procedure to the movement types and for order types as well
    HERE THE BELOW FOLLOWING DATA WILL GIVE YOU RIGHT UNDERSTANDING OK:
    a) It will looks for the search procedures.
    b) It searches through the strategy types in the search procedures for a valid search strategy.
    c) Characteristics from the selection class of the search strategy looks for batches with suitable specifications.
    d) Then it will looks for weather the batches are available.
    e) It sorts the batches that are available according to the sort rule from the search strategy.
    f) Then the system selects a proposed quantity with proposed quantity from the search strategy.
    Go -
    > Logistic General -
    > SPRO -
    > Batch Management you can find every thing there it self.
    Any questions revert me back please.
    Regards,
    Madhu.G

  • Is there a way to flush my hard drive of all info but keep the OS?

    Hey Apple Forums, I'm new here so pardon any mistakes that I may make along the way.
    So I've got a very old iMac PowerPC G4 that I've been wanting to get rid of for a while. It's got 384 MB of RAM and a 700Mhz Processor, along with what I believe is a 50Gb Hard Drive (I haven't found a way to check for sure). It's running Mac OS X 10.2.8. So here's my question. Is there a way to totally flush the hard drive (or reformat it) to get rid of any sensitive data, but then be able to install or keep the OS files and get it running again? I'm not sure if it even came with an installation disk, but by now it's long gone. Feel free to ask me any questions if you need to know more or give me any tips or advise.
    Thanks,
    Lopesian

    All Macs are supposed to come with installation discs from Apple, until July 20, 2011.  Sadly finding the original discs for that Mac is going to prove a bit of a chore.  You can do much of what you want by simply creating a new user account through Apple menu -> System Preferences -> Accounts, and deleting the old account.  I do highly recommend backing up your old data elsewhere.   See my backup FAQ*:
    http://www.macmaps.com/backup.html

  • 10G NEW FEATURE-HOW TO FLUSH THE BUFFER CACHE

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-25
    10G NEW FEATURE-HOW TO FLUSH THE BUFFER CACHE
    ===============================================
    PURPOSE
    이 자료는 Oracle 10g new feature 로 manual 하게
    buffer cache 를 flush 할 수 있는 기능에 대하여 알아보도록 한다.
    Explanation
    Oracle 10g 에서 new feature 로 소개된 내용으로 SGA 내 buffer cache 의
    모든 data 를 command 수행으로 clear 할 수 있다.
    이 작업을 위해서는 "alter system" privileges 가 있어야 한다.
    Buffer cache flush 를 위한 command 는 다음과 같다.
    주의) 이 작업은 database performance 에 영향을 줄 수 있으므로 주의하여 사용하여야 한다.
    SQL > alter system flush buffer_cache;
    Example
    x$bh 를 query 하여 buffer cache 내 존재하는 정보를 확인한다.
    x$bh view 는 buffer cache headers 정보를 확인할 수 있는 view 이다.
    우선 test 로 table 을 생성하고 insert 를 수행하고
    x$bh 에서 barfil column(Relative file number of block) 과 file# 를 조회한다.
    1) Test table 생성
    SQL> Create table Test_buffer (a number)
    2 tablespace USERS;
    Table created.
    2) Test table 에 insert
    SQL> begin
    2 for i in 1..1000
    3 loop
    4 insert into test_buffer values (i);
    5 end loop;
    6 commit;
    7 end;
    8 /
    PL/SQL procedure successfully completed.
    3) Object_id 확인
    SQL> select OBJECT_id from dba_objects
    2 where object_name='TEST_BUFFER';
    OBJECT_ID
    42817
    4) x$bh 에서 buffer cache 내에 올라와 있는 DBARFIL(file number of block) 를 조회한다.
    SQL> select ts#,file#,dbarfil,dbablk,class,state,mode_held,obj
    2 from x$bh where obj= 42817;
    TS# FILE# DBARFIL DBABLK CLASS STATE MODE_HELD J
    9 23 23 1297 8 1 0 7
    9 23 23 1298 9 1 0 7
    9 23 23 1299 4 1 0 7
    9 23 23 1300 1 1 0 7
    9 23 23 1301 1 1 0 7
    9 23 23 1302 1 1 0 7
    9 23 23 1303 1 1 0 7
    9 23 23 1304 1 1 0 7
    8 rows selected.
    5) 다음과 같이 buffer cache 를 flush 하고 위 query 를 재수행한다.
    SQL > alter system flush buffer_cache ;
    SQL> select ts#,file#,dbarfil,dbablk,class,state,mode_held,obj
    2 from x$bh where obj= 42817;
    6) x$bh 에서 state column 이 0 인지 확인한다.
    0 은 free buffer 를 의미한다. flush 이후에 state 가 0 인지 확인함으로써
    flushing 이 command 를 통해 manual 하게 수행되었음을 확인할 수 있다.
    Reference Documents
    <NOTE. 251326.1>

    I am also having the same issue. Can this be addressed or does BEA provide 'almost'
    working code for the bargin price of $80k/cpu?
    "Prashanth " <[email protected]> wrote:
    >
    Hi ALL,
    I am using wl:cache tag for caching purpose. My reqmnt is such that I
    have to
    flush the cache based on user activity.
    I have tried all the combinations, but could not achieve the desired
    result.
    Can somebody guide me on how can we flush the cache??
    TIA, Prashanth Bhat.

Maybe you are looking for