Tuning of very small procedure

Hi All,
We are using the following procedure to get respective sequence number by passing the table name as parameter:
================================
CREATE OR REPLACE procedure SEQ_GEN(Tbl_name in varchar2, SEQ_NO out number) is
seq_name varchar2(100);
select_str varchar2(100);
BEGIN
seq_name:= tbl_name||'_seq';
select_str := 'select '||v_seq_name||'.nextval from dual';
execute immediate v_select_str into seq_no;
EXCEPTION
WHEN OTHERS THEN
-- If Sequence does not exists in the database
IF (SQLCODE='-002289') THEN
Dbms_Output.PUT_LINE('This sequence does not exist: '||v_seq_name);
end if;
END seq_gen;
========================
Daily, millions of records will be loaded using this procedure.
(An ETL Tool will be calling this procedure)
Is there any way this procedure can be fine tuned?
Awaiting your inputs
Thanks,
Kishore

Will it improve the performance if created as
function instead of proc?You are loosing the point. Whatever you do will never improve the performance as you don't need this procedure.
First, let my mind clear on the idea:
Can't you really directly use seq.nextval?
We have taken care so that all the sequences are
present in db.Yes, db already takes care, so returns the error: "object does not exists". If you don't have the sequence present, you cannot do what you want, anyway. Displaying the error manually doesn't fix the situation.

