Delete Particular Directory
Hi,
I created some of the directories sometime back which are not used thesedays. I like to delete some particular directories. When I tried to delete using delete statement I am getting INSUFFICIENT PRIVILEGES error message.
Can anyone help me in getting out unused directory objects.
The statement is not DELETE but DROP DIRECTORY
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_812a.htm#2066782
Similar Messages
-
How do I restore events in my iCal and iCloud? I was deleting particular events that weren't relevant to that week and then all of the events in that category have disappeared. I want them back. How do I do this?
did you ever get an answer? The same thing just happened to me!
-
Urgent!doubt in upload the file to a particular directory.
Hi
Actually i'm developing a site using JSP.
Main concept of the project is the user should be
able to access his files or dabases from anywhere
in the world thru internet via intranet.
i've placed upload option in my site.
each user should b given a separate directory.
can anyone tell me how to make the user to store
the file in a particular directory(the one alloted to him).
And to view the file, if the user enters the file name
it should open the file in the particular format.
i need the coding since i'm new to jsp.
can anyone help me or refer any site tht can solve
my problem?
thanx in advance.I'd just answered a similar case. I believe this is what you are looking for;
<%@ page contentType="MIME-Type; Charset=Character-Set" %>
Read up on MIME-Type and Character-Set for info.
Here some exmaple;
By default:
<%@ page contentType="text.html; Charset=ISO-8859-1" %>
Show an MS Excel file;
<%@ page contentType="application/vnd.ms-excel" %>
or
<%
String mimeType = "application/vnd.ms-excel"
response.seContentType(mimeType);
%>
Cheers -
Is there a way to list the contents of a particular directory?
Hi,
I'm creating the blue-print of a new iPad app and was wondering if there was a way to request the contents of a particular directory (eithre local to the device or a a particular directory on the web) and also get the "type" of each item.
For example if inside a directory "Directory1" and inside that directory I have 4 files and another directory, (file1.gif, file2.txt, file3.mov, file4.mp3, Directory2)
Is there a way to request the contents of Directory1 and the type of files they are?
The ideal thing will be to get a recursive request and get an array of contents of all directories inside a particular directory.
something like:
Directory1[file1a.gif,file1b.txt,file1c.mov,file1d.mp3,[Directory2[file2b.mov,fi le2b.mp3]]]
What I want is to create a navigation for the user based on the resultant strign.
Am I re-inventing the wheel here?
Any direction will be greatly appreciated. I rather adjust blue-print now based on what is possible.
Thanks!We are users here. You might have better luck going to the developers forum.
http://developer.apple.com/devforums/
There are also links on that page that may help too. -
Is there a way to delete a directory with files in it?
I am working on a program right now, and i need to know if there is a way to delete a directory that has files in it?
or do i have to write another program that gets the list and deletes each file individually? if this is the solution, how do you do this?
Right now, i would prefer some of the logic and some "code snippets" but please do not write the entire code out for me.
thank you.
(snippets include how to poll, and how to call the polled item so i can delete it...)Right now, i would prefer some of the logic andsome "code snippets" but
please do not write the entire code out for me.So I assume this is some sort of "homework" (maybe
self imposed).
You can't use File's delete() to delete a non empty
directory as I guess you
have discovered. So basically, yes, you have delete
each child file
separately and then delete the directory.
But it gets worse. The directory may itself contain
directories and these may
not be empty...
There's a fairly extensive snippet here:
http://www.exampledepot.com/egs/java.io/TraverseTree.h
tml which shows
how you can "visit" every file and folder inside a
given folder (children,
grandchildren etc) and "process" them. It may help -
but be warned there's
a nearby example which more or less solves your
problem.Um, did my post above get covered with lemon juice or otherwise become invisible?
Jakarta Commons IO FileUtils already does the job. -
TO READ FILES IN A PARTICULAR DIRECTORY FROM APPLICATION SERVER
Hi all,
Is there any function module which gives the list of files in a specific directory ??
for eg ;i want to fetch all files in a particular directory say */interf/sy-mandt/reports....*
I need a function module which will give all filenames in an internal table ,if i give the directory name as input.
Thanks in advance,
Aakash.
Edited by: Aakash Neelaperumal on Apr 25, 2008 11:06 PMHi,
You can use WS_FILENAME_GET but understand it is obsolete. Search for a FM in function group SFES. I saw quite a few and one of them should meet your requirement.
Cheers ! -
Active Directory + Resource action to delete home directory
Hi all,
I am trying to delete home directory from the disk physically after the user is deleted from AD. I followed the link http://docs.sun.com/app/docs/doc/820-6551/bzbuc?a=view and implemented the delete resource action as mentioned in the link.
here are the steps i followed (For testing, I mentioned delete >> C:\test.txt to see if it deletes the text file)
1. Enter delete after action in the Identity Manager User Attribute column of the resource’s schema map.
2. In the Attribute Type column, select string.
3. In the Resource User Attribute column, enter IGNORE_ATTR. Leave the Required, Audit, Read Only, and Write Only columns unchecked.
4. Add this to the Deprovision Form user form after the </Include> tag:
<Field name= ’resourceAccounts.currentResourceAccounts[AD].attributes.
delete after action’>
<Expansion>
<s>AfterDelete</s>
</Expansion>
</Field>
5. Create the following XML file and import into Identity Manager. (Change file paths according to your environment.)
<?xml version=’1.0’ encoding=’UTF-8’?> <!DOCTYPE Waveset PUBLIC
’waveset.dtd’ ’waveset.dtd’>
<Waveset>
<ResourceAction name=’AfterDelete’>
<ResTypeAction restype=’Windows Active Directory’ timeout=’6000’>
<act>
echo delete >> C:\test.txt
exit
</act>
</ResTypeAction>
</ResourceAction>
</Waveset>
6. Edit the XML for the Active Directory resource and add information to the “delete after action” schema mapping. Here is an example of a complete schema mapping for this resource with the new additions. (You will be adding the views-related information.)
<AccountAttributeType id=’12’ name=’delete after action’ syntax=’string’
mapName=’IGNORE_ATTR’ mapType=’string’>
<Views>
<String>Delete</String>
</Views>
</AccountAttributeType>
To test, I deleted a user from AD and I was expecting the file c:\test.txt to be deleted as it invokes the Resource action after delete. Has anyone been successful in deleting the home directory from drive after the user is deleted. Any pointers or help
Thanks,
AniHi Gaurav,
I have to implement Resource Action functionality for Solaris system. I followed the link http://download.oracle.com/docs/cd/E19225-01/820-6551/bzbuc/index.html and the first message of this thread. I am using 8.1 IDM.
But unfortunately I can’t trigger any bash commands on the resource like echo deleting of user wiht next name - $WSUSER_accountId >> /tmp/resultFile.txt.
There are any errors on log file.
Can you share your work configuration and steps to reproduce?
I have done next but Resource Action doesn’t triggered:
1. My Action:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
<Waveset>
<ResourceAction name='AST-ResAct-SOL-AfterDelete'>
<ResTypeAction restype='Solaris' timeout='6000'>
<act>
#!/usr/bin/bash
echo deleting of user wiht next name - $WSUSER_accountId >> /tmp/resultFile.txt
exit 0
</act>
</ResTypeAction>
</ResourceAction>
</Waveset>
2. Added next line to “Deprovision Form”
<Field name='resourceAccounts.currentResourceAccounts[SOLARIS 10].attributes.delete after action'>
<Expansion>
<s>AST-ResAct-SOL-AfterDelete</s>
</Expansion>
</Field>
3. Added a new attribute mapping on the resource:
<AccountAttributeType id='12' name='delete after action' syntax='string' mapName='IGNORE_ATTR' mapType='string'>
</AccountAttributeType>
4. Assigned role (this role provisioned resource to user) to user, delete user from resource via Deprovision IDM page. But my Action commands didn’t trigger on resource.
Thanks’ in advance! -
How can I encrypt a particular directory and not Home?
I have a work iBook that I use for travel and I'd like to encrypt a particular directory instead of my whole Home directory. Can this be done? If so, how?
If I NEED to use File Vault on my home directory, does this slow down non-work things like making DVDs, working with Photoshop, playing games, etc?
What if I made another user, like Work, and used File Vault on that? I guess that would work, but could I access a file while I'm logged in as Home?
Thanks,
Tom>Re: 1: So, basically what I'm doing is creating another partition...but an encrypted partition, right?
Not a partition, per se. While a disk image looks and acts like a partition in some respects (you can mount it at the desktop, copy files to/from it, etc.), it's actually just a file on disk, which means you can copy the disk image to another machine, open it up and get it's contents (password-protection notwithstanding, of course). Partitions cannot be moved from machine to machine (or from disk to disk)
Also, if you create the disk image as a sparse image, it only takes up the amount of space consumed by the files within it. This means that if you create a 1GB image but only copy 100MB of data into it, it'll take up 100MB of space on disk (plus a little overhead). Compare that to a partition that will take 1GB on disk, even when it's empty. -
How to delete particular child element
hi
i have one xml document like this;how to delete particular element ;i want to delete say playerid = 9;
and also i want to update the particular element, IndianPlayer(child nodes(name,age)) say playerid = 5 with name=agarkar and age=27;
<India>
<IndianPlayer PlayerId="1">
<Name>Sachin</Name>
<Age>31</Age>
</IndianPlayer>
<IndianPlayer PlayerId="2">
<Name>Saurav</Name>
<Age>32</Age>
</IndianPlayer>
<IndianPlayer PlayerId="3">
<Name>Yuvraj</Name>
<Age>22</Age>
</IndianPlayer>
<IndianPlayer PlayerId="4">
<Name>Dravid</Name>
<Age>32</Age>
</IndianPlayer>
<IndianPlayer PlayerId="5">
<Name>Kumble</Name>
<Age>34</Age>
</IndianPlayer>
<IndianPlayer PlayerId="6">
<Name>Sehwag</Name>
<Age>24</Age>
</IndianPlayer>
<IndianPlayer PlayerId="7">
<Name>Laxman</Name>
<Age>32</Age>
</IndianPlayer>
<IndianPlayer PlayerId="8">
<Name>parthiv</Name>
<Age>18</Age>
</IndianPlayer>
<IndianPlayer PlayerId="9">
<Name>Zaheerkhan</Name>
<Age>26</Age>
</IndianPlayer>
</India>
bye
chaitanyaHi
you can use the following code to delete a particular child based upon the given criteria
Name the xml file as cricPlayer.xml(since i have used that name in the program)
i hope this solves ur problem
// Developed by ottran on 18/06/2004
import java.io.*;
import java.util.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.*;
import javax.xml.parsers.*;
import javax.xml.*;
import javax.xml.transform.stream.StreamSource;
public class CricDom
public static void saveXML(Document doc, String str)
try{
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer();
transformer.setOutputProperty(OutputKeys.INDENT,"yes");
transformer.transform(new DOMSource(doc),new StreamResult(str));
catch(TransformerException e)
System.out.println("Transformer Exception: "+e);
public static void main(String args[]){
try
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse("cricPlayer.xml");
document.getDocumentElement().normalize();
Node ParentNode = document.getDocumentElement();
NodeList list = document.getElementsByTagName("IndianPlayer");
for(Node child= ParentNode.getFirstChild(); child != null; child = child.getNextSibling())
try{
if(child.getNodeType()==Node.ELEMENT_NODE)
NamedNodeMap tw = child.getAttributes();
if(child.getAttributes().getNamedItem("PlayerId").getNodeValue().matches("9"))
ParentNode.removeChild(child);
saveXML(document,"cricPlayer.xml");
catch (NullPointerException nex)
System.out.println("Null Exception : "+nex);
catch (Exception ex)
System.out.println("Exception : "+ex);
Bye
ottran -
Tar extract file in particular directory excluding path stored in tar file
In winzip you have chk box 'Use Foldername', if you uncheck it, all files will be extracted to path given in Extract to:
Like winzip, do you have facility to extract files from tar file to a particular directory ignoring path stored in tar file.
os - linux,unix
regdsUsing -C <new_directory> options creates
subdirectories under the new_directory as per path
stored in tar file
I just want to extract the files in the -C directory.
e.g.
# tar -tvf archive.tar
-rw-r----- oracle/oinstall 4669440 2006-11-30
13:23:02 /app/fmb/FORM1.fmb
-rw-r----- oracle/oinstall 200704 2006-11-29
10:18:25 /app/fmb/FORM2.fmb
when i give following command
tar -xvf archive.tar -C TargetDir
creats subdirectory app/fmb in this TargetDir and
then extract the files Forms1.fmb
TargetDir/app/fmb/FORM1.fmb
TargetDir/app/fmb/FORM2.fmb.
where as i want FORM1.fmb and FORM2.fmb in TargetDir
TargetDir/FORM1.fmb
TargetDir/FORM2.fmb
regdsit's include directory information when you run tar cvf.
you can do the following action
1. cd /app/fmb/
2. tar cvf archive.tar *
3. tar -xvf archive.tar -C TargetDir -
How do I delete<home directory>/Library/Preferences/Macromedia/Flash\Player?
Note that it'll be created over every time you load a Flash object in a Web browser (at least if it has Flash enabled).
The only way to consistently get rid of all its content would be to create an AppleScript, or use Automator to create a workflow that would empty this folder when you close the browser. -
Polling a particular directory, retrieving only new files
Hi,
I have a requirement of polling a particular directory, and retrieving all new files posted. Say, i have a file called file1 in a particular directory, i keep polling the same directory every "n" minutes or even seconds, and will try to fetch file1 only when there is a semaphore file called file1.ready exists for file1.
This is in Solaris.
How can this be implemented?. Any help will be greatly appreciated.
ThanksTake a look at java.io.File which represents an abstract path such as a directory or file. You'll probably be particularly interested in File.exists().
-
Polling a particular directory, retrieve only new file(s)?
Hi,
I have a requirement of polling a particular directory, and retrieving all new files posted. Say, i have a file called file1 in a particular directory, i keep polling the same directory every "n" minutes or even seconds, and will try to fetch file1 only when there is a semaphore file called file1.ready exists for file1.
This is in Solaris.
How can this be implemented?. Any help will be greatly appreciated.
Thanksyou can use the file modified dates to figure out whats new and whats old.
May be you can compare them against the last time that you ran the process. -
Check existence of a particular directory in Dev Server.
Hi,
How do we check the existence of a particular directory (in Dev Server ) through the program??
Thanks.Hi,
Use function module PFL_CHECK_DIRECTORY.
Regards,
Darren -
Can we delete particular request from ODS
Hi All,
Can't we delete particular request from ODS?
there are dozen of successful requests in ODS, when i deleted one successful request from the middle, all the subsequent requests lost the tick which indicates they are updated to cube. Is there any way that i can undo this one?
can we do selective request(successful) deletion from ODS?
Thanks in advance.
Robyn.Hi Samara,
what i was trying to do is re-arranging the requests according to chronological order, which are not in. imagine the scenario
ODS requests cube request
5 -> E
4 -> D
2 -> B
3 -> C
1 -> A
what iam trying to do is put them in sequence
ODS request cube request
5 E
4 D
3 C
2 B
1 A
If i delete 3rd ODS request put it over 2 it won't accept as the request number is lesser than that of 2nd request.
can we reconstruct any request from reconstruction tab or just the latest request?
How does this effect the data which is already updated to cube from ODS?
Regards,
Robyn.
Message was edited by:
Robyn Hoggard
Message was edited by:
Robyn Hoggard
Maybe you are looking for
-
Receiving Email from wrong address
Dear All, I am having 3 main problems with my exchange server as below: 1. One my Exchange user is sending email to other users within the organization but when the recipient receive the email, it appear that another exchange user is sending the emai
-
Is it possible to send a copy of invoice as PDF files to sales agents
Hi All, Please let me know my client needs this below requirement, Is it possible to send a copy of invoice as PDF files to sales agents by e-mail triggered by the invoicing or is it only possible manually through ZPDF? Best Regards Aditya
-
standalone AP1231G running c1200-k9w7-mx.123-8.JEC2 setup with internal SSID (VLAN 24)and guest SSID (VLAN 124). Here's the problem Both SSID picks up the native VLAN 1 dhcp address and not it's respective VLAN. I verify that dhcp server is working o
-
About XI installation components
Hi all: I've got IDES 6.0 installed on my computer, would you please give me a list about what else I should download from maket place? Couldn't thank you more.
-
Header window vbeln is not changing in smart forms
Hi Guru's, I am working in smart forms . I have to print Challan No in right side of each page. I take separe Header window in that i am printing the Challen No. in first page it was comming correctly but in second page I am getting the first page ch