updates in the procedure

Hi all

My question is I have some questions as 7.8 some are updated and some are delete, it takes b run everyday.
can I put in a procedure and then schedule the procedure.

If Yes please tell how can I use run immediately or what, because some r updates with void queries as well

waiting for answer
Yahya

Yahya says:
Hi all

My question is I have some questions as 7.8 some are updated and some are delete, it takes b run everyday.
can I put in a procedure and then schedule the procedure.

If Yes please tell how can I use run immediately or what, because some r updates with void queries as well

waiting for answer
Yahya

some queries as 7.8 do you mean?

You do not have to use run immediately in a procedure, unless you want to use the DDL command. Just put all the DMl in a procedure n schedule it. Planning to use the DBMS Scheduler. You can program directly a plsql so block

Published by: LoganDBA on October 10, 2011 12:33

Tags: Database

Similar Questions

  • Problem with update of a column by using the procedure of database and refreshing or put in value programmatically

    Dear all,

    I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.

    I have a page that consists of two taskflows.

    First workflow has a fragment which is to have a table based on view object salespersons (not editable)

    Second task flow contains a form of ADF from the same view object Salespersons.

    As the user selecting a line in the table of the same record is displayed as no problem.

    Now, I have added two buttons Activate and Deactivate that is to change the status of the sales.

    I tried to use two ways an updated using the procedure of database and then put in value by programming and I have different questions with two of them:

    Now, here's the code of the Java bean for activation:

    Option A - the problem with this is the value of the column in the list (the first task rate displayed) is not synchronized

    and Activate and Deactivate buttons are not disabled and active properly.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    Links BindingContainer = getBindings();

    OperationBinding operationBinding;

    operationBinding = bindings.getOperationBinding ("changeSalespersonsStatus") (OperationBinding);

    operationBinding.getParamsMap () .put ("pId", vId.getValue ());

    operationBinding.getParamsMap () .put ("pStatus", "A");

    Object result = operationBinding.execute ();

    dcStatus.setValue ("A");

    } else {}

    return;

    }

    }

    Option B - the problem with this is that the value of input for status text appears in the Active form for all records in form regardless of its database.

    {} public void confirmActivation (DialogEvent dialogEvent)

    If (dialogEvent.getOutcome () == DialogEvent.Outcome.yes) {}

    -no doubt this two lines are not needed here

    DBSequence vId;

    vId = dcId.getValue ((DBSequence));

    dcStatus.setValue ("A");

    BindingContainer links = getBindings();

    OperationBinding operationBinding;

    the operationBinding = bindings.getOperationBinding("Commit") (OperationBinding);

    Object result = operationBinding.execute ();

    } else {}

    return;

    }

    }

    Here's the code from the Fragment of shape for used buttons.

    "< af:button text = 'Activate' id ="bActivate' icon="/icons/activate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonActivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= ' n '} ">"

    < af:showPopupBehavior popupId = "pActivate" / >

    < / af:button >

    "< af:button text = 'Disable' id = 'bDeactivate' icon="/icons/deactivate.png ' iconPosition = 'top '.

    partialTriggers = "Bcreer bSaveInsert bCancelInsert dDeactivate dActivate".

    Binding = "#{pageFlowScope.salespersonsForm.buttonDeactivate} '"

    Disabled = ' #{bindings. " Status.inputValue! {= 'A'} ">"

    < af:showPopupBehavior popupId = "pDeactivate" / >

    < / af:button >

    Here's matching Popups for each of the buttons Activate and Deactivate.

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pActivate" >

    < af:dialog id = "dActivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmActivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to enable the seller?" id = "ol1" / >

    < / af:dialog >

    < / af:popup >

    < childCreation = "deferred" autoCancel af:popup = "disabled" id = "pDeactivate" >

    < af:dialog id = "dDeactivate" type = "YesNo" title = 'Status of salespersons' closeIconVisible = 'false '.

    affirmativeTextAndAccessKey = "& amp; Yes"cancelTextAndAccessKey ="& amp; (Cancel)

    noTextAndAccessKey = "& amp; No '.

    dialogListener = "#{pageFlowScope.salespersonsForm.confirmDeactivation}" >

    < f: facet = 'buttonBar' name / >

    < af:outputLabel value = "Are you sure you want to disable the seller?" id = "ol2" / >

    < / af:dialog >

    < / af:popup >

    Thanks in advance.

    Best regards

    Arif Khadas

    If you bind components to a range of flow page bean. You must complete that it saves the State of the component longer than the life of the component.

    To change the value of the GET value of the component of the link layer and change it.

    In this way the changes are captured by the framework and you should see them.

    Timo

  • Upgrades - during the procedure, my PC says it is install updates - but after doing what he wonyt restart and I need to go to restart from the last successful to get windows to restart - ideas?

    Upgrades - during the procedure, my PC says it is install updates - but after having done this, she does not restart and I need to go to restart from the last successful to get windows to restart - ideas?

    Windows Update Forum:

    It's updated operating system Vista, upgraded installation and activate Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • UPDATE the procedure

    I don't know why this procedure does not work. I gave the update on the table. Updates are possible but this code does not work.

    create or replace procedure raise_salary is

    Start

    UPDATE hr.employees SET salary = salary + 1

    WHERE employe_id IN (SELECT distinct hr.employees manager_id);

    end raise_salary;

    It can be functional... i.e. all employees are Manager!

    Or hit you below... Not to and NULL

    This departure!

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:442029737684

    Change the query:

    UPDATE hr.employees SET salary = 1000

    WHERE employee_id NOT IN (SELECT distinct manager_id of hr.employees where manager_id is not null);

    Please check now!

  • Update the State of the work using APEX_PLSQL_JOB. UPDATE_JOB_STATUS in the procedure

    Hello

    I have trouble getting my head around the status of the work in APEX_PLSQL_JOB.

    I have a button on a page that presents a work using:
              l_sql := 'BEGIN validation_pkg.run_validations_job(NULL,:P7_APP_ID); END;';  
              l_job := APEX_PLSQL_JOB.SUBMIT_PROCESS(p_sql => l_sql,p_status => 'Validation Submitted');
    This creates a job runs my packaged procedure and returns the JOB_ID argument which I store in a table, so I can query its status thereafter.

    The job runs then but I want to update the status of the job as it progresses through the stages of the treatment, it runs. So, I want to call APEX_PLSQL_JOB. UPDATE_JOB_STATUS. This call requires two parameters, the JOB_ID argument and the new STATUS. The manual contains the code example:
    APEX_PLSQL_JOB.UPDATE_JOB_STATUS( P_JOB => :APP_JOB, P_STATUS => 'New Status');
    and says: APP_JOB is a "reserved" component that will automatically "replaced for you at runtime with the number of actual jobs.

    However, when I want to talk: APP_JOB in my code 'create a package body... '. ', as
    apex_plsql_job.update_job_status (P_JOB =>:APP_JOB, P_STATUS => 'Stage 1 Complete'); 
    It returns a "bad bind variable. compilation error 'APP_JOB'

    How can I make to APP_JOB in my procedure packed?

    Thank you very much
    Martin

    Hello

    You must add the p_app_job parameter for example to your validation_pkg.run_validations_job procedure.
    Then present you the work as

    l_sql := 'BEGIN validation_pkg.run_validations_job(NULL, :P7_APP_ID, :APP_JOB); END;';
    l_job := APEX_PLSQL_JOB.SUBMIT_PROCESS(p_sql => l_sql, p_status => 'Validation Submitted');
    

    In the procedure, then use you value of parameter in APEX_PLSQL_JOB. UPDATE_JOB_STATUS call

    APEX_PLSQL_JOB.UPDATE_JOB_STATUS( P_JOB => p_app_job, P_STATUS => 'New Status');
    

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Insert or update of a row, according to the State of the procedure

    Hi all

    I m new procedures in Oracle. Can some body help out me? I need to insert a line, if there is no line exists for a user. And update, when the record exists. Here are the fields in the table: EMPLOYEE_ID VALUE1, VALUE2, CREATED_DATE, UPDATED_DATE, CREATED_BY, UPDATED_BY.

    If not, line exists, then I want to run this query:

    insert into user_profile (EMPLOYEE_ID, value1, value2, CREATED_DATE, UPDATED_DATE, CREATED_BY, UPDATED_BY) values (31211, 16, 17, Sysdate, sysdate, 31211, 31211);

    And when there is line exist for EMPLOYEE_ID, need to run after the request:

    Update profil_utilisateur the value of VALUE1 = 16, VALUE2 = 17, UPDATED_DATE = sysdate, UPDATED_BY = 31121
    where EMPLOYEE_ID = 31121

    And my procedure takes three values, value1, for example 16, value2 example 17 and username for example 31121

    Thank you for helping me...

    Best regards
    Ashish

    You don't need to create any procedure. you will have to pass the value of empid etc. for the merge as statement:

    MERGE INTO user_profile UP USING (select 1 i_empId,'value' i_value1, 'value2' i_value2 from dual) up2
    on (up.employee_id = up2.i.empid)
    WHEN MATCHED THEN
         update
              set up.VALUE1 = up2.i_value1 ,
                  up.VALUE2 = up2.i_value2,
                  up.UPDATED_DATE = sysdate,
                  up.UPDATED_BY = up2.i_empId
    WHEN NOT MATCHED THEN
         insert into user_profile(up.EMPLOYEE_ID, up.VALUE1, up.VALUE2, up.CREATED_DATE, up.UPDATED_DATE, up.CREATED_BY, up.UPDATED_BY)
                     values(up2.i_empId, up2.i_value1, up2.i_value1, Sysdate, sysdate, up2.i_empId, up2.i_empId); 
    
  • How to grant privileges to update on the custom procedures created in the apps schema?

    Hello
    We have a R12.0.6 instance that runs within our Organization. Our programmers keep requesting access on some custom procedures that are initially created in the apps 'write (update)' scheme. I have created a read-only as database user and granted ' run/debug' privilege on these custom procedures, but always using this procedure user cannot be updated (in sufficient privileges).

    Once they change the procedure, send me the code. Using profile user apps, I can recreate it using procedures create or replace the control. In this way it works very well. Our concern is how they (programmers) themselves using database read-only user does this work? What privileges should be granted?

    Please guide me?
    Concerning
    Ariz

    Arizuddin wrote:
    Hello
    First of all, I have to give ' run/debug"on a particular procedure that exists in the apps schema. Grant then 'edit any proceedings', it works.

    "alter any procedure" is a privilege of system and now the user can change any procedure in the database. You will need to remember this security risk.

    Concerning
    Rajesh

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • After you install a Foxfire 5.0 update, I get this message when you try to open Mozilla: the procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll.

    I get this message when you try to open Mozilla: the procedure entry point sqlite3_db_status could not be located in the dynamic link library mozsqlite3.dll.

    Do a clean reinstall.

    Download a new copy of Firefox and save the file to the desktop.

    • Uninstall your current version of Firefox.
    • Do not remove the data of a personal nature when you uninstall the current version.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.

    Your bookmarks and other profile data is stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • Can't get the procedure to update - PLS - 00306:Wrong number or types of arguments

    I'm in a situation where I think that despite the correct number of parameters by the way my local procedure (which has been "forward declarations" in addition to logical writing for her; I use all this in a package) fails to compile in SQL * faster due to the error PLS - 00306:Wrong number or types of arguments in the call to P_SENDMAIL.


    I'm passing 5 parameters in the area of forward declarations and also in the logic/header inside in addition to calling the procedure in the package. Can one of you help mewith this and tell me where exactly the error might be. Here is the code:


    [code]

    -Local variable

    CRLF VARCHAR2 (2) CONSTANT: = CHR (13) | CHR (10);

    -- --------------------------------------------------------------------------------

    -FORWARD DECLARATIONS

    -- -----------------------------------------------------------------------------

    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL);

    [/ code]


    The procedure itself:


    [code]


    PROCEDURE p_sendmail (p_sender_email IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_to IN VARCHAR2,

    msg_subject IN VARCHAR2 DEFAULT NULL,

    p_msg_body IN LONG DEFAULT NULL) is

    LONG v_to_list;

    LONG v_cc_list;

    LONG v_bcc_list;

    T_DATE VARCHAR2 (255) DEFAULT TO_CHAR(SYSDATE, 'DD MON YYYY HH24:MI:SS PM');

    g_mail_conn UTL_SMTP. CONNECTION;

    SMTP_HOST CONSTANT VARCHAR2 (256): ='smtp - abc.defg.ca';

    SMTP_PORT CONSTANT PLS_INTEGER: = 25;

    BEGIN

    g_mail_conn: = UTL_SMTP. OPEN_CONNECTION (SMTP_HOST, SMTP_PORT);

    UTL_SMTP. HELO (g_mail_conn, SMTP_HOST);

    UTL_SMTP.mail (g_mail_conn, p_sender_email);

    UTL_SMTP. RCPT (g_mail_conn, p_to);

    UTL_SMTP.open_data (g_mail_conn);

    UTL_SMTP.write_data (g_mail_conn, "|) CRLF);

    UTL_SMTP.write_data (g_mail_conn, p_msg_body);

    UTL_SMTP.close_data (g_mail_conn);

    UTL_SMTP. Quit (g_mail_conn);

    EXCEPTION

    WHEN utl_smtp.transient_error THEN

    Dbms_output.put_line ('TransientError: invalid operation in the service may not be available.) ") ;

    WHEN utl_smtp.permanent_error THEN

    Dbms_output.put_line (' permanent error: the entered email is invalid or recepients mailbox is full.) ») ;

    WHILE others THEN

    Dbms_output.put_line ('Unable to send an email' |') '|| SQLERRM);

    END p_sendmail;

    [/ code]

    Now by calling the procedure to send an email:

    [code]

    p_sendmail (p_sender_email = > ' [email protected]'-, send an E-mail to the donor )

    p_from = > ' ADS < [email protected] > ',

    p_to = > v_store_email_address,

    p_msg_subject = > 'anonymous user ',.

    p_msg_body = > 'thank you ' |

    CRLF.

    "Email confirms that we have received your promise |

    CRLF.

    CRLF.

    ' Name: '. v_full_name |

    CRLF.

    ' Temporary ID: ' | v_azbwccp_id |

    CRLF.

    "Reference number: ' |" MTID |

    CRLF.

    "Amount: ' | '. TO_NUMBER (campaign_desg_amt1) |

    CRLF.

    "Campaign: ' | '. campaign |

    CRLF.

    ' Description: ' | '. adbdesg_rec.adbdesg_name |

    CRLF.

    ' Type: ' | atvpldg_rec.atvpldg_desc |

    CRLF.

    ' Duration: ' | '. atvpdur_rec.atvpdur_desc |

    CRLF.

    "Frequency: ' | '. atvfreq_rec.atvfreq_desc |

    CRLF.

    "Start date: ' | '. bill_date2 |

    CRLF.

    CRLF.

    'Your commitment is processed.' |

    CRLF.

    "At the same time, if you want to change this transaction, please contact us.

    CRLF.

    CRLF.

    "Thank you for your support." |

    CRLF.

    CRLF.

    CRLF.

    CRLF.

    ' * This is an automated message system. Please, do not respond to this email. *** ') ;

    [/ code]


    I've also attached a screenshot of the error message below:

    ScreenHunter_15 Nov. 27 09.35.jpg

    Please help me if you can. I just can't understand the question.


    Thanks in advance

    Sandeep

    In the header of the procedure, I spent my parameter as msg_subject and during the call, he was p_msg_subject. The minute that I corrected the error, I was able to correctly compile the whole package body.

    The question can be now closed.

  • updates to the add-on do not install after FireFox restarts

    If I go to Tools-Extensions some of my modules are updates are available. After I downloaded it says he will
    be installed after that restart of FireFox, but it does not. I'm not sure the update is charged down, but it seems
    as it is. The progress bar is moving forward, but it does not show the bottom of page loading.
    I use Mac OS 10.6.8 with FireFox 19.0.2

    The corruption of extension files sometimes causes the issue. Try the procedure described in the following article. The files will be recreated when you restart Firefox. There are also other suggestions in this article.

  • Windows Update blocks the system off, it

    I shut down the system, while it has been updated of the system (Microsoft Update). Now it crashes, saying that this update no. 11 of 13 is busy

    What should I do?

    The operating system is windows 8.1

    The system should be able to launch an auto repair.

    First you must do a full stop down to Win 8.1 as described in this document:
    http://APS2.toshiba-tro.de/KB0/TSB2B03EY0002R01.htm

    After that, you must restart the laptop... Usually the system would start an auto repair procedure that should solve the problem of update.

  • What are the possible problems during the update of the BIOS?

    Hello everyone,

    I'm having a problem with my old Toshiba battery - "plugged in, does not support".
    The research on the internet I discovered that the BIOS update might solve the problem.

    On the other hand the BIOS update procedure can itself cause some break problems...

    Someone knows what can the precautions / should I take to avoid such problems or be prepared to solve them easily... something like the BIOS recovery disk, etc.?

    Thanks in advance
    IG

    > On the other hand the BIOS update procedure can itself cause some problems to break...
    Never heard of that
    BIOS update is a delicate process and the laptop could die if the procedure fails, but never heard of network problems

    But I'm not quite sure if the BIOS update would help you to get the battery work m.
    From my experience has nothing to do with the version of the BIOS
    The battery has worked in the past?

    If Yes, then I would say; the problem is with the battery or motherboard problem
    Eventually it s a battery issue because the battery seems to be very old
    So, in my opinion, you should try to replace the battery.

  • The update of the BIOS for Satellite Pro M70 does support TPM?

    Hello

    There was an update of the bios that is specially designed for Vista... = bios-vista - 510win.zip on the Toshiba site...

    Although my Satellite Pro M70-113 did not support the default TPM module (BIOS verson 1.1, I always have this), is it possible that this update includes the TPM secure to enable bitlocker on vista?

    Can someone check and confirm please... :)

    And secondly, is configuration BIOS update for Windows utility saves the current state of the BIOS in some external as backup media, while if it happens with the process of update... the previous version can be restored in return?

    And a BIOS may be downgraded?

    Thank you.

    Hello

    (1.) I m not 100% sure but I think the new BIOS for the M70 does not support the TPM secure. I read somewhere that all BIOS versions that support TPM on Toshiba laptops cannot be updated by a common user, but the user must contact the authorized Toshiba service provider for these updates.
    That's why I think that Toshiba would not any BIOPS version by download issue if this BIOS would support the TPM.

    2.) now something about the second question:
    The new BIOS version replaces the old BIOS and BIOS States and to my knowledge it of not possible to save the settings for a backup more later.
    Generally, you must be careful with any update of the BIOS. Bad BIOS or bad update procedure may damage the jury!

  • What can I do about 48 error during the update of the iphone 4S?

    What can I do about 48 error during the update of the iphone 4S?

    Hello! Try the procedure described in section of the Apple Support below:

    Solve the iOS update and restore error in iTunes - Apple Support

