Overload a Package with Private Procedures
Hello All,
Is there a probelem if you Overload a Package with Private Procedures?
In other words if I have two like named procedures in a package, neither of which is declared in the pacakge specification? It seems like I always overloaded a package with public procedures.
Thanks for any help,
Bradley
I can:
SQL>CREATE OR REPLACE PACKAGE test
2 AS
3 PROCEDURE test_public;
4 END test;
5 /
Package created.
Elapsed: 00:00:00.00
SQL>
SQL>sho err
No errors.
SQL>CREATE OR REPLACE PACKAGE BODY test
2 AS
3 PROCEDURE test_private (num IN NUMBER)
4 IS
5 BEGIN
6 DBMS_OUTPUT.PUT_LINE('number: '||TO_CHAR(num));
7 END test_private;
8
9 PROCEDURE test_private (str IN VARCHAR2)
10 IS
11 BEGIN
12 DBMS_OUTPUT.PUT_LINE('string: '||str);
13 END test_private;
14
15 PROCEDURE test_public
16 IS
17 BEGIN
18 NULL;
19 test_private(1);
20 test_private('a');
21 END test_public;
22 END test;
23 /
Package body created.
Elapsed: 00:00:00.01
SQL>sho err
No errors.
SQL>
SQL>exec test.test_public
number: 1
string: a
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL>
SQL>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux IA64: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Elapsed: 00:00:00.04
SQL>
Similar Messages
-
Private packages and private procedures
Hi friends....
can u tell me
can we define private packages....
can we define private procedures
where we can use private packages?
thanxYou can have private procedures in a package, when this procedure is in the package body but not in the package specification
create or replace package test_pkg
is
procedure public_proc;
end;
create or replace package body test_pkg
is
procedure private_proc
is
begin
null;
end private_proc;
procedure public_proc
is
begin
null;
end public_proc;
end;
/The procedure which is in the specification can be called from other packages, procedure, functions. The procedure which is only in the package body can only be called from procedure or functions in the same package body. -
Package with 2 procedures not working; Please help
When I try to run the procedures that are in this package manually, each one seperately works. But when I put together these procedures in a package, the second procedure does not work or not updating the table. Any idea why this is creating a problem??
PROCEDURE UPDATE_CS_ACTIVITY is the one in the below package that does not seems working .. but when i run the procedure manually it works fine.
Any help in this regard is greatly appreciated...
Thanx in advance
Here is the Package code:
CREATE OR REPLACE PACKAGE BODY UPDATE_ACTIVITY AS
CSREWORK NUMBER(4);
CSTRACKOUT NUMBER(4);
STARTDATE VARCHAR2(20);
ENDDATE VARCHAR2(20);
PROCEDURE INSERTVALUES IS
BEGIN
DELETE FROM 2DAY_ACTIVITY;
IF SUBSTR(TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS'),12,2) > 18
THEN
STARTDATE := '18:30:00';
INSERT INTO 2DAY_ACTIVITY(STAGESTEPPROD,RESOURCES,CSTRACKOUT)
SELECT "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES",COUNT(TRACKOUTTIME)
FROM "ACT_1DAY_VIEW" "ACT_VIEW"
GROUP BY "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES" WHERE "ACT_VIEW"."TRACKOUTTIME" > SUBSTR(TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS'),1,10)||' '||STARTDATE AND ISREWORKSTEP = 'F';
INSERT INTO WAFER_2DAY_ACTIVITY(STAGESTEPPROD,RESOURCES,CSREWORK)
SELECT "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES",COUNT(TRACKOUTTIME)
FROM "ACT_1DAY_VIEW" "ACT_VIEW"
GROUP BY "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES" WHERE "ACT_VIEW"."TRACKOUTTIME" > SUBSTR(TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS'),1,10)||' '||STARTDATE AND ISREWORKSTEP = 'T';
COMMIT;
ELSE
STARTDATE := '06:30:00';
INSERT INTO 2DAY_ACTIVITY(STAGESTEPPROD,RESOURCES,CSTRACKOUT)
SELECT "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES",COUNT(TRACKOUTTIME)
FROM "ACT_1DAY_VIEW" "ACT_VIEW"
GROUP BY "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES" WHERE "ACT_VIEW"."TRACKOUTTIME" > SUBSTR(TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS'),1,10)||' '||STARTDATE AND ISREWORKSTEP = 'F';
INSERT INTO 2DAY_ACTIVITY(STAGESTEPPROD,RESOURCES,CSREWORK)
SELECT "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES",COUNT(TRACKOUTTIME)
FROM "ACT_1DAY_VIEW" "ACT_VIEW"
GROUP BY "ACT_VIEW"."STAGESTEPPROD","ACT_VIEW"."RESOURCES" WHERE "ACT_VIEW"."TRACKOUTTIME" > SUBSTR(TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS'),1,10)||' '||STARTDATE AND ISREWORKSTEP = 'T';
COMMIT;
END IF;
END INSERTVALUES;
PROCEDURE UPDATE_CS_ACTIVITY AS
BEGIN
INSERT INTO CS_ACTIVITY(STAGESTEPPROD, RESOURCES, CSTRACKOUT, CSREWORK) select MAX(stagestepprod),MAX(resources), max(cstrackout) ,max(csrework) from 2day_activity group by 2DAY_ACTIVITY.stagestepprod,2DAY_ACTIVITY.resources;
COMMIT;
END UPDATE_CS_ACTIVITY;
END UPDATE_ACTIVITY;How do you know the procedure is not working?
You have created a package that has two sub-programs (procedures).
In order for the sub-programs to execute they must be called, individually.
You just don't put sub-programs in a package and call the package expecting it to execute all of the sub-programs. -
Private procedures in a package
Can anybody give me the syntax for declaring a private procedure in a package
Hi,
did you know what is private procedure for any package.
The private procedure is that procedure you didn't specify in your package specification you can directly write in package body and call then with in any procedure with have declare in package specification.
I am giving you a very simple example:=
create or replace package p1 is
procedure pro1;
end p1;//package specification
create or replace package body p1 is //package body
procedure pro1 is
begin
dbms_output.put_line('test');
test_pro1;//private procedure call
end pro1;
procedure test_pro1 is
begin
dbms_output.put_line('private procedure');
end test_pro1;//private procedure
end p1;
Regards,
Kamod -
Problem with execute SSIS package from stored procedure
Hi,
I would like to execute SSIS package from stored procedure. Therefore, I implemented sp which exec SSISDB.CATALOG.CREATE_EXECUTION method. When I try to test it from SSMS on remote server, I got error that
I was able to solve by adding “WITH EXECUTE AS …”. Then I got another error: The server principal "Domain\user" is not able to access the database "SSISDB" under the current security context. On Internet, I found a couple post that describe
how to access SSIS catalog (one of them by Ke Yang -
http://blogs.msdn.com/b/mattm/archive/2012/03/20/ssis-catalog-access-control-tips.aspx). It didn’t help. I’m still getting the error message.
How to debug this issue?
Any suggestion?
Thanks
SQL Server 2014 BISSMS does not propagate user credentials thus the error
Arthur
MyBlog
Twitter -
How to execute private procedures in a package
Hi
I have created private procedures in a package.
now i want to execute the private procedure. how to execute the private oneHi;
Pelase see below which could be helpful for your issue:
Private procedures in a package
http://stackoverflow.com/questions/924490/how-do-i-execute-private-procedures-in-an-oracle-package
Regard
Helios -
Package variables vs procedure arguments
Is it better to use package-level variables inside package or to use procedure arguments?
I'm just asking because I have a bunch of parameters for each procedure (all of them are private, and are only called from within the package).
Is better this:
package a
is
--package variable
v_something my_table%rowtype;
procedure a
is
--do something with v_something
end;
procedure b
is
select * into v_something
from my_table
where rownum=1;
--call it without parameters
a;
end;
end;
or this:
package a
is
procedure a(inSomething my_table%rowtype)
is
--do something with v_something
end;
procedure b
v_something my_table%rowtype;
is
select * into v_something
from my_table
where rownum=1;
--call it with parameters
a(v_something);
end;
end;Please post between the tags
..... and {code }
If you have multiple procedures updating and reusing the package variable you loose track of what value you have in the package variable.
And it depends what you are trying to do. -
String literal too long error while invoking a package with clob variable
I have a package.One of the input variables of the procedure in packae is clob.
I want to invoke this package with a huge clob as input.
when i invoke this package like that i am getting following error
PLS-00172 string literal too long
can't we pass clob(huge clob) as input .is there any solution for that ?
Thanks
Pramod Garre842802 wrote:
If insert this data into a table , from sql prompt still i get the same error.Do you mean SQL*Plus? Then there is buffer limitation and it is better to split literal into, let say 1000 character chunks:
SQL*Plus: Release 10.2.0.4.0 - Production on Tue Mar 29 16:17:26 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
6 from dual;
TO_CLOB('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
SQL> SY. -
Creating PL/SQL Package with all the types
CREATE OR REPLACE
TYPE rec_type AS OBJECT (
first_name VARCHAR2(20),
last_name VARCHAR2(20)
CREATE OR REPLACE
TYPE REC_TYPE_TAB AS TABLE OF rec_type
I am able to create the above types in oracle and used in PL/SQL packages. And like this I have somany types. I would like to if I can create a package with the types to make the life easier. Could you please tell me how to do it.
your help is greately appreciated..
--Krishsb92075 wrote:
TYPE add only aggravation, complexity, & should be avoidedI disagree.
When used correctly types can be the simplest solution.
For example when passing multiple values to a stored procedure. Avoiding the type in the below example would lead to further complexity and aggravation not lessen it.
SQL> create or replace procedure p
2 (
3 p_object_list in sys.odcivarchar2list,
4 p_result out sys_refcursor
5 ) as
6 begin
7 open p_result for
8 select owner, object_name, object_type
9 from all_objects
10 where object_name in
11 (
12 select column_value from
13 table(p_object_list)
14 )
15 order by
16 owner, object_name, object_type;
17 end;
18 /
Procedure created.
SQL> exec p(sys.odcivarchar2list('DUAL','ALL_OBJECTS'),:c)
PL/SQL procedure successfully completed.
SQL> print c
OWNER OBJECT_NAME OBJECT_TYPE
PUBLIC ALL_OBJECTS SYNONYM
PUBLIC DUAL SYNONYM
SYS ALL_OBJECTS VIEW
SYS DUAL TABLE -
How to use type, packages, functions, and procedures in another schema ?
I have two target schema in one OWB project, such as A and B. In a mapping of A, I would like to use some types, packages, functions, and procedures from B. I have tried the method of synonym as suggested, but I could not find the metadata of these when importing ... The only type of synonym I can import is the synonym for table. Is there a bug for synonym?
If I cannot use synonym for this issue, is there another way to solve the problem?Now, in some instances you will absolutely need to create the second module as Carsten describes, however it should also be noted that you can reference objects in things like Expressions even if you have not loaded up the metadata. It is only when you need strong binding that it becomes neccessary to import objects. For everything else, as long as the reference will resolve at compile-time then you are good to go.
For example, I have a function in one target schema (S1) and a private synonym to it in another(s2). A mapping in the S2 schema has an expression object that uses the synonym to the function in the expression property for a couple of the output attirbutes. The synonym has not been loaded into metadata - indeed OWB has no knowledge of its existance. But it resolves at compile time so the mapping validates and generates successfully.
Mike -
How to include an enhancement package with upgrade without Solution Manager
Hello,
I have been trying to do an upgrade from SAP R3 46C to ERP6 in my sandbox. I want to include Enhancment package 3 with the upgrade. I have tried using the Solution Manager to download the Enhancement package and it work fine except that it did not create the XML Stack configuration file that the upgrade is looking for. Therefore I downloaded the DVD for Enhancement package 3 and included that in the mounted CDs in the PREPARE portion of the upgrade and it does not recognize it.
Now for my question, is there a way to include the Enhancement package with the upgrade without using Solution Manager? If so, could someone please let me know where to find the information or share the procedure with me?
Thank you in advance,
RonThe EPs are just like support packages (optional); if the upgrade is not letting you put it during upgrade then just do it once the upgrade is completed.
-
Running a SSIS package with SQL Job and Linked Server
I have a SSIS 2008 package. In one of the Script task I am calling a stored procedure which is using Openquery using linked server. I deployed this package with protection level as "EncryptWithPassword" and gave a password to the package.
Created a SQL job and edited its command line to include the password. If I login to SQL Server Mgmt Studio with Windows Authentication and run the job manually it runs fine. But when I schedule it then I get an error that "The Communication link to Linked
server failed".
Please helpHi Vivek.B,
The issue should occur because the SQL Server Agent Service Account or SQL Agent Proxy account under which the job step runs doesn’t have sufficient permissions on the linked server.
If the job owner is the sysadmin fixed server role, the job can be run under the SQL Server Agent Service Account or a proxy account, then please make sure the SQL Agent Service Account or the proxy account has corresponding login on the linked server. If
the job owner is not a sysadmin fixed server role, the job must run under a proxy account. In this case, make sure the proxy account has a corresponding login on the linked server.
Reference:
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/10/13/who-owns-my-job-and-who-runs-it.aspx
Regards,
Mike Yin
TechNet Community Support -
How to call a package with ADO?
I have designed a package which include a procedure. And I have a program coded in ASP.
How to call this package with ADO. Please give a sample.Hi,
I persume that you are facing this problem when u try to code in VB. If that is the case here comes the code.........
OraDatabase.Parameters.Add "A_NBR_NEWSID", A_NBR_NEWSID, ORAPARM_INPUT, 2
OraDatabase.Parameters.Add "A_NBR_TOPICID", A_NBR_TOPICID, ORAPARM_INPUT, 2
OraDatabase.Parameters.Add "A_NBR_USERID", A_NBR_USERID, ORAPARM_INPUT, 2
OraDatabase.Parameters.Add "result", 0, ORAPARM_OUTPUT
OraDatabase.Parameters("result").serverType = 2
OraDatabase.ExecuteSQL ("declare result Number; Begin :result := PKG_CONTENT_MANAGEMENT.FUN_GET_NEWS_PERM_BY_USERID(:A_NBR_NEWSID, :A_NBR_TOPICID, :A_NBR_USERID); end;")
OraDatabase.Parameters.Remove "A_NBR_NEWSID"
OraDatabase.Parameters.Remove "A_NBR_TOPICID"
OraDatabase.Parameters.Remove "A_NBR_USERID"
FUN_GET_NEWS_PERM_BY_USERID = OraDatabase.Parameters("result").Value
OraDatabase.Parameters.Remove "result"
Hope this clear your doubt..
Raj -
PL/SQL Package with only Constants
We have created a PL/SQL package with a Spec and NO BODY with only constant values.
When a user logs onto the Database for the first time, and runs a program the first time the "Constants" package is called you get a ORA-06502, but every time after the first there is no issues. This only happens the first the user logs onto the database ( Session based ).
CoryYou have a wrong declaration in your package, some like c2 in the following example.
EDV@mtso> create or replace package xxx
2 is
3 c1 number := 1;
4 c2 number := 'aa';
5 c3 number := 3;
6 end;
7 /
Package created.
EDV@mtso> var t number
EDV@mtso> exec :t := xxx.c1;
BEGIN :t := xxx.c1; END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "EDV.XXX", line 4
ORA-06512: at line 1
EDV@mtso> print t
T
EDV@mtso> exec :t := xxx.c1;
PL/SQL procedure successfully completed.
EDV@mtso> print t
T
1
EDV@mtso> exec :t := xxx.c3;
PL/SQL procedure successfully completed.
EDV@mtso> print t
T
EDV@mtso> Note that constants declared before the errorous one have a value, constants declare after that one have no value.
Anton
Message was edited by:
ascheffer -
Returnable packaging with rental in is-mill 6.0
hello sappers,
can any one guide me with the step as how to config returnable packaging with rental calculation also need the pricing procedure for credit and debit memo calculation.
regards
AnilHi,
For returnable packing you need to create material with material type LEIH Returnable packing.
The item category and Gen Item Category should be LEIH.
When we receive the returnable material back from the customer the document type i.e order type is LA - Retn Packing pick -up.
In the delivery - we need to do Post good receipt . this will update the stock i.e in mmbe if you check the stock of returnable matl , it will show the packing matl at customer end. when we do the PGR , the stock from customer stock gets reduced and the stock at our end ( storgate location ) will increase.
If we do not receive the material , we need to debit the amount to the customer.For doing this, you need to create the document with order type LN.
Go do delivery and do the PGI ( pcik up is not required as the material is already picked up) . After PGI to to VF01 for billing and to the billing with reference to delivery doc no. The amount you would like to debit will get debited to customer a/c.on flaging .
Hope this will resolve your issue.
Best regards,
Subodh Baxi
Maybe you are looking for
-
I have an old format files that won't open in either 1.0 or CS3. Any hints? or do I have to find Version 1.5 or 2.0 to open. Only want to create a PDF from them. thanks
-
Watching the accumulative credit of a vendor
I'm searching for a report that produce the accumulative credit of a vendor/ I mean something like fbl1n but the sum column has to be like that: if fl1n give the 3 line: vendor sum 50051 100 50051 150 50051 -30 than
-
Maximum video file size ...
Hi ... In iPhoto, is there a maximum advisable size for video files ?
-
Can someone explain how to split an mp3 in Quicktime Pro
I have a 1 1/2 hour mp3 file. I want to split it in two. I can't seem to figure out how to do this in Quicktime Pro. Could someone give step by step instructions? Thanks!
-
HT2188 every time I plug the ipod into the computer itunes opens then quits unexpectedly
Every time i connect my ipod to the computer i tunes opens and then shuts down unexpectedly and almost immediately.The devise remain visible in the finder. This is the beginning of the error message. Can some one tell me how to fix the problem? Excep