Oracle Back end job procedure and forms 10g

Hi friends,
I have to insert employee joining date into "B_join" Table from "Emp" table , with Flag of "IN" (inserted) after 10 Min the Flag has to be changed "VA"(validated), for this i have to create oracle job in the backend, before
1)shoud i need to create procedure which is inserting data into "B_join" table?
2)the same procedure i have to use it in the job procedure?
3) i have to show Message to the Manager in the forms as "Hello Sir tomorow is joning of emp1,emp2,emp3,,emp4.......( list extends as per empployee).
advice me
Thanks and Regards
VeeKay

Hi friends i have created this procedure
CREATE OR REPLACE PROCEDURE sms_insert1 is
CURSOR c_update
IS
SELECT *
FROM emp
WHERE TO_CHAR (dob, 'ddmm') = TO_CHAR (TRUNC (SYSDATE + 1), 'dmm');
r_update c_update%ROWTYPE;
m_emp_cpr NUMBER (9);
BEGIN
FOR r_update IN c_update
LOOP
INSERT INTO b_join VALUES ('10000001',
r_update.emp_name,
'EN',
r_update.emp_cpr_id);
EXIT WHEN c_update%NOTFOUND;
END LOOP;
commit;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
dbms_output.put_line ('NO employees joining is tommorow');
dbms_output.put_line ('NO employees joining is tommorow');
WHEN OTHERS
THEN
dbms_output.put_line ('recheck the employee details');
END;
I have to insert employee joining date into "B_join" Table from "Emp" table , with Flag of "IN" (inserted) after 10 Min the Flag has to be changed "VA"(validated), for this i have to create oracle job in the backend.
I have run Scheduled Job
BEGIN
Dbms_Scheduler.create_job(
     job_name     => 'DEMO_INSERT_NEW'
     ,job_type     => 'STORED_PROCEDURE'
     ,job_action     => 'SMS_INSERT'
     ,start_date     => SYSDATE
     ,repeat_interval => 'FREQ=MINUTELY'
     ,enabled     => TRUE
     ,comments     => 'JOINING DETAILS INSERT.');
END;
LATER I HAVE RUN THIS PROCEDURE ALSO
SQL> EXEC DBMS_LOCK.SLEEP (10)
data is not inserted in to the table
and how do i change the flag "IN" to "VA" in the table?
shall put the procedure in DB Trigger?

