{"id":1106,"date":"2014-04-17T14:46:01","date_gmt":"2014-04-17T11:46:01","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=1106"},"modified":"2014-04-17T14:48:59","modified_gmt":"2014-04-17T11:48:59","slug":"what-is-lightweight-job-in-oracle","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/what-is-lightweight-job-in-oracle\/","title":{"rendered":"What is Lightweight Job in Oracle"},"content":{"rendered":"<p>Use lightweight jobs when you have many short-duration jobs that run frequently. Under certain circumstances, using lightweight jobs can deliver a small performance gain.<\/p>\n<p><strong>Lightweight jobs have the following characteristics:<\/strong><\/p>\n<blockquote>\n<ul>\n<li>Unlike regular jobs, they are not schema objects.<\/li>\n<li>They have a significant improvement in create and drop time over regular jobs because they do not have the overhead of creating a schema object.<\/li>\n<li>They have lower average session creation time than regular jobs.<\/li>\n<li>They have a small footprint on disk for job metadata and runtime data.<\/li>\n<\/ul>\n<\/blockquote>\n<p>You designate a lightweight job by setting the <strong>job_style<\/strong> job attribute to <strong>LIGHTWEIGHT<\/strong>. The other job style is <strong>REGULAR<\/strong>, which is the default.<\/p>\n<p>Like programs and schedules, regular jobs are schema objects. In releases before Oracle Database 11g Release 1, regular jobs were the only job style supported by the Scheduler.<\/p>\n<p>A regular job offers the maximum flexibility but does entail some overhead when it is created or dropped. The user has fine-grained control of the privileges on the job, and the job can have as its action a program or a stored procedure owned by another user.<\/p>\n<p><!--more--><\/p>\n<p>If a relatively small number of jobs that run infrequently need to be created, then regular jobs are preferred over lightweight jobs.<\/p>\n<p>A lightweight job must reference a program object (program) to specify a job action. The program must be already enabled when the lightweight job is created, and the program type must be either <strong>PLSQL_BLOCK<\/strong> or <strong>STORED_PROCEDURE<\/strong>. Because lightweight jobs are not schema objects, you cannot grant privileges on them. A lightweight job inherits privileges from its specified program. Thus, any user who has a certain set of privileges on the program has corresponding privileges on the lightweight job.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use lightweight jobs when you have many short-duration jobs that run frequently. Under certain circumstances, using lightweight jobs can deliver a small performance gain. Lightweight jobs have the following characteristics: Unlike regular jobs, they are not schema objects. They have a significant improvement in create and drop time over regular jobs because they do not&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,12],"tags":[14,90,32],"class_list":["post-1106","post","type-post","status-publish","format-standard","hentry","category-administration","category-oracle-procedure","tag-database-administration","tag-oracle","tag-oracle-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-hQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=1106"}],"version-history":[{"count":5,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1106\/revisions"}],"predecessor-version":[{"id":1111,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1106\/revisions\/1111"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=1106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=1106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=1106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}