Please help me to make procedure

Hi,All
i want to make procedure. My concept is that if give special date(start,end), in that date, unlock account, and than in end date , lock account automatically. please help anybody..  Thank you for reading

To execute the commands at a future date/time, the procedure will have to submit a Job using either DBMS_JOB or DBMS_SCHEDULER (even a LightWeight Job). 
You need to read the documentation on DBMS_SCHEDULER and scheduling jobs.
See  http://docs.oracle.com/cd/E11882_01/server.112/e25494/schedover.htm#i1106753  and  http://docs.oracle.com/cd/E11882_01/server.112/e25494/scheduse.htm#i1033533
A google search would also help you find code that uses the scheduler to execute a job.
Hemant K Chitale

Similar Messages

  • I forgot my icloud account and my email how can i recover it please help me icloud maker and icloud password and username holder

    i forgot my icloud account and my email how can i recover it please help me icloud maker and icloud password and username holder

    If you don't know your ID, you can try to find it as explained here: http://support.apple.com/kb/HT5625.  Then you can reset the password as explained here: http://support.apple.com/kb/PH2617.  Of course, you can only do this if it's your ID.

  • HT1386 please help me to make synch between my computer and iphone , on the file tab it is not possible to click, thanks

    my dear,
    please help me to make synch between my computer and iphone , on the file tab it is not possible to click.
    appreciate your help and thanks in advance.
    regards
    hesham

    You can't
    Apple has never approved a method to downgrade iOS
    Allan

  • Guys i need to get m itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    guys i need to get my itunes account unlocked its stopping mefor making in app purchases please help need to make a purchase within 30 minutes

    If you've tried to buy something and your've been charged for it (and it's not a temporary store holding charge) but haven't received it then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Please help to call oracle procedure with out paramter from shell script

    Hi
    I want to call a process with out parameter from shell script. I am calling process in shell script in below way
    function Process_loads {
    ( echo 'set serveroutput on size 1000000 arraysize 1'
    echo "set pagesize 0 term on verify off feedback off echo off"
    echo "BEGIN"
    echo " dbms_output.put_line('Before Calling The package'); "
    echo " x ( '$1', '$2', '$2', '$4', '$5', '$error_code'); "
    echo " dbms_output.put_line('After Calling The package'); "
    echo "EXCEPTION "
    echo " WHEN OTHERS THEN "
    echo " dbms_output.put_line('BIN_LOAD_ERROR' || SQLERRM); "
    echo " ROLLBACK;"
    echo "END;"
    echo "/" ) | sqlplus -s $USER/$PASSWORD@$SID
    Here $error_code is out paramter. All varaibles passed in process are declared with export command.
    When executing .sh it gives below error
    "sh ERROR at line 3: ORA-06550: line 3, column 99: PLS-00363: expression '' cannot be used as an assignment target ORA-06550: line 3, column 3: PL/SQL: Statement ignored".
    Please help to get rid from this error or please suggest how to call a oracle procedure with out paramter from unix shell script.
    Thanks in advance

    You can try this:
    From sql*plus
    SQL> ed
      1  create or replace procedure my_proc(p_id in int, p_result out int)
      2  as
      3  begin
      4  select 10 * p_id
      5  into p_result
      6  from dual;
      7* end my_proc;
    SQL> /
    Procedure created.
    SQL> set serveroutput on
    SQL> declare
      2  v_r int;
      3  begin
      4  my_proc(10,v_r);
      5  dbms_output.put_line(v_r);
      6  end;
      7  /
    100
    PL/SQL procedure successfully completed.
    from bash:
    testproc.sh:
    #!/bin/bash
    (echo 'set serveroutput on';
    echo 'declare';
    echo 'v_r int;';
    echo 'begin';
    echo 'my_proc(10,v_r);';
    echo 'dbms_output.put_line(v_r);'
    echo 'end;';
    echo '/';) | sqlplus -s u1/u1
    Console:
    oracle@mob-ubuntu:~$ chmod u+x testproc.sh
    oracle@mob-ubuntu:~$ ./testproc.sh
    100
    PL/SQL procedure successfully completed.With kind regards
    Krystian Zieja

  • Please HELP - Want to make a REPORT with CODE BAR

    Hello, I´m a portuguese developer guy and i want to put in a REPORT a CODE BAR! And the information to make that CODE BAR must be from the DATABASE! a simple COLLUMN of the DATABASE!
    Please HELP
    Pedro Lavado

    See: http://www.idautomation.com/sitemap/oracle_reports.html

  • Please help me with this procedure

    Hi guys. i am trying to create a procedure that inserts into the withdrawal table and then prints out the balance of the user. Again i have created a function called get_authority that checks if the user is authorized or not. i have been able to write the procedure but still get an error. please help me correct my mistake. thank u
    create or replace procedure do_withdrawal(
    p_cust_id in varchar2,
    p_acc_id in number,
    p_amount in number
    as
    v_cnr number(9);
    unauthorized Exception;
    begin
    select pk_seq.nextval into v_cnr from dual;
    insert into deposition(wit_id,cust_id,acc_id,amount,date_time ) values(v_cnr,p_cust_id,p_acc_id,p_amount,sysdate);
    commit;
    EXCEPTION
       when (get_authority = 0;) then
         Raise unauthorized,
       dbms_output.put_line('Unauthrorized User')
         else
            dbms_output.put_line('Dear Customer: Your balance is ')
    end;

    1002942 wrote:
    Hi guys. i am trying to create a procedure that inserts into the withdrawal table and then prints out the balance of the user. Again i have created a function called get_authority that checks if the user is authorized or not. i have been able to write the procedure but still get an error. please help me correct my mistake. thank u
    Just had a look on your procedure and modified your approach by assuming that you must be knowing what are going to achieve. Even your inputs look unclear and insufficient.
    -- Not tested
    create or replace procedure do_withdrawal(
    p_cust_id in varchar2,
    p_acc_id in number,
    p_amount in number
    is
    v_cnr number(9);   -- no need
    unauthorized Exception; -- no need
    begin
    --select pk_seq.nextval into v_cnr from dual;
    -- use seq directly
    if get_authority = 0 then
      raise_application_error(-20001, 'Unauthrorized User');
    else
      insert into deposition(wit_id,
           cust_id,
           acc_id,
           amount,
           date_time)
        values(pk_seq.nextval,
         p_cust_id,
         p_acc_id,
         p_amount,
         sysdate);
      commit;
      dbms_output.put_line('Dear Customer: Your balance is '||p_amount);
        end if; 
    exception
       when others then raise;  -- if you still want to catch some undefined error, then just raise it
    end;

  • Please help me to make my in app purchase!!

    I've made plenty of purchases from the app store and in app purchases. But suddenly it's telling me I need to contact iTunes support which I did. They still haven't gotten back with me!! My purchase is time sensitive(sale through tomorrow). Please help!!!

    I totally get that. But I was hoping desperately that another user had this error and had a solution to maybe something I was just doing incorrectly. But thanks anyway. I read so many other questions similar to mine. And they all said "have you contacted iTunes support" and was hoping for something more enlightened.  

  • Please help convert MSSQL Stored Procedure to Oracle PL/SQL

    Hi there to all,
    this be my first post to these forums. I have already posted this question on a microsoft msdn forum, until someone advised that I ask my question here - dunno why I didnt think of that! ?:|
    Im working with an Oracle 10g Database from an ASP.NET 2.0 application, and want to know if it Oracle supports OPENXML (rhetorical question I fear!). The reason I ask is because I want to create an Oracle Stored Procedure that will accept an XML string as an input parameter, prepare it, select from it, and then insert it into an Oracle table.
    I have done this successfully in SQL server using the following as an example:
    CREATE PROCEDURE [dbo].[Employee_INSERT]
    bq. @INSERTRECORD XML
    AS
    BEGIN
    bq. DECLARE @XDOC INT; \\ EXEC sp_xml_preparedocument @XDOC OUTPUT, @INSERTRECORD; \\ INSERT INTO [dbo].[REC_Employees] (
    bq. bq. [EMPTITLE], \\ [EMPFNAME], \\ [EMPLNAME], \\ [EMPDEPTID], \\ [EMPBEGINDATE], \\ [EMPACTIVE], \\ [EMPDATEADDED]
    bq. )
    bq. SELECT
    bq. bq. [EMPTITLE] = Title, \\ [EMPFNAME] = Firstname, \\ [EMPLNAME] = LastName, \\ [EMPDEPTID] = DepartmentID, \\ [EMPBEGINDATE] = StartDate, \\ [EMPACTIVE] = IsActive, \\ [EMPDATEADDED] = GETUTCDATE()
    bq. FROM
    bq. bq. OPENXML(@XDOC, '/EMPREC/Table', 2) \\ WITH (
    bq. bq. Title VARCHAR(10), \\ FirstName VARCHAR(50), \\ LastName VARCHAR(50), \\ DepartmentID INT, \\ StartDate DATETIME, \\ IsActive BIT
    bq. bq. );
    bq. EXEC sp_xml_removedocument @XDOC;
    END
    I would sincerely appreciate any help in this regard!
    PS - Please excuse the formatting!
    Much Thanks!
    regards
    shalan

    Assuming your table is named DESTINATION
    Name                                      Null?    Type
    TITLE                                              VARCHAR2(10)
    FIRSTNAME                                          VARCHAR2(50)
    LASTNAME                                           VARCHAR2(50)
    DEPARTMENT                                         NUMBER
    STARTDATE                                          DATE
    ISACTIVE                                           NUMBERYou can use a procedure like:
    create or replace
    procedure test (p_xml in xmltype)
    is
    begin
      insert into destination
      select title
           , firstname
           , lastname
           , department
           , to_date (startdate, 'yyyy-dd-mm hh24:mi:ss') startdate
           , isactive
        from (xmltable ('/EMPREC/Table' passing p_xml
                       columns title varchar2(5) path 'Title'
                             , firstname varchar2(10) path 'FirstName'
                             , lastname varchar2(10) path 'LastName'
                             , department number path 'Department'
                             , startdate varchar2(20) path 'StartDate'
                             , isactive number path 'IsActive'
                      ) temp
    end test;to create records in the table
    Removed a unnecessary SELECT FROM DUAL...
    Edited by: Alex Nuijten on Jan 19, 2009 2:24 PM

  • Please help : How to make the anomalistic table just like below?

    Hi all,
    How to make the anomalistic table just like below? Anyone can give the way detail or thoughtway ?
    http://61.132.17.188/webber/table.gif

    This is just a suggestion.
    If you put your "JTable" in a "JScrollPane", then you can add any "java.awt.Component" to the corner of the "JScrollPane" -- using the "setCorner()" method (of "JScrollPane").
    I would suggest making a custon "JPanel" and overriding its "paintComponent()" method to draw a diagonal line (and the required text) on it.
    You can find out more about how to do this from the links I provided in my first reply.
    Hope this helps.
    Good Luck,
    Avi.

  • Nokia C7 VS Nokia C6-01 please help me to make cho...

    what is the difference between Nokia c6-01 and Nokia c7..
    Nokia c6-01 has a clearclack toush screen 3.2 inch
    Nokia C7 has a AMOLED toush screen 3.7 inch
    Nokia C7 has a 8GB internal memmory
    Nokia C6-01 has a 350mb internal memmory
    then my questions are
    01 - what are the other differences ?
    02-  what is the best  camera that will take really good quality pictures and videos?
    03- what do you prefer nokia c7 or c6-01 ?

    1. None really, plus the C7 only has 3.5inch screen
    2. N8 hands down. The C7 and C6-01 has the same camera module.
    3. C6...C7 may have a bigger screen, but a 3.2 inch isnt so bad, and the C6 has clearblack.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Please help this newbie make a start with LabView 7

    Sorry for these very very basics but I failed to resolve these myself though I did my best.
    I try to make a GPIB i/o on a block diagram.How to ?
    I cannot find such in the functions menu.
    I find only a vi for typing direct commands ( which does work ).
    I tried many many variances, but end of all i get stuck, e.g. at : file>new>instrument i/o(gpib)>read and display>right click>controls>search>i/o....i get stuck.
    I am afraid I do miss a lot.....
    I have a NI GPIB PCI 488.2 card and some HPIB instuments.
    The PCI card and the NI 488.2 drivers work.
    I can read the instruments' dev.#.
    How should I implement instruments' r/w commands in an i/o block diagram ( if possible at all ).
    I cannot use VISA ( I
    assume C++ or VB is needed for that, which is beyond my capabilities ).
    Any help will be gratefully welcomed.
    Peter van Daalen.

    LabVIEW can do VISA and NI-488.2 directly; you don't need C++ or VB.
    First of all, you should see if there are instrument drivers available for your instruments. There are thousands of free drivers available on http://ni.com/idnet/. Search there first, because if you can find a driver for any of your instruments, it will save you a lot of time.
    If you can't find a driver, you will have to send and receive messages from the instrument directly, and this is where NI-VISA and NI-488.2 come in. The simplest way to get started with this direct communcation is to use the "Instrument I/O Assistant". This is in your "Functions->Input" palette, and you can read about it in the online help.
    The Instrument I/O Assistant will bring up a dialog to select th
    e device, send it a command and parse the results. Once you click "OK", it creates an Express VI on your diagram for you to incorporate into the rest of your application.
    I hope this helps you get started.
    Brian

  • Please, help me to make package

    Hi! I like qutIM, new ICQ and Jabber client. But AUR has old version 0.1-1 and new 0.1.99 version is avaiable. Problem is that core of program needs to compile separately from ICQ and Jabber modules in this new version. I don't know, how write this in script.
    Can anyone write PKGBUILD for me or explain, how to do it myself?
    http://qutim.org/forum/viewtopic.php?f=2&t=735 - instruction for manual installation of version 0.1.99, distro-independent.
    http://aur.archlinux.org/packages.php?ID=17708 - old package 0.1.1 in AUR.

    Your procedure and INTERVAL seems to be correct. You might want to change your NEXT_DATE
    from
    next_date => to_date('12-27-2012 04:30:00', 'MM-DD-YYYY HH24:MI:SS'),
    To
    next_date => to_date('12-27-2012 04:20:00', 'MM-DD-YYYY HH24:MI:SS'),

  • Please help, Unable to make a call using Skype

    On 10/19/12 I reactivated our Skype credit of $9.69 and received an email confirming that the credit was reactivated.  However, whenever we log on to Skype the Profile Completeness bar gets stuck at 50% and the Make A Call button is never displayed, even though our current credit is correctly displayed as $9.69.

    I have the same problem .....  This skype, without customer service truly is not worth
    the trouble.  I wish they would dispense with all the options and hire a few humans to
    perform customer service.  I have credit, changed my password and still just get propaganda
    of new services when I try to make a basic call.........Lovely huh!!
    elaine88208 wrote:
    I am having the same problem, there is no make a call button and I have no idea how to sort this out. I have reloaded Skype but to no avail.
    elaine88208 wrote:
    I am having the same problem, there is no make a call button and I have no idea how to sort this out. I have reloaded Skype but to no avail.

  • PLeAse HeLP!! Make spinning sphere in space with twinkling stars?

    I have a globe that I made in Anim8or and I want to make it spin with a sparkling stars background. Does anyone know how I can achieve this? Am I going to have to this with frames and stuff? I'm not very Flash savvy.I do most of my design stuff in photoshop and indesign and don't mess around with animated stuff. I think if someone explains it to me i can figure it out....

    Your best bet for getting someone to explain how to do something is to search Google for a tutorial.  Try using search terms like "Flash spin tutorial" or "Flash planet spin"

Maybe you are looking for

  • I'm having a hard time understanding the best way I should have my color settings, set. Can I get someone's help with this?

    I am scanning old photographs with an Epson V750 Pro and have a question on how my Photoshop should be set, or how the scanner should be set. I have Photoshop 7.0 and it works fine, but I have started scanning some old photographs with my new Epson V

  • FILE CONTENT CONVERSION/ VARIABLE SUBSTITUTION

    Hi Experts, I have a reciver file which should have HEADER field 1 field 2 DETAIL field 1 field 2 TRAILER field 1 field 2 My reciever structure is HEADER field 1 field 2 DETAIL field 1 field 2 TRAILER field 1 field 2 TEMP field 1 I am using TEMP fiel

  • Global Company Code

    Hi All, While we transfer documents for customer Master and vendor Master and bank Master through ALE then it requires for 'Global Company code' which I have to assign under Company code global parameters. Can anyone explain me for what reason this c

  • Mysterious repeated entries in System Log

    I just noticed this tonight, as DejaVu was performing the daily backup, but have never seen it before. In the System Log, beginning at 2:15 this afternoon and every minute thereafter is the entry: +May 11 20:49:22 mike-harrisons-power-mac-g4 launchd:

  • BAPI needed to create Settlement Order through IW52..

    HI All... Is there any BAPI available for creating Settlement Order/Credit Memo Request through IW52 Transaction..??? Regards Pavan