Why there is a error in this query ?

why there is a error in this query ?
declare
v_exist pls_integer;
v_search varchar2(255) := '175';
v_sql varchar2(255);
begin
for s in
(select table_name, column_name
from user_tab_columns
where data_type like '%CHAR%'
order by table_name, column_name)
loop
v_sql := 'select count(*) from '||s.table_name||
' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39) ||') > 0';
execute immediate v_sql into v_exist;
if v_exist > 0 then
dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
end if;
end loop;
end;
Error:
The following error has occurred:
ORA-00933: SQL command not properly ended
ORA-06512: at line 14
Edited by: user575089 on Dec 23, 2009 4:14 AM
Edited by: user575089 on Dec 23, 2009 4:14 AM

See, Right now i am in schema and see below :
set serveroutput on;
declare
v_exist pls_integer;
v_search varchar2(255) := 'SCOTT';
v_sql varchar2(255);
begin
for s in
(select '"'||table_name||'"' table_name,'"'||column_name||'"' column_name
from user_tab_columns
where data_type like '%CHAR%'
and table_name not like '%$%'
order by table_name, column_name)
loop
v_sql := 'select count(*) from '||s.table_name||' where instr('||s.column_name||',' || CHR(39)|| v_search|| CHR(39)||') > 0';
--dbms_output.put_line(v_sql);
--execute immediate v_sql;
execute immediate v_sql into v_exist;
if v_exist > 0 then
dbms_output.put_line(s.table_name||'.'||s.column_name||' matches the string.');
end if;
end loop;
end;
"EMP"."ENAME" matches the string.
"EXCEPTIONS"."OWNER" matches the string.
"FLOW_TABLE"."OBJECT_OWNER" matches the string.
"MYEMP"."ENAME" matches the string.
PL/SQL procedure successfully completed.
I am getting output; that i search "SCOTT" word in my search string.

