Blog Post: Logger, A PL/SQL Logging and Debugging Utility

[Logger, A PL/SQL Logging and Debugging Utility|http://tylermuth.wordpress.com/2009/11/03/logger-a-plsql-logging-and-debugging-utility/]
Tyler Muth
http://tylermuth.wordpress.com
[Applied Oracle Security: Developing Secure Database and Middleware Environments|http://www.amazon.com/gp/product/0071613706?ie=UTF8&tag=tylsblo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0071613706]

Hello,
My currently limited knowledge of APEX makes me think that this should be done using Javascript, called from the PL/SQL area. Assuming that you know a little about javascript, and that you are using a html form for input, you can insert some javascript to do the encoding. Here is some information on how to call a javascript from PL/SQL:
http://apexwonder.blogspot.com/2007/10/apex-plsql-html-javascript-part-2.html
Also, check this site for some information on javascript encoding:
http://www.yuki-onna.co.uk/html/encode.html
Cheers
Jason

Similar Messages

  • Advantages and Disadvantages of Switching off logging and debugging

    Hello Experts,
    Can you please explain me the Advantages and Disadvantages of Switching off logging and debugging (/SAPAPO/C4)..?
    Will switching these off improve the performance...?

    Omkar,
    Switching off Logging and debugging will improve performance.  However, you will then not have the logs to assist you in troubleshooting problems.  When I am working in a support role on a stable production system, I look at these logs maybe once a week.  When I am developing new functionality, typically in a development client, I look at them many times each day.  You will have to determine if the performance trade-off is worthwhile to you in your business environment.
    It is not usually necessary to have detailed logs, nor debugging, turned on in a stable production system.  I typically leave the 'standard' logging activated for "*" userid. 
    Don't forget to maintain the logs periodically.  Refer to this document for some general guidelines.
    http://service.sap.com/~sapidb/011000358700000715082008E
    Best Regards,
    DB49

  • Urgent - Question about logging and debugging.

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

  • Advice on SQL Logs and Backups

    Hi All,
    I've been trying to understand SQL backups and I'm getting a bit stuck in one area - the log files.
    I find they're getting quite big and as such filling up my drives. I'm guessing that the best way to handle this is to truncate them every so often - as the data is in the live DB I'm assuming that the log files should be small.
    Q1 - I do daily full backups on my DB's via a maintenance plan so is it safe to say that the log files can be truncated daily?
    Q2 - How do I go about truncating the logs? I tried a backup of them but I'm not sure what to do next.
    Thanks for any help.
    Tom

      This can cause fragmentation and performance issues. Truncating the log is what happens when you take a backup.
    Prashanth,
    Shrinking log file does not causes fragmentation ( if you shrink data file it does cause) but your are correct that Shrinking log fiel should not be made every day practice.After shrinking when log file tries to grow it has to ask OS to allocate it space
    which if done frequently ( on slower disk) can cause performance issue.
    Tom,
    >>I do daily full backups on my DB's via a maintenance plan so is it safe to say that the log files can be truncated daily?
    A:NO only transaction log truncates log file ( or marks it reusable).So you have to take transaction log backup frequently( hope your DB is in full recovery).If your DB is in simple recovery automatic truncation happens and SQL server takes care of it after
    checkpoint or when log grows 70 % of it size.
    >>Q2 - How do I go about truncating the logs? I tried a backup of them but I'm not sure what to do next.
    Again answer is simple take transaction log backup frequently or according to your RPO and RTO
    PS: Sometimes when there is long running transaction like huge delete operation,index rebuild of huge database log might grow even frequent transaction log backup is there this is by design because unless transaction finishes or commits logs cannot be truncated
    so if you face it look for open transaction and wait for it to commit.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Java.sql.Date and java.util.Date - class loaded first in the classpath

    I had two jar files which has java.util.Date and java.sql.Date class file. i want to know whether which class is loaded first in the classpath...
    I like to change the order of loading the class at runtime...
    Is there is any way to change the order of loading of class...
    I may have different version of jar files for example xerces,xercesImpl. some of the code uses xerces ,some of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according to the order i need..
    Can we do all these in Run time ?????

    I had two jar files which has java.util.Date and
    java.sql.Date class file. i want to know whether
    which class is loaded first in the classpath...
    I like to change the order of loading the class at
    runtime...
    Is there is any way to change the order of loading of
    class...
    I may have different version of jar files for example
    xerces,xercesImpl. some of the code uses xerces ,some
    of the code uses xercesImpl..i had common classes.
    I like to load the class with the same name according
    to the order i need..
    Can we do all these in Run time ?????That is meaningless.
    The classes you are referring to are part of the Java API. Third party jars have no impact on that. And you can't change to the order because java.sql.Data is derived from java.util.Date. So the second must load before the first.
    And if you have two jar files with those classes in them (and not classes that use them) then you either should already know how to use them or you should stop trying to do whatever you are doing because it isn't going to work.

  • AVCHD log and transfer - Only from a camera?

    I am thinking about upgrading my camera to a AVCHD camera.  I saw on a post that you can only log and transfer AVCHD footage from the camera and not just the card attached via card reader.  Can someone shed some light on this.  I want to be able to shoot, transfer/backup onto an external HDD and then Log and Transfer from the drive.  I want to keep the camera busy out in the field and not tied up on my desk.
    Thanks community!
    Brian

    You may fing this helpful:
    http://library.creativecow.net/articles/ross_shane/tapeless-workflow_fcp-7/video -tutorial
    When using card readers make sure it supports the larger capacity cards or at least the size card you are using.
    Al

  • Iframe removed from blog post

    I am attempting to post a YouTube video in a blog post. When I hit save and publish the iframe is removed! Here is the code I am attempting:
    <div style="width: 560px; margin:auto 0;">
    <iframe width="560" height="315" src="http://www.youtube.com/embed/video-code?rel=0&modestbranding=1&iv_load_policy=3" frameborder="0" allowfullscreen></iframe>
    </div>
    The output I see in the code is:
    <div style="width: 560px; margin:auto 0;"></div>
    Anyone else seeing this?

    This was a bug injected through our XSS engine. We are fixing it asap.
    Actually, we are currently working on a hot patch to address all these issues:
    http://forums.adobe.com/docs/DOC-2341
    We should have them fixed asap. We'll update this thread once the changes are live.
    - Bogdan

  • Canon HF10 avchd file will not transfer in Log and Transfer window

    Hello-
    I just installed Final Cut Express 4 on my MacBook (intel core due with 4gigs ram... running snow leopard/ 10.6.1) and I cannot get any video to load in from my Canon Vixia HF10. When using the Log & Transfer window my camera is recognized and I see and can preview all the clips that are on the camera (attached via. USB). All video is shot at the highest quality FX rate. When I add a clip to the "Que" the wheel spins for about 10 seconds then it says '1 clip queued' and an orange "!" appears. If I hover over the icon it says 'failed- no data'.
    I am using the apple intermediate HD codec 1060i and stereo audio. I have re-installed FCE, removed preferences files, rebooted the computer, restarted and reconnected the camera etc... and no luck.
    Any ideas would be much appreciated. I have seen a smattering of others with a similar issue but no resolution that works.
    Thanks for your help!

    I cannot get FCE to recognize my m2ts (AVCHD) files either. It seems FCE, like iMovie, will import directly from the camera but it will NOT import m2ts files already off-loaded from the camera onto a drive on your computer or network. Some have said it will work ONLY if the entire file set, including the support files the camera creates in addition to the video file itself, is present at the time you attempt the transfer. Worse, Canon's software that most people use to transfer the video files from the camera do not also transfer these support files. It may be doable if you connect the camera and transfer the entire file and folder structure as-is but that's only a guess.
    If you are like me who offloaded these files long before I purchased my MAC (and did not also offoad the support files), you may be out of luck. This caveat to working with AVCHD files is a subtle distinction that Apple should clear up, especially since it is prominently highlighting this new capability. I was in the Apple store and viewed the product with a sales associate BEFORE the purchase. The sales associated looked at the Log and Transfer utility and also thought this would work-- so I bought FCE on the spot.
    If anyone knows how to import previously off-loaded m2ts files directly into either iMovie or FCE, I would like to hear how it is done. Please note that I have been down the file conversion route too. Toast 10 de-synced the audio and other file converters left horrible jagged edges to moving pictures. De-interlace programs made it worse. Most conversions will introduce some corruption or undesireable artifact.
    Others have said, boo hoo, AVCHD is a garbage codec that the pros will not touch and Apple shouldn't either. OK but Apple is attempting to sell its computers to the average Joe and people who like SIMPLICITY. Would be nice if Apple better supported AVCHD "for the rest of us."

  • SQL Azure blog post cannot be accessed unless I log in with LiveId

    No idea where else I could have posted about this, so I post here. MSDN Blogs seem to have no support forums.
    The following two links:
    http://blogs.msdn.com/b/sqlazure/archive/2010/08/13/10049896.aspx
    http://blogs.msdn.com/b/appfabricannounce/archive/2010/08/13/finding-blocking-queries-in-sql-azure.aspx
    lead to the same blog post.
    Previously I could open that post no problem using any of the two links no problem at any time even without being logged in with LiveId. No more - now whenever I try to open it I'm required to log in. This happens all the time for the first link and sometimes
    for the second link too. If I Google for "find blocking sql azure queries" the first hit looks like below.
    I believe it should be this way. How can I get this fixed?

    Hi Dmitry,
    Please try it again, I just check we can visit it with annonymous access.
    For the search issue, it might be caused by Search Robot setting in the blog.
    You can also contact the blog author to check what happens:
    http://blogs.msdn.com/b/appfabricannounce/contact.aspx
    Thanks,
    Jinchun Chen

  • SQL 2012 SP1 - How to determine a query that causes Error 8623 in SQL Log: The query processor ran out of internal resources and could not produce a query plan. This is a rare event...

    We are getting multiple 8623 Errors in SQL Log while running Vendor's software.
    How can you catch which Query causes the error?
    I tried to catch it using SQL Profiler Trace but it doesn't show which Query/Sp is the one causing an error. 
    I also tried to use Extended Event session to catch it, but it doesn't create any output either.
    Error:
    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that
    reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
    Extended Event Session that I used;
    CREATE EVENT SESSION
        overly_complex_queries
    ON SERVER
    ADD EVENT sqlserver.error_reported
        ACTION (sqlserver.sql_text, sqlserver.tsql_stack, sqlserver.database_id, sqlserver.username)
        WHERE ([severity] = 16
    AND [error_number] = 8623)
    ADD TARGET package0.asynchronous_file_target
    (SET filename = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xel' ,
        metadatafile = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xem',
        max_file_size = 10,
        max_rollover_files = 5)
    WITH (MAX_DISPATCH_LATENCY = 5SECONDS)
    GO
    -- Start the session
    ALTER EVENT SESSION overly_complex_queries
        ON SERVER STATE = START
    GO
    It creates only .xel file, but not .xem
    Any help/advice is greatly appreciated

    Hi VK_DBA,
    According to your error message, about which query statement may fail with error message 8623, as other post, you can use trace flag 4102 & 4118 for overcoming this error. Another way is looking for queries with very long IN lists, a large number of
    UNIONs, or a large number of nested sub-queries. These are the most common causes of this particular error message.
    The error 8623 occurs when attempting to select records through a query with a large number of entries in the "IN" clause (> 10,000). For avoiding this error, I suggest that you could apply the latest Cumulative Updates media for SQL Server 2012 Service
    Pack 1, then simplify the query. You may try divide and conquer approach to get part of the query working (as temp table) and then add extra joins / conditions. Or You could try to run the query using the hint option (force order), option (hash join), option
    (merge join) with a plan guide.
    For more information about error 8623, you can review the following article.
    http://blogs.technet.com/b/mdegre/archive/2012/03/13/8623-the-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • What makes a blog post - and what should?

    When I complained about my first blog post being rejected as more-suitable-for-the-wiki, Craig Cmehil explained to me that step-by-step/howto posts had been determined to be wiki material, and opinion/strategy for blogs. He also said that I could start a thread and see if there was consensus for changing the standards.
    A little background: I've been blogging for 8 years, posting a mix of personal and technical topics at http://blog.donnael.com/. Some of the technical stuff has been short sample programs -- one-liners, regexps, etc. Some of it's been longer comments on products, or while-it's-happening documentation of a project attempt.
    I posted the following blog entry for consideration.
    Greetings! My name is Garrett Fitzgerald, and I work at Penobscot Community Health Care, a Federally Qualified Health Center in Bangor, Maine. We use GE's Centricity practice management and medical records systems, and I use various tools to access the data -- one of the most useful of which is Crystal Reports 2008.
    One thing I commonly need to do is to list all patients, but call out a specific diagnosis that some of them have. If I were to add the tables in the database expert, even if I were to use a Left Join to get all the patients, I would lose them as soon as I tried to use the Record Selection criteria to get the specific diagnoses I needed.
    My solution to this is to use a SQL Command. When I go into the Database Expert and select my Connection, instead of choosing the tables, I can use "Add Command", and enter the SQL query directly.
    A typical SQL query would look like this:
    SELECT Person.pId, Person.firstName AS patFirst, Person.lastName AS patLast
            , Problem.onsetDate as refusedDate
        FROM Person
            LEFT JOIN Problem ON Person.pId = Problem.pId
        WHERE Problem.code BETWEEN 'ICD-V64.02' AND 'ICD-V64.08'
    However, this gives us the same problem as I described above -- the list of Persons is restricted to those who have refused vaccination. To get around this, we can move the WHERE criteria into the JOIN clause:
    SELECT Person.pId, Person.firstName AS patFirst, Person.lastName AS patLast
            , Problem.onsetDate as refusedDate
        FROM Person
            LEFT JOIN Problem ON Person.pId = Problem.pId
                AND Problem.code BETWEEN 'ICD-V64.02' AND 'ICD-V64.08'
    This gives us all patients as desired, with either the date they refused vaccination or NULL if they didn't.
    Next time, I'll show how I broke down the individual vaccination observations to make it easy to monitor compliance.
    So, I gave an example from my own experience, explained why the "obvious" way to do it didn't work, indicated how to do it, showed the translation of the naive way into the new method, and then gave the final solution. To me, this seems to be almost the definition of a technical blog post.
    I can understand how it fits into the definition given above by Craig, but that leads me to the conclusion that the definitions are wrong. What do other people think? Should the definitions be loosened so that more material can be posted in blog format? Or are the definitions as they stand now exactly right?
    Thanks!

    >
    Eric Cartman wrote:
    > I agree with Craig on this topic, but here are three blog entries from April, which also fall into this category:
    >
    > /people/rishika.bawa2/blog/2009/04/23/screen-exit
    > /people/arminda.jack/blog/2009/04/21/is-the-search-help-f4-from-the-storage-location-not-working-in-transaction-me51n
    > /people/tao.zhang/blog/2009/04/07/magical-function-2-of-sap-query
    I also agree with Craig and for the First one I do agree with you.

  • The process could not execute 'sp_repldone/sp_replcounters' error for Log Reader Agent and SQL Server Assertion 17066 & 3624 errors in SQL Logs

    One of our SQL Server started creating SQLDUMP file and and on investigation I found the error longs are filled with Errors 3624 & 17066. There is transnational replication configured on one of the databases is the LogReader Agent is failing error "The
    process could not execute 'sp_repldone/sp_replcounters' on XXXXX". 
    Not sure if both these Assertion & Logreader Agent errors are related. Before I remove and put the replication, I wanted to check if anyone has experienced the same issues or aware of what the cause. 
    ***********Error messages from SQL Logs******
    **Dump thread - spid = 0, EC = 0x0000000111534460
    Message
    A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to
    Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical Support.
    Error: 3624, Severity: 20, State: 1.
    SQL Server Assertion: File: <logscan.cpp>, line=2123 Failed Assertion = 'UtilDbccIsInsideDbcc () || (m_ProxyLogMgr->GetPru ()->GetStartupState () < RecoveryUnit::Recovered)'. This error may be timing-related. If the error persists after rerunning
    the statement, use DBCC CHECKDB to check the database for structural integrity, or restart the server to ensure in-memory data structures are not corrupted.
    Error: 17066, Severity: 16, State: 1.
    External dump process return code 0x20000001.
    External dump process returned no errors.
    Thank you in advance.

    You need to determine if this error is a transient one or a show stopper one.
    It sounds like your log reader agent has crashed and can't continue.
    If so your best bet is to call Microsoft CSS and open a support incident.
    It also sounds like DBCC CHECKDB was running while the log reader agent crashed.
    If you need to get up and running again run sp_replrestart, but then you might find that replicated commands are not picked up. You will need to run a validation to determine if you need to reinitialize the entire publication or a single article.
    I have run into errors like this, but they tend to be transient, ie the log reader agent crashes, and on restart it works fine.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Title and description when sharing a blog post in Facebook

    I want to get the title and a piece of description of my blog post when sharing on Facebook and not just a url with no text...

    Problem is Matt that this is one of the things the Engineering team are just putting off and having the new web app engine and concept of "Build your own blog" to fix the issues is what is currently being run.
    I know I am not the only one not happy with this approach but it is a running trend when reporting issues like with the gallery module not working right.
    I am also not a fan of the current operations of bug reports where even it if it a game breaker if you try to use something because it does not work, if you the first or only one or a rare few to notice it and tell them, even in detail it wont get fixed as you know.
    You have to wait for a public issue as more people realise it or a beta bug to have people moan about it live to then get fixed. But it makes BC look bad and unless your one of the few partners with a bit of clout with BC it wont get addressed unless a big enough stink is made of it.
    I do not know many software developers who run this old approach and from a support stand point, while I know you cant agree or disagree with me on any of this it causes you guys a nightmare.
    YOu have issues reproted, you confirm them, they stop someone doing something they need for them or their clients and push and moan at you and its with the engineers and nothing you can do other then up vote it over and over till they finally get round to fix it.
    Bug fixing is one of the key things I think thats harming BC right now over new features, tags wrong, math calculation wrong, bugs preventing certain features not being useable for years...
    And then new features launched with bugs on top!

  • Finding SQL trace and Log trace in SAP ME

    Dear Experts,
    I am new to SAP ME SDK 2.0  development. After depolying the ME with changes.If an error occurs as "An internal error occurred; contact technical support". Where should I check for the traces like SQL trace or og trace.
    Thanks in advance,
    Eswaraiah M.

    Hello,
    Log records are written to NW log and can be viewed in NW log viewer.
    Konstantin

  • Customize Sharepoint 2013 Blog Post forms and layout

    I have a blog site that will be home to customer call reports saved as posts to the blog. The blog works, but how do I get all the custom columns to show on the blog home page that shows all of the posts. Currently, only the Posted Date, Notes, and Title
    field display.

    Hi Jim ,
    According to your description, my understanding is that  you want to display custom columns in your home page posts web part.
    Please go to the home page -> Edit Page -> Edit the Posts Web Part ->in the Posts Web Part Settings Page , click  Edit the current view -> check the column you want to display and click OK.
    The fields  are  now available to be rendered as part of the current view.
    Then we need to create the custom JavaScript file that will render the new fields for  the post body. You can refer to the blog:
    HOW TO: Add a custom field to blog posts in SharePoint 2013
    Hope this helps!
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Why can't I connect to the itunes store on my windows 7 64 bit pc

    Why can't I connect to the itunes store on my windows 7 64 bit pc?

  • Proxy SSL tunelling

    Hello. I'm having a problem with a distributed application where the client connects via a proxy server (Squid 2.5 in my case) to a server using SSL (port 443). Sometimes the tunneling works fine and sometimes it doesn't. Doing some debugging, it see

  • S10e cannot work on 128GB micro SD

    Hi, anyone ever managed to acces a 128GB SD card (Win XP)? Recently failed to acces a 128 GB micro SD via - SD adapter in normal slot - external card reader - through a GoPro... :-> Card is seen but cannot be read. Trying to format failes. same situa

  • A BIG ISSUE with refund and/or store credit.....

    A lot of people bought 2 iPhones. 1 for me and 1 for ____________ (friend, wife, husband, etc.) Scenario #1: Girlfriend stands in line and buys 1 for her and boyfriend using her credit card (boyfriend gave her cash). GF and BF have a bad split and ar

  • My "mailto" is missing from applications and I can't email from websites.

    When I click to send an email from a website, nothing happens. I checked FireFox help and was told to go to Tools > Options > Applications > Mailto and select my email server. Unfortunately, there is no Mailto in the application list.