Set the type of array on the duration... Get the error...

My requirement is
I try to set the table on the duration type. that is ortf_in_table_tbl {noformat} ({noformat} i).field_position_rec.ortf_segment_field_name to the code below.

But when I'm running code below and get below error:
DECLARE
   CURSOR field_position_cur (p_table_name VARCHAR2)
   IS
      SELECT xosf.field_name, xosf.starting_position, xosf.field_length
        FROM record_types xort, record_segments xors, segment_fields xosf
       WHERE xort.record_type_id = xors.record_type_id
         AND xors.record_segment_id = xosf.record_segment_id
         AND xosf.table_name = p_table_name;

   CURSOR raw_data_cur
   IS
      SELECT *
        FROM raw_data;

   TYPE raw_data_typ IS TABLE OF raw_data_cur%ROWTYPE
      INDEX BY BINARY_INTEGER;

   TYPE table_typ IS TABLE OF emp%ROWTYPE
      INDEX BY BINARY_INTEGER;

   table_tbl      table_typ;
   raw_data_tbl   raw_data_typ;
BEGIN
   OPEN raw_data_cur;

   LOOP
      FETCH raw_data_cur
      BULK COLLECT INTO raw_data_tbl;

      EXIT WHEN raw_data_tbl.COUNT = 0;

      FOR i IN raw_data_tbl.FIRST .. raw_data_tbl.LAST
      LOOP
         FOR field_position_rec IN field_position_cur ('EMP')
         LOOP
            table_tbl (i).field_position_rec.field_name :=
               SUBSTR (raw_data_tbl (i).raw_line_text,
                       field_position_rec.starting_position,
                       field_position_rec.field_length
                      );
            DBMS_OUTPUT.put_line
                    (   'table_tbl (i).field_position_rec.field_name '
                     || table_tbl (i).field_position_rec.field_name
                    );
         END LOOP;
      END LOOP;
   END LOOP;

   CLOSE raw_data_cur;

FORALL i IN table_tbl.FIRST .. table_tbl.LAST
      INSERT INTO emp 
           VALUES (table_tbl (i)
                  );
   COMMIT;

EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.put_line ('OTHERS ' || SQLERRM);
END;


**ORA-06550: line 61, column 52:**
**PLS-00302: component 'FIELD_POSITION_REC' must be declared**
**ORA-06550: line 54, column 13:**
**PL/SQL: Statement ignored**
Here field_position_cur gives me the name of column for the table EMP (i.e. field_position_rec.field_name) and field_position_cur give start and length to calculate the value of the column
i.e.
 SUBSTR (raw_data_tbl (i).raw_line_text,
                       field_position_rec.starting_position,
                       field_position_rec.field_length
                      )
But it gives me error. We're on the 10g database.

Please suggest the solution for it.

Published by: BluShadow on January 12, 2012 08:21
addition of {noformat}
{noformat} and other tags to make it readable.  Please read {message:id=9360002} and learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Yes. Really recommend do you the suggested and especially medium provided the code and dynamic linking and loose curls.

Tags: Database

