The last outbreak in this procedure do not insert, logical flow is right?
Here is the code:{PROCEDURE PrAddDATU (p_EXPCLLI IN VARCHAR2,
p_EXPIP IN VARCHAR2,
p_EXPName IN VARCHAR2,
p_EXPAddress IN VARCHAR2,
p_EXPCity IN VARCHAR2,
p_EXPState IN VARCHAR2,
p_COPhoneNumber IN VARCHAR2,
p_WCCLLI IN VARCHAR2,
p_DialIn IN VARCHAR2,
p_DialOut IN VARCHAR2,
p_EXPRR IN VARCHAR2,
p_PowerFuse IN VARCHAR2,
p_HDFFrame IN VARCHAR2,
p_PGTCFrame IN VARCHAR2,
p_NTTFrame IN VARCHAR2,
p_ColanRR IN VARCHAR2,
p_ColanJack IN VARCHAR2,
p_PollInterval in NUMBERS
p_LeadNPA in NUMBERS
p_EXPComments IN VARCHAR2,
p_OwnerID in NUMBERS
p_LRNNumbers IN VARCHAR2,
p_MaintBegin IN VARCHAR2,
p_MaintEnd IN VARCHAR2,
p_EXPPort in NUMBERS
p_LRNChecked IN VARCHAR2,
p_LRNFacilityCode IN VARCHAR2,
p_IsPrimaryAddress IN VARCHAR2,
p_RTUTypeId in NUMBERS
p_SiteName IN VARCHAR2,
p_HostExpIds IN VARCHAR2)
IS
v_DATUID NUMBER;
v_HostExpId NUMBER;
v_HostExpIds VARCHAR2 (200);
v_LRN VARCHAR2 (30);
v_LRNS VARCHAR2 (400);
v_LRNActive CHAR (1);
v_LRNSActive VARCHAR2 (20);
v_LRNFacilityCode CHAR (2);
v_LRNSFacilityCode VARCHAR2 (300);
NUMBER of v_pos1;
NUMBER of v_pos2;
NUMBER of v_pos3;
NUMBER of v_pos4;
BEGIN
SELECT DATU_EXP_UNIT_INFO_SEQ. NextVal INTO v_DATUID FROM DUAL;
INSERT INTO TT_DATU_EXP_UNIT_INFO VALUES (v_DATUID, p_OwnerID, p_EXPName, p_EXPAddress, p_EXPCity, p_EXPState, p_COPhoneNumber, p_WCCLLI, p_EXPCLLI, p_EXPIP, p_EXPPort, p_DialIn, p_DialOut, p_EXPRR, p_PowerFuse, p_HDFFrame, p_PGTCFrame, p_NTTFrame, p_ColanRR, p_ColanJack, p_PollInterval, p_LeadNPA, NULL, p_EXPComments, p_MaintBegin, p_MaintEnd, p_IsPrimaryAddress p_RTUTypeId (, p_SiteName, Sysdate);
-Add new DATU in the TT_DATU_EXP_STAGING and TT_DATU_EXP_UNIT_INFO tables
INSERT INTO TT_DATU_EXP_STAGING VALUES (v_DATUID, p_EXPCLLI, SysDate);
"- Add new DATU in TT_DATU_EXP_ALARM_INFO with ALARM_TYPE = table ' G0 - stage"
INSERT INTO TT_DATU_EXP_ALARM_INFO VALUES (v_DATUID, SysDate, 'G0', SysDate);
-Add RTU to hosts
v_HostExpIds: = p_HostExpIds;
v_pos1: = INSTR (v_HostExpIds, ',', 1);
WHILE v_pos1 > 0
LOOP
v_HostExpId: = TRIM (SUBSTR (v_HostExpIds, 1, v_pos1 - 1));
IF v_HostExpId IS NOT NULL
THEN
INSERT INTO TT_HOST_SATELLITE VALUES (v_HostExpId, v_DATUID);
END IF;
v_HostExpIds: = SUBSTR (v_HostExpIds, v_pos1 + 1, LENGTH (v_HostExpIds));
v_pos1: = INSTR (v_HostExpIds, ',', 1);
END LOOP;
-Si LRN cards entered add records to DATU_LRN_MAP
v_LRNS: = p_LRNNumbers;
v_LRNSActive: = p_LRNChecked;
v_LRNSFacilityCode: = p_LRNFacilityCode;
v_pos1: = INSTR (v_LRNS, ',', 1);
v_pos2: = INSTR (v_LRNSActive, ',', 1);
v_pos3: = INSTR (v_LRNSFacilityCode, ',', 1);
WHILE v_pos1 > 0
LOOP
v_LRN: = TRIM (SUBSTR (v_LRNS, 1, v_pos1 - 1));
v_LRNActive: = TRIM (SUBSTR (v_LRNSActive, 1, v_pos2 - 1));
v_LRNFacilityCode: = TRIM (SUBSTR (v_LRNSFacilityCode, 1, v_pos3 - 1));
IF v_LRN IS NOT NULL
THEN
INSERT INTO TT_DATU_LRN_MAP VALUES (v_LRN, v_DATUID, v_LRNActive, v_LRNFacilityCode);
END IF;
v_LRNS: = SUBSTR (v_LRNS, v_pos1 + 1, LENGTH (v_LRNS));
v_LRNSActive: = SUBSTR (v_LRNSActive, v_pos2 + 1, LENGTH (v_LRNSActive));
v_LRNSFacilityCode: = SUBSTR (v_LRNSFacilityCode, v_pos3 + 1, LENGTH (v_LRNSFacilityCode));
v_pos1: = INSTR (v_LRNS, ',', 1);
v_pos2: = INSTR (v_LRNSActive, ',', 1);
v_pos3: = INSTR (v_LRNSFacilityCode, ',', 1);
END LOOP;
COMMIT;
END prAddDATU;
}
The problem here is that the last insert in TT_datu_lrn_map table shows no insert at all.
Any guru can help, please.
Thank you
No, they do not display on the web page. Part of the idea of using an EXCEPTION catch you the error and deal with it instead of having a random display ORA up who knows where such web page. Once you remove the table small error that I have given, you can do customized to adapt to what you have. I have take advantage of this and add variables so I can remember what line is a problem, or what value is tripping my code.
I usually separate each insertion and update in its own block of exception with its own message. Otherwise you never know which him throwing an error.
Found this and it could be useful at a glance:
http://PLSQL-tutorial.com/PLSQL-exception-handling.htm
Good to hear you code compiles without errors.
Published by: mseberg on January 20, 2011 20:24
Tags: Database
Similar Questions
-
find the last time that a procedure has been called
Hi DBAs,
How to find when a procedure or function was called again in 10g. Besides, even when a table last access. If this can be done without activating the audit? is there a such views or tips to find such changes?
Thank you!Without verification, it is not possible, generally speaking.
If a procedure has side effects, you could potentially look through the database to find these side effects. If inserting a new row in a table with a SYSDATE CREATE_DATE, it would be very useful. If you mean a function that does not have the side effects, however, it is not an option. If the function or procedure works for a relatively long period, his performances can be picked up in an AWR / statspack report. But it is unlikely that each execution would be seized, it is unlikely that the history is kept very long, and it is not always trivial to these research reports for the last time that a procedure has been run. And if you have a relatively quick process, it is unlikely that the executions would be ever recorded.
Statistics at the level of the segment could give you advice on access to the table. But these statistics are cumulative since the last restart. And there are likely background processes that affect all tables at certain interval (i.e. statistics collection), which is probably not the kind of 'access', you are interested.
Justin
-
Try to install purchased box. Alls well until the last window when this message appears. INCONSISTENCY IN THE DATABASE OF THE INSTALLER. RESTART YOUR COMPUTER AND INSTALL IT AGAIN. Fact as stated several times and redisplays but same message?
Run the cleanup tool and manually delete the caps.db file.
Important directories | Error postal codes of Mylenium
Use the CC cleaning tool to resolve installation problems. CC, CS3 - CS6
When you reinstall, make sure that you run with user privileges sufficient and external tools like virus scanners do not interfere. This is why you have the question in the first place.
Mylenium
-
Bridge 5.0.2.4 with camera RAW 8.4.0.199 ON a MAC 10.10.1. Try to update camera RAW 8.7 to get my canon 7dMK2 raw files to work. But the update I have the last update! Witch, I did not clearly. And my Photoshop have different camera RAW plug-in. 8.4 the old and the new 8.7. But it does not work. Have removed and reinstalled several times. What is going on? Why can't update bridge to the last version 8.7 or read my raw files from the Canon 7dmk2?
Try this:
http://blogs.Adobe.com/Crawlspace/2011/03/keeping-Photoshop-up-to-date.html#NotConnected
-
Check the last instance of a textfield is not null
I have a repeating subform that includes a textfield for the user to enter his name. When the user clicks a button e-mail customized to send the form, I first want to check if the last instance of this field is filled (non-null). I don't care about previous instances only the last instance. Custom e-mail button is pushed down below each instance of the subform is always just below the last instance of the repeating subform. Is it possible to refer to the last instance of a field in the subform when I do not know how many instances are created?
Thank you
Hi DKinsley,
I think that the code and the following steps will solve your problem.
(1) in order to know the last instance, you must find the number of available instances. This can be achieved with the following code.
var totalRowInstances = xfa.resolveNode ("form. Name.txtName").instanceManager.count;
(2) to access the last value of the index,
lastIndex var = totalRowInstances-1;
[Since the index always starts with 0]
var lastIndexNameCheck = xfa.resolveNode ("form. ("Name [" + lastIndex + '] '). txtName.rawValue;
If (lastIndexNameCheck! = null)
{
do something
}
on the other
{
do something
}Please Note: here, form - refers to the root node, name - refers to the subform, txtName - made reference in the name of a text field.
Please let me know if this helped.
Thank you
VJ -
I am not able to connect to my facebook account and the error message reads "this website does not provide information on property." Help, please
only title bar opens and nothing else... Please help
Clear the cache and cookies from sites that cause problems.
"Clear the Cache":
- Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
'Delete Cookies' sites causing problems:
- Tools > Options > privacy > Cookies: "show the Cookies".
Also check the cookie exceptions.
-
I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help! I've tried everything. Google it. Searched through itunes, etc. It MUST be a bug, because it started right after I accepted the 12.3.3 update on my laptop running Windows 7 32.
I count on the part of the main screen, which is not. Its strange. PLEASE HELP ME! In addition to the main page of the Itunes Store, everything else works fine as before. Music from my library work screens, etc.
I also have exactly the same problem since the last update. Tried to find a way to solve the problem but no luck. Someone please help!
-
Is there a way I can personally verify my I Pad Pro to see if it has been refurbished, because I paid the FULL PRICE $$$ for this but have not begun it upwards again and I have a suspicion, it is refurbished! Can I bring to an APPLE STORE and have them check for me?
* Because if it is I never purchases in this store ever again, but I WANT it CHEKED OUT by myself if I can.
Please help as soon as POSSIBLE due to delays return date.
Thank you all
Makes you think about the iPad Pro you received is a refurb?
Apple, general, selling and shipping of refurb in the plain, non-description boxes/packages.
-
I tried to use iTunes to restore my iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the recovery mode, connection to the apple Server (the software update download was complete) and internet connection. Help? I do an Apple store to restore?
Error 17 refers to network problems. Take a look at these articles and try the suggestions:
Solve the iOS update and restore error in iTunes - Apple Support
-
I changed my router to another wireless. Since then, my laptop cannot connect to my wifi. When I search my wireless network, it is exed out in red. and the message "the settings saved on this network do not match the network requirement"... Please help
[moved from comments]
Hey Mike,
-What version of Windows is installed on the computer?
This problem usually occurs with wireless networks. I suggest you try the suggestions in http://answers.microsoft.com/en-us/windows/forum/windows_vista-networking/the-settings-saved-on-this-computer-does-not-match/a82432f2-9312-480a-b2ea-720033c73387
Let us know if this can help, or if you have any questions.
-
My computer stopped working wireless, the error message says "this wireless does not work on this computer ' even if another computer at home has no problem with wireless services. I've tried everything and my router is intact. My Protection of Kaspersky flags are gone from green to red and says threats have been detected. What should I do to get back on the wireless.
original title: Wireless not working not
Hello
1 have had any changes made on the computer before the show?
2. what operating system is installed on the computer?
Method 1:
Check the link and try to run the troubleshooter to check if it helps.
Windows wireless and wired network connection problems
Method 2:
Try to run Microsoft Safety Scanner for any malware or spyware infection and check if it helps.
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: the Microsoft Safety Scanner expires 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again. The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
-
Original title: change user
After the last update of xp, we have not been able to change user without password. We do not know the password. What can we do?
See if that helps...
Cannot lock a "locked" computer administrator
Be sure to check your screen savers. -
I need to install Microsoft silverlight to watch films from netflix, but it is impossible to install it; but in my programs, I have microsoft silverlight (old), I think that if I remove the old program, the new microsoft silverlight will be possible to insall it. The problem is when I try to remove the old silverlight (add or remove programs) do not remove and displays this dialog box "the installation source for this product is not available. Verify that the source exists and that you can access. I like you would help me in this matter. Thank you very much. Manuel Ortega.
Hello
I recommend you to ask your question in the Microsoft's Silverlight Installation and Setup forum for better support.
-
I can't remove Silverlight.
I want to update to Silverlight. When I try to download, the download fails and I get a message to uninstall the old version. When I try to do, I get a message that says "the installation source for this product is not available. Varify that the source exists and that you can access. »
I have been in this situation and tried the solution here:
"How to manually clean a broken Silverlight installation.
Who has not completely worked for me, however, if I pulled upward from Regedit
(Start-> Run-> 'Regedit')
and searched the whole registry "Silverlight", deleting keys of parenthood which contain this string. (There was a large number of them). When I did, I was finally able to reinstall Silverlight.Note that editing the registry is dangerous, so make sure that you first create a backup of the registry and know how to restore it in case things go very wrong.
"How do back up and restore the registry in Windows XP"
<>http://support.Microsoft.com/kb/322756 >HTH,
JW -
I can't remove Adobe Professional using Add/Remove programs. I get the following error message
"The installation source for this product is not available. Verify that the source exists and you can access it.
Try here: http://kb2.adobe.com/cps/400/kb400723.html
John
Maybe you are looking for
-
Can not transfer e-mails with Firefox, verizon said that it is not their problem.
On my sign in account I can't fwd emails using Firefox, I can fwd using Explorer. My wife can fwd emails on Firefox on his sign in account on the same computer. Verizon says that it is not their problem, because enamel works when using Explorer.
-
Facebook photos won't will be displayed beside the names of people who are online
When I log into facebook I watch people who are online and noticed that their photos are not displayed to the top
-
HP ENVY 15-k203tx: brightness keys does not work after the upgrade to windows 10
Hello. I am using HP ENVY 15-k203tx and I have NVIDIA GeForce GTX 850 MI recently upgraded the operating system of windows 8.1 to windows 10Brightness shortcut keys do not workAll the drivers are up to date.PnP monitor is also activated. What should
-
Networking operating systems different problem-
Please help with a network problem. Location: the router is connected to a laptop computer on a PC running Windows XP and Windows 7. Connection with ethernet cables. When on the PC, the laptop is visible on the network and on the laptop files are vis
-
Log on to the question with the buffaloes AS-DHGL500
I have a station of Buffalo HS-DHGL500 link that I can access it via the web, but it is related to my pc that runs Windows 7 Home and began to request a password to access. I've never been one - this means that I can't access my account on the Buffal