Similar Messages

  • Backing up Jobs, Chains and Programs in Oracle Job Scheduler

    What is the best way to back up Jobs, Chains and Programs created in the Oracle Job Scheduler via Enterprise Manager - and also the best way to get them from one database to another. I am creating quite a long chain which executes many programs in our test database and wish to back everything up along the way. I will also then need to migrate to the production database.
    Thanks for any advice,
    Susan

    Hi Susan,
    Unfortunately there are not too many options.
    To backup a job you can use dbms_scheduler.copy_job. I believe EM has a button called "create like" for jobs and programs but I am not sure about chains and this can be used to create backups as well.
    A more general purpose solution which should also cover chains is to do a schema-level export using expdp i.e. a dump of an entire schema.
    e.g.
    SQL> create directory dumpdir as '/tmp';
    SQL> grant all on directory dumpdir to public;
    # expdp scott/tiger DUMPFILE=scott_backup.dmp directory=dumpdir
    You can then import into a SQL text file e.g.
    # impdp scott/tiger DIRECTORY=dumpdir DUMPFILE=scott_backup SQLFILE=scott_backup.out
    or import into another database (and even another schema) e.g.
    # impdp scott/tiger DIRECTORY=dumpdir DUMPFILE=scott_backup
    Hope this helps,
    Ravi.

  • Differences between Forms 6i and Forms 10g

    Forms 6i and Forms 10g
    What are the differences between Forms 6i and Forms 10g
    What are the differences between Reports 6i and Reports 10g
    Regards,
    Arjun

    differences b/w forms6i , forms9i and forms10g

  • Batch procedure in Forms 10g, calling rdf and send by mail

    Hi all,
    I need your advice regarding my task: i have a table with invoices of some clients. I have created a report in Oracle Reports 10g R2, so to have a pdf with all the data from this table.
    I have created a form in Forms 10g R2, displaying in a screen one field, where the user can choose the date of invoice. Then i will query by that date all my invoices in that table, and then i want to create a procedure in Forms, so that for every line in that table with the invoice date just chosen i will run HOST(rwrun ... all my parameters).
    My questions:
    1. I need to read some more about how to create a custom xml so to pass to my rwrun, and depending on the records fetched in my cursors in Forms 10g, i will pass a xml variable to my reports, so i will get the data from Forms 10g in the report created in Oracle Reports 10g. Is there any way that i can grep the errors? I need to create some insertions based on succes on failure, how can i accomplish this?
    2. Is the above described scenario way to complicated to loop throuh a cursor, create a pdf, and mail the pdf until the cursor is totally fetched? Do you recommend me a simpler way to accomplish this task?
    Thank you so much,
    Michael.

    Hello,
    I have a report with all my clients, with their email addresses in the same report. Each client as unique account number or invoice number.
    So i want to burst and distribute each invoice to the corresponding client:
    1. I have set REPEAT ON: INVOICE in oracle reports.
    2. From Oracle Reports, i click on Distribution list, and in the DESNAME i type email_address (which is the column from the table with the invoices).
    3. Then, File >> Distribute. Says: distribution completed succesfully, but nothing happens.
    Question:
    1. Where am i mistaking?
    2. Is there any log activity file that i could see what the application is doing, step by step?
    Thank you,
    Michael

  • Webutil and Forms 10g

    Hi,
    I'm currently converting a forms 6.0 application to forms 10g. My application has the file upload and download functionality. I researched the webutil 9i beta version, but my infrastructure team would not allow this to be installed in the 10g app server production environment because it's not supported.
    I looked into the OC4J fileupload and filedownload javabean that comes with the oracle 10g iDS installation. Is webutil built on these javabeans?
    What are other alternatives I could use that I don't know about? Please help.
    Last question, when will webutil released to production? I desparately need this utility since I don't know too much about JavaBean coding and tie to forms.
    Thanks,
    Jennifer

    Hi,
    the problem is that Forms Developer tries to acces steh bean, which requires ojsputil.jar to be set in the Forms90_Builder_Classpath. However, even then it wont work because the oracle.jsp.webutil.fileaccess class doesn't implement the IView interface or extends teh VBean class. You could use it with the FBean package which works with Beans that don't implement the Forms interfaces. However, the oracle.jsp.webutil.fileaccess class seems to be a JSP class which doesn't work at all in Forms.
    The best way to approach bean development for Forms is to read this whitepaper
    http://otn.oracle.com/products/forms/pdf/forms_in_java_world.pdf
    and then install the Forms 10g demos and look at the source code. We do our best to comment the demo source so that you know what the code does.
    Frank

  • Table creation in Oracle back end

    Hi Gurus,
    Can we create a oracle table in SAP schema directly from back-end and update it by taking snapshot from other oracle system.
    I know its not a recommended solution and DB link / DBCon would be better solution but the problem is other oracle system is not ready to give us access/userID to connect to it using DBlink.
    Can we access the table create above using native SQL statement or can we create a synonym to a ztable created using se11.
    Thanks in advanced.
    Sumit

    Hi Bill,
         Thanks for the reply. Please check below.
    My DTData.txt:
    My Agentry.ini file:
    My File back end log file:
    --In editor I added a new system connection with "File Back end", created new data table with this system connection and created DTData.txt as file name.
    --Created "Tables" folder in ServerDev root directory and placed DTData.txt file in this folder and entered the above 1st screen shot text.
    --In my ATE i couldn't see this filedatatable.
    Thanks,
    Swaroopa.

  • Solaris notebook with db, ias and forms 10g in a browser

    our customer has solaris notebooks.
    He wants to run a oracle 9i oder 10g -> no problem.
    He wants to run an IAS or Oracle AS on the notebook -> no problem.
    And then he wants to use a browser, in which he shows the running form -> what solution do we have ?
    JInitiator for solaris isn't available, as I know.
    Mozilla/Firefox under Solaris has problems with native Java from an IAS, as I know...
    is there a solution for this customer? It's not possible to go away from solaris.

    IE 7 isn't certified against Forms 10g
    is it important for you to use version 7 ?

  • Oracle EBS 12.1.3 and SOA 10g hardware sizing

    Hi All,
    To give you the background, we have integration requirements where in one of the interface about 20000 sales orders come in the system everyday and they have about 3-5 lines per sales order. Most of these orders come between 3-6 PM. We have 50 other interfaces along with this but this is a major one. Client is concerned about performance and so we have to give right design and right hardware sizing so that the system is able to handle all the load without causing performance issues. We are planing to use Oracle EBS 12.1.3 and SOA Suite 10.1.3.5 (10g)
    Any processes, documentation on how to go about hardware sizing, tools will be helpful
    Thanks,
    Rahul

    Any Updates??

  • Back ground Job Creation  and maintanance ?

    Gurus
    I have a report, which will take more than the normal 10 min time.
    ISo i have to run it in the back ground session.
    Please let me know how to create a back grund job and maintain and process it?
    Also please tell me the Tcodes associated with this process.
    Thanks a lot.. Points will be awarded....of course...
    Meenakshi.N

    On the report screen, press F9 (or program -> execute in background). Give the printer name and to send to spooler or print immediately option in the initial screen. Press OK.
    Then, give the start time (options will appear) and click on "Save" button.
    Now, to see the status of the job, go to SM37.and execute by your username. Here you can see the job status, spool etc.
    Let me know if you have any questions.

  • Way of customizing oracle forums without custom.pll and form personalizatio

    HI,
    I know that form customization is done thru custom.pll and form personalization.what about customization of events which are not found in custom.pll.how can we take care of those events.

    You will have to modify the specific trigger inside the original fmb, and with every patch, redo your changes again. But i don't think thats supported by oracle (maybe you get a more detailed answer in the eBusiness-forums OA Framework )

  • Recognizing Forms 6i and Forms 10g

    Hi,
    I have a folder which has a mix of forms from 6i and some from 10g (which was migrated). But since all these are in the same folder, is there any way I can know before even opening the form whether its a 6i form or 10g. I dont want to open any 6i form in the 10g version cause some of them are not supposed to be migrated. Please let me know how to open my forms cause I dont know which form is which version.
    Thanks.

    And don't ever open a form from the 6i folder with Forms 10g. Next thing you know, you will save the form from the Forms Builder, and that will render it impossible to open from 6i.
    Since I still develop in 6i, I make all my changes there, and save the form. Then if I want to see it run in 10g, I have a Windows DOS .bat command file that copies the fmb to the Forms 10g folder, then calls the 10g compiler. I rarely even open the Forms 10g Builder.

  • SSO and Form 10g, Setting RAD of OID for DB users identified externally

    Please Help!
    Current environment:
    - All users were created with identified externally in Database (OPS$)
    - SSO was setup correctly according to OID admin guide Ch 43 and SSO admin guide ch 8 for App10g. (user login orasso without seeing basic auth/sso login form)
    - DB parameters:
    remote_os_authent=TRUE
    os_authent_prefix=' '
    issues:
    - set ssoDynamicResourceCreate = true
    When user hit the form link, i.e. http://host:port/forms90/f90servlet?config=test&form=appwelcome
    it redirects to http://host:7777/oiddas/ui/oracle/ldap/das/mypage/AppCreateResourceInfo?...
    where it shows Resource Name TEST and prompts username/password/database
    when user inputs window logon /password/database value (same as in form6i)
    it returns ORA-01017: invalid username/password; logon denied.
    - set ssoDynamicResourceCreate = false
    manually set RAD for the end user (I am not sure if I am doing this correctly):
    Name = test
    TYPE = oracledb
    username = (blank)
    password = (blank)
    datebase = prod
    When enduser hits the form link, it returns ORA-01017.... same errors.
    Any ideas how to trouble shoot and configure RAD for users with OPS$ auth?
    thank you in advance!
    Kan

    Thank you for your input!
    This is how our current production is setup that users use os authent (OPS$) to access forms/reports 6i. I'm just trying to migrate it to app10g environment.
    I did configure SSO with WNA, it works fine. Any users can access NON-DB connected forms/reports. Only when forms/reports require DB conn, users who
    have db password can access them with one click. But users identified externally will keep seeing Oracle Logon and Ora-01017 after authent into MidTier.
    Setup RAI with one real db user account is not ideal since there are 1000+ OS authent users who have different database roles. Turn off the OPS$ and setup dummy password for 1000+ users may be the last solution.
    v/r
    Kan

  • Forms 6i and Forms 10g

    Hi, I have hundreds of forms. Most of them are in 6i and few of them have been changed to 10g. Now when I look at a form from my windows explorer, is there any way to know which version this form is being used in. For eg. I have a test.fmb and I can see it in my C drive in windows explorer. But by looking at the fmb, I dont come to know if its in 6i version or already been converted to 10g. I need to know this so that by mistake I dont open a 6i version to 10g. Cause once I open it in 10g, I wont be able to open it back in 6i and it will be a problem in case I dont hv the old original saved.
    Pls advise?? Thanks.

    Hi ,
    I don't think that you can do that in the way you want.....
    However , you can use the forms compiler of 6i and try to compile each form.....
    If a form has been compiled in 6i the it'll be compiled again... otherwise it won't..and by noticing the error log files created you can distinguish these files.... !!!!!
    Regards,
    Simon

  • Oracle 8.1.6.Server and Forms 6i. What Install First?

    Hi everybody,
    I going to install Forms/Reports 6i on my home machine that
    already running Oracle 8.1.6. Entreprise under Windows 2000.
    Both products must NOT be located under 1 Oracle Home directory,
    but important what do I have to install first. From one hand,
    my friend has a positive experience installing Forms AFTER
    Personal Oracle 8i ver.1 (i.e. 8.1.5) to separate Oracle Home
    directory. From other hand - that solution didn't work for him
    in case of Oracle 8.1.6. Information provided by Oracle itself
    about this is also very controversial.
    I do appreciate your advise in this matter.

    First you install the engine then the developer , the operation is very staright forward and you should have no problems encountered at all according to information given.

  • Oracle developer 4.5 (reports and forms ) upgrade

    is there any one have a patchset to update developer suite 4.5?

    is there any one have a patchset to update developer suite 4.5? What version are you wanting to upgrade too or are you just looking for the "latest" patchset for Forms 4.5?
    If you are looking for a patch that will upgrade your Forms 4.5 to the latest version of Forms, there isn't one. You just install the latest version of Forms and you migrate your Forms 4.5 forms to this version using the Forms Migration utility.
    If you are looking for the latest patchset for Forms 4.5, then you will need a support contract with Oracle Support in order to obtain product patchsets. However, I am pretty sure patchsets for Forms 4.5 are no longer available even if you have a support contract. Forms 4.5 is very old!
    Craig...

