Granting Write rights to an ORACLE directory entry
Hi
I got some problems with granting Write rights to an ORACLE directory entry on a 8.1.7.0.0 Database.
When I try grant write rights:
grant write on directory dump_dir to IDM;
This results in ORACLE error ORA-22928: invalid privilege on directories
There are no problems with read rights:
Granting read works ok.
The directory entry exists, typing:
select * from dba_directories;
gives...
OWNER DIRECTORY_NAME
------------------------------ ------------------------------ DIRECTORY_PATH
SYS DUMP_DIR
/home/track/export
v$version states that ORACLE 8.1.7.0.0 Production version is being used.
Hope you can help, Thanks.
Mikkel Andersen
OK, figured it out. This was helpful: http://www.adp-gmbh.ch/ora/sql/create_directory.html
Similar Messages
-
Open Excel File from oracle directory on a local machine
Hi,
I have an application where I generate a excel using data in a table and write excel file in oracle directory.Now my requirement is to open that file from local machine .How can i achieve it.
I am using Apex 4.2,Oracle 10g .
Thanks
Rajan.C
Edited by: Rajanjai on May 31, 2013 5:34 PMClose your question here and open here
Oracle Discussion Forums » Oracle Database » Application Express -
Hi ,
How can I grant "Write ServicePrincipalName” and “Write validated SPN” rights to the directory for service account or computers?
Shailendra
Shailendra DevRight-Click on the OU and select Properties
Select the "Security" tab
Select the "Advanced" tab
Select the "Add" button
Enter the security principal name
security principal
Ok
Properties tab
Apply to:
Descendant User objects
Permissions:
Read servicePrincipalName - Allow
Write servicePrincipalName - Allow
Ok
Ok
Ok
Paul Bergson
MVP - Directory Services
MCITP: Enterprise Administrator
MCTS, MCT, MCSE, MCSA, Security, BS CSci
2012, 2008, Vista, 2003, 2000 (Early Achiever), NT4
Twitter @pbbergs http://blogs.dirteam.com/blogs/paulbergson
Please no e-mails, any questions should be posted in the NewsGroup.
This posting is provided AS IS with no warranties, and confers no rights. -
Cretaion of UTL.File in Oracle 10G and directory entry in Ora.ini file
Hi,
Kindly advise me if:
(!) we can create a directory and log file in this directory on some other server instead of creating it in the file system of the server where the Oracle 10G database is residing?
Created directory in Oracle using create or replace directory command.
My package will be creating a log file using UTL.File in the above directory.
I want to create this directory on some other server to save my log file/s. Is this possible?
(2) Also, let me know in Oracle 10G, do we need to add the directory entry (mention above in #1) in the Ora.ini file on the Oracle 10G server?Hi,
1) utl_dir are different from directory object
2) you cannot create directory on remote server and there is no need to write directory entry on oracle init file (not ini..)
Acr -
Grant write on directory, fail!!
Hello,
I am executing the follow statement: "grant write on directory my_directory to public" on Oracle 8i and do not obtain.
When I obtain to grant the privilege READ but tthe no WRITE!!
Why I do not obtain grantee the privilege WRITE to PUBLIC on Oracle 8i???
Eder.You should not be writing to the directory structure where the Oracle binaries are installed via utl_file. Bad practice to say the least.
See the utl_file_dir parameter in your Oracle 8.1.7 Reference manual for how to setup output destinations for utl_file. Do not use "*" as doing so is a security issue.
HTH -- Mark D Powell -- -
Insufficient access rights registering Oracle Directory Integration Server
Hi all!
following steps I´ve done to use the Oracle Directory Integration Server.(I´ve installed Oracle 10g infrastructure - OID is running - I´m also able to apply successful with ODM and orcladmin account)
- oidctl connect=mydb1 server=odisrv instance=1 stop
- odisrvreg -h localhost -p 389 -D cn=orcladmin,cn=Users,dc=localhost;dc=com -w ,pass
where pass is the password of orcladmin.
-> now I get the following error:
registering..
Error javax.naming.NoPermissionException [LDAP:error code 50: Insufficient Access Rights]; remaining name 'cn=odisrv+orclhostname=maschine,cn=odi,cn=oracle internet directory' !
Any idea ??
Thanks for all help & comments.I have gone through the documentation for creating the script. But there is one thing which I am not able to understand i.e. Subscription Parameters.
Can anyone tell me the use of subscription parameters? What is the role of subscription parameters in Oracle Lite and External Authentication.
Regards
Kapil -
How can I write more than 32k file in oracle directory
Hi experts,
I am struggling while I write more than 32k file size in oracle directory, and throws an error ‘ORA-06502: PL/SQL: numeric or value error, like this.
This is my procedure
declare
l_s_filename UTL_FILE.file_type;
begin
l_s_filename := UTL_FILE.fopen ('INFO_MIGRATION', 'finfinne.txt', 'W');
FOR rec
IN ( SELECT SQL_REDO
FROM V$LOGMNR_CONTENTS
WHERE seg_owner <> 'SYS' AND username = 'GENTEST'
AND TABLE_NAME NOT LIKE '%_TEMP'
AND OPERATION IN ('UPDATE','INSERT','DELETE')
ORDER BY TIMESTAMP)
LOOP
UTL_FILE.put_line (l_s_filename, rec.SQL_REDO);
END LOOP;
UTL_FILE.fclose (l_s_filename);
end;can any please help me how can I overcome this problem
Thanks,
ArunYou can write by breaking it into small chunks. Also you can try to use DBMS_XSLPROCESSOR.CLOB2FILE. For UTL_FILE the code snippets may looks like
-- Read chunks of the CLOB and write them to the file
-- until complete.
WHILE l_pos < l_blob_len
LOOP
DBMS_LOB.READ (rec.l_clob, l_amount, l_pos, l_buffer);
UTL_FILE.put_line (l_file, l_buffer, FALSE);
l_pos := l_pos + l_amount;
END LOOP; -
SUN/Oracle directory user entry DN rename (move)
Hi,
Version FIM2010R2SP1 with latest publicly available hotfix rollup applied.
Use case: Legacy enterprise directory (SUN iPlanet 5.2) has users in different (ou) branches under the same tree depending on their current job. If they are transferred to another part of the organisation in the HR system, the requirement is to
move their user entry in this directory into a different ou.
MA/Connector: Out of the box Sun/Oracle directory MA
e.g. (dn) uid=hsmith001, ou=Sales,o=MyOrg.com
moved to:
(dn) uid=hsmith001, ou=Cleaners,o=MyOrg.com
When the export is run to the connected directory, the "move"
does actually happen in the connected source (the SUN directory server). So far so good.
The connector space object is now marked as 'Awaiting export
confirmation' (which is meant to occur on the next import).
When an import is run, FIM creates a new connector space object with the new (renamed) dn but retains the existing object . At the same time it reports an error "ambiguous-import-flow-from-multiple-connectors" because it is seeing
two objects with the same RDN (uid=hsmith). It has marked the original CS object for deletion.
On the next synch, it says it has successfully deleted the original CS Object, however it is still there (and with the same anchor guid).
It appears that with this connector connected to Sun Directory v5.1 and newer , you don't get to choose which attribute(s) you use for the anchor - it chooses the dn.
It's puzzling why this issue exists in a technology set that has been around for years, so we are assuming that there is workaround or solution to this problem.
N.B. This problem has been replicated on two completely independent environments by different people in our organisation.
Any help/advice/suggestions would be most welcome.
David.We appear to have resolved this.
Because the sun directory MA isn't the authoritative source for the Person object then the delete failed because the cs object was still connected to the MV object (unfortunately it failed silently).
The dn and the anchor being the same (forced by the MA) FIM does an add (for the new renamed object) and delete (for the existing object). At least that's our interpretation.
The solution is to use an MV extension and in code, disconnect the existing cs object and connect to the directory server and do the move (outside of FIM's knowledge.). Then everything will line up on subsequent import, sync as the disconnected cs.object
which is no longer reflected in the connected source will be deleted.
Maybe someone has a better description of this. -
How to find the number of files in an oracle directory through a storedproc
hi
i have an oracle directory or a directory in an ftp server
is there any way.......through which..
i can know the number of files in the directory ...?
and whats the metadatacolumn that will indicate the name of the file?
and is it possible to loop through each of the entries within oracle
regards
rajops$tkyte@8i> GRANT JAVAUSERPRIV to ops$tkyte
2 /
Grant succeeded.
That grant must be given to the owner of the procedure.. Allows them to read
directories.
ops$tkyte@8i> create global temporary table DIR_LIST
2 ( filename varchar2(255) )
3 on commit delete rows
4 /
Table created.
ops$tkyte@8i> create or replace
2 and compile java source named "DirList"
3 as
4 import java.io.*;
5 import java.sql.*;
6
7 public class DirList
8 {
9 public static void getList(String directory)
10 throws SQLException
11 {
12 File path = new File( directory );
13 String[] list = path.list();
14 String element;
15
16 for(int i = 0; i < list.length; i++)
17 {
18 element = list;
19 #sql { INSERT INTO DIR_LIST (FILENAME)
20 VALUES (:element) };
21 }
22 }
23
24 }
25 /
Java created.
ops$tkyte@8i>
ops$tkyte@8i> create or replace
2 procedure get_dir_list( p_directory in varchar2 )
3 as language java
4 name 'DirList.getList( java.lang.String )';
5 /
Procedure created.
ops$tkyte@8i>
ops$tkyte@8i> exec get_dir_list( '/tmp' );
PL/SQL procedure successfully completed.
ops$tkyte@8i> select * from dir_list where rownum < 5;
FILENAME
data.dat
.rpc_door
.pcmcia
ps_data
http://asktom.oracle.com/pls/asktom/f?p=100:11:4403621974400865::::P11_QUESTION_ID:439619916584
Edited by: Salim Chelabi on 2009-04-21 10:37 -
9.2.0.6 OUI cannot write to its own installation directory
I would like to install the 9.2.0.6 patchset on a freshly installed 9.2.0.4_linux_x86_64 (AMD). The system is RedHat EL AS 3. I have installed j2re1.4.2_07 (because the Java brought by Oracle does not even start the VM ...) and edited the ./install/oraparam.ini to use our own JRE.
runInstaller tells me that all system requirements are met. But - alas - OUI says that it cannot write into the directory that it created itself (tmp/OracleInstall...). The rights matrix of this directory is drwxr-xr-x oracle oinstall, even if I set umask to 0000. There are several GB free.
The last message is
: file or directory not found
What is going on here (or rather what isn't)? What file is OUI looking for?
Thanks in advance for kind repliesIvan,
the rights for /tmp were already rwxrwxrwt. Even if I remove the sticky bit, the error remains. I have the strange feeling that this is not a rights problem. Do you have any idea what
: file or directory not found
is supposed to mean? What file is OUI looking for? Does OUI 10.1.0.3.0 check for temporary files of other OUI versions (e.g. OUI 2.2.0.18.0 bundeled with Oracle 9.2.0.4)?
I think I will start from scratch: remove and reinstall 9.2.0.4 and then try the patch installation again.
Frank -
9.2.0.6 runInstaller cannot write into its own installation directory
I would like to install the 9.2.0.6 patchset on a freshly installed 9.2.0.4_linux_x86_64 (AMD). The system is RedHat EL AS 3. I have installed j2re1.4.2_07 (because the Java brought by Oracle does not even start the VM ...) and edited the ./install/oraparam.ini to use our own JRE.
runInstaller tells me that all system requirements are met. But - alas - OUI says that it cannot write into the directory that it created itself (tmp/OracleInstall...). The rights matrix of this directory is drwxr-xr-x oracle oinstall, even if I set umask to 0000. There are several GB free.
The last message is
: file or directory not found
What is going on here (or rather what isn't)? What file is OUI looking for?
Thanks in advance for kind repliesIvan,
the rights for /tmp were already rwxrwxrwt. Even if I remove the sticky bit, the error remains. I have the strange feeling that this is not a rights problem. Do you have any idea what
: file or directory not found
is supposed to mean? What file is OUI looking for? Does OUI 10.1.0.3.0 check for temporary files of other OUI versions (e.g. OUI 2.2.0.18.0 bundeled with Oracle 9.2.0.4)?
I think I will start from scratch: remove and reinstall 9.2.0.4 and then try the patch installation again.
Frank -
Oracle directory does not exist problem
db=10g
I have a problem with an oracle directory that I have created.
The database resides on server A
The oracle directory resides on server B named UPLOAD_DIR.
I have created read, write and execute grants to the oracle directory.
I have created an external table that is referencing data from the oracle directory, I can successfully query this table.
I have created a package that inserts data from the external table to another table using a simple insert statement like so wrapped in a procedure:
PROCEDURE insert_prc
AS
BEGIN
INSERT
INTO table_x
( col_name
SELECT col_name
FROM external_table;
END insert_prc;When I attempt to run the procedure I get the following error:
Connecting to the database DB-BEN.
ORA-06564: object UPLOAD_DIR does not exist
ORA-06512: at "MANAGE_BULK_UPLOAD_PKG", line 108
ORA-06512: at "MANAGE_BULK_UPLOAD_PKG", line 913
ORA-06512: at line 7
Process exited.
Disconnecting from the database DB-BEN.Could someone give me some clues as to what the problem could be?
BentonWhat grants does the user you are running this as have on the ORACLE directory?
They will need read/write. -
Oracle DIRECTORY object and subdirectories
As you know, in 9i the use of the UTL_FILE_DIR is being deprecated in favour of Oracle DIRECTORY objects. This is fine for security reasons and administration but there seems to be a problem with subdirectories.
The situation: we are generating literally millions of files using UTL_FILE. These files are going to be stored in one of forty thousand directories (the precise directory is derived from parsing the file's key ID).
In the old days access could be granted simply by setting the UTL_FILE_DIR parameter to /<root>/dir/*
As far as I can see, the Oracle DIRECTORY does not support subdirectories. Is there any way of avoiding the creation of forty thousand CREATE DIRECTORY statements and a concommitant number of GRANT statements?
Oracle 9.2, any suggestions gratefully received.
Cheers, APCJust curious Andrew-- are there things in the UTL_FILE package that you don't find implemented better in Java's I/O classes? I wouldn't claim to be the world's leading expert on Java I/O, so I won't comment on the specifics of this. Generally I think using Java to re-write a piece of existing native functionality is a hard one to sell:
(1) Java tends to run slower than native code
(2) It's a chunk of work, and my PM is already breathing down my neck.
However, I might do this as a hobby project. If I do, I'll let you know how it turns out :)
Cheers, APC -
Remove an oracle home entry from the central repository
Does anyone know how to remove an oracle home entry from the central repository (inventory.xml file), after the oracle home in question has been deleted. It is left behind and I want to clean it up.
thanksI went to the link you have posted and it did not help me.
I cannot get rid of my Oracle Home directory. When I attempt to delete this folder, I
get an error message:
oci.dll ...is write protected or in use..
So I deleted this oci.dll file. Then I rebooted and tried to delete the OraHome directory (folder)
again, and I get the SAME error!!
Thanks for any advice. -
Hi @all,
i've read all the dócumentations i've found in the net but unfortunatly the Indexing of my filestored documents fails every time...
So what i've done is the following:
--Step 1 Create User
--The following SQL command creates a user called MYUSER with a password of myuser_password:
drop user textuser;
CREATE USER TEXTUSER IDENTIFIED BY TEXTUSER;
--Step 2 Grant Roles
--The following SQL command grants the required roles of RESOURCE,CONNECT, and CTXAPP to TEXT_USER:
GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
GRANT EXECUTE ON CTX_CLS TO textuser;
GRANT EXECUTE ON CTX_DDL TO textuser;
GRANT EXECUTE ON CTX_DOC TO textuser;
GRANT EXECUTE ON CTX_OUTPUT TO textuser;
GRANT EXECUTE ON CTX_QUERY TO textuser;
GRANT EXECUTE ON CTX_REPORT TO textuser;
GRANT EXECUTE ON CTX_THES TO textuser;
begin
ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
end;
begin
ctx_ddl.set_attribute('COMMON_DIR','PATH','/home/oracle/mydocs');
end;
begin
ctx_ddl.create_preference ('AUTO_DECT','INSO_FILTER');
end;
create table mytable(id number primary key, docs varchar2(2000));
insert into mytable values (111557,'Zwischenbericht.doc ');
commit;
create index myindex on mytable(docs)
indextype is ctxsys.context
parameters ('datastore COMMON_DIR');
select id,docs,score(1) from mytable where contains(docs, 'Dokumentation',1)>0;
returns NULL ROWS!!
select * from CTX_USER_INDEX_ERRORS;
DRG-11513: Datei /home/oracle/mydocs/Zwischenbericht1.doc kann nicht geöffnet oder geschrieben werden
(unable to open or write to file /home/oracle/mydocs/Zwischenbericht1.doc )
I gave an chmod 777 on the document "Zwischenbericht1.doc"
So what can i do?????
I use Oracle 10.2.0 on Suse Linux 9.2
I'm very happy about Ideas and helpfull advices.
Thanks a lot regards JuliusHallo Barbara,
thanks a lot for your help!!!
I've noticed that it is necessary to create the user textuser as ctxsys. So i've done like you recommended but unfortunately the result is the same.....
I added an utl_file Path to my SPFILE. (utl_file_dir= /home/oracle/mydocs) as you can see below. (is it necessary to something else to the spfile which i haven't noticed at all???
After that i tried to set up all by using sqlplus for having the possibility to show the results.
Below you can see the statements, the connect-Changes (ctxsys/textuser)
and the echo .
Do you or somebody else have an idea what i can do additionally to get this working???
Thanks a lot and regards Julius
oracle@scarlino:~/product/10.2.0/db_2/dbs> more spfileJULIUS2.ora
ð!
JULIUS2.__db_cache_size=71303168
JULIUS2.__java_pool_size=4194304
JULIUS2.__large_pool_size=4194304
JULIUS2.__shared_pool_size=83886080
JULIUS2.__streams_pool_size=0
*.audit_file_dest='/home/oracle/admin/JULIUS2/adump'
*.background_dump_dest='/home/oracle/admin/JULIUS2/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/home/oracle/oradata/JULIUS2/control01.ctl','/home/oracle/oradata/JULIUS2/control02.ctl','/home/oracle/oradat
a/JULIUS2/control03.ctl'
*.core_dump_dest='/home/oracle/admin/JULIUS2/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='JULIUS2'
*.db_recovery_file_dest='/home/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=JULIUS2XDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/home/oracle/admin/JULIUS2/udump'
*.utl_file_dir='/home/oracle/mydocs'
oracle@scarlino:~/product/10.2.0/db_2/dbs> sqlplus " / as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 19 11:36:29 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 92276980 bytes
Database Buffers 71303168 bytes
Redo Buffers 2973696 bytes
Database mounted.
connect ctxsys/ctxsyDatabase opened.
SQL> s
Connected.
SQL> drop user textuser cascade;
User dropped.
SQL> CREATE USER TEXTUSER IDENTIFIED BY TEXTUSER;
User created.
SQL> GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
Grant succeeded.
SQL> GRANT RESOURCE, CONNECT, CTXAPP TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_CLS TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_DDL TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_DOC TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_OUTPUT TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_QUERY TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_REPORT TO textuser;
Grant succeeded.
SQL> GRANT EXECUTE ON CTX_THES TO textuser;
Grant succeeded.
SQL> connect textuser/textuser
Connected.
SQL> begin
ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
end;
/ 2 3 4
PL/SQL procedure successfully completed.
SQL> begin
ctx_ddl.set_attribute('COMMON_DIR','PATH','/home/oracle/mydocs');
end;
/ 2 3 4
PL/SQL procedure successfully completed.
SQL> begin
ctx_ddl.create_preference ('AUTO_DECT','INSO_FILTER');
end;
/ 2 3 4
PL/SQL procedure successfully completed.
SQL> create table mytable(id number primary key, docs varchar2(2000));
Table created.
SQL> insert into mytable values (111557,'Zwischenbericht.doc ');
1 row created.
SQL> insert into mytable values (111558,'Test.txt ');
1 row created.
SQL> commit;
Commit complete.
SQL> drop index myindex;
drop index myindex
ERROR at line 1:
ORA-01418: specified index does not exist
SQL> create index myindex on mytable(docs)
indextype is ctxsys.context
parameters ('datastore COMMON_DIR'); 2 3
Index created.
SQL> select token_text from dr$myindex$i;
no rows selected
SQL> select id, docs, score(1)
from mytable
where contains (docs, 'Dokumentation', 1) > 0; 2 3
no rows selected
SQL> select * from CTX_USER_INDEX_ERRORS;
ERR_INDEX_NAME ERR_TIMES ERR_TEXTKEY
ERR_TEXT
MYINDEX 19-SEP-05 AAANA3AAEAAAAGEAAA
DRG-11513: unable to open or write to file /home/oracle/mydocs/Zwischenbericht.d
oc
MYINDEX 19-SEP-05 AAANA3AAEAAAAGEAAB
DRG-11513: unable to open or write to file /home/oracle/mydocs/Test.txt
SQL>
################################################################################
Maybe you are looking for
-
IPhone 4S OS 5.0.1 - Music and YouTube pauses for no reason!
Hi, I am frustrated with a major issue with my iPhone 4S. Recently, when I listen to music on the iPhone it pauses repeateldy with no reason. It happens every 1-1.5 minute and on every track I tried in my library. This is not specific to HOW I am l
-
I dropped my IPhone 6 plus in water and now the power button does not want to work
So i had the Iphone 6 Plus in my hand when it feel into a big puddle and it was in there for more than a minute so i come home and i find out that the power button (on the right hand side button) doesn't want to work like its on and im on the home pa
-
Who is living with their gradient?
I just decided to take the plunge and pick up a new 24" imac after I returned my old back in November one due to the unevenness of the colors. Well, I picked up a new one from best buy and sure enough, there's a little bit of gradient and a very slig
-
How to configure Webdynpro for ABAP Launch for Travel Request workflow UWL
Hello, We are on SAP ECC 6 EHP4, SAP Netweaver 7.01 SP5, for portal BP1.41. When we are running travel request in this new Webdynpro for ABAP in UWL it will lead from an attachment to PR05 trx. I would think that it would gve another screen where the
-
Can I use a PCI-1424 with a non-standard camera and build my own camera file?
I want to test a certain CCD which in non-standard and I want to setup the direct interface with it. My idea is to use a 1424 board and build the camera file.