POL-3011/3012 when database is on SD Card.

If I have the database on an SD Card and the Pocket PC 2003/Windows Mobile 5 PDA switches off, POL-3011 or POL-3012 – "a device read (or write) error was detected" exception is thrown when the PDA switches back on. I believe this is because the SD card is powered down when the PDA switches off. The application may still be processing data when switched off or the SD card is not powered up quick enough and Oracle Lite cannot find the database. In either case, it is fatal.
When the device is powered down and up, is the data read/write something that should be handled by Oracle Lite or does the application need to manage this in someway?
Thanks, Anders.

Anders is from my organisation, and we have not got a 'fix' for this, but are going to investigate further with the third party we have developing the application software over the next few weeks.
The problem happens when the pda is powered down whilst a database access is running (eg: in the middle of a query or insert/update statement) and is due to the power up delay on the SD card causing the database not to be available when processing continues on power up
What we want to try and do is detect the error in the java app, and keep retrying the connect until the database is back. The problem is that we would also need to roll back the transaction in progress at the error point, and reapply it, which makes it much more complicated.
The workaround we have been using which stops the problem is to install the database into main memory on the PDA alongside the application itself, and then we have no problem. Disadvantages of this are the limitation on memory size for larger databases and the lack of security over the database (in terms of a battery rundown would lose the database files, which would not be the case for the SD card)

