Semantics of running with DB_INIT_TXN but not DB_INIT_LOCK
What are the semantics of enabling the logging and transactional subsystems, but not the locking subsystem? Ideally this would give the write ahead logging properties of running with transactions, but no isolation or atomicity guarantees. Is this, in fact, what will happen, or will this configuration lead to something else?
Thanks!
I'm not totally clear here though, does BDB provide isolation and atomicity guarantees even if I don't enable the locking subsystem? No exaclty. BDB provides those guarantees to ensure that every single method in the API works well. But it doesn't take care of concurrency control for your own application. I guess it might help you understand better if you refer to http://www.oracle.com/technology/documentation/berkeley-db/db/ref/lock/intro.html.
That seems odd as it would have to be using some internal locking system for that. What I'd like is for BDB to provide me write ahead logging but no concurrency control and I'll provide my own concurrency control above BDB so I can ensure that only one thread will be reading/writing a key at the same time. Does DB_INIT_TXN, DB_INIT_LOG give me that?Yes, you could use DB_INIT_TXN, DB_INIT_LOG and write your own concurrency control.
Regards,
Emily Fu, Oracle Berkeley DB
Similar Messages
-
I want a user to use only import, it run with export but not import
Hi,
i create a user for use only for import and for export.
batch_export with exp_full_database role <- It run
batch_import with imp_full_database role <- don't run
P:\>sqlplus batch_export/batch
SQL*Plus: Release 10.1.0.2.0 - Production on Lun. Ao¹t 21 17:21:58 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ERROR:
ORA-00604: une erreur s'est produite au niveau SQL rÚcursif 1
ORA-20000: Connexion refusee
ORA-06512: Ó ligne 41
Entrez le nom utilisateur :
P:\>sqlplus batch_import/batch@rfsage
SQL*Plus: Release 10.1.0.2.0 - Production on Lun. Ao¹t 21 17:03:36 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
ConnectÚ Ó :
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
the trigger as run
create or replace trigger batch_export.check_connexion after logon on database
declare
V_MODULE SYS.V_$SESSION.module%TYPE;
V_TERMINAL SYS.V_$SESSION.terminal%TYPE;
V_SID SYS.V_$SESSION.SID%TYPE;
V_SERIAL SYS.V_$SESSION.SERIAL#%TYPE;
V_COMMAND varchar2(100);
V_CURRENT_USER varchar2(20);
V_CURRENT_SID SYS.V_$SESSION.SID%TYPE;
cursor connexion is
select substr(module,1,7) module, substr(terminal,1,12) terminal, sid, serial# from v$session T1 where schemaname='BATCH_EXPORT';
cursor ID_CUR is
select user from dual;
cursor SID_CUR is
select SYS_CONTEXT('USERENV','SID') sessionid from dual;
--select SYS_CONTEXT('USERENV','CURRENT_USERID') current_userid from dual;
Begin
open SID_CUR;
loop
fetch SID_CUR into V_CURRENT_SID ;
EXIT WHEN SID_CUR%NOTFOUND;
dbms_output.put_line('V_CURRENT_SID:'||V_CURRENT_SID);
end loop;
close SID_CUR;
open ID_CUR;
loop
fetch ID_CUR into V_CURRENT_USER ;
EXIT WHEN ID_CUR%NOTFOUND;
if V_CURRENT_USER='BATCH_EXPORT' then
open connexion;
loop
fetch connexion into V_MODULE,V_TERMINAL,V_SID,V_SERIAL ;
EXIT WHEN connexion%NOTFOUND;
if V_MODULE<>'EXP.EXE' then
dbms_output.put_line('V_SID:'||V_SID);
dbms_output.put_line('V_CURRENT_USER:'||V_CURRENT_USER);
if V_CURRENT_SID=V_SID then
dbms_output.put_line('MODULE:'||V_MODULE);
RAISE_APPLICATION_ERROR (-20000,'Connexion refusee');
end if;
end if;
end loop;
close connexion;
end if;
end loop;
close ID_CUR;
End;
as the same for import user.
I try with role in trigger but it don't, i see this in forum Oracle.
But i think EXP_FULL_DATABASE have not DBA rule, but IMP_FULL_DATABASE have.
How i do this ?
I want just to use a user to imp utilities, but not connexion in sqlplus.
Thanks for your help
Christophethanks for your help.
it run !
for example :
as the system user
SQL> INSERT INTO PRODUCT_USER_PROFILE values ('SQL*Plus', 'BATCH', 'CONNECT',null,null, 'DISABLED', NULL, NULL);
1 ligne créée.
SQL> grant create session to batch;
Autorisation de privilèges (GRANT) acceptée.
SQL> INSERT INTO PRODUCT_USER_PROFILE values ('SQL*Plus', 'BATCH', 'SELECT',null,null, 'DISABLED', NULL, NULL);
1 ligne créée.
the result
oracle@debian:~$ sqlplus batch/batch;
SQL*Plus: Release 10.2.0.1.0 - Production on Mar. Août 22 06:53:00 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connecté à :
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select user from dual;
SP2-0544: Commande "select" désactivée dans le profil utilisateur du produit
SQL>
oracle@debian:~$ exp batch/batch owner=batch file=test.dump
Export: Release 10.2.0.1.0 - Production on Mar. Août 22 06:54:32 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connecté à : Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Export fait dans le jeu de car WE8DEC et jeu de car NCHAR AL16UTF16
le serveur utilise le jeu de caractères WE8ISO8859P1 (conversion possible)
Prêt à exporter les utilisateurs spécifiés ...
. export des actions et objets procéduraux de pré-schéma
. export des noms de bibliothèque de fonctions étrangères pour l'utilisateur BATCH
. export des synonymes de type PUBLIC
. export des synonymes de type PRIVATE
Thanks for all -
Program will run with errors, but not at all in a .jar file
First off, here is my program right now:
import java.io.*;
import java.util.*;
import javax.swing.JOptionPane;
public class prune
public static void main(String args[])
String steamid="",time="";
BufferedReader infile = null;
BufferedWriter outfile = null;
FileReader fr = null;
FileWriter wr = null;
StringTokenizer strtk = null;
String line = null;
JOptionPane.showMessageDialog
(null, "Vault.ini Pruner v2");
String filepath = JOptionPane.showInputDialog("Enter the filepath to your vault.ini file.");
String strdeletenumber = JOptionPane.showInputDialog("Enter the number that vault entries under will be deleted");
int deletenumber = Integer.parseInt(strdeletenumber);
try
infile = new BufferedReader(new FileReader(filepath));
outfile = new BufferedWriter(new FileWriter(filepath));
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Can't open vault.ini:" + ioe);
try
while((line=infile.readLine())!=null)
strtk = new StringTokenizer(line);
steamid = strtk.nextToken();
time = strtk.nextToken();
if(Integer.parseInt(time)>=deletenumber)
outfile.write(steamid);
outfile.write(" ");
outfile.write(time);
outfile.newLine();
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Error:" + ioe);
try
outfile.close();
infile.close();
catch(IOException ioe)
JOptionPane.showMessageDialog
(null, "Error:" + ioe);
System.exit(0);
}The program is supposed to open a vault.ini file and delete entries with a number lower than specified.
Vault files are set up like this:
STEAMID:X:XXXX 100000
Right now if I run the program through command prompt it erases both the vault.ini and new vault.ini. I am also trying to put it in an executable jar file and when I do that I get a "Failed to load main class manifest attribute" error. Any ideas on what is causing this?I don't know what is happening. I put your exact code into a small build environment and used a build file for ant that I have and it works just fine. Manifest files are a total pain which is why I use a tool to generate it. I know that the last line has to be blank and that no line can be over a certain length.
You've now spent several days avoiding ant and I got it running with ant in about 3 minutes. I'm really missing something.
For reference, the build file is below should you change your mind. Put your prune.java in a new directory named "src" and save this file below as build.xml in the parent directory of "src". Run the program with java -jar lib/prune.jar
<project name="jartest" default="main" basedir=".">
<!-- location properties -->
<property name="src.dir" location="src" />
<property name="dest.classes.dir" location="classes" />
<property name="dest.lib.dir" location="lib" />
<!-- value properties -->
<property name="dest.lib.name" value="prune.jar" />
<property name="main.class" value="prune" />
<!-- compile time value properties -->
<property name="compile.debug" value="true" />
<property name="compile.optimize" value="false" />
<property name="compile.deprecation" value="true" />
<property name="compile.source" value="1.4"/>
<property name="compile.target" value="1.4"/>
<!-- build -->
<target name="main" depends="compile,jar" />
<target name="compile">
<mkdir dir="${dest.classes.dir}"/>
<mkdir dir="${dest.lib.dir}"/>
<javac srcdir="${src.dir}"
destdir="${dest.classes.dir}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
source="${compile.source}"
target="${compile.target}" >
</javac>
</target>
<!-- clean -->
<target name="clean">
<delete dir="${dest.classes.dir}"/>
<delete dir="${dest.lib.dir}"/>
</target>
<!-- jar -->
<target name="jar" depends="compile">
<jar destfile="${dest.lib.dir}/${dest.lib.name}"
basedir="${dest.classes.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="${main.class}" />
</manifest>
</jar>
</target>
</project> -
My bank id works with IE but not in Firefox, even if I run without extensions. What is the problem?
Make sure you are using the correct user name / password.
https://support.mozilla.org/en-US/kb/firefox-cant-load-websites-other-browsers-can
https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message -
IO assigned with Asset,but not coming at the time of PO creation
Hello
IO assigned with Asset,but not coming at the time of PO creation.
I have made following settings:
1 Depreciation - IFRS (INR) 1 0L
15 Income Tax Act 0
20 Depreciation - Indian GAAP (INR) 3 1L
30 Depreciation - IFRS (USD) 0
31 Depreciation - Indian GAAP (USD) 0
In ACSET-Account assignment:
for dep area-20
CAUFN Internal Order * Generic Trans. Type 02 Depreciation Run
KOSTL Cost Center * Generic Trans. Type 02 Depreciation Run
so currently i am using only dep area-20 only(Indian GAAP)
CAPEX budgeting is through IO. AUC is not doing through IO,its directly from AIAB/AIBU
AS01
KO01
AS02
KO22
KO30
so what is the problem,why i am not getting IO (which is in display mode in PO) when assigned the Asset with category of "A" (asset) in PO.......when i assigned Asset- the GL account come automatically but IO didn't come.
kind regardsHey Ajay
thanks for your reply.....
now i'm getting new error:
Parallel depreciation area 31 is not posted
Message no. AA565
Diagnosis
The asset to be posted does not manage parallel depreciation area 31, or
transaction type that you are using is limited to certain depreciation
areas, and does not contain depreciation area 31. This is incorrect.
System Response
Posting is rejected.
Procedure
Check the asset and the transaction type.
I have checked some configuration but not able to debug it.
regards -
I have a HP D110. It jams the paper when I print with wireless, but not when I use USB cable. Any ideas?
From what you describe you are having issues printing from MS Office. Have you had trouble printing from other resources on your computer (e.g. from the internet or another program)? The first thing I am going to suggest is that we start by uninstalling and reinstalling the printer from the resources available online.
First if you use a USB cord, make sure to remove it (this is important). Do not plug it back in until the software directs you to. Then go through the Devices and Printers, Programs and Features and Device Manager folders and insure that all copies, files, and programs related to the printer are removed. Then as directed, restart the computer.
In the START menu type "%temp%" and press ENTER. Here I want you to press Ctrl+A and hit DELETE. Some of the files will not allow you to delete them, skip those files and delete the majority that allows it.
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3562006&lang=en&cc=us...
Install that and let me know the result!
Have a great day! -
Move graphics with text--but not inline--in PM...??
Hello, is there a way in PageMaker to move graphics with text but not inline? I ask because right now I see two options for graphics:
--inline, so you cannot place the graphic exactly where you want AND the text only flows way above or below--but not next to--the graphic
or
--independent so you can place the graphic exactly where you want and the text DOES flow right next to the graphic, but then the graphic doesn't move with the text
I'd like to be able to place graphics exactly where I want AND have them move with the text, like the "Move object with text" option in Word.
thank you!
Lwell it has been a while since i used PageMaker so i didn't realize it was "dead."
though i'm not surprised and am kind of glad. i was hired into a new job recently
to work on a department newsletter, and i'm trying to find a good authoring program
within our budget. right now the newsletter is in Word but we've had a lot of problems
with Word so i'm seeking an alternate solution. i'd like Frame but again there isn't
enough money in the budget. i need a good option that is $500 or less...i'm trying Publisher
now too but not enough functionality... -
I have a ton of documents and databases in AppleWorks v 6.0 that I can no longer open on my MacBook Pro. Is there any way to recover this info? Some documents can be opened and resaved with textedit, but not my database with all important addresses.
I tried Peggy's List > Select All > Copy > Paste into an AW spreadsheet suggestion.
In my case, pasting into the spreadsheet lost all text formatting (mostly text set to bold). The results of formulas were pasted, and checkboxes were pasted as "on" or "off". The DB did not contain any pop-up menus or radio buttons, but I expect they would transfer as a number showing the list position of the chosen item.
Pasting the copied List view data into a Numbers table gave a result similar to that with AppleWorks. I selected B2 as the target cell (for top left cell of the pasted data) to avoid any effects of posting into a header row or column. Bold and regular text formatting looked the same as it had in AW's List view.
Based on that, I'd slip the 'paste into an AppleWorks Spreadsheet step, and paste directly into a Numbers Table.
Regards,
Barry -
Why does the FP 10 work with firefox but not with IE8
I down loaded the folowing for xp FP uninstall, FP plugin and FP debug from the link in one of your replys. now I can watch youtube with firefox but not with IE8. you asked me before if i was using 16 bit. whats that mean and how do I find out? please help I just want to watch youtube on IE!
Ok Shag, since you hadn't been on a Forum before, then I'll take some of what I said back:-) I wanted you to stay on one thread, you can get in trouble trying things that may cause you more problems than you had in the beginning. I just had your best interest at heart
I'll even overlook your all caps here:-) At least you responded
Now since you say you fixed it, what you should do is to confirm it is fixed by taking a look at your Flash folder. This contains all of the Flash files for IE and FF. Then make sure you have the IE add on and the FF add on. That way if you have any future problems, at least you would know it is not the Flash Player.
You should only have 2 .exe files for IE and 1 for FF.
For Video editing, I would check Microsoft and see what they have. Perhaps someone else will come along with other info for you.
No, I don't get paid here, since I am not an employee. Just a user helping others, since I had a problem at one time and after 4 hours of researching solved it.
Let me know if you want to check the Flash files.
Thanks,
eidnolb -
Tomcat gives 404 with Netscape, but not IE
Why would I get a 404 for an application with netscape but not with ie?
I am using Tomcat 5.5.
Is there something special that I need to do for each browser?
Thanks in advance
BurtWhy would I get a 404 for an application with netscape but not with ie?
I am using Tomcat 5.5.
Is there something special that I need to do for each browser?
Thanks in advance
Burt -
I get sound from Youtube with Safari but not with Firefox
I get sound when using my MacPro with Safari but not with Firefox.
Did you check the volume setting in the player to make sure that the sound isn't muted?
You can try to clear the Flash local storage.
Flash Website Storage Settings panel:
*http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html
Flash Local storage settings Help:
* http://www.macromedia.com/support/documentation/en/flashplayer/help/help02.html -
I am travelling for a year. I have my iPod touch 4g with me, but not my MacBook. Is there a way I can update to IOS 5 without losing my music,apps, photos..
Yes. get a computer with iTune 10.5 and:
- Transfer iTunes purchases to the computer:
iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
- Transfer other stuff using a third-party program like one of those discussed here. Most are good for music. It is harder to find one for other stuff like synced photos.
Copy music from Ipod to new computer...: Apple Support Communities
- Connect the iPod to the computer and make a backup by right-clicking on the iPod under Devices in iTunes and selecting Back Up
- Restore the iPod from backup and sync as neccessary. -
i have a website which opens only with google, but not google from safari. how i can get google w/o using safari?
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
If you wish, you may be able to salvage the errant extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support. -
my apple ipad is disabled and saying connect to itunes. i tried to connect with itunes but not responding
Connect to iTunes on the computer you usually Sync with and “ Restore “...
http://support.apple.com/kb/HT1414
If necessary Place the Device into Recovery mode...
http://support.apple.com/kb/ht4097 -
Why am I now having certificate issues with Firefox but not IE?
I can no longer log into Gmail, Facebook, Amazon, etc... using Firefox. I get the following error "accounts.google.com uses an invalid security certificate. The certificate is not trusted because no issuer chain was provided. (Error code: sec_error_unknown_issuer)". It works with IE but not Firefox. This just started a few days ago - prior to that I was able to log into those https sites without issue.
Any suggestions? Thank you."browser.xul.error_pages.expert_bad_cert" was set on false so I set it to true and tried reloading.
Got the page giving me the option to add exception and continue. Kept trying that and would not continue to the page even after accepting 10+ times.
Maybe you are looking for
-
USB drive in my mac is disabled. I am running OSX 10.9.2 . How to enable it
-
Hi, I'm installing EPSP9 (NW04 SR1) on Windows 2000Server/Oracle9206. I've successfully installed J2EE engine, but during portal installation at step "Check Portal Deployment Status" it gives error. Following errors reported in file j2ee\cluster\serv
-
Ludicrously long filenames in iTunes Library
I've recently been re-encoding some of my iTunes library (all classical) as ALE files with no apparent problems until a backup started complaining about over-length filenames. What seems to have happened is that individual titles from Gracenote have
-
IOS 8 non working today button within calender
Well, after updating to IOS8 on my iPhone 5 the functionality of tipping the "today" area in calendar app isn't working any more. Also the sync of appointments and other calendar entries of my iMac and mac book are no longer synced to my iPhone. See
-
Installed Portal Add ON / FORUM / Systemadministration - Navigation Cache?!
Hi, i installed the Add ON FORUM for our Portal. I ve restarted the whole Portal after that.. now the Menupoint: Navigation Cache under System Administration - Detailed Navigation is gone? I only see there: Short URLs... before i installed the FORUM