Oracle directory filling up

Hello,
I have inherited an oracle server that's hosting a pretty large network management system. The oracle install directory on this server is filling up and causing problems. What can i safely delete on this? I have read that the trace files and the files in the *dump directories are fine to delete. I am sure this information is valid, but could someone point me in the right direction for documentation about the files in these directories or explain what they are used for? Also, could someone please verify that these files are safe to delete?
Thanks!

safe to delete as long as you know, you wont be using those trace file for later analysis.
Make sure all those directories has log and trace files not more than 15 days(that my personal oponion) or move them to a different location. if they are then more than 15 days old, use the following command (or similar in AIX) to get rid of those files.
find /u02/app/oracle/admin/CHIOPSWN/bdump -mtime +15 -print
to find the files that are older than 30 days
find $PWD -mtime +15 -print
same thing like above,if u r in the same directory
find /u02/app/oracle/admin/CHIOPSWN/bdump -mtime +15 -exec rm -r {} \;
to remove the files
find $PWD -mtime +15 -exec rm -f {} \;
same thing like above if u r in the same directory
find / -name "*.inst*" -exec ls -ltr 2>/dev/null {} \;
find with long listing
CHANGE LOCATIONS/PWD respectively

Similar Messages

  • 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
    raj

    ops$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 you

    i 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,
    Joaquin

    Can 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?
    Benton

    What 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,
    Subrat

    Hello,
    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 advance

    Assuming 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
    raj

    hi 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 Andersen

    OK, figured it out. This was helpful: http://www.adp-gmbh.ch/ora/sql/create_directory.html

  • Use Oracle directory object in SQL*loader?

    Hi All,
    We have a bunch of flatfiles that need to be read on a daily basis. We are using SQL*loader to read these files into Oracle.
    The files arrive into a different directory every day ( /filesDDMMYY/ ). We now manually copy these files into the static directory which is pointed to in our ctl file. I was wondering if it's possible to use an Oracle Directory object to point to these data files, in stead of the pysical directory we use now?
    Now we use: INFILE './sources/mydata.txt' , but I would like to make this a dynamic refrence to a directory with a different name
    I searched the documentation and the internet quite extensively, but can not get an answer if it's possible to use directory objects in conjunction with sql loader.
    Any help or suggestions would be appriciated.
    Greetz,
    Toin.
    Message was edited by:
    Toin ~ corrected typo

    you can remove the INFILE parameter from the CTL files, and instead specify it on the command line (DATA=./sources...).
    obviously this would still require changing every ctl file, but you would only need to do it once, not everytime you change a directory.
    of course, the shell script which runs sqlldr would need to change. however, you could make the shell script more robust, by having it connect to sqlplus to look up the actual directory path from ALL_DIRECTORIES, and then use that when calling sqlldr.

  • Problems using Oracle Directory

    Hi all
    I have the following problem using 9i: I would like to use oracle internet directory to register my db's. I am currently reading the online handbooks and found a section that says to start the directory by using the 'oidmon' and 'oidctl' commands. The problem is that I cannot find these tools anywhere on the server, altough i am pretty sure i intalled anything important. is this a separate product? I thought it was included in 9i 9.2?
    Anyone?
    Cheers,
    Michael

    Hi.
    Hmm, your shared lib path appears to be ok. What version of Solaris are you running? Also what JDK version are you using (I'll assume you are using the one that installed with WLS)?
    You might also try posting this to the weblogic.developer.interest.jdbc newsgroup.
    Thanks,
    Michael
    Alex wrote:
    Hi,
    Please help. While trying to do a dbping, I get the following error:
    [root@hkodsdb01 SMEloan]# java -Djava.library.path=/export/home/greenwood/bea/wlserver6.0/lib/solaris:/export/home/greenwood/bea/wlserver6.0/lib/solaris/oci817_8:/u01/oracle/product/817/lib utils.dbping ORACLE oracle smeloan 192.168.1.252
    Starting Loading jDriver/Oracle .....
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError with the message '/export/home/greenwood/bea/wlserver6.0/lib/solaris/oci817_8/libweblogicoci37.so: ld.so.1: /greenwood/bea/jdk131/jre/bin/../bin/sparc/native_threads/java: fatal: libclntsh.so.8.0: open failed: No such file or directory'.
    at weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:146)
    at utils.dbping.main(dbping.java:167)
    The required file is under the Oracle directory specified. Also, I am having some problems with using the LD_LIBRARY_PATH for my shared library files. The command won't work with LD_LIBRARY_PATH and I must use the -Djava.library.path parameter. Any thoughts and suggestions?
    Thanks so much for your help in advance.
    Alex--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to give network path while creating oracle directory.

    I have created
    CREATE OR REPLACE DIRECTORY TESTDIR AS '\\168.176.33.117\TESTDIR';
    but through this path i m not able to create text file.
    create or replace procedure WriteTest is
    f utl_file.file_type;
    s varchar2(200) := 'this is some info';
    begin
    f := utl_file.fopen('TEST2DIR','sample2.txt','W');
    utl_file.put_line(f,s);
    utl_file.fclose(f);
    end WriteTest;
    Help how to give network path while creating oracle directory.
    --when i give local machine path then it will create at local machine where oracle is installed. but not able to create at other machine.
    Zakir

    Well for starters your directory object is called TESTDIR and in your fopen statement you are referring to TEST2DIR.
    On top of that I'm not sure oracle is happy to refer to network locations. I think you have to map it to a regular drive mapping (shared directory) type path. Can't say I've every tried to do it though.

Maybe you are looking for

  • Portal - User mapping - umlaut - personalize - error

    Hello all, did anyone hear of the following in the portal user mapping to a backend SAP system ? A user has an account in a 4.7 SAP system and his password contains a german umlaut. In the portal "User mapping" instead of SSO is active. The user clic

  • How to assign new vendor to existing wage type - urgent help needed!!

    Hi  SAP Gurus, I have a query for south African payroll- I want to assign an exiSting wage type (<b>i.e Transport 1234)</b> to <b>new vendor (600139)</b>The above wage type is aleady assigned to old vendor (600136) Hence from 1st June2007 onwards, th

  • 6110 Contacts and Calendar Birthday events

    I have recently got a 6110 Navigator but am having difficulty with the calendar. The birthdays I introduce on my contacts does not appear on the calendar. I have read the manual but it does not indicate anything in particular about these fields. Is t

  • Business Unit Suggestion

    Hi All, My Question is about Business Units and Terrority. So i have the Main Organization as "A", this is located in 3 Countries as "India","China","Austrilia". So Under Each Country there will be different Branches we have i.e Under India we have "

  • Print Option Mail PDF

    Selecting the Mail PDF option in Print brings up the attachment 'Loading ...... (..kb). If this is sent the recepient can't open the file. Why does Mail read 'Loading the file?' and what can be done to correct. If the file is saved as a PDF file and