My procedure is not load data in the specified table

Hi friends,
I get the data in a table and try to insert into a temporary table...
now when I run the following procedure, it is not copying the elements of the table in the table of tepm...
I can only copy the sequence and "NP' I've hard coded...

----------------------------
create or replace package body is asg_change
procedure p1 (p_err_buf out VARCHAR2
some p_ret_code number)
is
v_asg_no varchar2 (30);
v_per_id number (30);
date of v_eff_st_dt;
date of v_eff_end_dt;
v_org_name varchar2 (100);
v_err_mesg varchar2 (1000);

cursor c1 is
(SELECT paaf.assignment_number, paaf.person_id
paaf.effective_start_date
paaf.effective_end_date
hr_general.decode_organization (paaf.organization_id)
OrganizationName
in v_asg_no, v_per_id, v_eff_st_dt, v_eff_end_dt, v_org_name
BY the ADP per_all_assignments_f
WHERE THERE ARE
(SELECT 1
OF per_all_assignments_f paafi
WHERE the NVL (paafi.organization_id, 0)! =
NVL (paaf.organization_id, 0)
AND BETWEEN paafi.effective_start_date (paaf.effective_start_date - 1).
AND paafi.effective_end_date
AND paafi.assignment_id = paaf.assignment_id)
);
Start
for rec loop c1
insert into org_change values(xxkdd_asg_seq.nextval,'NP',v_org_name,v_eff_st_dt,v_per_id,v_asg_no);
end loop;
EXCEPTION
WHILE OTHERS THEN
v_err_mesg: = v_err_mesg |' | ' || 'Error, go look for the details of the assignment' | TO_CHAR (SQLCODE) | » -'|| SQLERRM;
end;
end;
---------------------------------------------------
It's the temporary table, I created

create table org_change (sl_no number (10), status varchar2 (100), nom_org)
VARCHAR2 (100), the date of FFECTIVE_START_DATE, person_id number (10), assignment_number varchar2 (30))
---------------------------------------------------
This is the insert statement

insert into org_change values(xxkdd_asg_seq.nextval,'NP',v_org_name,v_eff_st_dt,v_per_id,v_asg_no);

am I right giving it pls let me know

There are 609 selected lines and am able to see 609 temporary table rows of data in the columns of the third column

Thank you

Published by: 776317 on April 11, 2011 16:13

Published by: 776317 on April 11, 2011 16:14

I suggest you to go through this link on how to write the pl/sql block.

http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/TOC.htm

http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14261/sqloperations.htm#sthref1273

For your question it could be rewritten as follows:

create or replace package body asg_change
is
  procedure p1...
  is
  ....
  begin
  ....
   insert into org_change
  (
    sl_no, status, org_name, effective_start_date, person_id, assignment_number
  )
  SELECT xxkdd_asg_seq.nextval, 'NP' status, hr_general.decode_organization (paaf.organization_id) organization_name, paaf.effective_start_date, paaf.person_id, paaf.assignment_number
  FROM per_all_assignments_f paaf
  WHERE EXISTS
  (
     SELECT 1 FROM per_all_assignments_f paafi
     WHERE NVL (paafi.organization_id, 0) != NVL (paaf.organization_id, 0)
         AND (paaf.effective_start_date- 1) BETWEEN paafi.effective_start_date AND paafi.effective_end_date
         AND paafi.assignment_id = paaf.assignment_id
  ) ;
 end p1
end asg_change;

Also check this post.

http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:47458244605081

Key excerpts from the post above

Tom-- I subscribe to your SQL mantra for data (and truly, is there anything else? :))
which is:

1. Do it in a single SQL statement if at all possible.
2. If you cannot, then do it in PL/SQL (as little PL/SQL as possible!).
3. If you cannot do it in PL/SQL, try a Java Stored Procedure
(extremely rarely necessary with Oracle9i and above.)
4. If you cannot do it in Java, do it in a C external procedure.
(when raw speed, or 3rd party API written in C is needed.)
5. If you cannot do it in a C external routine, you might want to seriously think
about why it is you need to do it...

I hope this helps.

Concerning

REDA

Tags: Database

