Autocommit and Cursor commit Behaviour
Hi,
I need help to set and get the Autocommit and Cursor commit behavior attributes
in Oracle.
AUTOCOMMIT:
For DDL Statement, this attribute is set while executing the OCIStmtExecute() api
as below:-
r = OCIStmtExecute(d->svc, d->sql, d->err, 1,0,
(CONST OCISnapshot *) NULL,
(OCISnapshot *) NULL,
d->transaction ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS);
For DML Statement, from the OCI documentation the database parameter attributes
support OCI_ATTR_AUTOCOMMIT_DDL with the values OCI_AC_DDL and OCI_NO_AC_DDL.
Since this is a parameter attribute, I couldn't set using OCIAttrSet() API.
I need help in implementing AUTOCOMMIT for both DDL / DML statements.
CURSOR COMMIT BEHAVIOUR:
Similarly, I have observed that Oracle support cursor commit behavior attributes
using OCI_ATTR_CURSOR_COMMIT_BEHAVIOR and the attribute values are OCI_CURSOR_OPEN and OCI_CURSOR_CLOSED.
I have tried setting this attribute as below:-
ub1 nCommitType = OCI_CURSOR_OPEN;
oraRC = OCIAttrSet((dvoid *)d->svc, (ub4)OCI_HTYPE_SVCCTX,
(dvoid *)&nCommitType,
(ub4)sizeof(nCommitType),
OCI_ATTR_CURSOR_COMMIT_BEHAVIOR, d->err);
This always fails with the error ORA-24315: illegal attribute type.
I need help in setting this attribute using OCI.
Another approach to set Autocommit / Close Cursor attributes:-
Oracle support SET commands for autocommit and closecursor, I have prepared
and executed these set commands using OCIStmtPrepare and OCIStmtExecute api. The OCIStmtExecute() API fails to execute the below command texts.
SET AUTOCOMMIT ON/OFF
SET CLOSECURSOR ON/OFF
Is it the right method of setting these attributes?
Thanks,
Sankar.P.
Hi.
You are trying to commit "child" information before your Parent information is commited.
Can you describe how you dragged & droped your views?.
Dragged relationship views or single views?.
Can you put output log with jbo with FINEST level?.
To find a solution try next solutions:
1) Disable "strong" association between your parent-child entities. To achieve it follow next steps:
- Go to your "Assoc" that describes your foreign key.
- In "Realtionship" tab, "Behaviour" disable "Composition Association".
Image: http://1.bp.blogspot.com/-Em8NZvjOUzo/T_NQbJTcLjI/AAAAAAAAAm4/hPsDwtEhJQ4/s1600/4.png
2) Drag and Drop correct views as a Master-Detail (cascading views in your Data Control).
http://2.bp.blogspot.com/-1By5vNNGMFQ/T_NQdYzexKI/AAAAAAAAAnE/DGn7Gr0RSDw/s1600/6.png (in spanish).
In the image, drag & drop PortalwebView2 is the correct way for Master-Details tables. Probably you dragged PortalwebView1 that have dependecy to master table.
Steps that you have followed:
- Drag & Drop dependen View Object as a Master-Detail with two tables.
- Add Create operations from these views to create Rows.
- Add Commit general operation from Data Control.
Try to drag & drop Master-Detail views correctly before disable association.
PD: To try your model faster run Model project instead of your application.
Regards.
Edited by: Daniel Merchán on 30-jul-2012 12:05
Similar Messages
-
Pm.getConnection(), autocommit and transactions
Hi everyone,
I've got a problem with transactions not getting committed with runtime
access to the JDBC connection through Kodo (see 4.9 of Dev Guide).
I begin a transaction:
pm.begin();
I then get hold of the Connection, having ensured the transaction is
active and is a datastore connection - see
http://www.solarmetric.com/Software/Documentation/3.3.4/docs/javadoc/kodo/runtime/KodoPersistenceManager.html#getConnection()
Connection conn = (Connection)pm.getConnection();
I then execute a statement to delete all rows:
Statement stmt = null;
stmt = conn.createStatement();
int rows = stmt.executeUpdate("delete from ACCOUNT");
log.info("deleted "+rows+" ACCOUNT rows");
// conn.commit();
// conn.rollback();
pm.commit();
pm.close();
If I call pm.commit(), the delete from ACCOUNT does not get committed and
the rows are still there. I have to call conn.commit() to get it to
commit. According to the docs, pm.commit() should work.
If however I use the pm to first query an Account object and update it
within the transaction, the rows are immediately removed from the database
when I execute the statement, even before I commit the connection! Calling
conn.rollback() instead has no effect! It is as though conn is not the
connection that pm is using but a different one, one that has autocommit
enabled if an object is updated in the pm's transaction. In fact looking
at the connection that is returned in my debugger, the connection does
indeed have autocommit=true. Surely the connection returned by Kodo should
have autocommit=false?
I don't have any funny transaction isolation level config in my
kodo.properties. Any clues what's happening?
Regards,
AlexIf you're using optimistic transactions, pm.begin() doesn't actually
begin a transaction, and pm.commit() might not do anything if no
object-level changes have taken place. So use a non-optimistic
transaction.
Kodo 4 also has a method KodoPersistenceManager.beginStore() to ensure
that a datastore transaction is in effect, rather than you having to use
a non-optimistic transaction. -
Difference between Implicit and Explicit Commit
Hi All ,
Can some one pls let me know the difference between Implicit commit and Explicit Commit .
Thanks in Advance..>
Kalyan wrote:
> Hi,
>
> An explicit commit happens when we execute an SQL "commit" command.
>
> Implicit commits occur without running a commit command and occur only when certain SQL (DDL) statements are executed
>
> (Ie, INSERT,UPDATE OR DELETE Statements)
> >
> Hope this is clear & Helpful Short and Simple.
>
> Thanks
> Kalyan
Highlighted bit is incorrect. -
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function, render workspace function, export file are still operational. How can I fix it so I may complete my assignment?
Besides DaVinci Resolve, Adobe Creative Suite 6 is the only software on the machine. I am using Windows 7 Professional 64-bit Operating System on AMD FX 6100 six-Core Processor at 3.31gHz and 32 GB RAM memory. There are two SLI-bridged GTX680 NVidia cards.
The software was very stable for the last six months, working with 720P proxy files from 2.5K masters (Blackmagic Design Camera). I am working on a feature-length project that exceeds 1000 edits. I have broken the file into 2 one hour segments.
I have deactivated the software before reinstalling the entire OS from scratch. PP6 was very stable for 48 hours. Then the freezing space bar returns. After a dozen strokes into the project, same problem. I have made cache files store next to originals, I have deleted preview files if they were corrupted and causing instability. Am I missing something?
I have Microsoft Security Essentials for virus protection. I double checked the memory for damage/defect. Nothing says that the motherboard or other components are damaged.
I am in film competition overseas and need to have deliverables in less than a month's time. I lost the last two weeks troubleshooting and this crisis came at an inopportune moment of the project.
Any assistance would be greatly appreciated.Still getting software freezes but found a way to mitigate for the mean time.
Upon launching Adobe Premiere Pro, hit CTRL-ALT-DEL to launch TaskManager as well.
You will want to highlight Adobe QT32 Server.exe
Right click and select "End Process Tree"
You will get considerable stability in the program, long enough to get timing of cuts done. Be sure to save often.
If the program freezes, do not hit Save. You definitely want to avoid saving the corruption into your TimeLine
CTRL-ALT-DEL to relaunch the TaskManager and highlight Adobe Premiere Pro.exe
Right-click to "End Process"
No need to reboot the whole system; just launch Premiere Pro again and continue with the session. Note that your work reverted to Last Save.
Hope this helps until the bug is fixed. -
Non-responding keyboard and cursor, macbook pro 10.4.7
Hi,
My macbook pro has completely stopped detecting my keyboard and cursor [I am not referring to a usb keyboard, I'm talking about the original typing keyboard], otherwise, it's the keyboard that's malfunctioning. I plugged in a usb mouse and the cursor worked fine, so I suspect that the issue originates from the keyboard itself or some kind of disconnection. Has anyone encountered such issues before? I've attempted to install an apple keyboard update, but the computer refused it because the system did not need the update. I'm completely lost...please...help...thank you so much in advance!!!!!!!!this is the wrong place to be asking. please post here...
http://discussions.apple.com/category.jspa?categoryID=190 -
Sql query to know the number of triggers and cursors present in a schema?
friends,is there any way to know the number of triggers and cursors preseent in a schema.
thanks in advance..what do you mean by triggers in a schema? is it the triggers owned by that schema? or the triggers applied on tables owned by that schema? remember you may own triggers applied on the tables belong to other schemas. Anyways, all this information can be extracted from oracle dictionary using a combination of all_triggers and all_tables.
As far as cursors, please elaborate. Do you mean cursors declared in PL/SQL blocks? -
Dear All,
I got a doubt b/n select and cursor.
I read in one oracle book that select into clause will actually tries to get the data twice, Whereas the cursor will query only ones.
Is this the case in Oracle 10g or both the select and cursor will fetch the data only ones.
Ex
select sal into v_sal from emp where empno = 7788 --> Ones it hit the data, oracle will again scan the entire set of records in the emp table for another match.
Whereas
Cursor c_sal is select sal from emp where empno = 7788; --> This will do the fetch operation only ones.
Is this the case still True in Oracle 10g or 11i.
Appreciate your help.
Thankyou very much
Madhu Kthe query is processed as follows (this is from ora doc)
Parse:
– Search for identical statement
– Check syntax, object names, and privileges
– Lock objects used during parse
– Create and store execution plan
Execute: Identify rows selected
Fetch: Return rows to user process
for cursor also same things are performed, but cursor is private sql area in which you can processes one row at a time, you can use cursor in your pl/sql program and access one row a time,
so if you say,
cursor c1 is select * from emp;
c1 is private sql area where you can processes single row of emp , make comparisons, calculations etc,
once you close the cursor this area is released and can be used by another cursor,
the basic query processing rules remains the same, -
I need to create a temporary table that is transaction oriented (not session), insert data into it, and read the data. Apparently, each xsql:dml implies a commit. I cannot use "Preserve rows" (session related) in my table definition, and each commit (implied via the xsql:dml) deletes the rows that I need to read. Help?
Every DML operation is logged in the LOG file. Is that possible to insert the data in small chunks?
http://www.dfarber.com/computer-consulting-blog/2011/1/14/processing-hundreds-of-millions-records-got-much-easier.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance -
The code to set focus and cursor position fails in a mobile browser
In two previous discussions (http://scn.sap.com/message/15176399 and http://scn.sap.com/message/15205348) I received help on how to set the focus on an OpenUI5 mobile input field and then how to position the cursor at the end of any text that might be in that field.
That all works well in desktop browsers (Chrome, Firefox and IE10).
However that same code seems to fail when I test it on browsers on mobile devices. At first I thought this was working in Chrome on an iPad but now it does not (could our taking new OpenUI5 code recently affected that?). I do not think I have ever see this work in Chrome on a, Android tablet.
Has anyone had success setting the focus and cursor position on a mobile input field running in a mobile environment?Wasn't sure where to turn with this problem. There is talk on the web that there is a problem in Chrome on Android and that this will be fixed in version 37. We I get that version I will try and update this post.
-
Need info regarding Oracle UCM Accounts and Security Groups behaviour
Need information regarding Oracle UCM Accounts and Security Groups behaviour.
Oracle UCM version: 11.1.1.5.0
Steps:
1. Log in with "weblogic" user and created a content with id "content1"
2. Applied "@acc1(R)" and "TestGroup1" to the cotent created in step 1
3. Log out
4. Log in as "acc1user1", the user is not able to see the "content1"
5. Log out
6. Log in as "role1user1", the user is not able to see the "content1"
Account and Group information:
1. User "acc1user1" is part of "@acc1(R)"
2. User "role1user1" is part of "role1(R)" and is mapped to "TestGroup1" in UCM
Expected:
Both "acc1user1" and "role1user1" should be able to see "content1" as they have at least Read permission.
Please help me understand why the users are not able to see the content.ACLs, like Accounts, are optional security setting which may add on some extra functionality to mandatory security groups. Likewise, the resulting permission is taken as an intersection of SG and ACLs.
But in the second part the number of set of users is huge (approx say 600)I don't get this completely. Does this mean that those "sets of users" (users who see the same data) are distinct and that there is 600 of such groups?
If you read thoroughly the manual I sent earlier, there is a recommendation that there should be maximum 50 security groups, and you should use accounts, should this number be exceeded. This means you could have all the documents in one security group (and have one common role with Read permission), but combine it with accounts. ACLs are not a good choice here - their performance and manageability is much worse than of accounts. ACLs are primarily used if you expect security settings to change during the lifetime (e.g. a project manager adds temporarily rights to access an item to another user, and revokes it when the user finishes his or her work).
Note that accounts as well as permissions of users within accounts can also be mapped externally (from LDAP/AD) and it usually follows some kind of org chart.
I'd feel more comfortable not to speak about users, security groups, roles, etc., but about some real-life objects and scenarios. -
Macbook Pro boots to blank gray screen and cursor
Hello,
I downloaded the "time machine update" and now my macbook pro will not boot, it stops at a gray screen and cursor.
I have tried safe boot, Disk Warrior, clearing NVPRAM or whatever.
Any ideas on anything else?
Question, how long does a time machine restore take?
Thankselipsis1 wrote:
I downloaded the "time machine update" and now my macbook pro will not boot, it stops at a gray screen and cursor.
I have tried safe boot, Disk Warrior, clearing NVPRAM or whatever.
Assuming the TimeMachine updte came from Apple correct?
Disconnect the TM drive and any other hardware to return the machine back to factory as possible.
Run through this fix list
Step by Step to fix your Mac -
Moving between open windows and cursor doesn't work
I have several open windows from several programs.
If I click on window 1 in program A, and then click on window 2 in program B, I expect the mac to switch to that window in program B.
But many times lately, in Tiger, that does not happen. I can click on the window, and the cursor does not work. Nor does the menu bar change. I can go back to window 1 and the cursor still does not work.
Only when I go to the dock, and click on the program icon does the window and cursor work properly.
This happens in Tiger. I don't recall having this behavior in any older OS X, OS 9, or other older version either.
This has happened on my iMac G5 and G4 tower. Is this a known problem?This happens since I started using the Mighty mouse on both computers.
-
Search for multiple values separated by carriage return and not commas
I have developed a report in BI Publisher that allows a user to enter multiple values that are separated by commas.
Is there any way of entering multiple values that are separated by carriage return and not commas?
Any help would be appreciated.
ThanksHere below, without function :
SQL> with tbl as
2 (select 0 c1, 'j' c2 from dual union all
3 select 1 c1, 'k' c2 from dual union all
4 select 2 c1, 'l' c2 from dual union all
5 select 3 c1, 'm' c2 from dual union all
6 select 4 c1, 'n' c2 from dual )
7 select *
8 from tbl
9 where c1 in (select substr(mystring,instr(mystring,',',1,rownum)+1,instr(mystring,',',1,rownum+1)-instr(mystring,',',1,rownum)-1)
10 from (select ','||'&str'||',' mystring from dual)
11 connect by level <= length(mystring)-length(replace(mystring,','))-1);
Enter value for str: 1,2,3
old 10: from (select ','||'&str'||',' mystring from dual)
new 10: from (select ','||'1,2,3'||',' mystring from dual)
C1 C
1 k
2 l
3 m
SQL> /
Enter value for str: 0
old 10: from (select ','||'&str'||',' mystring from dual)
new 10: from (select ','||'0'||',' mystring from dual)
C1 C
0 j
SQL> Nicolas. -
Pages jump and cursor erratic online only...other browsers ok
Pages and cursor jump erratically while online. FF 16.0.2
Other browsers work properly.You may have switched on caret browsing.
*http://kb.mozillazine.org/accessibility.browsewithcaret
You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
*Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
*http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
*http://kb.mozillazine.org/Accessibility_features_of_Firefox
Maybe you are looking for
-
Open StageWebView link in new window
I have a StageWebView displaying a webpage containing ads that are coming in from AdMob (due to their current lack of support for AS3 and AIR for Android). However, when a user clicks on the ad, the linked page opens in that small window, so the cont
-
Method not found: viewAttribute
I am using Lightroom 1.3 at the moment. The library has been originally created in a beta version and subsequently updated by the newer version. It is located on a removable USB disk drive, and is shared between two computers. The images are are loca
-
Report Server RTF on Solaris gives Core Dump
We have Report Server 6.0.8.11.2 on Solaris. We are running reports thru URL and it is working fine for PDF and HTML. When we specify the desformat as RTF it gives Segmentation Fault Core dumped. We have tried using rwcli60 thru command line and it g
-
How do i make a collage bigger then 300mm x 300mm thats all it lets me do
I'm trying to make a collage bigger then 300mm x 300mm as it wont let me go any bigger and i would like to go bigger and i don't know how?
-
When will FF be available in a true 64-bit version for use with Win 7 Pro 64-bit?
Using Win 7 Pro 64-bit, when will FF 64-bit version be available?