Similar Messages

  • How to find inflection point in graph when dx is very small

    Hello,
    I'm trying to sort through position data from a feedback pot to calculate linearity of movement as part of a testing procedure. An image of the data is attached. I want to delete all data in the 'flat' part, in order to do a linear fit and R^2 of the sloped line.
    This is made trickier by the fact that the number of samples, the start and end points, and slope of the line can all vary considerably. Therefore I need some way to find the 'knee' in the graph and remove all subsequent samples from the data. 
    The most obvious method I tried was to use a derivative to find the inflection point, but since I have so many data points, the dx is very small
    (~0.05) when using the built-in labview derivatives. This means that I can't distinguish the inflection point from any other change in the values due to noise or change in velocity. I made my own derivative function, which was a newton quotient that looked at (xi+N)-(xi-N) instead of (xi+1) - (xi-1), but this still did not give good results. My next idea is to just look at the difference of every N points, and arbitrarily decide a threshold to indicate when it has levelled off. Any other ideas would be really helpful though.
    Thanks,
    -SK-
    Attachments:
    position.PNG ‏17 KB

    Lets see if I can answer without having to write a book.
    Fisrt I'd run the data through a zero-phase shift low pass filter. Then look at the 2nd derivative to find the knee. Using a zero-pahse shift fileter I was able to detect when a value was jumping up when it started to jump rather than after. THis thread may be interesting.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Actual layout of PDF output from printer is very small

    Hi there,
    I am currently sucessfully migrate Oracle reports from 6i to 10g (10,1,2) and the result looks fine from IE browser. When I try to print the report from printer, the image is occupied upper part of Letter size pager and it is very small which I even cannot read it. The following is my code snap:
    SET_REPORT_OBJECT_PROPERTY(p_repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(p_repid,REPORT_COMM_MODE,SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(p_repid,REPORT_DESTYPE,CACHE);
         SET_REPORT_OBJECT_PROPERTY(p_repid,REPORT_DESFORMAT,'PDF');
         SET_REPORT_OBJECT_PROPERTY(p_repid,REPORT_SERVER,g_server);
         v_rep := RUN_REPORT_OBJECT(p_repid);
    I didn't change any in my report rdf from 6i but only open and save it using 10g report builder. I also read threads posted but couldn't find the answer. Can anyone help me to resolve my issue.
    Thanks
    Jeffrey

    It happens on all machine. We use browser to launch the application and the report is called from forms (10.1.2). We didn't change any code in report and neither the fonts (Tahoma). In 6i, client server environment, windows can find the font. I guess in 10g web environment, the font is not as default. HP Laserjet 8000N is a network printer which I use to testing my report. everything is fine in 6i but not 10g. Here is my question.
    1. How to check printer setup? Should I use the default font from Linux instead of Tahoma?
    2. I found a note in metalink, Note:356221.1 which explains the procedures to deploy reports from windows to Linux. I am not sure my problem is related to the font or something else...
    Thanks for you reponse.

  • Pci compliance for very small biz using mac and ipad

    I run a very SMALL business. We have one MacBook an iPad and an iPhone. We run everything through a second party merchant card processor/software (mindbody). However, according to the PCI compliance survey I just finished, I am supposed to run quarterly internal scans for vulnerabilities. Does antivirus software do this?
    Also, what firewall settings do I need on my mac to be PCI compliant?
    I know this may be a very simple question, but the PCI survey assumes everyone has an IT department with a ton of policies and procedures. Trying to figure out how to be compliant as a super small business without all that infrastructure.

    Anti-virus software would not do PCI vulnerability scanning. You need specialized software to do that. Unfortunately, I cannot recommend specific software. My wife's small business was wrestling with PCI issues some time ago, and they're currently not doing any kind of internal scans. I don't know why not. They do get scanned externally periodically, to look for vulnerabilities in their setup that could allow people outside their network to gain access.
    PCI compliance is a scam anyway. It doesn't prevent the numerous breaches that so many high-profile companies have been facing lately, and you can bet they're dotting their i's and crossing their t's with respect to PCI compliance. They have the budget to do so.
    Your Mac should not need the firewall on. That shouldn't affect PCI compliance, if the Mac is properly configured and does not have any services open in System Preferences -> Sharing.

  • I have a problem with Safari in IOS 8 on my iPad 3. The bookmarks take up a third of the screen and I can't seem to make the bookmarks disappear until I need them. The useful part of the screen is therefore very small. Any suggestions gratefully appr

    I have a problem with Safari in IOS 8 on my iPad 3. The bookmarks take up a third of the screen and I can't seem to make the bookmarks disappear until I need them. The useful part of the screen is therefore very small. Any suggestions gratefully appreciated.

    OK, it now sort of works. A couple of problems here:
    After updating IOS, Safari iCloud was "automatically" switched off
    Switching it on had no effect
    resetting my iPad automatically switched off safari iCloud again
    after switching it back on, it said "turning off safari data"
    switched it off and on again, now it said : "turning on safari data" and the sync worked
    On IOS 7 no problems
    The bookmarks not being displayed was because after pressing the book icon, it defaulted to showing the history and I had to press "Back" to get to the other options

  • I have a Windows 8.1 machine.  I used a projecteor a while back in a Power Point presentation.  Now my menus for Adobe are very small and hard to read.  The print command is so compressed that I cannot read or use it.  How do I fix this problem?

    I used a projecteor a while back in a Power Point presentation.  Now my menus for Adobe are very small and hard to read.  The print command is so compressed that I cannot read or use it.  How do I fix this problem?

    There is no application called "Adobe" - you are either working with Adobe Acrobat or the free Adobe Reader. Open up the preferences for the application (Edit>Preferences), then go to the "General" category and modify the settings for "Scale for screen resolution". You will have to restart the application after you do that. Does that fix your problems?

  • Since downloading the 2013 Keynote upgrade, the slide image size on handouts with 3 slides per page option is very small. Is there a way to make the slide size larger while still keeping 3 slides per page   lines?

    With the new Keynote upgrade (version 6.1), the slide image size on handouts is very small, which makes it difficult to read slide content when compiling lecture notes for students. Is there a way to make the slide size larger while still keeping to a format of 3 slides per page with lines?

    A number of posts have reported the same issue, two workarounds:
    1
    check the paper handling options or equivalent in your print dialogue box and set to scale to fit

    in the Keynote option, in the dropdown menu in the Print section, select Individual Slides
    then choose Layout, and set the number of pages, when printed you will have multiple pages on a single sheet.

  • When I am on Firefox, my Netzero email page suddenly dropped to very small print. AOL OK. How do I increase size of the print so I can read the email?

    I was using Firefox to read my Netzero email. The print suddenly dropped down to very small and I have difficulty reading the email. Netzero said to oper Mozilla Firefox, click "tools", click "options", and click "content" to change the font to a bigger size. But when I clicked the brown "Firefox" button on the Firefox page, I do not see the buttons Netzero told me to click. Can you tell me what they are referring to or just tell me how to increase the size of the font when I am reading email on Netzero. AOL email font size was not affected when I clicked AOL to read the email there.

    See this and reset the zoom level there: <br />
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How do I enlarge the font in messages received and sent?  I have it set at "13", but it is very, very small on my screen.  I can't seem to change the appearance of the tool bar even when I try to "customize".

    How do I enlarge the font in messages received and sent?  I have the font set at "13", but the appearance on my screen is very, very small.  When I try to "customize the toolbar" to look like the tool bar above this message, I am unable to do so.  Please advise.  Thank you.

    Thanks MartinR, yes the Toggle bars can be adjusted so that I can see all the tracks - just in the smallest setting - however this also creates a huge area of grey which serves no other purpose than to "use up screen space". If this is deliberate then there is nothing one can do - since presumably the additional profit made on screen sales is more important to Apple, than the combined annoyance to those working on a 13" laptop. Of course a 15" screen or even 17" screen may make this wastage less obvious. Please indicate that this is all incorrect and explain why it is important to have space waiting "for additional tracks", even if I have no intention of making additional tracks. If that is the answer then perhaps additional space to the left and right of the timeline would be useful in case I wish to make a 30 minute film, so that it could be placed there without having to drag anything. It may be that I am expecting software than can be tailor adjusted, each parameter to the desired level as in professional items and since this is a cheap consumer program it is not possible.
    I bought Final Cut Pro for a lot of money (when it first appeared it was thousands and not just hundreds) but never used it since it was too complicated and tedious, but maybe there, this problem of screen wastage does not occurr, perhaps someone can advise! I could go back and reinstall it, but it was made for 10.2.8 and not 10.6.8 so it would not run on this macbook. I recently bought an old 15" TitaniumPowerbook (from 2005) and despite running at 1MHz the response time on it is "instantaneous" - amazing to not have the almost half second delay on many commands - graphics appear nearly immediately (just 5 milliseconds delay) and this makes working so much more enjoyable, not having the (350ms) stutter of 10.6.8 which we all get used to after our initial disappointment.
    Thanks for your help!

  • HT1766 I have made the C drive on my computer very small, with the intention that all data would be stored on the D partition. Can I change the destination for my iPad backup to the D drive?

    I have made the C drive on my computer very small and try to put all the data on the D partition. Can I change the destination for my iPad backup to the D drive?

    See if this post from turingtest2 helps : https://discussions.apple.com/message/24351688
    If not then you might be better off asking in the iTunes For Windows forum, you may be more likely to get better help there.

  • My home page and facebook games open with a very small window. The print is extremely small. How do I change the size of windows and print?

    Even when I click on full size in my games on Facebook, the windows are not as large as they were in Internet Explorer and the print size is very small. I had changed the size of the print in IE, but don't know how to change it in Firefox. The same is true for my homepage.

    See this:
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • Report in PDF Format is Very Small , Why?

    I run the report in browser , it is ok, but when taking output in PDF display is also ok , but when prints the report, it prints 3/4 size of actual report, means very small.
    How to over come this problem.
    Can any one help me.
    Thanks.

    Hello,
    Is your reports executed on UNIX or on Windows ?
    If it is executed on UNIX, do you generate a PCL output or a Postscript output ?
    There is a known probem with PCL with the decimal separator used in the output.
    In this case, the variable LANG can be used to fix this problem.
    Example ::
    LANG=en_US ; export LANG
    Regards

  • My macbook pro is printing everything very small in the middle of the page

    I've recently bought a MacBook Pro 13" and am having trouble printing from it.  When i use Pages, or Word or even a PDF everything I print comes out very small in the middle of the page On the same day i purchased an IMac and it prints fine, ive checked all my settings aainst the imac and they appear to be the same, can anyone help?

    Call the Apple Store that repaired it. You need to advise them that you are having "issues."

  • PSE 13 UI Very Small on Surface Pro 3

    I am running Photoshop Elements 13 on a Surface Pro 3, the UI is very small, not useable.  How can this be adjusted?

    Hi Keith,
    Elements 13.1 provides manual control for settings 200% scaling for HiDPI:
    Choose 200% and see if it resolves your issue.
    Choose Help>Updates... to install the PSE13.1 update.
    Thanks,
    Anwesha

  • I was on a specific site one evening and for some reason the page became VERY SMALL on the screen. No matter what I do I can't get that particular page to enlarge. HELP

    I was on the site pamperedchef.com. While I was on the page the information went from a full size page to a page approx 3x4 inches. I don't know how this happened but every time I try to log onto this site it comes up in that very small size.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

Maybe you are looking for

  • Error while importing Web Service from Services Registry

    I am trying to import a WebService in NWDS for CE 7.1 EHP1. This webservice is from an ABAP system and is published on the local service registry. However, during import, I get the following error, what might be the problem: java.lang.reflect.Invocat

  • Can i use safari with a windows 7 starter laptop?

    Can I use Safari on a laptop running Windows 7 Starter?

  • Some system settings not retained after restart

    In Snow Leopard, after a restart, the sound volume setting defaults to 50% and some Finder window views settings change (icon view becomes list view) or a cleaned up window reverts to jammed up icons. Additionally, iTunes always asks to allow incomin

  • Server0 never comes up J2EE down- Urgent!!!!!

    Hi, Ihave installed a SM 4.0 system with ABAP+Java. After all done with SP10, I had changed the master client from 001 to 100 which I created. From then my Server0 is not starting at all. I tried all the below: 1. Created a new client 120, did a clie

  • New to Soundtrack, looking to use song created in iWeb

    I am just starting to utilize my new mac. I am creating an iWeb page for my brother's wedding. I used Soundtrack to cut specific verses from various songs to use on the webpage. Now I am trying to get the .stmp file into a usable format for the iWeb