Similar Questions

  • When you type msconfig or support.msg I get an error message

    When I type msconfig or support.msg in the run bar I get an error message.  In other words will not open the two folder where you can change your settings.  My Windows registry is corrupt?

    Hello
     
    As I understand it, you can't launch MSconfig from command run on your computer due to an error. Is this correct?
     
    Possible reasons for this problem may be an infection of the computer or a corrupted system file.
    The best possible of troubleshooting is to run an analysis of auditor of system files and scan the computer to solve the problem of infections.
     
    However, please provide the following information for a better understanding of the issue.
     
    1 Windows operating system you are using?
     
    2. What is the full error message displayed when you try to run MSconfig?
     
    3. What were the recent changes of hardware or software that are performed on the computer before the question?
    If you encounter the same problem when launching other exe programs follow.
     
    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
     
    How to back up and restore the registry in Windows
     
    XP
     
     

    Windows 7

     

    Windows Vista

     
    Follow,
     
     
    I hope this helps.
  • Set the error code for the exception qualified using the pragma exception_init

    Hello

    I did experiments on exception management in oracle plsql. In my experiments, I did the following anonymous plsql block.


    + < < outer_block > > +.
    declare
    + exceptions.    +
    Start
    + < < inner_block > > +.
    + State +.
    + exceptions.        +
    + start +.
    + recovery outer_block.exc +;
    + exception +.
    + What then outer_block.exc +.
    + dbms_output.put_line ("' outdoor Exception caught"); +
    + What then inner_block.exc +.
    + dbms_output.put_line ("'Inner Exception caught"); +
    + end; +
    end;


    When I run the code, I got the output "external Exception caught".

    ------------------------------------------------- PLSQL Block 2 -------------------------------------------

    I changed the code a little differently by assigning exceptions error codes.

    + < < outer_block > > +.
    declare
    + exception exc; +
    + pragma exception_init (exc,-20001); +
    Start
    + < < inner_block > > +.
    + State +.
    + exception exc; +
    + pragma exception_init (exc,-20001); +
    + start +.
    + raise_application_error (-20001, "Error"); +
    + exception +.
    + What then outer_block.exc +.
    + dbms_output.put_line ("' outdoor Exception caught"); +
    + What then inner_block.exc +.
    + dbms_output.put_line ("'Inner Exception caught"); +
    + end; +
    end;

    When I run the above code, I got the following error.

    Error on line 1
    ORA-06550: line 15, column 9:
    PLS-00484: exceptions redundant "EXC" and "EXC" must appear in the same exception handler
    ORA-06550: line 5, column 1:
    PL/SQL: Statement ignored

    Script done on line 21.

    ------------------------------------------------- PLSQL Block 3 -------------------------------------------


    To avoid this error, I changed the code again by qualifying exceptions with their block names. This time, I got a different error.

    + < < outer_block > > +.
    declare
    + exception exc; +
    + pragma exception_init (outer_block.exc,-20001); +
    Start
    + < < inner_block > > +.
    + State +.
    + exception exc; +
    + pragma exception_init (inner_block.exc,-20001); +
    + start +.
    + raise_application_error (-20001, "Error"); +
    + exception +.
    + What then outer_block.exc +.
    + dbms_output.put_line ("' outdoor Exception caught"); +
    + What then inner_block.exc +.
    + dbms_output.put_line ("'Inner Exception caught"); +
    + end; +
    end;


    Error on line 1
    ORA-06550: line 4, column 38:
    PLS-00103: encountered the symbol ". «» When expecting one of the following values:

    ), = >
    The symbol"were replaced by". "to continue.
    ORA-06550: line 9, column 42:
    PLS-00103: encountered the symbol ". «» When expecting one of the following values:

    ), = >
    The symbol"were replaced by". "to continue.



    Question:
    Pourraient several exceptions with the same name of the exception defined in the set of nested blocks plsql assign error codes using the pragma EXCEPTION_INIT? If there are errors in the PLSQL 2 blocks and 3, please suggest.
    If the same thing could be accomplished by other methods, please explain.

    The problem in your code block 2 is that you have not only used the same name of the exception, but you have assigned them with the same exception code. If the code is different so it will work...

    SQL> set serverout on
    SQL> ed
    Wrote file afiedt.buf
    
      1  <>
      2  declare
      3      exc exception;
      4      pragma exception_init(exc,-20001);
      5  begin
      6      <>
      7      declare
      8          exc exception;
      9          pragma exception_init(exc,-20002);
     10      begin
     11          raise_application_error(-20002,'Error raised');
     12      exception
     13          when outer_block.exc then
     14              dbms_output.put_line('outer Exception caught ' );
     15          when inner_block.exc then
     16              dbms_output.put_line('Inner Exception caught ' );
     17      end;
     18* end;
    SQL> /
    Inner Exception caught
    
    PL/SQL procedure successfully completed.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  <>
      2  declare
      3      exc exception;
      4      pragma exception_init(exc,-20001);
      5  begin
      6      <>
      7      declare
      8          exc exception;
      9          pragma exception_init(exc,-20002);
     10      begin
     11          raise_application_error(-20001,'Error raised');
     12      exception
     13          when outer_block.exc then
     14              dbms_output.put_line('outer Exception caught ' );
     15          when inner_block.exc then
     16              dbms_output.put_line('Inner Exception caught ' );
     17      end;
     18* end;
    SQL> /
    outer Exception caught
    
    PL/SQL procedure successfully completed.
    
  • Set the scale of thermocouple at table for a channel in the task

    I create a task that contains 9 measures voltage and 10 by thermocouple programmatically. All the thermocouples are of Type T. I just want to read one of the thermocouples up to the limit of 30 k. NOR for the Type T is 73 K.

    I understand that the lira below their limit thermocouples OR is to change the scale type to table using a property DAQmx Channel node. However, because I take different types of measures, I need to isolate the channel particularly thermocouple. If I move the entire task to the node property DAQmx channel and try to set the scale of the type of thermocouple to table, I get an error because the voltage channels do not support this property. I can't understand how to get individually on channels of the task. I don't want to separate the measures into two tasks, because then I have to do to synchronize the clocks of additional programming.

    I have more than one idea: use a DAQmx create task VI at the beginning. Do a global virtual channel to MAX for the thermocouple that I want to change the type of ladder for. Place a constant for this virtual channel and run through the DAQmx Channel property. Use the task of creating DAQmx to create a task containing this global virtual channel. Pass this task to a bunch of DAQmx create Virtual Channel screws to add other measures to the task.

    This makes a lot of the scalability of my program and seems to be the wrong shape in general. Looks like there should be an easier way to do it. Any ideas? Thank you!

    Hello

    Try to use the property node of channel Active channels (ActiveChans) that is by specifying the string "isolated" as its input, and then adding the (HAVE. Themcpl.ScaleType) in developing the property node even by setting its entry. The property node Active channels specifies a list of virtual to change channels or virtual channel. Virtual channels are in a specific job. NOR-DAQmx configure all channels in the task if you do not set this property

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

  • How to access QML object to display the error message.

    Hi all

    I have a request. I got a login screen ("asset:///qml/screenLogin.qml"). "Connect" OB button I click sendt asks the server sending the XML data as a response.

    After that, I am parsing the XML data by using Connection Manager. Code is below:

    /*
     * LoginHandler.cpp
     *
     *  Created on: Jan 15, 2013
     *      Author: Ekansh
     */
    
    /*Parsing the Login Response Structure.
    
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    
     */
    
    //#include 
    #include "loginhandler.hpp"
    
    #include 
    #include 
    #include 
    #include 
    #include `
    #include 
    #include 
    
    namespace bb {
    namespace cascades {
    
    LoginHandler::LoginHandler() {
        // TODO Auto-generated constructor stub
    
    }
    
    LoginHandler::~LoginHandler() {
        // TODO Auto-generated destructor stub
    }
    
    bool LoginHandler::startDocument() {
        qDebug() << "Start of the document.";
        return true;
    }
    
    bool LoginHandler::endDocument() {
        qDebug() << "End of the document.";
        return true;
    }
    
    bool LoginHandler::startElement(const QString &namespaceURI,
            const QString &localName, const QString &qName,
            const QXmlAttributes &atts) {
        qDebug() << "Start of element" << qName;
        for (int i = 0; i < atts.length(); ++i)
            qDebug() << "  " << atts.qName(i) << "=" << atts.value(i);
    
        return true;
    }
    
    bool LoginHandler::endElement(const QString &namespaceURI,
            const QString &localName, const QString &qName) {
        qDebug() << "End of element" << qName;
    
        if (qName == "sessionid") {
            sessionid = tagValue;
            qDebug() << "sessionid:: " << sessionid;
        } else if (qName == "error") {
            error = tagValue;
            qDebug() << "error:: " << error;
    
            /*QmlDocument *qml = QmlDocument::create("asset:///qml/screenLogin.qml");
            //Container *root = qml->createRootObject();
            AbstractPane *root = qml->createRootObject();
            QObject *newLabel = root->findChild("errorObject");
    
            if (newLabel)
                newLabel->setProperty("text", "error");*/
    
        }
        return true;
    }
    
    bool LoginHandler::fatalError(const QXmlParseException & exception) {
        qWarning()
                << QString("Fatal error on line %1, column %2: %3").arg(
                        exception.lineNumber()).arg(exception.columnNumber()).arg(
                        exception.message());
    
        return false;
    }
    
    bool LoginHandler::characters(const QString &str) {
        qDebug() << "Characters" << str;
        tagValue = str;
        return true;
    }
    } /* namespace cascades */
    } /* namespace bb */
    

    When I put the wrong credentials, I want an error message to display on login QML.

    See the code in the EndElement this handler method.

    But I am not able set the error message when the connection QML.

    Help, please.

    You can set the label with the message as below. Condition that you specified label with the same "errorLbl" objectname qml

    QObject *lblError = bb::cascades::Application::instance()->findChild("errorLbl");
        if (lblError)
            lblError->setProperty("text", "error");
    

    -Dishooom

    I hope this helps...

  • Change the Error Message of the presentation in double Page

    Hello

    How can I change the error of double page layout in apex?
    I'm currently going to another page, but I want to change the error message.

    The vehicle has currently has to continue related
    Error ERR-3331 page had already been provided and cannot be resubmitted.
    link OK.

    I would like to say

    The page had already been supplied and cannot be resubmitted
    Conitue bound, who will return to the page.

    I want the link OK and the error code.

    I'm still new to APEX, so I don't know where to go to fix this.
    Can anyone help in this area? Is this even possible, is there another solution to this?

    I use the template buttons and most of my pages are model based also.

    Thank you
    Mary

    Published by: Lucky on January 14, 2010 07:38

    Published by: Lucky on January 15, 2010 08:44

    Published by: Lucky on January 19, 2010 07:36

    Mary:

    Model based buttons are indeed harder to gray-out/disable HTML buttons are. Demanding that the other buttons on the page are also subject to the same action more complicated the problem.
    It may be possible to have your custom error message to return only for error "dup submission."

    Change the model of error as follows

    Set the "Error Page template" in the "error page control model ' as '.
    #MESSAGE #.
    In the footer of the model section add {code}

    {code}

    CITY

    Published by: city has on January 19, 2010 10:52

  • After you install Windows Vista, I said that I have 30 days to activate it, but when I type my product code, I get an error message saying: I don't have a service pack installed.

    I put vista on my computer and it says I have 30 days to activate, but when I type in my product code I get an error message. I do not have a service pack installed, this is the problem? And if so how to obtain the service pack and what one should I get? I also have a problem with my automatic updates... many of them fail to install. How can I prevent that to happen?

    original title: product activation key

    Hello

    1. you receive an error message during the Windows update fails?

    Problem with Windows Vista Activation:

    Step 1:

    For the problem with the activation of Windows Vista, I suggest that you check the links below that would help you to the activation of Windows Vista.

    How to activate Windows Vista

    http://support.Microsoft.com/kb/940315

    You may be unable to activate Windows Vista over the Internet by using the Windows Activation Wizard of

    http://support.Microsoft.com/kb/933177

    Activating Windows: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/activating-Windows-frequently-asked-questions

    Step 2:

    Windows Vista has two service packs you can install service pack 1, and then later you can install service pack 2 on the computer.

    Service pack (SP) is an update of Windows, often combining previously released updates, that helps make Windows more reliable.

    To download the service pack, click the link below.

    Service Pack Center

    http://Windows.Microsoft.com/en-us/Windows/downloads/service-packs

    Problem with Windows Update:

    Try to reset the Windows Update components.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    See also:

    Problems with installing updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

  • iMovie 10.1.1 set the duration of the clip of stills

    Haven't tried Google or none this result.  It seems that Apple continues to change it from one version to the other.  I use iMovie on Mac OS - X 10.11.3 10.1.1.  I'm taking about 380 still images and create a stop-motion video.  I want each image to play for about 0.1 seconds.  When I imported the image he set the duration of the 10 seconds for each clip.  I thought it would be easy to change after the fact.  May not know how!   Thanks for any help.

    In turn should I use different software for this task?

    Select all your still images in the timeline and click the information above the observer (little "i" in a circle).  Enter the length desired in the "Time" box and press return.  The shortest time setting seem to be 0.2 seconds.

    Geoff.

  • CAN´t set the duration of an appointment in the iCloud between Outlook 2013 calendar

    Hello, I have can´t set the duration of an appointment in the iCloud calendar between Outlook 2013, when I want to set the time, it just made me put ¨am¨, I can´t create it after midday (¨pm¨).

    Hope someone of you can help me.

    THX

    Hey Bernaragon,

    I understand that you are having problems with the creation of a calendar to your iCloud account in Outlook. Let's see if we can get smooth it.

    For most of the problems with iCloud for Windows can be solved in two steps of troubleshooting. The first being to toggle synchronization of calendar and then put it back in the iCloud for Windows app. The second being would ensure that the Add on Outlook to iCloud is turned on. Take a look at the article below for more details on how to do these steps.

    Get help using Outlook with iCloud for Windows
    https://support.Apple.com/en-us/HT204571

    Let me know helps fifths.

    Take it easy

  • How can I set the default font size and type for the outgoing Hotmail mail?

    How can I set the default font size and type for the outgoing Hotmail mail?

    Hi Dale,

    What is the email client do you use?

    Outlook can be configured per - start Outlook-> Tools-> Options-> mail-> fixed Format and fonts... Select the font and size you need... Click ok on all screens.

    I hope this helps.

  • I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of

    I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of image). Adobe staff question: can I expect to find this option in a future release?

    Hi Pcaubi,

    There is no such updates for the same from now.

    I suggest you to please put in a feature request to: Photoshop community customer family

    Kind regards

    Tanuj

  • Have set up my own domain and linked to my portfolio but I get an error message when I type the URL, y at - it somewhere I need to "publish" the site?

    Have set up my own domain and linked to my portfolio but I get an error message when I type the URL, y at - it somewhere I need to "publish" the site?

    To all those who have suffered from this problem of background, there is a "Publish" button down green...

  • How can I set the long data type by default

    a query that I want to run:

    exec DBMS_METADATA. SET_TRANSFORM_PARAM (DBMS_METADATA. False SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES',);

    result:

    E

    ;

    ;

    45

    ;

    45

    ;

    45

    ;

    45

    ;

    S

    45

    I'm not sure but maybe I need set the long size before the race top query. But when I try to put long size gives below error. Also, I put below an explanation so help.

    "The output of DBMS_METADATA.GET_DDL is a LONG data type." When you use SQL * Plus, your output may be truncated by default. "Deliver the following SQL * Plus command before issuing the DBMS_METADATA.GET_DDL statement to make sure your output is not truncated:

    SQL> SET LONG 9999

    error:

    Unhandled SET statement:

    "SET 9999 LONG."

    Change SQL * PLus (login.sql) user profile or the site profile (glogin.sql) and add:

    THE VALUE LONG 9999

    SY.

  • How to set the default duration through the effects of the dissolution?

    How to set the default duration through the effects of the dissolution? I use it on all the titles I would add, and I add a large number of titles on my clips and change the duration of each crossing simple dissolution effect is a little easy, but a lot of time.

    Or if there is simply a way to add titles giving cross them dissolve effect in case of default of a predefined, which would also be very useful. Enjoy all the tips

    Go to Preferences > general, then set it to "video Transition default Duration", but many executives you want it to be.

    Note that this applies to everything that you set your default transition, which is chained by default.

    Hope that helps!

  • Is it possible to determine/set MIME type for the content generated by the CFC?

    In short, my onCFCRequest() method is a manual invocation of the component and sends it the arguments.

    Let's say, for example, I call a component located at www.coms.template

    Is it possible for me to do something in a method called in this model component so that when she returns the generated content, and we are now in the onCFCRequest() method, I can watch the content generated and determine/game/use the appropriate MIME type?

    My methods can generate JSON, WDDX, CSS, Javascript and HTML, and I want to make sure that they are used like the mimetypes appropriate when their content is sent to the browser:

    • Text/json = JSON
    • WDDX = text/xml
    • JavaScript = application/x-javascript
    • CSS = text/css
    • HTML = text/html
    • Other = text/plain

    Well... you know what content you produce, so that the calling code do not need to guess, you can just tell him. Return a structure that includes the response data only one key, and type in another.

    And you set the type MIME for a response to help

    --

    Adam

Maybe you are looking for

  • How to actually update Firefox after downloading.

    I have Ubuntu (not sure which version) and just downloaded Firefox 6 update. After downloading, I extracted all the files in the zip folder. Now, I don't know what to do. I can't find anything that says "updated here" or something like that. How can

  • How to enable the Support of Legacy desktop Z240

    Hello Does anyone know how to activate the legacy on Z240 workstation support? Under "secure boot configuration" in the BIOS I chose "Legacy Support enable and disable start-up secure", but after I save and reboot, it reverses to 'disable Legacy Supp

  • Satellite A200 - 1 3 - where to find the drivers for Windows XP?

    Hello Well, I have a problem, I tried to find the drivers for my A200 - 1 3 for XP and me looked allot, but still I could not find anything. If anyone has them or knows if only I can get of them that I would be really grateful. Thank you.

  • Lenovo ideapad 100 s reset does not work

    New computer with windows 10 and reset function won't work... No idea what happened, was a disc and restarted my system. PC turns on, shows lenovo and windows does not start. Entered into reset mode, computer says unable to perform the reset, so I tr

  • File operation

    Hello I find difficulty in the following issue, When I'm in a file operation using the method of Queuing for a loop to another loop, I get the previous values measured at the beginning of the file. To remove it, I blush every time in the queue, but t