Statement INSERT INTO stuck, do not insert data
8174 (former ancient db) version on Solaris 8Below work was running fine, until toady, nothing seems to have changed, no idea how to solve this problem? I check all the tablespace/file system, made the switches of the logfile etc and checked alert logfile, no idea yet...
SQL > select count (*) FROM findata.averion_etc_mapping_v;
COUNT (*)
----------
26352
SQL > select count (*) in the findata.etc_pjtran_summary;
COUNT (*)
----------
0
SQL > @updpjtran.sql;
SQL > SET FEEDBACK ON
SQL >
SQL > SPOOL /u06/users/db/oracle/updpjtran.lis
SQL >
SQL> -- =============================================================================================================
SQL >-Script:
SQL >-author: EOKALI
SQL >-Date: July 1, 2008
SQL >-reason: calls PC to update the value of the quantity of Deltek data in the PJTRAN table
SQL >--
SQL >--
SQL >--
SQL >-changes
SQL >-version: < X.X.XX >.
SQL >-change number: change source control number >.
SQL >-change Date: DD-MON-YYYY >.
SQL >-author of change: author of modification of the source code >.
SQL >-change Desc: Description of modification of the source code >.
SQL >-change Params: NewCode = < YES/NO >
SQL >-ModifyCode = < YES/NO >
SQL >-DeleteCode = < YES/NO >
SQL >-SingleChange = < YES/NO >
SQL >-GlobalChange = < YES/NO >
SQL> -- =============================================================================================
SQL >
SQL >
SQL> -- ============================================================================================================
SQL >-time
SQL> -- ============================================================================================================
SQL >--
SQL > SELECT TO_CHAR (SYSDATE, ' DD/MM/YYYY HH24:MI:SS') "Todays Date and time is:
2 double;
Today's Date/time is
-------------------
13/06/2012-13:30:33
1 selected line.
SQL >
SQL> -- ============================================================================================================
SQL >
SQL >-moved from script to FINSBO1 box
SQL >
SQL >-UPDATE findata.averion_pjtran_cp
SQL >-amount FIXED = units * findata.averion_calclaborrate_mod (company_id empl_id proj_id, laborclass, trans_date)
SQL >-WHERE source = 'DELTEK.
SQL >
SQL >-COMMIT;
SQL >
SQL> -- ============================================================================================================
SQL >-update the summary table for the tool ETC. necessary for the performance summary table
SQL> -- ============================================================================================================
SQL >
SQL > DELETE FROM findata.etc_pjtran_summary;
0 rows deleted.
SQL >
SQL > COMMIT;
Validation complete.
SQL >
SQL > INSERT INTO findata.etc_pjtran_summary
2 (project,
3 seqnum,
etc_activity 4,.
5 actualhrs,
actualamt 6,.
7 budgethrs,
8 budgetamt)
9. SELECT
Project 10,
11 seqnum,
etc_activity 12,
13 findata.etc_pkg.acthrs_byactivity (project, seqnum) acthrs,
14 findata.etc_pkg.actamt_byactivity (project, seqnum) actamt,
15 findata.etc_pkg.bdgthrs_byactivity (project, seqnum) bdgthrs,
16 findata.etc_pkg.bdgtamt_byactivity (project, seqnum) bdgtamt
17 FROM findata.averion_etc_mapping_v
18 project GROUP, seqnum, etc_activity;
DBA2011 wrote:
8174 (former ancient db) version on Solaris 8
Tough - very old version. I must rememeber what will work in v8...
From your post, I understand that the INSERT locks just without activity - a new development. Nothing has changed since the last sucessful run? If so, then what?
Some ideas of related questions:
1. can you run the SQL by itself without the INSERT to see if the SELECTION is the problem? If so how long does it take?
2. is the locked table?
3. is there that expect everything from events that occur during the insertion process?
4. how much time do you expect it to end?
Later: what part was right?
Published by: riedelme on June 13, 2012 12:10
Tags: Database
Similar Questions
-
Dreamweaver server behaviors, can not insert data into the database
Hi, I tried to use server behaviors to add registration information in my database in my registration page.
(1) that I created a login page, and it works very well. This means that connections and the connection works fine database so it can match the record in my database.
(2) but when I tried to download the news in the form of database, it does not work. When I clicked on the service behavior to double check the action "insert data", it always jumps the error message: "When executing inspectserverbehavior in InsertRecord.htm, a javascript error occurred."
I copied my code below. Except the form code and a little jquery is written by me, most of the code generated by Dreamweaver.
<? php require_once('Connections/MAMPPRO.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via PHP_VERSION < 6) {}
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
}
$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);
Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
$editFormAction = $_SERVER ['PHP_SELF'];
If (isset {}
$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
}
If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Register_Form")) {}
$insertSQL = sprintf ("INSERT INTO"user identity"(Ui_LastName, Ui_Email, Ui_FirstName, Ui_Password) VALUES (%s, %s, %s %s)", ")
GetSQLValueString ($_POST ['Register_Firstname'], "text").
GetSQLValueString ($_POST ['Register_Lastname'], "text").
GetSQLValueString ($_POST ['Register_Email'], "text").
GetSQLValueString ($_POST ['Register_Password'], "text"));
@mysql_select_db ($database_MAMPPRO, $MAMPPRO);
$Result1 = mysql_query ($insertSQL, $MAMPPRO) or die (mysql_error ());
$insertGoTo = "LoginSuccessful.php";
If (isset {}
$insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
$insertGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $insertGoTo));
}
@mysql_select_db ($database_MAMPPRO, $MAMPPRO);
$query_Recordset1 = "SELECT *"IDENTITY of the user;"
$Recordset1 = mysql_query ($query_Recordset1, $MAMPPRO) or die (mysql_error ());
$row_Recordset1 = mysql_fetch_assoc ($Recordset1);
$totalRows_Recordset1 = mysql_num_rows ($Recordset1);
? >
<! doctype html >
< html >
< head >
< meta charset = "UTF-8" >
Registeration < title > < / title >
"< link href="jquery-mobile/jquery.mobile-1.3.0.min.css "rel ="stylesheet"type =" text/css">
"< script src="jquery-mobile/jquery-1.8.3.min.js "type =" text/javascript"> < / script >
"< script src="jquery-mobile/jquery.mobile-1.3.0.min.js "type =" text/javascript"> < / script >
< / head >
< body >
< div data-role = 'page' id = "registrationpage" >
< div data-role = "header" >
< h1 > welcome! < / h1 >
< h1 > register yourself! < / h1 >
< / div >
< data-role = 'content' div > < / div >
< do action = "<?" PHP echo $editFormAction;? ">" method = "POST" id = "Register_Form" name = "Register_Form" >
< p >
< label > Email < / label >
< input name = "Register_Email" type = "email" required id = form register_email = "Register_Form" title = "Register_Email" >
< label > < br >
Password < / label >
< input name = "Register_Password" type = "password" required id = form register_password = "Register_Form" title = "Register_Password" value = "" >
< /p >
< p >
< label > name < / label >
< input name = "Register_Lastname" type = "text" required id = form register_lastname = "Register_Form" title = "Register_lastname" value = "" >
< label > < br >
First name < / label >
< input name = "Register_Firstname" type = "text" required id = form register_firstname = "Register_Form" title = "Register_Firstname" value = "" >
< /p >
< name of entry = "MM_insert" type = 'submit' form 'Register_Form' value = 'Registration' = >
< input type = "hidden" name = "MM_insert" value = "Register_Form" >
< / make >
< a href = "index.php" data-role = "button" > return to connection < /a > "
< div data-role = "footer" >
footer < h4 > < / h4 >
< / div >
< / div >
< / body >
< / html >
<? PHP
mysql_free_result ($Recordset1);
? >
Finally I found the problem.
It seems in my setting, MAIL does not work in live mode DW. But if moved to any explores, it works fine.
Adobe really needs to improve its management of PHP.
-
READ the events when you insert data into a CLOB to waiting
Hello people,
I too read waiting for IO (db file sequential read) on a CLOB, when data is inserted, and I don't understand why.
Statement:
INSERT into TABLE (< all columns list >) values < list of all values >;
Duration:
between 250ms and 500ms, so much is too long by far
Location:
* Database 11 GR 2 (11.2.0.3.0) Standard Edition on Linux (OEL 5) x86_64
* Usually, I have about 200 of these inserts in a single transaction. Thus, generally such a transaction is open for at least 50 seconds.
* This is an OLTP environment, so I can't drop indexes or constraints 'before' loading, in fact I'm loading and reading the table all the time.
* Insertion happens simultaneously by multiple Java threads, all in France via JDBC thin driver.
* The table is not partitioned (Standard Edition).
* The table contains < 7 million lines.
* I can't ADD, because the table is served in a logical way, and I do not have maintenance windows to rearrange segments.
* There are a lot of NON NULL and check constraints simple insertion-value based on the table, but only SINGLE (as part of the numeric primary key) constraint.
A column is a CLOB, but there is no constraint on the CLOB column.
What I have done:
Raised the execution plan. Here it is:
------------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Begins | Cost | A - lines. A - time | Pads | Bed | Written |
------------------------------------------------------------------------------------------------------------
| 0 | INSERT STATEMENT. 1. 1. 0 | 00:00:02.75 | 5064 | 840. 2.
| 1. LOAD TABLE CONVENTIONAL | 1 | | 0 | 00:00:02.75 | 5064 | 840. 2.
------------------------------------------------------------------------------------------------------------
I tried to find out where all this runtime will, so I enabled level 12 10046 for this SQL tracing and tkprof analysis shows:
Elapsed time are waiting on the following events:
Event waited on times max wait for the Total WHEREAS
---------------------------------------- Waited ---------- ------------
DB file sequential read 61 0.01 0.29
direct path write 30 0.01 0.00
direct path read 15 0.00 0.00
= > So now I know where my runtime is spent on: reading!
The raw trace file says:
WAITING #139690535902720: nam = 'db file sequential read' ela = 8514 file No. = 5 block #= blocks 16950925 = 1 obj #= tim 84425 = 1354644922207564
WAITING #139690535902720: nam = "Write direct path" ela = 376 of file = 5 first dba = 16956449 block cnt = 1 obj #=-1 tim = 1354644922208331
WAITING #139690535902720: nam = 'db file sequential read' ela = 321 file #= 5 block #= blocks 16956449 = 1 obj #= tim 84425 = 1354644922208727
WAITING #139690535902720: nam = "direct path read" ela = 216 number of file = 5 first dba = 16956449 block cnt = 1 obj #= tim 84425 = 1354644922208998
WAITING #139690535902720: nam = "Write direct path" ela = 375 folder = 5 first dba = 16956449 block cnt = 1 obj #= tim 84425 = 1354644922209458
WAITING #139690535902720: nam = 'db file sequential read' ela = 5471 file #= 5 block #= blocks 8907590 = 1 obj #= tim 84422 = 1354644922215025
EXEC #139690535902720:c = 2999, e = 18440, p = 4, cr = 14, cu is 38, SIG = 0, r = 1, dep = 0, og = 1, plh = 0, tim = 1354644922215246
"STAT #139690535902720 id = 1 cnt = 0 pid = 0 pos = 1 obj = 0 op ='LOAD TABLE CONVENTIONAL (cr = pr 14 = 4 pw = 2 time = 16415 US)"
OUTCOME #139690535902720:c = 0, e = 17, dep = 0, type = 1, tim = 1354644922216200
obj #= 84425 is my CLOB
Now my question:
Why my reading INSERT a CLOB so heavily when inserts a row of data in my table?
I wasn't able to find out, please share your thoughts.
If you need more/other information, let me know.
I thank very you much in advance!
Best regards
Martin Klier
Principal, s/nPlease check MOS note:
Insert a LOB has bad performance; ARM reads in the Top 5 of the wait events [ID 1291494.1] -
Doubt about inserting data into a table
Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
Thanks in advance!SQL> DECLARE 2 3 V_A NUMBER; 4 5 V_B NUMBER; 6 7 v_message varchar2(25); 8 9 10 BEGIN 11 12 13 select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ; 14 15 select regal.regal_inv_landed_cost_seq.currval into V_B from dual ; 16 17 INSERT INTO rcv_transactions_interface 18 ( 19 INTERFACE_TRANSACTION_ID, 20 HEADER_INTERFACE_ID, 21 GROUP_ID, 22 TRANSACTION_TYPE, 23 TRANSACTION_DATE, 24 PROCESSING_STATUS_CODE, 25 PROCESSING_MODE_CODE, 26 TRANSACTION_STATUS_CODE, 27 QUANTITY, 28 LAST_UPDATE_DATE, 29 LAST_UPDATED_BY, 30 CREATION_DATE, 31 CREATED_BY, 32 RECEIPT_SOURCE_CODE, 33 DESTINATION_TYPE_CODE, 34 AUTO_TRANSACT_CODE, 35 SOURCE_DOCUMENT_CODE, 36 UNIT_OF_MEASURE, 37 ITEM_ID, 38 UOM_CODE, 39 EMPLOYEE_ID, 40 SHIPMENT_HEADER_ID, 41 SHIPMENT_LINE_ID, 42 TO_ORGANIZATION_ID, 43 SUBINVENTORY, 44 FROM_ORGANIZATION_ID, 45 FROM_SUBINVENTORY 46 ) 47 48 SELECT 49 regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_ id 50 V_A, --Header Interface ID 51 V_B, --Group ID 52 'Ship', --Transaction Type 53 sysdate, --Transaction Date 54 'PENDING', --Processing Status Code 55 'BATCH', --Processing Mode Code 56 'PENDING', --Transaction Status Cod e 57 lc.quantity_received, --Quantity 58 lc.last_update_date, --last update date 59 lc.last_updated_by, --last updated by 60 sysdate, --creation date 61 lc.created_by, --created by 62 'INVENTORY', --Receipt source Code 63 'INVENTORY', --Destination Type Code 64 'DELIVER' , --AUT Transact Code 65 'INVENTORY', --Source Document Code 66 msi.primary_uom_code , --Unit Of Measure 67 msi.inventory_item_id, --Item ID 68 msi.primary_unit_of_measure, --UOM COde 69 fnd.user_id, 70 V_A, --Shipment Header ID 71 V_B, --SHipment Line ID 72 82, --To Organization ID 73 'Brooklyn', --Sub Inventory ID 74 81, --From Organization 75 'Vessel' --From Subinventory 76 77 FROM 78 regal.regal_inv_landed_cost_tab lc, 79 fnd_user fnd, 80 mtl_system_items msi 81 82 WHERE 83 lc.organization_id = msi.organization_id 84 AND lc.inventory_item_id = msi.inventory_item_id 85 AND lc.created_by = fnd.created_by; 86 87 commit; 88 v_message := SQL%ROWCOUNT; 89 dbms_output.put_line('v_message'); 90 END; 91 / v_message PL/SQL procedure successfully completed. SQL> select * from rcv_transactions_interface; no rows selected
There is no problem with inserting data!
Only there is no data! This means that your select statement retrieves no rows.
You can see the output of your program (0). This means that there where no line in the result set.Please check the output of your tax return independently:
SELECT -- regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_id -- V_A, --Header Interface ID -- V_B, --Group ID 'Ship', --Transaction Type sysdate, --Transaction Date 'PENDING', --Processing Status Code 'BATCH', --Processing Mode Code 'PENDING', --Transaction Status Code lc.quantity_received, --Quantity lc.last_update_date, --last update date lc.last_updated_by, --last updated by sysdate, --creation date lc.created_by, --created by 'INVENTORY', --Receipt source Code 'INVENTORY', --Destination Type Code 'DELIVER' , --AUT Transact Code 'INVENTORY', --Source Document Code msi.primary_uom_code , --Unit Of Measure msi.inventory_item_id, --Item ID msi.primary_unit_of_measure, --UOM COde fnd.user_id, -- V_A, --Shipment Header ID -- V_B, --SHipment Line ID 82, --To Organization ID 'Brooklyn', --Sub Inventory ID 81, --From Organization 'Vessel' --From Subinventory FROM regal.regal_inv_landed_cost_tab lc, fnd_user fnd, mtl_system_items msi WHERE lc.organization_id = msi.organization_id AND lc.inventory_item_id = msi.inventory_item_id AND lc.created_by = fnd.created_by;
Published by: hm on 13.10.2011 23:19
I removed the references of the sequence and the variables V_A and YaeUb.
BTW: Why do you want to include V_A and YaeUb in two different columns?The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.
-
Insert data into Oracle DB from MS Access Forms
Dear professionals,
How to insert data into the table that reside in the Oracle DB through MS Access forms?
We have already created ODBC link tables Oracle allows you to select data, and it works.
Unfortunately, we can select only the data, but insert, delete and update are not available via MS Access form, even if the user has all permissions on the oracle DB (grant select, insert, update, delete on oracle_table to access_user).
driver: Microsoft ODBC for Oracle
MS Access 2003
Oracle DB 10.2
THX in advance,
AdnanOne would need to know what means "not available". You get a specific error? As far as I know your statement is simply incorrect.
There are perhaps incompatibilties between DLLs Microsoft and Oracle, I would avoid the Microsoft ODBC for Oracle driver like the plague!---------
Sybrand Bakker
Senior Oracle DBA -
Cannot insert data into the database
Hello world
I stuck with a problem in DB juice. When I try to insert data into the database using DB tool, I get a repeated error message (error 1). Please find the my vifile below and solve say.
Problem is use Labiew 8.2. So try to answer accordingly
Try it with a cluster instead of a string or an array.
-
Insert data into another database with a script
Hello.
What is the best way to insert data into one database with a script
INSERT INTO BF_PRUEBASMTP.bf_mtp_agr_inscription (ain_agreementid, ain_customerid, ain_paymethodsid, ain_servicemoduleid, referencia)
SELECT AAG. AAG_AGREEMENTID, ACU. ACU_CUSTOMERID, 2, 2, ins. NUMERO_REFERENCIA
OF BF_PRUEBASMTP.bf_mtp_agr_biller ABI
JOIN IN-HOUSE
BF_PRUEBASMTP. BF_MTP_AGR_AGREEMENT AAG ON ABI. ABI_BILLERID = AAG. AAG_BILLERID
INNER JOIN 'CLIENTEUNICO. ALMUERZO" ins
ON THE AAG. AAG_AGREEMENTID = ins. CONVENIOID
INNER JOIN BF_PRUEBASMTP.bf_mtp_agr_customer ACU
ON ACU.acu_typedocumentid = ins. TIPO_DOCUMENTO
AND ACU.acu_numberid = ins. NUMERO_DOCUMENTO;
CLIENTEUNICO. INSCRIPCIONES = SELECT * DE INSCRIPCIONES - to a DIFFERENT DATABASE
Thank you very much.
2931095 wrote:
If I don't have permissions to create a database link. Is there another way to do this?
Thank you.
link to database IS the method by which an Oracle database accesses to a different database.
If you are the ADMINISTRATOR, you should have permission.
If you are not the ADMINISTRATOR, you should not have permission and need to talk to the ADMINISTRATOR that is allowed.
-
Insert data into the source of destinator Table
Hi all
Need to insert data in sample_table1 table xxc_source_table sample_table2
create table xxc_source_table (DESCRIPTION varchar2 (10));
Insert the table xxc_source_table values('A201.) ABC.4084.GR');
create table sample_table1 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10));
create table sample_table2 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10), moved_flag varchar2 (2));
col_1 = A201
col_2 = ABC
col_3 = 4084
col_4 = GR
Note: Insert data into the col_1, the col_3, the col_4 of the xxc_source_table sample_table1
(2) if the next (form xxc_source_table) data is exist in the sample_table2, and then set the moved_flag as Y in this column
3) xxc_source_table has 17000 lines
Thank you.
Post edited by: Rajesh123 please do not consider cross the line message
Hi Renon,
Why you don't want substr and instr? For best performance, you should go with substr and instr instead of regexp_substr. However you asked me to provide the code instead of substr and InStr. Then try the below...
INSERT ALL
IN VALUES sample_table1 (col1, col2, col3, col4)
IN sample_table2 VALUES (col1, col2, col3, col4, 'Y')
SELECT REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 1) col1,.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 2) col2.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 3) col3.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 4) col4
OF xxc_source_table;
Thank you
Ann
-
What trigger to use to insert data into the table db forms
Hello
My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
Is - shutter release key of the form-level validation?
Please notify.
Thank you
Didi.You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.
Hi didi.
And this is my last post I'll sleep. ;)
Take form level trigger named preform
and write on it:SYSTEM.MESSAGE_LEVEL := 5;
I hope this works...
Hamid
Mark correct/good to help others to get the right answers. *
-
Insert data into the same table based on certain conditions
Hello. I'm new to this forum.
I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:
Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:
1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then
CurrentInstallment = CurrentInstallment + 1
2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...
So, I have to insert data by incrementing the month and year. for example:
If currentdata is 11/2012 next data will be 12/2012
But following will be 01, 2013
I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.
How to achieve that?
Thank you.978184 wrote:
Hello. I'm new to this forum.
I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:1. if PaidAmount > 0 & CurrentInstallment
CurrentInstallment = CurrentInstallment + 1
2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...
So, I have to insert data by incrementing the month and year. for example:
If currentdata is 11/2012 next data will be 12/2012
But following will be 01, 2013
I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).You can do this way:
This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.
insert into your_table (col1, col2, col3...current_installment, month_field) select col1, col2, col3.., current_installment + case when paidamount > 0 and current_installment < total_installment then row_number() over ( partition by column1, column2,.. columnn -->You may choose partition if you want the --Increment of Current_installment to reset after particular combination ends order by primary_key -->Order the Increment, you may choose to add more columns to order by ) else 0 --> if condition is not met, then Add 0 end curr_installment, add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month from your_table;
-
How to insert data into the table by using the expression builder in the assign activity
How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
Can someone help me pleaseHello
I don't think that oraext:query-database() can insert data into the table.
What are your needs?
Can not you plan to use the DB adapter with the insert operation?Kind regards
Neeraj Sehgal -
Insert data into the table particular
Hello
I have a requirement to insert data from table from Oracle 10 g to Oracle 9i table.
The pom_code table should be filled with gr_product table based on a specific schema of codes - i.e. If POM Code corresponds to a specific model, then it must belong to a specific company.
FROM :: Oracle 10g database gr_product pr_code varchar2(20 byte) pr_desc varchar2(80 byte)
To :: Oracle 9i database pom_code code varchar2(12 byte) desc varchar2(100 byte) companyid Number
Thank you1. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =10 a. <one digit><.><two digit><alphabet> ex code: 1.01A b. <one digit><.><two digit><alphabet><space><two alphabet> ex code: 1.01B ZF 2. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =20 a. <two digit><.><one digit><alphabet> ex code: 10.1A b. <two digit><.><one digit><alphabet><space><two alphabet> ex code: 10.5A HR 3. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =30 a. <alphabet><.><two digit><alphabet> ex code: B.42A b. <alphabet><.><two digit><alphabet><space><two alphabet> ex code: N.10B AT
SandyHello
The CASE expression I posted earlier does what you want?
If so, please mark the thread as "answered".
If this isn't the case, after a complete script that people can run to recreate the problem and test their ideas. Includes TABLE of CASH and INSERT statements for some examples of data for all the tables, the results you want from these sample data and your request (or INSERT statement) using the CASE expression. Report where the code you posted does not have what you need and explain how to get good results in these places. -
inserting data into a temporary table
I want to do something like session and I decided to use the temporary table. But when I try to insert data that has no past. This is my trigger when-pressed key code:
declare
total_col number (18.0);
varchar (100) of the author.
title varchar (200);
price number (18.0);
Start
Select BOOK_AUTHOR, BOOK_TITLE, BOOK_PRICE by author, title, price from BOOKS where BOOK_ID =: BOOKS. BOOK_ID;
insert into orders_tmp (author, title, price) values (author, title, price);
commit;
Select total in total_col total_amount where t_id = (select max (t_id) total_amount);
: SUB_CATEGORY. AMOUNT: = total_col;
end;
the first line of the selected data of the block, 2nd insert into the temporary table. 4th line selected the last column in a temporary table and dispalying in etiquette. When the trigger is activated, I have an ORA-01403 error.
Help, please.
Edited by: 863470 2011-09-06 06:50I decided to use the temporary table
Can you show how you created your temporary table (ie., show us your DML Table statement)? Without knowing how you have set your temporary table, we can really offer you suggestions. ;)
declare
total_col number (18.0);
varchar (100) of the author.
title varchar (200);
price number (18.0);
Start
Select BOOK_AUTHOR, BOOK_TITLE, BOOK_PRICE by author, title, price from BOOKS where BOOK_ID =: BOOKS. BOOK_ID;
insert into orders_tmp (author, title, price) values (author, title, price);
commit;Select total in total_col total_amount where t_id = (select max (t_id) total_amount);
: SUB_CATEGORY. AMOUNT: = total_col;
end;This is more work than it should be. A much simpler and more elegant method is:
/* Sample When-Button-Pressed trigger */ BEGIN INSERT INTO orders_tmp (author, title, price) SELECT BOOK_AUTHOR, BOOK_TITLE, BOOK_PRICE FROM BOOKS WHERE BOOK_ID = :BOOKS.BOOK_ID; ... Rest of your code here... END;
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
-
How to insert data into the database using smartview
Hello
I am trying to insert data into the database using * "Send data" * button on the Ribbon of Essbase.
My database is empty.
I opened an ad hoc network, it returns * "#missing" * in all cells
I have modified the cells and provided data in the cells that I want to. Now, I supported on * "Send data" * button.
It just reloaded the adhoc grid instead of submit data, I rechecked the data through data console Administrative Service are not inserted.
I am following the right way to insert data? If not, could you please suggest me how (Populate) insert default data in the database?
--
VINETYou go about it the right way, once you have submitted if you réactualisiez then data values should be there, if you POV is against members of dynamic calc and then data not written to the database, you need to check the Member properties of your POV.
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to insert data into the BLOB column
Hi all
Can someone help me to insert data in the BLOB data type column?
The structure of the table is
CREATE TABLE XXATFL_DM_FORCAST_STG
(
TASK_ID NUMBER,
USER_ID NUMBER,
CREATED_BY NUMBER (15),
CREATION_DATE DATE,
LAST_UPDATED_BY NUMBER (15),
DATE OF LAST_UPDATE_DATE,
LAST_UPDATE_LOGIN NUMBER (15),
RECORD_STATUS VARCHAR2 (1 BYTE),
ERROR_MESSAGE VARCHAR2 (4000 BYTE),
DATA_FILE BLOB
)
I want to insert data into the column DATA_FILE. and this insert statement inside a procedure.
Please help me as soon as possible because it is very urgent for me
Thank you and best regards,
CharrierCharrier,
If you form the string yourself, you can use the function utl_raw.cast_to_raw on your channel.
http://download.Oracle.com/docs/CD/B12037_01/AppDev.101/b10802/u_raw.htm#997086
sql> create table t( 2 id number, 3 l_blob blob 4 ); sql> insert into t values(1, utl_raw.cast_to_raw('SampleString')); 1 row created. sql> commit; Commit complete.
Maybe you are looking for
-
Consult the history of last year?
I'm trying to find out what are the sites that I was on a year ago, but keeps it single story followed up to 6 months. Is it possible to recover the history a year ago?
-
batch in separate folder report
Hello I have a requirement where all reports batch to be store in a separate folder as where reports of the UUT is stored. Can help a whole on into that? regads, River V
-
HP deskjet 1512: hp deskjet 1512
I was able to set up my printer very well but can not find a way to print in black only. I want to print slide shows that have some pictures that are in color, but I don't want to print in color. is it possible to print only in black and white, unles
-
Is hola: Mi Window 7 don't is actualiza desde el 23/06/2010 y ahora estamos a 7-07 - 2010.Encuentro than a pasado mucho tiempo, hago click en buscar mas plots y no me quiere find new plots. I floor the situation porque el computador should actualizar
-
Hi all My father gave me his T60, type 2007WXS with a 512 MB ATI X 1300 and a Core Duo T2400, after he bought a new T430s. I just installed Windows 7 on it, she gets a 3.5 WEI. In any case I was watching upgrades of the processor, and it needs a new