Set working directory for a single thread

Hi there,
Well, there are already some threads about the "working directory" subject.
Here's a new variant: I need to have different working directorys for each thread.
I am currently enhancing an application to do some similar jobs multithreaded (but each one in a different working dir).
So far, I started n instances of the same application in n virtual machines in n shells with each one having a different working dir.
I think compared to the old way, doing it with multithreading is a good resource saving optimization...
Reading through the 'working directory' threads , I everywhere found the recommendation to do without the internal 'cd' and use absolute paths instead.
The problem is:
Some of the lower level classes create directories and files in their constructors to make sure they exist when performing later actions.
If there is really no way other than using absolute paths, I would need to change many constructor's and method's signatures (from the creation of a Runnable Object all the way down to the creation of the mentioned classes).
So please, don't recommend me to use absolute paths if there's a trick to do a 'cd'.
Of course, if there is really no way to do a 'cd' for a thread, this would be bad luck...
Hoping for help
Markus

Hi,
Reading those threads, I was not sure if the conclusion is "I can not" or "I should not" (maybe because its very difficult or it may have side effects or whatever).
The scenario I described is true, but it was also meant to prevent people from saying "you should not" too easily.
But if the conclusion is "I can not", it seems I will have to do numerous changes. Bad luck for me.
Anyway, Thanx.

