Oracle Directory feature
Hi,
We are migrating from standalone Oracle 8i to Oracle 11g RAC. In the 8i database our system uses the Oracle Directory feature. It uses this Directory feature as some files are FTPied and stored in the Oracle SYSTEM.
As we are migrating to Oracle 11g RAC(two node), how do we handle these Directory feature? Should we go for NAS as a shared storage or can we go for Oracle ASM Cluster file system or any other options?
Thanks!
I suppose the question is about Oracle Directory database object, ie 'CREATE DIRECTORY ...'
The shared storage is required if you want to use directories in the RAC, ie all nodes must see the mountpoint as a filesystem. Any shared storage technology can be used which allows simultaneous access to file system , it really depends what is already is implemented in your environment. For instance if NFS server is already there, then its quite easy to create a mountpoint (provided that drives are allocated)
Regards
Ed
Similar Messages
-
File open error from oracle directory
Hi
I am testing 11g new feature for oracle secure file on my winxp system. Using the same example from Arup Nanda's writeup. it is giving me the following error, what could be the reason, need your experts assistance.
SQL> conn checkup/checkup
Connected.
SQL> create directory SECFILE as 'c:\oracle';
Directory created.
Elapsed: 00:00:00.04
SQL> grant all on directory secfile to public;
Grant succeeded.
Elapsed: 00:00:00.00
SQL> declare
2 l_size number;
3 l_file_ptr bfile;
4 l_blob blob;
5 begin
6 l_file_ptr := bfilename('SECFILE','contract.pdf');
7 dbms_lob.fileopen(l_file_ptr);
8 l_size := dbms_lob.getlength(l_file_ptr);
9 insert into contracts_sec
10 (
11 contract_id,
12 contract_name,
13 file_size,
14 orig_file
15 )
16 values
17 (
18 1,
19 'Contract :'||1,
20 null,
21 empty_blob()
22 )
23 returning orig_file into l_blob;
24 dbms_lob.loadfromfile(l_blob, l_file_ptr, l_size);
25 commit;
26 dbms_lob.close(l_file_ptr);
27 end;
28 /
declare
ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 635
ORA-06512: at line 7
Elapsed: 00:00:00.01
SQL>The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'
Rgds
SumanHi
The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'Why its under 'c:oracle\secfile'? It should be under 'c:oracle\' ...SECFILE is the name of the directory in Oracle not on OS. So your pdf should be at 'c:oracle\'.
Regards -
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 -
Oracle installation on Linux RedHat "Multiple occurance of oracle directory
I have successfully installed oracle 10.2.0.1 on my Linux server, but have repetition oracle directory on my Oracle_home path
i.e /u01/app/oracle/oracle/product/10.2.0
How can corrrect this shoul i uninstall oracle an install again ? or i should run ./oraInstaller and change the path, but when i run installer it looks like i am installing another oracle software without affecting the one with double oracle directory
Please help....
Thank youi run tar -cvf /u01/app/oracle/product/10.2.0/OH.tar .
still i get the following error
======================================
tar:Removing leading '/' from members names
tar: /u01/app/oracle/product/10.2.0/OH.tar : cannot stat: No such file or directory
tar: ./v: file is the archive; not dumped
tar:Error exit delayed from previous errors
======================================
But on my oracle home u01/app/oracle/oracle/product/10.2.0/db_3
when i do ls -ltr there a new file created with the name v.
please help -
Processing OS Files in an Oracle Directory
I have an application that gets XML files and stores them in a directory. I'd like to write a PL/SQL program that I can schedule to process all files in the directory. I won't know at run time what the file names are, so I need a way to somehow loop through all files in the directory, do my processing, and exit when I've run out of files.
I've been reviewing documentation and it doesn't look like fileGetName or fileExists will work for this type of processing, since they either assume a known file name or return the directory name, which I'll need to specify since there are multiple directories used by this process.
In pseudo-code, here's what I have in mind:
declare
cursor all_files is
select filename from xml_in; --xml_in is my Oracle directory where the files will live.
eachFile all_files%ROWTYPE;
begin
open all_files;
loop
fetch all_files into eachFile;
exit when all_files%NOTFOUND;
--Do my XML processing here
end loop;
close all_files;
end;
Is it possible to do this kind of processing on external files? If so, how can I get something that would function like the cursor described above to work?The files are unknown to Oracle, I'm using an Oracle directory just as a save point for processing. I've got an external application written that will process the xml (actually, it calls an already-completed PL/SQL stored procedure) but I'd like to have portability between the different OS's.
Short answer to your question...No. -
Problem opening reports with a user in the Oracle Directory.
I have already followed all the steps in the user's guide to run reports with a user in the Oracle Directory.
I accessed the enterprise security manager and created the mandatory xml publisher roles, besides I created another role. I added user A to the new role I created.
I accessed then the administrator tab in XML publisher. I went to roles and the role I created was there. When I tried to add a folder. I'm able to add the folder there. I click on apply and then when I enter in the security Settings again the folder is not there anymore.
I get the following error in the log:
[021207_103218621][][EXCEPTION] oracle.apps.xdo.servlet.resources.ResourceNotFoundException: /opt/oracle/infra2/j2ee/home/xmlpublisher
/Admin/Security/security.xml
When I access xml publisher with the user A, who belongs to the new role I'm working with, I'm not able to see any folder, nor anything else.
Do you have any ideas about what could be going wrong?
Thanks,
JoaquinCan you replay how? I have been facing this problem for nearly 3 months without any solution. Please help me.
Debarati -
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. -
How to get account expiry date for Oracle Directory Server?
I need to get the account expiry date for Oracle Directory server. Which attribute stores this value? Please let me also know the attribute type and how to fetch it.
Thanks,
SubratHello,
Yes you can use nsAccountLock directly (When nsAccountLock=true, the object is inactivated and the user cannot log in)
This is documented in Modifying Directory Server’s NsAccountLockAttribute Directly (Sun Java System Directory Server Enterprise Edition 6.2 In… (release number is old but it does not matter, Thats the first one Ive found)
You can also use dsutil account-inactivate as described in dsutil - 11g Release 1 (11.1.1.7.0)
Sylvain
Please mark this response as correct or helpful when appropriate to make it easier for others to find it -
Using an Oracle Directory as DocumentRoot in Oracle Http Server
Hello,
¿Is it possible that OHS(Oracle Http Server) use an Oracle Directory(directory object in database) as its DocumentRoot? The idea behind that is put the web application's files in Oracle Directories for easily make updates and versioning.
Thank you very much for your help in advance.Thanks Gary , Your reply is perfectly correct ,
I have verified the same with ETL data lineage guide ,
The Columns that match to the MCAL_CAL_NAME~MCAL_PERIOD_TYPE
MCAL_CAL_NAME = GL_PERIODS.PERIODS_SET_NAME
MCAL_PERIOD_TYPE = GL_PERIODS.PERIOD_TYPE
Query for same to get from EBS Source will be
select period_set_name , period_type From gl_periods ;
Thanks For Help !!
Regards
Neeraj Saini -
Copying a BLOB to a File in an Oracle Directory
Is there a straightforward way to copy a BLOB into a file in an Oracle Directory?
The BLOB contains a binary (pdf) file.
Thanks in advanceAssuming you're on 9i or later, you can loop over the BLOB and use the UTL_FILE.PUT_RAW method to write out 32k chunks of the PDF at a time.
Justin
Forgot the link to Dan's blob2file
http://psoug.org/reference/utl_file.html
Message was edited by:
Justin Cave -
How to check the files ...that are present in an oracle directory
hi all
is there any data dictionary view or table that will list all the files that exist a oracle directory?
regards
raj
we can see all the directories using dba_directories i would like to see what all files it contains
regards
rajhi justin
this is me who posted here ..but here i was asking about... the directory that we create in oracle.....
about dba_directories.....
in the other post in pl/sql forum i was asking about the directory that exist on the ftp server....... and using unix from with in plsql to loop through the list of all the files
regards
raj -
Upload a CSV file directly to an Oracle directory?
We have some existing packaged code that reads CSV files from an Oracle directory into the database via external tables. Currently, the files are placed in the directory via FTP, but we'd like to upload them via APEX if possible.
As far as I can tell, APEX file upload will store a file as a BLOB in an APEX table. Is there any way to re-direct the file upload to put file straight into the Oracle directory instead? The files will be copied from a Windows client to an Oracle server on Unix.
We're still on APEX v.3.2 unfortunately.
Edited by: chriswebster on Mar 31, 2011 10:05 AM>
Similarly, we don't really want to have to extract a BLOB from the APEX file-upload table and re-create the CSV file either, as this seems like a lot of work to do a simple thing.
>
Not really, just a page process...
PROCEDURE blob2file (p_blob BLOB,
p_directory VARCHAR2 := 'MY_DIR',
p_filename VARCHAR2 := 'my.csv')
IS
t_fh UTL_FILE.file_type;
t_len PLS_INTEGER := 32767;
BEGIN
t_fh := UTL_FILE.fopen (p_directory, p_filename, 'wb');
FOR i IN 0 .. TRUNC ( (DBMS_LOB.getlength (p_blob) - 1) / t_len)
LOOP
UTL_FILE.put_raw (t_fh, DBMS_LOB.SUBSTR (p_blob, t_len, i * t_len + 1));
END LOOP;
UTL_FILE.fclose (t_fh);
END;?
Cheers
Ben -
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 AndersenOK, figured it out. This was helpful: http://www.adp-gmbh.ch/ora/sql/create_directory.html
-
Oracle spatial feature is working in 10g stadard edition
hi
is it working oracle spatial features in oracle stadard edition
thanksLocator, a subset of Spatial, is a feature of the Standard Edition.
The white paper available from the Spatial page on OTN has further details.
Oracle Locator: Location-Enabling Every Oracle DatabaseTechnical White Paper
Jayant -
SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
Hi,
When I tried to login I am able to login but getting the following message:SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
After loging, when I tried to "SELECT SYSDATE FROM DUAL;" I am getting the following error.
ORA-00942: table or view does not exist
Can somebody please help me ?this error may be related to glogin.sql files content, what are the outputs for these -
SQL> describe dual ;
Name Null? Type
DUMMY VARCHAR2(1)
SQL> select * from dual ;
D
Xbest regards.
Maybe you are looking for
-
Warning messages while booting
Hi, All! While booting Cisco I see three warning messages. What have to do to resole it? =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.04.11 20:38:38 =~=~=~=~=~=~=~=~=~=~=~= c3925#reload Proceed with reload? [confirm] Apr 11 14:42:46: %SYS-5-RELOAD: Reload
-
I recently upgraded to the turbo 2 motherboard, volcano 9 heatsink/fan and xp 1700 cpu. Initially, everything worked fine. I bumped the fsb to 145 and the multiplier up to 12.5 and everything worked fine. Initially, I set the volcano 9 fan up wit
-
Mpeg-4 wont play in latest itunes
I converted some dvd files to mpeg-4, and it plays in windows media player, nero, my IPOD, etc, but NOT in Itunes/Quicktime (they both use the same player). In those two, audio comes out, but no video, just a black screen (I tried some trouble shooti
-
ITunes does not see my Remote app...
Hello everyone! I'm trying to set up home sharing, and I feel like this is rocket science. It's been 2 hours and I still can't get it to work. I have the latest version of iTunes, the latest version of Remote app. I am using Windows 7, and my iOS is
-
IPhone 2.0 software update: in Calendars, how to you customize colors?
With the update (2.0) released on Friday July, 11, 2008; for existing iPhone customers, is there any way to customize the calendar colors? Even if I can just change the color to one color (because I hate red) is there any way to do this? Thanks