Oracle declaration takes time

oracle declaration takes more time.
In order to bypasss the declarations(100 declarations) it takes nearly 1 sec
why it is taking 1 sec ?

Sample
select Current_timestamp from dual;
declare
P_1                      NUMBER(25);
P_2                           NUMBER(25);         
P_3   NUMBER(20);
l_4     NUMBER(20);
l_5             INT;
l_6            INT;
l_7       VARCHAR2(50);
l_8         VARCHAR2(50);
l_9      VARCHAR2(25);
l_10               VARCHAR(32000);
l_11             CLOB;
l_12        NUMBER(5);
l_13    NUMBER(5);
l_14           VARCHAR(2000);
l_15           INT;
l_16              INT;
l_17        NUMBER(1) :=1;
l_18  NUMBER(10):=1;
l_19      NUMBER(20);
l_20       VARCHAR2 (32000);
l_21        INTEGER;
l_22            INTEGER;
l_23            float;
l_24           DOUBLE PRECISION;
l_25             NUMBER(20);
l_26              integer;
l_27           number(10);
l_28          varchar(100);
l_29    CLOB;
l_30  VARCHAR2(32000);
l_31  VARCHAR2(32000);
l_32         VARCHAR2(32000);
l_33 VARCHAR2(2000);
l_34  VARCHAR2(2000);
l_35 VARCHAR2(2000);
l_36 VARCHAR2(50);
l_37      int;
l_38 VARCHAR2(50);
begin
DBMS_output.put_line(Current_timestamp);       
end;
CURRENT_TIMESTAMP
20-NOV-13 12.50.09.491000000 PM
1 rows selected
anonymous block completed
20-NOV-13 12.50.10.334000000 PM

