details about exceptions
Hi Master,
Y'day I attended an interview. He asked me several questions... but I not answered two questions. So, I am rejected me. Please notify these two questions.
(Q) I have A procedure. In what I call procedure B. But A procedure has part of exception... Procedure B is not exception. If procedure B you have a mistake, what is the result?
I said... we will have an error message. He is not satisfied.
(Q) what is internally pragma autonomous transaction do?
Please advise...
Thanks to the adv.
SA
something to play with
declare
CX varchar2 (50): = ' 10.987654321098765432109876543210987654321098765';
CY varchar2 (50): = ' 9.123456789012345678901234567890123456789012345';
x float;
float of y;
procedure has (x outside the float in the float y) is
Start
x: = x / y;
exception
When zero_divide
then X: = null;
while others
then lift;
end;
b procedure (x float, y float in) is
Start
a(x,y);
x: = x y;
end;
Start
dbms_output.put_line ('chr_x =' |) CX);
dbms_output.put_line ('chr_y =' |) CY);
x: = to_number (cx);
y: = to_number (cy);
dbms_output.put_line ('num_x =' | to_char (x) |'; num_y = ' | to_char (y));
b(x,y);
dbms_output.put_line (' x_nouveaux = ': case when x is null then 'null' other end to_char (x) |) ("(must be num_x - in theory)');
end;
NORMAL PROCESSING:
chr_x = 10.987654321098765432109876543210987654321098765
chr_y = 9.123456789012345678901234567890123456789012345
num_x = 10.98765432109876543210987654321098765432; num_y = 9.12345678901234567890123456789012345679
x_nouveaux = 10.98765432109876543210987654321098765434 (should be num_x - in theory)
Statement processed.
ZERO_DIVIDE EXPECTED:
chr_x = 10.987654321098765432109876543210987654321098765
chr_y = 0
num_x = 10.98765432109876543210987654321098765432; num_y = 0
x_nouveaux = null (should be num_x - in theory)
Statement processed.
UNEXPECTED EXCEPTION ('? (' is entered as cy) :
ORA-06502: PL/SQL: digital or value error: character of number conversion error
Concerning
Etbin
Tags: Database
Similar Questions
-
gauge the battery to the boot screen and battery on report menu conflicting Details about the level of the battery. The gauge from the battery to the Starter incorrectly displays the low battery level that prevent the start of the battery. This happens on macbook pro retina 13 inches
When I try to startup macbook pro retina in battery mode, it will fail to start showing low battery level and an indicator to recharge the battery. It does not start on battery. When I then connect via the power cable at startup (and check the battery level), monitor of battery in the menu bar indicates that the battery is charged to the top.
It gets really frustrating and remove my ability to use the macbook pro retina as a truly portable device...
Appreciate any help on this
Have you tried resetting the SMC? Reset the management system (SCM) controller on your Mac - Apple Support
-
There are details about this problem with Vista? Thks Jerry
Hi Jerry.Smith
You can check this link for more information:
After back and let us know if it helped to solve your problem.
Thank you and best regards,
R uma - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Political pe Windows license, the terms and conditions of redistribution
I would like to know the details about the license of Windows PE, terms and political Conditions of RedistributionFor more information of WinPE 2.0, you can consult the following articles:
http://TechNet.Microsoft.com/en-us/magazine/cc138016.aspx
http://TechNet.Microsoft.com/en-us/magazine/cc160884.aspx
http://TechNet.Microsoft.com/en-us/windowsvista/aa905120.aspx
J W Stuart: http://www.pagestart.com
-
How to get deployed CA Project details about the deployment event?
Hello
I need to get the Details of the project deployed certification authority (I just need the name of the project), based on the events of deployment (which has the deployment id). I tried to get the details of the epub_deployment and epub_deploy_proj, but the data are not persistent here once the deployment is complete.
Please let me know if you have any ideas how I can do this.
I do this to determine the name of the project that caused the indexing run in integration of the atg-short. With this proj. name, I want to do some other actions.
Any help/pointers will be greatly useful.
Thanks in advance,
Arjun
Assuming you are trying to get the details of the project in your custom Java code, here's my thought. Not tried it myself, but I guess it can help to get what you are looking for. Let's say you have the available as a objDeploymentEvent DeploymentEvent object so you can proceed as
String[] projectIds = objDeploymentEvent.getDeploymentProjectIDs(); //get the project IDs being deployed ProcessHome processHome = ProjectConstants.getPersistentHomes().getProcessHome(); //first get the involved Process object for a particular project-id then get the corresponding Project object Process process = Process.findProcessByProjectId(projectId); Project project = process.getProject();
For details of the method and the properties of the object you can view the API documentation classes mentioned, all are atg.epub.project of the package with the exception of DeploymentEvent. It will be useful.
-
Hello.
Please let me know that the what is the API should I use for the following items.
To retrieve the Bluetooth ID of other devices in the vicinity.
For Cell Tower IDs.
For Wi - Fi networks that are close to my camera...
Kind regards
Neev.
The DiscoveryAgent class can be used to search for Bluetooth devices nearby.
RadioInfo class can be used to get information about the cell tower that BlackBerry handheld is currently connected.
There is no API to search for Wi - Fi networks. The user must configure the network Wi - Fi on their device before an application can connect on it.
-
BlackBerry Z10 Z10 is not running... More details about the post
Watch list prior to the incident:
-my phone needs to be rebooted now and then because the phone has no reception Internet... all I get is this small h but when I restart it, it goes back to the 3G...
-During the loading of my phone, if I acsidentaly loosen the usb microphone connected to my phone. my phone is just dies without warning, as it comes to fade and other things... I only wait a few minutes for her to turn its own
-my phone started to disable its own (not during loading) only at random even the phone is idle I'll just fint it restarts on its own... and while I use the phone it just restarts...
-my phone started having a flashing model for the Red led lights up when he died... the rate is 4 seconds blinks... the phone would turn not...
-my phone turned on automatically... I noticed that the battery is only 20 percent when he died it was more than 50%
-When I tied my phone it just turned off on its own...
-the phone is now have a constant lit red light led... the phone will not turn on
-i out the battery... Remove SIM... remove the sd card and pop while... no joy
-After removing the bss (battery, sim card and sd card), the phone has lost its constant red led clear status and is now dead
Observations after incident
-i tried removing the battery and popping in... no joy...
left-i it doesn't charge for at least 7 hours... no joy
-i left without the battery for 4 hours... no joy
-the phone connected to my pc for 4 hours left... the red light continues returned...
-i tried to reload the OS purchase my computer does not detect my phone so... no joy...
d ' irritation if took out the battery and sent... the phone has lost its status as a continuous red light...
Note * it was in an interval of 3 days
I would really appreciate the help, the location of the place where I can get it replaced is not easily accessible... I would like to replace as a last resort because I have important data on my blackberry z10.
If you are willing to help and need more details please do inform me.
Hello everyone I would like to thank the person who tried to help me, but here I am with the best solution to get your z10 to run...
1 collect information of the nearest BlackBerry Expert Center close to you. here a link that will help you find one.
http://global.BlackBerry.com/en/support/support-store-locations.html
2 contact, then tell them the details of the incident, symptoms, etc...
3, they will say to bring the product to them because they need to change the sone (OS) software and material things... they also explain how the service works... the device will be in 6 weeks max.
4. wait...
I hope to help the people who are currently with these problems, Z10 is a great device. He has an amazing interface as all the blackberry is... also amazing on the keyboard of the screen very responsive... sad to say, it doesn't have a lot of applications, but that doesn't bother since I'm not really a person app... CIAO well! Ganna let this thing like solved but we look forward to answer you if you guys need something said...
-
I had the laptop as a gift. The update they ask me for the date I bought the laptop and the seller. These two details, I don't know. Is there anyway that I can get these details, if I have the windows license key and product key.
Press Windows key + R
Type: cmd
Press enter
At the command prompt, type:
SystemInfo
Press enter on your keyboard
This should give you all the details you need.
-
To see more details about the error
Hello
Breast of Toad 10, after that I compiled a Stored proc, I don't see that this
https://DL.dropboxusercontent.com/u/40211031/T652.PNG
How to see the details of the error here?
Hello
Wrong forum. Try
Toad for Oracle - general - Toad for Oracle - Toad World
In some Oracle frontends (like SQL * more) if the following statement is
DISPLAY ERRORS
that will produce a meaningful error message.
-
Question about exception management
DB version: 10.2
We have several procedures in a package. All exception handling procedures be made as below
Lets say I have A, B, C and D lined up for execution of procedures. While running, what happens if procedure B has encountered an error and is managed by raise_application_error thingy, it will stop the execution of other procedures C and D as well?when others then dbms_output.put_line(sqlerrm); raise_application_error(-20002, sqlerrm); end mystoredproc;
John_75 wrote:
We have several procedures in a package. All exception handling procedures be made as below
Then all your exception handling procedures are flawed.
The results of PL/SQL engine in an exception explicitly being raised with a unique error code. Your exception handlers that take and change this exception in an error of-20002 code empty.
It's downright put silly to deal with exceptions.
There are 3 fundamental reasons to deal with an exception.
(1) it is not an error of the company. For example to get a NO_DATA_FOUND for a function of product disc0unt is not an error and simply means that the product is not disc0unted. In this case, the exception is removed and applied relevant business logic.
(2) the error relates to the very specific business logic/rules and can be transformed into a very useful application error. For example, if an DUP_VAL_ON_INDEX exception for this specific code means company error "+ product category already exists + ' and the code returns a unique error code and a message for it.
(3) protection of resources. For example, a LOB Locator was created and must be released if there is an error, otherwise there will be resource leaks. So, the exception is caught, the resources released (or app error log update, etc.) - after which the exception is relaunched.
If you can not check one of these 3 reasons for the existence of an exception (in any programming language) handler, then you are most likely all wrong exception.
-
Get details about the form master / detail
Hello
I use forms6i.
I have a clarification on master form / retail.
If suppose a form with 2 revenge (block master / details) inside.
We run the form and enter a few details in the main block, and then in the block of details, and so we try to navigate to the record next to the master.
If he asks "do you want to save the changes?" before moving to the next main record?
Why I ask, this is where we use the model, and she asked you want to save.
(Even without a model also I get the same).
Just to confirm if it is the default customer forms and may be in my forms goods are prepared, so that it can behave this way.You can issue a MESSAGE in the on-CLEAR-DETAILS-the trigger, this "will save" data in the database, without actually committing.
-
Record details of exception (PL/SQL)
Hello
After getting an exception in the stored procedure, I want to record the name of the procedure and the database server that triggered the exception.
For example. proc_calculate_interest, DB_SERVER1
I tried to use SQLERRM, but it gives me the error message.
Thanks in advance.
UdayTo retrieve the name of the db server, you can use all the sql code following the extraction of the client machine
select global_name from global_name; SELECT UTL_INADDR.get_host_name from dual SELECT UTL_INADDR.get_host_address from dual
Create a record in table and an autonomous transaction procedure to store the error of errors. Call this proc in exception block when it occurs. See the code below.
create table tab_excep (obj_name varchar2(100), p_excep_code number, p_dbname varchar2(100) ); create or replace procedure LOG_ERROR(p_name varchar2,p_err number,p_dbname varchar2) is pragma autonomous_transaction; begin insert into tab_excep values (p_name,p_err,p_dbname); commit; end; create or replace procedure PROC_TEST is l_dbname varchar2(100); begin select global_name into l_dbname from global_name; -------- -------- -------- -------- -------- EXCEPTION WHEN
THEN LOG_ERROR('PROC_TEST',SQLERRM,l_dbname); end; -
Salvation by referring to http://www.dba-oracle.com/real_application_clusters_rac_grid/recovery_catalog.html
I have two DBs a CATDB (on oracle 9i) and another PRODdb (about 10g)
now, I created the CATDB recovery catalog.
My doubt is when you check the database. What machine I run rman (machine with 10 g or 9i or I can call him to RMAn of one of them).
RMAN TARGET sys/oracle@PRODdb CATALOG rman/cat@catdb
in the above stage I doubt. RMAN, which use? 9i or 10g or it does not matter.
Thank youuser8896122 wrote:
You must run this command on the server that you take a backup of itDo not you...
You must run this command from the target server that you backup
- - - - - - - - - - - - - - - - - - - - -
[Kamran Agayev A. | http://kamranagayev.wordpress.com] (OCP 9i/10 g)
Author of the forthcoming book - * ' Oracle Backup & Recovery: Expert secrets to use RMAN and Data Pump. "
http://www.rampant-books.com/book_1002_rman_backup_recovery.htm -
details about tnsnames.ora
Hi all
I have following tnsnames.ora and works fine
PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 152.144.XXX.XXX)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD.haunting.com)
)
)
now I want to change the name of the service to
PROD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 152.144.XXX.XXX)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DEV.haunting.com) / / changet to DEV of PROD
)
)
but I am not able to connect to oracle as hr/hr@PROD
I put
ALTER system set service_names is 'Scope DEV.haunting.com' scope = both;.
editing the system registry;
restarted the listener and the database. but still cannot connect to the database as a normal user.
Please provide detailsIt seems that this database stores services all defined in the data dictionary: If you change init service_name. parameter, it adds a new data service but remove it from those that already exist. You can check with:
select name, network_name from dba_services;
You can delete an existing dictionary of the database service with:
exec dbms_service.delete_service('
'); Edited by: P. Forstmann on Dec 16. 2009 10:35
-
This has happened for a few weeks.
MBAM fixed! Thanx
Maybe you are looking for
-
I want a refund!
-
No reliable WiFi for iPhone and iPad
I have an Airport Express, Time Capsule with two extensions Express airport and once every 3 days I have to power cycle to get my iPad and iPhone to be able to use the Wifi. I-devices connect and show they have Wifi signal but they cannot transmit d
-
How to keep the chart with different colors when adding new data
Hi, please help me. I want to compare my first plot the data (trace of legend) with my following data in the graph of the plot. my program didn't work it just add new field data and color for the next data has not changed.
-
Original title: can't end file message system 32 drivers prdmgr.exe. Under windows XP when I boot, I get a message: windows cannot find the file: c:\windows\system32\drivers\prdmgr.exe and I already made a ststem restore and still get this message.
-
Grateful for help in finding a way to install the HP Solution Center after upgrade win10. The installation CD original will not auto-run and when seteup.exe forced to run from the DVD, offers 'output' as the only item on the menu. The HP support we