How to use my bellows PL/SQL PROCEDURE to export data to a directory with a button in the ADF?

Mr President.

Any body give me advice step by step that how can I use my pl/sql below procedure to take the small schema oracle backup with a touch of the adf.

DECLARE  
   h1   NUMBER;  
   dt   VARCHAR2 (20);  
   myschema VARCHAR2(32):='SCOTT';  
BEGIN  
   SELECT TO_CHAR (SYSDATE, 'YYYYMMDD')  
     INTO dt  
     FROM DUAL;  
  
  
   h1 :=  
      DBMS_DATAPUMP.OPEN (operation      => 'EXPORT',  
                          job_mode       => 'SCHEMA',  
                          job_name       => myschema||'_EXP_' || dt,  
                          VERSION        => 'COMPATIBLE'  
                         );  
   DBMS_DATAPUMP.set_parallel (handle => h1, DEGREE => 1);  
   DBMS_DATAPUMP.add_file (handle         => h1,  
                           filename       => myschema||'_EXP.LOG',  
                           DIRECTORY      => 'ADMIN_DIR',  
                           filetype       => 3  
                          );  
   DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                NAME        => 'KEEP_MASTER',  
                                VALUE       => 0  
                               );  
   DBMS_DATAPUMP.metadata_filter (handle      => h1,  
                                  NAME        => myschema||'_EXPR',  
                                  VALUE       => 'IN('''||myschema||''')'  
                                 );  
   DBMS_DATAPUMP.add_file (handle         => h1,  
                           filename       => myschema||'_EXP_' || dt || '.DMP',  
                           DIRECTORY      => 'DATA_PUMP_DIR',  
                           filetype       => 1  
                          );  
   DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                NAME        => 'INCLUDE_METADATA',  
                                VALUE       => 1  
                               );  
   DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                NAME        => 'DATA_ACCESS_METHOD',  
                                VALUE       => 'AUTOMATIC'  
                               );  
   DBMS_DATAPUMP.set_parameter (handle      => h1,  
                                NAME        => 'ESTIMATE',  
                                VALUE       => 'BLOCKS'  
                               );  
   DBMS_DATAPUMP.start_job (handle => h1, skip_current => 0, abort_step => 0);  
   DBMS_DATAPUMP.detach (handle => h1);  
END;  
/  


Concerning

Hello world!

It's the simple code to call an appModule procedure

    public void callStoreprocedureWithoutInput() {
            String stmt = "BEGIN\n" +
            "  \"dbBackup\"();\n" +
            "--rollback; \n" +
            "END;";
            PreparedStatement st = null;
            try {
                st = getDBTransaction().createPreparedStatement(stmt, 0);
                st.executeUpdate();
                st.close();

            } catch (Exception e) {
                e.printStackTrace();
            }
        }

Concerning

Tags: Java

Similar Questions

  • How to use transfer windows for xp to xp. When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    How to use transfer windows for xp to xp.  When I plug usb computers are delivered to the top with the same screen and when I try to use the transfer to the new computer, it just said information gathering and sits for hours

    Hello, welcome.

    The process is automatic and the maximum transfer rate should be about 20 GB/HR. If the process crashes during that long of a time, it's probably because of something internal rather something you're doing wrong.
    For reference purposes, I included this link. It goes into the details of the migration from XP to Vista (and the basic steps you follow). The instructions are for migrating to Vista via the network, but you can easily follow the steps and choose a different option for your specific installation.
    For both machines, I recommend you to prepare for the transfer using the following procedure:
    1. click on START > run
    2 type "msconfig" (without the quotes) and press enter
    3. go to the "Startup" tab and uncheck all the entries displayed
    4. click on 'Apply' at the bottom right
    DO NOT RESTART YOUR COMPUTER AGAIN
    5. click on START > run
    6. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
    7. type chkdsk /r and press enter
    8 allow the system to attempt disassembly of the volume
    9. allow the system to plan restarting
    10. restart your computer
    11 let checkdisk analyze the file system on your hard drive
    12. Once completed, perform the same steps on the other machine
    13. Once completed, repeat the transfer

    Let us know what happens
    Thank you!

    Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to convert my query in SQL procedure

    Hi all

    I run a SQL query in my process of page to set a few articles on my page.

    Start
    declare
    l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
    Start

    IF APEX_APPLICATION. G_F01. COUNT = 0 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model of e-mail to change!');
    END IF;

    IF APEX_APPLICATION. G_F01. COUNT > 1 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model unique to change both message!');
    END IF;

    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count
    LOOP
    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (APEX_APPLICATION. G_F01 (i),' $');
    : P32_SUBJECT: = l_vc_arr2 (1);
    : P32_TYPE: = l_vc_arr2 (2);
    : P32_BODY: = l_vc_arr2 (3);
    END LOOP;
    end;
    end;

    It works perfectly fine. Now, I want to turn this query in custom procedure. I write the following code to create the SQL procedure,

    create or replace
    procedure Edit_EmailTemplate as
    Start
    declare
    l_vc_arr2 APEX_APPLICATION_GLOBAL. VC_ARR2;
    Start

    IF APEX_APPLICATION. G_F01. COUNT = 0 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model of e-mail to change!');
    END IF;

    IF APEX_APPLICATION. G_F01. COUNT > 1 THEN
    RAISE_APPLICATION_ERROR (-20001, 'Please select a model unique to change both message!');
    END IF;

    BECAUSE me in 1.APEX_APPLICATION. G_F01. Count
    LOOP
    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE (APEX_APPLICATION. G_F01 (i),' $');
    v (P32_SUBJECT): = l_vc_arr2 (1);
    v (P32_TYPE): = l_vc_arr2 (2);
    v (P32_BODY): = l_vc_arr2 (3);
    END LOOP;
    end;
    end;

    but it is not compiling. Someone knows what's the problem?


    With respect,
    Sunil Bhatia

    Hi Sunil,

    You cannot use the function v ('P32_BODY') to assign values.

    you will need to use:
    apex_util.set_session_state ('P32_BODY', l_vc_arr2 (3));

    Concerning

    Michael

  • How to use a PDF form as a source of data for the second form PDF

    Hello world

    I have the following scenario:

    We want that our sales staff to collect data of our clients through a PDF form.

    We do not like to combine with the PDF we print them or sending them by E-Mail.

    Therefore, there is a solution to fill a second PDF with data from the first.

    1. 1 PDF form with input fields

    2. 1 PDF form must be registered with the entry

    3. 2nd PDF form with a table filled with 1 form data

    4. 2nd PDF form displays the data under the graph with the abilty to edit these data to dynamically change table

    I don't want a hollow guide the whole scenario. I just first of all whether it is even possible to supply a PDF form with data in another form PDF.

    If it is possible please give me advice to know what to look for everything.

    If this isn't the case, I would like to read the recommendations for solutions easy possible to solve this task.

    We do not want to send our staff of sales with PDF solutions to our clients, their collection and their work through a big pile of measures to manage this scenario.

    Thank you and regards

    Christian

    You must understand that there is a big difference between the JS, you might be familiar with (the one used in web pages) and one used in PDF files.

    Although the basic syntax is the same most of the objects and methods are different, as PDF files are fundamentally different from web pages.

    You can find the reference to API JS Acrobat here: JavaScript for Acrobat | Adobe Developer Connection

    The form data can be copied by exporting it to a file FDF then import this file into the other PDF (assuming that the field names are the same), or it can be done using a script that uses global variables. The latter is more automatic, but may require adjustment of the parameters of the application or using a function of confidence (IE, a feature that is installed on the local computer instead of just in the file itself).

    The first is easier to implement and use, but requires the intervention of the user.

  • How change only a portion of text with a button on the edge of adobe

    SSay if you have a text like this "Joel Hello how are you" today and you have four buttons 'Joel' has 'jeff' there 'Hello' and the other has "good bye" How do you define the first two buttons in the only change what appears was the word 'Joel' appears and same thing for the last but where is the "Hello".

    Hello

    • SYM.$("text").html () returns the text content.
    • Replace is a javascript function to replace a text by another element. For example: replace ("Joel", "Jeff"). Jeff replaces Joel.

    So:

    SYM. $("Text") .html (sym. $("Text") .html () replace ("oldWord", "newWord"));

    If you use symbols, how to call your symbol (library name)?

  • How to get the original look of firefox 4 with "firefox button" on the road to top then bookmarks with the address bar... ?

    I've been using firefox 3.6.16 and just upgraded to version 4 yesterday evening. in fact, the problem is this, in my browser that "firefox" button and all tabes are displayed in the same way on top.

    what I want is to get the default appearance of firefox 4 with firefox button on top and all of the tabs that appear on located below this button... (not in the same way)

    I manage because of any parameter of preference or other? Help, please

    If the Firefox window is maximized, it displays the tabs of the same line that the Firefox button, it just displays them on a separate line on a window not optimized in terms.

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • How to use a Variable in a procedure

    Hi all

    I created BasedOn with 2 steps inside.
    _1st step: _
    Command on the Source:
    Oracle - Select query to extract two values of column in a table.

    Drive on target:
    Jython - assignment of the two values above to var1 and var2.

    _2nd step: _
    Command on the Source:
    Oracle - need of a query to extract the username and password to a Dataserver Oracle and assign both to var3 var4.
    To get the username and password I use < % = odiRef.getInfo ("DEST_USER_NAME") % >
    & odiRef.getInfo ("DEST_PASS"), but I do not know how to assign these values to the var3 & var4.

    Drive on target:
    SunopsisAPI - invoking a weservice using the OdiInvokeWebservice API.
    In this command, I need to call the variables var1, var2, var3, var4 respectively.

    Kindly let me know how to proceed with this. So far, step 1 was successful.

    Thank you!
    VERIFIED BY VISA

    Can you use Java instead of the Jython and transmit these variables 1 and 2 to the java variable and you can call in the second step of this way
    var1 =<@=java_var1@> , var2 =<@=java_var2@> where java_var java variables are declared and spent in step 1.

  • How to use a single Ethernet interface as a 802. 1 q trunk with several logical addresses in Windows XP?

    Here's my question (s).  I have a rack of equipment that is used in a lab environment (8 routers workgroup and workgroup switches 8).  I have that devices connected to a series of core (1 core router and 3 switches to base) devices.  On one of my basic switches, 24 port is configured as a trunk port, allowing 8 all working group devices to connect and use the TFTP services on a computer.  This is my issue starts.

    My computer is a Dell Optiplex running Windows XP Professional SP3.  It has two physical Ethernet NIC cards, being a Broadcom NetExtreme 57XX and the other is a Linksys EG1032.  On the computer I was using before, Linksys NIC was subdivided into logic miniports and authorized for 802. 1 q trunking base switch.  It's how each workgroup devices then used services TFTP on the PC.  I need help in this reconfiguration on the current computer.

    Can someone help me or point me in the direction of 'how to' articles?  Thanks in advance.

    Jim

    Hi Jim,.

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum TechNet for assistance:

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

    Hope the helps of information.

  • How to use DPS as Folio overlays when you export to SWF format?

    I create an interactive magazine in InDesign, it is decided that the magazine is exported to SWF format and downloaded on the website of our company for viewing by the public. I want things like blocks of text scrolling and slideshows. I knew InDesign had an update to include DPS features such as overlays in Folio, so I applied a superposition of slideshow and a floating frame, but none of them is not working after that I exported to SWF format. I always want to have slideshows and scrolling frames how can I have them again when you export to SWF format?

    Features DPS are only for DPS. SWF is about as dead as dead can be at this point.

    If you want to use some of these types of features on the web, I suggest to look in in5 by ajar Productions. http://ajarproductions.com/pages/products/IN5/?ref=footer

  • How to use Labview to send commands to Excel on data analysis

    Hello, here's my situation:

    I have a Labview VI that reads data from various sensors and uses the report generation tool to send all the data values to Excel. Because each race is ~ 8-10 hours long and there is tons of data, I'm not worth it to store them in a table in my VI.

    However, in my Excel report I would like to include some statistics, like the initial report, max and min values of all the data from these points. Should what kind of command I send my VI to get Excel to do this? Or would it be easier to do within Labview instead?

    Thanks to anyone who can give some advice!

    Hello, Kalyie!

    Puneet.Kapoor is indeed correct, you can create an Excel macro and call from LabVIEW. An example of this in LabVIEW under help > find examples. When searching for "Excel", you will find 'Excel Macro example.' It would be more useful for the automation of your functions, or if you try to do more complex operations on your data in Excel (min and max are simple relativelty, however).

    As we have also seen, it may be easier to work with the data once it is in excel, using the '(Max) =' and the functions '= Min ()' - the choice is yours!

  • How to extract a value of sql xml column clob data

    Hi guys,.

    I need help with the following. I have a column with data type xml (clob data). I need to extract the information in the < RI4 > tag and the < RI6 > tag.
    I truncated the data, but there is a repetition of the < RI4 > tag and consequenty internal to that tag RI6. However, each tag RI4 and RI6 has different data.

    I would be grateful if you can help me with this:

    <a xsi:schemaLocation="som location.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:somlocation">
      <b>Some stuff here</b>
      <c>
      <someinfo>blah</someinfo>
      <someinfo2>blah2</someinfo2>
      </c>
      <EffectiveDateTime>2015-10-01T00:00:00+10:00</EffectiveDateTime>
      <CurrencyCode>AUD</CurrencyCode>
      <RequiredInformation>
      <RequiredInformation2>
      <RequiredInformation3>
      <RI4>someinfo</RI4>
      <RI5>
      <RI6>
      <a1>1</a1>
      <b1>9.13</b1>
      </RI6>
      <RI6>
      <a1>2</a1>
      <b1>8.75</b1>
      </RI6>
      <RI6>
      <a1>3</a1>
      <b1>78.90</b1>
      </RI6>
      <RI6>
      <a1>4</a1>
      <b1>200</b1>
      </RI6>
      <RI6>
      <a1>5</a1>
      <b1>17.59</b1>
      </RI6>
      </RI5>
      </RequiredInformation3>
      </RequiredInformation2>
      </RequiredInformation>
      </a>
    

    I think that since it's the repetition I might need to make some sort of PL/SQL programming, but I really need help here to build this announcement also a way to extract the information.

    Any help would be greatly appreciated.

    Kind regards

    You can parse your XML like this

    SQL> with t
      2  as
      3  (
      4  select
      5  '
      6      Some stuff here
      7      
      8          blah
      9          blah2
     10      
     11      2015-10-01T00:00:00+10:00
     12      AUD
     13      
     14          
     15              
     16                  someinfo
     17                  
     18                      
     19                          1
     20                          9.13
     21                      
     22                      
     23                          2
     24                          8.75
     25                      
     26                      
     27                          3
     28                          78.90
     29                      
     30                      
     31                          4
     32                          200
     33                      
     34                      
     35                          5
     36                          17.59
     37                      
     38                  
     39              
     40          
     41      
     42  ' xml_str
     43    from dual
     44   )
     45  select t1.ri4, t2.a1, t2.b1
     46    from t
     47       , xmltable
     48         (
     49            xmlnamespaces(default 'urn:somlocation', 'http://www.w3.org/2001/XMLSchema-instance' as "xsi")
     50         ,  '/a/RequiredInformation/RequiredInformation2/RequiredInformation3' passing xmltype(t.xml_str)
     51            columns
     52               ri4 varchar2(10) path 'RI4'
     53             , ri5 xmltype path 'RI5'
     54         ) t1
     55       , xmltable
     56         (
     57            xmlnamespaces(default 'urn:somlocation')
     58          , '/RI5/RI6' passing t1.ri5
     59            columns
     60               a1 number path 'a1'
     61             , b1 number path 'b1'
     62         ) t2;
    
    RI4                A1         B1
    ---------- ---------- ----------
    someinfo            1       9.13
    someinfo            2       8.75
    someinfo            3       78.9
    someinfo            4        200
    someinfo            5      17.59
    
    SQL>
    
  • Error with PL/SQL procedure to import data into the database

    When you run the procedure below, I get the message:

    Compilation failure, line 448
    PLS-00103: encountered the symbol "LOOP" when expecting one of the following values: case of the symbol "case" was substituted for the "LOOP" continue. Compilation failure, line 450
    PLS-00103: encountered the symbol ";" when expecting one of the following values: case

    Can someone help me understand what im missing? Thank you

    Deanna

    CREATE OR REPLACE PROCEDURE PURSUITS.IMPORT_LEGACY_PURSUIT IS
    
    CURSOR DATA_CURSOR IS
         SELECT * 
         FROM PURSUITS.IMPORT_LEGACY_PURSUIT;
    
    CR DATA_CURSOR%ROWTYPE;
    
    
    V_PURSUIT_DATE                DATE;
    V_ROADWAY_TYPE                VARCHAR2(5);
    V_TRAFFIC_FLOW                VARCHAR2(8);
    V_REASON_FOR_INITIATION       VARCHAR2(6);
    V_VEHICLE_MARKING             VARCHAR2(8);
    V_VEHICLE_LIGHTS_ON           VARCHAR2(1);
    V_VEHICLE_SIREN_ON            VARCHAR2(1);
    V_AIRCRAFT_AVAILABLE             VARCHAR2(1);
    V_AIRCRAFT_INVOLVED              VARCHAR2(1);
    V_OTHER_AGENCY_INVOLVED          VARCHAR2(1);
    V_OTHER_AGENCY_STATUS            VARCHAR2(8);
    V_OTHER_AGENCY_COUNT            NUMBER(2,0);
    V_SUSPECT_VEHICLE_TYPE          VARCHAR2(2);
    V_SUSPECT_RACE                  VARCHAR2(1);
    V_SUSPECT_ETHNICITY             VARCHAR2(1);
    V_SUSPECT_ID_KNOWN              VARCHAR2(1);
    V_SUSPECT_POSSESS_WEAPON        VARCHAR2(1);
    V_REASON_FOR_TERMINATION        VARCHAR2(6);
    V_REASON_FOR_FLIGHT             VARCHAR2(6);
    V_ACCIDENT                      VARCHAR2(1);
    V_ACCIDENT_TYPE                 VARCHAR2(8);
    V_ACCIDENT_PARTIES_INVOLVED     VARCHAR2(8);
    
    V_CASE_COUNT                    NUMBER;
    
    BEGIN
      OPEN DATA_CURSOR;
    
      LOOP
           FETCH DATA_CURSOR INTO CR;
    
           EXIT WHEN DATA_CURSOR%NOTFOUND;
    
    --PURSUIT DATE
    
    --       IF CR.PURSUIT_DATE = 0 THEN
    --       V_PURSUIT_DATE :=NULL;
    --       ELSE
    --            V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR');
    --       END IF;
    
    --ROADWAY TYPE
           CASE
           WHEN CR.ROADWAY = 1 THEN
           V_ROADWAY_TYPE := 'URBAN';
           WHEN CR.ROADWAY = 2 THEN
           V_ROADWAY_TYPE := 'RURAL';
           ELSE
           V_ROADWAY_TYPE := NULL;
           END CASE;
    
    --TRAFFIC FLOW
           CASE
           WHEN CR.TRAFFICFLO = 1 THEN
           V_TRAFFIC_FLOW := 'LIGHT';
           WHEN CR.TRAFFICFLO = 2 THEN
           V_TRAFFIC_FLOW := 'MODERATE';
           WHEN CR.TRAFFICFLO = 3 THEN
           V_TRAFFIC_FLOW := 'HIGH';
           ELSE
           V_TRAFFIC_FLOW := NULL;
           END_CASE;
    
    --INITIATION CODES
           CASE
           WHEN CR.INITREASON = 1 THEN
           V_REASON_FOR_INITIATION := 'SUSACT';
           WHEN CR.INITREASON = 2 THEN
           V_REASON_FOR_INITIATION := 'TRAFVI';
           WHEN CR.INITREASON = 3 THEN
           V_REASON_FOR_INITIATION := 'MISCCR';
           WHEN CR.INITREASON = 4 THEN
           V_REASON_FOR_INITIATION := 'FELONY';
           WHEN CR.INITREASON = 5 THEN
           V_REASON_FOR_INITIATION := 'DUIARR';
           WHEN CR.INITREASON = 6 THEN
           V_REASON_FOR_INITIATION := 'NCICHT';
           WHEN CR.INITREASON = 7 THEN
           V_REASON_FOR_INITIATION := 'OTHERR';
           ELSE
           V_REASON_FOR_INITIATION := NULL;
           END_CASE;
    
    --VEHICLE MARKING
           CASE
           WHEN CR.CARMARKS = 1 THEN
           V_VEHICLE_MARKING := 'MRKLIGHT';
           WHEN CR.CARMARKS = 2 THEN
           V_VEHICLE_MARKING := 'MRKCLEAN';
           WHEN CR.CARMARKS = 3 THEN
           V_VEHICLE_MARKING := 'UNMARKED';
           ELSE
           V_VEHICLE_MARKING := NULL;
           END CASE;
    
    --LIGHTS
           CASE
           WHEN CR.LIGHTS_ON = 1 THEN
           V_VEHICLE_LIGHTS_ON := 'Y';
           WHEN CR.LIGHTS_ON = 2 THEN
           V_VEHICLE_LIGHTS_ON := 'N';
           ELSE
           V_VEHICLE_LIGHTS_ON := NULL;
           END CASE;
    
    
    --SIREN
           CASE
           WHEN CR.SIREN_ON = 1 THEN
           V_VEHICLE_SIREN_ON := 'Y';
           WHEN CR.SIREN_ON = 2 THEN
           V_VEHICLE_SIREN_ON := 'N';
           ELSE
           V_VEHICLE_SIREN_ON := NULL;
           END CASE;
    
    --AIRCRAFT AVAILABLE
           CASE
           WHEN CR.AIRCRAFTAV = 1 THEN
           V_AIRCRAFT_AVAILABLE := 'Y';
           WHEN CR.AIRCRAFTAV = 2 THEN
           V_AIRCRAFT_AVAILABLE := 'N';
           WHEN CR.AIRCRAFTAV = 3 THEN
           V_AIRCRAFT_AVAILABLE := 'U';
           ELSE
           V_AIRCRAFT_AVAILABLE := NULL;
           END CASE;
    
    --AIRCRAFT INVOLVED
           CASE
           WHEN CR.AIRCRAFTIN = 1 THEN
           V_AIRCRAFT_INVOLVED := 'Y';
           WHEN CR.AIRCRAFTIN = 2 THEN
           V_AIRCRAFT_INVOLVED := 'N';
           ELSE
           V_AIRCRAFT_INVOLVED := NULL;
           END CASE;
    
    --AGENCY INVOLVED
           CASE
           WHEN CR.OTHRAGENCY = 1 THEN
           V_OTHER_AGENCY_INVOLVED := 'Y';
           WHEN CR.OTHRAGENCY = 2 THEN
           V_OTHER_AGENCY_INVOLVED := 'N';
           ELSE
           V_OTHER_AGENCY_INVOLVED := NULL;
           END CASE;
    
    --AGENCY STATUS
           CASE    
           WHEN CR.STATUS = 1 THEN
           V_OTHER_AGENCY_STATUS := 'INITIATE';
           WHEN CR.STATUS = 2 THEN
           V_OTHER_AGENCY_STATUS := 'ASSISTED';
           ELSE
           V_OTHER_AGENCY_STATUS := NULL;
           END CASE;
    
    --SUSPECT VEHICLE TYPE
           CASE
           WHEN CR.VEHICLETYP = 1 THEN
           V_SUSPECT_VEHICLE_TYPE := 'SD';
           WHEN CR.VEHICLETYP = 2 THEN
           V_SUSPECT_VEHICLE_TYPE := 'MC';
           WHEN CR.VEHICLETYP = 3 THEN
           V_SUSPECT_VEHICLE_TYPE := 'VN';
           WHEN CR.VEHICLETYP = 4 THEN
           V_SUSPECT_VEHICLE_TYPE := 'PK';
           WHEN CR.VEHICLETYP = 5 THEN
           V_SUSPECT_VEHICLE_TYPE := 'DS';
           WHEN CR.VEHICLETYP = 6 THEN
           V_SUSPECT_VEHICLE_TYPE := 'OT';
           ELSE
           V_SUSPECT_VEHICLE_TYPE := NULL;
           END CASE;
    
    --SUSPECT RACE AND ETHNICITY
           IF CR.RACE = 'H' THEN
           V_SUSPECT_RACE := 'W';
           ELSE
           V_SUSPECT_RACE := CR.RACE;
           END IF;
    
    --SUSPECT ETHNICITY
           IF CR.RACE = 'H' THEN
           V_SUSPECT_ETHNICITY := 'H'
           ELSE
           V_SUSPECT_ETHNICITY := NULL;
           END IF;
    
    --SUSPECT ID
           CASE
           WHEN CR.ID_KNOWN = 1 THEN
           V_SUSPECT_ID_KNOWN := 'Y';
           WHEN CR.ID_KNOWN = 2 THEN
           V_SUSPECT_ID_KNOWN := 'N';
           ELSE
           V_SUSPECT_ID_KNOWN := NULL;
           END CASE;
    
    --SUSPECT WEAPON
           CASE
           WHEN CR.WEAPON = 1 THEN
           V_SUSPECT_POSSESS_WEAPON := 'Y';
           WHEN CR.WEAPON = 2 THEN
           V_SUSPECT_POSSESS_WEAPON := 'N';
           ELSE
           V_SUSPECT_POSSESS_WEAPON := NULL;
           END CASE;
    
    --TERMINATION REASON
           CASE
           WHEN CR.TERMREASON = 1 THEN
           V_REASON_FOR_TERMINATION := 'DVRVOL';
           WHEN CR.TERMREASON = 2 THEN
           V_REASON_FOR_TERMINATION := 'ALATER';
           WHEN CR.TERMREASON = 3 THEN
           V_REASON_FOR_TERMINATION := 'VEHDIS';
           WHEN CR.TERMREASON = 4 THEN
           V_REASON_FOR_TERMINATION := 'VEHWRK';
           WHEN CR.TERMREASON = 5 THEN
           V_REASON_FOR_TERMINATION := 'ROADBL';
           WHEN CR.TERMREASON = 6 THEN
           V_REASON_FOR_TERMINATION := 'STOPST';
           WHEN CR.TERMREASON = 7 THEN
           V_REASON_FOR_TERMINATION := 'RAMMED';
           WHEN CR.TERMREASON = 8 THEN
           V_REASON_FOR_TERMINATION := 'WEAPON';
           WHEN CR.TERMREASON = 9 THEN
           V_REASON_FOR_TERMINATION := 'DVRINJ';
           WHEN CR.TERMREASON = 10 THEN
           V_REASON_FOR_TERMINATION := 'OFFTER';
           WHEN CR.TERMREASON = 11 THEN
           V_REASON_FOR_TERMINATION := 'SUPTER';
           WHEN CR.TERMREASON = 12 THEN
           V_REASON_FOR_TERMINATION := 'PATDIS';
           WHEN CR.TERMREASON = 13 THEN
           V_REASON_FOR_TERMINATION := 'PATWRK';
           WHEN CR.TERMREASON = 14 THEN
           V_REASON_FOR_TERMINATION := 'LOSTEM';
           WHEN CR.TERMREASON = 15 THEN
           V_REASON_FOR_TERMINATION := 'FLEDAB';
           WHEN CR.TERMREASON = 16 THEN
           V_REASON_FOR_TERMINATION := 'FLEDWK';
           WHEN CR.TERMREASON = 17 THEN
           V_REASON_FOR_TERMINATION := 'OFFINJ';
           WHEN CR.TERMREASON = 18 THEN
           V_REASON_FOR_TERMINATION := 'OTHAGY';
           ELSE
           V_REASON_FOR_TERMINATION := NULL;
           END CASE;
    
    --FLIGHT REASON
           CASE
           WHEN CR.FLI_REASON = 1 THEN
           V_REASON_FOR_FLIGHT := 'SUMMON';
           WHEN CR.FLI_REASON = 2 THEN
           V_REASON_FOR_FLIGHT := 'DUIARR';
           WHEN CR.FLI_REASON = 3 THEN
           V_REASON_FOR_FLIGHT := 'FELONY';
           WHEN CR.FLI_REASON = 4 THEN
           V_REASON_FOR_FLIGHT := 'STOLEN';
           WHEN CR.FLI_REASON = 5 THEN
           V_REASON_FOR_FLIGHT := 'MISDEM';
           WHEN CR.FLI_REASON = 6 THEN
           V_REASON_FOR_FLIGHT := 'DRUGAR';
           WHEN CR.FLI_REASON = 7 THEN
           V_REASON_FOR_FLIGHT := 'FEARPO';
           WHEN CR.FLI_REASON = 8 THEN
           V_REASON_FOR_FLIGHT := 'NODVRL';
           WHEN CR.FLI_REASON = 9 THEN
           V_REASON_FOR_FLIGHT := 'NOINSU';
           WHEN CR.FLI_REASON = 10 THEN
           V_REASON_FOR_FLIGHT := 'PARENT';
           WHEN CR.FLI_REASON = 11 THEN
           V_REASON_FOR_FLIGHT := 'MENTAL';
           WHEN CR.FLI_REASON = 12 THEN
           V_REASON_FOR_FLIGHT := 'OTHERR';
           ELSE
           V_REASON_FOR_FLIGHT := NULL;
           END CASE;
    
    --ACCIDENT
           CASE
           WHEN CR.ACCIDENT = 1 THEN
           V_ACCIDENT := 'Y';
           WHEN CR.ACCIDENT = 2 THEN
           V_ACCIDENT := 'N';
           ELSE
           V_ACCIDENT := NULL;
           END CASE;
    
    --ACCIDENT TYPE
           CASE
           WHEN CR.ACCDNTTYPE = 1 THEN
           V_ACCIDENT_TYPE := 'PROPERTY DAMAGE';
           WHEN CR.ACCDNTTYPE = 2 THEN
           V_ACCIDENT_TYPE := 'INJURY';
           WHEN CR.ACCDNTTYPE = 3 THEN
           V_ACCIDENT_TYPE := 'FATALITY';
           ELSE
           V_ACCIDENT_TYPE := NULL;
           END CASE;
    
    --ACCIDENT PARTIES INVOLVED
           CASE
           WHEN CR.ACCPARTIES = 1 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'SUSPONLY';
           WHEN CR.ACCPARTIES = 2 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'THRDONLY';
           WHEN CR.ACCPARTIES = 3 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLIONLY';
           WHEN CR.ACCPARTIES = 4 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLISUSP';
           WHEN CR.ACCPARTIES = 5 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLITHRD';
           WHEN CR.ACCPARTIES = 6 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'SUSPTHRD';
           WHEN CR.ACCPARTIES = 7 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'ALLPARTY';
           ELSE
           V_ACCIDENT_PARTIES_INVOLVED := NULL;
           END CASE;
    
    SELECT COUNT(*) INTO V_CASE_COUNT
    FROM PURSUITS.IMPORT_LEGACY_PURSUIT
    WHERE CASE_NUMBER = CR.LOCCASENUM;
    
    CASE
    WHEN V_CASE_COUNT = 0 THEN
    
    DBMS_OUTPUT.PUT_LINE ('DONE');
    
    --INSERT DATA INTO TABLE
           INSERT INTO PURSUITS.IMPORT_LEGACY_PURSUIT(
    CASE_NUMBER,            
    OFFICER_LNAME,          
    OFFICER_FNAME,         
    OFFICER_MI,            
    OFFICER_NAME_HP261,    
    OFFICER_RADIO,          
    OFFICER_VEH_UNIT,      
    OFFICER_TROOP,         
    OFFICER_ZONE,          
    OFFICER_YEARS_SERVICE,  
    PURSUIT_TIME_BEGAN,  
    PURSUIT_DATE,          
    PURSUIT_DOW,            
    PURSUIT_TIME_ENDED,   
    DURATION_MILES,        
    DURATION_MINUTES,       
    SPEED_MAX,             
    ROADWAY_TYPE,         
    TRAFFIC_FLOW,          
    REASON_FOR_INITIATION,  
    REASON_FOR_INITIATION_OTHER,  
    VEHICLE_MARKING,        
    VEHICLE_LIGHTS_ON,      
    VEHICLE_SIREN_ON,       
    VEHICLE_COUNT_MARKED_TOPLIGHT,  
    VEHICLE_COUNT_UNMARKED, 
    VEHICLE_COUNT_MARKED_CLEAN,     
    AIRCRAFT_AVAILABLE,        
    AIRCRAFT_INVOLVED,         
    OTHER_AGENCY_INVOLVED,     
    OTHER_AGENCY_STATUS,       
    OTHER_AGENCY_COUNT,          
    SUSPECT_VEHICLE_TYPE,         
    SUSPECT_VEHICLE_TYPE_OTHER,   
    SUSPECT_AGE,                  
    SUSPECT_GENDER,               
    SUSPECT_RACE,               
    SUSPECT_ETHNICITY,           
    SUSPECT_ID_KNOWN,             
    SUSPECT_POSSESS_WEAPON,    
    SUSPECT_DUI,                
    SUSPECT_BAC,                  
    REASON_FOR_TERMINATION,       
    REASON_FOR_FLIGHT,            
    REASON_FOR_FLIGHT_OTHER,      
    ACCIDENT,                    
    ACCIDENT_TYPE,                
    ACCIDENT_PARTIES_INVOLVED,    
    IMMEDIATE_SUPERVISOR,         
    TROOP_COMMANDER)
    
    VALUES(
    CR.LOCASENUM,
    NULL,
    NULL,
    NULL,
    CR.N/A,
    CR.RADIO_NUM,
    CR.UNIT_NUM,
    CR.TROOP,
    CR.ZONE,
    CR.YRSSERVICE,
    CR.TIMEBEGAN,
    V_PURSUIT_DATE,
    CR.DAYOFWEEK,
    CR.TIME_ENDED,
    CR.MILES,
    CR.MINUTES,
    CR.MPH,
    V_ROADWAY_TYPE,
    V_TRAFFIC_FLOW,
    V_REASON_FOR_INITIATION,
    CR.OTHER1,
    V_VEHICLE_MARKING,
    V_VEHICLE_LIGHTS_ON,
    V_VEHICLE_SIREN_ON,
    CR.MARKED_TL,
    CR.UNMARKED,
    CR.MARKED_CR,
    V_AIRCRAFT_AVAILABLE,
    V_AIRCRAFT_INVOLVED,
    V_OTHER_AGENCY_INVOLVED,
    V_AGENCY_STATUS,
    CR.NUM_VEH,
    V_SUSPECT_VEHICLE_TYPE,
    CR.OTHER2,
    CR.AGE,
    CR.SEX,
    V_SUSPECT_RACE,
    CR.N/A,
    V_SUSPECT_ID_KNOWN,
    V_SUSPECT_POSSESS_WEAPON,
    CR.DUI,
    CR.BAC_PERCNT,
    V_REASON_FOR_TERMINATION,
    V_REASON_FOR_FLIGHT,
    CR.OTHER3,
    V_ACCIDENT,
    V_ACCIDENT_TYPE,
    V_ACCIDENT_PARTIES_INVOLVED,
    NULL,
    NULL);
    
    END LOOP;
    CLOSE DATA_CURSOR;
    END;

    Deanna,

    Question, I don't understand why you're selecting in import_legacy_pursuit and insertion in the same table?

    It would be wonderful if you can display the structure of the table and 1 or 2 fictitious example of records.

     cursor cr is
      SELECT *
          FROM import_legacy_pursuit;
      ...
      ...
    
     INSERT INTO import_legacy_pursuit
               (
                   case_number,
                   officer_lname,
                    ....
                    ..
    ) values (.....
    ...);
    

    In any case, I made some changes to the procedure, you must replace the Insert with your statement and post if it worked for you.

    DECLARE
       CURSOR data_cursor
       IS
          SELECT *
          FROM import_legacy_pursuit;
    
       cr                            data_cursor%ROWTYPE;
    
       v_pursuit_date                DATE;
       v_roadway_type                VARCHAR2 (15);
       v_traffic_flow                VARCHAR2 (18);
       v_reason_for_initiation       VARCHAR2 (16);
       v_vehicle_marking             VARCHAR2 (18);
       v_vehicle_lights_on           VARCHAR2 (11);
       v_vehicle_siren_on            VARCHAR2 (11);
       v_aircraft_available          VARCHAR2 (11);
       v_aircraft_involved           VARCHAR2 (11);
       v_other_agency_involved       VARCHAR2 (11);
       v_other_agency_status         VARCHAR2 (18);
       v_other_agency_count          NUMBER (4, 0);
       v_suspect_vehicle_type        VARCHAR2 (20);
       v_suspect_race                VARCHAR2 (11);
       v_suspect_ethnicity           VARCHAR2 (11);
       v_suspect_id_known            VARCHAR2 (11);
       v_suspect_possess_weapon      VARCHAR2 (11);
       v_reason_for_termination      VARCHAR2 (11);
       v_reason_for_flight           VARCHAR2 (11);
       v_accident                    VARCHAR2 (11);
       v_accident_type               VARCHAR2 (18);
       v_accident_parties_involved   VARCHAR2 (18);
    
       v_lo_number                   VARCHAR2 (50);
    
       v_case_count                  NUMBER;
    BEGIN
       OPEN data_cursor;
    
       LOOP
          FETCH data_cursor INTO cr;
    
          EXIT WHEN data_cursor%NOTFOUND;
    
          --PURSUIT DATE
    
          --       IF CR.PURSUIT_DATE = 0 THEN
          --       V_PURSUIT_DATE :=NULL;
          --       ELSE
          --            V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR');
          --       END IF;
    
          --ROADWAY TYPE
          CASE
             WHEN cr.roadway = 1
             THEN
                v_roadway_type   := 'URBAN';
             WHEN cr.roadway = 2
             THEN
                v_roadway_type   := 'RURAL';
             ELSE
                v_roadway_type   := NULL;
          END CASE;
    
          --TRAFFIC FLOW
          CASE
             WHEN cr.trafficflo = 1
             THEN
                v_traffic_flow   := 'LIGHT';
             WHEN cr.trafficflo = 2
             THEN
                v_traffic_flow   := 'MODERATE';
             WHEN cr.trafficflo = 3
             THEN
                v_traffic_flow   := 'HIGH';
             ELSE
                v_traffic_flow   := NULL;
          END CASE;
    
          --INITIATION CODES
          CASE
             WHEN cr.initreason = 1
             THEN
                v_reason_for_initiation   := 'SUSACT';
             WHEN cr.initreason = 2
             THEN
                v_reason_for_initiation   := 'TRAFVI';
             WHEN cr.initreason = 3
             THEN
                v_reason_for_initiation   := 'MISCCR';
             WHEN cr.initreason = 4
             THEN
                v_reason_for_initiation   := 'FELONY';
             WHEN cr.initreason = 5
             THEN
                v_reason_for_initiation   := 'DUIARR';
             WHEN cr.initreason = 6
             THEN
                v_reason_for_initiation   := 'NCICHT';
             WHEN cr.initreason = 7
             THEN
                v_reason_for_initiation   := 'OTHERR';
             ELSE
                v_reason_for_initiation   := NULL;
          END CASE;
    
          --VEHICLE MARKING
          CASE
             WHEN cr.carmarks = 1
             THEN
                v_vehicle_marking   := 'MRKLIGHT';
             WHEN cr.carmarks = 2
             THEN
                v_vehicle_marking   := 'MRKCLEAN';
             WHEN cr.carmarks = 3
             THEN
                v_vehicle_marking   := 'UNMARKED';
             ELSE
                v_vehicle_marking   := NULL;
          END CASE;
    
          --LIGHTS
          CASE
             WHEN cr.lights_on = 1
             THEN
                v_vehicle_lights_on   := 'Y';
             WHEN cr.lights_on = 2
             THEN
                v_vehicle_lights_on   := 'N';
             ELSE
                v_vehicle_lights_on   := NULL;
          END CASE;
    
          --SIREN
          CASE
             WHEN cr.siren_on = 1
             THEN
                v_vehicle_siren_on   := 'Y';
             WHEN cr.siren_on = 2
             THEN
                v_vehicle_siren_on   := 'N';
             ELSE
                v_vehicle_siren_on   := NULL;
          END CASE;
    
          --AIRCRAFT AVAILABLE
          CASE
             WHEN cr.aircraftav = 1
             THEN
                v_aircraft_available   := 'Y';
             WHEN cr.aircraftav = 2
             THEN
                v_aircraft_available   := 'N';
             WHEN cr.aircraftav = 3
             THEN
                v_aircraft_available   := 'U';
             ELSE
                v_aircraft_available   := NULL;
          END CASE;
    
          --AIRCRAFT INVOLVED
          CASE
             WHEN cr.aircraftin = 1
             THEN
                v_aircraft_involved   := 'Y';
             WHEN cr.aircraftin = 2
             THEN
                v_aircraft_involved   := 'N';
             ELSE
                v_aircraft_involved   := NULL;
          END CASE;
    
          --AGENCY INVOLVED
          CASE
             WHEN cr.othragency = 1
             THEN
                v_other_agency_involved   := 'Y';
             WHEN cr.othragency = 2
             THEN
                v_other_agency_involved   := 'N';
             ELSE
                v_other_agency_involved   := NULL;
          END CASE;
    
          --AGENCY STATUS
          CASE
             WHEN cr.status = 1
             THEN
                v_other_agency_status   := 'INITIATE';
             WHEN cr.status = 2
             THEN
                v_other_agency_status   := 'ASSISTED';
             ELSE
                v_other_agency_status   := NULL;
          END CASE;
    
          --SUSPECT VEHICLE TYPE
          CASE
             WHEN cr.vehicletyp = 1
             THEN
                v_suspect_vehicle_type   := 'SD';
             WHEN cr.vehicletyp = 2
             THEN
                v_suspect_vehicle_type   := 'MC';
             WHEN cr.vehicletyp = 3
             THEN
                v_suspect_vehicle_type   := 'VN';
             WHEN cr.vehicletyp = 4
             THEN
                v_suspect_vehicle_type   := 'PK';
             WHEN cr.vehicletyp = 5
             THEN
                v_suspect_vehicle_type   := 'DS';
             WHEN cr.vehicletyp = 6
             THEN
                v_suspect_vehicle_type   := 'OT';
             ELSE
                v_suspect_vehicle_type   := NULL;
          END CASE;
    
          --SUSPECT RACE AND ETHNICITY
          IF cr.race = 'H'
          THEN
             v_suspect_race   := 'W';
          ELSE
             v_suspect_race   := cr.race;
          END IF;
    
          --SUSPECT ETHNICITY
          IF cr.race = 'H'
          THEN
             v_suspect_ethnicity   := 'H';
          ELSE
             v_suspect_ethnicity   := NULL;
          END IF;
    
          --SUSPECT ID
          CASE
             WHEN cr.id_known = 1
             THEN
                v_suspect_id_known   := 'Y';
             WHEN cr.id_known = 2
             THEN
                v_suspect_id_known   := 'N';
             ELSE
                v_suspect_id_known   := NULL;
          END CASE;
    
          --SUSPECT WEAPON
          CASE
             WHEN cr.weapon = 1
             THEN
                v_suspect_possess_weapon   := 'Y';
             WHEN cr.weapon = 2
             THEN
                v_suspect_possess_weapon   := 'N';
             ELSE
                v_suspect_possess_weapon   := NULL;
          END CASE;
    
          --TERMINATION REASON
          CASE
             WHEN cr.termreason = 1
             THEN
                v_reason_for_termination   := 'DVRVOL';
             WHEN cr.termreason = 2
             THEN
                v_reason_for_termination   := 'ALATER';
             WHEN cr.termreason = 3
             THEN
                v_reason_for_termination   := 'VEHDIS';
             WHEN cr.termreason = 4
             THEN
                v_reason_for_termination   := 'VEHWRK';
             WHEN cr.termreason = 5
             THEN
                v_reason_for_termination   := 'ROADBL';
             WHEN cr.termreason = 6
             THEN
                v_reason_for_termination   := 'STOPST';
             WHEN cr.termreason = 7
             THEN
                v_reason_for_termination   := 'RAMMED';
             WHEN cr.termreason = 8
             THEN
                v_reason_for_termination   := 'WEAPON';
             WHEN cr.termreason = 9
             THEN
                v_reason_for_termination   := 'DVRINJ';
             WHEN cr.termreason = 10
             THEN
                v_reason_for_termination   := 'OFFTER';
             WHEN cr.termreason = 11
             THEN
                v_reason_for_termination   := 'SUPTER';
             WHEN cr.termreason = 12
             THEN
                v_reason_for_termination   := 'PATDIS';
             WHEN cr.termreason = 13
             THEN
                v_reason_for_termination   := 'PATWRK';
             WHEN cr.termreason = 14
             THEN
                v_reason_for_termination   := 'LOSTEM';
             WHEN cr.termreason = 15
             THEN
                v_reason_for_termination   := 'FLEDAB';
             WHEN cr.termreason = 16
             THEN
                v_reason_for_termination   := 'FLEDWK';
             WHEN cr.termreason = 17
             THEN
                v_reason_for_termination   := 'OFFINJ';
             WHEN cr.termreason = 18
             THEN
                v_reason_for_termination   := 'OTHAGY';
             ELSE
                v_reason_for_termination   := NULL;
          END CASE;
    
          --FLIGHT REASON
          CASE
             WHEN cr.fli_reason = 1
             THEN
                v_reason_for_flight   := 'SUMMON';
             WHEN cr.fli_reason = 2
             THEN
                v_reason_for_flight   := 'DUIARR';
             WHEN cr.fli_reason = 3
             THEN
                v_reason_for_flight   := 'FELONY';
             WHEN cr.fli_reason = 4
             THEN
                v_reason_for_flight   := 'STOLEN';
             WHEN cr.fli_reason = 5
             THEN
                v_reason_for_flight   := 'MISDEM';
             WHEN cr.fli_reason = 6
             THEN
                v_reason_for_flight   := 'DRUGAR';
             WHEN cr.fli_reason = 7
             THEN
                v_reason_for_flight   := 'FEARPO';
             WHEN cr.fli_reason = 8
             THEN
                v_reason_for_flight   := 'NODVRL';
             WHEN cr.fli_reason = 9
             THEN
                v_reason_for_flight   := 'NOINSU';
             WHEN cr.fli_reason = 10
             THEN
                v_reason_for_flight   := 'PARENT';
             WHEN cr.fli_reason = 11
             THEN
                v_reason_for_flight   := 'MENTAL';
             WHEN cr.fli_reason = 12
             THEN
                v_reason_for_flight   := 'OTHERR';
             ELSE
                v_reason_for_flight   := NULL;
          END CASE;
    
          --ACCIDENT
          CASE
             WHEN cr.accident = 1
             THEN
                v_accident   := 'Y';
             WHEN cr.accident = 2
             THEN
                v_accident   := 'N';
             ELSE
                v_accident   := NULL;
          END CASE;
    
          --ACCIDENT TYPE
          CASE
             WHEN cr.accdnttype = 1
             THEN
                v_accident_type   := 'PROPERTY DAMAGE';
             WHEN cr.accdnttype = 2
             THEN
                v_accident_type   := 'INJURY';
             WHEN cr.accdnttype = 3
             THEN
                v_accident_type   := 'FATALITY';
             ELSE
                v_accident_type   := NULL;
          END CASE;
    
          --ACCIDENT PARTIES INVOLVED
          CASE
             WHEN cr.accparties = 1
             THEN
                v_accident_parties_involved   := 'SUSPONLY';
             WHEN cr.accparties = 2
             THEN
                v_accident_parties_involved   := 'THRDONLY';
             WHEN cr.accparties = 3
             THEN
                v_accident_parties_involved   := 'POLIONLY';
             WHEN cr.accparties = 4
             THEN
                v_accident_parties_involved   := 'POLISUSP';
             WHEN cr.accparties = 5
             THEN
                v_accident_parties_involved   := 'POLITHRD';
             WHEN cr.accparties = 6
             THEN
                v_accident_parties_involved   := 'SUSPTHRD';
             WHEN cr.accparties = 7
             THEN
                v_accident_parties_involved   := 'ALLPARTY';
             ELSE
                v_accident_parties_involved   := NULL;
          END CASE;
    
          SELECT COUNT ( * )
          INTO v_case_count
          FROM import_legacy_pursuit
          WHERE case_number = cr.loccasenum;
    
          IF v_case_count = 0
          THEN
             DBMS_OUTPUT.put_line ('DONE');
    
             -- PLEASE assign all cursor values to some variables ; e.g
             v_lo_number   := cr.loccasenum;
    
             INSERT INTO import_legacy_pursuit
            (
                case_number, fli_reason
            )
             VALUES (v_lo_number, v_reason_for_flight);
          ELSE
             DBMS_OUTPUT.put_line ('Nothing inserted');
          END IF;
       END LOOP;
    
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 300));
          RAISE;
    END;
    

    Concerning

  • How to export data from flat file with ODI DB?

    We want to export flat files DB2 tables.
    Who can tell me how to do it with ODI?
    Please give me a simple example or steps.
    Thank you.

    There are two ways

    Either use IKM Sql to add files

    (or)

    OdiSqlUnload
    For OdiSqlUnload, you can use this technique to provide the connection parameters - http://odiexperts.com/?p=1985

  • How can I intercept data Out-of-Memory with no crash once the crop tool fails to finish?

    The beta program of Photoshop 6 froze everything using the cropping tool on an image of 8052 5368 x size. I tried to save a file in another program until the harvest at the end (usually about 1 second) and got a low memory error. I checked the D: drive where the file is saved in the other program. I have a flash drive C: is not selected in the scratch disk preferences. Two disks scratch, E: and G:, are selected with a total of about 800 GB of free space. After the closure of PS6Beta, the d: recovered approximately 164GB. D: drive is not selected in the Scratch disk list. I work with larger files and anticipate this problem again. How can I intercept information for Adobe next time?

    Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03 / 05:21:00:00) x 32

    Operating system: Windows 7 64-bit

    Version: 6.1 Service Pack 1

    System architecture: Intel CPU Family: 6, model: 14, Stepping: 5 with MMX, entire SSE, SSE, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading FP

    Physical processor count: 4

    Number of logical processors: 8

    Processor speed: 2664 MHz

    Built-in memory: 16375 MB

    Free memory: 13523 MB

    Memory available to Photoshop: 3255 MB

    Memory used by Photoshop: 60%

    Tile image size: 128K

    No chance that you set the crop tool settings by using the wrong units (for example, to make your picture 8000 in. x 5000 inches? )

    -Christmas

Maybe you are looking for

  • Firefox automatically reverts to the previous version!

    I have improved the Thunderbird of V 3.1 V 8.0.Everything worked correctly with the version upgrade.So when I stop and restart a dialogue box appears.It is said that it needs to restart to return to the previous version.If I restart Firefox cannot be

  • Detonators in place. Help someone? D:

    Uh, it's a sansa 2 GB with 1 gb micro SD fuse. last Firmware ver. too V01.02.26A computer running window Xp sp3. Well he's not my rocket, my small cousin actually. in any case hes had the "rocket" for 4 months now its been great so far.He said it was

  • Simple report with parameter requirement does not

    I have a simple report, select rows from a table when the date is earlier than a date variable. I have a page with a switch of date and a button element. The button links to the report page and assigns to P3_AS_OF_DATE P2_SELECT_DATE. Page 3 includes

  • Document stuck in queue.

    Several times I had a document stuck in the print queue of the printer and will not delete even if I tried several times to do so.  It does not allow me to cancel the document either, so now I can't use the printer at all. The printer is an all-in-on

  • need to get several device permissions

    How can I get Adobe to allow me to have more devices aruthorized (E-Reader)? My camera had problems which are now resolved, but it eat up all my remaining permissions and I have nothing left.