Adding a feature to a package in sqlplus
Hello experts. I have not used sql more for a while, but I recently created a package and I would like to add more functions and procedure. How should I do?
Hello
The only way to change a package is to recreate the entire package.
Your source code should be stored outside the database. Change the commands for CREATING a PACKAGE and CREATE THE BODY of PACKAGE that you used earlier, adding new features.
If you have lost the source code, you can get a copy of the data dictionary. Ask the USER_SOURCE or ALL_SOURCE.
Tags: Database
Similar Questions
-
I had installed a plugin to add the tab "duplicate" to right-click menu for tabs. This was lost when I stupidly updated FF4 (my bad). I don't remember how I added this feature, which is STANDARD with IE8, FF3.6! Tab Manager disobeys. WHY IS - IT NOT A STANDARD CONTAINED IN FF4?
Could this be the add-on you think:
https://addons.Mozilla.org/en-us/Firefox/addon/duplicate-this-tab/
-
Adding the feature of research on firewall protected Intranet Page built with Dreamweaver
Adding the feature of research on firewall protected Intranet Page built with Dreamweaver
My company uses Dreamweaver to publish a Handbook of 'owner '. The author's site uses static HTML and Dreamweaver CS6 to create its content. There are about 100 web pages. We are looking to add a search function for all pages can search the entire site for key words of text.
- I do not have to rebuild the site and with the help of PHP and database search is possible;
- We can not use external services such as a link to Google Search the nature delicate and confidential of the content;
- The use of JavaScript on each page to search text is not useful (the last page contains not only "a lot of text" is simply to find the appropriate final page that is troublesome.) Thus, at the time where ever you get to the end page, info you need are clear. It happened on this last page that takes too much digging right now, which is the impulse to our desire to add a search function that helps to reduce users 'conjecture' down to a few options, rather than "many" that we have.
Two results I hope that the community can help us with is: is such a feature of search, even possible with HTML contained static? And if so, and suggestions would be most appreciated.
In a nutshell, we are looking for an option search strings in a private website so that we can reduce the clickable users options based on the keywords they enter into a search box.
Thank you.
PS: We use Dreamweaver CS6
Watch the Wrensoft Zoom.
Manual indexing runs entirely on your end. Ideal for sites Intranets closed, CDs, etc...
Nancy O.
-
Adding a feature to an existing package
I want to add a function to an existing packgage.
How can I do this?
Your parcel will be something like
CREATE OR REPLACE PACKAGE MY_PCK IS -- EXISTING FUNCTIONS and PROCEDURES END; CREATE OR REPLACE PACKAGE BODY MY_PCK IS -- EXISTING FUNCTIONS AND PROCEDURES END MY_PCK;
You can add fn_new as -
CREATE OR REPLACE PACKAGE MY_PCK
IS
-PROCEDURES and FUNCTIONS EXISTING-NEW FEATURE
FUNCTION fn_New (pid number)
RETURN NUMBER;END;
CREATE OR REPLACE PACKAGE BODY
MY_PCK
IS-FUNCTIONS AND EXISTING PROCEDURES
-NEW FEATURE
FUNCTION fn_New (pid number)
RETURN NUMBER
IS
BEGIN
-CODE
END;END MY_PCK;
-
Portege R830 - need to value added for Win8 64 bit package
Hello
I have a Portege R830-1 and I am very disappointed with Toshiba.
I have the function keys working on the first month of windows 8. whenever a windows update broke that for me and after that the kys function no longer works.
I reformatted the pc, I have tryied all what I found on the web, but the only thing I found is the added value of the package or the memory card controller is missing. I tried to install and reinstall all the versions, but it seems to be 32 bit and no 64-bit version. So I have to wait for the next release of PVAT
Windows 8 was released many months and I think that the problem is not difficult to solve.
Is it possible to return the function keys to live?
Hello
This 64-bit of the VAP to win 8
[Added value package 1.6.0130.640205 | http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory = 2 & selFamily = 4 & selSeries = 362 & selProduct = 7399 selSh ortMod = 3363 & language = 13 & selOS = all & selType = all & year = upload & monthupload = & dayupload = & useDate = null & mode = allMachines & search = & action = search & macId = & country = a he's & selectedLanguage = 13 & type = all & page = 6 & ID = 84829 & OS ID = 42 & driverLanguage = 42]
the VAP is not mobile specific utility.
You can take this software that has been published in other facilities too. -
Apple has added a feature to limit the bandwidth on the networks of comments yet?
I've read many threads saying that the bandwidth of the guest network could not limited to Airport utility, but most of them have at least 2 years. Apple still feature added to its range of airport?
It's not even a firmware update... and without a completely new firmware, there is no possibility of QoS. I think you expect that Apple will never offer more. They reduce the functionality does not improve it... Look for example at El Capo disk utility.
-
Adding the feature in muse blog?
I've been designing a Web site in the muse and I have most of the basic pages fleshed out, but I'm having great difficulty in adding features blog on one of my pages.
What I want to do is something like site Web of Gwenn Seemel with a built-in video blog that fits perfectly with the rest of the site (blog of the artist , face. The blog of the French-American painter artist Gwenn Seemel. ). I think there may be a way that you can do with the catalyst for the company, but it includes improving beyond the basic web hosting adobe provides with its creative cloud done, (which is ridiculous). My CC membership already cost me close to $65 per month here in the Canada, and I can't afford another $20 + just to be able to blog on my own Web site.
Is there a simple way to get around this?
Again, all I want to do is host a blog simple flow on a single page of my site and have it fit perfectly with everything else.If all you need is a stream, then add only a few JavaScript based RSS reader. Otherwise, there is no such feature in Muse. Nothing to know ha blog requires a dynamic interface and looking at the site you linked to, there is nothing magical about this topic - the whole site runs on a PHP server, where it would be easy to integrate a blog software.
Mylenium
-
Added a feature of deletion in the report
Hi all
Have a following requirement where I have to add update and delete buttons (or features) for each line in an interactive report. I have done the following
1 creates an interactive relationship with the following query
SELECT case_number "Title."
NVL(grievant_type,'') 'Type,'
NVL(note,'') "Description."
Category "NULL."
NVL(last_updated_by,'') "last updated from."
NVL(last_update_date,'') 'latest review. "
""Update. "
"'Delete '.
OF apps.xx_test_entry
WHERE ROWNUM = 10;
2. once the report has been created I edited and went to the attribute of report-> attributes column, and click on the update and makes it as a Standard column and selected an icon for it and under the link column gives the target as a Page in the application and the page number and saves it (works well as expected)
3. in the case of a deletion, I would like to call a procedure that will run my code which only will not delete the row from the table, but also a few other tables.
My question is how can I do?
I use ebs r12 and APEX 4.2
Thank you
I like this use of dynamic actions to solve this problem
-
Error creating features in the packages - unknown command FUNCTION
Hello
I usually identify with the diagram of the system via the SQL command line and run my sql files. I have the database below and the test package. But I get the error:
Order unknown start "FUNCTION p...» ' - the rest of the ignored line
This is the database I load previously:
DROP TABLE Judete CASCADE CONSTRAINTS;
CREATE TABLE Judete
(
JD CHAR (2) PRIMARY KEY.
NumeJud char(10) NOT NULL UNIQUE,
Regiune CHAR (15) by default "Moldova" CHECK (Regiune IN ('Moldova', 'Transilvania', 'Banat'))
);
DROP TABLE Localitati CASCADE CONSTRAINTS;
CREATE TABLE Localitati
(CodPostal NUMBER (8) PRIMARY KEY,)
NumeLoc NON NULL, char (15)
Judet (2) tank,
FOREIGN KEY (Judet) made REFERENCE Judete (JD)
);
DROP TABLE Persoane CASCADE CONSTRAINTS;
CREATE TABLE Persoane
(NOC NUMBER PRIMARY KEY (15),)
NumePers NON NULL char (20)
PrenPers NON NULL char (20)
CodPostal NUMBER (10),
Such NUMBER (12) NOT NULL,
FOREIGN KEY (CodPostal) made REFERENCE to Localitati (CodPostal)
);
DROP TABLE Produse CASCADE CONSTRAINTS;
CREATE TABLE Produse
(CodProdus NUMBER (10) PRIMARY KEY,)
NumeProdus NON NULL, char (15)
Loan NUMBER (8) NOT NULL
);
DROP TABLE Vanzari CASCADE CONSTRAINTS;
CREATE THE Vanzari TABLE
(CodV NUMBER (8) PRIMARY KEY,
CodProdus NUMBER (10),
PersCNP Number (15),
DataV DATE NOT NULL,
NrProduse NUMBER (8) NOT NULL,
FOREIGN KEY (PersCNP) made REFERENCE Persoane (NOC),
FOREIGN KEY (CodProdus) makes REFERENCE Produse (CodProdus)
);
INSERT INTO Judete VALUES ('IS', 'Iasi', 'Moldova');
INSERT INTO Judete VALUES ("CJ", "Cluj", "Transilvania");
INSERT INTO Judete VALUES ("TM", "Timis', 'Banat');
INSERT INTO Localitati VALUES (200, "Vaslui", "IS");
INSERT INTO Localitati VALUES (201, 'Targu Frumos', 'IS');
INSERT INTO Localitati VALUES (202, 'Criseni', 'CJ');
INSERT INTO Localitati VALUES (203, "Dealu Botii", "CJ");
INSERT INTO Localitati VALUES (204, "Beba Veche", "TM");
INSERT INTO Localitati VALUES (205, "Blajova", "TM");
INSERT INTO Persoane VALUES (0001, "Ionescu", "Ion", 201, 0332504312);
INSERT INTO Persoane VALUES (0002, "Vasilescu", "Vasile", 203, 0332304612);
INSERT INTO Persoane VALUES (0003, "Ionescu", "Ion", 204, 0322564322);
INSERT INTO Produse VALUES (1, "Limp", 50);
INSERT INTO Produse VALUES (2, 'First', 80);
INSERT INTO Produse VALUES (3, 'Corn', 35);
INSERT INTO Vanzari VALUES (100, 1, 0001, to_date('2011-03-07','yyyy-mm-dd'), 5);
INSERT INTO Vanzari VALUES (101, 3, 0001, to_date('2011-02-07','yyyy-mm-dd'), 2);
INSERT INTO Vanzari VALUES (2, 102, 0002, to_date('2011-01-08','yyyy-mm-dd'), 7);
INSERT INTO Vanzari VALUES (1, 103, 0002, to_date('2011-03-08','yyyy-mm-dd'), 15);
INSERT INTO Vanzari VALUES (3, 104, 0003, to_date('2011-02-19','yyyy-mm-dd'), 9);
INSERT INTO Vanzari VALUES (105, 1, 0003, to_date('2011-03-29','yyyy-mm-dd'), 1);
the package is:
CREATE or REPLACE PACKAGE pachet_lab2
IS
FUNCTION prod_bine_vandut RETURN NUMBER;
END pachet_lab2;
/
CREATE OR REPLACE pachet_lab2 BODIES
FUNCTION prod_bine_vandut RETURNS the NUMBER IS
DECLARE
v_sale NUMBER (6);
V_nume char (15);
v_cod NUMBER (10);
BEGIN
SELECT max(p.pret * v.NrProduse) IN the v_sale DE Produse p, Vanzari v
WHERE the p.CodProdus = v.CodProdus;
SELECT p.numeProdus INTO v_nume Produse p, Vanzari v
WHERE p.CodProdus = v.CodProdus AND v_sale = p.pret * v.NrProduse;
SELECT p.codProdus INTO v_cod Produse p, Vanzari v
WHERE p.CodProdus = v.CodProdus AND v_sale = p.pret * v.NrProduse;
Return v_cod;
END prod_bine_vandut;
END pachet_lab2;
/
I need to change the schema that I use? How can I do?
Thank you
PaulCREATE OR REPLACE PACKAGE BODY pachet_lab2 IS --you misse keyword PACKAGE FUNCTION prod_bine_vandut RETURN NUMBER IS -- DECLARE is not allowed here v_sale NUMBER(6); -- ...
Good bye
DPT -
Are you planning on adding a feature of recurring events?
Many of my clients ask to make a recurring event. Which is in preparation?
Hi Chris,
This isn't one of the things that is currently on the immediate roadmap. Please see this post for a few days there are some things that are on the road map http://www.businesscatalyst.com/_blog/BC_Blog/post/Business_Catalyst_Mission, _Strategies_a nd_Roadmap /
See you soon,.
-mario
-
Help! ORA-12703 without the use of convert
Hello!
First of all. I m not crazy. I swear.
It s a very strange error.
I have a form.
This form has a trigger that calls a function inside a package [form_var: = my_pkg.my_func (x);]
It's summer for the years of work.
I've added another feature in this package.
This new feature is not served in my forms. Not at all. No other function inside the package calls the new function.
It s a new isolated function. No object, he still uses. I'll use the latter, but nothing is use it to know. Claire?
But now when I run my form, I get the error ORA-12703 when calling my_pkg.my_func (the older function).
(new: my_func does not call the new function).
If I comment the new function of package specifications (no need to comment in the package body), it works again.
If I run outside the shape (sqlplus) it works (the old function and the new function: two works).
Nowhere in my code there are conversion or anything that may require a translation of charset.
There was no change in the server. Or in the client and the form designer. Or in windows.
Does anyone know why a unused function causes this error?
Forms [32-bit] versão 6.0.8.11.3 (being Produção)
Oracle Database 10g Release 10.2.0.3.0 - 64 bit ProductionForms 6.0.8.11.3 is not supported for database 10.2.0.3.0. So, if I were you, I would upgrade first to a later version of forms (6.0.8.26, fixes 17 game I think).
-
Value added package requires the password to unpack
My function keys have stopped working (win 7 64 bit). Added value, I downloaded the package vap20091111094513.zip (tried 2 times) and he asks a password to unpack. Someone suggest what is happening please?
Can you please send the download link? I want to test it.
-
Feature helps performance call (COLLECTION ITERATOR PICKLER FETCH)
11.2.0.3
Solaris 10
I need assistance with our implementation of the policy of restricting access. From our plans of execution and trace files, we see our political function run when querying tables restricted. This, of course, is planned and is done in a hash against the returned results join by the query . The function fills a set IDs based on the roles that the user has and pushes those predicates against object_1.
-------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
-------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 5331 | 786K | 1358 (21) | 00:00:03:
|* 1 | HASH JOIN RIGHT SEMI | | 5331 | 786K | 1358 (21) | 00:00:03:
| 2. COLLECTION ITERATOR PICKLER FETCH | GET_PERMISSIONS | 16360. 32720 | 20 (10) | 01:00:00 |
| 3. TABLE ACCESS FULL | OBJECT_1 | 634K | 90 M | 1302 (19) | 00:00:03:
-------------------------------------------------------------------------------------------------------
The problem we have is with reports where the optimizer find it more effective to make an IMBRIQUEE LOOP between an object and the object of access restricted. The function is then called as as many times as the operation of nested loop runs. When a report may take a few seconds, it will be take minutes to complete because the function is called thousands of times. These reports are very long and complex but below is an example where I forced the nested loop (query takes too long without additional predicate).
SELECT / * + USE_NL (obj1, obj2) * /.
Ob1.ID
Of ob1, ob2 object_2 object_1
WHERE ob1.obj2_id = ob2.id (+) AND obj1.obj_name IN ('SOME_VALUE');
---------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
---------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3620 | 190K | 137 (2) | 01:00:00 |
| 1. NESTED EXTERNAL LOOPS | | 3620 | 190K | 137 (2) | 01:00:00 |
| 2. TABLE ACCESS BY INDEX ROWID | OBJECT_1 | 3620 | 123K | 135 (1) | 00:00:01 |
|* 3 | INDEX SKIP SCAN | OBJECT1_FK_I | 3620 | | 22 (0) | 01:00:00 |
| 4. SEE PUSHED PREDICATE. OBJECT_2 | 1. 19. 1 (0) | 01:00:00 |
| 5. SEMI NESTED LOOPS. | 1. 19. 21 (10) | 01:00:00 |
| 6. TABLE ACCESS BY INDEX ROWID | OBJECT_2 | 1. 17. 1 (0) | 01:00:00 |
|* 7 | INDEX UNIQUE SCAN | OBJECT_2_PK | 1. | 1 (0) | 01:00:00 |
|* 8 | COLLECTION ITERATOR PICKLER FETCH | GET_PERMISSIONS | 137. 274. 20 (10) | 01:00:00 |
---------------------------------------------------------------------------------------------------------
We have reports where the function is called more than 100 000 times and can take 12 minutes additional to complete. I'm not the developer of these reports or our policies, but I do my best to help in tune. I can force it to use hash joins, where possible, and the time of the request is excellent. There is, Unfortunately, thousands of these reports with different degrees of performance degradation because this function so that the developers are wondering if there are other alternatives. Is there a way to tell the optimizer to use of hash joins when dealing with this function? I looked at using different policy types (currently "SHARED_CONTEXT_SENSITIVE"), but neither contributed to improve performance. I've been all over the internet and have not been able to find a similar situation. I tried to be comprehensive, but I do not know I missed some vital information, then please let me know if I can explain it. Thoughts appreciated.
Thank you.
CREATE OR REPLACE FORCE VIEW SOME_SCHEMA. SECURITY_ID_TEMP
(
ID,
CONT_CN
)
AS
SELECT id, cont_cn
TABLE (CAST (some_pkg.get_ids AS rls_array)) t;
And this latter view is probably what is causing the problem. That's what I said in my answer:
A possible explanation is that your political function is a predicate that uses a collection.
. . .
Probably the political predicate sometimes involves a small number of elements and many other times.And it is the predicate that you just posted:
IF ii_user_is_exempt (some_user)
THEN
predicate: = NULL;
ON THE OTHER
predicate: = 'security_id in (select id from security_id_v);
END IF;
RETURN of predicate;
The policy predicate is querying a view based on a collection. How the optimizer supposed to know how "rows" are in this collection 'rls_array' which is used as if it were a table?
As you return a NULL predicate in some cases. I've never tested it, but I would warn against it. See the doc of security
http://docs.Oracle.com/CD/E25054_01/network.1111/e16543/VPD.htm#CIHBEIFC
Creating a function to generate the dynamic WHERE Clause
To generate the dynamics
WHERE
clause (predicate), you must create a function (not a procedure) which defines the restrictions you want to apply. In general, the security administrator creates this function in its own schema. For a more complex behavior, such as including other functions or adding controls to track logon attempts, create these features within a package.The function should have the following behavior:
- It takes as arguments a scheme name and a name of object (table, view, or synonym) as inputs. Set the input parameters to contain this information, but do not specify the schema name and object themselves within the service. The strategy that you create with the
DBMS_RLS
(described in "creating a policy to attach the function to the objects you want to protect") provides the namespace of the schema and object to which the policy applies. You must create the parameter for the schema first, the setting for the object. - It must provide a return value for the predicate in the WHERE clause that will be generated. The return value for the
WHERE
article is always aVARCHAR2
data type. - It must generate a valid WHERE clause. This code can be as simple as the example in "tutorial: creating a Simple Oracle virtual private Database Policy ', in that its
WHERE
clause is the same for all users who log on.
I wonder the use of this collection as part of your policy mechanism.
TABLE (CAST (some_pkg.get_ids AS rls_array)) t;
First - each user has its own State of package. This means that each user has its own collection; This isn't a master collection (ID game) that is shared by all users. A real table, is where the data will be shared by all users should exist.
Second - this function 'get_ids' (I guess this is a feature rather than a grouping variable?) may actually be to interview one or more tables every time it is called. This means that EACH query that performs a user must first call that 'get_ids' that works while it asks a few real tables to obtain information and make a collection.
Even if a required collection to be used it must be created ONCE and then come back as needed.
This security architecture raises some red flags for me. It's the first thing that I looked at.
Yes, I know, any changes that might involve serious implications and require a substantial analysis, testing and implementation. But my suspicion is that where the root of the problem.
My assumption is at this time that your collection of 'rls_array', used as a table, is the cause of the problem. Oracle does not have statistics on the result set of this "table", and of one query to another, has no way to know if the number of 'lines' changes significantly.
Oracle could use some dynamic sampling to try to estimate things and inspiring that sampling is changing the execution plan. You could try to find a query which causes problems and to see how the number of items in collection compares the number of a normal query.
Short of this thorough/fix analysis which I think is necessary, your best bet may be to investigate pinning on an implementation plan; forcing the use of a basic plan for this query little matter that runs it.
If you want to study Sql Plan Management and this way opens up a new thread for this issue/question and provide a link to the current thread.
Here is an article from Oracle to become familiar with SPM
http://www.Oracle.com/technetwork/issue-archive/2009/09-Mar/o29spm-092092.html
And here is sample thread "How to force Oracle to use an implementation Plan" to give you an idea of the use of the mechanism.
https://community.Oracle.com/thread/991149?TSTART=0
See Jonathan Lewis's response in this thread.
There are many other threads and documentation, SPM, if you want to continue that.
- It takes as arguments a scheme name and a name of object (table, view, or synonym) as inputs. Set the input parameters to contain this information, but do not specify the schema name and object themselves within the service. The strategy that you create with the
-
Hi all
AM creating packages with Creative could conditioner, need to include 'Extension Manager CS6 ' to my list of requests, I downloaded a version and trying to add to the list with the help of add the option offline media, but get the error as media is not appropriate etc...
Can any body please let me know how to add media offline while we creating packages with Creative Cloud Packager.
Thanks in advance.
This is possible in theory, as long as the source media that you add is complete and unzipped. Also if 32 bit it cannot be added to a 64-bit package and vice versa.
It's not really what this feature is designed for good. It is designed for DVD sets provided to customers who live in areas where poor internet infrastructure that cannot download apps via CCP.
-
How to cancel feature full page
I added the feature full screen and I don't like, but I do not remember how to remove it
F11 activates / turns off mode full screen on / off.
Maybe you are looking for
-
Qosmio series - drivers Toshiba Nvidia Beta for Windows 8 version 302.71
Hi all Toshiba U.S. post new Nvidia Beta drivers Windows 8 Release Date 15/06/2012 302.71 [HERE: http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/modelContent.jsp?ct=DL&os=&category=&moid=3380646& rpn = PSPLXU & modelFilter = X 870-BT2G23 & SelCat
-
Please help me find a replacement motherboard for Lenovo y570
I blew my motherboard the other day, thanks to a power surge from a USB hub at low prices. My laptop is Lenovo y570. Product ID: 0862XB2 Here are the numbers that I could find on the series motherboard section
-
HP Mini 210-2002sa laptop: System Recovery
Product name: HP Mini 210-2002sa laptop computer model #: XD396EA OS: Windows 7 starter edition Should I for Microsoft Windows 7 starter product key to perform a system recovery? If Yes, where can I get it? The only thing I have is the OEM product
-
Connection problems with remote desktop connection
Good somehow I try to connect to my remote friends computer and it has a windows 7 and I already configured on his computer. I already forwarded Ports on his computer, his static IP, added exception to the firewall, including Norton Internet Security
-
Cannot change anything in the action center error code and the blue screen and stops.
I can't do anything on my computer with windows7 can not install updaets or sofyware of security I get an error code and the blue screen and stops OT:everytime I try to change anything whatsoever in the action center ndour windowws blue security and