Variable content inside "EXECUTE IMMEDIATE" does not properly.

Hello

I have the following package:
CREATE OR REPLACE PACKAGE "BACKUP"."PKG_BACKUP"
IS
PROCEDURE BACKUP_TABLE (TABLE_NAME IN VARCHAR);
END PKG_BACKUP;
/
CREATE OR REPLACE PACKAGE BODY "BACKUP"."PKG_BACKUP"
IS
PROCEDURE BACKUP_TABLE (TABLE_NAME IN VARCHAR) IS
MYDATE VARCHAR(10);
BEGIN
MYDATE := to_char(sysdate,'YYYYMMDD');
DBMS_OUTPUT.PUT_LINE(' Backing up '||TABLE_NAME||' table...');


EXECUTE IMMEDIATE 'CREATE TABLE "BACKUP"."'||TABLE_NAME||'_'||MYDATE||'" AS SELECT * FROM "MYSCHEMA"."'||TABLE_NAME||'" COMPRESSED';
END backup_table;
END "PKG_BACKUP";
/
However, every time that I run it, I get the following error:



SQL & gt; BACKUP exec. PKG_BACKUP. BACKUP_TABLE ('POOL');
* Save the POOL table... *.
START THE BACKUP. PKG_BACKUP. BACKUP_TABLE ('POOL'); END;

***
ERROR on line 1:
ORA-00942: table or view does not exist
* ORA-06512: at "BACKUP. PKG_BACKUP
", line 9."
* ORA-06512: at line 1 *.



Table exists, and the user running the statement has the appropriate privileges (I even run the content of "immediate execution" by hand and it works very well)



What Miss me?



Thanks in advance.

Frank R. says:

Boneist wrote:
The BACKUP user has the privs too?

Yes, he does.

What is Boneist to is that the SCHEMA. Pool table isn't visible in the PL/SQL code. The owners/running the package has explicit permissions to select from the SCHEMA. Pool table? While it may work to the breast for example of SQL * Plus as a standard CREATE table, this will use permissions based on roles. These permissions based on the roles are not available in the PL/SQL code. Ensure that select explicit grants have had on this table to the correct user.

Tags: Database

Similar Questions

  • Safari Web Clip does not properly

    Hello everyone

    I have a problem with safari Web Clip and that is does not properly for almost all pages, as example, I participate in a contest of therapy dbrand/unbox, and I really don't want to open the web page, whenever a new winner is announced, so I created a web clip, but it does not work well When I click the web clip icon he asked the location of the clip and when click on done, the web clip is from a different region and I can't fix.

    Is this some sort of bug or can I fix it myself?

    Web Clip still didn't work if the cut element remains in the exact same on exactly the same site. This is apparently not the case here.

    Dashboard widgets in general, are an old technology that has not been updated in many years.

  • In Mac Mail the contents of my email does not appear on the right side in mac maila

    In Mac Mail the contents of my email does not appear on the right side as it should. I checked all the settings, anyone ever had this problem before and going to knowwhat?

    Please, back up all data. Rebuild the mailbox.

  • Toshiba 47L7453DG - CEC does not properly using exernal amplifier

    I bought Toshiba 47L 7453 a few days ago.

    It is connected to the amplifier Onkyo TX-NR535 but CEC does not properly. Volume control works fine but On / Off or stanby does not at all.

    My previous TV Toshiba 42XV635DG was communicated by the CEC with the Onkyo even without any problem.

    The wire connection is HDMI 1.4 certified.
    Maybe the problem is with the firmware of the TV.

    Maybe someone had the same problem.

    Any suggestion?

    Thank you

    Hello

    From my point of few TV and amplifier are connected some CEC (Volume control) functions that work. I think you should check the auto power settings and HDMI CEC standby control system.

    Manual, you will find some important notes:
    http://www.Toshiba-OM.NET/LCD/PDF/English/L7453-424755-English.PDF

    _Page: 11_
    + You can control the basic functions of audio/video devices connected with s TV remote if you connect an HDMI-CEC compatible AV amplifier or playback device. +
    + If several devices are connected, the HDMI CEC control function may not work correctly. +

    _Page: 86 - 87_
    + When the point to activate the HDMI CEC control in the menu of HDMI CEC control configuration is defined on.
    + On, also allocated to individual features will be activated. +
    + When the connected equipment work, HDMI CEC control automatically detects the TV input selection. If the TV is in standby mode, it will be automatically reactivated. +
    + If the TV is off (standby), television will send a message turns off (standby) all devices HDMI CEC control connected to the TV. +

  • EQUIUM A60: graphic ATI does not properly

    I HAVE AN EQUIUM A60 1 YEAR MESSAGE SUDDENLY CRASH SAID: ATI GRAPHICS CARD DOES NOT PROPERLY.
    CAN'T FIND THE DRIVERS UPDATED ON ATI OR MICROSOFT HELP PLEASE?

    Hello

    Can you tell me when this message appears?
    First of all, you can try to update the graphics driver from Toshiba. It is a first step that you can try.
    Check this page for the driver download.
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

    Good bye

  • Content on the laptop does not match content on ipod

    Content on the laptop does not match content on ipod

    Content on the laptop does not match content on the ipod.

    How do you load the content on the iPod?  Manually (do drag and drop items on the iPod in iTunes), or automatically (set up screen settings of music from iPod in iTunes)?

    What content isn't is?  Unless your iTunes library is small enough to fit on the iPod completely, it is normal for the content on the laptop to not game content on the iPod.

  • executable file does not appear in the list of programs

    After installation of my executable it does not appear in the list of all Windows programs. I've built a lot of executable and installers before but this is the first time I see this. The folder is created in the Program Files (x 86) directory and the program performed well when I double-click on the .exe.

    This sw was initially developed with LV10 with WinXP then moved to LV2012 with Win7 64 bit and then to LV2013 and it uses a plugin architecture (I'm still not very familiar with this).

    I also have these following questions:

    1. I don't remember so many folder created after building an exe file (see photo "filelist.png") before moving this application to LV2013, why all these dataX folders are created? (associated with the plugins?). Except for the data folder containing my ini and xml configuration files these folders all contain a single mnu file.

    2 - Why are there some records of pilot instrument included in the compilation? (Agilent, Keithley and Tek) I'm also using other equipment, and they do not appear in the construction. These problems with the build because of their tree VI live I had to either check turn debugging on or off the use of the diagram structure on these screws diagram which is certainly not the right way to do it.

    3. probably the most important, what would be a document of reference on how to create an executable and a Setup program for an application architecture plugin.

    Thank you

    Ben64

    You use LVOOP you use the NI Report Generation Toolkit, which is implemented using OBJECT oriented programming. Already this explains some of the additional folders that you see.

    Other components are of course part of lvlibp (packed project library) and where it will not integrate the EXE itself. Also their dependencies... which may explain support directories (data1, data2,...).

    Referring to other settings, the log file does not help much. So we can not tell you why the installation program does not create a program shortcut in "start > programs". If you check the "shortcuts", you should be able to see if there is a routine in the Setup to create such a link or not. If the parameter is there, but the installation fails to create, it can be connected to the user rights that you use to run the installer...

    Norbert

  • Error message: Shockwave, Flash Player does not properly during playback Slotomania

    Original title: shockwave flash player

    Hi I have problems with some games. Especially slotomania. When I enter the RM of slotomania that flashing message saying that Flash shockwave Player does not properly can give to interrupt or stop options taken but its gone too fast for me to do something. Then the really slow game. Can you help me?

    Hello Marilyn,.

    Thanks for posting your query in the Microsoft Community Forum.

    According the information, you are facing problems to play games online as Slotomania due to the Adobe Shockwave, Flash Player error messages.

    It would be useful that you can answer these questions to help you further.

    1. are you facing problems that when you play online game Slotomania?

    2. using Internet Explorer or another web browser?

    3. what version of the Windows operating system is installed on your computer?

    4. have you made a recent software or hardware changes to the system?

    If you use Internet Explorer, you can see the article and check if it helps to solve the problem.

    The problems of games online using Internet Explorer

    It will be useful.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • fan does not properly

    Does not properly on the laptop

    Sometimes it is just dust, animal hair etc. blocking the fan. Take a can of compressed air and blow all the ports/vents/opening very carefully to see if any change.

  • Setup.exe does not properly

    I'm trying to upgrade to Windows 7, and at one point in the configuration of several programs are listed to be uninstalled, when it gets to the Realtek USB 2.0 card reader a pop window that says setup.exe does not properly.  Cannot uninstall in Control Panel either. Also tried disabling antivirus and firewall as a suggested site. Is there a way around this kind of Setup Windows 7 allows you to work around this problem

    Repeat: You need upgrades to Windows 7 not Windows updates.
    http://social.answers.Microsoft.com/forums/en-us/w7install/threads

    Please post on the forum for Windows 7 update/install. TaurArian [MVP] 2005-2010 - Update Services

  • Graphic drive does not properly.

    Graphics driver does not properly.  Screen will Dim and must restart to resume use.  Occurring more frequently now.  Y at - it a fix for this problem?

    Problem does not occur in safe mode.  Failure seems to occur on any key or the video style.

    Any material support is the manufacturer of the hardware regardless of the operating system that you choose to use.  As it is unlikely that you have a Microsoft video/graphics card - one you have and have you downloaded and installed the latest drivers/software they provide for your particular device?

  • COQ2014: COQ2014 AMD/ATI does not properly

    2 messages warn me for "AMD/ATI does not properly" and "search solution AMD Display adapt-ATI Radeon Graphics Cards.  Search for updates, solutions with nothing appear.  I don't know what that precisely uninstall nor where the new material.

    Thank you!

    Dear customer,

    Welcome to the HP consumer's Support Forum!

    Please try and uninstall the graphics driver AMD/ATI to address current from the control panel > programs and features.

    After you have uninstalled the current graphics driver, please try and install the following driver and check:

    Suite software Catalyst:

    http://support.AMD.com/en-us/download/desktop?OS=Windows+7+-+32

    Hope this helps, for other queries in response to the post and feel free to join us again.

    * Click on the star of CONGRATULATIONS on the left to say thank you *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you
    GR1
    Although I am an employee of HP, I speak for myself and not for HP

  • When I turn on my computer a warning appears indicating "delivery manager does not properly.

    DEP original title: data

    When I turn on my computer, a warning appears that says "delivery manager does not properly" and when I click on help and support balloon explanation is that my DEP is not configured correctly.

    Then, after following the instructions and correct the parameters I restart my pc and still the same message appears.

    Hi Olliewoods,

    (1) since when are you facing this problem?

    (2) what is you receive the exact error message?

    An application installed on the computer may be the cause of this problem; I suggest you try the following steps:

    Method 1: Put the computer to boot to determine which application is causing the problem.

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

    If everything works well after a clean boot, you can deduce that some third-party services are at the origin of the problem.

    Continue with the remaining steps to pin-point on the third party service.

    After find you the program that is causing the problem, you will have to perhaps to update or install a newer version of the program, if you rarely use that you should consider uninstalling the software.

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    See the link below for more information on Data Execution Prevention
    Data Execution Prevention: Frequently asked questions

    Thank you, and in what concerns:

    Ajay K

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

  • Scrolling the page does not properly respond to BlackBerry Curve9360

    Hello friend

    I have developed applications for BlackBerry (JqueryMobile, Phonegap) the application works fine in BlackBerry Torch 9800.

    But once I've installed in BlackBerry Curve9360, scrolling of the page does not properly, that I am not able to view the complete list of items and long text.

    Help, please

    I came up with the solution, the problem occurs because BlackBerry Curve 9360 isn't a touchscreen, there fore scroll doesn't work.

    In my applications, I add 2 pages "index.html."

    on the first page, you have to test if the device is not touch and redirect to the second page.

    Do not use the page for "BB Curve" scroll and any other animation like CSS "" - webkit - transform: translate3d "»

    The other js script go without a problem.

    The page "BB Curve" to redesign the html for use with the cursor,
    For example, the menu is smaller, the police is smaller.
    the size of the screen is fixed.
    Dimension height is better indicate a value min eg 300px
    etc...

  • Mini Bridge does not properly

    Mini Bridge does not properly; said the bridge should run but the bridge is running and mini Bridge never load

    Hi Margot,.

    Mini Bridge is created on a former technology based on Flash, which is currently not supported for future versions. Mini Bridge support will be removed in the Future of the Bridge and InDesign version.

    Thank you

    Deepak Gupta

Maybe you are looking for