Similar Messages

  • Oracle Aplication Takes long time to open Using SSGD

    hello everybody!
    We are accessing Web based oracle application through SSGD 4.2. User claming slow performance of application in compare to direct access over web.
    please let me know if any tunning required ?
    Details are as follows:-
    Application Server : Windows 2003 with Oracle10g and 9AS Forms
    Publishing Method: IE 6.0 has been published with URL of application in the argument.
    Thanks & Regards
    Saurabh Sharma

    hello everybody!
    We are accessing Web based oracle application through
    SSGD 4.2. User claming slow performance of
    application in compare to direct access over web.
    please let me know if any tunning required ?
    Details are as follows:-
    Application Server : Windows 2003 with Oracle10g
    and 9AS Forms
    Publishing Method: IE 6.0 has been published with
    URL of application in the argument.
    Thanks & Regards
    Saurabh SharmaI have also found following reason for slow speed of connection :--
    1. Jinitiator(loaded with IE browser) and Terminal service do not work well together.
    2. Every image which is tranfered over SSGD Behaves as a bitmap image . Which take time to load and the changes also transfer very slow.
    Can any body guide me on this ?
    Regards
    Saurabh Sharma

  • Query takes time to execute

    I am creating a jsp application . . . .I am retreiving some values from my database oracle 10g..my query taking time to execute even in isql plus..am uisng tomcat5 and oracle 10gR2..can anyone pls tell me why it happens...my query fetches data from four tables...i dont know exactly why its taking so muc time say 50seconds...when i run the application in my local host it retrievs fast when i do that in server it creates a problem..
    Actually it works fine when i deployed in my client server it takes time sometimes it takes atmost one minute
    1.pls tell me how can i test my query about the performance
    2.is der any command in oracle to test
    3.how much bytes it takes

    Look at this thread...
    When your query takes too long ...

  • Execution takes time for the report in Application

    I have developed a report for payroll runresult.Its execution time is 3 minutes,but when i run in application it takes half an hour
    The query i use is...
    SELECT round((sum(nvl(DECODE(PET.element_name,'Basic Salary',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'House Rent Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Transport Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Petrol Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Vehicle Allowance',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Additional HRA',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Other Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Carried Balance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Mobile Allowance',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Fixed Over Time',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Rent Deduction',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'Vehicle Allowance Deducted',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'HRA Deducted',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'Rent Deduction',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'Insurance Deduction',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Medical Insurance',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Family Passage Allowance',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Salik Allowance',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'Family Insurance Deduction',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Fixed Incentive',ROUND(prrv.result_value,3),0),0)) +
    sum(nvl(DECODE(PET.element_name,'Company Accomodation Provided',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Mess Deduction',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Normal Overtime',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Special Overtime',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Telephone Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Other Allowance',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Other Earnings',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Other Deductions',ROUND(prrv.result_value,3),0),0)) -
    sum(nvl(DECODE(PET.element_name,'Salary Advance Recovery',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Air Ticket Refund',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Vehicle Fines and Charges',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Abroad Emergency Leave',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Abscond Leave',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Air Fare Paid',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Recovery Carried Balance',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Hajj Leave',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Local Leave',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Sick Leave Deduction',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Sick Leave Without certificate',ROUND(prrv.result_value,3),0),0))-
    sum(nvl(DECODE(PET.element_name,'Round Off Deduction',ROUND(prrv.result_value,3),0),0))+
    sum(nvl(DECODE(PET.element_name,'Round Off Earnings',ROUND(prrv.result_value,3),0),0))),0)Net_Salary,papf.national_identifier groupcode,papf.FULL_NAME,paav.effective_date,
    haout.name costcentre,pg.name grade, pj.name designation ,paaf.ASSIGNMENT_NUMBER employee_number,decode(pop.org_payment_method_name,'RI_CASH','C','B')Payment
    FROM pay_run_results_v prrv,pay_run_results prr,pay_assignment_actions paa,per_all_assignments_f paaf,per_all_people_f papf,hr_all_organization_units_tl haout,
    per_grades pg, per_jobs pj,pay_assignment_actions_v paav,pay_personal_payment_methods_f ppp,pay_all_payrolls_f pap,pay_payroll_actions ppa,
    pay_org_payment_methods_f_tl pop,pay_element_types_f PET
    WHERE --prrv.assignment_action_id = 49449 and
    ppp.assignment_id(+) = paa.assignment_id
    AND pop.org_payment_method_id(+) = ppp.org_payment_method_id AND
    paa.ASSIGNMENT_ACTION_ID=prrv.ASSIGNMENT_ACTION_ID and paaf.ASSIGNMENT_ID=paa.ASSIGNMENT_ID
    and haout.organization_id=paaf.ORGANIZATION_ID
    and papf.EMPLOYEE_NUMBER=paaf.ASSIGNMENT_NUMBER
    AND prrv.run_result_id = prr.run_result_id
    AND ppa.effective_date BETWEEN pet.effective_start_date
    AND pet.effective_end_date
    AND prr.element_type_id = pet.element_type_id
    and prrv.CLASSIFICATION_NAME not like 'Info%'
    -- and prrv.element_name not like 'Gross Salary%'
    -- and prrv.element_name not like 'Annual%'
    and pj.job_id(+)=paaf.job_id
    and haout.name=nvl(:P_Dept,haout.name)
    and ppa.PAYROLL_ACTION_ID=paa.PAYROLL_ACTION_ID
    and pap.PAYROLL_ID=ppa.PAYROLL_ID
    and paav.ASSIGNMENT_ID=paaf.ASSIGNMENT_ID
    and paav.ASSIGNMENT_ACTION_ID=paa.ASSIGNMENT_ACTION_ID
    and pap.PAYROLL_NAME=NVL(:P_PAYROLL_NAME,pap.PAYROLL_NAME)
    --and papf.national_identifier = 03917
    and paav.effective_date >= TO_DATE ('01-' || :p_start_date, 'DD-MON-YYYY')
    AND paav.effective_date <= LAST_DAY (TO_DATE ('01-' || :p_start_date, 'DD-MON-YYYY'))
    -- and paav.DATE_EARNED=to_char(:p_date,'DD-MON-YYYY')
    and pg.grade_id(+)=paaf.grade_id group by papf.national_identifier,papf.FULL_NAME,paav.effective_date,
    haout.name ,pg.name , pj.name,paaf.ASSIGNMENT_NUMBER,pop.org_payment_method_name,papf.employee_number
    Cant analyse where it takes time...
    Regards,
    Mera

    I don't think that the "SUM" structure in the SELECT makes a difference in performance (And DO NOT use PL/SQL for this!) And as long as you SUM most PET.element_name values you do not need to filter by them.
    But, of course, the solution of "Sven W." would make the code MUCH nicer (took me a while to get it) and the "format" of the join conditions would take anyone ages to maintain that code!
    But your problem is that the execution differs massively right?
    Do you do the same thing? E.g. bind variables in the interactive part? Do the variables have the same value?
    Do you filter on the other variables like "P_DEPT" etc. ?
    "and haout.name=nvl(:P_Dept,haout.name)"
    The good thing is that you have an execution which makes you happy so you need to compare the SQL and the execution for both. Somewhere must be a difference. (Is the result the same by the way (just in case your parameters differ)?)
    If the results and parameters are the same, then do you not work with parameters in the "interactive" test and ORACLE is choosing a different execution plan as it knows more about your question. If that's the case, try to hint the query so that it's using the desired execution plan when you work with parameters.
    And how did you get that "execution plan" it's missing so much data and it's not formated. (put around it and check in "Preview" if it looks as desired)
    -- andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Opening plus takes time????

    Hi everybody,
    I have Instaled Oracle Application Server 10g 10.1.2.0.2 (Type: Business Intelligence without infrastructure) on a server. The problem is that when we login to Discoverer plus from a client machine it takes alot of time to open the plus window (applet). After that Disco Plus works fine. I also installed Oracle Application Server with Infrastructure but on that instance it does not take time to open the applet . Do i need to do some configuration on the later one or not. Please advise. Thanx
    Khan

    Hi,
    Check for JRE installed in your machine. Open IE>Tools>Internet Options.In General tab, click on Settings>View Objects. I am referring to IE6.0.
    If a particular version of JRE that Discoverer use is not available in your machine, then it will automatically install for the first time usage.
    Second reason could be that there may be so many database sessions and resource like CPUs, Memory is less.
    Third could be the server on which Discoverer is installed is not having enough resources to handle many sessions. Discoverer is memory intensive.
    Thanks
    Cherrish Vaidiyan

  • DDL command takes time

    hi everybody
    i am getting a problem ...
    when i use DROP USER command on Oracle 10g database ,its takes time to drop a particular user...
    command is fired using FORMS_DDL ..
    can anybody help me out....
    Message was edited by:
    new.oradev

    The "drop synonym" should probably not take a lot of time but for the question about how performant the forms_ddl is, I have to refer you to the Forms

  • Same EPM Excel Report takes time to open and refresh on 1 system while it opens and refreshes faster on other system

    Hi All ,
    I am facing an issue where the EPM Excel Templates on SERVER ROOT FOLDER take time to open on 1 system . It also takes great amount of time to REFRESH . While on an another system the same Report opens rather quickly and refreshes also quickly .
    Regards,
    SHUBHAM

    Hi Shubham,
    Now day excel problems are due to some MS update.  Not sure but  have a look at below note.
    2107965 - Issues in EPM Add-in after installing Microsoft updates

  • Get date from Oracle when local time zone is different from Oracle time zon

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send e.g. 28.06.2002, but in Oracle date is save as 27.06.2002 01:00 (hour=01 , I suppose that is because java.sql.Date hasn't time the Oracle set it time = time zone=+1) And when I get date from Oracle I get incorrect date. In SQL I don't use date masks. Maybe solution is to use java.sql.Timestamp object (when save date to Oracle) instead of java.sql.Date?
    But if I save date at e.g. 01:00 clock and send e.g. 28:06.2002 in Oracle, date is save as 28.06.2002 01:00 and when I read from Oracle I get correct date.
    Thank you.

    Hi!
    Local machine time zone= +2
    Oracle time zone= +1
    I set date to Oracle using java.sql.Date.
    From application I save date at 00:30 clock and send
    e.g. 28.06.2002, but in Oracle date is save as
    27.06.2002 01:00 (hour=01 , I suppose that is because
    java.sql.Date hasn't time the Oracle set it time =
    time zone=+1) Presumably you are using setTimestamp() to store the value. If you are explicitly using a varchar (string) then you will have to correct the timezone your self.
    And when I get date from Oracle I get
    incorrect date. In SQL I don't use date masks. Maybe
    solution is to use java.sql.Timestamp object (when
    save date to Oracle) instead of java.sql.Date?The method setDate/getDate store a 'date' which is not the same as a 'date and time' for which setTimestamp/getTimestamp are used.
    But if I save date at e.g. 01:00 clock and send e.g.
    28:06.2002 in Oracle, date is save as 28.06.2002
    01:00 and when I read from Oracle I get correct date.
    Thank you.

  • I mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    i mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    Try a reset by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.

  • I got macbook pro 13" i bought in 2011 but its now getting slow when i start up or when shutting down .and apps takes time to open like just bouncing????????

    i got macbook pro 13" i bought in 2011 but its now getting slow when i start up or when shutting down .and apps takes time to open like just bouncing????????

    See the Mac OS X Speed FAQ.

  • Windows 8 takes time to open explorer.

    Windows 8 takes time to open explorer (My Computer), found that if the network drive group policy is removed it opens fast.
    Please help to diagnose the issue.

    Hi,
    According to your description, if this is related with mapped drive, it might be inaccessable network drives, I suggest you check the network connection between the PCs. Explorer may struggle if there is a problem with the other computers or with
    the network.
    Or as
    britishdhez mentioned, check if a 3rd party program is the culprit.
    Yolanda Zhu
    TechNet Community Support

  • Final Cut Pro takes time to share/export a 40 minute video

    I bought a brand new new Macbook Pro (4 GB RAM, i5, HD 500 GB (300 GB available) Mid 2012 model and it takes 3-4 hours to share/export a 40 minute video without any effects applied on the clips. I have another Macbook Pro, same model and same specs and it just takes an hour to render the same video/project which I think is reasonable time.
    Video files are from my Canon 60d camera which are .mov files. I usually export my projects to H.264 Video and AAC. (Share>Master File)
    I don't have any problem exporting/sharing a 3 minute video with effects applied on the clips on my macbook Pro where I'm having a problem with because it has the same export/share time with my other MBP. It takes 5 minutes to share/export a 3 minute video which I think is reasonable. The problem is why my new Macbook Pro takes time to share/export a project with a video duration of 30-40 minutes compared to my other Macbook Pro.
    Thank you for your help!
    Final Cut Pro version: 10.0.8
    Macbook: OS X 10.9.2

    If you have two MBPs with exactly the same specs (including GPU) – and you have comparable free space on both system drives –and comparable free space on any media drives  – then verify that your perceptions of their exporting times are different by doing a test with identical projects media and export settings – and ith no other apps running. If you confirm that one is much faster than the other, I'd suspect the GPU. Also open Activity Monitor to see what's being reported – particularly to see whether there are differences in the way memory is being used.
    Russ

  • In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    In using mail with my mackbook air with maverick, to open a message takes time as if the message is downloaded & its same every time I want to open the message from inbox.

    WoW! I'm surprised by the speed you reply and how serious you are with your answers! Thank you very much guys!!!
    Replying to Toad-Hall:
    I have a proper mailing list created as the manual says. It's a small group of contacts that exist in the address book. I do not type them as CC I just write "clients" and before I finish the word the name of the list appears.
    How can I stop Avast from scanning out going mail? It's the free version and I haven't found a real solution. I also tried to totally turn off the "mail shield" but I kept facing the same issues. However, I just turned it off and tried to send the mail, I didn't restart windows or thunderbird
    The idea with ipage server was fantastic! It would never come to my mind!!! As far as I see, the limit is 250 mails per hour. I doubt if I have ever reached the 50% of it. I also don't reach the bandwith limits... Besides that, if I had exceeded the limit I would get multi responses that "mail was not delivered".
    I want to thank you both for your excellent help so far. I'm sad to say that I still haven't solved the issue. When I made smaller lists, with the same addresses chosen from the address book I could send the messages, having a short delay. I would blame Avast but I tried the same on another laptop with my favourite NOD32 and had the same problem.
    What else should I check? Should I focus on Avast?

  • Acrobat 9 dll files takes time to unload after closing the reader

    I have a Java Desktop application, in which Acrobat 9 is used to display the reports generated. Acrobat 9 does not start a child process under acrobat.exe but loads dll files in the process and they take time to unload, due to which my javaw.exe is not shutting down and i am unable to restart the application eventhough I have logged out of the application.
    This application had used Acrobat 8 previously and this was never an issue that time. Kindly help me out with this issue.

    This problem I have to solve as soon as possible... It's kind of urgent.. So if anybody has any idea about thisthen do share it, it will be highly appreciated!

  • I have just subscribed to Adobe Export and my debit card has been charged but I cannot convert a pdf into a word format on my mac.  Does it take time to process?  I have purchased the package about thirty minutes ago?

    I have just subscribed to Adobe Export and my debit card has been charged but I cannot convert a pdf into a word format on my mac.  Does it take time to process?

    Hi nickel13,
    What is the problem you are facing?
    Is this happening with a single PDF file?
    Regards,
    Florence

Maybe you are looking for

  • How to reference a column value in a particular block.

    I am having problem in referencing a column in a particular Block in WEBi report. Scenario: I have only one query in the query panel and i am creating a sample report having different blocks.                Now there are four blocks in my report,    

  • GL Query Help

    Dear All, I need to retrive the je_jeader_id and je_line_number in GL for a range of account code combinations, for a range of periods, for a ledger, for a currency. I am using below query .. but which gives me values which doesnt belong to the perio

  • Is there any certification for oracle performance tuning..?

    Hi All, Do we have any certification for oracle performance tuning. Let me know if it is. Thanks, Ritesh

  • SRW2024P config file issue

    Hello there, we got a problem with our Linksys switch. What happened was, we wanted to restore a config from another switch (same) so we backed up the config and loaded it onto this current "dead" one. All we thought was going fine until the switch n

  • Rustling/Static-like sound when awakening from sleep?

    It seems to be coming from the speaker, the left side I think, and it definitely isn't the sound of the drive spinning up. Anyone know what this issue is, how to fix it, or if it is a sign of a more serious problem?