The execution of the trigger, 01403 error. 00000 - "no data found".
Hi guys, Pl/Sql
When we try to run after initiation, as 01403 error. 00000 - "no data found".
Trigger is
CREATE OR REPLACE TRIGGER SYNC_OUGR_USER_ADDRESS
AFTER INSERT ON OUGR_USER_ADDRESS FOR EACH LINE
DECLARE
P_CD_ADDR_TYPE OUGR_USER_ADDRESS. TYPE % CD_ADDR_TYPE;
P_AD_CITY OUGR_USER_ADDRESS. TYPE % AD_CITY;
CITY OF P_NM_NAME. TYPE % NM_NAME;
P_FL_OVERSEAS OUGR_USER_ADDRESS. TYPE % FL_OVERSEAS;
P_AD_COUNTRY OUGR_USER_ADDRESS. TYPE % AD_COUNTRY;
P_TEMP_CITY VARCHAR2 (10);
P_CD_CODE REF_COUNTRY_CODE. TYPE % CD_CODE;
BEGIN
P_CD_ADDR_TYPE: =: NEW. CD_ADDR_TYPE;
P_FL_OVERSEAS: =: NEW. FL_OVERSEAS;
P_AD_CITY: =: NEW. AD_CITY;
P_AD_COUNTRY: =: NEW. AD_COUNTRY;
SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric
SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;
SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;
IF P_CD_ADDR_TYPE ('ma', 'PA') THEN
IF P_TEMP_CITY IS NULL THEN
P_AD_CITY: = P_NM_NAME;
ON THE OTHER
P_AD_CITY: = P_AD_CITY;
END IF;
ON THE OTHER
P_AD_CITY: = P_NM_NAME;
END IF;
IF P_FL_OVERSEAS = "Y" THEN
P_AD_COUNTRY: = P_CD_CODE;
ON THE OTHER
P_AD_COUNTRY: = P_AD_COUNTRY;
END IF;
INSERT INTO OUGR_USER_ADDRESS@TO_GVRS
(ID_ADDRESS,
CD_ADDR_TYPE,
AD_UNIT,
AD_NUM,
AD_STR1,
AD_STR2,
AD_CITY,
AD_COUNTY,
AD_ST,
AD_COUNTRY,
AD_ZIP5,
AD_ZIP4,
FL_AD_RURAL,
FL_OVERSEAS,
TM_STAMP
)
VALUES (: NEW.ID_ADDRESS,)
: NEW. CD_ADDR_TYPE,
: NEW. AD_UNIT,
: NEW. AD_NUM,
: NEW. AD_STR1,
: NEW. AD_STR2,
P_AD_CITY,
: NEW. AD_COUNTY,
: NEW. AD_ST,
P_AD_COUNTRY,
: NEW. AD_ZIP5,
: NEW. AD_ZIP4,
: NEW. FL_AD_RURAL,
: NEW. FL_OVERSEAS,
: NEW. TM_STAMP
);
END SYNC_OUGR_USER_ADDRESS;
/
Greatly appreciate your help in this regard.
Thanks in advance.
Kind regards
REDA
Hi, Raj,
Instead of
SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric
SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;
SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;
You can say:
P_TEMP_CITY: = LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' ')));
SELECT MIN (NM_NAME)
IN P_NM_NAME
OF THE CITY
WHERE ID_TOWN = P_AD_CITY;
SELECT MIN (CD_CODE)
IN P_CD_CODE
OF REF_COUNTRY_CODE
WHERE CD_CODE = P_AD_COUNTRY;
You don't need the double table much in PL/SQL.
When you use an aggregate function (MIN, as above) without a clause GROUP BY, the result set is guaranteed to have exactly 1 row. This also avoids the error (ORA-01422) TOO_MANY_ROWS, which is probably impossible in this example.
Tags: Database
Similar Questions
-
Need to change the standard when error message no data found in a window
Hi all
We have a button in our screen, clicking on, we show a window with details of a record selected in the screen view using master / detail.
But, if I don't have all the data to display, it gives a standard message,
"Request FRM-40350 caused no records to be found" in a separate window,.
And if I click on Ok then the window opens without documents/data.
My requirement is
1. I need to display a custom message (some friendly mesg) instead of mesg standard
2 and the window should not open at all.
I tried to put it with: system.message_level = 5 to remove the standard mesg. But how can we achieve two other requirements.
And this should occur at the level of the blocks not only at the level of the form.
Please suggest me in the present.
Thank you
PavanOK, but you must navigate back to the block you just, otherwise forms wil make sure that the window where the blocks will be displayed first element is placed on.
-
Change the order of the columns does not cause any data found error report
Hello. I have a weird problem (and I'm new to APEX). I have a subregion of report that shows the details of a master record based on the ID of the parent area. When I have everything first to change SQL for the query and apply the changes page works fine. When I go back and change the region > attributes report and use the arrows to change the order of the columns the region then returns:
error report:
ORA-01403: no data found
I tried to change the query so that the columns found in the desired order and who has also not returned no data error. If I go back to my original query (which had 2 fewer columns) the page works again. Then I change to the new query (2 addtl columns), and then it works again, until I have change the order of the columns again. Don't know if it would be serious or not, but one of the columns is a 2 columns of the table concat.
Any ideas would be appreciated, because I'm out of them.
Thank you!
use: Apex 4.0
DB: 10g Exp"807428," Hi
using 4.0 or 4.0.1? Can you reproduce the same problem on apex.oracle.com as well?
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
I was wondering if someone can help troubleshoot me SSO with a VCSA to 6u1 running. PLEEASE! This has been updated about a week ago of 6.0 and had no problems until he decided to collapse Monday. At this time, that we had problems with our domain controllers, I don't know if it was related.
Monday Veeam backup by using a domain account to access VCenter has stopped working. Authentication failure. Try to connect to VCenter WebClient with SSO that weI made for years also failed. Signature as root for web client has as well.
Signature to the C++ client worked for connections without any problem, but really limited what we can do. So I spare the domain and attempted to join without success.
I can sign into the web client with [email protected], you try to join the domain as we did before the results in "Idm client exception: error trying to join AD, code error [31], user..." " - no reference to error 31 anywhere. Yes the username in the form of [email protected]. The computer account has been recreated on the field. Connectivity to the domain controller is fine, because if I put the password wrongly, it tells me that authentication has failed. All services on the VCSA are started with the exception of the function Auto-déployer.
I tried via SSH connected as long as root (it tells me that [email protected] has no shell access) domaine.net/opt/likewise/bin/domainjoin-cli join [email protected] translated by ERROR_GEN_FAILURE [code 0x0000001f], yet once a mistake that relevant results.
I am unable to create beams journal via the web client or via the C++ client, I suspect because space on the VCSA which I was not able to solve. Execution of the VSAN performance monitoring seem to chew place until I turned it off, but haven't found all the resources online as to where to find them or how to remove.
I have a snapshot that was done before I got updated to 6u1 8 days ago, but I'm afraid that everything I have done since then will crumble. This VCenter manages a VSAN production, and I can't get him off.
Please can someone untangle me this mess? With the lack of informative error messages I don't know where to start!
Thank you
B
Woohoo! I finally thought to it.
To start with I've implemented a new VCenter server as a trial, nothing configured, just deploy the iso 6u1. I found that it was not automatically joined to the domain and has attempted to do. SAME ERROR! So the problem is not with VSphere. In recent weeks, we introduced two new DCs R2 2012 and retired from one of our 2008 R2 domain controllers. I closed the DCs 2012 and tried again with only the old DC on the network. It worked! I was able to join the VCSA test to the field, and after a reboot because the button leave available domain.
So I she disjoint and then attempted to join the domain when running wireshark on 2008R2 domain controller's NETWORK card. Then, I grew up a DC 2012R2, waited 10 minutes or so close the 2008R2. Yet once, I ran wireshark but this time on the 2012R2 server's NETWORK card. I compare the results of a successful or not join and I saw that the 2012R2 DC has been a lack of outgoing SMB packets to the VCSA. The Server service is running on the domain controller in 2012, but the Microsoft recommendation has been to change startup srv.sys from automatic to manual on 2012 R2 server. I thought it was odd at the time, but we have changed when we put in place the new domain controllers to meet the BPA. I compared it to the registry setting on the 2008R2 domain controller. which has been set to automatic startup.
So to allow VCSA to join the domain when you get the error 31, cancel it
on your server 2012R2 DCs if it has been applied it causes domain join failure.
Command prompt: sc config srv = auto start
or
Register: HKLM:\System\CurrentControlSet\Services\srv\ from 3 to 2
I hope this saves someone else the time it took me to understand! I guess I can cancel my request for support now...
-
Can I go back to the old look error messages 'server not found '?
After the Firefox 32 update, I noticed that the "server not found" error messages look differently now. I don't like the new look, so I wonder if you know an add-on that restores the old look. I tried to search for him, but I don't know the name of these error messages, so I don't know what search phrase I should use.
Thank you very much for your answer. The solution in the thread link you to seems to be a bit too complicated for me, so I guess I'll have to live with the new error messages (unless the add-on you link is updated to work with latest versions of Firefox, but that seems unlikely). Thank you anyway for your help, however.
-
Cannot connect Windows 7 to the field get error network path not found.
Title: original network path not found
I have a professional Windows 7 Desktop and Windows Server 2008 Standard server. When I try to connect my desktop computer to the domain, I receicve an error "the network not found path. I tried almost all of the solutions found for the search for this error without result. How can I locate the source of this error and fix it?
Hi ECBender,
Thanks for posting the question in the Microsoft Community!
You cannot connect to a domain and the message that the network path was not found.
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the Forum TechNet site:
http://social.technet.Microsoft.com/forums/en-us/category/w7itpro
I hope this helps. If you need additional help, let us know and we would be happy to help you.
-
Hello activity (yet) on Vista 32 bit, I receive a message (at the start). Error loading: \App Data\Roaming\pxma2.dll C\Users\ (my name). Access denied. Please notify.
Hello
Cannot find this file on Google so you probably dodged some software malware and you should do a
very thorough control. Message on how to remove the error message if still it y
After the audits of malware.If you need search malware here's my recommendations - they will allow you to
scrutiny and the withdrawal without ending up with a load of spyware programs running
resident who can cause as many questions as the malware and may be more difficult to detect as the
cause.No one program cannot be used to detect and remove any malware. Added that often
easy to detect malicious software often comes with a much harder to detect and remove the
payload. So its best to be now too thorough than paying the high price later. Check
with an extreme overdose point and then run the cleaning only when you are very
that the system is clean.It can be made repeatedly in Mode safe - F8 tap you start, however, you should
also run in regular Windows when you can.Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/Run the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with the other security
programs. It is a single scanner, VERY EFFICIENT, if it finds something come back here or
Use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
-----------------------------------
Original version is now replaced by the Microsoft Safety Scanner
http://OneCare.live.com/site/en-us/default.htmMicrosoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx----------------------------------
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing system
files.Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
RUN AS ADMINEnter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker
(SFC.exe) program generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Run checkdisk - schedule it to run at the next startup, then apply OK your way out then
turn it back on.How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
I hope this helps.
-
ASP - function Remote - error: cannot run the trigger
Hello
I tried to get my macros being run by a remote server.
It's my function file remote named "remote_test_pc.asp":
framework integrated; then
conf t
interface $INTERFACE
Description macro $TRIGGER
PC-VoIP-Port Description
switchport access vlan $ACCESS_VLAN
switchport mode access
switchport vlan voice $VOICE_VLAN
broadcast storm control level 1 k pps
multicast storm-control level 2 k pps
Storm-control action trap
no event log status link
bandwidth share SRR-queue 10 10 5 75
form of bandwidth SRR-queue 10 0 0 0
priority queue
MLS qos trust dscp
no link-status of snmp trap
spanning tree portfast
spanning tree enable bpduguard
service-policy input PO_TRUST-PHONE
output
end
FI
framework integrated; then
conf t
interface $INTERFACE
No description of macro
Description by DEFAULT-CONFIG
switchport mode access
switchport access vlan 999
broadcast storm control level 1 k pps
multicast storm-control level 2 k pps
Storm-control action trap
spanning tree portfast
No switchport voice vlan $VOICE_VLAN
bandwidth share SRR-queue 10 10 5 75
form of bandwidth SRR-queue 10 0 0 0
priority queue
MLS qos trust dscp
no service-policy input PO_TRUST-PHONE
FI
output
end
FI
And this is my config on the switch to mac-group and the macro:
!
macro auto Test group address-mac-PC
Mac 0019.9990.5509 address list
!
comprehensive treatment of the auto macro
macro auto control global detection mac address
!
automatic macro execution Test-PC remote ftp://192.168.1.11/remote_test_pc.asp ACCESS_VLAN = 123 VOICE_VLAN = 127
!
When I plug this workstation for the following syslog messages:
Switch #.
Remote_test_pc.asp loading!
[OK - 1702/4096 bytes]
Enter configuration commands, one per line. End with CNTL/Z.
Switch con0 is now available
Press RETURN to get started.
Error: Cannot run the trigger Test-PC, please check trigger exists and corresponds to the valid function
26 September 11:45:37.755: % SYS-5-CONFIG_I: configured from console by console
26 September 11:45:37.772: % AUTOSMARTPORT-5-INSERT: tty0(user id:): dispositif avec adresse mac 0019.9990.5509 détectées sur l'interface FastEthernet0/3, exécuté le Test-PC) Message
Switch #.
The port works as it should, but I wonder about the error message.
The switch is 2960 with IOS 12.2 (58) SE2.
Can someone explain what this means?
Thank you very much!
Sven
Hi Sven,
I think that you are not constantly getting this message... Ignore it for now... That have no functional impact... This has been supported in 15.0 (1) SE.
Thank you
Ankur-
-
Hello
We strive to run a full charge in DAC, but it is a failure.
The S_ASSET table is empty and therefore, we get the error
Could not get column: ORA-01403: no data found
We were not facing this error in DAC 10 g but after upgrade to DCA 11 g, this task has no place if the array is empty. How remove this restriction and DAC will work perfectly even if the tables are empty to full charge?
CAD DETAILS
Console Administration Oracle BI DW
CAD build a 11.1.1.6.4.20121119.2022 Build date: November 19, 2012
Management Console to install, configure, and administer the Warehouse Analytics of Oracle Business
Schema version - 47, Index version - 36, repository version - 6, data version Seed - 16
INFORMATICA - VERSION9.0.1 HF2
Here's the log of IMG_BUILD - S_ASSET when this task was running in DAC 10 g. The task facing any problem when S_ASSET table was empty.
[code]
2013-12-23 15:34:29.644 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.
the number of days of prunes: 4
After change data capture: 2013-12-19 12:23:19.332 in full Mode.
2013-12-23 15:34:29.69 - execution:
TRUNCATE TABLE S_ETL_I_IMG_6
2013-12-23 15:34:29.89 - executed successfully.
2013-12-23 15:34:29.9 - execution:
TRUNCATE TABLE S_ETL_R_IMG_6
2013-12-23 15:34:30.145 - executed successfully.
2013-12-23 15:34:30.16 - execution:
TRUNCATE TABLE S_ETL_D_IMG_6
2013-12-23 15:34:30.198 - executed successfully.
2013-12-23 15:34:30.236 - execution:
INSERT / * + APPEND * / INTO S_ETL_R_IMG_6
(ROW_ID, MODIFICATION_NUM, LAST_UPD)
SELECT
ROW_ID
MODIFICATION_NUM
LAST_UPD
Of
S_ASSET
WHERE
LAST_UPD > TO_DATE ('2013-12-19 12:23:19 ',' ' YYYY-MM-DD HH24:MI:SS)
2013-12-23 15:34:30.968 - executed successfully.
2013 12-23 15:34:30.989 - execution of deleting duplicates rowid.
2013-12-23 15:34:31.01 - successfully deleting duplicates rowid.
2013-12-23 15:34:31.27 - execution:
DROP VIEW V_ASSET
2013-12-23 15:34:31.566 - executed successfully.
2013-12-23 15:34:31.569 - execution:
CREATE VIEW V_ASSET AS
SELECT
*
Of
S_ASSET
2013-12-23 15:34:31.743 - executed successfully.
2013-12-23 15:34:31.78 - execution:
SELECT COUNT (*) IN S_ASSET
The County is: 0
Executed successfully: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET
(Number of attempts: 1).
Executed orders:
IMG_BUILD - internal
2013-12-23 15:34:31.851 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the completed state.
The same task, IMG_BUILD - S_ASSET fails when it is running in DAC 11 g, because the table is empty. Here is the log for the failure of the task to 11g.
[code]
2013-12-27 21:21:47.497 acquisition of resources
2013-12-27 21:22:20.33 acquired resources
2013-12-27 21:22:20.787 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.
the number of days of plum: 5760
After change data capture: 2013-12-23 21:19:19.233 in full Mode.
21:22:21.211 2013-12-27 - execution:
TRUNCATE TABLE S_ETL_I_IMG_6
2013-12-27 21:22:22.384 - executed successfully.
21:22:22.389 2013-12-27 - execution:
TRUNCATE TABLE S_ETL_R_IMG_6
2013-12-27 21:22:22.532 - executed successfully.
21:22:22.534 2013-12-27 - execution:
TRUNCATE TABLE S_ETL_D_IMG_6
2013-12-27 21:22:22.546 - executed successfully.
21:22:22.55 2013-12-27 - execution:
INSERT / * + APPEND * / INTO S_ETL_R_IMG_6
(ROW_ID, MODIFICATION_NUM, LAST_UPD)
SELECT
ROW_ID
MODIFICATION_NUM
LAST_UPD
Of
S_ASSET
WHERE
LAST_UPD > TO_DATE ('2013-12-23 21:19:19 ',' ' YYYY-MM-DD HH24:MI:SS)
2013-12-27 21:22:22.614 - executed successfully.
2013 12-27 21:22:22.616 - execution of deleting duplicates rowid.
2013-12-27 21:22:24.72 - successfully deleting duplicates rowid.
Could not get column: ORA-01403: no data found
FAULT INFO: Error executing: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET
MESSAGE: com. Siebel.Analytics.etl.Execution.exceptions.ChangeCaptureTaskFailedException: Change Capture failed.
EXCEPTION CLASS: java.lang.RuntimeException
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:536)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)
com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)
com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)
java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)
java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:619)
: CAUSE:
MESSAGE: change Capture failed.
EXCEPTION CLASS: com.siebel.analytics.etl.execution.exceptions.ChangeCaptureTaskFailedException
com.siebel.analytics.etl.etltask.ChangeCaptureTask.executeChangeCapture(ChangeCaptureTask.java:93)
com.siebel.analytics.etl.etltask.ChangeCaptureTask.doExecute(ChangeCaptureTask.java:46)
com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:477)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)
com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)
com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)
com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)
java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)
java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
java.util.concurrent.FutureTask.run(FutureTask.java:138)
java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:619)
(Number of attempts: 1).
IMG_BUILD - internal
2013-12-27 21:22:31.526 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the Failed state.
[[code
The CREATE VIEW privilege was missing from the CAD database user, therefore, was not to create the step. I have granted CREATE VIEW and all is well.
-
Code of the trigger with the error table mutation
I have 2 tables, cc_call_lists and cc_call_issues. I have a trigger on the table of cc_call_issues so that when the priority is updated I can determine how to set Issue_Priority.
Basically, the priority update for an Issue_Id I need to update the I want to watch Issue_ids of all the participating on the cc_call_lists table and determine how to update the Issue_Priority column.
Issue_Priority must always be the first priority of the table cc_call_issues for Issue_id records in the cc_call_lists table. So when I need to watch all changes priority priority values for which the Participant has records in the cc_call_lists table and take the max value priority after the record is updated.
Unfortunately, I get the following error message when the trigger is activated:
ORA-04091: table TTMS. CC_CALL_ISSUES is changing, function of triggering/can not see
ORA-06512: at «TTMS.» UPDATEISSUEPRIORITY', line 30
ORA-04088: error during execution of trigger ' TTMS. UPDATEISSUEPRIORITY'
Is there a work around which is not too complicated? Any help would be greatly appreciated.
Table: cc_call_lists
Name
-----------------
PARTICIPANT_TYPE
PARTICIPANT_ID
LAST_ACCESS_DT
LAST_ACCESS_BY
CREATE_DT
CREATE_BY
MODIFY_DT
MODIFY_BY
CALL_STATUS
CALL_PRIORITY
Table: cc_call_issues
Name
-----------------
ISSUE_ID
ISSUE_DESCR
DEACTIVATION_DT
PRIORITY
CREATE_DT
CREATE_BY
MODIFY_DT
MODIFY_BY
Trigger on cc_call_issues code:CREATE OR REPLACE TRIGGER TTMS.UpdateIssuePriority BEFORE UPDATE OF PRIORITY ON TTMS.CC_CALL_ISSUES REFERENCING NEW AS New OLD AS Old FOR EACH ROW DECLARE tmpMaxPriority number:=0; -- Get list of all participants call queue records, existing priority who also have a participant issue record with this issue code cursor c1 is select a.participant_id, a.call_priority from cc_call_lists a, cc_participant_issues b where a.participant_id = b.participant_id and b.issue_id = :new.issue_id and b.issue_status = '001' and a.call_status <> '003'; -- Not closed already BEGIN for thisone in c1 loop -- Get the existing highest priority select nvl(max(b.priority),0) into tmpMaxPriority from cc_participant_issues a, cc_call_issues b where a.issue_id = b.issue_id and a.participant_id = thisone.participant_id; -- Update it if the new priority value is higher than the existing call queue record priority if :new.priority > tmpMaxPriority then update cc_call_lists set call_priority = :new.priority where participant_id = thisone.participant_id; elsif :new.priority < tmpMaxPriority then update cc_call_lists set call_priority = tmpMaxPriority where participant_id = thisone.participant_id; end if; end loop; END UpdateIssuePriority; /
Move the level of LINE at the STATEMENT level triggers, see:
http://www.Oracle-base.com/articles/9i/mutating-table-exceptions.php
http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551198119097816936 -
trigger error autnomous mutation! Why not allow select in the trigger body?
case 1. a user updates the table and this user has not committed, even fire user select request, he would get an old result. but no error.
case 2. We have table x, trigger appears on the table x as soon as the table is updated to trigger fires. inside the body that we select just for table 'x' it throws error error changing table
can someone please explain why?
my example as follows:
case 1:
CREATE TABLE MyTable
(NUMBER of c1);
INSERT INTO myTable VALUES (1);
commit;
INSERT INTO myTable VALUES (2);
Select * from myTable;
C1
------------
1
case 2:
CREATE TABLE myMaxTable
(maxValue NUMBER);
CREATE TABLE MyTable
(NUMBER of c1);
INSERT INTO myMaxTable VALUES (NULL);
COMMIT;
CREATE OR REPLACE TRIGGER myTrigger
AFTER ON INSERT myTable
FOR EACH LINE
BEGIN
UPDATE myMaxTable
SET maxValue = (SELECT MAX (c1) FROM MaTable);
END;
/
INSERT INTO myTable VALUES (1);
INSERT INTO myTable VALUES (1)
*
ERROR on line 1:
ORA-04091: table HUNBUG. MYTABLE is changing, function of triggering/can not see
ORA-06512: at "HUNBUG. MON_TRIGGER', line 2
ORA-04088: error during execution of trigger ' HUNBUG. MYTRIGGER'Assume that you are doing something like this:
You have three records in the table:INSERT INTO myTable VALUES (1); INSERT INTO myTable VALUES (2); INSERT INTO myTable VALUES (3);
Then do you one insert call to do more than three:
INSERT INTO myTable SELECT c1 + 100 FROM myTable;
This last call insert inserts 3 records in your table - 101, 102 and 103.
When you have a trigger FOR EACH ROW, which will be called three times, but there is no way to predict in what order, and when the trigger will fire for example at c1 = 102, the table is the "mutation" - it is located in the heart of a change and you don't know if 101 or 103 or both is in the table. Oracle does not allow you to do a select on the table of this mutation.
When you remove the FOR EACH ROW clause, the trigger only will be called once at the end of this call to insert, moment in which the table is no longer changing and so your code will be located safely c1 max.
-
DB trigger error - update even table in the script of the trigger
Hi all
I have a table tab1, whenever any update is done on this table on column col1 and col2 also needs to get the update. (These are related to user forms can be updated only col1 form frontend)
So I created a trigger as follows.
----------------
CREATE OR REPLACE TRIGGER tri1
AFTER UPDATE
ON tab1
FOR EACH LINE
WHERE (NEW.col1 = 'YES')
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
Tab1 SET col2 = 1 UPDATE
WHERE transaction_id =: OLD.transaction_id;
COMMIT;
END;
--------
When there is no update on this table, I get following error. Please let me know if I'm missing something.
ORA-00060: Deadlock detected while you wait resource
ORA-06512: at "user1.tab1", line 5
ORA-04088: error during execution of trigger 'user1.tab1 '.
Please let me know if I'm not clear. Thank you
Published by: DharV on August 23, 2011 05:17Your transaction_id is unique?
If this is the case, then you could perhaps use AFTER UPDATE BEFORE UPDATE:
CREATE OR REPLACE TRIGGER tri1 BEFORE UPDATE ON tab1 FOR EACH ROW WHEN (NEW.col1 = 'YES') BEGIN :NEW.col2 := 1; END;
If your transaction_id is not unique - if you really want to update more than one line in tab1 - your update cannot update the same line that the trigger has responded, even with the use of an autonomous transaction. Then you could combine the BEFORE UPDATE trigger above with your own AFTER UPDATE, but then add ROWID! =: OLD. ROWID to where clause, but it would be a bad idea because some of your lines will be updated in a single transaction and others in another transaction.
In general the autonomous transaction is not a great way to solve the problem of changing table within a trigger. I hope that you have a unique transaction_id and can do BEFORE the UPDATE - if it is then a better way is to save the update id in an overall picture in FOR EACH ROW triggers, and only then AFTER an UPDATE fire is NOT "for each line" update the list of saved IDs
-
Mr President.
What is wrong with this sequence, it does not work when, after 3 inserts, I add a new record with the trigger it gives an error.
--SL_CUSTOMERS table data INSERT INTO SL_CUSTOMERS VALUES(1,'Kamrul Hasan',NULL,NULL,'Moghbazar', 'Dhaka','0456789123',NULL,NULL,NULL,'Y',NULL); INSERT INTO SL_CUSTOMERS VALUES(2,'Rabiul Alam',NULL,NULL,'Motijheel', 'Dhaka','0567891234',NULL,NULL,NULL,'Y',NULL); INSERT INTO SL_CUSTOMERS VALUES(3,'Shahed Hasan',NULL,NULL,'2-G/1,2-2,Mirpur', 'Dhaka','0678912345',NULL,NULL,NULL,'Y',NULL);
CREATE SEQUENCE "ALIZA"."SL_CUSTOMERS_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE ; CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS" FOR EACH ROW BEGIN IF :NEW.CUSTOMER_ID IS NULL OR :NEW.CUSTOMER_ID < 0 THEN SELECT SL_CUSTOMERS_SEQ.nextval INTO :NEW.CUSTOMER_ID FROM DUAL; END IF; END; /
When I try to insert several records with the seq.nextval it gives error
violation of primary key.
INSERT INTO "ALIZA"."SL_CUSTOMERS" (CUSTOMER_NAME) VALUES ('sdfsd') ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated ORA-06512: at line 1 One error saving changes to table "ALIZA"."SL_CUSTOMERS": Row 4: ORA-00001: unique constraint (ALIZA.SL_CUSTOMERS_PK) violated ORA-06512: at line 1
Concerning
Mr President.
I find the solution by creating a function before the triiger
as below
CREATE SEQUENCE "ALIZA"."SL_CUSTOMERS_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE ; CREATE OR REPLACE FUNCTION get_SL_CUSTOMERS_vId RETURN VARCHAR2 AS BEGIN RETURN SL_CUSTOMERS_SEQ.NEXTVAL; END; / CREATE OR REPLACE TRIGGER SL_CUSTOMERS_TRG BEFORE INSERT ON "ALIZA"."SL_CUSTOMERS" FOR EACH ROW DECLARE dummy VARCHAR2(200); BEGIN dummy := get_SL_CUSTOMERS_vId(); :NEW.CUSTOMER_ID := dummy; END; /
It works very well
Thank you all for the suggestions.
Concerning
-
Why I'm not able to associate the user defined exception with ORA-01403 error code
why I am not able to
Associate a user defed exception with ORA-01403 error code?
declare myException Exception; pragma exception_init(myException ,-1403); begin raise myException ; Exception when myException then dbms_output.put_line('raised due to myException '); end; /
exception of ABC;
*
ERROR on line 2:
ORA-06550: line 2, column 4:
PLS-00701: ORACLE error-1403 of PRAGMA EXCEPTION_INIT illegal number
ORA-1403 is an outgoing BOF NO_DATA_FOUND exception. And we used to NO_DATA_FOUND in pragma exception_init + 100.
Thus, instead of the you can used this different exception code which is not associated with any exception.
For example:
declare
Exception myException;
pragma exception_init (myException,-7856);
Start
raise myException;
Exception
When myException then
dbms_output.put_line ('high due myException');
end;
-
When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?
You use listener EA3 ADR?
Maybe you are looking for
-
HP Pavilion Slimline s3720f: what video card should I buy?
I want to add a new video card (not too expensive) for my old HP Pavilion Slimline s3720, but I do not know what video card to buy, because there are far too many choices. I know that the new card must be low profile with a half support so it can fit
-
Issues of memory allocation?
In the 2 years I was using my Droid X, I never had any warning on the memory usage. When I created my Razr, it was loaded with less games and other programs that the X. Today, I got a caution icon indicating "Low on space of the volume. This picture
-
Hey, I can't play a clip I have downloaede on my computer. can u help me?
-
Whenever I start my Acer computer recently, I get a message that ccSvcHst.exe has stopped working. The program says that windows is looking for a solution, but it doesn't seem to be found. Please can anyone offer advice on how to fix this error. My c