OptimisticConcurrencyException with one user, one table
hi,
I found this topic http://forums.bea.com/bea/message.jspa?messageID=202428380&tstart=90 where optimistic concurrancy is causing trouble on WLS 7.0. We're currently having sporadic OptimisticConcurrencyExceptions where only one user is working on a set of data, updating number of tables but in a manner where OptimisticConcurrencyException should not happen. And what's even worse is that we a number of server environments running in clusters where in one environment we get a lot of these and in another we don't get any. The code is the very same in both.
From the previous topic I read that one should not mess with timestamp since container does this. Unfortunately we do that all over the place, so my question is that is this the wrong way to do it still on WLS 8.1.5? Any help is appriciated!
Anyone? Please?
Similar Messages
-
Using one user account table across multiple databases but account used as a foreign key
I want to use one user account table from one database and use it across a couple other databases. The problem is that I want some tables to use the primary key from the user account table as a foreign key to access the data when the user logs in. Is this
the right way of going about it? Do I have to create a user account table in all my databases? What is the best practice to handle this problem? Thanks in advance.You can use Triggers or using replication.
more info:
Add Foreign Key relationship between two Databases
SQL Server Replication
Saeid Hasani [sqldevelop] -
One Mac, one User, one library, two Store accounts possible
Is it possible to buy with two different store accounts?
It's one user on the computer, one Music library but I would like to shop for my daughter without adding another account. She's on an imac G3, so I can't fill her iPod nano there.
JoachimHi Joachim,
Yes, you can create two or more accounts to use on the same computer at the same time. For example, in my case, I have one US and other Portuguese account.
Just make sure you authorized your computer to play content from both accounts.
Hope this helps! -
Help for transfering data from one user' all tables to another
Hello guys,
I have trim the extra sizes of columns in almost all tables of my database. Before doing this, I saved the data of tables by creating another user "User1" with the same objects and importing dmp file in it. After this I cleared my original objects and reduced the extra sizes of columns alomost in all tables.
Now I want to transfer data from backup user "User1" into my original user's "User" tables.
Can any one guid me with the way of doing so, so that I could do it just through 3 or 4 lines of code instead of individualy table wise transfering the data...??
regards
KashifSQL> select 'insert into '||table_name||' as select * from user1.'||table_name ||' ;' from user_tables where table_name in ('EMP', 'DEPT') ;
'INSERTINTO'||TABLE_NAME||'ASSELECT*FROMUSER1.'||TABLE_NAME||';'
insert into DEPT as select * from user1.DEPT ;
insert into EMP as select * from user1.EMP ;
2 rows selected.
SQL>You could spool the output of the query above to a .SQL script file and then just run it within the same script using @@script_name.SQL. -
second user cannot get any further than partial log on screen . .system hangs up with HP advisor blinking box
reinstal OS ,,, do a format during instaltion of windows,, hope that will mk everything fine
best of luck
<<<------DONT 4GET TO CLICK ON THE KUDO STAR ON THE RYT SIDE TO SAY THANKS IF I HELPED YOU .
I AM NOT A HP EMPLOYE , and I AM GIVING GREAT VALUE FOR YOU RESPONDS....... -
How to insert records in user defined tables through DI Server API
Hi All,
I have created a UDO using some userdefined tables .I am able to insert records in the user defined tables using DI API but problem is that now I want to insert records in those tables using DI Server API but I dont know how to do that please give me some way to do that
Thanks and Regards
UtpalThe AddObject message is :
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header>
<SessionID>...</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis="http://www.sap.com/SBO/DIS">
<BOM>
<BO>
<AdmInfo>
<Object>...</Object>
</AdmInfo>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
How to use it with a user defined table ? -
Can we Customize Edit User-Defined Table Screen in Fusion Application
Hi All,
We have a requirement to add a ADFDI functionality to the 'Edit USer-Defined Table' screen by adding a 'Mass Upload' Button.
Normally for Some of the screens (Fusion Compensation) i am seeing 'Personalize -> Edit Current Page' Option on Menu items on top. But on 'Edit User-Defined Table' i am not seeing this option in 'Personalize' Menu.
So the questions is is this screen Customizable in Fusion Application? If So What will be EAR file which we need to use for Customization.
The screen where we need to add ADFDI Functionality is under 'oracle/apps/setup' path.
Can anyone point me to the Exact EAR on this and also let me know if we can customize it or not
Thanks
KajaGenerally the code structure can be observed run-time [url https://blogs.oracle.com/fadevrel/entry/finding_code_artifacts_for_customization]using the composer, however in your case the content comes through a portlet in which case the method does not work as you cannot drill down to the specific region details in the composer. Based on a search through the code I think the regions you are interested are:
<li>hcmPayroll/userTables/ui/public_html/oracle/apps/hcm/userTables/ui/page/UserTableSearch.jsff --> This is the details page with header "Manage User-Defined Tables"
<li>hcmPayroll/userTables/ui/public_html/oracle/apps/hcm/userTables/ui/page/ManageUserStructure.jsff --> This is the details page with header "User-Defined Table: <TABLE_NAME>"
These would presumably be in EarHcmPayroll. I'll see if I can find out how the portlet content can be observed from the RT application..
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Multiple Schemas under one user account with XE 10g
Hi,
I am using (learning) XE 10g. I would like to know if it is possible to have multiple schemas under one user account and have the schemas logically separated. As of right now, I have three schemas that I am working with, each one under a different user account. This is inconvenient, because I have to logout of one user account and login to another user account simply to be able to work with another schema.
ThanksIt isn't possible to have multiple schemas under one database user account. It is of course possible to grant rights to other database users, and or roles, in order to allow access to the tables/data from other accounts. In Oracle there is a one-one mapping between schema and user.
Niall Litchfield
http://www.orawin.info/ -
Tables with more than one cell with a high number of rowspan (ej. 619). This cell can not be print in a page and it must be cut. But I don’t know how indesign can do this action.
set the wake-on lan on the main computer
The laptop's too far away from the router to be connected by ethernet. It's all wifi.
No separate server app on the laptop, it's all samba
The files are on a windows laptop and a hard drive hooked up to the windows laptop. The windows share server is pants, so I'd need some sort of third party server running. Maybe you weren't suggesting to use Samba to connect to the windows share though?
I'm glad that you've all understood my ramblings and taken and interest, thanks The way I see it, I can't be the only netbook user these days looking for this kind of convenience, and I certainly won't be once chrome and moblin hit the market.
Last edited by saft (2010-03-18 20:38:08) -
I can't import a table contains BLOB column from one user to another user.
1) I create two user both have connect role,and each has its own tablespace, DDL:
create user d2zd identified by d2zd default tablespace d2zd quota unlimited on d2zd account unlock;
grant connect to d2zd;
create user d3zd identified by d3zd default tablespace d3zd quota unlimited on d3zd account unlock;
grant connect to d3zd;
2)Then enter oracle as d2zd and create a table contains BLOB column and insert data to the table.
3) export d2zd as follow:
exp d2zd/d2zd file=d2zd.dmp
4) import to d3zd as follow:
imp d3zd/d3zd fromuser=d2zd touser=d3zd file=d2zd.dmp
the question is the table with BOLB colum can't be import,
it says:have no privilege on tablespace d2zd.
How can I import a table contains BLOB column from one user to another user?Hi - the reason for as our friend already told ist that a blob can be stored outside of the table segment, in another Tablespace, This is for performance reason.
Sou you would need to have Quota on two tablespaces.
the one which holds the table segment the other which holds the blob(segment).
Regards
Carl
Message was edited by:
kreitsch -
How to copy all tables, triggers, etc from one user schema to another
Hello everybody!
I am searching for a QUERY or Stored Procedure to copy the tables of one user schema to another schema.
Should look kind of: Copy (Select * from all_objects where owner = 'UserIwantToCopyFrom') to user = 'UserIwantToCopyTO'
I am sure that my example is rubbish but I tried to explain what I want to do.
So is there a chance to do that within sql-code? I have to build a template of a user schema with hundreds of tables, triggers, etc and copy it to several other user schemas.
Thanks for your advice!
JanThere are numerous examples available.
What you typically will want to do is:
For the export use the job_mode => 'SCHEMA' option
Export example
http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
DECLARE
l_dp_handle NUMBER;
l_last_job_state VARCHAR2(30) := 'UNDEFINED';
l_job_state VARCHAR2(30) := 'UNDEFINED';
l_sts KU$_STATUS;
BEGIN
l_dp_handle := DBMS_DATAPUMP.open(
operation => 'EXPORT',
job_mode => 'SCHEMA',
remote_link => NULL,
job_name => 'EMP_EXPORT',
version => 'LATEST');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'SCOTT.dmp',
directory => 'TEST_DIR');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'SCOTT.log',
directory => 'TEST_DIR',
filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
DBMS_DATAPUMP.metadata_filter(
handle => l_dp_handle,
name => 'SCHEMA_EXPR',
value => '= ''SCOTT''');
DBMS_DATAPUMP.start_job(l_dp_handle);
DBMS_DATAPUMP.detach(l_dp_handle);
END;
/for the import you will have to use the remap_schema option with:
DBMS_DATAPUMP.METADATA_REMAP (
handle IN NUMBER,
name IN VARCHAR2,
old_value IN VARCHAR2,
value IN VARCHAR2,
object_type IN VARCHAR2 DEFAULT NULL);There are much more details in the document that Thierry provided. -
Adding Insert & Updated By User Info In table(more than one user)
Hi All,
I have bonus table(column empid,empnm,percentage,insertedby,updatedby) with logged user as user1.
Now i create a application in which at one page i added a report with form.My intention is that
when i insert a new record the insertedby & updatedby column shld be automatically added with APP_USER.
But after logged in with diff user say user2 the report shld have user1 in two columns.But now as user2
when i want to modify that record the updatedby column value should have user2.How can i achieve that?
If u have any further issue for not understanding kindly revert back to me.
Thanks in advance .
Bye,The best thing to achive this is to use triggers - before or after insert or update. Assuming that your collumns, where you store the user information are named like:
user_created and
user_changed
you need two triggers:
1. for inserting new rows:
CREATE OR REPLACE TRIGGER trigger_name
BEFORE INSERT
ON your_table
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
:NEW.user_created := NVL (htmldb_application.g_user, USER);
:NEW.user_changed := NVL (htmldb_application.g_user, USER);
EXCEPTION
WHEN OTHERS
THEN
NULL;
END;
2. for updating rows:
CREATE OR REPLACE TRIGGER trigger_name
BEFORE UPDATE
ON your_table
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
:NEW.user_changed := NVL (htmldb_application.g_user, USER);
EXCEPTION
WHEN OTHERS
THEN
NULL;
END;
There are of course other methods where you can create simmilar processes managed by the application but the best was is to do it on the database level, using triggers.
Denes Kubicek -
Table cell with more than one component
how can i make table cell with more than one component
like below, cell in column 3 contains few button
col0 | col1 | col2 |
a | b |[btn1] [btn2] [btn3]|
a | b |[btn1] [btn2] |
and when i click on the any of the button a dialog box pop up saying something..Here's link to someone who did a lot with tables. Not sure about multiple buttons, but it should get you started.
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html -
From one user, how to get tables names of other user.
hi all,
now i connected to Oracle with one user let us assume 'pavan/pavan'. and i need to get the table names that are in user: pavan and in user: gupta (gupta/gupta).
one way is,
from Java, first get connection to pavan user, execute the query and store the results and disconnect to it and againg connect to user 'gupta', execute the query and add these results to first results.
but this is very expensive and time consuming also.
is there any query to get this one. or need to create 'Database Link' and access through that link.
regards
pavan.First you have to grant permission (like SELECT,UPDATE,DELETE....etc..) to PAVAN on objects that are belongs to GUPTA. Then you can make use the GUPTA user objects.
Suppose you connected to PAVAN and you want see the data in table A which exist in GUPTA user.
Connect GUPTA user first and execute following statement
GRANT SELECT,UPDATE,DELETE ON A TO PAVAN;
After executing the above query connect to PAVAN user and execute following statement.
SELECT * FROM GUPTA.A; -
How export one table along with data from one location to other location
Hi All,
I'm new in export/import practice.
Can anyone plz tell the steps along with commands to do the following:
1. I want to export a table with data from one location(computer) to other(computer) that are in same network.
2.Also from one user to another user.
I'm using oracle 10g.
regards
Sonia
Edited by: 983040 on Feb 19, 2013 11:35 PMFirst of all read documentation
Oracle Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/exp_imp.htm
Datapump Export/Import : http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
If you are using Datapump or Traditional Export/import you need to follow following steps
*1) Take User dump via EXPDP on Computer A .*
For EXP
exp username/password owner=Test file=D:\test.dmp log=D:\test.log
For EXPDP
expdp username/password schemas=TEST directory=TEST_DIR dumpfile=TEST.dmp logfile=TEST.log*2) Copy that to Computer B*
*3) Import dumpfile.*
For IMPDP Use remap_schema optionhttp://www.acehints.com/2012/05/data-pump-impdp-remapschema-parameter.html
For IMP use fromuser and touser option
one user to another user imp
Maybe you are looking for
-
"Invalid Annotation Object" error
I'm using Windows XP Pro (SP3) on a 2.66 GHz, 2 GB RAM computer, and while working in an Adobe Acrobat 9 document, I had just saved the file (CTRL+S) and the document froze and I got a Windows error box that asked if I wanted to send an error report,
-
Windows Update files: Security permissions has "unknown user"
Ok, this is weird. I have 30 files added in a November Windows update with a compile date or add-to date of 11/21/14. If I look at one of the files. MsSpellCheckingFacility.exe. I can see it is a legit file. https://www.virustotal.com/en/file/e9dcf9
-
Select cursor reference XY Graph
Question... I have a XY graph. This graph has 3 cursors. Now I want to be able to select cursor 1, 2 or 3. And then edit some property nodes, like line style, width, color. How do I do this? Because I can only get 1 cursor reference... that of the ac
-
Possible to put Javascript in template?
Hi What tags are required to put Javascript in a RTF or XSL template? Thanks very much. Regards Paul
-
R12.1.3 - Error when searching for customer simple search - JBO-27022: Fail
Hello, We are currently on 11.5.10.2 and in the process of upgrading to 12.1.3. After upgrading to 12.1.3 in our test instance, the Customer (Organization) Simple Search under Sales Dashboard now errors out with the error (as below). It works without