- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ORA-06510: PL/SQL: unhandled user-defined exce...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2003 07:47 AM
тАО04-25-2003 07:47 AM
ORA-06510: PL/SQL: unhandled user-defined exception
I have a prog that import csv file into table. When I executed I'm getting an error that I'm not able to figure out, maybe someone will be able to tell me what I doing wrong.
Thanks,
Ibra
SQL> SET SERVEROUTPUT ON
SQL> execute tst_ibra_006.ImpAnyTable( 'd:\Webgate_Ora', 'EP_sys_libibra.exp', '~');
Importing table from file : EP_sys_libibra.exp
EP_sys_libibra
0
BEGIN tst_ibra_006.ImpAnyTable( 'd:\Webgate_Ora', 'EP_sys_libibra.exp', '~'); END;
*
ERREUR ?? la ligne 1 :
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "INTRA.TST_IBRA_006", line 415
ORA-06512: at "INTRA.TST_IBRA_006", line 158
ORA-06512: at line 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2003 11:42 AM
тАО04-25-2003 11:42 AM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
select * line,text from dba_source where line in ('415','158') and name = 'TST_IBRA_006';
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2003 08:48 PM
тАО04-25-2003 08:48 PM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
also post the output of:
show parameter utl_file_dir
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2003 06:31 PM
тАО04-27-2003 06:31 PM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
Normally the above errors are caused by the settings of the package ???INTRA.TST_IBRA??? environment variable not matching the 'utl_file_dir' in the init.ora.
Please verify the utl_file_dir parameter. This parameter in the nit
There can be other causes however. There could be a problem in creating a file in the path you supplied or you are trying to replace existing file, but do not have sufficient permission. Check if you have your path included in the UTL_FILE_DIR parameter in INIT.ORA:
SQL> show parameter utl_file
NAME TYPE VALUE
utl_file_dir string /tmp
Then look for operating system permissions on the directory and file you are trying to create/replace:
Ensure that the user under which the Oracle instance is running has sufficient rights to access this directory. Furthermore, if the file you are trying to create already exists, verify if the owner and file permissions are correct. You need to delete this file or reset file ownership or file permissions. Then you can retry the PL/SQL procedure and the file ownership and permissions:
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2003 11:20 PM
тАО04-27-2003 11:20 PM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
Thanks to every body who responded to my message. I just got your response and I will get back with you in asap.
Ibra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2003 11:36 PM
тАО04-27-2003 11:36 PM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
SQL> SELECT text
2 FROM user_source
3 WHERE name = 'TST_IBRA_006'
4 AND line = any(415,158);
TEXT
--------------------------------------------------------------------------------
iResult := TST_IBRA_006.IMPORTANYTABLE( sUTLDIR, InFile, sDelim );
RAISE ErrINCOMPAT;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2003 01:56 AM
тАО04-28-2003 01:56 AM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
This is definitely related to a User-defined exception. Check your exception handlers in the procedure.
Also, check for possible 'catch -all' WHEN_OTHERS exception handlers. Try to handle any exceptions that could be raised in your code explicitly.
hope this helps!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2003 02:02 AM
тАО04-28-2003 02:02 AM
Re: ORA-06510: PL/SQL: unhandled user-defined exception
SQL> SET SERVEROUTPUT ON
SQL> execute tst_ibra_006.ImpAnyTable( 'd:\Webgate_Ora', 'EP_sys_libibra.exp', '~');
Importing table from file : EP_sys_libibra.exp
EXCEPTION: 1-User-Defined Exception
Data rolled back
Importing done : 0
Proc??dure PL/SQL termin??e avec succ??s.