<; Cfquery >; insert generates the double entry
Nobody knows, why might a 'insert into' generates a double entry on a SQL table?
I use it in other routines and programs successfully, but in this specific programme is to be rebellious, generating two entry with the same content.
Please, I would like to know if anyone has the same problem or what I am doing wrong?
I appreciate all help.
Dan,
Thanks, for your help, I use something similar to work around, but I had to know why this happens, it is true that I ' m a novice here, but this is the 1st time I am facing this kind of problem with insert. You have an idea what causes this behavior?
Once again thank you,
Tags: ColdFusion
Similar Questions
-
How to change the DML processes in Assistant APEX generated the data entry form
I created a standard form of the APEX on a table using the wizard of the APEX. Now, I added a new element to the page. How to change the DML insert statement to take care of this new item? any ideas are appreciated.
Thank you
SuryaFor the new item, just keep the type of Source as the "column of the database" and give the name of the column (the column for a new item name) under the "Source value or expression.
See you soon,.
Hari -
Generate the lines duplicated when running report script
Hello
The following script report works very well. But it generates the double set of lines.
* {TabDelim} {ROWREPEAT} {SUPMISSINGROWS} {SUPHEADING} *.
* < Page (HSP_Rates, YEAR, SCRIPT, VERSION, CURRENCY) *.
HSP_InputValue Fy11 Budget WORK Local
* < COLUMN (PERIOD) *.
* < DIMBOTTOM PERIOD *.
* < ROW (ENTITY, ACCOUNT) *.
* < DIMBOTTOM ENTITY *.
* < DESCENDANTS "NET INCOME."
!
OUTPUT:
HSP_InputValue FY11 EXERCISE WORK Local
ENTITY1 100 GROSS INCOME
TAX ENTITY1 10
ENTITY1 100 GROSS INCOME
TAX ENTITY1 10
Help, please.Probably, you have several hierarchies / shared members in the dimension of your entity or account. Try to use
Moreover, I think that you edited your post but initially mentioned trying to remove 'ROWREPEAT '. Just ROWREPEAT determines if consecutive lines with the same Member of a dimension displayed the name of the Member several times, or on the first line of the group only.
-
The version of DB is 11.1.0.7.
The 'CATALOGUE START WITH' not only added the backup set that are not in the RMAN catalog, but also added a second copy of files that are already in the catalog.
The files are not a second copy; they are the same file in the same directory.Having two copies of the catalogue, by mistake when you explicitly delete the backups.
We must add the force clause to avoid the error.
RMAN > delete backup FORCE tag "off site-1';The clause of power ignores any IO error.
The removal is part of our regular off-site backup script, which returns a false positive error when the clause is omitted.
I don't want the clause, in order to be informed if the backup set that are supposed to be on the disk is not here, for example, if someone had removed the files manually at the level of the BONE without using rman.Is there a way to backup the catalog only not listed in the catalog?
or maybe delete the copy entry #2 of the catalog?Find below an example test scenario:
RMAN > list backup tag summary "off SITE-1';
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
12. A DISC 11 JUNE 13 09:41:45 1 1 NO OFF SITE-1
13. A DISC 11 JUNE 13 09:43:31 1 1 NO OFF SITE-1
14. A DISC 11 JUNE 13 09:43:33 1 1 NO OFF SITE-1
15. A DISC 11 JUNE 13 09:43:34 1 1 NO OFF SITE-1RMAN > CATALOGUE START WITH "C:\backups\offsite_disk\IBISdatabase\scheduled_offsite";
the search for all files that match the pattern C:\backups\offsite_disk\IBISdatabase\scheduled_offsite
...
cataloging done
List of cataloged files
=======================
File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\06OBTJEP_1_1
File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\07OBTJI3_1_1
File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\08OBTJI5_1_1
File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\09OBTJI6_1_1RMAN > list backup tag summary "off SITE-1';
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- ------------------ ------- ------- ---------- ---
12. A DISC 11 JUNE 13 09:41:45 1 2 NONE OFF SITE-1
13. A DISC 11 JUNE 13 09:43:31 1 2 NONE OFF SITE-1
14. A DISC 11 JUNE 13 09:43:33 1 2 NO OFF SITE-1
15. A DISC 11 JUNE 13 09:43:34 1 2 NONE OFF SITE-1RMAN > DELETE BACKUP TAG "off SITE-1';
List backup items
BP key BS Pc # Cp # status Type room nom_peripherique
------- ------- --- --- ----------- ----------- ----------
24 18 1 1 AVAILABLE DISK C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 < <-same file
30 18 1 2 AVAILABLE DISK C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 < <-same file
25 19 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
31 19 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
26 20 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
32 20 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
27 21 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1
33 21 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1remove the item from backup
= RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 backup piece handle = STAMP 24 = 821470356
remove the item from backup
= RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1 backup piece handle = STAMP 25 = 821470356
remove the item from backup
= RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1 backup piece handle = STAMP 26 = 821470356
remove the item from backup
= RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1 backup piece handle = STAMP 27 = 821470357
6 objects deletedRMAN-06207: WARNING: 4 items could not be removed for DISC due channels
RMAN-06208: status do not match. Use the OVERLAP command to set status
RMAN-06210: list of relevant objects
RMAN-06211: =.
RMAN-06212: filename/Type object Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 of backup
RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1 of backup
RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1 of backup
RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1 of backupHello
List of Files Unknown to the Database ===================================== File Name: /oracle/product/10.2.0/db_2/dbs/hc_db10g.dat File Name: /oracle/product/10.2.0/db_2/dbs/initdb10g.ora File Name: /oracle/product/10.2.0/db_2/dbs/lkDB10G File Name: /oracle/product/10.2.0/db_2/dbs/.initTestDB.ora.swp File Name: /oracle/product/10.2.0/db_2/dbs/snapcf_db10g.f Do you really want to catalog the above files (enter YES or NO)? no
Here you can see the database says 'Unknown files to the Database list' and then asks to added above files. These files are of no use to the RMAN. So I went no.. But the backup in the directory file is cataloged twice already, but watch copy 1 when asked of RMAN. Probably, it might be a bug and it is advised to increase SR with oracle to resolve the problem.
Thank you!!
-
Results of the research double entry!
Hello! This strange behavior occurs when I generate a .chm and use my main project directory (or a subdirectory) as the output folder for the. chm. If I use the search function in the .chm finish, I get double entries for each topic and one of each work.
Ah, but if I create a folder up one level to my main project folder and use that as my output folder... any double search results. If I use Desktop as my output destination... no problem. As long as my output folder is not the same or contained in my main project folder, the search .chm behaves as it should and returns only single entries for each topic.
I have several projects that use the same general directory structure, and I usually exit the .chm in a directory called "Deliverables" for each project separately. No other projects have this particular research problem.
I've seen as a sort of associates article in which deleting files that begin with "rlt" solve a similar problem. No such files exist in the project directory. I poked through the different files that generates relative humidity for the project and did not see anything that looks like, it could cause this weird problem.
So yes, I have a workaround... but I wouldn't need one. Anyone know what is happening here? And how to fix it?Problem solved... Pete Lees taken look closer the .chm in question and found several links to topics 'upstream' - subjects above the main directory of the project, and is not in the .hhp file in the see also list. Fix links solved the problem... Thanks Pete!
However, I still wonder why HR created duplicates of 'missing' and discarded topics in the .chm file, where it could not be considered as part of the .chm but found if you used one of the utilities .chm. Who doubled the file size unnecessarily, which originally was my first clue that something wonky was going on.
-
I am running Windows Vista Ultimate Edition and Adobe Acrobar 8.
Whenever I print a document in PDF format, the PDF document is generated correctly.
Unfortunately, it also generates an error entry in the Adobe PDF print queue. At each system restart Windows Live One Care detects errors and ask me to fix.Hello Pino Sannicolo,
Try to check your print to the printer settings. Right-click on the printer, and then click Properties. Click the Advanced tab and then click on "print directly to printer". Dave D
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
The double blackBerry Smartphones calendar entries...
OK, I'm often in duplicate calendar entries. I have my BB sync my calendar google and google calendar my wife so the value. We do not have double entries on Google Calendar, but when it syncs, the BB doubles as a large number of appointments.
Any ideas for help?
Hello!
This is a Ko that may be useful:
See you soon!
-
Schedule of blackBerry Smartphones - sync results in double entries on the device
When I sync with Desktop Manager, calendar entries in the device are not recognized, and as a result, it attempts to load all meetings to Outlook again. How to eliminate double entry?
The fastest solution is to WIPE the device and then re-sync. Of course if you also have a wireless sync turned on and then continue to use the Desktop Manager software via USB, that cause you too might some problems. Unfortunately, that's the quickest short to delete one by one in your email contacts software. It would be well if there was a VB Script there would be delete duplicate, but there still should be very clever, because many users may have duplicate entries in it contacts.
-
I'm trying to insert HTML on my site, but receive following message "unable to generate the thumbnail. What does that mean?
Hello
Please check the following thread
HTML insert option does not not on muse adobe?
Let me know if you have any question.
-
Insert/update of the XML help merge and to generate the sequence number
Hello
I'm working on Oracle 11 g.
I have a doubt with loading XML.
I get an xml and I need to insert or update data in a table. What I can accomplish by using the MERGE statement.
But there is a column in A table, I need to fill with a sequence number, based on the data sent in the xml file.
The XML does not send the data in this column.
And I have to make sure that sequence is created according to the order in which the records are present in xml.
For example the MERGER is insert five rows and update two lines and insert again 3 rows of xml in table A. The sequence number must be created in the same order for the column in the table.
Also for every new XML, the sequence starts with 1 and ends with the number of records in the xml file. I can't create a sequence and use the seq.nextval.
Please let me know, there is a way to achieve this.
Thank you!
Published by: 934451 on 8 August 2012 06:33
Published by: 934451 on 8 August 2012 06:50Hello
As a result of your previous thread: {: identifier of the thread = 2403469}
You can use the clause for ORDINALITE in XMLTable to generate the necessary sequence:
MERGE INTO target_table t USING ( SELECT x.seq_num, x.pk_id, x.col1, x.col2, ... FROM XMLTable( '/root/record' passing my_xml_doc columns seq_num FOR ORDINALITY , pk_id number path 'ID' , col1 varchar2(30) path 'COL1' , col2 varchar2(30) path 'COL2' , ... ) x ) src ON ( t.pk_id = src.pk_id ) WHEN MATCHED THEN UPDATE SET t.seq_num = src.seq_num , t.col1 = src.col1 , t.col2 = src.col2 , ... WHEN NOT MATCHED THEN INSERT (seq_num, pk_id, col1, col2, ...) VALUES (src.seq_num, src.pk_id, src.col1, src.col2, ...) ;
-
How to generate the script to insert data tables present in a
How to generate the script to insert data from one table in an entire schema under environment sqlplus
with toads it please help me please!905310 wrote:
How to generate the script to insert data from one table in an entire schema under environment sqlplus
with toads it please help me please!The correct method by using the pump of the database or import/export or unload the data in CSV format for loading using SQL * Loader.
Generate instructions insert with literals is very bad choices - the bind variable is missing. It will be quite slow because many other CPU cycles are spend on hard analysis. The shared pool will become fragmented. This can cause errors of memory for other applications when they attempt to analyze SQLs for cursors.
-
Stuck in the stage Listener entry in the DOUBLE OF RAC databases
I'm trying to reproduce a new db production db RAC RAC with RMAN.
I'm done with the following steps:
(1) prod backup database with rman
(2) copy init file and entries to not taking into account parameters of rac...
(3) create a password for the new db file
now, I'm stuck at step 4) create a static Earphone for your new database and reload the listener as the case may be.
This step is necessary because a double RMAN uses an auxiliary database which lies in no Assembly and therefore will not automatically register with the other as specified by local_listener, remote_listener and or by default, 1521.
For example:
(SID_DESC =
(GLOBAL_DBNAME = rman.colestock.test)
(ORACLE_HOME = u03/app/oracle/product/db/10.2)
(SID_NAME = rman2)
)
The foregoing is digital, that I got.
However I'm very confused here:
First of all, on the RAC server, I added entry sid at the bottom of the listener.ora. and the tnsnames entry looks like this:
ABC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1528))(HOST = xxxxxx76))
(ADDRESS = (PROTOCOL = TCP) (HOST = xxxxxx 77)(PORT = 1528))
)
(CONNECT_DATA =
(SERVICE_NAME = abc_service)
)
)
How can I add a sid entry in the tnsnames.ora file? Since I assumed first, create a single database not cars, what do I have to place name service_name or sid?
Another confusion is how to charge the listener? Since it is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. I have to stop and start listner by svrctl stop the dynamic listener?
Please if you can, provide the procedure detailed here how create static listener tnsnames entry and entry of listener on a CCR environment and then reload the listener.
I have to finish the duplication of this weekend. So, any help will be greatly appreciated.
Thank you in advance.user569151 wrote:
I'm trying to reproduce a new db production db RAC RAC with RMAN.I'm done with the following steps:
(1) prod backup database with rman
(2) copy init file and entries to not taking into account parameters of rac...
(3) create a password for the new db file
now, I'm stuck at step 4) create a static Earphone for your new database and reload the listener as the case may be.
This step is necessary because a double RMAN uses an auxiliary database which lies in no Assembly and therefore will not automatically register with the other as specified by local_listener, remote_listener and or by default, 1521.For example:
(SID_DESC =
(GLOBAL_DBNAME = rman.colestock.test)
(ORACLE_HOME = u03/app/oracle/product/db/10.2)
(SID_NAME = rman2)
)The foregoing is digital, that I got.
However I'm very confused here:
First of all, on the RAC server, I added entry sid at the bottom of the listener.ora. and the tnsnames entry looks like this:
ABC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP (PORT = 1528))(HOST = xxxxxx76))
(ADDRESS = (PROTOCOL = TCP) (HOST = xxxxxx 77)(PORT = 1528))
)
(CONNECT_DATA =
(SERVICE_NAME = abc_service)
)
)How can I add a sid entry in the tnsnames.ora file? Since I assumed first, create a single database not cars, what do I have to place name service_name or sid?
Another confusion is how to charge the listener? Since it is a RAC server, two nodes has two listenrs: abc_listener1, abc_listener2. I have to stop and start listner by svrctl stop the dynamic listener?
Please if you can, provide the procedure detailed here how create static listener in tnsnames entry and
tnsnames.ora contains no information on the listener.
entry of listener on a CCR environment and then reload the listener.
http://www.lmgtfy.com/?q=Oracle+LOCAL_LISTENER
-
How to filter the form entries before inserting into the database?
Hello Adobe Forums,
This is my first post and im a beginner with dreamweaver. I have created two forms on my site, one for messages (contact form) and the other for the testimony. I used the server behavior record insert to insert the record into the database, and then display the record in my administration area. What I want to do is to make sure that nobody can put the code in one of the entries, and if they do then to strip out code before its insertion in the database. Anyone know how I can do this? I'm not a coder I just use dreamweavers Insert menu, but I can change the code if somone told me what to do and where.
Thanks in advance
Dang - sorry-
foreach ($_POST as $key-online $value) {}
-
Find double entries in the Table.
Hello!
Suppose I have a table in which double values entered mistakely, now I want to select/Search these entries.
e.g. student with values double rollno and year as rollno etc. table 1 and 1 and year like 2010, etc.
now, please tell me select query that displays all of the double values with the same rollno and year.
Thank you and best regards!Kami_Lily wrote:
Hello!Suppose I have a table in which double values entered mistakely, now I want to select/Search these entries.
e.g. student with values double rollno and year as rollno etc. table 1 and 1 and year like 2010, etc.
now, please tell me select query that displays all of the double values with the same rollno and year.Thank you best regards &!
You can use the analytical function of the COUNTY.
with student_tbl as ( select rollno, year, count(*) over(partition by rollno, year) cnt from student ) select rollno, year from student_tbl where cnt > 1
Or just the count aggreagate function
select rollno, year from student group by rollno, year having count(*) > 1
-
Hey gurus,
I am trying to generate the XML code next to the double, however, I get an error message indicating that my higher level is not set. Any ideas? Thank you!
< PUDOOUTPUT >
< PKG >
< > 12345 SHIPMENTID < / SHIPMENTID >
< ERROR > 'NO DATA' < / ERROR >
< ERRORTEXT > "" error: could not find alias sender in SPL_SHIPPER_ACCOUNTS. "< / ERRORTEXT >"
< / PKG >
< / PUDOOUTPUT >
Select xmlelement ("PUDOOUTPUT", xmlelement ("PKG", xmlelement("SHIPMENTID",i.shipmentid),
XmlElement ("ERROR", "NO DATA")
XmlElement ("ERRORTEXT", "error: could not find the sender aliases in SPL_SHIPPER_ACCOUNTS.'")))
in p_wms_output
Double;It works on 10.2.0.3
select xmlelement("PUDOOUTPUT",xmlelement("PKG",xmlelement("SHIPMENTID",123456), xmlelement("ERROR",'NO DATA'), xmlelement("ERRORTEXT",'Error: Cannot find shipper alias in SPL_SHIPPER_ACCOUNTS.'))) from dual;
I suspect the question is because you have "i.shipmentid" in your SQL statement you have to table with an alias of 'I' in your SQL statement. Do you mean something like l_shipmentid as a variable from your PL/SQL code?
Maybe you are looking for
-
Several specific windows occur at random.
I met several pop - ups on a regular basis. Not only they redirect me by clicking on the links, they can appear click anywhere. I have links related to Star Trek, Fire Fox, & Flash more often. I uninstalled Fire Fox and it deleted all related records
-
HP Touchsmart 15: BIOS password laptop laptop 15-f010wm
One of my employees locked themselves on their laptop by setting a power on password in BIOS, that was forgotten afterwards. The "System off" code is 53837198. Help, please! Thank you!
-
VLAN greyed, cannot be changed
We have a Netgear GS108PEv3 which is installed in a remote office. It has a 802. 1 q configuration as follows: P1, 2, ID no marked 6-10 P3, 4, 7, 8 untagged ID 20 Tag 10 and 20 P5 I need to change the configuration of VLANS. I browsed the Web GUI and
-
About connection on how to log on by typing the user name
What I want to do is to type my username at the start instead of him being there already for security reasons.
-
Opening of the internet in Wi Fi system eventhough WiFi Net work was count in the TV screen
Dear Sir I bought a week before the BDV 3100 Home Theater system and my house located at Thane, Maharashtra, 400604 India.Demo this system is on the way. I find for operating a Wi - Fi connection to open in TV thro this need for home theater WPA Key.