Get the source code of a procedure for a huge package in oracle
I have a package which, as methods of 40-50 in them, I would like to retrieve the source of one inside the package. is there a table where I can get this detail in the oracle database.I know there is an all_source table, which has the entire source code, but I want to only get the source code for a particular procedure.
Thanks in advance.
You have defined your procedure as provided
procedure procedure_name...
...
end procedure_name;
and the procedure is not overloaded, you can try something as
with
first_line as
(select line
from all_source
where instr(lower(text),'procedure '||lower(:procedure_name)) > 0
and name = :package_name
and type = 'PACKAGE BODY'
and owner = :package_owner
),
last_line as
(select line
from all_source
where instr(lower(text),'end '||lower(:procedure_name)||';') > 0
and name = :package_name
and type = 'PACKAGE BODY'
and owner = :package_owner
),
select text
from all_source
where line between (select line from first_line)
and (select line from last_line)
order by line
Concerning
Etbin
Tags: Database
Similar Questions
-
Can we get the source code for the camera?
Can we get the source code for the camera? Including libraries? CM is great, except that the camera is not well polished, and the quality of the stock ROM Sony are much better.
probably more likely questions and restrictions of copyright
inspect the developers space
-
where can I get the source code for the shell of the user interface
Hi all
I use Jdeveloper 11.1.2.3.0 shell and UI.
I want to show a custom message to the user when it tries to close a tab that contains unsaved data.
I found this thread {message identifier: = 10782288}
I tried to extract the contents of the oracle-page-templates file - ext.jar, but I find only the .class files not .java files.
So, where can I get the source code for the shell of the user interface, or someone has a better solution?Hello
Try this link http://www.oracle.com/technetwork/developer-tools/adf/uishellsrc-1612278.zip
Frank
-
How to get the source code of the UIShell model
Hello
We use the UiShell model in our project. The version of the UIShell model is the one coming with JDeveloper 11.1.1.6.
We need the source code for this particular version to customize.
My questions are:
1. where to find the source code for this particular version (No newer or older)
2 how get it (do we need to sign anything, for example?)
Thank youHello
the SR may be presented by any person in your company who has a metalink account.
Only the NDA must be signed by the person who has the legal responsibility to do so.concerning
Peter -
where can I get the source code for the correction of a bug for a long time with tabs?
When I right click on a bookmark or a link, so that I have to scroll down open the link in a new tab. I want to change the code to fix this bug, so I can open links in a new tab automatically by default. do this last properly as in netscape. all browsers since have faulty management of tabs.
See:
- [/questions/791244? page = 2 #answer-161497] Context menu - why 'open in a new window' is second and "open in new tab" is the first?
-
When I try to log in to Photoshop, it keeps asking me for a 'unlock code' so I'm unable to access my photos how can I get the unlock code
Thank you for your response to my query. I have the Album Starter Edition 3.2. It's a box of product registration keeps coming back when I try to log in. This starter edition has been downloaded as a trial as I have used for some years now without difficulty until I have to register and pay for the privilege of using it. I tried to register, but registration box disappears. I'm sorry to be vague, but I'm not as into it as you and still trying to familiarize themselves with computer terminology and everything very confusing sometimes. Even the delay in responding to your response to my query is due to not being able to navigate the Web site to know how to respond.
SORRY, but I hope you can help
-
String panipulation - rename the package name in the source code.
I want to do the replacement string as below:
The point is to rename the name of the package in the Package source code, in the first and the last line of the source code.select 'CREATE OR REPLACE PACKAGE CollectStats IS PROCEDURE save_log(p_logrec IN LiveStatsLog%ROWTYPE); PROCEDURE UpdateLiveGamesHourlyStats; PROCEDURE UpdateSideGamesHourlyStats; PROCEDURE UpdateConcurrentPlayerStats; PROCEDURE CollectStats; END CollectStats;' from dual; --> select 'CREATE OR REPLACE PACKAGE CollectStats_20100810 IS PROCEDURE save_log(p_logrec IN LiveStatsLog%ROWTYPE); PROCEDURE UpdateLiveGamesHourlyStats; PROCEDURE UpdateSideGamesHourlyStats; PROCEDURE UpdateConcurrentPlayerStats; PROCEDURE CollectStats; END CollectStats_20100810;' from dual;
This is only an example package. The query must sort the replacement of the chain so that the result would be, as shown in a package with a different name.
Note that name of the package, and a procedure within the source code of the package are the same - see "PROCÉDURE CollectStats;".
Somehow the replacement of the regular expression should be used.
Published by: CharlesRoos on August 11, 2010 03:31Try this:
SQL> ed Wrote file afiedt.buf 1 with t as (select 'CREATE OR REPLACE PACKAGE BODY "XXX"."COLLECTSTATS" IS.... 2 PROCEDURE CollectStats IS 3 BEGIN 4 UpdateLiveGamesHourlyStats; 5 UpdateSideGamesHourlyStats; 6 UpdateConcurrentPlayerStats; 7 END CollectStats; 8 END CollectStats; 9 /' body from dual) 10 SELECT REPLACE(REPLACE(body,'BODY "XXX"."COLLECTSTATS"','BODY "XXX"."COLLECTSTATS_20100811"'), 11 'END CollectStats;'||CHR(10)||'/','END CollectStats_20100811;'||CHR(10)||'/') body 12* from t SQL> / BODY ---------------------------------------------------------------------------------------------------- CREATE OR REPLACE PACKAGE BODY "XXX"."COLLECTSTATS_20100811" IS.... PROCEDURE CollectStats IS BEGIN UpdateLiveGamesHourlyStats; UpdateSideGamesHourlyStats; UpdateConcurrentPlayerStats; END CollectStats; END CollectStats_20100811; / SQL>
-
Required privilege to view the source code for the stored procedure
RDBMS Version: 11.2.0.4
Platform: Oracle Linux 6.4
In our Production database, we have an application schema named CRM_PROD. And we have a read-only user named steve in this PB.
Steve must be able to view the source code of all stored procedures, functions and packages in the CRM_PROD schema. But steve shouldn't be able to run these procedures, functions and packages in the CRM_PROD schema. What a privilege should give Steve for this?
SYS is owner of the dictionary of data and tables for the source code. See configuration of privilege and role authorization - 11 g Release 2 (11.2).
Select it no matter what dictionary grant will give user (read) access to the full data dictionary.
-
Why can't get us the source code Freelancer?
I understand that this is probably the wrong way to go, but since I don't know any other way, so this seems the best solution currently.
Freelancer is a 2003 game who appreciated the merits of a hosted Microsoft 'global server' for many years. This support has been removed for more than a year, have been longer. Since then, she has in fact the players, or the community of developers, which has instead created a way not no need for this global server, while keeping the same features in the game.
Currently there is a community of developers very involved in the game, even with it's player-base down. However, while much can be done as it is, many changes to the game requires things such as to modify the main .exe of the game, goes against the General conditions and so possibly illegal. However, Microsoft has not taken action against such a thing. The only real penalty the Freelancer community met in his history of editing has been a debacle involving a modification on the Halo theme.
So while Microsoft has essentially removed the bulk of its support for the game, he also did nothing to stop his change, something that many are grateful.
Ultimately, however, there are many parts of the game that most wish could be changed, but can never be the nature 'hard-coded' of such a thing, where the key to change he is locked up somewhere that we either do not have the knowledge and the ability to get to.
There has been a lot of requests for the Source Code of Freelancer, but none have materialized. I understand that this is due to a policy that it does not give the source of his games or that the questions should be directed to the developer instead maybe Microsoft. The latter is impossible because the developer was bought by Microsoft, and subsequently dissolved.
Ultimately the question I would ask is:
What are the reasons for not releasing the source code of Freelancer, when he happened to so many other games such as Freespace 2?
Linkus, your name looks familiar discovery gaming community (http://www.discoverygc.com)
... I must comment on your closing above statement...:
"The end is the question I want to ask: .
What are the reasons for not releasing the source code of Freelancer, when he happened to so many other games such as Freespace 2? »
This is incorrect, as Freespace 2 has * nothing * to do with Microsoft, it was developed by Volition, Inc. and published by Interplay.
These companies are not divisions of Microsoft.
A better final statement would be asked about their release the Source codes of the franchisees Mech Commander, MechWarrior and Mech assault.
The Battletech Franchise was a substantially larger intellectual property; and yet, they released their grip on it.
(Although FASA / Weisman have reformed as Smith and Tinker, teaming with Piranha to do a full restart of the MechWarrior series, apparently the first deadline this year.)
Who would actually have weight in an argument as to why they won't leave a much smaller intellectual property to the modding community.
-
A security update for windows vista (KB2665364) cumulative hotfix for Kiibits (KB2647518) Activex and update Windows vista ((KB2679255) I get the error codes 800736B 3 and B 8007371) I can't find answers and I'm not tech saavy. Every day for a month updates failed to install
Hello
I would suggest trying the following methods and check if it helps.
Method 1:
In the following article from Microsoft Fixit to reset Windows Update components and check if the problem persists, run the fixit.
How to reset the Windows Update components?
http://support.Microsoft.com/kb/971058
Warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry
Method 2:
Put the computer in a clean boot state, and then try to install the updates and check if it works.
How to troubleshoot a problem by performing a boot in Windows Vista or Windows 7:
http://support.Microsoft.com/kb/929135
Note: once you have completed troubleshooting, try the procedure described in step 7 to reset the computer to start as usual.
Method 3:
Try to download updates from the Microsoft Downloads Web site and check.
http://www.Microsoft.com/download/en/default.aspx
Hope the information is useful.
-
Where can I see the source code for the controller
Hi all
My question is maybe stupid to some gurus of the ADF, but many people have found that R12 Pages have a lot of code and there is not too much documentation on how to customize a controller.
1. I see the *.class of my controller in the $JAVA_TOP/oracle/apps/ar/cusstd/createcus/webui/ArCreCusCO.class on my server, BUT I don't see that any of the encrypted code when I open up JDeveloper. So I guess I'm doing it wrong.
2. I want to change ArCreCusCO.class. I see a lot of people say Hey I've customized XYZ controller, but how they found the code and continue to change it is the least of my headaches
3. do I need to configure something in JDeveloper so I can see Server classes to my JDeveloper - what they do, if so, how you do?
4. I saw something in the help page saying adding components to the Extension of the OA the devil what?
Thanks to illuminate some beginners in the ADF.
With the new philosophy of Java, some of those 12 developers experience that we are not starting from zero because of this new architecture.
Hector. -.
p.s. any entry will be taken, but do not refer to the Oracle tutorial, is an example of cake I need some practical examples ;-)Hi hbono99
(1.) you can .class c above java, which is the compiled code as source code is not provided by oracle, if you need this file '.class' to see the source code for decompile, JAD decompiler 1.5.8 version will be newer .well, it would be useful to see the source code, but sometimes decompiled class create problems when trying to compile again.
2.), you can make changes in the ArCreCusCO.class after that decompilation and compile the same thing again to generate the class file, bcz you can put only class file on the server, BUT that would be fatal to change the standard class and the concept here to come of the Extension in the image, you need to extend this class. «XYZ custom "means the extesión of the class parent and make the extension u don't need not the source.»
3.) u cannot see the source code of a .class in Jdeveloper, there is no such a parameter.
(4.) to extend the need to ArCreCusCO.class you to create a workspace followed by creating a project in the workspace Jdeveloper
process to extend the classa.) create workspace and project
(b) create the same package in which resides the ArCreCusCO.class under the \jdev\myprojects\ in your Jdeveloper
(c.) right click on the project, go to create the new class, here you will find the option to metion the package where you want to put the superior (normal package starts with a xx.oracle.-) the possibility of mentioning the nmae classs that you want to extend
(d.) click ok at the end, you will get your extended classe.) source code usually has two methods ProcessFormRequest and processRequest, you can add the code according to the requirement.
extension works bcz inside the method she calls super, so all first it runs all the methods of the parent class in your case ArCreCusCO.class and then control comes in extended class, now, your code will be run, which will be accomliseh your condition
f.) tranaser the class file file expanded to the server, add this extended class with seeded page you need to customize the page, you will find the option to add your class, mention u your class with package to compete (the way that we import the file with their package names in our source code, here import is not necessary)
thanx
Pratap
-
Link to the source code for the module does not
I followed this link: https://addons.mozilla.org/en-US/firefox/addon/sabnzbdfox/?src=search (with download of the source) and got a '404 error' (https://addons.mozilla.org/en-US/firefox/files/browse/76042/)
Find the source code in another place, and when I do, how I update the broken link?
Hello
You can also try after some time. To search for possible temporary network problems please see: http://status.mozilla.com/
Also, if the problem persists, try the link in a new profile.
-
I'm unable to get the registration code for my Blu - Ray player
I'm unable to get the registration code for my Blu - Ray player. I followed the instructions and all I get is the statement: device is registered. I can't register for the most part without a valid code. Please let me know how I can get the correct code. Thank you
If you were able to enter the registration code the first time you tried to save the player before then you don't need to do it again. Just bought this drive? If so, was it a screen or mixed open-box model?
-
Search the source code for directories
I'm developing a tool which is a directory of search optimizer. I was wondering where the source code of search directories? I want my face to look like window optimizer directory ongoing research, but then im adding features down. Thank you!
Well Hello Meow,
According to me, that the source for this Panel is part of one of the DLL Teststand calls directly, not in a file located in the directory of Teststand sequence. Therefore, it will be not accessible to the public.
-
How can I get the color codes for the notebook
How can I get the color codes for the notebook?
Hello
What is the color codes for the notebook?
Perhaps you need a 3rd party utility like GetDiz - Free and others to be
found using BING or Google.GetDiz Notepad - free - replacement
http://www.Outertech.com/en/Notepad-replacementI hope this helps.
Maybe you are looking for
-
Synchronization of multiple While loops
Hi all I work with 4 all in curls that are independent from each other that is, there is no data flow in one loop at the other. I noticed that every while loop takes different time to iterate. However, I want to while loops to begin and end at the sa
-
Syntax error in example VB2010 help
With the help of VB2010, I get a syntax error when trying to use the maze tutorial (Tutorial2 step 3), the error is on the handles of Word in the following textHandles finishLabel.MouseEnterThank you all,Stem
-
Trueblood series on the compurter
Im trying to watch trueblood series on Comcast, but it gives me the error mess 6008 I went to my Start button clicked all programs a silverlight and then open this file and clicked on authorization then leave an ok, but I can not watch comcast on dem
-
retrieve id WCS jsp site without using ics. SQL
HelloIs it possible that I can get my current site in JSP siteId without using ics. SQL tags and recovering from the publishing tableWe are trying to apply a search lucene for loading the assets in the current site only.Thanks in advance for your hel
-
Acrobat Pro XI - import Pdf when you use the drop-down list
Hello Adobe community,WARNING: Newbie hereI am trying to import an existing pdf, after that the user has selected an item in the drop-down list. For example; I have a form with a menu drop-down and three points on the list (caustic diesel, heavy and