Similar Questions

  • Data Synchronizer do not load data into the target application

    Hi all

    I am facing problem when I try to synchronize data between two applications EPMA (BSO). When I set the synchronization initiates the process and it gives the status as "xxxx" none of the documents sent to the destination server. But after that, the process hangs at 50% and no data is filled to the destination application. Please help me solve this problem.

    I have also added a new dimension in the application target and it was mapped to a default member.

    Concerning
    Vikas

    You can skip the first line in the rule of load settings - http://docs.oracle.com/cd/E17236_01/epm.1112/eas_help/dbflprhe.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Do not get data in the target after the beginning of the session.

    Hello

    I applied the filter. source and target table are Oracle database tables. Source have data. Target of no data. I chose insert, update, commit as true in the properties of the target. Eventhough

    After the execution, I do not receive data in the tables of the target. Please check below the images.

    Thanks in advance,

    A.Kavya.

    err1.png

    192.168.0.png

    err2.png

    Hello

    Screen capture, I see you used LKM as well. Then, probably, you can start by consulting the table loading step $ CAN to see how many rows were loaded into C$ source table.

    If you have data in C$ then next step would be to check the data loaded in I$ table. I can see screenshots that you set the false Frother so that your data can not go to E$. PS please check where your data falls to C$ I $ loading.

    You can restart the interface and you can set the property 'drop of temporary objects' false so that C$ I $ table not deleted and are there for analysis.

    It will be useful.

    Thank you

    Ajay

  • Loading data into the env DWH

    Hello

    We have an obligation to delete and load once a week: 20 million records. Some bitmap indexes are available on the table.

    Please suggest me which option I should consider to load the data effectively.

    (1) drop index dynamically, load data and re-create indexes gather table / index stats after that load data.

    (2) set the unusable index and rebuild, gathering statistics for table / index after loading data. (reference https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:2680568300346966968 ).

    If I choose option 2 is required to run command below during the loading process?

    alter session set skip_unusable_indexes=true;

    Thank you very much in advance for your help.

    -Suri

    A small question - since we are to transfer data in the main table that is the need to build on the work table index?

    Indexes on the partitioned table, the non-partitioned table must be compatible.

    I've never found useful to mark as unusable bitmap indexes need to be rebuilt anyway. Each bitmap index entry has bits for SEVERAL lines. And setting a bit in an entry means that the ILO should be DISABLED in all other entries.

    So it does not make much sense to try to use an unusable bitmap index and try to update to make it current.

    We did not score on the main table. Can I still use the technique of swap partition to load the data.  (Sorry for asking questions without trying, I'll try tomorrow)

    One of the tables must be partitioned. Given that the main table is NOT partitioned, then you partition the work table. The only working table has a partition segment. This segment is swapped with a stretch of the non-partitioned table.

    On the other hand note which option is recommended to load the data when we have no license to use partition.

    Delete the index and rebuild them. Like I said more high index bitmap needs to be rebuilt anyway.

  • How to load data into the App MVDEMO schema example

    Hi all

    I'm a POC on Oracle Mapviewer and try to build some reports in OBIEE using MApviewer.

    This POC, I use Oracle MVDEMO example Data (11g). I think that these sample data covers few countries like the USA.

    I need to make PDS for the Brazil, I downloaded data from the map of the site as Shapefiles Brazil

    http://GADM.org/country

    in these data of the Brazil, I got from .csv files 4 extensions, .dbf, .shp and SHX

    I need to know how can I load these files into my Oracle 11 g DB? Should I load data into the same pattern of mvdemo, if yes then which table?

    Any help will be appreciated a lot.

    Thank you

    Amit

    Use the Java shapefile Converter utility (http://www.oracle.com/technetwork/database/options/spatialandgraph/downloads/index-093371.html)

    GDAL (gdal.org) FME (Safe) or or MapBuilder.

    Specify the to SRID (i.e. the SRID for loading in Oracle geoms) 4326 or 8307.

    Load into a new table named anything you want. for example brazil_gadm with the geometry named GEOMETRY column

    Once it's loaded, verify that there is an entry for the table and column (BRAZIL_GADM, GEOMETRY) in user_sdo_geom_metadata

    Create a space on brazil_gadm.geometry index if the tool has not created a.

    Add the definitions of topic for the country, State or whatever the admin areas exist in the dataset.

    Import them as layers in OBIEE.

  • ODI can load data into the planning and REPLACE the existing data?

    Hello
    ODI (9.3.1.1) can load data into the planning and REPLACE the existing data?
    Currently of our ODI by "ADD" load to existing data data - so that is I accidentally run the load twice, it would be double planning numbers. I don't know how to do it to REPLACE so that running more than twice has no effect.

    With the help of the essbase adapter you would use a rule of load, in the State of charge, you can set whether to replace or add to existing values. It is not difficult to pass.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • VI do not transfer data from the instrument.

    Hello to all who are interested.  I'm working on an instrument driver for an Agilent D3000A generator of signal (E4432A) trying to get the generator to sweep the amplitude of - 30dBm to-75dBm and then come back in a loop.  The loop is in a structure of the event and is called by a switch on the front panel.  When the switch is selected event triggers and loop information is passed to the VI.  The problem is the 'Sweeping Steps' VI does not use data from the number of points in the sweep and pause at each time and the tracks of the loop as the amplitude is just switching between the min and Max amplitude levels.  But once I have stop the generator program will continue sweeping (only in a sense) but the correct time and the number of points.  When I use the spy "measurement and Automation Explorer" program AND I do not see that the data are transferred in the instrument.  I don't know if the Subvi the execution order is correct and was amazing if someone could take a look and let me know if I have them in one order incorrectly.  Could not find an example of this type of program examples of the driver so there is little help.  I joined the program and the driver of instruments for your comment, then please take a look and send any information you think will help me to get this working properly.  I have also tried to run the single sweep mode sweep and have just the change of direction for the sweep to the other side of the ramp, but I still get the same results.

    The generator has 15th and ONU3 options.

    I, m using LabVIEW 2010 on a Dell Dimension 2400 running Windows XP and service pack Version 5.1.2600 Service Pack 3 Build 2600.
    Please let me know if you need other information.

    Thank you

    Just for the short term, right click on the structure of the event, select Configure the events managed by this case and uncheck the lock front panel.  Also, I don't know if you caught my edit.  I think your problem is your expectation (or lack of).  At your expectations to be slightly more than the number of steps to multiply by the pause time.  You must leave the instrument perform its scanning after all.

  • The user interface of logon C:\windwos\system32\msgina.dll DLL could not load or restart the original DLL. Restart

    I created a ghost of a 32-bit 2003 server image and tried to restore the image on the same server of model\type. I got an error message with the following.

    The user interface of logon C:\windwos\system32\msgina.dll DLL could not load or restart the original DLL. Turn it back on.

    Tried to fix the server with the operating system and can not find the disk driver. I found the driver load it on a floppy disk, f6 entry, insert the diskette. I have a message with the following text.

    Type EXIT to exit the consul of recovery and restart the computer.

    1 C:\Windows

    which windows installation would you like to log on

    (to cancel, press enter)?

    Hi MichelZelensky,

    The question you posted would be better suited in the Windows Server Forums. I would recommend posting your query in the TechNet Forums (Windows Server).

    TechNet Forum

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    I hope this helps.

  • When I try to start my computer, it does not load anything. The backlog, but the rest of it runs bad and slow. I can't open any programs that either, and my pointer always told it to load.

    Original title: Please HELP

    When I try to start my computer, it does not load anything. The backlog, but the rest of it runs bad and slow. I can't open any programs that either, and my pointer always told it to load. Safe mode works, but I just don't know what to do. Help, please

    Hello

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Since it works fine in safe mode, I suggest you to try to perform the clean boot to safe mode and check if it helps:
    http://support.Microsoft.com/kb/929135

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the above article.

    Method 2:
    Also, try to run the safe mode System File Checker and check if it helps:
    http://support.Microsoft.com/kb/929833

    Method 3:

    Be sure to run a full scan with your antivirus software.

    http://www.Microsoft.com/security/default.aspx

    It will be useful.

  • "I get this started" error loading winera32.rom the specified module is not found.

    When windows starts, this message appears "error when loading winera32.rom the specified module is not found". the rest of the windows works fine.

    It's a malware. It has been removed from your AntiVirus Scanner and registry entries are always present to start the malicious program at startup.

    Start regedit.exe and search (F3 or CTRL + F) for winera32.romand remove all the entries that you find.

    For more safety, perform a complete equipped with scanning AntiVirus as well as Microsoft Security Essentials scan your PC with Malwarebytes' Anti-Malware.

    André "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • execution of DLLs. Error loading cbbxw.dll. the specified module could not be found. -what it means and how do I get rid of him?

    execution of DLLs. Error loading cbbxw.dll. the specified module could not be found. -what it means and how do I get rid of him?

    You could have, or still are, infected by malware; and it could also be a starting top left him entry.

    Malware scan:

    http://www.Malwarebytes.org/MBAM.php

    Malwarebytes is as its name suggests, a Malware Remover!

    Download the free Version from the link above.

    Download, install, upgrade and scan once a fortnight...

     

    How to use Malwarebytes once it is installed and updated:

    1. open Malwarebytes > click the update tab at the top > get the latest updates.

    2. on the Scanner tab, make sure that thePerform full scan option is selected and then click on theScan button to start scanning your computer

    3 MBAM will now start to scan your computer for malware. This process can take some time.

    4. when the scan is complete, a message box will appear

    5. you must click on the OK button to close the message box and continue the process of Malwareremoval.

    6. you will now be at the main scanner screen. At this point, you must click on the button toview the result .

    7. a screen showing all of the malware displayed the program that is

    8. you must now click remove selection button to remove all the listed malware. MBAM will now delete all of the files and registry keys and add them to the programs quarantine. When you remove files, MBAM may require a restart in order to eliminate some of them. If it displays a message stating that it needs to restart, please let him do. Once your computer has rebooted, and logged in, please continue with the remaining steps.

    9. when MBAM has finished remove the malware, it will open the scan log and display it in Notepad. See the log as desired, and then close the Notepad window.

    10. you can now exit the MBAM program.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the error persists after scanning, use the program to out startup:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    This utility, which has a knowledge of auto-starting locations of any startup monitor, shows you what programs configured to run at system startup or login and that the entries in the order of processing windows. These programs include those in your startup folder, Run, RunOnce, and other registry keys. You can configureAutoruns to show other locations, including Explorer shell, toolbar extensions, helper objects to the browser, Winlogon notifications, auto and many start-up services even more. Autoruns goes way beyond the MSConfig utility bundled with Windows Me and XP.

    See you soon.

    Mick Murphy - Microsoft partner

  • Issue while loading data using the file Rules Essbase

    Hi all

    I am facing problem while loading data using the Rules file. In the rules file, I rejected several members in two areas (two dimensions). Now if I load the data using the rules file I'm getting errors for all members in the dataload.err file. If I reject mutiple members of a single field, the data load without settling errors in the dataload.err file.

    I want to know how rmany members of several fields of ejection for loading data using the file Rules Essbase? Is it possible?

    Okay, okay... I think that you must assign Global Select / reject Boolean in the parameters of loading data as 'Or':

  • The lateset, 2015.5 edition, does not transfer data from the metadata, only the focal length objective. Disappointment when you want to know what that lens you used. (It allows to rename the files but after you create a second copy. "It's an improvement.)

    The last edition, 2015.5, does not transfer data from the metadata, only the focal length objective. Disappointment when you want to know what that lens you used. (It allows to rename the files but after you create a second copy. "It's an improvement.)

    Yes, copied files from Nikon NEF, DNG.

  • SQL * Loader: load data in the format MM/DD/YYYY HH: mi: SS PM

    Please advice how to load data in the format MM/DD/YYYY HH: mi: SS PM in an Oracle Table using SQL * Loader.

    -Should what format I give in the control file?
    -What would be the type of column to create the table to load data.

    Examples of data below;

    MM/DD/YYYY HH: MI: SS PM

    14:40:20 09/12/2012
    29/11/2011 11:23:12

    Thanks in advance
    Avinash

    Astr0 wrote:
    Hello Srini,

    I tried with the date of creation as DATE data type, but I had an error like

    ORA-01830: date format picture ends before converting entire input string
    CREATION_DATE               "TO_CHAR(TO_DATE(:CREATION_DATE,'MM/DD/YYYY HH:MI:SS AM'),'DD-MON-YYYY HH:MI:SS AM')",
    

    Try

    CREATION_DATE "to_Date(:CREATION_DATE,'yyyy-mm-dd hh:mi:ss AM')",
    

    Does that help? It is charging correctly in the timestamp column

    REDA

  • USCIS immigration form not load even if the latest version of adobe - use chrome

    USCIS immigration form does not load even if the latest version of adobe - use chrome

    Hi Navalaw,

    Please try to access the form of another browser and check.

    You can refer to the KB Doc: http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html

    Chrome plugin issues, you might want to check out: https://support.google.com/chrome/answer/142056?hl=en

Maybe you are looking for

  • Error PXE 3000 N100, does not start BIOS

    Hello people, I recently picked up some laptop second hand and projects for free time and learn a little more. One of them is a Lenovo 3000 N100. I'm not sure of the exact model as the COA sticker is worn. The laptop came without RAM, a hard drive or

  • A challenge? I want to install Windows 2000/XP on a PC of 2013

    Hey! I want to experiment so I am interested in the installation of Windows 2000 or XP (preferably 2000) on an Acer PC to 2013. All I want to do about this is to use internet, sound, print and play video games in the 1990s. (Let's ignore the judgment

  • You want to remove the icon "launch" high in the center of my office.

    I have this horrible launch icon that looks like a symbol of game on my desktop. When you place the cursor over them, the icons appear more 'security', 'mail' etc. It's a pain and I can't remove it. any ideas?

  • Update Windows of W7 non-fonctionnel and greedy

    In recent months, my PC W7HP + SP1 was slow and I finally found that svchost.exe (netsvcs) used nearly 50% of the CPU for a few minutes after starting. I just find it ends if I stop Windows Update from running in Services. While this may help some, I

  • Unable to launch Firefox

    Original title: Firefox does not illuminate when I click on Ontario it my firefox does not come on whn I click were it can how to solve this problem