Similar Messages

  • There was an error opening this document. Could not repair file

    Hi,
    I generated a report in PDF format on web. I'm able to save this file and reopen in Acrobat Reader(4.0). But only for a specific query criteria, it generates,able to save the file but not able to open. It gives the message "There was an error opening this document. Could not repair file" when I'm trying to open the PDF file. My query criteria is search based on Location,From Date and To Date. I'm surprised why it doesn't open, only for a specific query criteria, more over when it is able to generate it. Can somebody help me out.
    Thanks,
    Srinivasa Karri.

    Srinivasa,
    Please try destype=file and desnformat=pdf , save the PDF in the filesystem. Then open using the Acrobat reader not with the browser and see whether you get this error
    Thanks
    The Oracle Reports Team

  • Another "there was an error opening this document. this file cannot be found"-question

    Hello people, as the title suggests, i have another question regarding the "there was an error opening this document. this file cannot be found" error. I have searched on Google and on these forums but i havent found an answer to my particular case (sorry if i overlooked it).
    I work at a supportdesk for a company that uses Windows XP with Adobe Reader version 8.1.3.
    Users are getting this error when they access a PDF file placed on a (mapped) networkdrive. Contrary to some other cases i have found on this forum, spaces are handled without a problem. But a comma in the name of one of the folders that contain the PDF file are what causes this error.
    i.e.:
    Opening the following path results in the error:
    L:\X, Y & Z\adobe.pdf
    Removing the comma so the path becomes:
    L:\X Y & Z\adobe.pdf
    works just fine.
    So far our workaround has always been to simply remove the comma and move on, but I've been wondering why this comma is such a problem for Adobe Reader. As far as i know Adobe Reader is the only program we use that has this issue, M$ Word works just fine with it to name an example.
    To sum my questions up:
    - Why is comma (,) a problem for Adobe Reader?
    - Have i missed any patches/new versions where this issue has been addressed?
    - What is Adobe's stance on this, and are there any plans to "fix" this?

    Ok, nevermind, we just found the problem
    It's not Adobe Reader that is causing this, but another program the company uses to manage/distribute/authorise programs that users are allowed to access (Scense). I had never even considered another problem could have caused this for Reader.

  • There was an error opening this document. This file is already open or in use by another application

    I cannot open any PDF documents. I receive one of two error messages:
    "There was an error opening this document. This file is already open or in use by another application."
    "This file is in use. Enter a new name or close the file that's open in another program."
    I do not know how to open the document in another program, so I am perplexed how it could be open in another program.
    I tried Repair the Adobe Installation from within Adobe Reader and from the Control Panel (Control Panel\Programs\Programs and Features\Uninstall or change a program) using the Change option. I'm assuming they are the same process, although I'm not sure. Neither method worked. I rebooted after each.
    I'm at work at a huge federal agency, so we're of course on a network. It takes several days to receive agency IT help, which is why I'm asking here. I can open Word and text documents. Nothing else seems to be amiss on the 'ol pc.
    Adobe Reader 11.0.05
    Windows 7
    As you can tell, I have only limited knowledge of the possible issues.
    Thanks!

    Shared network drive.
    I was not able to open the PDF documents via Notepad.
    Interestingly, and perhaps supportive of your hypothesis, I subsequently had problems with Outlook wherein I could not save or close an email I was writing because "you do not have permission." I rebooted my computer and now Outlook works fine (and it save my email, thank goodness), and I can open PDF documents.
    Hopefully it will stay this way. If not, I'll be back!
    Thank you very much for offering to help.
    All the Best,
    Mark

  • There was an error opening this document. The file is damaged and could not be repaired. Error mess

    Hello, I am hoping someone can help me. I have an invoicing program that allows me to send an invoice as a PDF to a customer in an email. It always worked fine but for some reason anyone that gets the PDF email attachment gets the message " There was an error opening this document. The file is damaged and could not be repaired". I don't know why this is suddenly happening. I downloaded the latest Adobe Reader 10.1 and that didn't help. I also downloaded the trial version of Adobe Acrobat X and that doesn't help either. I can open all PDFs on my drive but for some reason my program seems to have a problem converting or writing the invoice file to a PDF. Anybody able to help? Thank you very much!

    Hi Bill,
    Thanks for your response, I'll try and answer your questions as best a possible. I am not printing to anything, just emailing and I'm not sure what you mean by "the adobe PDF printer". I originally could not find for sure what acrobat I was using although there is a file in my C drive with acrobat 5.0. When I tried downloading an update I found for that version, it told me it couldnt download the update because the original is not there. I then downloaded the new trial version of acrobat X in the hopes that may work, but it did not change the issue. I believe my invoicing program uses some internal PDF program inbeded in the invoicing program for the emailing option it provides. I did send the email to myself and it is the same as I send to anyone else, it has that error message. The others in my office can open the invoicing program and email the PDF perfectly fine to themselves and to me, it's only when my computer tries to send the invoice through email that we have the problem. I can view the file (invoice) perfectly fine. I do not not how to check this encoding you are referring to. Do these details help you, to help me?? Thank you again for your help.

  • Adobe Application Manager indicates updates avail. -- attempts to download result in 'There was an error downloading this update. Please quit and try again later.' - pls advise!

    I have a Windows PC - OS: Win 7 Home Premium, SP1
    I recently had to have my hard drive replaced and, as result, had to reinstall the Adobe products I own: Acrobat 10, Premiere Elements & Photoshop 9
    I assume as part of reinstalling the software the Adobe Application Manager was installed as well - regardless, it indicates 'updates are available' -- however when I open the updater I am receiving the error message:
    'There was an error downloading this update. Please quit and try again later'
    The full message is as follows:
    'Adobe Photoshop Elements 9.0.3 Update
    There was an error downloading this update. Please quit and try again later.
    Photoshop Camera Raw 6.5 Update
    There was an error downloading this update. Please quit and try again later.
    Premiere Elements 9.0.1 Updater
    There was an error downloading this update. Please quit and try again later.'
    Please advise!! thank you kindly
    (secondary problem: whenever I open Elements or Photoshop and I am asked to log in with my Adobe ID, I get the error message 'Error. Photoshop.com services are currently unavailable. Please try again later or check your network connections. Error 400'. Now I know photoshop.com was replaced with Revel - but why is it consistently giving me the same error message? shouldn't it be updated by now or, specifically, is this indicative of a different problem when I attempt to login with my Adobe ID??)
    thank you so much for any help provided!!

    I don't know why you are getting these errors.  Try downloading & installing the updates manually from http://www.adobe.com/downloads/updates.html

  • Is there a faster form of this query?

    I received a table of corrections that have to be 'propagated' to a master table, i.e. the corrections table is composed of a few columns and every value of every column of every row must be used to update the corresponding row-column in the master table. Both tables have id columns that can be used to match rows from the two. The query I was given to do this was:
    update master a
    set a.calculated_error = ( select calculated_error from corrections b where b.id = a.id ),
    ... additional columns to update follow with the same syntax.
    The columns being updated are not indexed in either table.
    The query takes a very long time to run. I suppose I can see why, lots of queries on columns that are not indexed so each query involves a table scan.
    Is there a faster form of this query?
    Thanks,
    -=b

    In additon to Herald's suggestion, assuming he is correct in his assumption that corrections is small in relation to master, I might also consider updating all of the columns in one shot. something along the lines of:
    update master a
    set (a.calculated_error, a.first_add, a.second_add) = (select calculated_error, first_add, second_add
                                                          from corrections b where b.id = a.id )
    WHERE a.id in (SELECT id from corrections)Alternatively, if corrections.id is unique, I might also try creating a unique index on it and using an updateable join view like:
    UPDATE (SELECT a.calculated_error, a.first_add, b.second_add,
                   b.calculated_error new_calc, b.first_add new_first,
                   b.second_add new_second
            FROM master a, corrections b
            WHERE a.id = b.id)
    SET calculated_error = new_calc,
        first_add = new_first,
        second_add = new_secondIf you need to deal with NULLs in corrections, then use something like:
    SET first_add = NVL(new_first, first_add)John

  • Insert PDF Into 2013 Word Doc. Message There was an error opening this Doc This file cannot be found

    To All,
    I recently purchased a brand new Dell Laptop Inspiron 5521 Windows 7 Home Premium with purchase of Microsoft Office 2013 and already preinstalled Adobe Reader X. When trying to insert object being a saved pdf documentinto Word Doc., I keep receiving the following message: [There was an error opening this document. This file cannot be found.] Why?

    I don't know but I wouldn't expect it to work anyway. What do you expect to happen?

  • Acrobat 8 Standard: "There was an error opening this document. Invalid action object."

    Hi,
    Acrobat 8 had been working on my computer previously, up until this morning. Now any time I try to open a pdf, I get the error, "There was an error opening this document. Invalid action object." I can't get any pdfs on my computer to open, including pdfs that I know work as they opened fine last week. I don't think I've had any updates done to my computer over the weekend. Any ideas why it now doesn't work?

    Open Acrobat and go to HELP>Repair and see if that helps. After the repair, you may also want to do HELP>Updates.

  • There was an error loading this content...happens all the time

    at least three times I day I have to unplug and plug in the power as it gives me the "there was an error loading this content" message constantly...why does this happen?  This is a very frustrating device

    That will usually indicate a network issue.
    What is your current connection via speedtest.net
    Make sure DNS is set to auto (settings - general - network)
    If on wifi try ethernet
    You can go to istumbler, netstumbler or similar to see a report of the network, look for signal strength and noise

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • HI there, I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep gettin this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.

    I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep getting this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.
    Any help will be highly appreciated.
    Thanks a lot in advance.
    Sincerely,
    Uvaldocj@@
    Here is a list of the products I am troubled with:
      Adobe After Effects CS5 10.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Bridge CS5 4.0.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Extension Manager CS5 5.0 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Illustrator CS5 15.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe Pixel Bender Toolkit 2.5 Update
    There was an error downloading this update. Please quit and try again later.
      Adobe® InDesign® CS5 7.0.4 update
    There was an error downloading this update. Please quit and try again later.
      Dreamweaver CS5 11.0.4 Updater
    There was an error downloading this update. Please quit and try again later.
      Fireworks CS5 11.0.2 Update
    There was an error downloading this update. Please quit and try again later.
      Photoshop 12.0.4 update for Photoshop CS5
    There was an error downloading this update. Please quit and try again later.
      Photoshop Camera Raw 6.7 Update
    There was an error downloading this update. Please quit and try again later.

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • There was an error opening this document. Access denied.

    Greetings,
    When I did my taxes last year (March 2012), I downloaded some pdf files from the IRS.  Form 1040 was a writable file and I filled it out as needed.  This file was saved on a Vista machine running XP.  A few months ago, I upgraded that pc to be Windows 7 SP1.
    Today I'm getting ready to do my taxes for this year.  When I double click on last year's Form1040.pdf, I get the following error message:
    There was an error opening this document.  Access denied.
    Interestingly, I can open other pdf files, like the Form 1040 Instructions.  I do not think that I password protected my Form1040.pdf.  The reason that I think it isn't password protected is because I'm not being prompted to enter a password.
    I copied the file to an old spare XP machine (XP Home, version 2002, SP3) that I have and it opened fine.  It did not prompt for a password.  I printed copies of last year's forms from that XP machine, so this isn't an emergency for me, but it is mildly annoying that I can't figure out what's wrong.
    I have Adobe Reader XI version 11.0.2 installed on both machines (the Windows 7 machine and the old XP machine).
    To summarize, it was created on Vista, I can't open it with Windows 7, but I can open it with XP.
    Normally I would consider uploading the file in question, but in this case, I hope you'll agree that might be a bad idea!
    Advice on how to get this to work on Windows 7 would be appreciated.

    Pat Willener:  Thanks!  That solved the problem.
    For anyone else having this problem, here's a detailed list of how I used Pat's advice to solve my problem:
    1.  Right click on the problematic file
    2.  Select Properties
    3.  Select the Security tab
    4.  Press continue
    5.  In the "Permissions for MyFile.pdf" dialog, press "Add".
    6.  In the "Select Users or Groups" dialog, press "Advanced".
    7.  The next dialog that pops up is also named "Select Users or Groups".  Press "Find Now".
    8.  Scroll down the list of search results until you find your username.
    9.  Double click on your username.
    10. Press ok in the "Select Users or Groups" dialog.
    11.  Press ok in the "Permissions for MyFile.pdf" dialog
    12. Press ok in the Properties dialog.
    done.

Maybe you are looking for