PL/SQL Packages that have lots of Remarked code

Thanks in advance,
Does having lots of code that is remarked in PL/SQL packages take up space in the database and impact performance ?
I have inherited a system that has lots of remarked code in PL/SQL Packages. And I would like to know if I should remove it with an advantage of improving preformance?

Does "remarked" here refer to comments in the code? If so, there is no meaningful performance impact to having comments in the code and substantial maintenance benefits, so you shouldn't be removing comments. You should be quite appreciative that you've inherited a system that is reasonably well documented.
Justin

Similar Messages

  • See all SQL statements that have been executed in an active transaction?

    When I query v$transaction, v$session and v$sql, all I can see is the SQL statement that is currently running in an active transaction.
    How can I view all SQL statements that have been executed in a currently running transaction since that transaction began?

    Dana N wrote:
    When I query v$transaction, v$session and v$sql, all I can see is the SQL statement that is currently running in an active transaction.
    How can I view all SQL statements that have been executed in a currently running transaction since that transaction began?In the general case: impossible.
    In some special cases you can use v$sql, v$open_cursor, or "Availabilty>View and Manage Transactions" or something else.
    But be aware, transaction could be started long time ago, all cursor could be flushed from shared pool and closed, and redo (the page from Grid Control bring Log Miner) may not always be available.

  • View packages that have moved from the AUR into official repositories

    Is there any way to see packages that have been moved from the AUR to the official repositories in some sort of list? Ive looked through http://www.archlinux.org/packages/ and https://aur.archlinux.org/ with no luck.

    jrussell wrote:Is there any way to see packages that have been moved from the AUR to the official repositories in some sort of list?
    You can do an -Sl on all repos that interest you and output to a file. Then diff with a previous version of the file to see changes.
    Also i recently opened a feature request about having a commits mailing list for all repositories:
    https://bugs.archlinux.org/task/31562 which would make it easier to track all changes in the repos.
    Last edited by dolby (2012-09-25 16:39:02)

  • PL/SQL Packages as Web Services - plsqlAssemble Task - Code Generation

    Hi,
    I was able to generate Web Services for some of the PL/SQL packages using plsqlAssemble Task. (10.1.3 .1.1)
    It produces a certain number of java classes for that.
    Then I had to modify some of the generated code.
    What is the best approach on modifying the generated code.
    My concern is that I will have to rebuild/generate the code again in a future because the code generated may be not supported in future version of OAS, which was the case with the previous version ( 9.0.4 ) and I will have to maintain /support all manual changes.
    Even when I don't need to modify the generated code what is the chances that it will not be supported for the future version of OAS and we need constantly sink it up with the current versions.
    Please advise.
    Thanks,
    Michael Hitrik

    Ronald,
    Thanks for you advise.
    I don't think that it will be a good solution .
    First, I would like to know if I have to re-generate the code. If this is a case then plsqlAssemble would be a big problem as a solution. Our clients would need to do this as well.
    What I am actually doing is the following:
    I am trying to secure PL/SQL Web Services with SOAP Headers for passing authentication data such as user and passw for the DataSource.
    It works great but I had to extend some of code generated Java classes which implements ServiceLifecycle to get SOAPMessageContext object.
    Thanks,
    Michael Hitrik

  • How to find all Custom tables (transp) that have a custom transaction code?

    My client has asked us to provide a list of all Z (custom) tables and the associated transaction codes for maintaining them.
    I know I can manually do this with a Z* search in se11 and then do a where used on each table to find out if a view (transaction code) exists for the table - BUT THIS WOULD TAKE HOURS IF NOT DAYS TO DO AND BE LIABLE FOR HUMAN ERROR.
    Does anyone know the way we could code a search for this information (ABAP) and know what tables to use?
    Thanks.
    Scott

    Hi
    You can search in table TSTCP for custom tables that have a maintainance view and a transaction associated, which is a call to SM30. To do this, just select the table with TCODE starting with 'Z' and PARAM starting with '/*SM30'.
    But you can also have some Z tables updated by an module pool program. This is more complex to find, because you don't know if you simply have the field used in the screen for some other use in a transaction, or if it is in that screen just to update the table. In this case, you need to analyze each screen.But I hope the first tip help you to solve your problem.

  • Yaourt and packages that have been moved from AUR to community

    Well first off, why does yaourt even wanna build the package if it has been removed? I did a search in the AUR and all I see is stress 1.0.0-1. I thought I read somewhere that yaourt is a wrapper for pacman and therefor would search the repositories before it searches the AUR for the program?
    [jasin@kermit ~]$ yaourt -S stress
    ==> Downloading stress PKGBUILD from AUR...
    ==> WARNING: It seems like stress was removed from AUR probably for security reason. Please Abort
    stress 0.18.9-1 (NOT SAFE): A tool that stress tests your system (CPU, memory, I/O, disks)
    ==> stress dependencies:
    - glibc (already installed)
    ==> Edit the PKGBUILD (recommended) ? [Y/n] ("A" to abort)
    ==> ----------------------------------------------
    ==>n
    ==> Continue the building of 'stress'? [Y/n]
    ==> ----------------------------------------------
    ==>n
    [jasin@kermit ~]$ sudo pacman -S stress
    resolving dependencies...
    looking for inter-conflicts...
    Targets: stress-1.0.0-1
    Total Download Size: 0.01 MB
    Total Installed Size: 0.04 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from community...
    stress-1.0.0-1 9.6K 23.4K/s 00:00:00 [#####################] 100%
    checking package integrity...
    (1/1) checking for file conflicts [#####################] 100%
    (1/1) installing stress
    This doesn't seem right to me either... is it just me or should yaourt be informed on where stress has gone if it has been removed from AUR and not just leave yaourt open ended with a basic error?
    I tried
    [jasin@kermit ~]$ yaourt -S community/stress
    ==> Downloading community/stress PKGBUILD from AUR...
    Error: community/stress not found in AUR.
    but yaourt thinks it should be a package in AUR. But I presume this should be added functionality in yaourt to work like pacman?
    Last edited by jacko (2008-01-13 16:52:56)

    somairotevoli wrote:hmm, works here.
    How long ago was it added to community? Maybe the repo your using isn't updated yet?
    hmm, maybe I should update yaourt... I never thought about it but yaourt will not update itself.
    edit:
    yaourt -Su --aur
    yes, that fixed it. never thought about updating AUR packages.
    would be alright to add something like this to .bashrc to make this whole process a one time command?
    alias pac-update="yaourt -Syyu | yaourt -Su --aur"
    the answer to this ^^^ is NO, because the second command locks the database. U would need a way to tell it to pause until the first command finished, then issue the second command. I quite frankly do not understand enough of linux bash programming to accomplish that ATM.
    Last edited by jacko (2008-01-13 19:40:44)

  • Which Solaris 10 package to install that have libgobject-2.0.so.0

    Need to install the Solaris 10 package that have libgobject-2.0.so.0.Which package to download? Thank you.

    Hi.
    Package SUNWgnome-base-libs. It's included to  Solaris 10 DVD media.
    (/usr/lib/sparcv9/libgobject-2.0.so.0 ; /usr/lib/libgobject-2.0.so.0 ;  realy it's link to corresponded libgobject-2.0.so.0.400.1 )
    Regards,
       Nik.

  • 26.4 Basing an entity Object on a PL/SQL Package API - Ref Cursor, no View

    I am hoping that I could get some help in the details of a problem. I am trying to follow the directions in the Oracle Application Development Framework Developer's Guide for Forms/4GL Developers, Section 26.4 - Basing an Entity Object on a PL/SQL Package API.
    There is example code in the downloadable AdvancedEntityExamples - EntityWrappingPL/SQLPackage
    The question is, how will the implementation change if the entity is based entirely on PL/SQL - simply stated - no view is available, just ref cursors and insert,update,delete procedures.
    In the example code, there are two procedures, lock_product and select_product. This is where things get more complicated. I can create a function to return a single record ref cursor, instead of the list of OUT variables defined in both functions (select_product and lock_product). It makes sense that I just return one cursor and get all of the columns from that instead of lots of OUT variables.
    So what's stopping me you may ask... There is one difference between select_product and select_lock. Select_lock has a select that includes "FOR UPDATE NOWAIT". I don't have that as an option when creating my ref cursor. I am not sure what the impact of "FOR UPDATE NOWAIT" is? Can I ignore it?
    In the problem I am working with, (getting data from Oracle Portal 10.1.4) I return the following:
    function getRefCursor return ref_cursor is
    v_tab wwsbr_all_items_object_type := wwsbr_all_items_object_type();
    p_recordset wwsbr_types.cursor_type;
    l_results wwsrc_api.items_result_array_type;
    begin
    wwctx_api.set_context(<username>,<password>);
    l_results := wwsrc_api.item_search(.. parameters..);
    <snip>
    ... Loop through the objects and populate v_tab
    <snip>
    open p_recordset for
    select * from table(cast(v_tab as wwsbr_all_items_object_type));
    return p_recordset;
    end getRefCursor;
    With this sample, it would be easy to return a single row by passing the masterid as a parameter.
    So I am still left with, how should the implementation of callLockProcedureAndCheckForRowInconsistency() and callSelectProcedure() be changed in order to use a ref cursor instead of a view? The user guide was missing that extra section <bg>.
    What would be REALLY helpful, is an example, say 26.4A that demonstrates creating an entity object from a ref cursor and procedures from PL/SQL only without a view.
    Thank you, Ken

    The lock procedure is expected to obtain a row-level lock on the row, given its key.
    Depending on the setting of jbo.locking.mode, the entity object's lock() method will be invoked either as soon as the first persistent attribute is successfully modified by the user (in the case of jbo.locking.mode=pessimistic), or it will be called during commit processing just before the row is updated in the database (with jbo.locking.mode=optimistic).
    Usually 2-tier Swing applications use pessimistic mode, while web applications use optimistic mode.
    The FOR UPDATE NOWAIT is the Oracle clause that can be appened to a SELECT statement to acquire a row-level lock on the selected rows. The NOWAIT modifier means that rather than hanging, waiting for a row locked by another user to free up, it will raise an exception if any of the rows being selected-and-locked are not available to lock.
    If you're not able to work the FOR UPDATE NOWAIT into the syntax of the ref cursor, perhaps you can initially perform the lock using a different cursor inside the stored procedure, then return your ref cursor.

  • EBS ISG using custom PL/SQL functions that return XMLType

    Hi,
    We have a custom PL/SQL package that we use for interfacing systems and some of the functions in this package ruturn an XMLType. We want to deploy the package functions as web services through the ISG, but it is not working as expected. When deployed through the ISG, the functions with XMLType return type produce a null response from the ISG (they work fine when called in SQL or PL/SQL; functions with non-XMLTypes work fine).
    If we change the return type to CLOB (and use getClobVal() on the XMLType) then we get a response from the ISG, but it changes all the angle-brackets in the CLOB (which is still arbitrary XML text) to &lt; &gt; ...
    What is the proper way to get the complex XMLType output through the ISG? Anyone have any more experience?
    Thanks,
    --Walt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Alex,
    For the predicate groups that are indexed/stored, the exact operator types (as in equality, inequality, like etc) that are indexed are specified while assigning the default index parameters. In the following example, exf$indexoper is used to specify the list of indexed operators.
    BEGIN
      DBMS_EXPFIL.DEFAULT_INDEX_PARAMETERS('Car4Sale',
        exf$attribute_list (
           exf$attribute (attr_name => 'HorsePower(Model, Year)',
                          attr_oper => exf$indexoper('=','<','>','>=','<='),
                          attr_indexed => 'FALSE')    --- stored predicate group
    END;
    /You can find more information about exf$indexoper at
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/t_expfilobj.htm#ARPLS153
    Could you confirm that you chose to index 'is null' and 'is not null' while assigning the default index parameters ? This information is available in OPERATOR_LIST column of the USER_EXPFIL_DEF_INDEX_PARAMS view.
    Hope this helps,
    -Aravind.

  • Calling custom pl/sql package on termination of Employee

    Hi,
    I want to call a custom pl/sql package that will create an element entry for employees, with their outstanding holiday entitlement upon termination.
    One way I have tried to do this is by personalizing the end employment form, but I get this error - ORA-00923: FROM keyword not found where expected
    from this code:
    <h5> ='declare
    l_element_entry_id NUMBER;
    l_object_version_number NUMBER;
    l_create_warning BOOLEAN;
    begin
    pay_element_entry_api.create_element_entry(p_validate => FALSE
    ,p_effective_date => (${item.period_of_service.actual_termination_date.value})
    ,p_business_group_id => 106
    ,p_assignment_id => (select assignment_id from per_all_assignments_f where person_id = ${item.period_of_service.person_id}
    and primary_flag = 'Y')
    ,p_element_link_id => 3499
    ,p_entry_type => 'E'
    ,p_input_value_id1 => 7318
    ,p_entry_value1 => (XX_PERSNS_UTILS.GetLeaveAccrual(${item.period_of_service.person_id}))
    --,p_cost_allocation_keyflex_id => ee_asg_api_rec.cost_allocation_keyflex_id
    ,p_effective_start_date => ((${item.period_of_service.actual_termination_date.value})-1)
    ,p_effective_end_date => ${item.period_of_service.actual_termination_date.value}
    ,p_element_entry_id => l_element_entry_id
    ,p_object_version_number => l_object_version_number
    ,p_create_warning => l_create_warning
    end'
    </h5>
    I also thought another way to accomplish this would be using business events but under Workflow Administrator I can see the Business Events and subscriptions but I can only search for existing set-up, I can't create my own.
    Does anyone have any ideas why this personalisation isn't working or has any other ideas of how to go about this?
    Thanks

    This is a tough solution to implement. The drawbacks of Forms Personalization, if you get it working, are that it won't be called from other areas (People Management templates, Self Service Termination etc). The drawbacks of API User Hooks are that they're not used in all places either. Finally, as mentioned, reverse termination means that you need to then backout such holiday payout entries.
    The most reliable way to do this is with an batch process, eg, concurrent program, that runs, say, daily:
    1) Find all employees physically terminated yesterday (regardless of their actual termination date)
    2) Calculate and create the holiday payout entry (if it's not already there)
    3) Find all employees who were updated yesterday and HAVE the holiday payout entry (this is the way to detect those who have been reverse terminated)
    4) Date-track purge the holiday payout entry.
    5) Consider API User Hooks to pick up late changes to absence records or anything that might affect any holiday already paid out so that you can update the holiday payout entry
    6) Configure retro to handle holiday payout for retrospective terminations, deductions for those who were paid holiday payout and later reverse terminated, and subsequent changes to the amount paid out (eg, because of late changes to absence records)

  • Made some packages that hopefully somebody could use

    I have recently created updated versions of mozilla, opera and openMotif.  I was wondering if I could upload my mozilla 1.7.11 pkg, opera 8.50 pkg and openMotif for opera so that opera does not give errors when starting.  The user has to remove lesstif and then install openMotif so that opera 8.50 does not complain about missing library libXm.so.3.  If anybody has any suggestions as to where I should upload said packages then I will be happy to do so.  My only problem is I have not added my name and email address in the PKGBUILD for packages I have updated recently.  I do not know I if I should give myself credit in the PKGBUILD because I am not the original package builder (architect) for the packages that I have updated.  Suggestions would be welcome as to what I should do regarding upgrading packages that have already been created.

    Thank you both for your replies.  I have not read enough about the user repositories and aur requirements.   I will try to find some time in the near future to read more about uploading packages into the user repository. 
    I would like to thank sh_ for his suggestion about linking the library libXm.so.2.0.1 to libXm.so.3, but however I could not find the library libXm when I had lesstif installed.  It could have been I was tired from a long day of work.  I found a pkgbuild by another user for openMotif and modified the pkgbuild so that I could install openMotif for opera.  However openMotif conflicts with lesstif, so I recommend if one wants to use openMotif then it is best to remove lesstif.  I am however open to hear if it is possible to have both libraries installed at the same time.

  • Oralce PL/SQL Packages

    Does anyone know where to get a list of all(or most)of the PL/SQL packages that come with Oracle and desc of what they do. Maybe a link or a book to buy. thanks in advance,
    cvb

    Oracle_Home\doc\server.816\a76936\toc.htm
    or http://technet.oracle.com/docs/products/oracle8i/doc_index.htm
    null

  • Tabular Form- PL-SQL packages

    Hi
    I'm building apex application with pl-sql package, that's mean i encapsulate all my DML statements into this packages (for standardization purpose)
    Now i want use the apex tabular from and make my DML statements throw my package not the automatic Dml which created by tabular form
    is it possible?

    You don't need to use collections if you don't want to save the values before they submit the page , for example, reloading the page after changes,adding multiple rows etc. You can also use your package to handle DML's with this approach(infact you cannot do it easily with builtin tabular forms) , here's a discussion on that : {message:id=9437137}.
    As for the question of performance, a comparison between using a direct SQL query and collections approach has been done here : {message:id=9413326}.
    But the collections method should compare to the builtin tabular form in performance, since it practically has to do the same steps(internally) and additionally always does a checksum comparison.
    In any case, how many records are we talking about updating a the same time, you do know that any of these approaches _process only those records in the pagination page(ie the first 15 records fetches by default) and not on the whole result set_ ?
    I would suggest you to get familiar with using this approach first before worrying too much about performance.

  • Find all the sql statements that are executed in a database

    Hi
    I would like to get all the sql statements that have been executed till now on the database. Also, i need the session and user details who has executed the statement.
    I know this can be done after enabling auditing.
    I would like to get the details without enabling the auditing option.
    I am using oracle 9i and oracle 10g.
    Regards,
    Vamsi

    You can use {noformat}{noformat} tags to preserve the SQL format. Below is an example of how to use it.
    <place your code here>\When your do that your code may look like this.select
         substr(sid || ',' || serial#,0,15) sid,
         USERNAME,
         PROGRAM,
         MACHINE,
         OSUSER,
         TERMINAL,
         sql_text Query
    from
         v$sqltext,
         v$session
    where
         address=sql_address
         and hash_value=sql_hash_value
         and status='ACTIVE'
    order by LOGON_TIME,sid,piece
    This one is more readable to everyone.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Adding drivers to MDT that have no .inf file

    I am currently creating images for a deployment server at work and have come across a problem. A few of the drivers I need to add, including the chipset driver, have no .inf files that I can see, I have extracted the .exe file using 7zip but this just produces
    a number of random files. Can anyone help please??? I am using MDT 2013 and server 2012 essentials R2
    Thanks

    * You should only be using signed drivers in your environment.
    * In order to get a *signed* driver from Microsoft, the IHV must supply a driver package that is installed via the *.inf file
    * IHV's can add a *.exe wrapper after the fact, but the *.inf driver package is in there somewhere.
    I have seen some instances of driver packages that have many working components that require a *.exe to install the individual *.inf parts in the correct order (some display drivers are like that), but these kind of drivers can be installed as an application
    in the full OS. Any driver required to boot, should supply an *.inf package, if not please let us know so we can shame the IHV in question.
    Additionally, some driver packages can be extracted without installation have you tried running the driver package with the /? switch to see if you can extract? or have you tried monitoring the %temp% directory to see what got created?  Driver packaging
    is an Art.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

Maybe you are looking for

  • Can there be buttons/links on or in flash object?

    Hi, I have no idea how to ask this question properly. I am only designing this, not making it, so simple answers for me would be good, but also technical answers that I can pass on to the flash person. On my home page, I am going to have 3 images tha

  • Un reconciled transaction report

    Hi all, When we run BRS report we will get reconciled transaction and Unreconciled transactions report Under Unreconciled transaction we will get a headings and values as follows Open in Book after dates       xxxxxx                                  

  • Error when addding members in account dimension

    Hi all,             I am working on consolidation.for currency translation and inte-company elimination in consolidation i want use business rules.can some body tell me which business rules can i use and what are the business rules exist total.is wri

  • What's the BEST MINI DV deck to use with FCP 5?

    I'm tired of using my Gl-1's to capture with. My small zr50 doesn't work that great for a dv deck. Tell me what brands you have had complete success with.

  • Strange problem with IGS

    Dear Experts I have a strange problem with IGS My IGS server is running perfectly when I execute SIGS at my server system and also thrw Http link, and in GRC also But when I tried to execute the same tcode SIGS from internet thrw another system it is