Maybe you are looking for

  • I deleted my pictures and videos to free up space on my iPhone 6, but the settings and iTunes still say that I've not left storage. Help, please.

    Hello I have an iPhone 6 and uses iOS 9.3.2,and I recently deleted all my pictures and videos to free up space, "Manage the storage" in still however said circles I 23.4 GB of photos/videos like iTunes when I connect my iPhone to my Mac. I deleted my

  • Write the previous values DBL

    Hello I work with LabVIEW 2013. I'm receiving the channels of a robot and the analysis of the data and plot the position real vs commanded position. When the robot meets and error, it sends LV and messages. All string parsing is done in the same plac

  • New wireless brother MFC-495 does not print Windows XP laptop

    Similar to other issues but quite different: 1 installed the printer on the desktop that does not have wireless using the USB port.  Prints. 2nd software installed on my laptop wireless.  I can see the printer in the Printers folder, it says ready, b

  • Buy portable touchscreen HP envy 17-j185na

    Dear HP customer service I am very interested in to purchace a HP Envy 17-j185na touch screen laptop, but it always seems out of shock, it was out of stock for more than 1 month When will be available to be purchased for again the above laptop? I'm d

  • Vibration of SMS

    Hey,. I want my Z5C to vibrate on SMS only when the phone is vibrate mode. Currently, it only seems that have vibrate in all modes (sound/vibrate/silent) or no. vibrate at all. Anyone know if this is possible without going to 3rd party sms app?