- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with a function with error message MGR-00...
Operating System - HP-UX
1752795
Members
6029
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО12-05-2003 02:24 AM
тАО12-05-2003 02:24 AM
I have a base oracle 8.0.5 installed on HP 11.0, when I execute the script of creating the functions starting from script below:
DROP FUNCTION GPFDBA.DATE_TO_HISTO;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.date_to_histo (odate in date) return number is
begin
-- Convert a Oracle date to a Portfolio date (nammed histodate)
return (-trunc(to_number(odate - to_date('14/09/1752','DD/MM/YYYY'))));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION GPFDBA.HISTO_TO_DATE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.histo_to_date (hdate in number) return date is
begin
-- Convert a Portfolio date (nammed histodate) to Oracle date
return (to_date('14/09/1752','DD/MM/YYYY') + abs(hdate));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION GPFDBA.HISTO_TO_HEURE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.histo_to_heure (hdate number) return character is
begin
-- Convert a Portfolio hour (nammed histodate) to character as "23:59:59"
-- Return space if hdate is too large
if abs(hdate) > 86399 then return ' '; end if;
return (to_char(to_date(abs(hdate),'SSSSS'),'HH24:MI:SS'));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
I receive the following error message:
Statement processed.
MGR-00073: Warning: FUNCTION GPFDBA.DATE_TO_HISTO created with compilation errors.
how to make for resoudre this problem? .
thank you for your assistance
DROP FUNCTION GPFDBA.DATE_TO_HISTO;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.date_to_histo (odate in date) return number is
begin
-- Convert a Oracle date to a Portfolio date (nammed histodate)
return (-trunc(to_number(odate - to_date('14/09/1752','DD/MM/YYYY'))));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION GPFDBA.HISTO_TO_DATE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.histo_to_date (hdate in number) return date is
begin
-- Convert a Portfolio date (nammed histodate) to Oracle date
return (to_date('14/09/1752','DD/MM/YYYY') + abs(hdate));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION GPFDBA.HISTO_TO_HEURE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION GPFDBA.histo_to_heure (hdate number) return character is
begin
-- Convert a Portfolio hour (nammed histodate) to character as "23:59:59"
-- Return space if hdate is too large
if abs(hdate) > 86399 then return ' '; end if;
return (to_char(to_date(abs(hdate),'SSSSS'),'HH24:MI:SS'));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
I receive the following error message:
Statement processed.
MGR-00073: Warning: FUNCTION GPFDBA.DATE_TO_HISTO created with compilation errors.
how to make for resoudre this problem? .
thank you for your assistance
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2003 02:32 AM
тАО12-05-2003 02:32 AM
Re: problem with a function with error message MGR-00073
Hi
http://rhea.redhat.com/bboard-archive/webdb/000Hml.html
Should point you in the right direction.
Steve Steel
http://rhea.redhat.com/bboard-archive/webdb/000Hml.html
Should point you in the right direction.
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2003 03:35 PM
тАО12-05-2003 03:35 PM
Solution
hi,
You may be facing a BUG in the version of Oracle!
try to connect as user GPFDBA
and run the following:
=======================================
DROP FUNCTION DATE_TO_HISTO;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION date_to_histo (odate in date) return number is
begin
-- Convert a Oracle date to a Portfolio date (nammed histodate)
return (-trunc(to_number(odate - to_date('14/09/1752','DD/MM/YYYY'))));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION HISTO_TO_DATE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION histo_to_date (hdate in number) return date is
begin
-- Convert a Portfolio date (nammed histodate) to Oracle date
return (to_date('14/09/1752','DD/MM/YYYY') + abs(hdate));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION HISTO_TO_HEURE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION histo_to_heure (hdate number) return character is
begin
-- Convert a Portfolio hour (nammed histodate) to character as "23:59:59"
-- Return space if hdate is too large
if abs(hdate) > 86399 then return ' '; end if;
return (to_char(to_date(abs(hdate),'SSSSS'),'HH24:MI:SS'));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
============================================
hope this helps!
regards
Yogeeraj
You may be facing a BUG in the version of Oracle!
try to connect as user GPFDBA
and run the following:
=======================================
DROP FUNCTION DATE_TO_HISTO;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION date_to_histo (odate in date) return number is
begin
-- Convert a Oracle date to a Portfolio date (nammed histodate)
return (-trunc(to_number(odate - to_date('14/09/1752','DD/MM/YYYY'))));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION HISTO_TO_DATE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION histo_to_date (hdate in number) return date is
begin
-- Convert a Portfolio date (nammed histodate) to Oracle date
return (to_date('14/09/1752','DD/MM/YYYY') + abs(hdate));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
DROP FUNCTION HISTO_TO_HEURE;
-- BEGIN PL/SQL BLOCK (do not remove this line) --------------------------------
CREATE OR REPLACE FUNCTION histo_to_heure (hdate number) return character is
begin
-- Convert a Portfolio hour (nammed histodate) to character as "23:59:59"
-- Return space if hdate is too large
if abs(hdate) > 86399 then return ' '; end if;
return (to_char(to_date(abs(hdate),'SSSSS'),'HH24:MI:SS'));
end;
-- END PL/SQL BLOCK (do not remove this line) ----------------------------------;
============================================
hope this helps!
regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP