Comparing a constant string with the procedure VARCHAR2 parameter

Hello.
I had a strange behavior of PL/SQL (propably I don't know something I should). I have a procedure:
PROCEDURE przetworzLinie(P_LINIA VARCHAR2) IS
BEGIN
  if not (nvl(pv_swde_section,'...') = 'SO') then
    CASE (p_linia)
      WHEN 'SN;' THEN      pv_swde_section := 'SN';
      WHEN 'SP;' THEN      pv_swde_section := 'SP';
      WHEN 'ST;' THEN      pv_swde_section := 'ST';
      WHEN 'SO;' THEN      pv_swde_section := 'SO';
      ELSE  NULL;
    END CASE;
  end if;
-- (...)
END;
The procedure is called breast:
procedure importuj(p_plik varchar2) is
  linia VARCHAR2(1000);
begin
  pv_plik := p_plik;
  pv_plikID := otworzPlik(pv_plik);
  loop
    linia := czytajlinie(swde_file);     -- calls UTL_FILE.read_line and return a line from file
    exit when instr(linia, 'SWDEX') = 1; -- end of SWDE file
    przetworzLinie(linia);
  end loop;
end importuj;
The strange thing is that this procedure przetworzLinie never change the pv_secton_swde package variable, because the expresion:
WHEN 'SN;'
is always FALSE, even when p_linia contains "SN;" string.

I solved this problem by replacing
CASE (p_linia)
with
CASE (substr(p_linia,1,3))
Please explain to me, why CASE (p_linia) is malfunctioning.
Thanks in advance :)

Published by: sandrine Sep 2, 2010 08:59

P.s., database is 10.2.0.3.0 (64-bit)

Check the length of the parameter p_linia and maybe a few extra spaces are added.

Tags: Database

