"no execution is access to directory object ' procedure

I have an external table which cannot launch procedure but who can perform simple PL/SQL code.

DB is 12 c, connected user shared with DBA privileges and of course read, write on directory

Allows from the end:

KUP-04087: no execute access to directory object SCRIPT_DIR

-pass

QL> declare
  v_ind               number;
begin
  select count(*)
    into v_ind
    from PDBS_LIST
   where PDB_NAME = 'CORE';
   dbms_output.put_line(v_ind);
end;  2    3    4    5    6    7    8    9   10   11   12
 13  /

0


PL/SQL procedure successfully completed.

-does not

SQL>  create procedure nir_test as
  v_ind               number;
begin  select count(*)
    into v_ind
    from PDBS_LIST
   where PDB_NAME = 'CORE';
end;  2    3    4    5    6    7    8    9   10
 11  /


Procedure created.


SQL> exec nir_test;
BEGIN nir_test; END;
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04087: no execute access to directory object SCRIPT_DIR
ORA-06512: at "C##ADMIN.NIR_TEST", line 6
ORA-06512: at line 1

The table:

  CREATE TABLE "C##ADMIN"."PDBS_LIST" 
   ( "PDB_NAME" VARCHAR2(30 CHAR), 
  "CREATED_AT" CHAR(19 CHAR), 
  "SIZE_MB_ALLOC" NUMBER, 
  "SIZE_MB_USED" NUMBER
   ) 
   ORGANIZATION EXTERNAL 
    ( TYPE ORACLE_LOADER
      DEFAULT DIRECTORY "SCRIPT_DIR"
      ACCESS PARAMETERS
      ( records delimited by newline
    preprocessor SCRIPT_DIR:'get_pdbs_list.sh'
    fields terminated by whitespace ldrtrim
      )
      LOCATION
       ( 'Do_NOT_Delete.txt'
       )
    );

create the directory of the same user solved the problem.

But I do not know why because I give read, write to this user if the directory was created through any other user.

Tags: Database

