cannot insert data into the PRODUCT_USER_PROFILE table
I've connected to the database as the sysdba, which is installed on VMWARE. database is oracle 11g.whenever I insert data in the table PRODUCT_USER_PROFILE that the database returns 1 row inserted and then when I try to show everything on the table before or after the statement commit is made the database returns "No. LINES SELECTED.
guys any idea about this problem...
Hello
Try to connect as a system and make the insert and check. Always think about the issue.
-Pavan Kumar N
Oracle 9i / 10g - OCP
http://oracleinternals.blogspot.com/
Published by: pounet on January 4, 2010 16:29
Tags: Database
Similar Questions
-
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 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;
-
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
-
How to insert the legacy data into the QP_RLTD_MODIFIERS table?
How insert Legacy data into the QP_RLTD_MODIFIERS table in the instance of R12.
I would use the QP_Modifiers_PUB API. Process_Modifiers to push the old data on prices in R12. QP_RLTD_MODIFIERS is only used for certain types of discounts (in my prod environment, only the promos are given in this table).
-
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. *
-
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 -
How to insert 10,000 records test data into the emp table
Hi I am new to oracle can someone please help me write a program so that I can insert the test data into the emp tableSELECT LEVEL empno, DBMS_RANDOM.string ('U', 20) emp_name, TRUNC (DBMS_RANDOM.VALUE (10000, 100000), 2) sal, DBMS_RANDOM.string ('U', 10) job, TO_DATE ('1990-01-01', 'yyyy-mm-dd') + TRUNC (DBMS_RANDOM.VALUE (1, 6000), 0) hiredate, CASE WHEN LEVEL > 10 THEN TRUNC (DBMS_RANDOM.VALUE (1, 11), 0) ELSE NULL END mgr, TRUNC (DBMS_RANDOM.VALUE (1, 5), 0) deptno FROM DUAL CONNECT BY LEVEL <= 10000
-
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.
-
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/ -
ADF progress indicator to insert the data into the file table.
I have a requirement where the progress bar should indicate the percentage of completion to insert the data into the tables of database files in a given folder path. I found an article that explains how to get the progress indicator when downloading a file in
http://www.gebs.ro/blog/Oracle/Oracle-ADF-progress-indicator-in-Fusion-Middleware-11g/. I believe that I must first get the total number of files in the folder and then begin to compare with the number of files that are inserted into the table similar to what is done by downloading (getting the file size and download size), but I don't know how to do this. Can anyone help?May be that this example allows you to
* 042. Dynamically change the color of progress bar based on its current value *.
http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/index-101235.html
-
Inserting data in the nested table
I explore the differences between the OBJECT and RECORD.
As I'm still learning, I found that both are structures which essentially brings together different elements of types of different data or columns of data types, one is used in SQL and other is used in PL/SQL, please correct me if I'm wrong in my understanding.
Below, I am trying to insert data into an array of type object, but I can't can you please help.
CREATE OR REPLACE type sam as OBJECT ( v1 NUMBER, v2 VARCHAR2(20 CHAR) ); ---Nested Table--- create or replace type t_sam as table of sam; --Inserting data---- insert into table(t_sam) values(sam(10,'Dsouza'));
Error message:
Error starting at line 22 in command: insert into table(t_sam) values(sam(10,'Dsouza')) Error at Command Line:22 Column:13 Error report: SQL Error: ORA-00903: invalid table name 00903. 00000 - "invalid table name" *Cause: *Action:
Ariean wrote:
So the only purpose of the equivalent concept of SQL types of nested tables is to use one of the data types when you define an actual table?
So-you can certainly use more that a simple "set an actual table. (I'm fairly certain that you can pass a table nested within a procedure, for example - try it, though - I'm not 100% sure on that - it just 'logic'.) If you can define a type, you can use it, pass it around, whatever.).
Ariean wrote:
And this nested table could be a record in SQL or object in PLSQL or simple data type (varchar number, etc.)?
Nested tables are just like any other type of custom data. You can create a nested table of other types of data. You can create a custom of nested tables data type.
Stupidly, he could become... uh, stupid O_0
CREATE TYPE o_myobj1 AS object ( id1 number, cdate1 date ); CREATE TYPE t_mytype1 AS table of o_myobj1; CREATE TYPE o_myobj2 AS object ( id2 number, dumb t_mytype1 ); CREATE TYPE t_dumber AS table of o_myobj2;
O_0
OK, my brain is starting to hurt - I hope you get the idea
Ariean wrote:
Second is my understanding correct any OBJECT & RECORD?
I see no benefit to describe another way.
-
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.
-
Error inserting data into the database of JSF
Hi all
I have a form and a button of validation. I created the form using the editable view object created on an entity object. When the student has table (base table of data in which I have to enter data) was empty, I managed to insert the data into the table.when I run the same second time application it shows data that I entered previously. But iam able to modify this data and insert the new record again. What should I do so that it does not show the data I already inserted previously when I run again. I think that iam missing something. Please suggest.
Thank you.Here are two ways to achieve the same thing:
-If you use taskflows, you can add createInsert action as activity by default and then have a navigation from this at the registration page so that the creation form will be shown on the loading of the page. As a result, you can directly enter and validate.
-If not, have binding action createInsert in your pagedef and add an executable invokeAction for the same thing with prepareModel so that the registration form empty appears when loading the pageJean Lou
-
Inserting data in the PLSQL table
Hello
I'm trying to create a table of records and try to insert some data into it. But it is throwing error when compiling. Can someone help me solve the problem. My procedure is:
create or replace
procedure 'IL_BAL_CAL_PROC' is
type il_bal_cal_acc_tab_rec is record (GID_NO VARCHAR2 (4), REG_CODE VARCHAR2 (2), VAC VARCHAR2 (10), BRANCH_CODE VARCHAR2 (4), CTL VARCHAR2 (4), OPEN_DT DATE, RECORD_STAT VARCHAR2 (1), CLOSE_DT DATE);
type il_bal_cal_acc_tab_type is table of the il_bal_cal_acc_tab_rec;
il_bal_cal_acc_tab il_bal_cal_acc_tab_type:=il_bal_cal_acc_tab_type();
BEGIN
-first approach
insert into il_bal_cal_acc_tab values('12');
--deuxieme approach
/ * Insert in il_bal_cal_acc_tab
Select p_gidno,
p_region,
a.ACC,
a.brncd,
a.CCY,
a.accopendt,
a.record_stat,
NULL as closdt
stvws_cust_account_if a.,
b stvws_branch_dates,
sttms_account_class c,
sttms_dda_maininfo d
where a.acc = d.customer_account
and a.brncd = b.branch_code
and b.branch_code = d.branch_code
and a.account_class = c.account_class
and a.accopendt < trunc (to_date(b.today,'dd-mon-yy'), 'mm')
and a.record_stat = 'O'
and I'm c.dda_account_type <>'
and a.auth_stat = 'A'
and d.region_code = p_region
Union
Select p_gidno,
p_region,
a.ACC,
a.brncd,
a.CCY,
a.accopendt,
a.record_stat,
c.closdt
stvws_cust_account_if a.,
b stvws_branch_dates,
stvws_cust_ac_closure_if c,
sttms_dda_maininfo d
where a.acc = c.ac_no
and c.ac_no = d.customer_account
and a.brncd = b.branch_code
and b.branch_code = c.branch_code
and c.branch_code = d.branch_code
and a.record_stat =' it
and c.closdt > = trunc (b.today, 'mm')
and d.region_code = p_region;
commit; * /
END;
Please tell me how to insert data into tables of this kind?I generally do like this
CREATE OR REPLACE PROCEDURE "IL_BAL_CAL_PROC" IS CURSOR cur_il_bal_cal_acc_tab_type IS SELECT p_gidno, p_region, a.acc, a.brncd, a.ccy, a.accopendt, a.record_stat, NULL AS closdt FROM stvws_cust_account_if a, stvws_branch_dates b, sttms_account_class c, sttms_dda_maininfo d WHERE a.acc = d.customer_account AND a.brncd = b.branch_code AND b.branch_code = d.branch_code AND a.account_class = c.account_class AND a.accopendt < TRUNC (TO_DATE (b.today, 'dd-mon-yy'), 'mm') AND a.record_stat = 'O' AND c.dda_account_type <> 'M' AND a.auth_stat = 'A' AND d.region_code = p_region UNION SELECT p_gidno, p_region, a.acc, a.brncd, a.ccy, a.accopendt, a.record_stat, c.closdt FROM stvws_cust_account_if a, stvws_branch_dates b, stvws_cust_ac_closure_if c, sttms_dda_maininfo d WHERE a.acc = c.ac_no AND c.ac_no = d.customer_account AND a.brncd = b.branch_code AND b.branch_code = c.branch_code AND c.branch_code = d.branch_code AND a.record_stat = 'C' AND c.closdt >= TRUNC (b.today, 'mm') AND d.region_code = p_region; TYPE il_bal_cal_acc_tab_type IS TABLE OF cur_il_bal_cal_acc_tab_type%ROWTYPE INDEX BY BINARY_INTEGER; il_bal_cal_acc_tab il_bal_cal_acc_tab_type; BEGIN OPEN cur_il_bal_cal_acc_tab_type; FETCH cur_il_bal_cal_acc_tab_type BULK COLLECT INTO il_bal_cal_acc_tab; CLOSE cur_il_bal_cal_acc_tab_type; END;
Maybe you are looking for
-
Portege 7200: Need a compatible CD - RW burner
Hello I bought the portege above of the laptop 7200 on ebay and have no problem with him, but no one knows if its possible to upgrade the dvd rom to a CD - RW burner. Don't know if I got this right, I use a lot of karaoke midi files.I thought it woul
-
CLIQ: contact and Facebook
How do you synchronize your contacts and facebook so that your contacts is their facebook photo? Thank you for your help.
-
I bought this HP laptop a couple of months with Windows 8 operating system. I did everything but stand on my head a s * t apples little green to download and put in place the Cyberlink2go on this computer. I get the NEED TO upgrade in the updates fr
-
error code 5004: 0 x 80070002 during installation of Oblivion
Hello. I try to install the game Oblivion. I get the 5004: 0 x 80070002 error code. Error info > SetupDLL\SetupDLL.cpp extra (3085)PAPP: OblivionSoftworks PVENDOR:Bethesda (http://www.bethsoft.com)PGUID:35CB6715-41F8-4F99-8881-6FC75BF054B0$11.0.0.288
-
No field of entry password during installation or removal of a program.
Original title: removal and programs installations When I try to install a game or remove a program computer requires admin password but will not let put me in the password - ideas please?