Database Locks not working
Hello!
I am having some problems with the Berkley DB XML Locking System. My database is configured as follows:
_envConfig = new EnvironmentConfig();
_envConfig.setRunFatalRecovery(doFatalRecovery);
_envConfig.setRunRecovery(!doFatalRecovery);
_envConfig.setVerboseRecovery(true);
_envConfig.setAllowCreate(true);
_envConfig.setCacheCount(1);
envConfig.setCacheSize(DBCACHE_SIZE * 1024 * 1024);
_envConfig.setInitializeCache(true);
_envConfig.setTransactional(true);
envConfig.setMaxLocks(MAXLOCKS);
envConfig.setMaxLockers(MAXLOCKERS);
envConfig.setMaxLockObjects(MAXLOCKOBJECTS);
// enable locking
_envConfig.setInitializeLocking(true);
_envConfig.setLockTimeout(50000000);
logInfo("Database locking enabled.");
// Configure db to perform deadlock detection internally, and to
// choose the transaction that has performed the least amount
// of writing to break the deadlock in the event that one
// is detected.
_envConfig.setLockDetectMode(LockDetectMode.MINWRITE);
Then I try to modify one object in my first thread:
xmlTransaction = xmlManager.createTransaction();
xmlContainer = xmlManager.openContainer( xmlTransaction, _collection);
context = xmlManager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
// Declare the read/modify/write cycle
XmlDocumentConfig docConfig = new XmlDocumentConfig();
docConfig.setLockMode(com.sleepycat.db.LockMode.RMW);
XmlQueryExpression xmlQueryExprDocs = _xmlManager.prepare( xmlTransaction, sQuery, xmlQueryContext);
results = xmlQueryExprDocs.execute( xmlTransaction, _context, docConfig);
xmlQueryExprDocs.delete();
// document(s) found - create modify, update objects
* Iterate over _result documents
while (_results.hasNext()) {
modify = xmlManager.createModify();
updateContext = xmlManager.createUpdateContext();
docValue = _results.next();
xmlDoc = docValue.asDocument();
numMod = modify.execute(xmlTransaction, docValue, context, updateContext);
In my second thread I try to read the same object:
xmlTransaction = _xmlManager.createTransaction(null, cfg);
XmlContainer xmlContainer = getXmlManager().openContainer(xmlTransaction, sContainer, contConfig);
context = _xmlManager.createQueryContext(XmlQueryContext.DeadValues, XmlQueryContext.Eager);
xmlQueryExpr = _xmlManager.prepare( xmlTransaction, sQuery, xmlQueryContext);
results = xmlQueryExpr.execute( context);
And then instead of waiting on the first object to unlock the database just logs:
Transaction that opened the DB handle is still active
I just want the db to wait until the modify is ready and then do the query in the second thread.
What am I doing wrong?
Thanks for your help!
Edited by: user11285545 on 19.06.2009 04:18
Hello,
I think you want to post this to the [Db XML forum|http://forums.oracle.com/forums/forum.jspa?forumID=274] instead of the BDB JE forum.
Charles Lamb
Similar Messages
-
After upgrading ACS 3.3.1 to 4.2 on windows the local database is not working
Hi,
I have upgaded the ACS 3.3.1 for windows server to 4.2. Everything went fine but the local database is not working.
The CD is an upgrade kit from 3.x to 4.2 on windows. I tried to install directly the 4.2 I was able to install but integration with AD/LDAp is not working. Anysay its an upgrade kit so I cant expect it shoud work when install drectly the 4.2 but by upgrading from 3.3 to 4.2 everything should work fine.
I followed the upgradation path as recomended.
Also we have a requirment that once it is upgraded to 4.2 we need to shift the whole thing from the physical server to a virtual machine on VMware ESX server 3.5.
Can anybody pls guide me if anything else to do after the upgradation.
Thanks & Regards
SachiHi Javier,
First of all I was facing a problem of restoring the old database of 3.3 to 4.2. Somehow I overcame that issue by following the below steps. Now local authentication is working fine but AD/other External database authentication is not working. As you told the setting for the unknown users are configured to fetch the credentials from the external database if it is not in the local database.
Do we need to do anything in the AD itself?
Regards
Sachi
Steps for ACS upgrade to 4.2 version
Below are the requested steps mentioned for the up gradation from ACS 3.3.2 to ACS 4.2.
1) Take a configuration backup from existing ACS. ACS--->System
configuration----> ACS Backup
2) now if you have ACS 3.3.2 on server. take backup of the ACS
3) Insert the cd or if you have the set up on the system then Run the setup of ACS 3.3.4. During the process it will prompt you to
upgrade existing configuration. Make sure you check that option else we will
loose the database. Now you need to hit next.next to finish the 3.3.4 upgrade.
4) Once you are at 3.3.4, take a backup and keep it handy.
5) Run the setup of 4.1.1. During this process it will prompt you to
upgrade existing configuration. Make sure you check that option else we will
loose the database. Now you need to hit next.next to finish the 4.1 upgrade.
6)Once you are at 4.1.1.24 take a backup and keep it handy.
7) Run the setup of 4.2. During this process it will prompt you to
upgrade existing configuration. Make sure you check that option else we will
loose the database. Now you need to hit next.next to finish the 4.2 upgrade.
8) Once you are at 4.2 take a backup and keep it handy. Now run the
patch 12 and take a backup again.
9) Now fresh install 4.2 on your new production server and install patch
12. Restore the 4.2 patch 12 backup and you should be all set. -
Oracle 10g database homepage not working?
Oracle 10g database homepage not working?
Hi just i installed oracle database 10g express edition but after the restart the oracle database homepage wont open http://127.0.0.1:8080/apex that link always telling cannot display...
here i have posted lsnrctl status
pls help
thanks in advance
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY…
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 25-SEP-2010 17:52:11
Uptime 0 days 1 hr. 28 min. 24 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\se…
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\se…
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIP…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOS…
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfullyI had a problem of accessing Oracle 10g database homepage. After a couple of days of research and discussions with coworker we found a solution.
Here is the solution:
1. Find out your default browser.
2. Configure your default web browser to connect to the Oracle Database XE Database Home Page as stated
here:
http://download.oracle.com/docs/cd/B25329_01/doc/install.102/b25143/toc.htm#CIHHJEHF
If this does not help de-install Oracle XE and reinstall following the instruction. During re-installation find out your default browser and configure it as instructed.
I suspect when the default web browser changes the Oracle 10g XE Database Home Page stops working.
Good luck -
XML Query works on one database and not working on others with errLPX-00241
I have one query as below
SELECT EXTRACTVALUE
(VALUE (xml_node),
'/inspectionActivityArtifact/ns2:landfillTypes/ns2:type[position()=1]',
'xmlns:ns2="http://dwm.sw.xmlNamespace/InspectionActivity"'
) AS TEST
FROM artifacts a,TABLE (XMLSEQUENCE ((XMLTYPE (NVL (artifact_data, '<empty></empty>'))))) xml_node
this works well on other databases but not working on one database. Everything is same configuration and OS and everything.
I can work on other XML parsing which is working fine but not this query.
Any idea ?
Viral Davepost versions and patch levels for both databases eg 10.2.0.1.0 and the error message you are getting.
-
Ipad2 - cover lock not working - can anybody help?
Ipad2 - cover lock not working - can anybody help?
Settings -> General -> iPad cover lock/unlock -> On
Try toggling this setting on then off. Are you sure the case you have has the magnets that are compatible with this feature. Also with the setting turned on you could try a Reset, hold down the Home and Sleep buttons at the same time for 10 seconds, the iPad will then perform a reset. -
Ask for password after screen lock not working!?
Ask for password after screen lock not working? It used to work before mavericks, each time my computer display sleep I'm asked for the password immediately. Now it never asks for it?
From 2008 MacRumors discussion:
SOLUTION: Browse to Home>Library>Preferences and drag com.apple.systempreferences.plist to the desktop.
Caused by a corrupt user preferences file. On restart, you may find user settings have defaulted. Set up as desired.
Worked for me. -
Query on database column not working
Hi
i have a block which has around 40 columns.the block is based on a table which has more than 20000 records.When i try 2 make query on a Database column in Enter-Query mode its not working.It fetching all the records instead of the respective records
THe block property is said to yes
i have even set the query allowed,only propery of the column to YEs
Can any one help me out of this??? do i need to set any other property???Thanks a lot for james and THomas and to all. The error is that i have missed the bracket for OR in my where condition ...Now im able to query all the columns.
Thanks very much...
I have one more doubt .i have a requirement in which when the user goes to the child block and makes a query is it possible to bring the associates parent records..wht code or trigger we need to rite ?
normally we do for parent block when we query we populate the child. is this can be done? -
Database Mail not working with SQL Server Agent
I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine.
Database mail does not work with SQL Server Agent. When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc.
I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem. Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
Kind RegardsThe problems solved
steps:
1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
I hope not to forget something
Thank You all for the help -
Database Diff not working using 3.1 - 64 bit
Hi there,
I have just tried using the utility Database Diff in 3.1 on windows 64-bit and this does not produce any differences between 2 similar schemas. I have just downloaded 3.1 32-bit (Java included) and this works fine. I am running Windows 7 64bit.
Any ideas?
Regards,
VicCI have managed to sort this out, I was trying to speed up the startup of SQL Developer and disabled some of the extensions. The crucial one here is Versioning support. This must be enabled for Database Diff to work.
Regards,
VicC -
After Logon on Database Trigger Not Working From Client Terminal
Hi Every One
I Have a Problem, I'am Using Oracle 10g R2, I'd Written After Logon on Database Trigger, I'd Written The Trigger Under The Under The User With DBA Privileges, and it is work Fine, but it is work only when i Logon On The Database from The Server Terminal with any user, and If Logon From any Other Terminal It Is Not Work,
Can any One Know The Reason, Please Help me
Yasser MokhtarPlease post the trigger code.
-
New I pad cover lock not working
I bought the new I pad with Targus leather cover. Till yesterday I didn't notice I pad cover lock feature.but my friend tried I pad cover lock option in settings.my I pad was able to lock without smart cover till today. Suddenly it's not working anymore.i have set the cover lock option in settings on.what happened? Is it necessary to have smart cover to use this feature?
Lol now it works.........actually the cover that I have is 360 degree rotating cover.that screen cover flap was supposed to be on left ,but I kept it on right.the I pad magnet was not lining up with the covers magnet. Breaking news: Targus versavu cover is compatible with the I pads cover lock feature.
-
Auto Lock not working when connected to Macbook
Ive had my ipod for about a week and I thought auto-lock was working even when the ipod is connected to my computer.
But I just realized that the auto-lock is not working when it is connected to the computer.
Is this normal?
Also when I set the brightness to the lowest setting, the screen slightly flickers intermittently.
Is this normal too?
ThanksDo you have more than one IDM Server running in your environment? When you are debugging a WF on server A and the scheduler decides (usually after an approval step) to continue running the WF on server B, your debugger connecting to server A wouldnt stop at the breakpoint.
Can you make the debugger stop on e.g. the "start" or very first Activity in your wf? Right after launching it from the form. -
EM Database Express not working in RAC installation
I installed the Oracle 12cRAC , Standard editon ,version : Oracle Database 12c Release 12.1.0.1.0 - 64bit Production edition in Windows 2008 64 Bit .
Instance and RAC database is working fine is both host. After installation of the database (DBCA), it EM database express URL shows as
https://apph1.xxxx.com:5500/em
If i run the URL, it is not working.
Following are the output of the command:
SQL> SELECT 'https://'||SYS_CONTEXT('USERENV','SERVER_HOST')||'.'||SYS_CONTEXT('USERENV','DB_DOMAIN')||':'||dbms_xdb_config.gethttpsport()||'/em/' from dual;
5500
SQL> SELECT 'https://'||SYS_CONTEXT('USERENV','SERVER_HOST')||':'||dbms_xdb_config.gethttpsport()||'/em/' from dual;
0
SQL> select dbms_xdb_config.gethttpsport() from dual;
https://apph1:5500/em/
SQL> select dbms_xdb_config.gethttpport() from dual;
https://apph1:5500/em/
But still EM express not open in the broser.
I am not sure, how to check the listenr in RAC.
C:\>srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): apph1,apph2
How enable the EM Express in RAC?
Regards
MathewDear All,
I set HTTP port manually
SQL> exec dbms_xdb_config.sethttpport(8080);
Now EM express working on http.
Regards
Mathew -
Satellite P500 (PSPE8A-01R002) - Number pad and num lock not working
After upgrading to Windows 7 the number pad and num lock on my P500 PSPE8A-01R002 is not working.
Any help will be appreciated.Since keys worked in vista then its reasonable to assume there is something in the "software". I doubt that windows can make changes to the bios though there is Toshiba HWsetup but that does't look to do anything relevant.
I don't know what conclusions could be drawn from the results of trying an external keyboard.
How about trying various boot sequences such as direct to the command prompt and direct to safe mode to pin down it the problem is specific to your W7 installation? - why not try making a bootable cd (i'd have to google to find out how but you should be able to try windows 98 or even DOS - there was also a run from cd/dvd version of Linux and there's also the new Google os to consider).
Within W7 the only things that affect the keyboard would be settings in control panel > ease of access where the keypad can be set up as a mouse or keys remapped so num lock is "something else" and, clutching at straws, I presume keyboard language settings - are there any languages that require use of a numeric key pad to give a full character set (keyboard set to foreign language and Windows set to "English" so that the foreign character set isn't displayed? -
Updating database table - not working
Hi ,
My database table 1 is having multiple data for a primary key
example :
table 1:
GLOBMATNR -> Primary key
WERKS --> non primary key -- multiple for globmatnr
MBLNR --> non primary key -- multiple for globmatnr
MBLPO--> non primary key --
BUKRS --> non primary key -- multiple for globmatnr
i m using below statement to make entry into the table.. but this insert is not working.. I stead of putting 30 entries its just inserting 1 entry..
Can any one help me in this..?
INSERT table1 FROM TABLE internal_table ACCEPTING DUPLICATE KEYS.
Edited by: neha gupta on Oct 29, 2010 1:25 PMHi,
Hit F1 on ACCEPTING DUPLICATE KEYS. You will identify why it is inserting 1 line only. I hope the table is a custom table. For fields which can have multiple values, make it primary key.
In your example table, GLOBMATNR, WERKS, MBLNR could be primary keys if WERKS is in one company code only. If not add BUKRS also
Hope it helps
Sujay
Maybe you are looking for
-
P4M890M Intial bootup giving me error message "Bus Processor is not supported"
Barebones Desktop Specs; P4 631 3Ghz HT 2M 800FSB Sock 775 w/Masscool 8W0141B 3.6Gz Cooling Fan MSI P4M890M-L Socket 775 MB w/ 450 watt power - MSI Case w/Extra Cooling Hitachi 250GB EIDE HD w/ HD Cooler XFX GeForce 6200 Turbo Cache 256MB PCIe 2 - Ul
-
Server 2012: Windows Internal Database error during installation
I am using the current RC build. While trying to install IPAM services, I am prompted to install a Windows Internal Database. However, setup consistently dies on me with an error that "The operation could not be completed, because the server that you
-
Error in service call of Portal Component while accessing CRM iview
Hi Experts, When I'm trying to open the iview, i'm getting portal runtime error. Below is the log I found. I check the permissions and everything looks fine. We have migrated from EP6 to EP7 EHP1 SP8. This iview is working properly in EP6 but thr
-
Controlling the sound volume of my swf
I am trying to reduce the sound volume of my swf in general. I implemented the code below, but I get this error message: Line 30 1151: A conflict exists with definition in namespace internal. Thanks for your help Charine ++++++++++++++++++++++++++++
-
Using destype=mail in reports server
I am trying to send a report to an email address by using the following request string from IE 6.0: http://[local machine name]:8888/reports/rwservlet?cmdkey=test_report+desformat=html+destype=mail+desname=[email protected] The error I get is: Error