473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Function contained in an Oracle Package

Hi

Please can someone tell me why the below does not compile without an error.

Thanks

Expand|Select|Wrap|Line Numbers
  1.  
  2. CREATE OR REPLACE PACKAGE pkg_secure_valid IS
  3.  
  4.   FUNCTION f_chk_logon (v_logon VARCHAR2) RETURN NUMBER;
  5.  
  6. END pkg_secure_valid;
  7. /
  8.  
  9. CREATE OR REPLACE PACKAGE BODY pkg_secure_valid 
  10. AS
  11.  
  12.   FUNCTION f_chk_logon (login_in VARCHAR2) RETURN NUMBER
  13.   IS
  14.    v_sid NUMBER;
  15.   BEGIN
  16.    v_sid := 12;
  17.    RETURN v_sid; 
  18.   END f_chk_logon;
  19.  
  20. END pkg_secure_valid;
  21.  
  22.  
Dec 3 '07 #1
2 1345
gnanda
2
Hi,

Use the same parameter_name v_logon in f_chk_logon inside the package body

Expand|Select|Wrap|Line Numbers
  1.  
  2. CREATE OR REPLACE PACKAGE BODY pkg_secure_valid 
  3. AS
  4.  
  5.   FUNCTION f_chk_logon (v_logon VARCHAR2) RETURN NUMBER
  6.   IS
  7.    v_sid NUMBER;
  8.   BEGIN
  9.    v_sid := 12;
  10.    RETURN v_sid; 
  11.   END f_chk_logon;
  12.  
  13. END pkg_secure_valid
  14.  
  15.  
Regards
Nanda
Dec 5 '07 #2
amitpatel66
2,367 Expert 2GB
Hi All,

Welcome to TSDN!!

Please make sure you follow POSTING GUIDELINES every time you POST in this forum.

Thanks
MODERATOR
Dec 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: FuzzyBear | last post by:
Hi, How do dependencies work with Oracle reports? I have a set of developers creating reports in Report Builder 6 w/ Oracle 8i and every time the stored packages change that the report uses,...
0
by: Kid A | last post by:
I am writing stored proecdures on Oracle 9 (release 1 I believe). I am having difficulty creating a stored procedure that makes a remote function call to a database on a different host. On the...
2
by: M | last post by:
Hello I am trying to build an Oracle PL/SQL Package. Some functions should only be visible from the package, while other functions need to be called from outside. I tried the following: --...
2
by: fhadlaq | last post by:
I need a little help here.. I want to transfer ONLY new records AND update any modified records from Oracle into SQL Server using DTS. How should I go about it? a) how do I use global variable...
1
by: robin via SQLMonster.com | last post by:
I've tried several different way to execute a oracle stored procedure from a DTS package but to no avail. I have a Linked Server setup which does bring back Oracle tables from the server when I...
4
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
2
by: brynk | last post by:
Anyone please help... I'm a newbie on creating functions in postgresql. Here is an oracle package that I'm trying to port to postgresql: CREATE OR REPLACE PACKAGE BODY NewsPkg.NewsTools AS...
2
by: gagandutta01 | last post by:
Hi, Can anyone tell me how to execute a function declared in Oracle Package from Unix shell script? I created a shell script and after connecting to oracle database i am using exec @...
2
by: Kristofds | last post by:
Hi, I'm trying to call an Oracle package function from C#, but I keep getting the same error: PLS-00306: wrong number or types of arguments in call to 'F_CTCPREPAREP151HEADER'. This is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.