Similar Questions

  • How to concatenate strings with the lines of a text file

    Hello
    I tried concatenate strings with the lines of a text file, but something is wrong with my code and I belive is the agruments I use in the cycle for. If anyone can help me I will appreciate it very much.
    My code is:
    [code]@echo off
    the value "input=C:\Users\123\Desktop\List.txt".
    for /f "usebackq tokens = *" % in (' input % ') do)
    the value 'str1 = C:\some directory\ ".
    the value ' str2 = %% ~ F '.
    the value "str3 = .pdf".
    the value "str4 = str1% str2% str3%.
    echo.%STR4%
    ) [/ code]
    and the text file is something like:
    121122 [code]
    122233
    123344
    124455 [/ code]
    But I get only one wrong answer and I have to run it like 3 times to get a real result and it is a mistake, the first two are empty spaces and gives the third one as the last line of the text file but repeated n times, where n is the number of lines in the text file.
    Result:
    [code] C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\Users\123\Desktop>concatenate.bat
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\some directory\124455.pdf
    C:\Users\123\Desktop>[/code]
    So if anyone has an idea about what is wrong please let me know.
    Concerning
    -Victor-

    Hi Victor,

    This forum is dedicated to the support of the Office of consumer Windows (fonts, colors, personal settings).  Since your question is about programming and usually outside the context of most of the customers, I suggest you post your question in the forums as http://msdn.microsoft.com - the Microsoft network to users will be more adapted to help you in your quest.
  • RAW - the procedure input parameter data type

    Hello

    I created a procedure (Pasted below). Getting error on execution, please help me to overcome the error.

    BEGIN

    Log ('6B6C6D', 6 August 12 COM ','.) TESt', 'OH', 'TUE', 'NOTRANSACT', '< ACORD > < SignonRq >', '000000E0LN1D000029FNSRRGTest', '000009N1D000029FNJ9OITest');

    END;

    ERROR

    Error report:
    ORA-06550: line 3, column 1:
    PLS-00306: wrong number or types of arguments in the call to the 'LOG '.
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:


    /************************ Procedure *************************/

    create or replace PROCEDURE log
    / * Object: StoredProcedure [dbo]. [LogTransactionBegin] Script Date: 06/07/2012 05:37:06 * /.
    (
    v_GUID IN RAW by DEFAULT NULL,
    v_STRT_TM in TIMESTAMP DEFAULT NULL,
    v_PRTN_NM IN VARCHAR2 DEFAULT NULL,
    v_ST_CD in CHAR NULL by DEFAULT,
    v_LN_OF_BUS IN VARCHAR2 DEFAULT NULL,
    v_TRN_TYP IN VARCHAR2 DEFAULT NULL,
    v_REQ_XML IN XMLTYPE DEFAULT NULL,
    v_INNR_RQUID IN VARCHAR2 DEFAULT NULL,
    v_OUTR_RQUID IN VARCHAR2 DEFAULT NULL
    )
    AS
    BEGIN
    INSERT INTO trn_log
    (GIRO_TRN_LOG_ID, STRT_TM, PRTN_NM, ST_CD, LN_OF_BUS, TRN_TYP, REQ_XML, INNR_RQUID, OUTR_RQUID)
    VALUES (v_GUID, v_STRT_TM, v_PRTN_NM, v_ST_CD, v_LN_OF_BUS, v_TRN_TYP, v_REQ_XML, v_INNR_RQUID, v_OUTR_RQUID);

    END;

    Please see the following commented lines:

    BEGIN
    
      Log(
        '6B6C6D'                       -- this is not a RAW
      , '06-Aug-12'                    -- this is not a TIMESTAMP
      , 'COM.TESt'
      , 'OH'
      , 'AUT'
      , 'NOTRANSACT'
      , ''            -- this is not an XMLType (not even valid XML)
      , '000000E0LN1D000029FNSRRGTest'
      , '000009N1D000029FNJ9OITest'
      );
    
    END;
    

    Use the correct data types and their manufacturers (if necessary).
    For example, you can build a RAW from a string with the HEXTORAW() function. An XMLType can be built by the XMLType() constructor or the XMLParse() function, etc.

  • Comparing NaN constant (s) with buggy results!

    Hey people NI Forum!

    I know that I should be very careful when comparisons on point numbers because of rounding and representation issues.

    That said, I completely took off guard when I wanted a Boolean "true" If a number is NOT equal to "NaN"... I wasn't thinking too, slinging just wire a conditional fast for Terminal loop for a few tests, I was doing a temporary VI and put in place with a primitive "does not correspond to" (instead of the "Not a number/path/refnum" primitives.)

    The result took me by surprise, and when I dug into it, it became even more strange... it turns out that comparing a single constant itself will produce unexpected results too!

    Is this how it has always been, or what ' s NEW in LV 2015?

    I've included a LV 2011 version if someone wants to try on an old version... I ran this on a Windows 7 PC.

    While it would not make sense, it's well documented behavior.

    Documentation:

    EQUAL? Function

    If you compare two entries with the value not a number, NaN or an entry with the NaN value to an entry with a different value, this function always returns FALSE. Use the is not a number/path/Refnum? function to compare one or more entries with a value of NaN.

    (even for different?)

  • Problem with the procedure. Help, please

    Schema: HR

    Here is the procedure I created, when I compile the procedure it works very well and without errors or warnings are displayed. However, when I run, I get "01031. 00000 - "insufficient privileges" "error. "I tried 'GRANT ALL HR', 'ANY GRANT to HR'.," to HR WITH ADMIN OPTION GRANT ' nothing works. Not sure is code that has questions or privileges.

    create or replace procedure new_create_PROC IS
    BEGIN
    EXECUTE IMMEDIATE 'CREATE TABLE NEW_CREATE1(EMP_ID NUMBER,EMP_NAME VARCHAR2(20))';
    END;
    /
    
    
    EXECUTE new_create_PROC;
    
    TE new_create_PROC;
    /
    

    Help, please.

    You are connected to the DB under what user? You must grant this user the CREATE TABLE privilege.

  • Replace the string with the formatted text

    Hello all - I'm back to my beloved project...

    I want to replace a string by a TextSelction (formatted text) and began with the famous feature of Jang FindAndReplaceString.
    Since my replacement comes from another document (sourceDoc), I edited to targetDoc activeDoc and introduced a second document (sourceDoc).
    The replacePara actually comes from a stone where he had been placed to avoid switch backwards between the documents in a book (where to find and replace) and source documents. In another function, I learned that information on the table requires the sourceDoc must remain open.

    • Of course, everything works fine until I want to insert the replacelement:
      erase line 26 is the string
    • Given that I do not insert a string, I skip lines 28 and 29 and try try line 30
    • On line 30 DocumentSource is Document object and replacePare object TextSelection. However, sourceDoc.replacePara is not set and
    • (as a result?) line 31 past the current contents of the Clipboard.

    Of course, there is a fog around me... and I need some sunshine.

    function FindAndReplacePara (targetDoc, findString, sourceDoc, replacePara, loopMax) {
      var tr = new TextRange();
      var restoreTR, frame = 0, loopCounter = 0, replacementCounter = 0;
      var findParams = new PropVals();
      var firstPgf = targetDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
      
      tr.beg.obj = tr.end.obj = firstPgf;             //  set up the starting text range as the very beginning
      tr.beg.offset = tr.end.offset = 0;              // of the flow. We'll move straight from beginning to end.
      trSaved = tr                                    // to come back after work
    
      findParams = AllocatePropVals(2);
      
      findParams[0].propIdent.num = Constants.FS_FindText;
      findParams[0].propVal.valType = Constants.FT_String;
      findParams[0].propVal.sval = findString;
      
      findParams[1].propIdent.num = Constants.FS_FindCustomizationFlags;
      findParams[1].propVal.valType = Constants.FT_Integer;
      findParams[1].propVal.ival = Constants.FF_FIND_CONSIDER_CASE;
    
      FA_errno = Constants.FE_Success;                // errno global, to be used to track the progress of the find and replace
      tr = targetDoc.Find(tr.beg, findParams);        // and do an initial find to get started.
      
      while(FA_errno === Constants.FE_Success && loopCounter++ < 2*loopMax) { //find and replace loop as long as we keep finding
        targetDoc.TextSelection = tr;                 // set up the text range to clear the original text
        targetDoc.Clear(0);                           // clear it
        
    //    targetDoc.AddText(tr.beg, replacePara);       // insert the new text at the original beginning of the text range
    //    tr.beg.offset += replacePara.length;          //  lets jimmy the text range in memory to place it directly after
        targetDoc.TextSelection = sourceDoc.replacePara;        // paste the whole replacement paragraph
        targetDoc.Paste (0);                          // <-- Current contents of clipboard is pasted !!!!
        if(FA_errno === Constants.FE_Success) {       // increment our return counter
          replacementCounter++;
        }
        FA_errno = Constants.FE_Success;              // ...  find the next instance. We'll reset FA_errno again just in case
        tr = targetDoc.Find(tr.beg, findParams);      // something screwy happened while we were replacing text.
      }
      targetDoc.ScrollToText(trSaved);                // we're done. Restore the document to it's original area of display
      return replacementCounter;
    } // --- end FindAndReplacePara
    

    Hi Klaus,

    Thanks for the explanation. I remember something like that GetTabRange of the way back. You have been quite patient and persistent with this project, indeed.

    So, as we are dealing with ranges of text here, I think that the only simple approach is to perform a copy and paste. There is no way to save a 'formatted' in a variable. The only super precise way would be to get a data structure of each text range TextItems in the sourceDoc, then meticulously recreate every element of the targetDoc. It would be very complicated, I think, so copy and paste seems the most logical. I wonder, though, if Miss me something, because I think that maybe you would have tried already so yes (?)

    In any case, I would do something like that, from line 30 of your original code sample (code untested here):

    App. ActiveDoc = sourceDoc;

    sourceDoc.TextSelection = replacePara;

    sourceDoc.Copy (0);

    App. ActiveDoc = targetDoc;

    targetDoc.Paste (0);

    ... etc.

    Does make sense, or am I barking the wrong tree, as they say?

    Russ

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • NEED HELP WITH THE PROCEDURE

    Hi, earlier I had a doubt using the function or procedure function or procedure? Thanks to all who helped. but I found a way to use task2e with procedure. I would like to insert the issue.

    Cumulative 2nd task spends point procedure
    You create a stored procedure called spRollupExpenseItem. This procedure updates
    the corresponding line in the BudgetItem table given a report of expenses and the expense category number
    number. The procedure contains three input parameters, the value of ERNo, the value of ECNO.
    and the amount of cumulative, as well as a single parameter of Boolean result.
    This is the logic of the procedure.
    · If the corresponding ExpenseReport line (ERStatus) status is DENIED or
    MEANWHILE, an application error is triggered. The output parameter is set to False.
    · Otherwise, the corresponding BudgetItem line is updated. The actual amount (BIActual) in the
    line corresponding BudgetItem are incremented by the input of the cumulative amount parameter.
    o the output parameter is set to True after running the update
    operation.


    good task2e can be used using procedure by housing 'OUT' in parameters.here is the code

    CREATE OR REPLACE PROCEDURE spRollupExpenseIetm
    (P_ERNO IN FULL, P_ECNO ENTIRE, WHOLE ROLLUP_AMOUNT, BOOLEAN P_OUTPUT) IS

    ERSTATUS_ERROR EXCEPTION;
    V_ERSTATUS EXPENSEREPORT. TYPE % ERSTATUS;
    BEGIN
    SELECT ERSTATUS FROM V_ERSTATUS
    OF EXPENSEREPORT
    WHERE ERNO = P_ERNO;

    IF (V_ERSTATUS = 'PENDING' OR 'DENIED' = V_ERSTATUS) THEN
    P_OUTPUT: = FALSE;
    RAISE ERSTATUS_ERROR;
    ON THE OTHER
    UPDATE BUDGETITEM
    SET BIACTUAL = BIACTUAL + ROLLUP_AMOUNT
    WHERE ECNO = P_ECNO;
    P_OUTPUT: = TRUE;
    END IF;
    EXCEPTION
    WHEN ERSTATUS_ERROR THEN
    RAISE_APPLICATION_ERROR (-20564, ' ERROR: ERSTATUS is either pending or DENIED ');
    END spRollupExpenseIetm;




    his compiled without errors. My next question is

    2f task create Rollup fees trigger
    You create a trigger called TR_RollupExpAmt. This trigger fires after the power to the
    approved expenses amount (ExpApprAmt) or the deletion of a row in the table ExpenseItem. The
    following points explain the logic of this trigger:
    · If updating the ExpApprAmt column, the cumulative amount should be the difference
    of the New.ExpApprAmt under the Old.ExpApprAmt.
    · If the deletion of a row of the table of ExpenseItem, the cumulative amount should be the
    the Old.ExpApprAmt negative.
    · To run the update rollup, you must call the spRollupExpenseItem procedure
    described in the 2nd special.
    · If the output of the spRollupExpenseItem procedure parameter is true, insert a line
    in the table (Log_Table) exception log.
    o the ExcText (message explaining the error) value should indicate the
    operation (update or delete) and the cumulative amount.
    o If the output of the spRollupExpenseItem procedure parameter is false,
    do nothing.


    to do this I found on the internet http://it.toolbox.com/blogs/oracle-guide/learn-plsql-procedures-and-functions-13030 where he explained in the example he adds the output in the "my_first_proc" procedure parameter
    p_an_out_parameter DATE

    Then, he calls this procedure like this
    () my_first_proc
    p_name = > v_employee,
    p_an_in_out_parameter = > v_number,
    p_an_out_parameter = > T_DATE);

    IAM so intend to do the same by task2f task2e call and check the P_OUTPUT value. If iam wrong please let me know.

    and iam confused with task2f is
    If updating the ExpApprAmt column, the cumulative amount should be the difference
    of the New.ExpApprAmt under the Old.ExpApprAmt.
    · If the deletion of a row of the table of ExpenseItem, the cumulative amount should be the
    the Old.ExpApprAmt negative.

    How do I know if it is updated or deleted?
    I hace an idea but don't know if its valid or does not check EXPAMT to null as
    if(:New.) EXPAMT = NULL)
    ........
    can I do that. I know confectioners question sorry to make u read the whole story.

    Hello

    Whenever you write code, you should lower lines to see the where to begin blocks BEGIN and end, what are multiline statements and things like that.
    Whenever you post the text on this site, type these 7 characters:

    {code}

    (small letters only, inside curly braces) before and after sections of formatted text.
    After exactly what is causing the error message. The line of the error message numbers are too high; have you not after a few empty lines?

    Section causing errors seems to be:

    ...
        IF (UPDATING) THEN
            UPDATE EXPENSEITEM
                SET EXPAPPRAMT = :NEW.EXPAPPRAMT - :OLD.EXPAPPRAMT    -- No semicolon here
                WHERE ECNO = :NEW.ECNO;
            spRollupExpenseIetm(V_ERNO, V_ECO, ROLLUP_AMOUNT, P_POUTPUT);
            IF(V_OUTPUT = TRUE) THEN
                insert into log_table
                    (excno, exctrigger, exctable, exckeyvalue, excdate, exctext)
                    values
                    (LOG_SEQ.NEXTVAL,
                    'TR_ROLLUPEXPAMT',
                    'EXPENSEITEM',
                    V_ECNO,
                    v_timestamp,
                    'ERROR WHILE UPDATING, ROLLUP AMOUNT = ' || ROLLUP_AMOUNT    -- Is this what you want?
                    );
            END IF;
        END IF;
    

    You had a semicolon in the middle of the UPDATE statement.
    I see no 14 lines obvoius error later. The first error risk fi END does not correctly interpret.

    I also changed the end of the INSERT statement.

    Don't forget to put a colon in the record names: NEWS and: OLD.

    Published by: Frank Kulash, 28 January 2010 06:42

  • Constant BSOD with the new laptop computer

    I bought a laptop Dell L521X are three or four weeks ago, and since then have had difficulties with the projection of thing regularly blue on me at arbitrary points. Those initial seemed to result from McAfee LiveSafe who settled on the laptop so I uninstalled this and these people arrested. However, since then he has been giving me an error called DRIVER_POWER_STATE_FAILURE he says is caused by ntoskrnl.exe. Blue screens seem to happen arbitrarily and not because of anything specific I'm doing on the laptop. It will almost always crash when it is in "standby", however, and a few times he broke down while I'm closing. I updated both drivers and BIOS, hoping that would solve the problem but neither helped. I thought that it could be a hardware problem but all the Dell diagnostics, I came back with nothing. I've been futzing with the thing for a while now trying to figure out what it is but I'm stumped. If someone wants to look at the crash dump files I the downloaded in a zip here: [x]

    I really want to fix this because I don't want to take over the laptop. I bought the thing because I had problems with my old, and here I will once more in trouble with the new! I hope you guys can help me. Thank you!

    DRIVER_IRQL_NOT_LESS_OR_EQUAL (d1)

    This indicates that a kernel-mode driver attempted to access pageable memory with a high IRQL.

    A driver tried to access a pageable (or that is completely invalid) address while the IRQL was too high. This bug check is usually caused by drivers who used a wrong address.

    STACK_TEXT:
    fffff880 '099013f8 fffff880' 018d636f: fffffa80 '13-57040 fffffa80' 118ac174 fffff880'09901460 00000000 00000000': 0 x 0
    "fffff880 ' 09901400 fffff880'd 018 7128: fffff880 ' 00000000 fffffa80 ' 100f5520 00000000' fffffa80 00000000' 00000000: ndis! ndisMSendCompleteNetBufferListsInternal + 0x10f
    fffff880 '099014-0 fffff880' 1009da83: fffffa80'132 ca 010 fffffa80 '132c88d0 00000000 00000000' fffffa80' 132bcb00: ndis! ndisMSendCompleteX + 0 x 188
    fffff880 '099014f0 fffffa80' 132ca 010: fffffa80'132c88d0 00000000 00000000' fffffa80 '132bcb00 fffffa80' 10eba1a0: SBFWIM + 0x2a83
    fffff880 '099014f8 fffffa80' 132c88d0: 00000000 00000000' fffffa80 '132bcb00 fffffa80' 10eba1a0 00000000' 00000000: 0xfffffa80'132 ca 010
    fffff880'09901500 00000000 00000000': fffffa80'132bcb00 fffffa80 '10eba1a0 00000000 00000000' fffffa80' 13f706b0: 0xfffffa80'132c88d0

    Gah... I suspected that this software to be a problem, but I wanted to be sure before recommending removal. Sunbelt Firewall is originally NETBIOS conflicts, I see quite often. It is quite problematic software (IMO), so I would remove as soon as POSSIBLE.

    Kind regards

    Patrick

  • CIAC 4.0 manual installation, problems with the procedure

    Hi all

    I m trying to install the latest version of the CIAC and I m facing some problems on the configuration phase.

    I m using the following document:

    Cisco_Intelligent_Automation_for_Cloud_4.0_Installation_Guide.PDF

    Downloaded from the portal of Cisco.

    On page 34, we can found the procedure for installing the adapter of REX.

    The procedure is very confused and not able to find where to put the REXAdapter.xml I m, that it points to C:\Rex\Deploy, but the CIAC device is based on linux and not able to find this file on the server of the portal I m.

    Also the adk.zip is absent from packs of automation CPO.

    Thanks in advance,

    Alex.

    The 4.0 unit has already installed RexAdapter. You can view the list of Service link adapters.

  • I use Adobe Acrobat DC and you want to get off at Acrobat XI. Please help me with the procedure. Thank you

    Hello

    I use Acrobat DC and want to upgrade it to Acrobat XI. What is the procedure so that I can use the same serial for Acrobat XI key. Waiting for your response. Thank you

    You can not. You need a key to series made for XI. These are no longer sold.

  • Estimate of the size of the dump file with the export query parameter

    Hi all

    I would like to ask questions about EXPORT utiliy. Can I estimate the size of the dump for export with the parameter file "application"? You can find my syntax exp on below?

    exp scwq/sCwq201 parfile = scw.par

    contents of the scw.par file.

    FILE ='/ u01/EXPDUMP/SCW. DMP ".
    TABLES IS MIMO. WFTRA
    JOURNAL ='/ u01/EXPDUMP/SCW. JOURNAL"
    CONSTRAINTS = NO.
    STATISTICS = NONE
    QUERY = "WHERE (Eurie > 8132560 AND IN (SELECT FROM mimo.objectcfg WHERE oname sobject = 'TICKET')) OR (Eurie > 188872 AND IN (SELECT FROM mimo.objectcfg WHERE objectname sobject = 'WORDER')) '"

    In fact, I know that without query to export file parameter. But I could not find a solution to my question...


    B.R

    Hello
    From what I've seen when you do 'query =' is not taken into account at all when estimating the size of the dumpfile no matter if you use blocks or statistics methods. All I can suggest you do is get the estimated size and then work manually on what percentage of lines you will be back and then just do a simple calculation.

    Kind regards
    Harry

    http://dbaharrison.blogspot.com

  • How to pass a single form filed with the second shape parameter

    Hi all,
    I get the custom form a requirment.already one, just added the button when the button on a new form opens, this form with a logical filed.here is the first form a single block dat filed pass the second shape parameter


    Kind regards
    Sandrine

    994418 wrote:
    Hi, HAMID

    Hi stephane
    Good here we solve you your problems. If you share the solution other people can get the same kind of help from you.

    Also when you check the option add any thread as a response, if it solved * [SOLVED] * to the left of your subject line.

    Hamid

    Mark correct/good to help others to get the right answers. *

  • Writable failing Volumes and Appstacks with "the device object parameter is not a valid object" at the launch of a .exe

    Previously, this error had been random between Appstacks and accessible volumes in writing, but became extremely coherent.   The full message is something like:

    C:\Program Files (x 86) \Mozilla Firefox\firefox.exe

    The device object parameter is not a valid object or is not attached to the volume specified by the file name.

    This accessible volume in writing will occur in a profile only (and UIA + profile) try to download and install the application, or what UIA only is only enabled when you try to run the installed applications.   It's almost as if the volume is not read/write permissions, but other information, such as the request for detailed information about the profiles are stored and used correctly.

    Running version 2.9

    Update - it seems that the question was of App - V Client being installed.

  • Need help with the procedure variable

    Hi guys,.

    I try to get the list of the TableName of a specific table and store it in a variable and use this variable to LOOP and remove specific data in the table. Here is my code, maybe that will be clearer...

    This procedure within a package

    PROCEDURE DeleteData (parCONTR_NBR IN VARCHAR2)
    AS
    v_TableName CMSR_MAPPING. TABLE_NAME % TYPE;

    BEGIN
    Extract the names of the tables
    SELECT TABLE_NAME
    IN v_TableName
    OF CMSR_MAPPING
    WHERE TABLE_TYPE <>'W '.
    AND ORDER_SEQ <>' 0'
    ORDER BY ORDER_SEQ DESC
    ;

    -Loop on the name of the table
    FOR v_Index in 1... v_TableName.Count LOOP
    -Check that the table name and remove from the respectable table -.
    CASE v_TableName (v_Index)
    WHEN "CMSW_CONTR" THEN
    REMOVE FROM CMSW_CONTR
    WHERE CONTR_NBR = parCONTR_NBR;
    WHEN "CMSW_AMNDS" THEN
    REMOVE FROM CMSW_AMNDS
    WHERE CONTR_NBR = parCONTR_NBR;

    END CASE;

    END LOOP;

    END;

    When I run it, I get the following compile on this line error of TO v_Index IN 1.. v_TableName.COUNT LOOP:
    PLS-00487: Invalid reference to the variable 'V_TABLENAME '.

    Can someone help with this? What I'm doing wrong here?

    Like this?

    /* Formatted on 5/20/2011 12:37:05 PM (QP5 v5.149.1003.31008) */
    CREATE OR REPLACE PROCEDURE DeleteData (parCONTR_NBR IN VARCHAR2)
    IS
    BEGIN
       FOR c IN (  SELECT TABLE_NAME v_TableName
                     FROM CMSR_MAPPING
                    WHERE TABLE_TYPE != 'W' AND ORDER_SEQ != '0'
                 ORDER BY ORDER_SEQ DESC)
       LOOP
          -- Verify the table name and delete in respectable table --
          --( I always hate when my tables aren't respectable !)
          CASE c.v_TableName
             WHEN 'CMSW_CONTR'
             THEN
                DELETE FROM CMSW_CONTR
                      WHERE CONTR_NBR = parCONTR_NBR;
             WHEN 'CMSW_AMNDS'
             THEN
                DELETE FROM CMSW_AMNDS
                      WHERE CONTR_NBR = parCONTR_NBR;
          END CASE;
       END LOOP;
    END;
    

    Obviously I don't have your data and do not know exactly what is the whole procedure
    but you could not do?

    /* Formatted on 5/20/2011 12:49:07 PM (QP5 v5.149.1003.31008) */
    CREATE OR REPLACE PROCEDURE DeleteData (parCONTR_NBR IN VARCHAR2)
    IS
    BEGIN
       DELETE FROM CMSW_CONTR
             WHERE CONTR_NBR = parCONTR_NBR
                   AND EXISTS
                          (SELECT 1
                             FROM CMSR_MAPPING
                            WHERE     TABLE_TYPE != 'W'
                                  AND ORDER_SEQ != '0'
                                  AND table_name = 'CMSW_CONTR');
    
       DELETE FROM CMSW_AMNDS
             WHERE CONTR_NBR = parCONTR_NBR
                   AND EXISTS
                          (SELECT 1
                             FROM CMSR_MAPPING
                            WHERE     TABLE_TYPE != 'W'
                                  AND ORDER_SEQ != '0'
                                  AND table_name = 'CMSW_AMNDS');
    END;
    

    Published by: pollywog may 20, 2011 12:49

Maybe you are looking for

  • How to recover old emails?

    My phone died and has been recycled as well as hard drive... both are gone. Can you recover these mails for me so that I can add to this new laptop? I have two accounts... one for me and one for my wife... She had e-mails that she saved and who have

  • Reset the printer: what you need to know

    There are a growing number of messages in this forum and elsewhere in the internet with the steps to do a reset on different printers.  Reset to will sometimes fix problems, so resetting is not the issue. A few resets require you to enter key combina

  • Necessary German spelling checker

    I would get a German spelling checker in Firefox (similar to the way in which it exists for Thunderbird). This spelling checker can be installed in Firefox 4?

  • Portege Z835 frozen at startup but now nothing

    I have a Z835, only 4 months but now frozen to screen "starting Windows." MS Windows logo was lit in his charming way, but I can't go any further.After that, I can only make a hard stop using the power button.The laptop worked well for 3 months, but

  • Problem Solution Center IdeaPad Y700-14ISK

    Ran solution Center and got the result WVC007002-RL8ZHK after the test of mathematical operations code failed. Pretty sure it's a false positive, but someone has a solution for this problem to come?