Similar Questions

  • Load a BLOB of FTP-directory object?

    Hey community members.

    I am now master the insertion of a BLOB of the file either during an INSERT or UPDATE in my local directory (C:\Oracle\Test\Pics) thanks to your
    friendly and competent help.

    but, as always ;) now I am facing another problem I thought that it would not really be a problem...

    My problem is:
    the BLOBs I want to write in my paintings are stored on an FTP server in the network and I want to access this directory when trying to create
    It's like a directory of the database as follows:
    CREATE OR REPLACE DIRECTORY image_store AS 'ftp://oracle:[email protected]/testFiles/testImages';
    username: oracle
    password: oracle

    but I can not grant access to the directory. I surfed through the net and I found several solutions for writing in a directory on the FTP server, but
    I can't understand how this is a problem to read from it. I need to create a login FTP with UTL_TCP.connection procedure?

    I found this on the net, but is it really that much "complicated"?
    -- Retrieve a binary file from a remote FTP server.
    DECLARE
      l_conn  UTL_TCP.connection;
    BEGIN
      l_conn := ftp.login('ftp.company.com', '21', 'ftpuser', 'ftppassword');
      ftp.binary(p_conn => l_conn);
      ftp.get(p_conn      => l_conn,
              p_from_file => '/u01/app/oracle/product/9.2.0.1.0/sysman/reporting/gif/jobs.gif',
              p_to_dir    => 'MY_DOCS',
              p_to_file   => 'jobs_get.gif');
      ftp.logout(l_conn);
    END;
    If so, how can I call a procedure in my procedure?


    Thanks a lot for your help and your patience!

    see you soon
    Ramirez

    An Oracle Directory object must refer to a directory which is known for the filesystem of the host operating system. A FTP location is not a valid directory object.

    The simplest approach is likely to use some of Chris Poole package XUTL_FTP. Otherwise, you'd written your own FTP package.

    Justin

  • List of files stored in a directory object

    Hello

    I looked on Google, Oracle DB docs and here to find a way to practice for the list of files stored in a DIRECTORY for the batch of loading into a table with PL/SQL. But no luck, UTL_FILE does not have a method of directory listing. I seen examples with a workaround like putting the list of files in a text file before loading. The directory is powered by other network services and process, so I don't know the list of the files that I need to import, and then remove. I do not have access to the server console, and it is impossible for me to throw a kind of "dir" result in a text file. I've seen other examples of using Java, but it seems that I have too much access to Java on the server side.

    Is there a simple way to do so only in PL/SQL?
    Otherwise, I'll ask the ADMINISTRATOR the rights necessary to compile/run java on the server side...

    Versions of target DB for this requirement are 10g and 11g (mainly) on Windows environment.

    Thank you
    Bruno

    As far as I'm concerned, obviously, but it is up to you to answer all the undocumented features is caveat emptor.

    DBMS_BACKUP_RESTORE is the PL/SQL package that only RMAN backups.
    DBMS_BACKUP_RESTORE is not documented in the Guide of packages provided (or whatever we call it) but has detailed comments in the package header in $ORACLE_HOME/rdbms/admin. This is unlike some packages where Oracle have even wrapped the header. There are dozens of notes on Metalink describing certain circumstances where the DBMS_BACKUP_RESTORE call yourself is OK.

    SEARCHFILES procedure is called by RMAN when you manually catalog archives that start with a string.
    XUTL_FINDFILES exposes only and only the part of the DBMS_BACKUP_RESTORE.
    The disadvantage of XUTL_FINDFILES is that it must be installed in the SYS schema due to the inevitable dependence on a table of $ fixed x.
    So the only privileged required to install XUTL_FINDFILES is you must be logged in as SYS. After its creation, you would run on XUTL_FINDFILES than that you wanted, then, as the security is controlled by directory objects. So it would be OK to grant execute on XUTL_FINDFILES to the public, because without privileges on a directory object, the package will not do anything.
    Some administrators will not like the fact that the package must be installed in the SYS. All I can say is try it on a development database and see what happens.

  • public execution granted on undefined directory utl_file_dir utl_file

    Is there a security risk if the public was granted to execute on utl_file and directory utl_file_dir init.ora has not been defined in the configuration file? I understand that if the directory is defined in the configuration file that there is a risk. But if the directory is not defined how risky is it? Thank you

    Published by: yakub21 on December 5, 2011 17:17

    Is there a directory objects in the database (i.e. are there lines in DBA_DIRECTORIES)? Users have privileges on these directories? A malicious user doesn't damage anything in reading, writing, or deleting a file in one of these directories?

    Definition UTL_FILE_DIR is a security vulnerability if it is histocompatibility (i.e. defined on *). And he was an unlikely in the old days before that directory objects only exist UTL_FILE_DIR would set histocompatibility because that change required a reboot. UTL_FILE_DIR also specifies a list of directories that are available to everyone while Oracle Directory object permissions allow a lot more access to fine grain. But can be implemented less deeply - if you create an Oracle Directory that points to a sensitive place and grant access to users, a malicious user can potentially do all kinds of mischief by touching the files in this sensitive directory. However, if the directories you allow access to via UTL_FILE_DIR or through directories Oracle are uninteresting from a security point of view, then it is not a problem.

    At the same time, however, if a user does not need to create or read from a file, there no benefit to giving them access to UTL_FILE. Do not give them access to the package can act as a safety net, just in case someone creates an Oracle Directory object and grants access without thinking of all the security implications.

    Justin

  • ORA-29289: access to directory > refused

    Hello

    I'm a bit confused. I have a dba_directory that I can write just fine since the sql prompt. But when I use the same user and try to write to the directory via a package using 'POST'
    With oracle application server 10 g 1 I get ORA-29289: access to directory > denied. The oracle (OS - Solaris 10) process that has permissions to write to the directory. The database is thus 10gR 1.

    Pointers.

    Thank you.

    A procedure created with copyright can only take into account the wherever the owner has granted directly to them. Essentially, this is because it would be just too hard to have to check all the permissions based on the roles for the owner of the procedure when the procedure is executed. As a general rule, a procedure is run like a lot of different users as part of a request and can run very frequently.

    A procedure defined as a current user, check the permission of only the user who executes the procedure at the time they do it. It is essentially the same Champagne that would be for any sql statement.

    With a user procedure curent, the user who runs the procedure must have the appropriate permissions to do regardless of the procedure is in addition to execute procedure permission, whereas for a system of defined rights, only the owner of the procedure must have permission to perform this action.

    John

  • The user * address email is removed from the privacy * could not connect, could not access the directory.

    For the second time in the last two weeks going through my event logs, I noticed several hundred newspaper failed attempts at the course over a period of twenty minutes.  they are random user accounts that don't exist not user 1, user 2, www., or just names at random, the papers say newspaper caused by a wrong password or account.  "the first of these events several connected has this message:" user * address email is removed from the privacy * could not connect, could not access the directory. ».  What does that mean?  Do you need access and control my computer?  Any info would be a great help.

    Looks like someone trying to log on your computer.  Check your firewall settings to make sure that they can't.

    Visit https://www.grc.com/x/ne.dll?bh0bkyd2 the site "shields up" to perform a check.  Some people to dismiss the guy who runs it, but the test doesn't show you which allows your computer to the world to see.
  • access the document object in the framework

    access the document object in the framework
    ------------------------------------------------
    Hi, MVP!

    There are 2 frames, frame1 and frame2, in my web page. I want to access the document using vb frame1 object and the web browser. How can I write codes front right to do?

    Thank you

    Hi Stanley.K,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums, since it relates to coding in Visual Basic Application Script. It should be better in Visual Basic on MSDN Forums.

    Please post your question in the MSDN Forums by visiting the following link:

    http://social.msdn.Microsoft.com/forums/en-us/vbgeneral/threads

  • Error MESSAGE: "Setup HAS the PRIVILEGES SUFFICIENT TO ACCESS this DIRECTORY: C\PROGRAM FILES (x 86) \QUICKTIME\QT SYSTEM." THE INSTALLATION CANNOT CONTINUE. LOG ON AS AN ADMINISTRATOR OR CONTACT YOUR SYSADMIN "_".

    ERROR MESSAGE:

    "THE installation program HAS the PRIVILEGES SUFFICIENT TO ACCESS this DIRECTORY: C\PROGRAM FILES (x 86) \QUICKTIME\QT SYSTEM." THE INSTALLATION CANNOT CONTINUE. "LOG ON AS AN ADMINISTRATOR OR CONTACT YOUR SYSTEM ADMINISTRATOR.

    TRY SEVERAL DIFFERENT PROGRAMS TO INSTALL/DOWNLOAD AND KEEP THIS SIMILAR ERROR MESSAGE ABOVE!

    WHEN, IN FACT, I AM THE ADMINISTRATOR ON MY COMPUTER! HE DIDN'T THERE WAS NO OTHER USERS ON MY COMPUTER. WHY IS THAT IT IS SAYING THIS? VERY FRUSTRATING! THANKS FOR YOUR HELP IN ADVANCE!

    1. Open the prompt with administrator privileges by opening the Start Menu, type cmd in the search box, pressCtrl + Shift + Enter or click Start orb, all programs, Accessories, right-click on command prompt and selectrun as administrator.
    2. Type the following at the command prompt, and then press enter after:

      NET user administrator / Active: Yes

    3. Restart your computer and logon as an administrator.
  • Tedious Error Message When you install Itunes "the installer has insufficient privileges to access this directory: C:\Program Files\Quick Time\QTSystem.»

    Hi, I tried to update my iTunes a day and when he made an error appeared. Now, today I uninstalled both iTunes & Quicktime, I don't remember what the first said (before finding out the programs were installed yet) but after I went back uninstalled them I tried to reinstall again (in the hope that it would work) and this message popped up.

    The installer has insufficient privileges to access this directory: C:\Program Files\Quick Time\QTSystem. The installation cannot continue. Log in as administrator or contact your system administrator.

    * I'm already logged as administrator.

    Could you please help me understand what the problem is? Thank you!

    Hello

    Try right click on setup.exe itunes then run as adminintrator

    If this does not work, try this

    Follow the information from apple to the link below

    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7

    http://support.Apple.com/kb/HT1923

    and or ask for their support of itunes

    http://www.Apple.com/support/iTunes/

    Also try the discussions of apple itunes

    http://discussions.Apple.com/category.jspa?categoryID=149

  • Installing a program error: the installer has sufficient privileges to access the directory

    When I try to install a program I get

    Setup has sufficient privileges to access the directory name of the program C:\Programdata\microsoft\windows\startmenu\programs\the

    The installation cannot continue. Log in as administrator or contact the system administrator

    I sign as an administrator does nothing.

    This makes it impossible to install a program that I bought.

    Please help me

    Bill K

    Original title: install please help

    Hello Bill,

    Thanks for posting your query in Microsoft Community Forum.

    This problem usually occurs in one of the following scenarios:

    • The system group doesn't have full control privileges.
    • The Everyone group has full control privileges.

    Try to give a full permission to the installation of the program files folder. Then, try to install the application.

    1. As stated in your question, go to the location: C:\Programdata\microsoft\windows\startmenu\programs
    2. Right click on the folder to , and click Properties.
    3. Go to the Security tab and click Edit.
    4. Click on Add.
    5. Type everyone in the space to enter names.
    6. Click check names , and then click OK.
    7. Checkbox control in the list of permissions for all the world.
    8. Click apply and then click continue on each pop-up you receive later.
    9. Click OK.

    After having done with the above steps, try to install the program and check if the problem persists.

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • the installer has insufficient privileges to access this directory: c:\Program file\msi\easyviewer

    the installer has insufficient privileges to access this directory: c:\Program file\msi\easyviewe how to accept. How active upgrade windows 7 home top.

    If you trust the program you are trying to install, right-click on the installation .exe file and select run as administrator.

  • Create the directory objects with the path environment variable

    I need to create a directory object and wonder if it's valid to use an environment variable in the nom_chemin?  Example:

    CREATE or REPLACE DIRECTORY XMLDIR AS ' $ORACLE_HOME/rdbms/xml ";

    I read the following in the Oracle 11.2 documentation, but it is is not clear to me if an environment variable is allowed or not.  My reason for wanting to use a variable of environment as opposed to hard coding is for when I update, I have no back reference to the old House of Oracle.

    nom_chemin

    Specify the name of the full path of the directory on the server where the operating system files are located. Single quotes are required, so that the path name is case-sensitive.

    > I see that many developers have created objects to directory with the environment variables in the path.

    Please post reproducible test

    You know & realize that the Oracle database is independent of the operating system (OS)?

    Environment variable is OS specific.

  • Launch of Lightroom 6 is not. error: "can't find the access point of the procedure _crtCreateSymbolicLinkW in the MSVCR110.dll dynamic link library.

    It says: "cannot find the access point of the procedure _crtCreateSymbolicLinkW in the MSVCR110.dll dynamic link library. What can I do? I have already uninstall and then reinstall the software...

    It is indeed a microsoft problem, check here:error "did not find the entry point _crtCreateSymbolicLinkW - Microsoft Community .

  • Screen reader accessibility for noninteractive objects

    I work at 8 Cp and try to do a course entirely compatible Section 508. I tested with the Window-Eyes screen reader. The screen reader can access the reading and fine TOC bar buttons, and it usually recognizes interactive elements on the screen. However, most of the time, the screen reader is not recognizing the legends or the intelligent forms with text on screen. Many slides are just text and a button transparent text to pause the screen, therefore, that I need the screen reader to read the content of the course. According to the documentation, I shouldn't copy the text in the name of accessibility for each object, although I tried in a few places without success. The accessibility feature looks so flaky. From time to time, I can get something to work, but not completely, or I can't repeat.

    I was able to get the screen reader to read the text if I remove all the interactive elements, including the reading and TOC bar. In other words, if I have a class 1-slide, Captivate accessibility works. As soon as I try to give people an option to move to the next slide with a control button or the play bar, it stops working.

    Yes, accessibility is enabled. I tried to hide the rectangle around the objects in HTML5. I tried editing both SWF and HTML5. I tried to text buttons transparent instead click on the boxes, which seemed to make a small difference. I tried different shortcuts and ensured that I never use the same shortcut twice on a single slide.

    How access a screen reader text within Captivate content? The documentation says you can access it with arrows, but it does not work. People do in the real world in order to make it accessible when the program does not work the way that the documentation says it should? I know from reading other threads that some organizations have given up and just went to provide text alternatives.

    I am open to any suggestion.

    My suggestion is that do you what others have already done.  Try to make Captivate content "fully Section 508 compliant" is not a realistic goal.

    As you noted, screen readers prefer to pay attention to the interactive objects.  If you must use interactive objects even for text objects that does not need to be buttons.  (You can set their action IT success to no Action so that they just sit and do nothing.)

    But you're still going to have problems at some point and these questions will be showstoppers.

    So, save yourself a lot of hassle and invoke the clause to exhaust all of the Section 508 and W3C accessibility documents which allows you to offer a "text alternative".  Create an accessible MS Word or PDF document that contains the same content.  You're going to do in a short time it would take you to try in VAIN to get e-learning content of Captivate to satisfy all the rules of Section 508.

    Probably NOT what you wanted to hear, but I really think someone needs to say this.

  • Flash CC: access a specific object on the stage

    I'm writing the javaScript code to execute with Flash CC.

    How can I access a specific object on the stage? It has a name (square_sym), but I can not read the code. What should I do?

    TIA

    He needs an instance name.

    If there is not a button or a movieclip, right click on the object > click on convert to symbol > select movieclip > ok > in the properties panel, enter an instance name, for example square_mc.

    then on the timeline that contains the button or movieclip you can use:

    This.square_mc to reference the movieclip.  other chronologies, there are also pointers to reference the movieclip

Maybe you are looking for

  • Tecra M5 1.83 GHz core duo runs very slowly

    I got this machine to replace a very Toshiba satellite pro 4600 750 GHz and the result are almost the same. It freezes on the net, while the CPU cooling, the cursor sometimes move by itself without reason. I installed the last finger print recognitio

  • Patrick suena

    Hola, tengo the epson stylus tx115 multifunction y hace 1 my Quebec not uso... ahora encendi suena, send to print me not of as no tiene papel or tinta. not to do no el to nada e con arregla ntentado change only usb cable, las tintas, el papel... no p

  • How to change the device profile.

    Hi all How to change the device profile. I mean from "Normal" to "Enough" or part of the profile. Can someone help me in this? -Shekhar.

  • Find the purchase order ADF service

    HelloHoping that you can help with the search service to FIND criteria.I am able to retrieve an entire purchase order and all child objects by using the service.  When I try to reduce the result set to return only the PO_LINE_ID, the service seems to

  • How to download a video of Lightroom Mobile or Web site?

    Hi, I just bought LR CC after being on Lightroom Office only for about a year. When I arrived at the office, I had tested LR Mobile as well. It turns out that I have a few old photos in LR Mobile (that I can see also online) and a few old videos. Dow