Multi-Row insert/update/delete not working via db-link
App. Version: 2.0.0.00.49
DB: Oracle 9i, not sure about the build
Problem: Multirow Update/Insert/Delete doesn't work via db-link.
Error received: ....ORA-1460: unimplemented or unreasonable conversion requested....
Where: Tabular Form generated via Wizard
Side note: It's working properly when local table(s) is/are used, it's not working via db-link or view.
I've encountered this error with single update/insert/delete operations before, but was able to fix it via using temp-variables (v_xyz := :Px_xyz; as the proposed v('Px_xyz') was really slow with my scripts)...but with the automated DML-action I don't see a way to edit it accordingly.
Workaround found:
1a) Use local* collection on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
1b) Use local* table on HTML-DB-Server, then write single row updates/deletes/inserts to the remote DB via DB-Link
* Local = on the same server that HTML-DB is running on...
So,...to my questions:
1. Can someone confirm that this is a "known feature" (aka bug)?
2. Can someone tell me if this "known feature" has been eliminated in the newer version of HTML-DB/APEX (> 2.0.0.00.49)?
Thanks.
Ingo
Hi,
Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
Regards,
Andrei
Similar Messages
-
Insert , Update & Delete Not working in BDB Berkley Database
Hi,
Anybody has used Oracle ADF & BDB ,to insert/ update & delete?
imported db.jar,dbexample.jar,sqlite.jar ,derby.jar. still not working (Only Query working)
Pls lets us knowHi,
Do you have a small test case program that demonstrates this? A JDeveloper project showing what exactly is the problem when trying to use the BDB SQL JDBC driver to insert data into the BDB SQL database? What do you mean by "not working", do you get any errors, you do not get errors but you do not see the data in the database etc?
What are the versions of Java, JDeveloper, ADF and BDB SQL you are using, and on what OS?
Regards,
Andrei -
Insert/Update Stmt not working
Hello,
I have created a region that hides and shows based on on javascript. I had to add a new field into this region and now it won't write to the database, it displays correctly on the form. I copied the field from another field and renamed it to p12_joint_service_trng. The field is a radio button that uses a LOV
It will not write the p12_joint_service_trng to the database and I'm not getting any syntax errors for it. The other code works correctly.
The page process below:
-------------INSERT/UPDATE INTO DFCY_CATG_TABLE-----------
IF :P12_DFCY_SEQNO4 IS NULL and :P12_DFCY_CATG_C IN('1','2','7','6','3') THEN
INSERT INTO DFCY_CATG (DFCY_SEQNO,DFCY_CATG_C,INFRSTRCTR_NARR,OPFORCE_EMP_NARR,PERS_QTY )
VALUES(:P12_DFCY_SEQNO,:P12_DFCY_CATG_C,:P12_INFRSTRCTR_NARR,:P12_OPFORCE_EMP_NARR,v_dfcy_pers_qty);
ELSE
UPDATE DFCY_CATG
SET INFRSTRCTR_NARR = :P12_INFRSTRCTR_NARR,
PERS_QTY = :P12_PERS_QTY,
OPFORCE_EMP_NARR = :P12_OPFORCE_EMP_NARR
WHERE DFCY_SEQNO = :P12_DFCY_SEQNO;
END IF;
------------------------INSERT/UPDATE DFCY_CATG_TRNG----------------------------------------
-------------INSERT/UPDATE INTO DFCY_CATG_TABLE TRAINING-----------
IF :P12_DFCY_SEQNO4 IS NULL and :P12_DFCY_CATG_C = '4' THEN
INSERT INTO DFCY_CATG(DFCY_SEQNO, DFCY_CATG_C, JOINT_SERVICE)
VALUES(:P12_DFCY_SEQNO, :P12_DFCY_CATG_C, :P12_JOINT_SERVICE_TRNG);
ELSE
UPDATE DFCY_CATG
SET JOINT_SERVICE = :P12_JOINT_SERVICE_TRNG
WHERE DFCY_SEQNO = :P12_DFCY_SEQNO;
END IF;
---------------INSERT/UPDATE DFCY_CATG_TABLE_POLICY----------------
IF :P12_DFCY_SEQNO4 IS NULL and :P12_DFCY_CATG_C = '5' THEN
INSERT INTO DFCY_CATG(DFCY_SEQNO, DFCY_CATG_C, JOINT_SERVICE, POLICY_DOCTRN_NARR)
VALUES(:P12_DFCY_SEQNO, :P12_DFCY_CATG_C, :P12_JOINT_SERVICE, :P12_POLICY_DOCTRN_NARR);
ELSE
UPDATE DFCY_CATG
SET JOINT_SERVICE = :P12_JOINT_SERVICE,
POLICY_DOCTRN_NARR = :P12_POLICY_DOCTRN_NARR
WHERE DFCY_SEQNO = :P12_DFCY_SEQNO;
END IF;
Thanks for the help,
Mary
Edited by: MaryC on Feb 9, 2010 3:09 PMMary:
Check the sesion state browser and verify that the page-items referenced in the 'INSERT/UPDATE DFCY_CATG_TRNG---' block you the page-process code have the expected values.
varad -
Insert,update, del not working while assigned to users through role
Dears,
I created a role ABC
Assigned select insert update and delete privileges to role ABC on a table MY_SEC_TABLE
Later I assigned this role to a user TEST
Connected to database with this user TEST
and
Try to edit any row in table MY_SEC_TABLE but receive ORA-01031: insufficient privileges
Edited by: FarhatKayani on Mar 17, 2013 11:03 PMHi,
OK,
Try to edit any row in table MY_SEC_TABLE but receive ORA-01031: insufficient privilegesCould you select MY_SEC_TABLE by this user??
Regards, -
Local Printer not working via Remote Link
I have a problem with my remote desktop printing to my local printer. I connect via RD on Windows 7 Home to Windows 7 Pro. I have installed an HP Laserjet Pro CM1415fn printer. All prints fine locally. Also everything printed fine
but have had to have a recent update to my Remote PC that I log into. So the printer had to be reinstalled.
All worked ok for about 6 print jobs then stopped working. Nothing has changed. I have changed the settings on the printer as it seemed to be when the printer went into 'Sleep' mode. I have tried restarting the Printer Spooler in Services
and rebooting the remote PC but no joy.
Any ideas please.Hi,
You mean after the reinstallation, the local printer worked for a while and then stopped working with nothing changed?
Take a try with the printer troubleshooter:
Open the Printer troubleshooter
Also see if the below thread could help:
Local Printing with
Remote Desktop not working: Windows 7 Pro 32-bit & MS Server 2003
Best regards
Michael Shao
TechNet Community Support -
Auditing number of rows Insert/Update/Delete
Hi,
We have turn on auditing on our database (audit=db), but we don't know where to find the numbe of rows processed by each DML.
Does anyone have an idea ?
Thank's
Regard.
Edited by: user5774759 on Sep 14, 2011 2:50 AMTo check all the DML statements you have to set the Fine-grained-auditting(FGA) .
For you have to set the triggered against the statements .
http://vishwanath-dbahelp.blogspot.com/2011/09/setting-fga-at-schema-level.html
let me know if u face any problem .
Hope this help you :)
--neeraj -
How to get last insert/update/delet row of a table?
I hava a table A and table B which is a copy of A. I want to create a trigger to record the changes of A in B. So every time inserting/updating/deleting A I record the row inserted/updated/deleted in B, But I can't find a effiencial way to get the latest row changed.
So is there any sys_var in oracle table like cur_rowid or something to record the latest inserted/updated/deleted in a table? I don't want to check a index or a table to get the max_seq_id again.user11228816 wrote:
I hava a table A and table B which is a copy of A. I want to create a trigger to record the changes of A in B. So every time inserting/updating/deleting A I record the row inserted/updated/deleted in B, But I can't find a effiencial way to get the latest row changed.
So is there any sys_var in oracle table like cur_rowid or something to record the latest inserted/updated/deleted in a table? I don't want to check a index or a table to get the max_seq_id again.Sounds like an ugly requirement, any reason you're not going for materialized views or advanced replication here? -
Issues in Table with Multi-Row Insert
I have created a master detail screens using jheadstart on 2 separate pages, Master in the Form layout and detail in the Table Layout with multi-row insert, update and delete flags ON. Have set the New Rows count = 2.
Issue 1
If I try to delete any existing rows, it gives error for new rows saying value is required for the mandatory fields. It should just ignore the new rows if I have not updated any values for any attributes in the those row(As it does for non Master-Detail Table layout). I guess this might be happening because the jheadstart code is setting the foreign key for new rows the detail, but not resetting the status of the rows back to INITIALIZED.
I also noticed that the create() of underlying EO is getting called for those blank rows when I click on 'Save' button, even if I have not changed any data in those rows.
Issue 2
When I try to select the new rows also for deletion, I am getting a '500 Internal Server Error' with following stack trace... This is also happening for normal (non Master-Detail) Table layout.
java.lang.IllegalStateException: AdfFacesContext was already released or had never been attached. at oracle.adf.view.faces.context.AdfFacesContext.release(AdfFacesContext.java:342) at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:253) at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
Issue 3
I have put some validation code in the validate() method in the MyEntityImpl.java class.
The validate method seems tobe getting called lots of times, in my case 20 times, where the new rows are just 2.
Environment:
Jdeveloper 10.1.3, JHeadStart 10.1.3 build 78, Windows XP
thanksThanks for the reply.
Issue 1:
What I have observed that in case of multi-row select enabled tables, the blank rows do not have any data. This is because the EO's create() method is called only when we post the data using 'Save' button. Thus the Foreign Keys are also not setup. This is a correct behavior since create() and FK setups etc should get done only if the user has inputted any value in the new rows and thus intend to insert new data into the table.
I am able to find the exact cause of this issue. It is happening because in the details table, I have a column which needs tobe shown as checkbox. Since we can only bind checkbox to an Boolean attribute in VO, I have created a transient attribute of type Boolean, which basically calls the getter/setter of actual attribute doing the String "Y"/"N" to true/false conversion. Here is code for the transient attribute getter/setter
public Boolean getDisplayOnWebBoolean() {
return "Y".equals(getDisplayOnWeb()) ? Boolean.TRUE : Boolean.FALSE;
public void setDisplayOnWebBoolean(Boolean value) {
if(Boolean.TRUE.equals(value))
setDisplayOnWeb("Y");
else
setDisplayOnWeb("N");
Now when I click on the "Save" button, the setter for the boolean field is getting called with the value = false and this is resulting into the row being maked as dirty and thus the validation for the required attributes is getting executed and failing.
Issue 2:
Confirmed that correct filter-mapping entries are present in the web.xml.
Now when I select the new blank rows for deletion and click save, following exception is thrown:
java.lang.ClassCastException: oracle.jheadstart.controller.jsf.bean.NewTableRowBean at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.getRowsToRemove(JhsCollectionModel.java:412) at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.doModelUpdate(JhsCollectionModel.java:604) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.processModelUpdaters(JhsPageLifecycle.java:541) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.validateModelUpdates(JhsPageLifecycle.java:571)
thanks - rutwik -
Multi row insert or Batch execute via OLE DB?
Hi all,
This is my first posting and thanks for answering my questions.
I would like to know if there is a way to do multiple row insert to an oracle table via OLE DB or .NET technology. Currently, we are using the JDBC connection and that technology has a very handy method called: PrepareStatement which allows us to execute a batch of insert in one go.
However, we have to switch to the OLE DB camp but I could not find the PrepareStatement equivalent method in OLE DB that allows me to execute a batch of command. My understanding is, in OLE DB, I can create a ADO.command object and assign it with an Insert Statement and then assign parameters which are the input values. However, it looks like I have to exeucte the command one at a time instead of adding them into a batch command like what PrepareStatement does.
I am fairly new to OLE DB. Can you tell me if there is a way to execute a batch of insert command in a more efficient manner? Or is there a way in .NET or ODP.NET or ADO.NET? Either OLE DB or .NET route is good for us.
Thanks for the input.
Michael
P.S. I am using Oracle 10g with OraOLEDB.Oracle as the OLE DB data providerHi,
See the site http://www.geocities.com/oledbpro/docs/examples/multiprocs.htm I think it is better to use parameterized insert/update statement to complete the work for the fastest speed.
Yuancai (Charlie) Ye
See 30 OLEDB samples
Use of free SocketPro for creating super client and server applications
www.udaparts.com -
Insert/Update/Delete Non-PO Invoice Line Item via FM/BAPI?
Does anyone know of a way to insert/update/delete an Invoice Line item (Non-PO Accounting Invoice - Transaction FB60 or FV60) using a BAPI or Function Module (or set of function modules) using ABAP? I have been trying to find some code to accomplish this and am stuck on a couple of issues.
I have found PRELIMINARY_POSTING_FB01 and PP_CHANGE_DOCUMENT_ENJ but both seem to submit the details to background processes. This is an issue because it gives the user a success message after execution but later delivers the error to Workflow. This is for an interfacing program so the results should be as real time as possible.
Has anyone accomplished this via FM or BAPI and if so would you mind sharing your experiences?
Thank you very much,
AndySG- Thank you for the reply.
I have been playing with BAPI_INCOMINGINVOICE_PARK and I'm not sure if it is doing exactly what we want, but it is something that I have considered in the past. I plan on looking into BAPI_ACC_INVOICE_RECEIPT_POST this morning, hopefully that will provide some more for us.
If possible I'd like to avoid BDC sessions because this program could hypothetically interface with multiple SAP systems with different configurations.
I will check into those FM's and thank you very much. -
How to display the result of excutions(insert/update/delete rows)
Hello.
Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
In additional, I also like to show the hierarchy of scenario in the same view.
So, I need the query using the information of the ODI repository.
If it is possible, I also like to have the decription of the tables in the ODI repository.
Can anyone tell me how can I get the information of the counts of excution?
Thanks in advance.Hi,
You can get that information from the API getPrevStepLog. Does it work for you?
Download the last API reference manual from:
http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs -
How can perform insert /update /delete in one single mapping.
Hi,
I want to is there any logic by which we can create 2-3 pipeline in a mappings like pipelines will work for insert / update /delete or storing soem rejected data according to conditional flag.
I tried it in a mapping but problem is that when target load order is like ins then upd then delete/reject . if new rec will come then control will pass through ins target . but if rec needs to update or delete then again control is going to ins target not update / delete target.
We have already given the all conditional flags in filter after lookup and before target .
all possibilities we checked but didnt got success.
last option is separate the mappings for insert / update/delete.....etc.
Is there any solution for this type of problem.
reply plz if any body have solutions.
---UmeshHi Umesh,
I understand from your query that you want to load target with insert, update and delete rows after runnng the mappping...
If you are looking for the same then you can use one of the Oracle fetures Oracle Streams: Change Data Capture.
the Url is:
http://www.oracle.com/technology/products/bi/db/10g/pdf/twp_cdc_cookbook_0206.pdf
If any other help required do reply.
Regards
Tarang Jain -
I have read a few posts that mention a multi-row-insert but I can't find it.
There is a multi row update and a multi row delete.
I am using html db 1.6. We will be upgrading after we get this version of our app up and running, but don't want to take time out for the upgrade right now.
Is multi_row_insert new to Application Express 2.0?
Thanks,
GregoryNo, the multi row insert is not new to 2.0
The builtin MRU processes handle multi-row updates and multi-row inserts. However, the default Add Rows process that the wizard creates on a tabular form does create only 1 blank row when you click the Add Row button. To increase this, just open the Add Rows process page and change 1 to a different number. -
Is there any way of providing Multi Row Inserts in a single region.
I am looking for a way to add several records at once in a table format, much like the multi row update functionalty.
Is this possible?Can you use an OUTPUT clause? See examples
MERGE INTO dbo.Customers AS TGT
USING dbo.CustomersStage AS SRC
ON TGT.custid = SRC.custid
WHEN MATCHED THEN
UPDATE SET
TGT.companyname = SRC.companyname,
TGT.phone = SRC.phone,
TGT.address = SRC.address
WHEN NOT MATCHED THEN
INSERT (custid, companyname, phone, address)
VALUES (SRC.custid, SRC.companyname, SRC.phone, SRC.address)
WHEN NOT MATCHED BY SOURCE THEN
DELETE
OUTPUT
$action AS the_action, deleted.custid AS del_custid, inserted.custid AS ins_custid;
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
BC4J/UIX Multi Entity insert/update
Hi!
Problem
Is it possible to insert simultaneously both master and detail BC4J row with single UIX page? I would like to use standard UIX if possible with minimal java, but examples with java would be also helpful.
Example
This seems to be a very simple situation. Has anybody solved it?
In my case I have one generic Document table and additional attributes tables for different kinds of documents like for instance LicenseDocument. Those tables are connected with Document table with 1 to 0..1 relationship and their foreign key to the Document table is also their primary key.
I like the way that BC4J Tester works and I don't know how to make UIX work the same way.
When I use BC4J Tester it assigns the Document table inserted but not yet committed rows primary key (DBSequence) column temporary negative values and I can insert child records that are associated with it. After commit the Document primary key is fetched from the database sequence and all the foreign keys in other tables get updated accordingly.
When I use UIX I don't get those temporary IDs and so I can't create child records before the master record is committed. This is not good as I can't roll back the whole creation of the LicenceDocument.
References
I started by posting this topic to UIX forum (BC4J Multi Entity insert/update but maybe someone here knows the solution.
Thanks in advance!
Mihkel N�ges
[email protected]I managed to workaround the issue in UIX by not using DBSequence type but fetching the sequence value in EntityImpl create method (as in Steve Muench's Techiniques demo project http://radio.weblogs.com/0118231/stories/2003/07/11/codeSampleIllustratingVariousBc4jProgrammingTechniques.html ):
DocumentImpl.java:
protected void create(AttributeList attributeList)
super.create(attributeList);
// Do this last so we don't waste any sequence numbers unnecessarily
SequenceImpl seq = new SequenceImpl("DOCUMENT_ID_SEQ",getDBTransaction());
setId(seq.getSequenceNumber());
For some reason the sequence gets asked twice for every row creation. Thats not a big problem, but in the SequenceImpl javadoc this is discussed and as I understand it should not happen.
Maybe you are looking for
-
Is there a software program that automatically save stills from a QT video?
Just wondering if there's any software out there that will automatically save stills from a QT video? There's a program called Image Grabber by Cliprex that does this but it only works on PC's. You run it and it makes like 100 imge captures from the
-
BUG: Large floating point numbers convert to the wrong integer
Hi, When using the conversion "bullets" to convert SGL, DBL and EXT to integers there are some values which convert wrong. One example is the integer 9223370937343148030, which can be represented exactly as a SGL (and thus exactly as DBL and EXT as w
-
Premier element 8 capture panel is not working
I have premier element 8. try to capture the video. i can click on the Capture icon (red dot icon) fine to start recording. However, i cannot stop the recording, try to click pause the recording but the pause option is gray out. all other function
-
I hope that somebody has the same problem because I have a cutomer in Hosted mod that has the 100% of Authors Cuote full but he canno delete any member. It´s unlogical!!! Obviously if the quote used is 100% you cannot add members but it´s obvious tha
-
Dear all, I have searched for some relevant threads but could not find the required so..posting my requirement here. I am newbie to Java, trying to attend courses on java. various Java training institutes have broken J2SE into Core Java and Advanced