Maybe you are looking for

  • Windows cannot be installed to this disk 0. The selected disk has an MBR partition table. On EFI system, Windows can only be installed on GPT disks

    Hi All, I have been trying real hard to install Windows 8 on my Macbook Pro early 2011 model. I followed the instruction given by Bootcamp word to word, all things went very smoothly untill I was asked Windows Setup Instaled to selct the Hard drive.

  • Contact shows unknown phone number when SMSing

    iPhone 4s IOS 6.1 I create an SMS using Messages I type in the contact name, in this case 'David' Various 'David's pop up but 3 phone numbers show for the David in question. 1. Home 2. iPhone 3. Unknown However, when I go to the Contact using 'Contac

  • Essbase 9.3.3 - data export files

    Hi I know when creating exports in Essbase when a file reaches 2gb Essbase will automatically generate a new file of the same and append the extension _1 to the name. I'm trying to find out if there is a way to control where the split happens. At the

  • I give up..... FDS 2.0.1 installer/patch file.

    Arg, i can't get hold of our Corporate Account holder right now, and i need to get a specific patch of FDS. I've called in through the standard technical support line at 1800-642-3623, but they told me that the download was no longer available, and t

  • Contacts are all messed up

    First switching contacts from my Torch 9800 to my Z10 was a nightmare. Now some seem to be on my phone and some on my sim card and when I try and transfer them it says some cannot be transfered. My big question is why are my contacts tied to an email