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 know
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
-
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.
IngoHi,
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, -
Insert/Update/Delete in forms6i using Objects table in Oracle9i server
I am using Oracle 9i server and dev 6i (forms6i).
i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
Please help.
I will be thankful to you.
M. Faisal.user563114,
As James (padders) told you in his reply to a similar question that you posted (Typed tables is treated in the same way as a relational table?) in the Typed tables is treated in the same way as a relational table? forum, the only way you can tell for sure is to try it out both ways, measure and compare the times.
Of-course, there are many factors that effect the time, apart from whether you use a nested table or a regular table.
Good Luck,
Avi. -
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 -
Concept insert,update,delete and select
hi all, i want to ask
Where I get an explanation of the concept of work process insert, update, delete and select records. From the user starts the query until accessing records the physical . or is there that can give the picture of concept process insert,update,delete and select record??I'm not sure what are you asking here.
Are you asking how do I do these operations in a JDeveloper built application? Which technologies are you using?
Have a look at this tutorial for the basics of how to do select/update - insert and delete are two more operations you can add to your page from the data control:
http://www.oracle.com/technology/obe/obe11jdev/ps1/ria_application/developriaapplication_long.htm -
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. -
Insert statement is not working for z table.
Hi experts,
My insert statement is not working.
I have used follwing code to update z table .
INSERT ztable FROM TABLE gt_table.
here i have checked gt_table and its filled up with all the records properly.
now the problem is in this table i have 15 fields and it inserts 14 fields of it but
the last field is never inserted though in gt_table i can see value for last fields also.
I have added this field in ztable recently . so i also used se14 to adjust table but still i am facing same problem.
please help me out.
thanks,
Neo> > Table maintainance will have nothing to do with
> this
> > issue.
>
> It does sometimes when you are trying to see the
> values from SM30 instead of SE16. The value may be
> there, but it may just not seen in SM30 because the
> table maintenance hasn't registered the addition of
> new field.
>
> Another place to look at is the activation log to see
> if there are any warnings issued there.
You shouldn't use SM30 to view table entries. You use this transaction to maintain the table entries. Pure and Simple. -
hi,
i have ztable
mandt key field
ztest1 key field
ztest2 key field
ztest2 non key field
when i'm trying to modify any key field, MODIFY keyword is actually adding a new record in the Database. it is because the new combination of key fields is unique.
i tried using update statement . Update is not working as the combination key is creating a new record which is not present in Db and hence , its not updating.
do we have any workaround on this ??
if i update the key field same field should be updated with other fields intact
please help.key field means unique record.
if u try to change a key field it will add a new entry.
to an existing entry with a key combination u can change only the non-key fields.
else u need to delete the record combination and add the new combination. -
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 -
Using Case statement to insert,update,delete the tables
Hi All,
I have to check the databse ,
if it is developement then
insert/update/delete values in tables;
if it staging then
insert/update/delete values in tables;
if it is production then
insert/update/delete values in tables;
thers is function available to check the current database
For doing the about i am trying to write CASE statement like this
SELECT function,
case
when fun = 'developement' then insert into table1 values ('abcd','1234')
when fun = 'staging' then insert into table1 values ('abcd','1234')
when fun= 'production' then insert into table1 values ('abcd','1234')
else null
from dual
its throughing me an error
please help
Thanks,Hi,
You can use CASE staement any place where an expression is expected.
For example, in:
UPDATE table_a
SET col1 = exp1
, col2 = exp2
WHERE exp3 = exp4;all the expressions are labled lke expn.
Note that table_a, col1 and col2 are not expressions: you must hard-code these names, or use dynamic SQL.
So it's okay to say:
UPDATE table_a
SET col1 = CASE
WHEN db = 'development' THEN 0
WHEN db = 'staging' THEN 1
END
, col2 = CASE
WHEN db = 'development' THEN NULL
WHEN db = 'staging' THEN col2
END
WHERE db != 'production';In this example:
in the development database, col1 is set to 0 and col2 is set to NULL
in the staging database, col1 is set to 1 and col2 is unchanged (that is, set to what it already was)
in the production database, nothing is changed (the WHERE condition is always FALSE) -
As i am fresher Please share the doc of ECMA script using java script in SharePoint 2013 step by step also how we can insert,update,delete records in list using ECMA script.
Thanks and Regards, Rangnath MaliHi,
According to your post, my understanding is that you want to use JavaScript to work with SharePoint list.
To create list items, we can create a ListItemCreationInformation object, set its properties, and pass it as parameter to the addItem(parameters) function
of the List object.
To set list item properties, we can use a column indexer to make an assignment, and call the update() function so that changes will take effect when you callexecuteQueryAsync(succeededCallback,
failedCallback).
And to delete a list item, call the deleteObject() function on the object.
There is an MSDN article about the details steps of this topic, you can have a look at it.
How to: Create, Update, and Delete List Items Using JavaScript
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Db adapter insert/update/delete output variable
Hi
How can I know how many records have been updated after an insert/update/delete operation done using the db adapter?
I was looking for an output variable to use in the invoke activity of a partnerlink created using the db adapter wizard (update operation), but seems not possible to associate an outpout variable. the update operation is a one way operation. So, what could I do to know how many records was updated?
thanks bye PaoloThe input variable specifies the records to be updated/inserted. If you count these ones, you know how many have been updated. Otherwise the Invoke will fail.
Marc -
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?
Maybe you are looking for
-
Unable to create a new tcp/ip connection in sm59
Hello Friends, We are trying to connect genesys cti gplus adapter to SAP ERP. While testing new tcp/ip RFC Connection in SM59 , the connection test failed. Error Details: Logon : Connection error Error Details Error when ope
-
Hi. I'm making a form for work for people to book places on training courses. Having an annoying problem with variables that i'm hoping has a simple solution. Any help with this will be much appreciated. All the info is held in an external text file
-
Need Sample API code to update Quote Line level Unit Selling Price alone.
Hi, i want to update Unit Selling Price alone using API, can any one have sample code to do that. ASO_QUOTE_PUB.Update_Quote_Line Thanks! Kishore
-
Audio stereo level adjustments
Hi...I'm working on an edit with just two audio tracks, L + R, audio and video loaded straight from the camera via Log and Transfer. I have needed to adjust audio levels up and down to what's happening on the video and the only way I can do this is b
-
Warning message about ClassNotFoundException in a new web project
- Eclipse 3.3M6 - Web Tools Platform 2.0M6 Hello, everybody! I created a Dynamic Web Project using JSF and JPA, but I'm getting the following warning message in the Problems view: Classpath entry org.eclipse.jdt.USER_LIBRARY/Biblioteca JPA will not b