Similar Messages

  • Unable to set working directory (-2147024832) for some app installs

    I've found several drivers on a Dell Laptop that don't play well with others in MDT 2012, so I started making an application install package for them instead.  Most of them fail with an "unable to set working directory" error.  I checked
    the app install logs and they don't really make any sense to me.  I know the process as a whole works, because I can install .Net 4.0 runtimes without any problems using the same method.  The important bits of the ZTI App log are below.  Would
    be for any guidance on this, as I'm stumped and none of the searches on the exact errors are of much help.
    A sample error returned in the wizard is:
    WARNING - unable to set working directory (-2147024832)Error installing application Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00: The system cannot find the file specified.
    The ZTIApplication.log file contains the following... the first is one that works (.NET 4), the second is one that fails. (Not using code block for this one, it doesn't like it).
    <![LOG[Validating connection to \\ITSASERVER\DeploymentShare$\Applications\Microsoft .NET 4.0 runtime 4.0]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1"
    thread="" file="ZTIApplications">
    <![LOG[Already connected to server ITSASERVER as that is where this script is running from.]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[ Change directory: \\ITSASERVER\DeploymentShare$\Applications\Microsoft .NET 4.0 runtime 4.0]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications"
    context="" type="1" thread="" file="ZTIApplications">
    <![LOG[ Run Command: \\ITSASERVER\DeploymentShare$\Tools\X64\bddrun.exe dotNetFx40_Full_x86_x64.exe /norestart /passive]LOG]!><time="08:20:30.000+000" date="09-27-2013"
    component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[ZTI installing application ]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Event 41031 sent: ZTI installing application ]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[About to run command: \\ITSASERVER\DeploymentShare$\Tools\X64\bddrun.exe dotNetFx40_Full_x86_x64.exe /norestart /passive]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context=""
    type="1" thread="" file="ZTIApplications">
    <![LOG[Command has been started (process ID 3212)]LOG]!><time="08:20:30.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[ZTI Heartbeat: command has been running for 0 minutes (process ID 3212)]LOG]!><time="08:20:31.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[Event 41003 sent: ZTI Heartbeat: command has been running for 0 minutes (process ID 3212)]LOG]!><time="08:20:31.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1"
    thread="" file="ZTIApplications">
    <![LOG[Return code from command = 0]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Application Microsoft .NET 4.0 runtime 4.0 installed successfully]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Event 41033 sent: Application Microsoft .NET 4.0 runtime 4.0 installed successfully]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[Property InstalledApplications001 is now = {9abb5842-9a8e-45c5-9268-4fa4e69dba34}]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[Application Microsoft .NET 4.0 runtime 4.0 needs a reboot, initiating.]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[Dependent application requested a reboot]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Property SMSTSRebootRequested is now = true]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Property SMSTSRetryRequested is now = true]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Exiting to initiate a reboot with retry (to pick up where we left off)]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[ZTIApplications processing completed successfully.]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Event 41001 sent: ZTIApplications processing completed successfully.]LOG]!><time="08:23:48.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[################]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Entry: {dee65f94-e269-4eac-927d-6e06c0e0eb9d}]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Name:  Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[################]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Validating connection to \\ITSASERVER\DeploymentShare$\Applications\Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context=""
    type="1" thread="" file="ZTIApplications">
    <![LOG[Already connected to server ITSASERVER as that is where this script is running from.]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[ Change directory: \\ITSASERVER\DeploymentShare$\Applications\Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00]LOG]!><time="08:25:04.000+000" date="09-27-2013"
    component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[WARNING - unable to set working directory:  (-2147024832)]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="2" thread="" file="ZTIApplications">
    <![LOG[ Run Command: \\ITSASERVER\DeploymentShare$\Tools\X64\bddrun.exe Setup.exe -s]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications"
    context="" type="1" thread="" file="ZTIApplications">
    <![LOG[ZTI installing application ]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Error executing web service http://ITSASERVER:9800/MDTMonitorEvent/PostEvent?uniqueID=2a0f4469-d803-4976-b434-adbf06b85c23&computerName=Lat3440_0927b&messageID=41031&severity=1&stepName=Install Applications&currentStep=61&totalSteps=88&id=4C4C4544-0031-4610-8053-B7C04F4C5731,E0:DB:55:AC:48:1C&message=ZTI
    installing application &dartIP=&dartPort=&dartTicket=&vmHost=&vmName=: The server name or address could not be resolved
     (-2147012889)]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Event 41031 sent: ZTI installing application ]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[About to run command: \\ITSASERVER\DeploymentShare$\Tools\X64\bddrun.exe Setup.exe -s]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread=""
    file="ZTIApplications">
    <![LOG[Error installing application Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00: The system cannot find the file specified.
    ]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="3" thread="" file="ZTIApplications">
    <![LOG[Error executing web service http://ITSASERVER:9800/MDTMonitorEvent/PostEvent?uniqueID=2a0f4469-d803-4976-b434-adbf06b85c23&computerName=Lat3440_0927b&messageID=41032&severity=3&stepName=Install Applications&currentStep=61&totalSteps=88&id=4C4C4544-0031-4610-8053-B7C04F4C5731,E0:DB:55:AC:48:1C&message=Error
    installing application Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00: The system cannot find the file specified.
    &dartIP=&dartPort=&dartTicket=&vmHost=&vmName=: The server name or address could not be resolved
     (-2147012889)]LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    <![LOG[Event 41032 sent: Error installing application Dell 3440_Chipset_Driver_JD3WN IMEI drivers 9.5.3.1520_A00: The system cannot find the file specified.]
    <![LOG]!><time="08:25:04.000+000" date="09-27-2013" component="ZTIApplications" context="" type="1" thread="" file="ZTIApplications">
    Why can't it find it or set the working directory, especially when it's already validated that it's there?  
    --smthng

    I'm not familiar with how Dell does their client side software, but for the server-side software (my area of expertise), I've always done something like the following:
    I recommend running every application install in a VBScript/Powershell wrapper.  You get logging for the application back on your SLShare as well as its cleaner (you can replace Drivers A05 with A06 by changing the script, rather than editing the application
    in MDT).
    sApplicationName = "Dell 12G Chipset"
    oLogging.CreateEntry "Install-" & sApplicationName & ": Starting " & sApplicationName & " installation", LogTypeInfo
    '//Set Destination Folder
    sDestFolder = "c:\temp\"
    '//Set Source Install Directory
    sSourceDir = oUtility.ScriptDir
    sSourceDir = sSourceDir & "\Source"
    '//Check that folder exists, if not, create it.
    oLogging.CreateEntry "Install-" & sApplicationName & ": Check that " & sDestFolder & " exists.", LogTypeInfo
    if not oFSO.FolderExists (sDestFolder) then
    oFSO.CreateFolder sDestFolder
    End If
    '//Copy folder from MDT share to C:\Temp
    oLogging.CreateEntry "Install-" & sApplicationName & ": Copy from " & sSourceDir & " to " & sDestFolder, LogTypeInfo
    oFSO.CopyFolder sSourceDir, sDestFolder
    '//Sleep for 2 seconds to allow copy to finish
    wscript.sleep 2000
    sFile = sDestFolder & "Source\setup.exe"
    '// Check if file/folder exists
    If not oFSO.FileExists(sFile) then
    oLogging.CreateEntry "Install-" & sApplicationName & ": " & sFile & " was not found, unable to install " & sApplicationName & "", LogTypeError
    ZTIProcess = Failure
    Exit Function
    End if
    '// Create log entry to show file being run
    oLogging.CreateEntry "" & sFile & " -s", LogTypeInfo
    iRetVal = oUtility.RunWithHeartbeat("" & sFile & " -s")
    if (iRetVal = 0) or (iRetVal = 3010) then
    ZTIProcess = Success
    Else
    ZTIProcess = Failure
    End If
    wscript.sleep 15000
    '// Disable Zone Checks
    oEnv("SEE_MASK_NOZONECHECKS") = 1
    '//Folder Cleanup
    oFSO.DeleteFolder sDestFolder & "Source"
    I always copy any drivers that are installed after the fact (everything for me other than SAS/NIC drivers) to the C:\Temp as it can break.  I always update my NIC drivers during the build to the latest Dell software using their packs.  I try to
    not mess with my boot image unless I'm adding a new model that is not supported by the built-in drivers.

  • Illustrator needs a Relative mode switch or ability to set a Working directory for each AI file!

    Hi guys,
    I thought I would post in here because I find I'm wanting this feature more and more over the past year.
    This can apply to most of Adobes application but it would be great to see some file management functionality built into the applications themselves. This could then be further expanded in Bridge/Cue to incorporate more applications into the working project but at the very least the application itself the ability to control its own root existence.
    On so many occasions I require Illustrators file linking feature to be relative and NOT absolute which it currently is. The only relative capability it has is if ALL the linked assets are in the same local directory as the AI file itself and this as everyone knows breaks the first rule of proper file management.
    Many of the projects I work on uses many AI files with sometimes over 50 linked in assets in a variety of different formats from a variety of different clients (locations). I cannot easily move this project folder around without the painful task of linking all the data again and this creates a massive issue.
    Ideally an approach similar to Autodesks Maya and Max where you can set project directories. This means all the Save As and other operations will default to that working directory for that file. All linked data will then use the projects working directory as its root and allow the project to move from location to location and not be affected.
    This would Im sure benefit many other designers who work on projects with large amounts of data that may not live always in the same spot. For us we work with so many different people during a production that mobility is a must and at the moment we are finding it very difficult.
    As always, thanks for reading.
    Cheers
    Nick.

    Hello,
    First command
    So what does the wiki meen by: "DEVPATH sets the physical device. You can determine this by executing the command
    readlink -f /sys/class/hwmon/hwmon-device/device | sed -e 's/^\/sys\///'"
    Physical device of what, and what output am I suppose to get: Nothing, a list with output on where the symlinks lead, something else... In my case I got no output, if that is right, I do not know - since I do not understand what the command do.
    Seccond comand
    DEVNAME: Sets the name of the device. Try:
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon-device/device/name
    Does it meen like this - If I during my pwmconfig used hwmon1 wich was coretemp, and hwmon2 wich was nct6775, I should do:
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon1-device/device/name coretemp
    sed -e 's/[[:space:]=]/_/g' /sys/class/hwmon/hwmon2-device/device/name nct6775
    And that will direct every occurrence of hwmon1 and hwmon2 to the correct sensor chip?
    Regards
    Martin
    Last edited by onslow77 (2015-01-23 21:46:04)

  • How to set the working directory for reports in linux

    Hi All,
    Can you anyone help me to set the working directory for oracle application server 10g reports? I am using RHEL4 and AS10g. Actually i want to run my reports from my define
    working directory. How can I do this?
    Thanks in advance
    Arif

    Hi,
    your rep_srv.conf should look like something like
    +<?xml version = '1.0' encoding = 'ISO-8859-1'?>+
    +<!DOCTYPE server PUBLIC "-//Oracle Corp.//DTD Reports Server Configuration //EN" "file:D:\oracle\FRHome_1/reports/dtd/rwserverconf.dtd">+
    +<server version="10.1.2.0.2">+
    +<!--Please do not change the id for reports engine.-->+
    +<!--The class specifies below is subclass of _EngineClassImplBase and implements EngineInterface.-->+
    +<cache class="oracle.reports.cache.RWCache">+
    +<property name="cacheSize" value="50"/>+
    +<!--property name="cacheDir" value="your cache directory"-->+
    +<!--property name="maxCacheFileNumber" value="max number of cache files"-->+
    +<!--property name="ignoreParameters" value="parameter names to be ignored in constructing cache key, separated by comma ','"-->+
    +</cache>+
    +<engine id="rwEng" class="oracle.reports.engine.EngineImpl" initEngine="1" maxEngine="3" minEngine="0" engLife="50" maxIdle="30" callbackTimeOut="90000" jvmOptions="-Xmx512M -Xss512K">+
    +<!--property name="sourceDir" value="your reports source directory"/-->+
    +<!--property name="tempDir" value="your reports temp directory"/-->+
    +<!--property name="keepConnection" value="yes"/-->+
    +</engine>+
    +...+
    some more definitions
    +..+
    +<!--pluginParam name="proxy" type="file">proxyinfo.xml</pluginParam-->+
    +<pluginParam name="xmlpds" type="file">xmlpds.conf</pluginParam>+
    +<pluginParam name="jdbcpds" type="file">jdbcpds.conf</pluginParam>+
    +<pluginParam name="textpds" type="file">textpds.conf</pluginParam>+
    *<environment id="APP1">*
    *+<envVariable name="REPORTS_PATH" value="/application1/reports"/>+*
    *+</environment>+*
    *+<environment id="APP2">+*
    *+<envVariable name="REPORTS_PATH" value="/application2/reports"/>+*
    +</environment>+
    +</server>+
    The environment ids you can choose yourself and you have to put them in there yourself too (here I put two environments for two different applications "1" and "2").
    If you call a report from Forms, then you have to code something like
    ADD_PARAMETER(p_list,'ENVID',TEXT_PARAMETER,'APP1');
    Details depend on how you call your reports, my example is for using a parameter list and calling a report out of application1
    Hope that helps.
    Volker

  • How to set Compatibility Mode for a single site in ie10

    This question was originally posted on the Answers forum -
    http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
    I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
    When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
    This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
    Using a different example to explain the issue -
    Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
    microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
    msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
    technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
    The only thing the three website share is the URL contains 'microsoft.com'.
    Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode. 
    Should you be able to add an individual site to the compatibility list instead of all sites that have  .microsoft.com in the URL? Am I missing a simple setting in the ie10?
    As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation. 

    problem is not solved for non corporate environments...
    You could start your own thread.  Then if you got that answer and it was marked Answered you would have the ability to unmark it.  The OP of this one seems satisfied.  Also note that this is TechNet.  Consumers can get help on Answers
    forums.
    Robert Aldwinckle
    Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
    The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
    But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
    Regards
    /Aldus

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • How can i create work directory for Tomcat4 which is installed on Mandrake

    Hello Everybody,
    I installed Tomcat4 with the help of JPackage on Madrake Linux. It is working fine. But Unfortunatly my work folder in tomcat4 is deleted. I restarted my Tomcat, But the work folder not created. my application is not working. I need help from u people. Is there any other options to create work folder. I installed the tomcat4 from jpackage.
    Thanks in advance, Naveen Kumar Madugula

    4) Advanced Configuration - Multiple Tomcat 4 Instances
    In many circumstances, it is desirable to have a single copy of a Tomcat 4
    binary distribution shared among multiple users on the same server. To make
    this possible, you must configure a CATALINA_BASE environment variable (in
    addition to CATALINA_HOME as described above) that points to a directory
    that is unique to your instance.
    When you do this, Tomcat 4 will calculate all relative references for files in
    the following directories based on the value for CATALINA_BASE instead of
    CATALINA_HOME:
    * conf - Server configuration files (including server.xml)
    * logs - Log and output files
    * shared - For classes and resources that must be shared across all web
    applications
    * webapps - Automatically loaded web applications
    * work - Temporary working directories for web applications
    * temp - Directory used by the JVM for temporary files (java.io.tmpdir)
    If you do not set CATALINA_BASE to an explicit value, it will be initialized
    to the same value as is set for CATALINA_HOME (which means that the same
    directory is used for all relative path resolutions).
    more -> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt

  • How to set dbms_stats parameters for a single table

    Hi,
    I see that dbms_stats has the following procedure:
    PROCEDURE SET_PARAM
    Argument Name Type In/Out Default?
    PNAME VARCHAR2 IN
    PVAL VARCHAR2 IN
    Is there a way to change the parameters only for a single table?
    I need to set METHOD_OPT=>'FOR ALL COLUMNS SIZE 1' only for a specific table...

    I'm sorry, mate. It looks like setting individual table preferences was introduced in 11g (and doesn't seem to work all that well).
    You can still:
    1. Explicitly specify any of the supported parameters by using DBMS_STATS.GATHER_TABLE_STATS() for the individual table and run it along.
    2. Write a PL/SQL wrapper for let's say DBMS_STATS.GATHER_SCHEMA_STATS/GATHER_DTABASE_STATS that would gather the stats for the whole schema but ignore this particular table. Then gather the stats for the table with the METHOD_OPT parameter of your choice that could be different from the one used for the rest of the schema.
    This could be achieved by locking particular table stats with DBMS_STATS.LOCK_TABLE_STATS, running GATHER_SCHEMA_STATS with force=>FALSE (which is the default). That parameter will make the procedure ignore any tables with locked stats. As the last step of the wrapper you can execute DBMS_STATS.GATHER_TABLE_STATS for the table in question with the desired METHOD_OPT and force=>TRUE.
    It's a little more work, but may solve your problem.
    Max
    Edited by: Max Seleznev on Nov 28, 2012 6:21 PM
    Edited by: Max Seleznev on Nov 28, 2012 6:22 PM

  • How to set default directory for SQL LOADER

    hi all,
    i wanted to know how can we setup a default directory for SQL LOADER if at all we can. i connot place my control and data files in local system and use them at command prompt. rather i wanted to know if we can set default directory that the loader can use. this requirement is basically to enable all the clients to upload the data placed on the server and use the loader utility.
    thanks in advance,
    Basavraj

    Ella,
    You don't say which version of SQL Developer you are using via Citrix, but just setting the SQLDEVELOPER_USER_DIR hasn't worked for a long time (see Re: SQLDEVELOPER_USER_DIR does not function anymore). Also, since version 1.5, the default for the user directory (now set via ide.user.dir as shown below) is under the user profile area (relative to %APPDATA%), which you should be able to write to, even on Citrix.
    Assuming that neither of those help, you will need to get whoever installed SQL Developer on the Citrix C: drive to modify the sqldeveloper.conf to have a line like, where the path exists for everyone who will be using the shared SQL Developer (assumes everyone has a H: drive):
    AddVMOption -Dide.user.dir=H:\sqldeveloperAn alternative (depending on how you start SQL Developer via Citrix), is to create your own shortcut to start SQL Developer with something like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"theFurryOne

  • Set output directory for reports10g

    Hello,
    Is there a way to set the output directory for reports (10g) of REPORT_DESTYPE=FILE run from the web. Currently they all go to ORACLE_HOME\j2ee\home.
    thanks

    I am using the absolute path now but am finding that the length of DESNAME is to long.
    eg -
    DESNAME - D:\yamba\reports\SERIALS\mb0332.pf - works
    DESNAME - D:\yamba\reports\SERIALS\mb0332.pdf - doesnt work
    Any suggestions?
    thanks

  • Master Page: Alternatives (Subform Set) works only for the first page

    Hi everybody!
    I have bumped into a very weird problem with ADOBE Forms:
    When I create an 'Alternative' in a Context area and then place it on a Master Page, it works only for the first page. On the rest of pages it always show the 'TRUE' subform, regardless of the condition (which is not changed, of course). Absolutely the same Alternative works perfectly in a Content area for all pages.
    Has anybody seen something like this? Any ideas why?
    Thank you!

    This happens because of the processing of the form.
    You can see this here:
    LiveCycle ES2 * Adobe LiveCycle Designer ES2
    You have to put a own variable, which is set with the value you want in the very beginning.
    I know, it is not that logical in the first moment, but it makes sense.
    Regards
    Florian
    PS: This space SAP Interactive Forms by Adobe is the correct for questions like that

  • Oracle 10g Express Edition - change default working directory for save ?

    Greetings all,
    I'm completely new to Oracle but I am quite sure that on Oracle 9i, when using the <save xyz.sql> statement, a file was saved somewhere on the hard drive.
    I accidentaly managed to convince XE to save .sql files on C:\ but I would like to change that ...
    Google refused to offer me a solution so I'm asking you guys for advice.
    And no, <save desired_path\filename.sql> is not an option :P, I would like to make the change permanent.
    Thank you in advance,

    Hi,
    If you are using Windows, you can edit your "SQLPlus 80" shortcut.
    Changing the "start in" path to, e.g. "c:\sql" will do the trick. SQL+ commands such as "save" and "get" will now use "c:\sql" as default working directory.

  • Setting temp directory for editing original files

    Experts,
    Is there a way to default the temporary working directory where a document is stored while editing it in a DIR?  This is what we are experiencing:  When a user creates a DIR and uploads a Word file into the DIR, the Original field on the document details perserves the path where the file was uploaded from, i.e. s:/share_drive.  When another user goes into the same DIR and tries to edit the file, the program tries to create a working copy of the file in u:/share_drive.  If the second user does not have access to this path, they get an error.
    Is there a way to set the Original field an all files uploaded and stored in DMS to be a common working directory like c:\temp?

    Hi Andrew
    Th eoriginal is checked into sap/content server
    Te original gets saved in a temp location in the users desktop when the user opens the original from DIR.
    Check whether te folowing setting is maintained against pc or not.
    SPRO-----DMS-Define Data CarrierDefine data carrier type servers and frontend maintain the temp location like C:\temp or tmp.
    Regards
    Prasad K

  • Receive email notifications for a single thread only?

    Can you do this or must you subscribe to all threads?
    I could not find a way just to monitor a single thread, or a number of specific threads, as opposed to all threads.

    In Your Stuff/preferences there is an e-mail tab where you can select some options.
    I never have used e-mail as don't like my box cluttered.
    Also, with e-mail and edits that occur in the response are not sent to you, so you may not get the correct response.

  • A good design for a single thread pool manager using java.util.concurrent

    Hi,
    I am developing a client side project which in distinct subparts will execute some tasks in parallel.
    So, just to be logorroic, something like that:
    program\
                \--flow A\
                           \task A1
                           \task A2
                \--flow B\
                            \task B1
                            \task B2
                            \...I would like both flow A and flow B (and all their launched sub tasks) to be executed by the same thread pool, because I want to set a fixed amount of threads that my program can globally run.
    My idea would be something like:
    public class ThreadPoolManager {
        private static ExecutorService executor;
        private static final Object classLock = ThreadPoolManager.class;
         * Returns the single instance of the ExecutorService by means of
         * lazy-initialization
         * @return the single instance of ThreadPoolManager
        public static ExecutorService getExecutorService() {
            synchronized (classLock) {
                if (executor != null) {
                    return executor;
                } else {
                    // TODO: put the dimension of the FixedThreadPool in a property
                    executor = Executors.newFixedThreadPool(50);
                return executor;
         * Private constructor: deny creating a new object
        private ThreadPoolManager() {
    }The tasks I have to execute will be of type Callable, since I expect some results, so you see an ExecutorService interface above.
    The flaws with this design is that I don't prevent the use (for example) of executor.shutdownNow(), which would cause problems.
    The alternative solution I have in mind would be something like having ThreadPoolManager to be a Singleton which implements ExecutorService, implementing all the methods with Delegation to an ExecutorService object created when the ThreadPoolManager object is instantiated for the first time and returned to client:
    public class ThreadPoolManager implements ExecutorService {
        private static ThreadPoolManager pool;
        private static final Object classLock = ThreadPoolManager.class;
        private ExecutorService executor;
         * Returns the single instance of the ThreadPoolManager by means of
         * lazy-initialization
         * @return the single instance of ThreadPoolManager
        public static ExecutorService getThreadPoolManager() {
            synchronized (classLock) {
                if (pool !=null) {
                    return pool;
                } else {
                    // create the real thread pool
                    // TODO: put the dimension of the FixedThreadPool in a property
                    // file
                    pool = new ThreadPoolManager();
                    pool.executor = Executors.newFixedThreadPool(50);
                    // executor = Executors.newCachedThreadPool();
                    return pool;
         * Private constructor: deny creating a new object
        private ThreadPoolManager() {
        /* ======================================== */
        /* implement ExecutorService interface methods via delegation to executor
         * (forbidden method calls, like shutdownNow() , will be "ignored")
          // .....I hope to have expressed all the things, and hope to receive an answer that clarifies my doubts or gives me an hint for an alternative solution or an already made solution.
    ciao
    Alessio

    Two things. Firstly, it's better to use     private static final Object classLock = new Object();because that saves you worrying about whether any other code synchronises on it. Secondly, if you do decide to go for the delegation route then java.lang.reflect.Proxy may be a good way forward.

Maybe you are looking for

  • Help with removing event from calendar

    Hello everyone I'm adding a simple feature in my xcode ios app that has a UISwitch. When the UISwitch is on an event is created (this part works fine). But when I turn the UISwitch off I cannot find a way to remove the event. If I use code in the sec

  • Create AAC Version?

    In iTunes 8 on my iMac, I noticed that items I recorded myself had the contextual menu option "Create AAC Version." In the older version of iTunes on my eMac, the menu option was "Convert Selection to MP3." I actually prefer the AAC version because o

  • Acrobat X failed to install on my windows 7 64bit computer

    Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 3 error(s), 0 warning(s) --------

  • ALE IDoc Conversion Rule or BADI

    Hi, I'm new to ALE IDoc. I have a requirement to hide some sensitive data field for the HR information when outbound the Idoc. Example, I need to outbound the IT8 Basic Pay with payscale area etc but not with the basic pay amount. I can convert the b

  • Error in Data loading - The source of the fiscal year variant has changed

    Hi All, Need your kind suggestions to solve the issue. I am trying gto load data from one cube to another. the base cube has data with 0CALDAY. in the next cube I am trying to derive 0FISCPER from 0CALDAY. But while loading I am getting this error. T