Problem in the Procedure GET_MATCHING

THE PROCEDURE JOB : GET compare BETWEEN ANY WORD IN TABLE dynamic for Each character but the loop not stop when i run the procedure
please help me i have frustration ...thanks for all team support
BODY Procedure :
CREATE OR REPLACE PROCEDURE APPS.get_matching
IS
CURSOR parent_data_cur
IS
SELECT *
FROM xxx_match_people;
CURSOR child_data_cur
IS
SELECT *
FROM xxx_match_people;
v_start NUMBER := 1;
v_end NUMBER := 1;
v_parent_name_substr VARCHAR2(100);
v_child_name_substr VARCHAR2(100);
BEGIN
FOR i_rec IN parent_data_cur
LOOP
FOR j_rec IN child_data_cur
LOOP
IF i_rec.ID <> j_rec.ID
THEN
IF LENGTH (TRIM (i_rec.NAME)) = LENGTH (TRIM (j_rec.NAME))
THEN
LOOP
v_parent_name_substr := SUBSTR (TRIM (i_rec.NAME), v_start, v_end);
v_child_name_substr := SUBSTR (TRIM (j_rec.NAME), v_start, v_end);
IF v_parent_name_substr = v_child_name_substr
OR ( v_parent_name_substr IN ('?', '?') AND v_child_name_substr IN ('?', '?')
OR v_parent_name_substr IN ('??', '??') AND v_child_name_substr IN ('??', '??')
OR v_parent_name_substr IN ('?', '?') AND v_child_name_substr IN ('?', '?')
OR v_parent_name_substr IN ('?', '?') AND v_child_name_substr IN ('?', '?')
THEN
DBMS_OUTPUT.put_line
( 'Character no. '
|| v_start
|| ' value '
|| v_parent_name_substr
|| ' in parent cursor = character no. '
|| v_start
|| ' value '
|| v_child_name_substr
|| ' in child cursor'
v_start := v_start + 1;
END IF;
EXIT WHEN v_start > LENGTH (TRIM (j_rec.NAME));
END LOOP;
END IF;
END IF;
END LOOP;
END LOOP;
END get_matching;
/

the same Example : On Table Per_all_people_f
CREATE OR REPLACE PROCEDURE APPS.get_matching
IS
CURSOR parent_data_cur
IS
SELECT *
FROM per_all_people_f;
CURSOR child_data_cur
IS
SELECT *
FROM per_all_people_f;
v_start NUMBER := 0;
v_end NUMBER := 1;
v_parent_name_substr VARCHAR2(100);
v_child_name_substr VARCHAR2(100);
BEGIN
FOR i_rec IN parent_data_cur
LOOP
FOR j_rec IN child_data_cur
LOOP
IF i_rec.PERSON_ID <> j_rec.PERSON_ID
THEN
IF LENGTH (TRIM (i_rec.FIRST_NAME)) = LENGTH (TRIM (j_rec.FIRST_NAME))
THEN
Loop
v_parent_name_substr := SUBSTR (TRIM (i_rec.FIRST_NAME), v_start, v_end);
v_child_name_substr := SUBSTR (TRIM (j_rec.FIRST_NAME), v_start, v_end);
IF v_parent_name_substr = v_child_name_substr
OR ( v_parent_name_substr IN ('A', 'A') AND v_child_name_substr IN ('M', 'M')
THEN
DBMS_OUTPUT.put_line
( 'Character no. '
|| v_start
|| ' value '
|| v_parent_name_substr
|| ' in parent cursor = character no. '
|| v_start
|| ' value '
|| v_child_name_substr
|| ' in child cursor'
v_start := v_start + 1;
END IF;
EXIT WHEN v_start > LENGTH (TRIM (j_rec.FIRST_NAME));
END LOOP;
END IF;
END IF;
END LOOP;
END LOOP;
END get_matching;
/

Similar Messages

  • Problem with the procedure Which uses DB links in it.

    hello All,
    I am working on Oracle 9.2.0.8.0
    In Select Statement when i use dblinks its working,
    but when i use same select statement in procedure its giving me error
    error info:
    PL/SQL: ORA-04052: error occurred when looking up remote object PUBLIX_2PT.PDX_DRUG@ERX2PT1
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03106: fatal two-task communication protocol error
    Code:
    select distinct field1,t2.field2,t3.field3
    from
    table1 t1,
    schema.table 2@2pt1 t2,
    scema.table2@2pt1 t3,
    and follows where conditions
    I need to create procedure for Crystal
    I created synonym locally and then tried to create procedure but still giving me the same error
    Any help will be appreciated

    On what platforms are the two databases running?
    If the 'Endianness' of the two platforms differs you are likely running into Bug #5671074
    (There is a one-off patch available for this bug)
    Message was edited by:
    Jens Petersen

  • My problem is on my Windows PC.  I am getting the error message, "The procedure entry point sqlite_3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I am told this is related to iTunes.  Any help?

    I use both a Mac and a PC.  My problem is on my Windows 7 PC.  I am getting the error message, "The procedure entry point sqlite_3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I am told this is related to iTunes.  Any help out there?  Thanks

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Since updating to 10.4 getting error message on startup 'AppleSyncNotifier.exe – Entry Point Not Found, The procedure entry point xmlTextReaderConstName could not be located in the dynamic link library libxml2.dll.'. How do I fix this annoying problem?

    Since updating to 10.4 I've been getting this error message on computer startup
    'AppleSyncNotifier.exe – Entry Point Not Found
    The procedure entry point xmlTextReaderConstName could not be located in the dynamic link library libxml2.dll.'.
    Please help me fix this annoying problem?
    belle

    This is the fix I got from discussions and it worked for me.  It is copied below.  I just did the manual fix which I have underlined. Good luck! Regards, Belle.
    This can occur because libmxl2.dll is not in your C:\Program Files\Common Files\Apple\Mobile Device Support folder.
    There have been some issues with this and other dlls not being in the right place (or not being everywhere they should be) since the 10.3.1.55 iTunes update.
    However, I note that the 10.4 iTunes update is now out - surprisingly quickly - so try installing that, rebooting, and see if your issue is solved.
    If it isn't, though, here's the manual fix:-
    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the libmxl2.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well.
    I actually had the issue with SQLite3.dll, and the above fix worked for me (I found it in an April 2010 posting!).
    I passed on the fix as above for the similar issue with libmxl2.dll to someone who had exactly your problem, and he reported that it fixed it for him.

  • When I start up the computer, the dialogue box opens and saying that the procedure entry point splite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I tried to fix this problem by redownloading itunes, but the problem still

    When I start up the computer, the dialogue box opens and saying that the procedure entry point splite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I tried to fix this problem by redownloading itunes, but the problem still persists.  How can I fix it?  thank you.

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • When I start up the computer, the dialogue box opens and saying that the procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I redownload itunes, but the problem still persists.  How can I fix this?

    When I start up the computer, the dialogue box opens and saying that the procedure entry point splite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.  I tried to fix this problem by redownloading itunes, but the problem still persists.  How can I fix it?  thank you.

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • I have a problem with ( AppleSyncNotifier.exe - Entry Point Not Found ) The procedure entry point sqlite3_wal_checkpoint could not be locate in the dynamic link library SWLite3.dll.

    I have a problem with ( AppleSyncNotifier.exe - Entry Point Not Found ) The procedure entry point sqlite3_wal_checkpoint could not be locate in the dynamic link library SWLite3.dll.

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • Problem:  The procedure entry point sqlite3_wd_checkpoint could not be located in the dynamic link library SQLite3.dll, Problem:  The procedure entry point sqlite3_wd_checkpoint could not be located in the dynamic link library SQLite3.dll

    Problem:  Every time the laptop is turned on, this message pops up:
    The procedure entry point sqlite3_wd_checkpoint could not be located in the dynamic link library SQLite3.dll
    Could someone please tell me if they have had the same problem and how they fixed it?  Thanking you in advance.  

    Sorry to inform you, that this is the iPod Classic Community forum, perhaps it would be best if you post your issue with the Microsoft Windows forum, or whatever software that is giving you this problem, but if it is iTunes try
    https://discussions.apple.com/community/itunes/itunes_for_windows
    Havea nice day!

  • HT4796 Are there any unanticipated problems in carrying out the procedure outlined for 'Windows Migration Assistant'?

    Are there any unanticipated problems in carrying out the procedure outlined in the 'Windows Migration Assistant' instructions?

    One I have seen mentioned a couple of times is it will set up an identical user account on the Mac, which has led to some problems.
    I don't know how to fix this since I haven't used Windows since 1995.

  • 1. The procedure called by CUSTOM.pll causes the problem when we use f60gen

    When CUSTOM.pll contains a call to a package that in turn calls a remote package, the CUSTOM.pll compile hangs forever.
    1. The procedure called by CUSTOM.pll causes the problem when we use f60gen. Though same procedure compiles successfully using "alter procedure compile" command.
    2. We have observed the problem happens due to synonym present on the remote database(db link).
    It doesn’t work if you are calling SYNONYM on remote database. It works, for calls to tables or procedures or packages in remote database if that object is OWNED DIRECTLY by the account to which dblink is connecting to.
    select object_name, object_type from user_objects@NH_SCM_ICE.DB.ATT.COM ;
    OBJECT_NAME OBJECT_TYPE
    FA_LOCATIONS SYNONYM
    FND_FLEX_VALUES SYNONYM

    The database link is created under the APPS user in the local database but connects to a different user (SWCS_ICE_SUPCHAIN) in the remote database.
    The user in the remote database does not own any objects. It only has synonyms to objects owned by apps and others.
    Incidentally, the hang also happens when trying to describe the remote package from the application tier (8.0.6.3 sqlplus) but the describe works fine from the DB tier (10gR2 sqlplus).

  • I got problem on installing iTunes. When I clicked iTunes out, two windows popped out. One said the procedure entry point CFAttributed String Create Mutable could not be located in the dynamic link library Core Foundation.dll.

    I got problem on installing iTunes. When I clicked iTunes out, two windows popped out. One said the procedure entry point CFAttributed String Create Mutable could not be located in the dynamic link library Core Foundation.dll. and one just said *Itunes was not installed correctly.  Please re install I Tunes Error 7 (windows error 127) . I've tried uninstalling and reinstalling it. But either way cant work. I really need some of your help! PLS HELP ME!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The error shares a similar pattern to that in the third box, so a similar approach should work. Look for CoreFoundation.dll in C:\Program Files (x86)\Common Files\Apple\Apple Application Support, delete it, then repair Apple Application Support.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • HT2534 I can't see the "none" option even though I followed the procedure step by step. What is the problem?

    I can't see the "none" option when trying to open an iTunes account even though I followed the procedure detailed in the apple website step by step. What is the problem?

    jimka_2001 wrote:
    What should I try next?
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Good day. I have a problem is a procedure to change the firmware? I have 5,0,1 but with our SIM only works 5,0,0

    good day. I have a problem is a procedure to change the firmware? I have 5,0,1 but with our SIM only works 5,0,0

    onix_76 wrote:
    how come? Documents also have on hand to buy as photo and check the box
    So what?  The second-hand shop you bought it from didn't follow the right procedures.  You also didn't follow the right procedures to make sure that iPhone was not in Activation Lock.  It's like buying a car for cash but not getting the title signed over to you.  It's not your car if you don' have the title.  And that's not legally your iPhone if the previous owner's Apple ID is still registered to the device for Find My iPhone/Activation Lock.
    Only a proof of purchase from the ORIGINAL retail store would do any good at all.  Return the device to where you bought it and demand your money back.  If they refuse, either get a lawyer and/or turn in the device to local police.  If you're in possession of stolen property, then the cops won't care about where you got it from.

  • Please tell me what's the problem with my procedure ..

    Hi all,
    Below is my procedure i created into a form.( i can't create procedure into table or vieew because there is already negative value )
    PROCEDURE REVERSE_money IS
    nCnt number(10);
    WS_VALID_USER_ID Varchar2(3);
    USER__VIEW_BUF USER_VIEW%ROWTYPE;
    PAYMENT_VIEW_BUF PAYMENT_VIEW%ROWTYPE;
    Cursor USER_VIEW_QRY is
    select * from USER_VIEW
    where USER_ENTERED_CASHIER = USER_VIEW_BUF.USER_ENTERED_CASHIER;
    Cursor PAYMENT_VIEW_QRY is
    select * from PAYMENT_VIEW
    where TOTAL = :PAYMENT_VIEW_SINGLE.TOTAL;
    BEGIN
    if nvl(:PAYMENT_VIEW_SINGLE.TOTAL,' ') = (:pAYMENT_VIEW_SINGLE.TOTAL*-1) then
    SELECT COUNT(*) INTO nCnt
    FROM cashier_auth
    WHERE cashier = UPPER(NVL(USER_VIEW_BUF.CASHIER,' '));
    IF (nCnt > 0) THEN
    WS_VALID_USER_ID := 'YES';
    ELSE
         WS_VALID_USER_ID := 'NO';
    END IF;
    end if;
    IF nvl(WS_VALID_USER_ID,' ') = 'NO' THEN
    MESSAGE(USER || ' is not authorized to enter nagative value to this cash transaction.');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    END;
    there is no error in this procedure when i compile it , but this procedure is not validating as i wanted, what i meant is is still let any user enter ('-') value.
    someone plese help me.

    Hi,
    pl/sql baby wrote:
    Hi all,
    Below is my procedure i created into a form.( i can't create procedure into table or vieew because there is already negative value ) Sorry, I don't understand this part.
    In fact, I don't understand the whole problem.
    Please explain what the procedure is supposed to do, and what's wrong with it.
    For example
    "The procedure is supposed to show a message and raise an error if ...
    That should happen when the USER is ... and PAYMENT_VIEW_SINGLE.TOTAL < 0, but it is not."
    Post SQL statements to create and populate the tables and views used (such as cashier_auth table). Include enough rows to re-create the problem.
    What are you trying to do in this line?
    if nvl(:PAYMENT_VIEW_SINGLE.TOTAL,' ') = (:pAYMENT_VIEW_SINGLE.TOTAL*-1) thenWhat is the data type of (:PAYMENT_VIEW_SINGLE.TOTAL? If it's a NUMBER, then the second argument of NVL should also be a NUMBER.
    Don't post unformatted code. Type &#123;code&#125; before and after the parts of your message containing code, to preserve spacing.

  • Execute the procedure has problem

    Hi all,
    I have the store procedure defined as
    vn_trunc_data (name varchar(32), version integer);
    I ran the command as below in sqlplus but I got the error message
    execute vn_trunc_data('test', 1);
    error message is ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1
    Is the execute statement thas the correct syntax. Please help.
    DP

    Hi,
    You have to check the assignment (of the variable 'version') inside the procedure.
    Check the following...
    ORA-06502: PL/SQL: numeric or value error string
    Cause:     An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action:     Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    cheers.

Maybe you are looking for

  • Cannot change font in HTML5 output

    Hi! I'm not aware what I do wrong. My form renders in HTML5 using default "Myriad Pro" font despite font I specify in design. I have checked XML source of the form and saw that "Myriad Pro" was never user. I'd like to use Arial and not Myriad that is

  • Cancel payment - void cheque & reverse posting

    Hi All, I have a request to cancel payment using FCH8 for a range of cheques. (Mass cancellation  eg.10 cheques at one go) Is there another t-code that can function the same way as FCH8 but for mass cancellation? Help much appreciated. Thanks.

  • FF and Safari position fix

    This was the last post in a thread earlier today. When no vertical scrollbar is required centered a web page will jump about 5px to the right compared to the position when scrollbar is present. I'm reposting it because I wanted everyone to have a cha

  • Illustrator CS4 and Bridge

    You can now launch Bridge from within illustrator CS4, but how do you benefit from it? Unlike when using Photoshop, double-clicking a file opens that image in PS, what would be the workflow for using it with illustrator. I don't see a purpose.

  • TS3988 Friends are reporting that some emails to me are bouncing back to them.  What might be wrong?

    Friends are reporting that some emails to me are bouncing back.  It is multiple folks with different email systems.  I do still receive most emails (I think!)  and there does not seem to be anything unique about the ones bouncing back to distinguish