Similar Messages

  • POL-4104 cannot mount database with a duplicate volume

    Using a Oracle Lite database when performing a seond sync... I get this error
    POL-4104 cannot mount database with a duplicate volume
    Also changed the database id values in ODBC.ini still enountering the same problem
    Please help!!! urgent!!!
    Thanks

    I have used DBINFO and also made sure that my id values are different in ODBC.ini but still encountering the same problem,
    Second sync is nothing but in our project we use the oracle9ilite for synchroniztion of multiple databases at different locations so we do a sync process at different locs.
    Now at my local system iam doing this sync for multiple databases asuming my box is at different locations....Then, iam encountering this problem of POL 4104. I made sure in my C:/WINDOWS/ODBC.ini that the database ids are different but no use..Pls help

  • PIT recovery until time when database was in backup mode

    Hello,
    Is it possible to recover database until some point/time which is within "time window" when database tablespaces were still in online backup mode?
    I was basicaly replicatying database from source to target DB by putting DB to online backup mode, then copy all datafiles, after copy of datafiles was finished I started applying redologs generated on source DB afterwards. After I applied tens of redologs with "recover database until cancel using backup controlfile" and then typed "CANCEL" after 10-20 redologs applied I still got an error that opening DB would get an error due to inconsistent datafile. When I ended backup mode on source DB and applied few of redologs after ending backup mode on source DB datafiles were consistent.....
    Thx a lot for answer in advance.

    Hello Hemant K Chitale ,
    thats clear. I probably did not express it clearly, so I will describe it once again:
    Teoreticall scenario 1:
    I put 'source" database to backup mode and start copy datafiles to "target" db. When copy of all datafiles is succesfully finished (lets say it 5:00AM), I don't issue "end backup" on source DB but I keep tablespaces in backup mode until 7:00AM. On target DB I will start recovery and apply redologs from source system.
    Question 1:Is it possible to recover database until time 6:00AM? At this time all datafiles were already succesfully copied, BUT source db was still in backup mode. Or will I be able to get target DB to consistent state only after 7:00AM (end backup issuied on source DB) and not in window 5:00AM-7:00AM?
    Teoreticall scenario 2 (small correction comparing to scenario1):
    I will put source DB to begin backup mode at 5:00AM on 20.february and let it in this state until 7:00AM on 20.february. On target DB I will restore backup from source DB performed day before (or few days before does not matter) that means on 19.february and start to apply redologs generated after this backup.
    Question 2: Will I be able to recover DB until 6:00AM on 20.february and open database after recovery until this time? Or wont I be able to recover and open DB witin window 20.february 5:00AM-7:00AM (source db in backup mode)
    Bear in mind this is just teoreticly (don't ask me why would you do it and why you don't do it this way etc...). I just want to understand how it really works ;)
    Thx a lot!

  • RAISING AN EVENT WHEN DATABASE TABLE UPDATES

    hi all,
             i want to raise an event when database table updates.For eg : if a price of a material has been changed then i have to raise an event and run the abap program in back ground.i know transaction SM62 to create event, i dont know about transaction SM64. please give me the procedure how to solve this problem. i dont know work flow. please give me a sample code how to raise event.
    thanka and regards
    suresh

    Hi Suresh
    It is important to understand that the SAP architecture abstracts the database from the application.
    I think that you should look for ways that the application triggers an event when an update has taken place, rather than the DB.
    Two ways of doing this that spring to mind are change pointers (for the ALE interface, see menu SALE) and Business Transaction Events (various things including CRM integration, see menu FIBF).
    The latter works very well for sending prices to CRM when they change. I am more familiar with this than ALE so I will discuss it.
    If you go to menu FIBF and then follow menu path Environment -> Info System (P/S), and then run the report for event 00503301, you can find documentation and a sample function module that you can copy.
    Once you register your new function module in the event tables then it will be called when prices are changed.
    Cheers
    Dom

  • Db Export when database is in read only mode

    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.

    rajaryan wrote:
    Hi All,
    I have to perform a full database export when database is in read only mode. My db version is 9i.
    Kindly let me know whether that export file is valid enough to do full import in new database and make database oprational.
    Thanks.Check the log file, if you haven't got any error, then it's valid
    BTW - Why you've taken full export of the database? Why not using RMAN?
    See the following video tutorial:
    http://kamranagayev.wordpress.com/2010/03/29/rman-video-tutorial-series-performing-disaster-recovery-with-rman/

  • What to do when database hang

    Hi all,
    May I know what to do when database hangs after shutdown immediate command perform? Can I use kill process command to stop Oracle process?

    Hello,
    see documentation for details of immediate-clause:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm#sthref589
    You can do an shutdown abort instead, but then sql is terminated. You can read details here: http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/start.htm#sthref595
    Greets,
    Hannibal

  • When-database-record not firing

    I have a single record block in a form and the when-database-record trigger is not firing after I update and leave the first item in the record.
    This only happens when I create-new-record, not when I update an existing record. I have checked the record status after I update the first item and the record status is new.
    I am updating non-display items in the background, then executing a query on the block on when-new-form-instance. I programatically set the block status to QUERY status so that if the user attempts to exit the form without making any changes the form does not prompt the user to save changes.
    I checked system.mode parameter and it is NORMAL. Should it be ENTER-QUERY? Can I update this programatically, I know the api for this is not public but I have seen it before.
    ta, Michelle

    The status should notchange if you modify a non database item

  • Can we drop and then recreate the indexes when database is open.

    Can we drop and then recreate the indexes when database is open.

    I am trying to drop the index not happening..any suggestion..
    I tried :
    drop index index_name >>> index does not exist, though it exist on particular table
    drop index table_name.index_name
    drop index index_name on table_name; >> SQL command not properly ended
    Could you suggest me how would i drop it

  • Error message when Database details are not configured properly

    Hi,
    I am using JDeveloper 11.1.1.1.4 and ADF-BC in my project.
    I use Weblogic Data Source connection to connect to Database.
    I have a requirement that when data base details are not configured properly in Weblogic Data Source or when Database is down,I need to display an error message either when I access application task flows or in login page itself when application starts.
    Can I achieve this???Please advice.
    Regards,
    Praveen

    Praveen,
    Check out Steve's example
    https://blogs.oracle.com/smuenchadf/resource/examples#129
    -Arun

  • Can SPFILE be copied when database is shutdown?

    can I issue the follow command when database is shutdown:
    CREATE PFILE FROM SPFILE;
    ?

    Check op's question again (not only the subject line).
    CREATE PFILE FROM SPFILE;
    apex1: > export ORACLE_SID=spfile
    spfile:  > sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Nov 5 09:01:21 2007
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL> create pfile from spfile;
    create pfile from spfile
    ERROR at line 1:
    ORA-27037: unable to obtain file status
    <your os here> Error: 2: No such file or directory
    Additional information: 3Obviously, before nomount, Oracle don't know which spfile.
    Now with your alternative:
    SQL> create pfile from spfile='?/dbs/spfiletrestest.ora';
    File created.
    SQL> !find /u00 -cmin -5
    .../db_1/dbs/initspfile.oraSo - no you can not (per op's question, when instance/database is shutdown), but as you pointed out - there's another way in which you can.

  • Callback function may be NULL only when database handles are read-only

    Hi,
    I am getting some errors when trying to run my java code that will try to open a few cursors and join them to fetch the data.
    ath .:/usr/src/db-4.7.25.NC/java/src:/usr/local/BerkeleyDB.4.7/lib/db.jar bdbtest
    MyDbs: Callback function may be NULL only when database handles are read-only
    Error on inventory secondary cursor:
    java.lang.IllegalArgumentException: Invalid argument: Callback function may be NULL only when database handles are read-only
    What does that error mean? How can I resolve it? I am following the sample program and I can't find anything related.
    Here is my code.
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Database;
    import com.sleepycat.db.SecondaryDatabase;
    import com.sleepycat.db.DatabaseConfig;
    import com.sleepycat.db.DatabaseType;
    import java.io.FileNotFoundException;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    import com.sleepycat.db.SecondaryConfig;
    import com.sleepycat.bind.EntryBinding;
    import com.sleepycat.bind.serial.SerialBinding;
    import com.sleepycat.bind.tuple.TupleBinding;
    import com.sleepycat.db.Cursor;
    import com.sleepycat.db.DatabaseEntry;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.LockMode;
    import com.sleepycat.db.OperationStatus;
    import com.sleepycat.db.SecondaryCursor;
    public class bdbtest {
    public static void main(String args[]) {
    SecondaryDatabase myDatabase = null;
         Database primDB = null;
         Cursor cursor = null;
    try {
    // Open the database. Create it if it does not already exist.
    DatabaseConfig dbConfig = new DatabaseConfig();
         dbConfig.setErrorStream(System.err);
    dbConfig.setErrorPrefix("MyDbs");
         dbConfig.setType(DatabaseType.BTREE);
    dbConfig.setAllowCreate(true);
         SecondaryConfig mySecConfig = new SecondaryConfig();
         mySecConfig.setErrorStream(System.err);
    mySecConfig.setErrorPrefix("MyDbs");
         mySecConfig.setType(DatabaseType.BTREE);
    mySecConfig.setAllowCreate(true);
         primDB = new Database("/tmp/bdb_ca_db.db",
    "bdb_ca_db",
    dbConfig);
    dbConfig.setAllowCreate(true);
    myDatabase = new SecondaryDatabase("/tmp/bdb_ca_sdb.db",
    "ca_sdb_res_alias",
    primDB,
    mySecConfig);
         String res ="in-1";
         SecondaryCursor secCursor = null;
         DatabaseEntry searchKey =
    new DatabaseEntry(res.getBytes("UTF-8"));
         DatabaseEntry foundKey = new DatabaseEntry();
    DatabaseEntry foundData = new DatabaseEntry();
         secCursor =
    myDatabase.openSecondaryCursor(null, config);
    // Search for the secondary database entry.
    OperationStatus retVal =
    secCursor.getSearchKey(searchKey, foundKey,
    foundData, LockMode.DEFAULT);
         if (retVal == OperationStatus.SUCCESS){
              System.out.println("succ");
         }else {
              System.out.println("fail");
    while (retVal == OperationStatus.SUCCESS) {
    String keyString = new String(foundKey.getData(), "UTF-8");
    String dataString = new String(foundData.getData(), "UTF-8");
    System.out.println("Key | Data : " + keyString + " | " +
    dataString + "");
    secCursor.getNextDup(searchKey, foundKey,foundData, LockMode.DEFAULT);
         } catch (Exception e) {
    System.err.println("Error on inventory secondary cursor:");
    System.err.println(e.toString());
    e.printStackTrace();
         finally {
    // Make sure to close the cursor
              try {
              cursor.close();
              }catch (com.sleepycat.db.DatabaseException e) {
    System.out.println("All done.");
    }

    Hi,
    The error is because either the primary database or the secondary database is configured as read only and the callback to create the secondary keys is null. A quick glance of the code, it appears as if you did not set up the secondary database correctly. In the Getting Started Guide for JAVA API chap 10, we have detailed information on what needs to be done as well as a code example. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/JAVA/index.html and look for Chap 10.
    regards,
    Mike Brey, Oracle Berkeley DB

  • Resize datafile when database is mount

    Hello,
    I need resize datafile when database is mount not open(I recover database).
    Is it posible?

    Try making the tablespace offline, opening the database and resizing the datafile. After you resize the datafile, recover the tablespace or just the datafile.
    In Oracle documentation: Backup & Recovery Guide, you can find more details of these options:
    =>RECOVER TABLESPACE Statement
    RECOVER TABLESPACE performs media recovery on all datafiles in the tablespaces listed. For example, enter the following at the SQL prompt to recover tablespace TBS_1:
    RECOVER TABLESPACE tbs_1
    The tablespaces must be offline to perform the recovery. Oracle indicates an error if none of the files require recovery.
    => RECOVER DATAFILE Statement
    RECOVER DATAFILE lists the datafiles to be recovered. For example, enter the following at the SQL prompt to recover datafile /oracle/dbs/tbs_22.f:
    RECOVER DATAFILE '/oracle/dbs/tbs_22.f'
    The database can be open or closed, provided that you can acquire the media recovery locks. If the database is open in any instance, then datafile recovery can only recover offline files.
    Hope it helps.
    Eliane

  • When-database-record

    what is the difference between
    when-database-record and when-create-record triggers?

    When-create-record
    Fires whenever a new record is created using the create_record method, this method is used to do some initialization for new record to initialize form fields as new record is created.
    When-database-record
    Fires whenever a record is inserted or updated. Whenever we modify a field in form, the this trigger is fired. Use a When-Database-Record trigger to perform an action every time a record is first marked as an insert or an update.
    If we have created both triggers at block level in a form, then when we open the form, then When-create-record trigger is fired and when we modify a single field in form then When-database-record is fired.
    Hope it helps.

  • Uncompiled Reports when Database Changed

    Hi..
    I'm using Reports 3.0.5.8.0. and Oracle8i (8.1.7.4.1.)
    Why my reports uncompiled when Database changed??
    Some idea???
    Only Reports fail, but not the Forms File...
    Why?
    Thank u very much....
    Regards
    Hector Ulloa Ligarius

    Hi,
    If you are doing some changes like add/remove of columns that has been used by reports query then changes in database can make reports to function in wrong way.
    Cares : Maximum use of %type.
    Adinath Kamode

  • How can I set up lightroom 5 in my macbook, so that it becomes my default editing program, so that it starts up when I insert my sd card into the mac

    How can I set up lightroom 5, so that it becomes my main / default editing program & that when I insert my sd card into the mac lightroom starts instead of iPhoto .

    Thanks.  Im new to apple, which preference?
    Sent from my iPhone

Maybe you are looking for