Internal Website Search
1-50 of 153 resultsOnline Backup supports also online backup , for backing up an ObjectDB database while it is in use. This is useful ... . Starting Online Backup The online backup can be started by executing a special query on an EntityManager ... ; em.createQuery("objectdb backup ").getSingleResult(); The backup query string is always exactly | |
Database Transaction Replayer can apply recorded database operations on a matching database backup (if available). This ability ... the recorded operations. It enables reproducing problems during debugging by repeating a failure. Backup ... directory contains two types of files: Backup files - with names of the form .odb Recording files | |
JPA Query API variant is valid because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API ... shown above, is referred to in JPA as dynamic query construction because the query string can be built dynamically at runtime. The JPA Criteria API provides an alternative way for building dynamic | |
Failed to generate dynamic type objectdb.java.util.ArrayList.objectdb.o.InternalException: com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.ArrayList com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util ... .objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.HashSet com.objectdb.o | |
Bad Backups – Null Error when issuing simple query on backup via ObjectDB Explorer I have attempted to access two different backups that were taken by ObjectDB’s internal backup API ... the relevant content, i.e. the History instances. Could you please try: opening the backup files using ... specific backups ? Are other similar backups OK? Does it happen only in the Explorer or | |
Failed to enhance dynamic type to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext I am curious why he does even try to generate dynamic type?? Can he simply ignore such things and enhance ... to overcome this by generating a dynamic synthetic type. Usually it succeed but in some cases it fails | |
How to create dynamic Entity class. Hello, I was creating dynamic object to store data inside database. I am using javassist API to create dynamic class. Here i have written some code which is create dynamic class as well as object. Class and object successfully created. And insert data also now problem | |
com.objectdb.o.UserException: Failed to generate dynamic type.UserException: Failed to generate dynamic type Entities.AbstractLong at com.objectdb.o.MSG.d(MSG.java:75 ... more [ObjectDB 2.6.1_05] Failed to generate dynamic type Entities.AbstractLong (error 361) The class | |
Failed to generate dynamic type Hi I was trying to enhance some of my classes and I got an error : Failed to generate dynamic type com.package.RootContainer (error 361) It seems that all dependent classes are on the classpath , so what is missing or how to recognize what is wrong with that class ?? thanks in | |
JPA Queries;(e.g. "SELECT c FROM Country" ). Criteria Query API Building dynamic queries with a structure ... Query API , as a cleaner alternative that enables building a dynamic query by using instances ... a TypedQuery or a Query instance. Building a dynamic query using the criteria API is managed by the  | |
JPA Criteria API Queries for building dynamic queries whose exact structure is only known at runtime. JPA Criteria API vs ... queries (e.g. as named queries ) may be preferred. For dynamic queries that are built at runtime - the criteria API may be preferred. For example, building a dynamic query based on fields that a user | |
user defined backup target Dear objectdb Team 1. I could not find a way, to declare the name of the backup -file ... the database - file: Query backupQuery = em.createQuery("objectdb backup "); backupQuery.setParameter("target", new java.io.File("c:\\ backup ")); backupQuery.getSingleResult(); The code above, for instance | |
Incremental online backup Hello, Are there plans for ObjectDB to handle incremental online backups , where a backup does not create a whole new copy of the DB, but "updates" an existing backup ? This behavior would make backups much faster as only a portion of the data would need to be copied. Such a feature would also allow | |
Failed to read DB file while online backup is running and also write) failed with an exception during an online backup of the same DB file was running and was close ... related anymore to running of online backups . Maybe some new bug was added to the code ... (JdoQuery.java:748) jakab Gergely Jakab Build 2.6.2_05 changed only online backup code | |
Catching exceptions from online backup Hello, I have a request for improvement in the area of backuping . For catching the exceptions during online backups , I am using the solution suggested in the post 2786 Well not exactly ... we would like } ) ; // Wait until the backup is completed. try { backupThread | |
Online backup problem Hi, We are trying to create a servlet that performs database online backup . Unfortunately, even though no exception is thrown, backup files aren't created. When I turn on DEBUG logging in ODB, I ... ) and it doesn't seem to be related to the online backup . Please post the code that you are using to run | |
Online Backup in client-server mode Hello, we have issue with online- backup when using client-server mode. It seems, that it is working the following way. When we run the backup , server is creating tmp file for whole database ... . Can it be improved? In my opinion the server proces should handle whole backup proces and do it as | |
Backup file always bigger than live db file I use em.createQuery("objectdb backup ", Thread.class); to backup hourly. And the backup file is always getting bigger even if the db file is not getting bigger. Why is that? Trianglehead Json Error Does the database file itself remain the same size? Is the backup size different | |
Online backup with JDO Hi, I would like to try the Online Backup tool as I am making backups up to now with the not ... question is about starting the online backup . The manual suggests starting it via the EntityManager with the code em.createQuery("objectdb backup ").getSingleResult(); But how do I start it if I am using | |
Backup I have tried using online back to test the backup feature. It's been hour and I still don't see my backup file. I have 1 million record in 1 table as a test. https://www.objectdb.com/java/jpa/tool/ backup How long does it usually take for a backup ? And are there no temp | |
How to restore the offline backup dear sir/mam, kindly assist how to restore the backup ayugoyal13 Ayush Goyal An ObjectDB backup is a valid database itself. Just replace the database file with the backup file. support ... how can i replace the backup file with the previously used file which is in use ? kindly help | |
How to do an Offline Database Backup? thread titled, "Sample JDO Architecture for Follow Up Questions". I desire offline backups .  ... connections until the backup is complete. How can I guarantee that a database is no longer being used ... datastore file backup which guarantees the file will not be corrupted? CBE CBE You should close | |
exception during online backup hi from time to time i get exception during online backup in server/client config ... backup "); backupQuery.execute(); but this is not an urgent functionality for us br Tomasz Tomasz Wozniak Thank you for your report. I will try to reproduce it by a test that uses online backup | |
Catching exceptions from client-server mode online backup We're using the following to trigger an online backup and we're trying to implement server-side online backup (as discussed in https://www.objectdb.com/forum/2737). EntityManager em = database.createEntityManager(); TypedQuery backupQuery = em.createQuery("objectdb backup ", Thread.class | |
Backup from explorer Is it possible to make a backup from the explorer? jastorga Juan If the database is not in use you can use the File Open dialog and then copy and paste on the database file (right click a database file to see the copy command). But a safe online backup (while the database is in use) is not supported. support Support | |
JPA Named Queries A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL ... rather than embedding literals dynamically into the query string and results in more efficient queries. @NamedQuery | |
Online backup in embedded mode fails Hi, As in topic. "online backup " fails when executed in embedded mode. Everything works fine with server mode. java.lang.NullPointerException at com.objectdb.o.BAC. (BAC.java:63) at com.objectdb.o.MST.U4(MST.java:1764) at com.objectdb.o.MST.U3(MST.java:1745) at com.objectdb.o.WRA.U3(WRA.java:498 | |
Database Management Settings for backup purposes and for debugging (by providing the ability to reproduce problems by replay ... "write" ) specifies which operations should be recorded. For backup purposes only "write" operations | |
ObjectDB Object Database Features Language - Java/SQL like syntax. Query Definition and API Dynamic query definition, including using JPA | |
Chapter 4 - JPA Queries (JPQL / Criteria), based on JPQL. The first section describes the API that JPA provides for using dynamic and static | |
Schema Update - will create new, separate persistable classes with no instances. Therefore, you should backup | |
Database Doctor and often. It is also recommended to validate production database files (or their backups ) often by | |
Step 1: Create a Web Project We start by creating a new Eclipse Dynamic Web Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e ... to Tomcat 6 (which has to be downloaded separately) . Click the Finish button to create the dynamic | |
Dynamic Metadata (JDO 3.0) JDO 3 introduces the ability to specify and query metadata of persistable types dynamically . ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e ... at build time. Dynamic metadata enables specifying metadata at runtime, for example, for dynamically | |
Online Backup degrades responsiveness. days: try { CoreService.getLogger(this).info("DB Backup Start..."); TypedQuery backupQuery =   ... .createQuery("objectdb backup ", Thread.class); Thread backupThread = backupQuery.getSingleResult(); backupThread.join(); CoreService.getLogger(this).info("DBService Backup DONE!"); } finally { em.close | |
Step 1: Create a Java EE 6 Web Project We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... dynamic web project. To add ObjectDB/JPA support to the project, drag the objectdb.jar file from | |
user defined backup file We need a way to do a (online) backup to a user defined backup -destination. Maybe in that way: backupQuery.setParameter("targetfile", new java.io.File("/User/ Backup /test.objectdb")); which should create a backupfile with the name ' test.objectdb " in the directory ' /User/ Backup / ' or backupQuery | |
Vacuum - Reclaiming Unused Space In Odb? The online backup feature appears to copy the dead space as well so isn't performing ... We are trying to optimize the database size due to the time it takes to perform an online backup for large databases. Our organization requires daily backups on our data and we have a limited | |
Online Backup An ObjectDB database file can be backed up simply by copying the file (with the associated recovery file if exists). This should only be done when the database is closed. Online backup will enable backup also when the database is open and in use. support Support Online backup is now implemented in ObjectDB 2.1. support Support | |
Step 1: Create a Maven Web Project We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Maven Maven Project and click  ... stop Guestbook Now you should have a Maven based Eclipse dynamic web project (WTP) with Spring MVC | |
Consequence of lost ODB$ Files? Hi, We use the Object DB backup utility for most of our backups , however we also do file system backups . Recently our file system backups have been failing because the .odb$ (write files) have been removed, by the DB Server, during the backup . My question is that if we have a good | |
Database is locked when in use a database when it is in active use is unsafe. With ObjectDB 2.x you should use online backup for this purpose. support Support Thanks for the reply. I went through the online backup web page ... the follwoing code query.setParameter("target", new java.io.File("c:\\ backup ")); And i | |
High availability and other pratical questions; Does DB backup backs all objects including indexes? If yes, is there a way to backup data only? And. is there a way to backup specific entities only? What is the overhead of online backup ... this feature is released). Currently ObjectDB online backup backs up the entire database including | |
Some technical questions transaction either commits or rolls back? Since ObjectDB implements online backups , does it implement something like MVCC, so it can see the data at the time the backup was started (to have consistent backup data)? Thanks Andrej andrej Andrej Gabara E.g. in one transaction I change | |
ClassCastException on closing PersistenceManager (although the Doctor was saying the Db file has no errors) with an older backup and the code was running ... , so restarting your application with the same database (instead of a backup database) should be safe. support ... again to a working backup of the DB. It is quite alarming. jakab Gergely Jakab I just read ur answer | |
Need disk usage and delete some old files, path, false); support Support what about backup ? can we make backup by only copying objectdb file? if we make backup by objectdb file , will it make problem for future release of objectdb? kadirbasol Kadir BASOL You can read about backup on this manual page | |
javax.persistence.EntityManager (Class rootType) Return a mutable EntityGraph that can be used to dynamically create | |
EntityManager.createEntityGraph(rootType) - JPA Method JPA Method in javax.persistence.EntityManager EntityGraph createEntityGraph ( Class rootType ) Return a mutable EntityGraph that can be used to dynamically create an EntityGraph. Parameters: rootType - class of entity graph Return: entity graph Since: JPA 2.1 | |
javax.jdo.PersistenceManagerFactory getPersistenceManagerProxy () Get a thread-safe instance of a proxy that dynamically binds on each method ... TransactionType JTA, the proxy can be used in a server to dynamically bind to an instance from this factory | |
PersistenceManagerFactory.getPersistenceManagerProxy() - JDO Method JDO Method in javax.jdo.PersistenceManagerFactory PersistenceManager getPersistenceManagerProxy () Get a thread-safe instance of a proxy that dynamically binds on each method call to an instance ... , the proxy can be used in a server to dynamically bind to an instance from this factory associated |