How to create a clone of some tablespaces?

Hello,
I have two Oracle systems:
A - Production (Oracle two-node RAC 10.2.0.4 on w2k3 x64)
B - Testing (Oracle 11g R2 on OEL 5.5 x64)
Also I have rman backup made by this script (NOCATALOG):
CONNECT TARGET 'sys/somepass@rac1';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK connect 'sys/somepass@rac1';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK connect 'sys/somepass@rac1';
CONFIGURE CHANNEL 3 DEVICE TYPE DISK connect 'sys/somepass@rac1';
CONFIGURE CHANNEL 4 DEVICE TYPE DISK connect 'sys/somepass@rac1';
run {
allocate channel '1' DEVICE TYPE DISK;
allocate channel '2' DEVICE TYPE DISK;
allocate channel '3' DEVICE TYPE DISK;
allocate channel '4' DEVICE TYPE DISK;
BACKUP FULL DATABASE FORMAT 'D:\exp\backup_%d_%T_%s.rman' TAG='daily_full_backup' SKIP OFFLINE;
release channel '1';
release channel '2';
release channel '3';
release channel '4';
exit;
Now I need to restore some of tablespaces on system B - how can I do it?
Edited by: user9319618 on 14.03.2011 2:56

Thanks for link. My both databases and needed tablespaces meet all the prerequisites, but in Task 3 (Generate a Transportable Tablespace Set) I've read:
2. Make all tablespaces in the set read-only.
It's impossible because applications runs in 24/7/365 mode on production database and next database shutdown planned just for database upgrade.
So, it seems that the only 'hot backup' way for me is to take a Datapump export of tablespaces from production database and then import them to testing environment?

Similar Messages

  • How to create a group of some of the items of a page programatically.

    Hi,
    I am able to create a group of all Items of a page successfully. But I want to create a group of some of the item of the page.
    Below is my code snape:
    InterfacePtr<ICommand> groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));
    ASSERT(groupItemsCmd);
    if (!groupItemsCmd) { 
    return;}
    InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());
    groupCmdData->Set(itemsOnPageNew);
    ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);
    if (status != kSuccess){ASSERT_FAIL(
    "kGroupCmdBoss failed"); 
    break;}
    So how I can create UDList of some of the control of the page .
    Any help will be appreciable.
    Thanks,

    I have done below code to get tag name but xmlReferenceData object is blank so tagname is blank.
    UIDRef pageItemRef=itemsOnPage->GetRef(pageItemIndex);
    InterfacePtr<IXMLReferenceData> xmlReferenceData(pageItemRef, DefaultIID());
    ASSERT(xmlReferenceData);
    if 
    (!xmlReferenceData) {
    break 
    XMLReference ref = xmlReferenceData->GetReference();
    PMString tagname=this->AsString(ref);

  • How to create temp files in temp tablespace

    Dear all,
    Due to outage of our SAN, we our out of production for the
    last 3 days. By the grace of Almighty we have restored production by
    database recovery from our standby backup. Since temp tablespace and
    temp data files do not taken as backup for standby, now after recovery
    we are getting abap dumps asking for temp_1 and temp_2 datafiles.
    Please guide us how to create temp files. v$tablespace is showing tablespace PSAPTEMP but datafile are not there
    Abap dumps are giving these errors as mentioned below
    ====================================================
    The exception must either be prevented, caught within the procedure            
    "DATA_SELECTION"                                                              
    "(FORM)", or declared in the procedure's RAISING clause.                       
    To prevent the exception, note the following:                                  
    Database error text........: "ORA-01157: cannot identify/lock data file 256 -  
    see DBWR trace file#ORA-01110: data file 256:                                 
    '/oracle/SD1/sapdata4/temp_2/temp.data2'"                                     
    Internal call code.........: "[RSQL/FTCH/MARA ]"                               
    ===================================================
    another one asking for 
    '/oracle/SD1/sapdata3/temp_1/temp.data1'"
    Best Regards
    Waqas

    if you want to add a new tempfile to your TEMP Tablespace,you can do like that.
    <i>ALTER TABLESPACE</i> <<b><u>name of TEMP Tablespace</u></b>> ADD TEMPFILE <<b><u><b><u>pfad to the file_and_file name</u></b></u></b>> <b>SIZE</b> <size>;
    You can use also the options <i>REUS</i>E <i>autoextend off</i> or <i>on</i> .
    e.g:
    <i>alter tablespace</i> <u><b>PSAPTEMP</b></u> add <i>tempfile</i> <b><u>'/oracle/SD1/sapdata4/temp_2/temp.data2'</u></b> <i>SIZE 1000K</i> <i>REUSE</i>;
    The directory <b><u>temp_2</u></b> should exist.
    Or you can use the BR*Tools to create a new datafile. Enter brtools and follow the instructions or menu.
    More to TEMP Tablespaces see please following SAP notes:
    <u><b>659946</b></u> - FAQ: Temporary tablespaces
    <u><b>600513</b></u> - ORA-25153 after recovery due to missing tempfiles
    and the Oracle Note:
    <u><b>160426.1</b></u>: TEMPORARY Tablespaces : Tempfiles or Datafiles ?
    I hope it helps.

  • How to create a "clone" of portlets to another schema?

    I want to create a clone of the portlets I have, for example copy SchemaA -->SchemaB. SchemaB have the same that SchemaA.
    How could I have the same forms portlets and reports portlets of the SchemaA tables in SchemaB? Could I create automatic the same portlets in SchemaB?
    Regards

    Hi,
    I will explain you more in details my case:
    Before starting I have SchemaA and APP_A and I will create during the following process SchemaB and APP_B.
    I have SchemaA.Clients and I export SchemaA into file. Afterwards, I import SchemaA's file into SchemaB and I have SchemaB.Clients that is the same SchemaA.Clients.
    Afterwards
    I have APP_A.FormClients y I copy APP_A.FormClients into APP_B.FormClients. APP_A and APP_B are in different schemas.
    After copying, APP_B.FormClients continues pointing at the SchemaA.Clients. How can I do so that APP_B.FormClients points at the SchemaB.Clients?
    Regards

  • How to create a clone of database from STANDBY?

    How can i clone a database from physical standby database?

    Steps to clone from standby:
    1. cancle the managed recovery process on standby
    sql>alter database recover managed standby database cancel;
    2. Remember your standby databse would be in mount mode.
    3. Connect to the auxiliary instance and to the standby database through RMAN
    rman target sys/<pwd>@standby auxiliary sys/<pwd>@auxiliary-connection
    4. If 11g, then run directly duplicate from active database
    rman>duplicate target database to 'auxiliary_db_name' from active database nofilenamecheck;
    5. Once, the duplication is done, start the MRP on the standby again
    sql>alter database recover managed standby database disconnect from session;
    Ok..You are on 10g.
    Perform the above steps, but only thing is 1st you need to take the backup of the standby database first.
    Refer this Create dev database from standby database
    Already steps are given here
    Edited by: Shivananda Rao on Mar 9, 2012 9:56 AM

  • How to create a 'clone' linked text frame

    I have a large document, and the page numbering is not in a straight manner, as there are blank pages, which must be ignored for numbering. The blank pages are needed to make it easier for the printer, some pages need to be one-sided, others need to be two-sided.
    The numbering of the pages need to be done manually, or else I have to assign every page a section start, and for printing purposes this is kind of risky (page 1 is not really page 1 for instance...)
    OK, so far so good, I also need to create a table of contents, and check the document, and I was wondering if I could create a larger 'copy' of my manual page number, next to the page. At the moment I need to zoom in or select the frame and use apple-y to check the number.
    I create a slug area, I would like to put a larger textframe with the number in a larger corps in it, but it needs to 'link' to the original smaller text. Is this something that could be done by a utility or another way? It is not something I have to do every day, but I was just wondering if a kind of active 'clone' was possible. The 'copy' needs to be actively linked to the other textframe, every change must be implemented, but on a document page, not through a master page.
    Or else a page numbering scheme like 1,3,5,7 of 'ignore blank pages' would be appreciated

    That's a really bizarre way to number pages. Make sure you specify this to the printers, as a note to them. It's just not a normal way to number pages and printers would appreciate a heads up on it.
    There is no way to automate it as such. It would have to be manually updated when pages are added or moved around.
    You will still need two Master Pages
    Create an empty text frame on the Master Page on both spreads, make sure they are linked.
    Create a text file with sequential numbering from 1 - whatever the final page number is.  (excel can do this quite easily).
    Place the text file into the Main Pages at the starting page.
    You will then need to apply the Master Page without that text frame to every page that does not need a page number.
    You can do this easily by holding down Control (might be CMD on Mac) and then selecting the pages that don't require page numbers - then use the Apply Master Pages and select the master page to apply to those pages.

  • How to create global toolbar for some common operation like add, delete etc

    Hi,
    I want to create one global toolbar which contains buttons for common operations such as add, delete, modify etc.
    I have one globl .jspx page and in its center facet, I am loading my each screen's .jsff page.
    Now I want to create global toolbar on my .jspx page and when I click on toolbar's add button at that time it should call, currently loaded .jsff (loaded in center facet of .jspx page) backing bean's add method.
    How can I get the instance of currently loaded .jsff backing bean in my toolbar's backing bean and also I need it with its current state( means whatever UI components have values I should be able to get it in my instance).
    Regards,
    Devang

    Hi,
    since page templates don't support method expression arguments there are two options I can imagine
    - define a contract between the toolbar buttons and the availability of a managed bean available for the consumer page. If for example each page has a managed bean like <viewId>_toolbar then the Toolbar could reference exposed methods on this bean (which must be consistent)
    - Another option is to have the page passing in the EL string to access the iterator to operate on as an attribute of the template you use. Then you create a ValueExpression from it and call it for the button action events that you point to the managed bean you deploy with the template
    Frank

  • How to create parameter: =Today() minus some number of days

    SSRS 2005 on XP SP2
    How does one format a date time parameter as, for example, today's date minus 7? Attempting to use:
    =Today() - 7 throws the error "Operator '-' is not defined for types 'Date' and 'Integer'
    Thanks in advance

    Note that an internal reference to another paramer yields same result. For example, datasource is an SP with a BETWEEN operator. An internal report reference to the other parameter (=Parameters!StartDate - 7) throws same error.

  • How to create a Worklist in BPS for Forecasting?

    Hi
    In BPS, we are Forecasting for several company Codes. I
    would like to cretae a Worklist in BPS so that Users can
    choose a company Code for planning.  I am not sure how
    to create this.
    Can some please suggest a method.  I think it has to to do
    with using a "PX" variable, bt not sure how to do that.
    Thanks in Advance.
    Lee

    I don't really recognise the terms you are using, but it sounds like you need to use a user-specific variable on characteristic 0COMP_CODE. 
    In BPSO on the planning area, variables Tab, create  a new variable, (e.g. ZCOMPANY), variable type characteristic value.
    Add the characteristic 0COMP_CODE,  replacement type User-defiined values. Check 'Restriction of Values required by User'.
    Then enter the user ids together with relevant company code(s) for each user.
    The planning layouts should be restricted by this variable (either in the level/package restrictions or layout definition).
    In the planning folder, this variable must be added.  On opening the folder, the user should select the required company code from the authorised list available.
    Stephen

  • How to create a container class for 2 object?

    I use JDK to create 2 objects, one is Customer and one is Book. I need to enqueue these 2 objects, but they canot share the same queue class. Some one told me that I can create a container class for these 2 objects but I don't know how to create it. Can some one tell me how to create the container class?

    I use JDK to create 2 objects, one is Customer and one
    is Book. I need to enqueue these 2 objects, but they
    canot share the same queue class. Some one told me
    that I can create a container class for these 2
    objects but I don't know how to create it. Can some
    one tell me how to create the container class?
    class CustomerBook{
    Book m_book;
    Customer m_customer;
    pulbic CustomerBook (Customer customer, Book book){
    m_book = book;
    m_customer = customer;
    }If you want to create a class that represents one customer and many books, do this:
    class CustomerBooks{
    Vector m_books;
    Customer m_customer;
    pulbic CustomerBook (Customer customer){
    m_books = new Vector();
    m_customer = customer;
    public void addBook (Book book){
    m_books.addElement (book);
    public void displayBooks (){
    //I assume the Book class has a toString method or something similar
    for (int i = 0;i < m_books.size();i++){
      System.out.println ("book: "+((Book)m_books.elementAt(i)).toString());

  • How to create table controls

    hi experts,
                 I have used table controls using wizard.is that correct .and when i am using that i cannot set filters.all the records in tha table are displayed.how to use filters here ?
    what about the ordinary table controls how to create it .pls send some links and tips for it...
    thanks
    mani

    check..
    DEMO_DYNPRO_TABLE_CONTROL_1
    DEMO_DYNPRO_TABLE_CONTROL_2
    even check below code...
    BDC Example: Using Table Control in BDC
    Among beginners, using table control in BDC is always a puzzle.
    Following is a sample code of handling table control in BDC.
    REPORT Y730_BDC5 .
    *HANDLING TABLE CONTROL IN BDC
    DATA : BEGIN OF IT_DUMMY OCCURS 0,
           DUMMY(100) TYPE C,
           END OF IT_DUMMY.
    DATA : BEGIN OF IT_XK01 OCCURS 0,
           LIFNR(10) TYPE C,
           BUKRS(4)  TYPE C,
           EKORG(4)  TYPE C,
           KTOKK(4)  TYPE C,
           NAME1(30) TYPE C,
           SORTL(10) TYPE C,
           LAND1(3)  TYPE C,
           SPRAS(2)  TYPE C,
           AKONT(6)  TYPE C,
           FDGRV(2)  TYPE C,
           WAERS(3)  TYPE C,
           END OF IT_XK01,
           BEGIN OF IT_BANK OCCURS 0,
           BANKS(3)  TYPE C,
           BANKL(10) TYPE C,
           BANKN(10) TYPE C,
           KOINH(30) TYPE C,
           LIFNR(10) TYPE C,
           END OF IT_BANK.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = 'C:\VENDOR.TXT'
       FILETYPE                      = 'ASC'
    TABLES
       DATA_TAB                      = IT_DUMMY.
    LOOP AT IT_DUMMY.
      IF IT_DUMMY-DUMMY+0(2) = '11'.
        IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
        IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
        IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
        IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
        IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
        IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
        IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
        IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
        IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
        IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
        IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
        APPEND IT_XK01.
      ELSE.
        IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
        IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
        IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
        IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
        IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
        APPEND IT_BANK.
      ENDIF.
    ENDLOOP.
    LOOP AT IT_XK01.
    REFRESH IT_BDCDATA.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-REF_LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  IT_XK01-LIFNR.
    perform bdc_field       using 'RF02K-BUKRS'
                                  IT_XK01-BUKRS.
    perform bdc_field       using 'RF02K-EKORG'
                                  IT_XK01-EKORG.
    perform bdc_field       using 'RF02K-KTOKK'
                                  IT_XK01-KTOKK.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-TELX1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  IT_XK01-NAME1.
    perform bdc_field       using 'LFA1-SORTL'
                                  IT_XK01-SORTL.
    perform bdc_field       using 'LFA1-LAND1'
                                  IT_XK01-LAND1.
    perform bdc_field       using 'LFA1-SPRAS'
                                  IT_XK01-SPRAS.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-KOINH(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    DATA : FNAM(20) TYPE C,
           IDX      TYPE C.
      MOVE 1 TO IDX.
    LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
      CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKS.
      CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKL.
      CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKN.
      CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-KOINH.
      IDX = IDX + 1.
    ENDLOOP.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFB1-AKONT'
                                  IT_XK01-AKONT.
    perform bdc_field       using 'LFB1-FDGRV'
                                  IT_XK01-FDGRV.
    perform bdc_dynpro      using 'SAPMF02K' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-ZTERM'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFM1-WAERS'
                                  IT_XK01-WAERS.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'WYT3-PARVW(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'XK01' USING IT_BDCDATA
                            MODE  'A'
                           UPDATE 'S'
                         MESSAGES INTO IT_BDCMSGCOLL.
    ENDLOOP.
    FORM BDC_DYNPRO USING PROG SCR.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-PROGRAM = PROG.
      IT_BDCDATA-DYNPRO  = SCR.
      IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND IT_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-FNAM = FNAM.
      IT_BDCDATA-FVAL  = FVAL.
      APPEND IT_BDCDATA.
    ENDFORM.

  • How to create a Spectrum Analyzer?

    Hello people,
    Well i need to create a Spectrum Analyzer in my application, to analyze the frequencies from a auido capture.
    Any tips? Because i don't know where to start to develop this.
    My best,
    David

    DavidHenriques wrote:
    Ok i see. But how to create the graphics, exist some kind of free library related with this?You have a lot of learning to do and the FFT is the least of your worries. Check out Java implementations of the FFT from the source forge repository. Take a look at my second post in Perform Hamming window and FFT with Java for an outline of what you have to do to create the spectrum values. Take a look at JFreeChart for the display of the results though you might find it a bit slow when running real time (I use my own very very simple but fast charting).
    You can do everything mechanically without any real understanding what you are doing but I hope your examiners are looking for more; I would be.

  • How to create and use a boot volume clone?

    Hello. My name is Cassiano and I'm NOT a system administrator. I'm an architect. I design and build houses, not systems. And the reason I'm telling you that is because I need your help.
    The short version of my problem is this: "How do I create a boot volume clone", but I think I need to tell you the whole story.
    Here at the office I work we have 18 iMacs and 1 Xserve running OS X Server 10.4.9.
    Although I'm an architect I'm responsible to keep the computers up and running.
    This is not because I want, but just because I'm the one here that knows a bit more about this stuff and although I'm not an expert, I know quite a lot about this stuff. I did pretty much everything here. Configured the network, firewall, installed the Xserve, etc, but of course that if something breaks we just take the computer to apple store and wait for it to be fixed
    The Xserve has 3 HDs inside. 1 at bay1 which is the boot and 2 others on bay2 and bay3. The HDs on bay2 and bay3 are working as one using SoftRAID and we use this volume to store all of our data. That is the reason we chose to mirror them using softRaid. If one fails, the other has everything and we just have to get a new one.
    Last week we decided to setup the Xserve to be our mail server as well, so I turned on the Mail Service and after a lot of reading I managed to configure it correctly. In fact we have our MX records pointing to a company that relays the email to our Xserve, so it is not really accessible from the outside world.
    But this Mail thing made me loose my sleep. The reason is: before that our Xserve was used only as a file repository. So if it would break or something all we have to do is take the HD out of it, send it to apple store and plug the HD on another computer. All of our files would be safe and everybody would be happy. Of course this is an over simplificated situation, but that is pretty much how it would go.
    But now everything is different. Every person here has the email account configured to the Xserve, which means that if it breaks or something goes wrong, no one will be able to send or receive emails. The new messages will not be lost, because the company that relays the emails to us will keep them there, but things will get chaotic here.
    When reading this document here: http://developer.apple.com/documentation/MacOSXServer/Conceptual/XServerProgrammingGuide/Articles/abpinstall.html I saw this section that said: "Cloning the Boot Volume"
    Where it says: The use of the boot volume clones is entirely to ensure the highest availability possible for your system volume, not your client data.
    So, finally, my question is. How do I implement this "boot volume clone"? If I buy a new HD and place it on bay4 will I be able to do that? How?
    After doing it if something goes wrong how do I use the "clone volume"?
    Thank you for your patience and any help is greatly appreciated.
    Best regards,
    Cassiano Forestier
    Specs of the Xserve
    Machine Name: Xserve
    Machine Model: Xserve1,1
    Processor Name: Dual-Core Intel Xeon
    Processor Speed: 2 GHz
    Number Of Processors: 2
    Total Number Of Cores: 4
    L2 Cache (per processor): 4 MB
    Memory: 1 GB
    Bus Speed: 1.33 GHz
    Boot ROM Version: XS11.0080.B00
    SMC Version: 1.11f5
    LOM Revision: 1.2.1

    Yes, your server is becoming central to your business universe. Mine, too.
    Boot from DVD, and use Disk Utility to create the clone. Another way of looking at this is as a photocopy or snapshot or block-by-block copy of the state of the disk at the moment the clone is made. You can then either boot from the clone (if needed; assuming the clone is on a bootable device), or boot from the DVD and copy the clone back to the original (or replacement) disk; this restores the disk state to that of the time the clone was made.
    Yes, you'll need a disk to clone to. Probably more than one, since you'll probably want to set up a rotating pool, should you need to go back to an older snapshot.
    You're undoubtedly also approaching a requirement for either an add-on storage array or storage shelf via one of your PCI-X or PCIe I/O expansion slots, or adding a FC SAN into an open PCI-X or PCIe slot and adding the external FC SAN Xserve RAID configuration that Apple sells.
    The external storage can be "just a bunch of disks (JBOD)" in an external disk shelf, or an external RAID via add-in eSATA or add-in SCSI controller, or via Fibre Channel for the Xserve RAID configuration for the FC SAN configuration, or (for lower speeds) FireWire or (lowest) USB.
    If your data is worth it and you want to deal centrally with Apple and your budget allows it (qv: "if your data is worth it"), Xserve RAID is the way to go. The external storage shelf is certainly a feasible approach -- but you'll likely end up dealing with a third-party for the configuration, set-up and third-party storage gear.
    If you're looking for things that can go wrong here, recognize that RAID only protects against drive failure. RAID does not protect against accidental nor malicious file deletions, fat-fingered operator commands, nor against application or system-level disk corruptions. RAID (only) seeks to protect against disk errors. This gets into tapes, or near-line disk copies, or other such media. External tape, or other such archival media, and particularly media that can be sent off-site on a regular basis.
    It's good that you're thinking about this stuff, too.

  • How to create a user account by mirroring another account in PowerShell (Trying to learn to use Powshell for some daily AD tasks intead of the GUI)

    Hi,
    I am trying to create user accounts via PowerShell instead of the Gui in server 2008 R2 (PowerShell 2.0).
    I know how to create a user account with the following Power Shell command below is one from a dummy domain I created to practice.
    PS C:\Users\Administrator> New-ADUser -SamAccountName "TestOut" -UserPrincipalNa
    me "[email protected]" -GivenName "Test" -Surname "out" -DisplayName "Testou
    t" -Name "Testout" -Enabled $true -Path "CN=users,DC=bwcat,DC=net,DC=int" -Accou
    ntPassword (Read-Host -AsSecureString "Enter Account Password") 
    However when doing day to day tasks where I work normally we have a new hire, they contact IT and ask that a user account is created.   I will ask who they would like to mirror.
    I then would go into the gui pull up the user that they want to mirror right click him and choose copy.  This would create a new user account that I would then fill out.
    I am wondering if its possible to do this same thing via PowerShell, or  if its not an option because it takes more work type up everything than it does to go into the gui and do it.
    Anyway thanks for the help.

    Hi Wilder, hi Mark,
    first of all: The tutorial sources Mark posted - especially the book "Powershell 3 in A month of lunches" - are good to get a baseline start. A really great reference, especially when you try to learn it while still dealing with your daily business.
    On another note, Wilder: While I fully agree that learning things sequentially is usually the best, I too jumped right in instead of learning how to walk first (though it's been some time now. Fewer years than you'd think, but still ...). So I thought I'd
    give you a little aid with that function husk, so you could just stuff interesting bits into an available structure, making use of the fun tools in a useful context (It's fun fiddling around with the commands, but if you have to type in all of them manually
    each time, using the GUI is often just faster. Doing fun things and being efficient with it feels even better though ...). So ... while I
    do agree with yourself, learn it the Correct & Proper Way, I also do
    intend to finish this little explanation about the husk, all the way to the end.
    Everything below this paragraph is part of this.
    function Copy-ADUser
    <#
    .SYNOPSIS
    A brief description of the Copy-ADUser function.
    .DESCRIPTION
    A detailed description of the Copy-ADUser function.
    .PARAMETER GivenName
    A description of the GivenName parameter.
    .PARAMETER Surname
    A description of the Surname parameter.
    .PARAMETER Template
    A description of the Template parameter.
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    .NOTES
    Additional information about the function.
    #>
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    ) # Create finished Strings
    $JoinedName = $GivenName + "." + $Surname
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName $JoinedName -Name "$Surename, $GivenName" -PassThru
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    This is again the same function husk I posted earlier. Only this time, I filled a little logic (the pieces that were already posted in this thread). This time, I'll not only go over each part again ... I'll do it by reposting the segments and trying to show
    some examples on how to modify the parts. Thus some of it will be repetitive, but this way all the info is in one spot.
    Segment: Comment Based Help
    <#
    .SYNOPSIS
    A brief description of the Copy-ADUser function.
    .DESCRIPTION
    A detailed description of the Copy-ADUser function.
    .PARAMETER GivenName
    A description of the GivenName parameter.
    .PARAMETER Surname
    A description of the Surname parameter.
    .PARAMETER Template
    A description of the Template parameter.
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    .NOTES
    Additional information about the function.
    #>
    That's the premier documentation part of a function, that teaches a user what the function does and how to use it. It's what's shown when using the Get-Help cmdlet.
    Comment texts are not restricted to single lines however. For example you could replace ...
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    ... with ...
    .EXAMPLE
    PS C:\> Copy-ADUser -GivenName "Max" -Surname "Mustermann" -Template "Jonny.Normal"
    Creates a new user named Max Mustermann and copies the group memberships of the already existing user Jonny Normal to this new User
    ... and get an explanation on what the example does when using Get-Help with the
    -Detailed parameter (Explaining examples is always a good idea).
    Segment: Parameter
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    This is the segment that tells Powershell what input your function accepts. Each parameter of Copy-ADUser you set will be available in the next segment as a variable of the same name. You can add additional parameters if you need more information for your
    logic. For example, let's add a parameter that allows you to specify what Organization the new user should belong to:
    [CmdletBinding()]
    Param (
    [Parameter(Mandatory = $true)]
    [string]
    $Surname,
    [Parameter(Mandatory = $true)]
    [string]
    $GivenName,
    [string]
    $Organization,
    [Parameter(Mandatory = $true)]
    [string]
    $Template
    That's how that would look like. You may notice that I didn't add the line with
    "[Parameter(Mandatory = $true)] this time. This means you
    may add the Organization parameter when calling Copy-ADUser, but you need not.
    Segment: Logic
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    This is the part of the function that does the actual work. Compared to the first husk I posted, this time there are two commands in it (and some comments). First, I create a new user, using the information passed into
    the parameters -Surname and -GivenName. Then I Copy the group memberships of the user identified by the information given by the
    -Template parameter.
    So, let's modify it!
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Tell the user you are copying Group Memberships
    Write-Host "Copying the group-memberhips of $Template to $GivenName $Surname"
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    Now after adding a few lines, the logic will tell us what it's doing (and do so before it
    is taking action)!
    Hm ... didn't we create a change in the Parameter Segment to add an -Organization parameter? Let's use it!
    # If the -Organization parameter was set, the $Organization variable will be longer than 0. Thus do ...
    if ($Organization.Length -gt 0)
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname in the Organization $Organization"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -Organization $Organization -PassThru
    # If the -Organization parameter was NOT set, the $Organization variable will have a length of 0. Thus the if-condition does not apply, thus we do the else block
    else
    # Tell the user you are starting
    Write-Host "Starting to create the user account for $GivenName $Surname"
    # Create new User
    $NewUser = New-ADUser -Surname $Surname -GivenName $GivenName -DisplayName "$Surname, $GivenName" -SamAccountName "$GivenName.$Surename" -Name "$Surename, $GivenName" -PassThru
    # Tell the user you are copying Group Memberships
    Write-Host "Copying the group-memberhips of $Template to $GivenName $Surname"
    # Copy from old User
    $NewUser | Add-ADPrincipalGroupMembership -MemberOf (Get-ADPrincipalGroupMembership $Template | Where { $_.Name -ne 'Domain Users' })
    # Do Whatever else you feel like doing
    There! Now we first check whether the -Organization parameter was set (it's not mandatory after all, so you can skip it). If it
    was set, do whatever is in the curly braces after if (...). However, if it wasn't set, do whatever is in the curly braces after
    else.
    And that concludes my "minor" (and hopefully helpful) tutorial on how to use the function husk I posted :)
    With this, whenever you find another cool command that helps you in the user creation process, you can simply add it, similar to what I did in these examples.
    And if it all didn't make much sense, go through the tutorials in proper order and come back - it'll make much more sense then.
    Cheers and good luck with PowerShell,
    Fred
    There's no place like 127.0.0.1

  • I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?

    Hi czigrand,
    Thanks for visiting Apple Support Communities.
    Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
    In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
    iTunes: Sending iTunes Gifts
    http://support.apple.com/kb/HT2736
    Best Regards,
    Jeremy

Maybe you are looking for

  • [Solved] Can't get cURL to work in PHP

    Hello. I have this error: Call to undefined function curl_init... In phpinfo() it says: ...'--with-curl=shared'... "curl" package is installed. "curl.so" in php.ini is uncommented. "/usr/lib/libcurl.so" is in the system. Why can't I use curl function

  • HT201210 has anyone syncronized Iphone 4s with outlook 2013

    Recently I update the MS Outlook from 2007 to 2013 since then I ahve been not able to syncronize contacts, calendar and notes any idea to start

  • Activate back cancelled subscription?

    Good day. About 2 month ago i bought Photoshop CC and couldn't pay for the next month in time (cause of credit card change). And now i cant renew the subscription because of "There was a problem processing your order, please contact our Customer Serv

  • Migrate tracking information

    Ouch! I can find none of the tracking data for files I had sent previously via "SendNow" (and before you forced me over to "Send". Adobe, where is this tracking data?

  • Icons defaulting. How do I get them to stay?

    I change file icons by the usual method, and they stay for as day or so and then default to the generic (in this case AppleWorks) icon. Am I doing something wrong? This seems to happen with spreadsheets rather than single documents.