Can we Pin a Procedure?
Dear All,
I know that we can pin a package.But I have no clear idea about procedures.Can we pin Procedures?.We have procedures that are run daily of which one of them runs for 5 hrs.So , I wanted to pin them..please let me know how it can be done
If we pin a package, does it give the results quickly and accurately even if the base tables are updated?
Please tell me what exectly happens when we pin a package?
Regards,
Kris
There are several packages that should be pinned at the shared pool reserved area automatically at startup, so I suggest you to write a database trigger, similar to this one to pin the most important packages:
create or replace trigger Package_Pin
after startup on database
begin
dbms_shared_pool.keep('DBMS_ALERT');
dbms_shared_pool.keep('DBMS_DDL');
dbms_shared_pool.keep('DBMS_DESCRIBE');
dbms_shared_pool.keep('DBMS_LOCK');
dbms_shared_pool.keep('DBMS_OUTPUT');
dbms_shared_pool.keep('DBMS_PIPE');
dbms_shared_pool.keep('DBMS_SESSION');
dbms_shared_pool.keep('DBMS_SHARED_POOL');
dbms_shared_pool.keep('DBMS_STANDARD');
dbms_shared_pool.keep('DBMS_UTILITY');
dbms_shared_pool.keep('STANDARD');
end;~ Madrid
Similar Messages
-
Can not see Stored Procedures owned by "Code Owner"
Post Author: BinChen
CA Forum: Deployment
I am using Data Source defined with "CR Oracle ODBC Driver 5.0" in "Data Source (ODBC)".
But in Crystal Report XI, I can not see CodeOwner when I can created a new connection using ODBC (RDO).
I can see CodeOwner and all SP defined under it when I use "Oracle Server" directly or use sqlplus.Post Author: BinChen
CA Forum: Deployment
I'm using Window XP with Oracle 10g2R
To be more clear,
I have an ODBC Data Source defined as "DEV" and when I created a connection using ODBC, I can only see some database account section like: APP, APPREF, PUBLIC, SYS, SUSTEM. But I can not see CodeOwner.
If I connected without using ODBC, I can also see CODEOWNER and then all its stored procedures.
So why I can not see Stored Procedures defined under CODEOWNER using ODBC?
I have an exsiting report, even I can not see CODEOWNER, but I have no problem to run and preview the report also to "verify database". -
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
Hi
I have a stored procedure. It can be executed like this
exec test @p = 1;
exec test @p = 2
exec test @p = n;
n can be hundred.
I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time.
If I know the number in advance, say 3, I can create 3 different Execution SQL Tasks. They can be run in parallel.
However, the n is not static. It is coming from a table.
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
I think about using script task. In the script, I get the value of n, and the list of p, from the table, then running a loop with. In the loop, I create a threat and in the threat, I execute the sp like : exec test @p = p. So the exec test may
be run parallel. But I am not sure if it works.
Any idea is really appreciated.Hi nam_man,
According to your description, you want to call stored procedures in parallel, right?
In SSIS, we can create separate jobs with different stored procedures, then set the same schedule to kick the jobs off at the same time. In this way, we should be careful to monitor blocking and deadlocking depending on what the jobs are doing.
We can also put all stored procedures in SSIS Sequence container, then they will be run in parallel.
For more information about SSIS job and Sequence container, please refer to the following documents:
http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
https://msdn.microsoft.com/en-us/library/ms139855(v=sql.110).aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
In the slide show view how can you pin the "next" Arrow to the ultimate edge so it is in the same place as the full screen image, it will pin to the left edge but not the right.
Hello,
Please make sure that the next button is pinned to the right side as there in the attached image.
If it is already pinned, you can try removing any embedded HTML code and checking it.
Regards,
Neha -
How we can configure new pricing procedure at the time of billing document
Hi SD Gurus,
Can u plz tell me how we can configure new pricing procedure at the time of billing document level.
Thanks & Regards,
Sreenivas.PHello,
Why?
The sales order confirms the price given to the customer. If you have re-determined a new price/discount then you may consider in VTFL to use pricing type C.
Regards
Waza -
Can we call a procedure in select statement?
Can we call a procedure in select statement?
Hi,
Raghu_appsdba wrote:
Can we call a procedure in select statement?No. You can call functions, but not procedures.
If the procedure does not change the database state (for example, it doesn't update any tables), then you can wrap it in a function, or re-write it as a function.
Here's an example of wrapping.
CREATE OR REPLACE FUNCTION fun_x (in_txt IN VARCHAR2)
RETURN VARCHAR2
IS
BEGIN
proc_y (in_txt);
RETURN in_txt
END fun_x; -
Can we call a procedure within function?
Can we call a procedure in function?
If yes, then please explain with example.
Thanks
AmanWhy don't you try it?
SQL> set serveroutput on
SQL> declare
2 procedure p1 (
3 i1 in out number
4 )
5 as
6 begin
7 i1 := 200;
8 end p1;
9 function f1
10 return number
11 is
12 l1 number;
13 begin
14 p1(l1);
15 return l1;
16 end f1;
17 begin
18 dbms_output.put_line(f1);
19 end;
20 /
200
PL/SQL procedure successfully completed.
SQL> set serveroutput off -
Bug or feature limitation: can't pin header on Phone version of site
Hi,
Check out this file. Look at it in phone view. Preview and note that I can't pin the header/nav.
Bug or feature limitation?
Dropbox - MicrositeRedesign04.muse.zip
DaveIt isn't a bug. It is a limitation of mobile browsers. Pinning isn't supported by mobile devices.
However you are in luck as Muse has built in another way to do it. Use the scroll effects instead and set the values to 0 which essentially does the same thing as pinning. -
I purchased an Ipad yesterday. I wish to transfer music from my laptop to ipad. Can I know the procedure?
Check this out
http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
tells you everything you need to know. -
Crystal Reports can't add stored procedure using Oracle Provider for OLE DB
Hello,
I am trying to bind an oracle stored procedure to a crystal report through Visual Studio 2008.
This oracle stored procedure returns a ref cursor.
I am using an oracle 11g database (11.2.0.2.0) .
When I use the Oracle Provider For OLE DB driver to bind the store procedure with the report, I get the following error message:
Description : ORA -06550 Line 1 Column 7
PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
But When I use the Microsoft OLE DB provider for oracle driver, I can bind the stored procedure to the report successfully .
I cannot use the Microsoft OLE DB provider for oracle driver because it does not support the CLOB data type which I plan on having the stored procedure return once I can get everything working.
I have tried setting PLSQLRSET = 1 IN "HKEY_LOCAL_MACHINE\SOFTWARE\KEY_OraDb11g_home1\OLEDB", but that does not seem to work either
Any assistance would be greatly Appreciated
My Stored procedure is very simple as the moment (I just need to get it working then I'll add more stuff). Here's what it looks like:
CREATE OR REPLACE PACKAGE PROMO.PKG_REPORT as
TYPE OUT_Type IS REF CURSOR;
procedure Report_ThisReport (
p_ThisIdField IN number,
IO_CURSOR IN OUT OUT_Type
end PKG_REPORT;
CREATE OR REPLACE PACKAGE BODY PROMO.PKG_REPORT as
procedure REPORT_ThisReport (
p_ThisIdField IN number,
IO_CURSOR IN OUT OUT_Type
IS
BEGIN
OPEN IO_CURSOR FOR
SELECT ThisField
FROM ThisTable
WHERE ThisIdField = p_ThisIdField ;
END REPORT_ThisReport;
end PKG_REPORT;
Edited by: 894988 on Nov 3, 2011 2:45 PM
Edited by: 894988 on Nov 3, 2011 2:46 PM
Edited by: 894988 on Nov 3, 2011 2:47 PMIt seems that some questions posted here on the XE forum are really questions about other Oracle technologies.
Concretely, for you there is an Oracle Provider for OLE DB Forum that is active and a terrific resource for you to use.
Oracle Provider for OLE DB
Cheers! -
Can i create any procedure or function inside a oracle reserve package?
Hi!
Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
Thanks in advance.
Satyaki De.No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
Re: DBMS_OUTPUT.PUT_LINE -
Can i compile new procedures/packages on my snapshot standby?
Hi
can i compile new procedures/packages on my snapshot standby?
I need to test the new release of the application, which include some changes to current packages
thanksyes you can do it, just that it will be flashbed back to the restore point when it was standby first, do anything on it, but be aware that later you convert from snapshot standby to physical standby, more time it would take for redo to be applied and also it is mandatory to open the snapshot at least once in read-write mode before it can be converted into a physical standby database.
Regards
Karan -
Can any one send procedure for integration between XI and Geographic inform
can any one send procedure for integration between XI and Geographic information System(GIS).
Please clarify ASAP..
ThanksHi,
Please see the below links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d53af8ca-0801-0010-08b0-dce9e02130a8
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d53af8ca-0801-0010-08b0-dce9e02130a8
GIS VS XI
Regards
Chilla..
Points rewarded if it is usefull..<i></i> -
Can we call a procedure from a trigger
Can we call a procedure from a trigger
thanksWhy cant you test yourself..?
SQL> ed
Wrote file afiedt.buf
1 create or replace procedure p1
2 as
3 begin
4 null;
5* end;
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 create or replace trigger t1
2 after insert on t
3 begin
4 p1;
5* end;
SQL> /
Trigger created.
SQL> insert into t
2 values(5,'n');
1 row created.
Message was edited by:
jeneesh -
Can we define a Procedure in a Package Body without Defining in a Specifica
Hi,
Can we define a Procedure in a Package Body without Defining in a Specification,,
if yes then how...,Please provide me some examples
Please helpme out....
Regards
NikhilYes we can!
But this procedure can then only be called from other procedures/functions in the same package.
Examples?
untested
create or replace package test
as
begin
null
end;
create or replace package body test
as
procedure dummy
as
begin
null;
end dummy;
end;
/
Maybe you are looking for
-
Orchestral midi loops fx not translating to arrange
when i audition these orchestral loops in the media browser i hear them with massive reverbs, very convincing, perhaps a little bit overdone here and there but still impressive when i transfer these to the arrange they lose all the effects and appear
-
Third party system (JCO) ---RFC--- PI ---RFC--- ECC
Hello all, We are trying to implement the following scenario: Third party system (JCO) -RFC-> PI -RFC-> SAP ECC The third party system connect to PI via Java Connector API with a know user id in PI. After that third party system tries to obtain the R
-
X1C i7 8GB Option Available for Order in US! [11/28/2012]
But no touchscreen option... ... otherwise my order would be in... As the touchscreen option has been pulled from the list of "New Products", does anyone know if it has been cancelled or is this just marketing to first sell off the non-touchscreens?
-
Getting the formatting error in smart forms
Hi All, When I am running the program to display the output for SMARTFORM in development system it is working fine ,But doing the same in the production system gives me the formatting error EXCEPTIONS FORMATTING_ERROR
-
Publishing Web Services via APEX on the horizon? WSRP? SOD?
Hi, Are there any plans for APEX being able to "natively" publish Web Services? Maybe support for WSRP so you could publish an APEX based portlet on Oracle Portal or WebCenter? Any news of when an updated statement of direction will be published? Reg