Resize Tablespace having  multiple datafiles...

Hi All,
Is there any way to resize the tablespace having multiple datafiles? Tablespace having multiple DBF can not be resized like we did with alter database datafile ...resize command.
Please let me know if anyone having any idea.
Thanks in advance.

But as of now I have 4 DBF in a single Tablespace and all are having more than 25G in a size. And I can see many of the free blocks in all the files at the end If the free blocks are at the end, what prevents you from resizing the datafiles?
when data are inserting in the DBFs its not only spread to single file and once its reach to max size then only moved to second DBF, its scatter with the all the allocated DBFs of that particualr Tablespace. You can downgrade to 9i! The out-dated method you are after was deprecated with 10g. Why do you want to ignore parallelism and fill up one datafile sequentially until it reaches maximum size before putting data in another?

Similar Messages

  • Tablespaces with Multiple Datafiles

    I've got a Version 7.3.3.4 tablespace with multiple datafiles. There's a lot of object fragmentation. I want to be able to
    drop and recreate many (but not all) of the objects in this tablespace but exercise some control on which objects go to
    which datafiles in order to better utilize the available space on each datafile. I've been told that Oracle assigns objects
    to datafiles in a "round robin" fashion. I'd like info on exactly how this process works and if I can have a more direct effect
    on where objects are placed within the tablespace?
    Thanks,
    Paul Hargreaves
    [email protected]

    Hi,
    I am interested by having more information about tablespaces and how they are fragmented.
    I could, perhaps help you first by telling you that there is a ALTER command for coelescing space in ORACLE 7.3.4 :
    ALTER TABLESPACE tablespace COALESCE ;
    Of course you should have the permissions (ALTER TABLESPACE)
    This command is for the entirely tablespace ...
    In fact, i need a query that gives me for each tablespaces, how are they fragmented (with segment_name ..).
    Thanx
    Steff

  • Command to add multiple datafiles in multiple tablespace in one time.

    Send me command to
    command to add multiple datafiles in multiple tablespace in one time.

    Just list the files separated by a comma.
    SQL> alter tablespace example
    2 add datafile 'e:\oradata\scratch\example02.dbf' size 100m,
    3 'e:\oradata\scratch\example02.dbf' size 100m;
    Tablespace altered.
    SQL>
    You will have to use more then one command to add datafiles to multiple tablespaces.

  • Multiple datafiles per tablespace in 9i?

    Is it recommended to have multiple datafiles per tablespace?

    Is it recommended to have multiple datafiles per
    tablespace?It all depends on your particular storage needs. You could have a single datafile at maximum capacity for your tablespace, just ensure you can store it and in case you have to move it, it could be affordable.
    There are DBA's who use several datafiles for a single tablespaces, this reduces the single point of failure possibility and allows a more flexible datafile maintenance.
    Performance is the same for, except for the checkpoint process, the more datafiles, the more effort to update datafile headers.
    ~ Madrid

  • Having one single tablespace versus multiple tablespace?

    My database version is
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    My os version is
    Linux damdat01 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:00:49 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    My database is OLP system.
    My question is what are the advantages and disadvantages having one single tablespace versus multiple tablespace?
    Easy to maintain when you have single tablespace. but hard to track the IO issues.
    Any other input from any one? Please let me know.

    Billy  Verreynne  wrote:
    EdStevens wrote:
    Does the term "keeping all your eggs in one basket" mean anything ....Well, in the majority of cases, even when using multiple tablespaces they will be on the same storage array or same file system. So the "+all eggs in one basket+" goes a lot a deeper down the storage layer than just the top part where you deal with logical tablespace storage containers.
    Absolutely. Except for the bazillion microscopic solid-state switches and a layer of rust on a spinning platter, everything else is just layers of abstraction. One's thinking and frame of reference depends on what layer of abstraction one is dealing with.
    The major problem with multiple tablespace for a single application And here is where there was some 'fuzz' in the OPs question. I don't recall him specifying one TS per application. Maybe he assumed that, but I read it as one (user) TS per database.
    a) deciding the space allocation of each tablespace
    b) managing what is created in which tablespace
    This comes down do an issue of micro-managing space versus simply chucking everything into a single container and let god ASM/Oracle/LUN/driver/whatever sort them out.
    Issues like transportable tablespaces... separating your logical data into different containers... and the like? That is not really sufficient justification to me for having to micro-manage space for a 101 tablespaces. This simply creates a huge workload on the space management part of the database - that is complex and difficult to deal with. Free space from an underutilised (incorrectly sized) tabelspace cannot simply be moved and reallocated to a tablespace stressed for more space. Everything but...
    Which is why I prefer having fewer tablespaces as this means not having to micro-manage space and continually having to wave a threatening lead pipe around to make sure that applications and developers play rigidly within the large set of strict rules of how these many tablespaces are to be used.Agreed. One can go way overboard, and a lot of this discussion hinges on the OP's intent, as I mentioned above -- one TS per ... what? My default position is one TS per application schema. Normal human users all default to one USERS ts, but don't have any quota because they don't have any reason to create objects.

  • Autoextend user tablespace or add datafile

    Hello,
    My USERS tablespace had problem today when loading a file using sqlldr. It stopped loading halfway through the file.
    The allocated is set to 1900 mb and the used was at 1850. I only have 1 datafile for users tablespace. I have autoextensible to YES.
    Why did it not extend the tablespace when I should still have 2gb free??
    I dropped a couple unused user tables and it reduced the used amount, then I was able reran the sqlldr load and it completed.
    Should I create a new datafile
    ALTER TABLESPACE USERS ADD DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE 2000M AUTOEXTEND OFF;
    or increase the allocation
    ALTER DATABASE DATAFILE ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE 3000M;
    Thanks for the help...

    Why did it not extend the tablespace when I should still have 2gb free??
    Might be maxsize was defined at the time of tablespace creation
    For example
    SQL> select DBMS_METADATA.GET_DDL('TABLESPACE', 'USERS') from dual;
    DBMS_METADATA.GET_DDL('TABLESPACE','USERS')
    CREATE TABLESPACE "USERS" DATAFILE
    'C:\ORACLE\ORACLEXE\ORADATA\XE\USERS.DBF' SIZE 104857600
    AUTOEXTEND ON NEXT 10485760[b] MAXSIZE 5120M
    LOGGING ONLINE PERMANENT BLOCKSIZE 8192
    EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO
    Should I create a new datafile
    ALTER TABLESPACE USERS ADD DATAFILE
    ‘/usr/lib/oracle/xe/oradata/XE/users01.dbf’ SIZE
    2000M AUTOEXTEND OFF;
    or increase the allocation
    ALTER DATABASE DATAFILE
    ‘/usr/lib/oracle/xe/oradata/XE/users.dbf’ RESIZE
    3000M; It is good idea to add new file and having multiple file with same size.
    Also in future if needed you can relocate datafile to reduce I/O contention.

  • How the storage will be allocated on Undo tablespace made of datafiles?

    I have a UNDO tablespace with two data files. Wherein one data file with Auto Extend as Yes and other as No.
    In the case of multiple datafiles in UNDO tablespace,
    1. Will the storage be allocated of same size on each datafile ?
    2. What will be the case when the datafile with Auto Extent as NO reached it's max size?
    3. Will the storage be allocated proportion to the datafile size in each file?

    But when I use the following query, its not getting fired. Its taking "INDEX FULL SCAN"I would have thought that the later part of the above statement contradicts with the earlier part of the statement.
    its not getting firedcontradicts this statement:
    Its taking "INDEX FULL SCAN"Since the birth_dt is not the leading column of your index ...
    Is it doing a INDEX FULL SCAN on the GPM_PERSONPROFILEDEMO_DOB2_IDX index?
    if you have queries that involve profile_update_dt + birth_dt and some others that involve only birth_dt, then why not have the index in birth_dt + profile_update_dt instead?

  • Resize tablespace

    Hi All,
    when i am trying to resize tablespace . I am getting this error ORA-01516: nonexistent log file, datafile, or tempfile.

    query:
    alter database datafile '/HRPRODDATA/oradata/EPLARGE.DBF' resize 1M;
    select name from v$datafile;
    NAME
    /HRPRODDATA/oradata/system01.dbf
    /HRPRODDATA/oradata/psundots01.dbf
    /HRPRODDATA/oradata/sysaux01.dbf
    /HRPRODDATA/oradata/psdefault.dbf
    /HRPRODDATA/oradata/aaapp.dbf
    /HRPRODDATA/oradata/aalarge.dbf
    /HRPRODDATA/oradata/adapp.dbf
    /HRPRODDATA/oradata/amapp.dbf
    /HRPRODDATA/oradata/avapp.dbf
    /HRPRODDATA/oradata/bdapp.dbf
    /HRPRODDATA/oradata/bnapp.dbf
    NAME
    /HRPRODDATA/oradata/bnlarge.dbf
    /HRPRODDATA/oradata/ccapp.dbf
    /HRPRODDATA/oradata/coapp.dbf
    /HRPRODDATA/oradata/cuaudit.dbf
    /HRPRODDATA/oradata/cularg1.dbf
    /HRPRODDATA/oradata/cularg2.dbf
    /HRPRODDATA/oradata/cularg3.dbf
    /HRPRODDATA/oradata/cularge.dbf
    /HRPRODDATA/oradata/diapp.dbf
    /HRPRODDATA/oradata/dtapp.dbf
    /HRPRODDATA/oradata/eoapp.dbf
    NAME
    /HRPRODDATA/oradata/eobfapp.dbf
    /HRPRODDATA/oradata/eocfapp.dbf
    /HRPRODDATA/oradata/eocmapp.dbf
    /HRPRODDATA/oradata/eocmlrg.dbf
    /HRPRODDATA/oradata/eocmwrk.dbf
    /HRPRODDATA/oradata/eocuapp.dbf
    /HRPRODDATA/oradata/eoculrg.dbf
    /HRPRODDATA/oradata/eodsapp.dbf
    /HRPRODDATA/oradata/eodslrg.dbf
    /HRPRODDATA/oradata/eoecapp.dbf
    /HRPRODDATA/oradata/eoeclrg.dbf
    NAME
    /HRPRODDATA/oradata/eoecwrk.dbf
    /HRPRODDATA/oradata/eoeiapp.dbf
    /HRPRODDATA/oradata/eoeilrg.dbf
    /HRPRODDATA/oradata/eoewapp.dbf
    /HRPRODDATA/oradata/eoewlrg.dbf
    /HRPRODDATA/oradata/eoewwrk.dbf
    /HRPRODDATA/oradata/eoiuapp.dbf
    /HRPRODDATA/oradata/eoiulrg.dbf
    /HRPRODDATA/oradata/eoiuwrk.dbf
    /HRPRODDATA/oradata/eolarge.dbf
    /HRPRODDATA/oradata/eoltapp.dbf
    NAME
    /HRPRODDATA/oradata/eoppapp.dbf
    /HRPRODDATA/oradata/eopplrg.dbf
    /HRPRODDATA/oradata/eotpapp.dbf
    /HRPRODDATA/oradata/eotplrg.dbf
    /HRPRODDATA/oradata/epapp.dbf
    /HRPRODDATA/oradata/eplarge.dbf
    /HRPRODDATA/oradata/erapp.dbf
    /HRPRODDATA/oradata/erlarge.dbf
    /HRPRODDATA/oradata/erwork.dbf
    /HRPRODDATA/oradata/faapp.dbf
    /HRPRODDATA/oradata/falarge.dbf
    NAME
    /HRPRODDATA/oradata/fgapp.dbf
    /HRPRODDATA/oradata/fglarge.dbf
    /HRPRODDATA/oradata/fsapp.dbf
    /HRPRODDATA/oradata/giapp.dbf
    /HRPRODDATA/oradata/gpapp.dbf
    /HRPRODDATA/oradata/gpdeapp.dbf
    /HRPRODDATA/oradata/hpapp.dbf
    /HRPRODDATA/oradata/hrapp.dbf
    /HRPRODDATA/oradata/hrapp1.dbf
    /HRPRODDATA/oradata/hrapp2.dbf
    /HRPRODDATA/oradata/hrapp3.dbf
    NAME
    /HRPRODDATA/oradata/hrapp4.dbf
    /HRPRODDATA/oradata/hrapp5.dbf
    /HRPRODDATA/oradata/hrapp6.dbf
    /HRPRODDATA/oradata/hrapp7.dbf
    /HRPRODDATA/oradata/hrimage.dbf
    /HRPRODDATA/oradata/hrlarg1.dbf
    /HRPRODDATA/oradata/hrlarge.dbf
    /HRPRODDATA/oradata/hrsapp.dbf
    /HRPRODDATA/oradata/hrsarch.dbf
    /HRPRODDATA/oradata/hrslarge.dbf
    /HRPRODDATA/oradata/hrswork.dbf
    NAME
    /HRPRODDATA/oradata/hrwork.dbf
    /HRPRODDATA/oradata/htapp.dbf
    /HRPRODDATA/oradata/inapp.dbf
    /HRPRODDATA/oradata/paapp.dbf
    /HRPRODDATA/oradata/palarge.dbf
    /HRPRODDATA/oradata/pcapp.dbf
    /HRPRODDATA/oradata/pclarge.dbf
    /HRPRODDATA/oradata/piapp.dbf
    /HRPRODDATA/oradata/pilarge.dbf
    /HRPRODDATA/oradata/piwork.dbf
    /HRPRODDATA/oradata/poapp.dbf
    NAME
    /HRPRODDATA/oradata/psimage.dbf
    /HRPRODDATA/oradata/psimgr.dbf
    /HRPRODDATA/oradata/psindex.dbf
    /HRPRODDATA/oradata/psindex2.dbf
    /HRPRODDATA/oradata/ptamsg.dbf
    /HRPRODDATA/oradata/ptapp.dbf
    /HRPRODDATA/oradata/ptappe.dbf
    /HRPRODDATA/oradata/ptaudit.dbf
    /HRPRODDATA/oradata/ptcmstar.dbf
    /HRPRODDATA/oradata/ptlock.dbf
    /HRPRODDATA/oradata/ptprc.dbf
    NAME
    /HRPRODDATA/oradata/ptprjwk.dbf
    /HRPRODDATA/oradata/ptrpts.dbf
    /HRPRODDATA/oradata/pttbl.dbf
    /HRPRODDATA/oradata/pttlrg.dbf
    /HRPRODDATA/oradata/pttree.dbf
    /HRPRODDATA/oradata/ptwork.dbf
    /HRPRODDATA/oradata/pvapp.dbf
    /HRPRODDATA/oradata/py0lrg.dbf
    /HRPRODDATA/oradata/pyapp.dbf
    /HRPRODDATA/oradata/pylarge.dbf
    /HRPRODDATA/oradata/pywork.dbf
    NAME
    /HRPRODDATA/oradata/saapp.dbf
    /HRPRODDATA/oradata/sacapp.dbf
    /HRPRODDATA/oradata/salarge.dbf
    /HRPRODDATA/oradata/srapp.dbf
    /HRPRODDATA/oradata/stapp.dbf
    /HRPRODDATA/oradata/stlarge.dbf
    /HRPRODDATA/oradata/stwork.dbf
    /HRPRODDATA/oradata/tlapp.dbf
    /HRPRODDATA/oradata/tllarge.dbf
    /HRPRODDATA/oradata/tlwork.dbf
    /HRPRODDATA/oradata/waapp.dbf
    NAME
    /HRPRODDATA/rman.dbf
    /HRPRODDATA/oradata/ptprc2.dbf
    /HRPRODDATA/oradata/bkp01.dbf
    /HRPRODDATA/oradata/psdefault1.dbf
    /HRPRODDATA/oradata/gpapp_01.dbf
    /HRPRODDATA/oradata/psimage_01.dbf
    /HRPRODDATA/oradata/psindex_03.dbf
    /HRPRODDATA/oradata/tllarge_02.dbf

  • How to use parallelism in RMAN script having multiple lines

    Gurus,
    Need your advice on using parallelism in 'BACKUP AS COPY DATAFILE' script having multiple lines.
    I have a script like below:
    CONFIGURE DEVICE TYPE DISK PARALLELISM 10;
    backup as copy datafile '/data1/oradata/PROD/data01.dbf' format '+DATA';
    backup as copy datafile '/data2/oradata/PROD/data02.dbf' format '+DATA';
    backup as copy datafile '/data3/oradata/PROD/data03.dbf' format '+DATA';
    backup as copy datafile '/data4/oradata/PROD/data04.dbf' format '+DATA'; and so on ......
    If I run this script, it runs sequentially. How can I parallely copy the required data files ?
    I have to selectively copy few files in ASM.
    I want to use a single script.
    Please advise.
    Best regards,
    Santosh
    Edited by: 966454 on Oct 18, 2012 11:59 PM
    Edited by: 966454 on Oct 18, 2012 11:59 PM

    Unfortunately, this will not help my case. It may not always be '+DATA'
    I want to know if there is any way to parallelise the multiple statements.
    Script may have :
    CONFIGURE DEVICE TYPE DISK PARALLELISM 10;
    backup as copy datafile '/data1/oradata/PROD/data01.dbf' format '+DATA1';
    backup as copy datafile '/data2/oradata/PROD/data02.dbf' format '+DATA2';
    backup as copy datafile '/data3/oradata/PROD/data03.dbf' format '+DATA3';
    backup as copy datafile '/data4/oradata/PROD/data04.dbf' format '+DATA4'; ........
    or
    backup as copy datafile 1 as '/data1/oradata/PROD/data01.dbf' ;
    backup as copy datafile 2 as '/data2/oradata/PROD/data02.dbf' ;
    backup as copy datafile 3 as '/data3/oradata/PROD/data03.dbf' ; ........
    Regards,
    Santosh
    Edited by: 966454 on Oct 19, 2012 12:33 AM

  • MM: PO Not Picking up PR Having Multiple Line Items

    Hi All,
    When Creating PO with Reference to PR Having multiple line items, not picking up the line items and also the vendor and also the where in we  have to select  input tax code.
    CASE1: Created PR 760001340 with single line item and also could able to create PO.
    Case2: Created PR 760001341 with multiple line items, When creating PO with reference to PR the line items and Vendor are not picking Up.
    Plz. Advise a solution.
    Thanks in Advance.....
    Regards
    Sudheer

    HI SHWN,
    Thanks for prompt response.
    ERROR Message: When referencing a requisition, please also enter a requisition item no.
    Regards
    Sudheer

  • Does anyone have experience with having multiple editors work on the same project from different computers?

    Does anyone have experience with having multiple editors work on the same project from different computers?

    As much as I hate to admit it, YOU ARE RIGHT!
    I will tread lightly on this project.
    Thanks for the sanity check,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    I'm having multiple crashes on my new 5s. I can't connect to my Mac Pro!! Power cord broken. How can I fix this without connecting to my MacBook? Very frustrating and disappointing. Please help!!!

    Hi there Rlong50,
    You may want to try force closing all open apps and resetting the device as an initial troubleshooting step. Take a look at the articles below for more information.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    -Griff W.

  • Having multiple problems with script - NTFS Permissions and AD Groups

    Hi, all!  I'm having multiple problems with my first script I've written with Powershell.  The script below does the following:
    1. Prompts the user for a corporate division under which a shared folder will be created, and adjusts variables accordingly.
    2. Prompts if the folder will be a global folder or an office/location-specific folder, and makes appropriate adjustments to variables.
    3.  If a global folder, prompts for the name.  If an office/location-specific folder, prompts for each component of the street address, city and state and an optional modifier.  I've prompted for this information in this way because the information
    is used differently later on in the script.
    4.  Verifies the entered information and requests confirmation to proceed.
    5.  Creates the folder.
    6.  Creates an AD OU and/or security group(s).
    7.  Applies appropriate security groups to the new folder and removes undesired permissions.
    Import-Module ActiveDirectory
    $Division = ""
    $DivAbbr = ""
    $OU = ""
    $OUDrive = "AD:\"
    $FolderName = ""
    $OUName = ""
    $GroupName = ""
    $OURoot = "ou=DFS Restructure Testing OU,ou=Pennsylvania Camp Hill 4410 Industrial Park Rd,ou=Locations,ou=Camp Hill,dc=jacobsonco,DC=com"
    $FSRoot = "E:\"
    $FolderPath = ""
    $DefaultFolders = "Archive","Customer Service","Equipment","Inbounds","Management","Outbounds","Processes","Projects","Quality","Reports","Returns","Safety","Schedules","Time Keeping","Training"
    [bool]$Location = 0
    do {
    $userInput = Read-Host "Enter CLS Division: (W)arehousing, (S)taffing, or (P)ackaging"
    Switch ($userInput)
    W {$Division = "Warehousing"; $DivAbbr = "WHSE"; $OU = "ou=Warehousing,"; break}
    S {"Staffing is not yet implemented."; break}
    P {"Packaging is not yet implemented."; break}
    default {"Invalid choice. Please re-enter."; break}
    while ($DivAbbr -eq "")
    write-host ""
    write-host ($Division + " was selected.")
    $FolderPath = $Division + "\"
    write-host ""
    $choice = ""
    do {
    $choice = Read-Host "Will this be a (G)lobal folder or (L)ocation folder?"
    Switch ($choice)
    G {$Location = $false; break}
    L {$Location = $true; $FolderPath = $FolderPath + "Locations\"; $OU = "ou=Locations," + $OU; break}
    default {"Invalid choice. Please re-enter."; $choice = ""; break}
    while ($choice -eq "")
    write-host ""
    write-host ("Location is set to: " + $Location)
    write-host ""
    if ($Location -eq $false) {
    $FolderName = Read-Host "Please enter folder name:"
    $GroupName = $DivAbbr + " " + $FolderName
    } else {
    $input = Read-Host "Please enter two-letter state abbreviation:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter city:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter street address number only:"
    $FolderName = $FolderName + $input
    $GroupName = $DivAbbr + " " + $FolderName
    $FolderName = $FolderName + " "
    $input = Read-Host "Please enter street name:"
    $FolderName = $FolderName + $input
    $input = Read-Host "Please enter any optional information to appear in folder name:"
    if ($input -ne "") {
    $FolderName = $FolderName + " " + $input
    $OUName = $FolderName
    write-host
    write-host "Path for folder: "$FSRoot$FolderPath$FolderName
    write-host "AD Path: "$OUDrive$OU$OURoot
    write-host "New OU Name: "$OUName
    write-host -NoNewLine "New Security Group names: "$GroupName
    if ($Location -eq $true) { write-host " and "$GroupName" MGMT" }
    write-host
    $input = Read-Host "Please confirm creation of new site/folder: (Y/N) "
    if ($input -ne "Y") { Exit }
    write-host
    write-host -NoNewLine "Folder exists: "; Test-Path ($FSRoot + $FolderPath + $FolderName)
    if (Test-Path ($FSRoot + $FolderPath + $FolderName)) {
    Write-Host "Folder already exists! Skipping folder creation..."
    } else {
    write-host "Folder does not exist. Creating..."
    new-item -path ($FSRoot + $FolderPath) -name $FolderName -itemtype directory
    Set-Location ($FSRoot + $FolderPath + $FolderName)
    if ($Location -eq $true) {
    $tempOUName = "ou=" + $OUName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "OU exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "OU already exists! Skipping OU creation..."
    } else {
    write-host "OU does not exist. Creating..."
    New-ADOrganizationalUnit -Name $OUName -Path ($OU + $OURoot) -ProtectedFromAccidentalDeletion $false
    $GroupNameMGMT = $GroupName + " MGMT"
    if (!(Test-Path ($OUDrive + "CN=" + $GroupName + "," + $tempOUName + $OU + $OURoot))) { write-host "Normal user group does not exist. Creating..."; New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    if (!(Test-Path ($OUDrive + "CN=" + $GroupNameMGMT + "," + $tempOUName + $OU + $OURoot))) { write-host "Management user group does not exist. Creating..."; New-ADGroup -Name $GroupNameMGMT -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    # $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    write-host $BIUsersSID.Value
    # out-string -inputObject $BIUsers
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $objUser = New-Object System.Security.Principal.NTAccount($ADGroupName)
    $objUser.Translate([System.Security.Principal.SecurityIdentifier]).Value
    write-host $ADGroupName
    write-host $objUser.Value
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    $ADGroupName = "JACOBSON\" + $GroupNameMGMT
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    } else {
    $tempOUName = "cn=" + $GroupName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "Group exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "Security group already exists! Skipping new security group creation..."
    } else {
    write-host "Security group does not exist. Creating..."
    New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ($OU + $OURoot)
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $FolderACL.SetAccessRuleProtection($True,$True)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"Modify","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    My problems right now are in the assignment/removal of security groups on the newly-created folder, and the problems are two-fold.  Yes, I am running this script as an Administrator.
    First, I am unable to remove the BUILTIN\Users group from the folder when this is an office/location-specific folder.  I've tried to remove the group in several different ways, and none are having any effect.  Oddly, if I type in the lines directly
    into Powershell, they work as expected.  I've tried the following methods:
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    In the first case, the script goes through and has no apparent effect because afterwards, I do a get-acl and the BUILTIN\Users group is still there, although when looking through the GUI, inheritance appears to have been broken from the parent folder.
    In the second case, I get the following error message:
    Exception calling "RemoveAccessRuleAll" with "1" argument(s): "Some or all identity references could not be translated."
    At C:\Users\tesdallb\Documents\FileServerBuild.ps1:110 char:5
    +     $FolderACL.RemoveAccessRuleAll($Ar)
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : IdentityNotMappedException
    This seems strange that the local server is unable to translate the SID of a BUILTIN account.  I've also tried explicitly putting in the BUILTIN\Users SID in place of the variable in the New-Object line, but that gives me the same error.  I've
    also tried the solutions given in this thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ad59dc58-1360-4652-ae09-2cd4273cbd4f/remove-acl-issue?forum=winserverpowershell and at this URL:
    http://technet.microsoft.com/en-us/library/ff730951.aspx but these solutions also failed to have any effect.
    My second problem is when I try to apply the newly-created security groups, I also will get the "Some or all identity references could not be translated."  I thought I had found a workaround to the problem by adding the -PassThru option to
    the New-ADGroup commands, because it would output the SID of the group after creation, however a few lines later, the server is unable to translate the account to apply the security groups to the folder.
    My first Powershell script has been working well up to this point and now I seem to have hit a showstopper.  Any help is appreciated.
    Thanks!

    I was hoping to stay with strictly Powershell, but unless I can find a Powershell solution, I may resort to ICACLS.
    As for the problems with my groups not being translatable right after creating them, I think I have solved this problem by using the -Server parameter on all my New-ADGroup commands and this example code seems to have gotten around the translation problem,
    again utilizing the -Server parameter on the Get-ADGroup command:
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    # Add the new normal users group to the folder with Read and Execute permissions
    $GroupSID = Get-ADGroup -Identity $GroupName -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    # Add the management users group to the folder with Modify permissions
    $GroupMGMTSID = Get-ADGroup -Identity $GroupNameMGMT -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupMGMTSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    Going this route seems to ensure that the Domain Controller I'm creating my groups on is the same one that I'm querying for the group's SID to use in the FileSystemAccessRule.  It's been working fairly consistently.
    Still having issues with the translation of the BUILTIN\Users group, though. 

  • HT203433 Hi! I am so stumped with having multiple apple ID accounts now when I try to do an update on my iPhoto app it tells me to log into the account I used to purchase that app. I have tried going into my other accounts. Please help.

    Hi! I am so stumped with having multiple Apple ID accounts. I did this not knowing what I was doing and now I can not update my iPhoto app because it tells me to log into the account that I used to purchase it. I thought I was trying to do this but I can't get anywhere.
    Please help!
    Flora

    Hi Florafromco,
    You can view your iTunes Store account and request assistance by following the instructions below:
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    I hope this information helps ....
    The following article will provide a little more information regarding using multiple Apple ID's:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I hope this information helps ....
    Have a great day!
    Have a great day!
    - Judy

  • Having multiple Goods Suppliers in Partner profiles of Vendor - Uses

    Hi All,
    We use multiple goods suppliers in partner profiles of vendor so that if the supplier has manufacturing facilitiy at various places for same material and he supplies us from one of them as lsited in the PO.
    Above is one of th use of having multiple goods suppliers in partner profiles of vendor.
    Other than above are there any specific benefits , can some one help me in listing  out .
    Regards,
    Vengal Rao.

    do you need to follow up an individual order with a GS or many many orders at one time?
    I am not aware of any standard PO report by partner roles.
    In general the GS partner is just for information purposes, except you are doing business in European Union, then the GS partner is taken instead of the vendor to determine the country of dispatch for the Intrastat reporting.

Maybe you are looking for

  • Why does my screen turn black when I play iTunes while working on iPhoto?

    Why does my screen turn black when I play ITunes while working on iPhoto? I can't click off of the screen but get a message that reads Shut down computer by pressing button in back then turn computer back on by pushing button in back. That's followed

  • FireWire, Elura 100, & OS X 10.6

    First of all, I have done all the suggestions given at the many communities to no joy(reset pram; smc;reboot; disconnect everything and pwr down for minutes, hours; try on different mac; different cable; etc). I am posting this to pick the brains of

  • 24" Imac - Brightness Issues

    I just noticed about 1 week ago, that my IMAC has gotten much brighter... I did not change anything on the machine, now my hightlights seem to be washed out - ex - I cannot see the same detail in Google Maps. I tried to Calibrte the Screen using the

  • Playback in Viewer (NOT CANVAS!) halts every second or so...

    This is annoying. I have been using FCE for a couple of years, and have never seen this to be an issue. I just updated to Universal, and it is broken. While waiting for a Universal version of FCE, I went back to using the latest iMovie to do some sma

  • Excel file prints garbage

    On Friday, we changed our CFO's printer from an old HP P2015 to a newer P2035. I switched The P2015 was on a JetDirect, so I simply swapped the USB cable. Sadly, all the prints came out as garbage PCL code, one line on the top of every sheet. Changed