request for assistance with rman cloning script

Hello


Oracle 10.2.0.4, Win 2008

I take a full backup using rman using the script below.

Run {}

allocate channel d1 type disk;

backup filesperset 5

format 'R:\backup\df_t%t_s%s_p%p '.

database;

SQL 'alter system archive log current';

backup format 'R:\backup\al_t%t_s%s_p%p' (archivelog all delete input);

cross-checking of backup;

remove obsolete;

output channel d1;

}

Inorder to clone the database live everyday on machine clone, I copy the backup files of auxiliary machine to the same directory as the script traore Live.

My question is:

How to restore the database from the beginning through script. I mean

They invite cmd, set ORACLE_SID and ORACLE_HOME

Start the database in nomount

How to automatically include the number of scn in the restore script.


Please guide me.


Thank you

In machine clone do you have the same directory Live machine.
If the directory structure is different for the data files and log files and then in file pfile
you keep
DB_FILE_NAME_CONVERT = "string1", "string2".
log_file_name_convert = "string1", "string2".
When channel 1 is the direct model of machine datafile, channel 2 is the clone machine model
startup nomount machine clone

(1) rman target catalog auxiliary.
race 2)
{
allocate auxiliary channels ch1 type or
allocate channel ch2 type or
until the SNA <> or climbs up to the hour<>
duplicate target database standby
}

Published by: renee_mathieu on July 19, 2012 07:51

Published by: renee_mathieu on July 19, 2012 07:51

Tags: Database

Similar Questions

  • Newbie request for assistance with several drag-and-drop &amp; multiple targets

    I know that this question has been asked a million times, but I get always very well the solution.  I know that the solution called for me the use of tables in a part of my code, but I have problems understanding how to implement it.  I use Flash CS 5.5 with AS3.

    I have a flash drag-and-drop file which is divided into 4 distinct zones on the stage.  On each box, there are 7 places, for 7 different "puzzle pieces".  The first two spaces on each quadrant have very a very specific order for the correct puzzle pieces, while the 5 additional places on each quadrant also have specific parts, but the order is not important.  I have included my code below for reference (note that I have not all instances, finished yet).

    Basically, in code that's been created, the following bodies have specific targets with specific command:

    D1_1_mc, D1_2_mc, D1_1_mc, D2_2_mc, D3_1_mc, D3_2_mc, D4_1_mc and D4_2_mc.

    All other instances, such as D1_3_mc, D2_3_mc, D2_4_mc, etc. have specific quadrants on which they need to fall, but what about the last 5 'spaces' in each quadrant, the order does not matter.  I know that I can continue to do what I do, but I would have preferred that the last 5 pieces on each quandrant do not have to be in a specific order.

    You can provide any assistance is greatly appreciated!

    var startX:Number;

    var startY: number;

    var counter: Number = 0;

    D1_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    event.target.startDrag (true);

    reply_txt. Text = "";

    event.target.parent.addChild (event.target);

    startX = event.target.x;

    startY = event.target.y;

    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    var myTargetName:String = "target_" + event.target.name;

    var myTarget:DisplayObject = getChildByName (myTargetName);

    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget) {}

    reply_txt. Text = "Good Job!"

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

    event.target.buttonMode = false;

    Event.Target.x = myTarget.x;

    Event.Target.y = myTarget.y;

    counter ++;

    } else {}

    reply_txt. Text = "Try Again!";

    Event.Target.x = startX;

    Event.Target.y = startY;

    }

    if(Counter == 5) {}

    reply_txt. Text = "congratulations, you did!"

    }

    }

    D1_1_mc.buttonMode = true;

    D1_2_mc.buttonMode = true;

    D1_3_mc.buttonMode = true;

    D2_1_mc.buttonMode = true;

    D2_2_mc.buttonMode = true;

    D2_3_mc.buttonMode = true;

    D2_4_mc.buttonMode = true;

    D3_1_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D4_1_mc.buttonMode = true;

    D4_2_mc.buttonMode = true;

    D4_3_mc.buttonMode = true;

    D4_4_mc.buttonMode = true;

    Since it seems to afew possible gaps in the code you showed, and what I offer myself in response to your questions, I spent a little time get a working model of what I guess you just using the three targets and the fall of four objects.  If you want, I can make the file available for you, but for now, here's the code that works...

    var startX:Number;
    var startY: number;
    var counter: Number = 0;

    target_D2_1_mc.allowed = new Array (D2_1_mc);
    target_D2_2_mc.allowed = new Array (D2_2_mc);
    target_D2_3_mc.allowed = new Array (D2_3_mc, D2_4_mc);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    reply_txt. Text = "Good Luck."
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    startX = event.target.x;
    startY = event.target.y;
    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    If (event.target.dropTarget! = null & MovieClip (event.target.dropTarget.parent).allowed.indexOf (event.target) >-1) {}
    reply_txt. Text = "Good Job!"
    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    Event.Target.x = MovieClip (event.target.dropTarget.parent) .x;
    Event.Target.y = there MovieClip (event.target.dropTarget.parent);
    counter ++;
    } else {}
    reply_txt. Text = "Try Again!";
    Event.Target.x = startX;
    Event.Target.y = startY;
    }

    if(Counter == 5) {}
    reply_txt. Text = "congratulations, you did!"
    }
    }

    D2_1_mc.buttonMode = true;
    D2_2_mc.buttonMode = true;
    D2_3_mc.buttonMode = true;
    D2_4_mc.buttonMode = true;

  • Request for assistance with the importation of crude oil

    I get a program error message when you import a raw (.orf) file in Adobe Photoshop Elements 10.

    Also after the update of all the adobe programs.

    The raw file is generated by my camera Olympus E - M10 mark II

    Please give me a clue how to solve this problem.

    Piet

    Your camera is more recent than your software for many years.  To open the ORF of the EM10II you need ACR plugin 9.2 which host needs a PSE14 or newer.  You can buy 14 items here: http://www.adobe.com/products/catalog/software.html

    You can also use the free DNG Converter to convert a FOLDER of raw files to DNG and these DNG is open in the old software.  You can get the DNG Converter here: http://www.adobe.com/downloads/updates/

  • Bad when document icon (file) with the request for assistance

    I have a WinXP VM (using 2.0.5) running in unity with the sharing of applications from two ways on Snow Leopard (although the problem was the same on Leopard).

    On the host OS, I "Get Info" on a document, let's say on my desktop and specify that I want it to be ' Open (ed) by ' an application for the virtual machine. The association works very well, as expected, the only problem is that the icon of the document, not that of the (helper) application, is just jumbled up pixels; nowhere else that the icon is fine, whether for the (helper) application itself, or even when it appears in the menu and other screens, such as the list of drop-down 'Open with', but in the Finder, in a document and with Quick Look, it is garbage and this is the case, any Windows program I chose , despite the reconstruction of the list of requests for assistance.  I even changed the icon of an application, by copying into a Mac program, thinking it might have something to do with the Windows icon formats, but the problem persists.

    Again, everything works well, whether using the document or the throw with the right program, but it's rather ugly to look at, say on your desktop or in Finder in general.

    Has anyone met, or not, and someone has a solution?

    Hey Francois,.

    Just after my first answer, I found this thread: VMware Fusion 2.0.6 beta with fixed for Snow Leopard now available that may be useful.

    I have not yet tried, but it looks promising. Not the comment later in the thread on the entire Application, which seems also relevant/necessary.

  • Request for help with the output of a script

    Hello

    I need assistance with the output of a script. I have a script that retrieves advanced config of the esx hosts in a cluster and exports to a txt file. Here is the script I use:

    $Decimals = 1

    $VCServers = @)

    $VMSummaries = @)

    $InputFile = "VCs.txt".

    1. Read the input file, loop of VCs

    Foreach ($VCname in Get-Content $InputFile) {$VCServers += $VCName}

    Foreach ($VCServer to $VCServers)

    {

    $VC = to connect-VIServer $VCServer

    $VMhosts = get-VMHost

    Foreach ($VMHost to $VMhosts)

    {

    Write-Progress "Collecting information in $VCServer" 'connecting to host $VMHost' - Id 0

    $VMSummary = "" | Select the host name, TCPIPHeapMax, TCPIPHeapSize, HeartbeatTimeout, HeartbeatFrequency, HeartbeatMaxFailures, MaxVolumes

    $VMSummary.HostName = $VMHost.Name

    $VMSummary.TCPIPHeapMax = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name Net.TcpipHeapMax). Values

    $VMSummary.TCPIPHeapSize = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name Net.TcpipHeapSize). Values

    $VMSummary.HeartbeatTimeout = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatTimeout). Values

    $VMSummary.HeartbeatFrequency = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatFrequency). Values

    $VMSummary.HeartbeatMaxFailures = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. HeartbeatMaxFailures). Values

    $VMSummary.MaxVolumes = (get-VMHostAdvancedConfiguration - VMHost ($VMhost) - name of NFS. MaxVolumes). Values

    $VMSummaries += $VMSummary

    }

    }

    $OutputFile = "AdvancedNFS.txt".

    $VMSummaries | Format-Table | Out-file $OutputFile

    This script runs without any problem and generates a text file that looks like this:

    TCPIPHeapMax TCPIPHeapSize HeartbeatTimeout HeartbeatFrequency HeartbeatMaxFailures MaxVolumes hostname

    -


    -


    -


    -


    -


    -


    -


    abcd1 abcd2 abcd3

    I am trying to output a csv file and run into a problem where each host values are not displayed correctly. I replaced the last 2 lines in the script as follows:

    $OutputFile = "AdvancedNFS.csv".

    $VMSummaries | Export-CSV $OutputFile

    My output looks like this:

    Host name

    TCPIPHeapMax

    TCPIPHeapSize

    HeartbeatTimeout

    HeartbeatFrequency

    HeartbeatMaxFailures

    MaxVolumes

    ABCD1

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    System.Collections.Hashtable + ValueCollection

    What I am doing wrong?

    Thank you

    Alex

    Hello

    You can try changing your script like this:

    • -Replace "." "With values '-["'-']. "

    • -Optimize calls to Get-VMHostAdvancedConfiguration

    Your code will look like this:

    ...

    Write-Progress "Collecting information in $VCServer" 'connecting to host $VMHost' - Id 0

    $VMSummary = "" | Select the host name, TCPIPHeapMax, TCPIPHeapSize, HeartbeatTimeout, HeartbeatFrequency, HeartbeatMaxFailures, MaxVolumes

    $VMSummary.HostName = $VMHost.Name

    $VMHostAdvancedConfig = get-VMHostAdvancedConfiguration - VMHost $VMHost - name Net.TcpipHeapMax, Net.TcpipHeapSize, NFS. HeartbeatTimeout, NFS. HeartbeatFrequency, NFS. HeartbeatMaxFailures, NFS. MaxVolumes

    [$VMSummary.TCPIPHeapMax = $VMHostAdvancedConfig\["Net.TcpipHeapMax"\]

    [$VMSummary.TCPIPHeapSize = $VMHostAdvancedConfig\["Net.TcpipHeapSize"\]

    $VMSummary.HeartbeatTimeout = $VMHostAdvancedConfig\ ['NFS. HeartbeatTimeout '\] '.

    $VMSummary.HeartbeatFrequency = $VMHostAdvancedConfig\ ['NFS. HeartbeatFrequency '\] '.

    $VMSummary.HeartbeatMaxFailures = $VMHostAdvancedConfig\ ['NFS. HeartbeatMaxFailures '\] '.

    $VMSummary.MaxVolumes = $VMHostAdvancedConfig\ ['NFS. MaxVolumes '\] '.

    $VMSummaries += $VMSummary

    ...

    Kind regards

    Dimitar

  • Request for responses with multi-Select fast

    Hello

    Hoping someone can help - I need to create a prompt in a request for answers to allow users to choose a customer - I need this to be similar to a multiple selection in a dashboard command prompt so that the user can type begins by and find the customer what they want. Currently, the only options of answers is to scroll through the entire list or type the value directly. The application is simply posted as a link on a page of dashboard - I'd rather not have to create another page of dashboard if possible.

    I would be grateful for any ideas.

    With our thanks,
    Patricia

    Patricia, you try to do this more difficult it must be. Of after what you say, just use value Interaction > Browse the report which lists all the names "begins with Pat. Put "is invited" on the name of the destination report cust column and it will give you the "last step" you are looking for.

    P.S. a lot of useful tips in this thread. It would be nice to price messages with points.

  • Cannot read file backupset with RMAN cloning

    Hello

    I'm performing cloning on windows for windows operation. On the target, I took via rman backup using the recovery catalog. I got fresh backup of database as well as any archivelogs and delete the obsolete using the rman recovery catalog repository.

    When I connect to target, Recovery catalog and the auxiliary instance after that running some RMAN commands gives the error that it is impossible to read file backupset. What could be the reason for this. I write the list error part of RMAN please see and tell me what could be the reasons I took fresh backups and it seems that it is impossible to read this particular backup.
    channel ORA_AUX_DISK_1: reading from the backup C:\ORACLEBASE\PRODUCT\10.2.0\F piece
    LASH_RECOVERY_AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M
    6YLD_. BKP
    ORA-19870: error reading backup total C:\ORACLEBASE\PRODUCT\10.2.0\FLASH_RECOVER
    Y_AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M6YLD_. BKP
    ORA-19505: impossible to identify the file 'C:\ORACLEBASE\PRODUCT\10.2.0\FLASH_RECOVERY_ '.
    AREA\ORCL\BACKUPSET\2010_09_27\O1_MF_NNNDF_TAG20100927T125050_6B0M6YLD_. BKP ".
    ORA-27041: could not open the file
    04002 - OSD: could not open the file
    S/O-error: (OS 3) the system cannot find the path specified
    switch to the previous backup

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 2010-09-27 13:17:22
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06023: no backup or copy of datafile 6 to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of the file 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore

    RMAN >


    Please help me in this matter.

    Kind regards

    Abgrall

    If your RMAN backup exists on the target server path.

    Target server: C:\Oracle\RMAN_BACKUP\

    Put on the same location on the auxiliary server.

    Auxiliary server: C:\Oracle\RMAN_BACKUP\

    When cloning also connect with your catalog of recovery that you use the catalog of recovery for the server target.

    Concerning
    Asif Kabir

    Published by: asifkabirdba on 27 Sep, 2010 14:51

  • Problem installing Firefox 3.6.8 as error "no request for assistance" to open the file

    Used a netbook Asus Linux / Firefox version 2.0.0.0.11 for 3 years without problems. Now I can't use "Hotmail" on it, because it requires an update to the version as above.

    It appears to download but not to open it and I get the message "could not be opened because there is no such thing as the doe to request assistance associated with" I'm not sure where I should be downloading it too but chose home/user.

    I use very basic but verified the file 'open with' settings and there is no demand for a tar.bz2

    Any advice would be much appreciated

    Have you read all the 12 pages of this thread?

    http://Forum.EeeUser.com/viewtopic.php?id=41815

    I can't help myself, because I have done this process once and I wasn't happy with Firefox 3 on Asus / Xandros when I was tired. The next day, I installed Ubuntu 10.04 - EasyPeasy remix - http://www.geteasypeasy.com/

  • Confusion about RDM - request for assistance

    Hello

    I request assistance from someone who can help me understand what is happening with my setup.  Is not what I expected and I am intrigued by what I think, it's contradictory information...

    I'm under 3.5 update 2 to esxi on the host.  I have a number of logical unit mapped to a vmfs data store and I have a number of logical unit mapped for access to raw device by the configuration of the virtual machine.  At this point, I need to move the original since the data store virtual computer to a temporary location.  In attempting to do so, I see that there is this file "vmname - rdm.vmdk ' with the virtual machine.  From my reading, it's the lun mapping file and it should appear to be bigger than capactiy believed the lun, who he is (in this case 198GB)...  I also read in the forums here that the file does not actually this size on the data store (credible because I saw it with thin provisioned VMDK).  But when I ask for vmware to move the virtual machine via ssh, I see actually copy the 198GBs of data that will take me more hours I have the maintenance time.

    Since there is a mapping of raw, can I manually move the other files vmdk and ignore that "-rdm.vmdk" file?  What exactly is this file?  It is the newspaper of the binary deltas for the device?  If so, why must be the same size as the storage itself?  This file has to do with the mapping of crude being defined as 'Virtual' instead of the 'physical' while he was before installation?

    Any information would be appreciated.  In the meantime I'll try to re-read the documentation to see if I missed something.

    Thank you!  -Cheers, Peter.

    The - rdm.vmdk is a proxy for the raw device file. You can move this RAW device if it is in virtual compatibility mode.

    From the Manual:

    Virtual compatibility mode allows the virtual machine to use VMware snapshots and other advanced features. Virtual compatibility allows the LUN to behave as if it were a virtual disk, you can use features such as disc modes. When clone you the drive, make a model out of him or her (if migration is to copy the disc), migrate the contents of the LUN is copied to a file of virtual disk (hard).

    That's why you see so much data copied.

    As much as I KNOW in that all 3.5 hard are moved with the customer. No way to move them independently as in ESX 4.0 (even if the documentation says that it is possible, that I was not able to do).

    AWo

    VCP 3 & 4

    Author @ vmwire.net

    \[:o]===\[o:]

    = You want to have this ad as a ringtone on your mobile phone? =

    = Send 'Assignment' to 911 for only $999999,99! =

    Published by AWo

  • request for assistance

    Hello

    I send you an email twice, actually ask for your support on labview machine vision but still did not receive your response.

    A specific request detailing what kind of support or assistance is most likely to have a rpompt and a useful answer. In addition, you should consider posting your question on the Board of Vision of Machine.

    Lynn

  • Request for assistance on tweeking a JList JCheckBox

    Hi, I have a problem with a JCheckBox JList I found on the web. I normally do not ask for help since I've found that no matter what question seems to me usually gets solved by some intense research on Google. but here's my dilemma:

    I was looking for a JList JCheckBox I implement in my script, I found one on the web that someone had produced. It works fine I just need something tweeked thereon.
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    
    public class CheckBoxInList
    {
       public static void main(String args[])
       {
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JList list = new JList(new CheckListItem[] {new CheckListItem("1"), new CheckListItem("2"), new CheckListItem("3"), new CheckListItem("4"), new CheckListItem("5")});
    
            list.setCellRenderer(new CheckListRenderer());
            list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            list.addMouseListener(new MouseAdapter()
            {
                public void mouseClicked(MouseEvent event)
                {
                    JList list = (JList) event.getSource();
                    int index = list.locationToIndex(event.getPoint());
                    CheckListItem item = (CheckListItem)
                    list.getModel().getElementAt(index);
                    item.setSelected(! item.isSelected());
                    list.repaint(list.getCellBounds(index, index));
                }
            });
    
            frame.getContentPane().add(new JScrollPane(list));
            frame.pack();
            frame.setVisible(true);
            }
        }
    
        class CheckListItem
        {
            private String  label;
            private boolean isSelected = false;
    
            public CheckListItem(String label)
            {
                this.label = label;
            }
    
            public boolean isSelected()
            {
                return isSelected;
            }
    
            public void setSelected(boolean isSelected)
            {
                this.isSelected = isSelected;
            }
    
            public String toString()
            {
                return label;
            }
        }
    
        class CheckListRenderer extends JCheckBox  implements ListCellRenderer
        {
            public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean hasFocus)
            {
                setEnabled(list.isEnabled());
                *setSelected(((CheckListItem)value).isSelected()); // This is part of the problem, when I currently try to select a CheckBox there is a nullpointer example with my method*
                setFont(list.getFont());
                setBackground(list.getBackground());
                setForeground(list.getForeground());
                *setText(value.toString()); // This is also part of the problem, when I currently try to select a CheckBox there is a nullpointer example with my method *
                return this;
            }
        }
    This is the code, now what I'm trying to do right now is rather than add JCheckBoxes as well:
    new CheckListItem("1")
    I was hoping to do something like this:
    int arrayAmount = 20;
    String textArray[] = {"Text", "More Text", "Even More Text", "Etc."};
    JCheckBox jcheckboxArray[] = new JCheckBox[arrayAmount];
    JList list = new JList(jcheckboxArray);
    And set values later by doing this (it will be called from another class that reads its information in a file, they will be already initialized by this point):
    for (int i = 0; i < arrayAmount; i ++)
            {
                jcheckboxArray[i] = new JCheckBox(textArray);
    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    If you need a list of items that reflect a selected State independent of the selection of lines, use a 2 columns JTable with a Boolean and a string column and grid based on your need.

    DB

  • Request for assistance for the superposition of batch

    Hello

    I'm very new to Photoshop and have tried to do it myself for hours without result. What I'm in train/wanting to do is batch overlay a file of 700 + images on a single image of 260 x 300. The folder containing the photos I want to overlay contains 700 + images, all 251 266 x which must exactly match the empty/transparent space in the 'lid' and then saved in a different folder than the original images. This is the main 'background', followed by one of the images in the folder to 700 + images, and then finally I want the end result looks like. As is, I can do it with a single image but cannot for the life of figure me out how to batch all the images in the folder on the single "background."

    Any help would be GREATLY appreciated. A script pre-made or a droplet would be also welcome.

    PS3_CASE.PNGBCAS20005.PNGFINAL.PNG

    From what I understand, you need to make a copy of your file containing 700 + images.

    but the new folder should have the images ended with the image of cover ("in the background".

    To do this, you must create an Action.

    I know there are a lot of steps, but they are very easy to follow...

    Backup your original filesand work on a copy - just in case you replace the images by mistake.

    I recommend you print the steps to avoid unnecessary clicks in photoshop while trading

    between photoshop and your browser to see what's next on the list in step.

    Follow my steps carefully

    To create the Action that will do the task, follow the steps:

    1. open the image of the background (case)

    2. press on "Ctrl + A" (select the entire image of the background)

    3. press "Ctrl + C" (to copy it to the Clipboard)

    4. press "Ctrl + W" (to close the background image)

    5. open one of the 700 + images

    6 start recording of the Action (Palette Actions open by pressing "Alt + F9"-> Select 2' nd the right icon on the bottom of the range of the Action "New Action")

    7 name your action, and then click the Save"" button.

    8. now select the Photoshop main menu: Image-> canvas size

    9. Select "Parent".

    10. Enter '8' in the height box

    11 Select the "UP ARROW" in anchor

    12. click on 'OK '.

    13 image-> canvas size

    14. "next of kin" should be already selected

    15 field and enter "27" height

    16. Select the "arrow down" in anchor

    17. click on "OK".

    18 image-> canvas size

    19. "next of kin" should be already selected

    20 enter "9" in the width box

    21 select the "arrow pointing to the LEFT" at anchor

    22. click on 'OK '.

    23 hit: "Ctrl + V" (paste the contents of the Clipboard)

    24 hit: 'Ctrl + E' (merge the pasted layer)

    25 hit: "Ctrl + Shift + S" or "Ctrl + Shift + Alt + S" (record or save for web)

    26 set the parameters of export as folder where it should be stored, etc. image compression

    27. click on "Save".

    28 hit: "Ctrl + W" (this should initiate the image - that one of the 700 + closing)

    29. If the message appears asking you if you want to save the changes to the images, choose 'no '.

    30. click "stop"button in the palette of the Action (first icon from the left at the bottom of the range of the Action)

    31 remove the image that has been created

    32 file-> Automate-> batch (back to the main menu of Photoshop)

    33 select the name of the action you just created in the menu drop-down

    34. in Source, select 'folder '.

    35. click on the 'Choose' button and navigate to the folder where you store these 700 + images

    36. click on 'OK '.

    37 take advantage of

  • JDBC Oracle driver change requests for users with "rowid"?

    Hello

    I work with an IBM Java product that uses Oracle JDBC version 9.2.0.3.0 for Oracle DB connectivity (from file ojdbc14.jar is).
    The IBM product running an Oracle view called V_NGSM_GET_NEID which is used for elements of research network names in the Oracle
    DB and return the partners '' code of assets '' if the node is found.

    The problem is for all a single query sent I see two queries by using a packet sniffer. See below. The first query I see on the network
    a the string "rowid," prefix (107 package 0x9b offset) to the list in the column specified in my policy. But the first request fails with
    the following error (112 package)

    ORA-01446: cannot select ROWID from view DISTINCT, GROUP BY, etc +

    After the above error is returned, I see immediately the same request sent again, this time without "rowid", prefix (113 package offset 0 x 94)
    This same behavior occurs for each query, each time which results in twice the number of queries required and is a big problem.

    Support IBM claims it's the JDBC Oracle driver, not their code, adding "rowid", at the request and return it
    less "rowid", if it fails.

    Does make sense to anyone? I can't imagine that Oracle would distribute such a driver.

    Comments? Thoughts?

    Below are the packets captured using Solaris/snoop. The number is package on the extreme left (e.g., 107-117).

    ------

    107 0.00121 ab9imdev01-> 142.178.32.219 Ack TCP D = 41521 S = 62881 push = Seq = Len 3275308205 = 193 Win 49640 = 3897618122

    0: 00 a 0 9193 0014 4f94 0800 4500 884c 8e7e. .~.... ... O L... E.
    16: 00e9 2440 4000 4006 0000 cfe5 1503 8eb2... $@. @...
    32: 20 dB f5a1 c339 3cad e850 eeca 5018 a231... ¢ 1.9 <... PI.p.
    48: 9551 0000 1 0000 0600 0000 0000 00C c1e8... Q............
    64: 1169 0001 0101 0103 0002 8021 0001 035F. i... ^... ! ...
    80:0183 00 0000 0004 7fff ffff 0000 0101 0D...
    96: 0000 0000 0073 656 c 6563 7420 726f 7769. . Select rowi
    112: 642 204th c 4554 574f 524bis 5f45 45 4 c 4 d 45 d, NETWORK_ELEME
    128: 204th 442c 4554 524bis 5f45 NT_ID, NETWORK_E 574f 5f49 4e54
    144: 45 4 c 4 d 45 4e54 5f4e 414d 4520 4652 4f4d LEMENT_NAME OF
    160: 204th 4753 4 d 55 5345 522e 2256 5f4e 4753 NGSMUSER. "V_NGS
    "176: 4d5f 4745 545f 4944 2220 5748 4552 M_GET_NEID 4e45" WHER
    192:4520 4e45 5457 454d 454 454c NETWORK_ELEMEN E 4b5f of the 4f52
    208: 545f 4e41 4 d 45 203d 2027 4544 544th 4142 T_NAME = ' EDTNAB
    224: 4453 4 C 41 4 30 3327 0101 0000 0000 0000 DSLAM03 D '...
    240: 0101 0000 0000 00...

    108 0.01144 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 grow Ack = Seq 3275308398 = Len 3897618122 = Win 11 = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16: 0033 2764 0000 3706 c7eb 8eb2 cfe5 20db. 3 would be... 7..... ...
    32: 1503 a231 f5a1 e850 eeca c339 5018 3d6e... ¢1.¡. PI... 9 = nP.
    48: 8052 1 d 57 0000 000 b 0000 00 0000 0100 0c. R.W............
    64: 01.

    109 0,00000 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 grow Ack = Seq 3275308398 = Len 3897618133 = Win 11 = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16: 0033 2765 0000 3706 c7ea 8eb2 cfe5 20db. 3' e... 7..... ...
    32: 1503 a231 f5a1 e850 eed5 c339 5018 3d6e... ¢1.¡. PI... 9 = nP.
    48: 8052 1c4c 000 0000 0000 00 0000 0100 0c b. R.L............
    64: 02.

    110 0,00008 ab9imdev01-> 142.178.32.219 TCP D = 41521 S = 62881 Ack = 3897618144 Seq = 3275308398, Len = 0 Win = 49640

    0: 00 a 0 9193 0014 4f94 0800 4500 884c 8e7e. .~.... ... O L... E.
    16: 0028 2441 4000 4006 0000 cfe5 1503 8eb2. ($A@.@.........
    32: 20 dB f5a1 a231 c339 3d6e e850 eee0 5010... ¢ 1.9 = n. Pi. P
    48: 9490 0000 c1e8...

    111 0,00019 ab9imdev01-> 142.178.32.219 Ack TCP D = 41521 S = 62881 push = Seq 3897618144 Len 3275308398 = Win 49640 = 11 =

    0: 00 a 0 9193 0014 4f94 0800 4500 884c 8e7e. .~.... ... O L... E.
    16: 0033 2442 4000 4006 0000 cfe5 1503 $8eb2.3 B @. @...
    32: 20 dB f5a1 c339 3d6e e850 eee0 5018 a231... ¢ 1.9 = n. Pi. P
    48: c1e8 b 949 000 0000 0000 00 0000 0100 0c b... \233...
    64: 02.

    112 0.00870 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 grow Ack = Seq 3275308409 = Len 3897618144 = 111 Win = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16: 0097 2766 0000 3706 c785 20db cfe5 8eb2... " f.. 7..... ...
    32: 1503 a231 f5a1 e850 eee0 c339 79 5018 3d... ¢1.¡. PI... 9 = yP.
    48: 8052 7b 48 0000 0000 0600 0000 0000 006f. R{H...o........
    64:0400 0205 a600 0001 0301 0700 0001 2000...
    80: 0000 0000 0000 0000 0000 0001 0147 4f52... GOR
    96: 412d 3031 3434 363 2063 616e 7420 A - 01446 6e6f a: cannot
    112: 7365 6 c 65 6374 2052 4944 2066 726f 4f57 select ROWID BOF
    128: 6 d 20 7669 6577 2077 6974 6820 4449 5354 m seen with DIST
    144: 494e 4354 2 c 20 4752 5020 4259 2 c 20 INCT, GROUP BY 4f55,.
    0a 632nd 160:6574 etc...

    113 0,00037 ab9imdev01-> 142.178.32.219 Ack TCP D = 41521 S = 62881 push = Seq = Len 3275308409 = 179 Win 49640 = 3897618255

    0: 00 a 0 9193 0014 4f94 0800 4500 884c 8e7e. .~.... ... O L... E.
    16: 00db 2443 4000 4006 0000 cfe5 1503 8eb2... $C @. @...
    32: 20 dB f5a1 c339 3d 79 e850 ef4f 5018 a231... ¢ 1.9 = y. P. OP
    48: 9543 0000 00b 3 0000 0600 0000 0000 c1e8... C............
    64: 0002 8021 0103 0101 7 c 01 010 035F d 0000. ^... ! ....| .....
    80: ff00 of ffff 0000 0000 0000 0000 5345 047f... IS
    96: 4 c 45 4354 204th 4554 574f 524bis 5f45 4 c 45 READING NETWORK_ELE
    112: 4 d 45 4e54 5f49 442c 204th 4554 524bis MENT_ID, NETWORK 574f
    128: 5f45 45 4 c 4 d 45 4e54 5f4e 4520 4652 ELEMENTNAME EN 414d
    144: 204th 4f4d 4753 4 d 55 5345 522e 2256 5f4e OM NGSMUSER. "V_N
    4745 545f 4944 2220 5748 GSM_GET_NEID 4e45 4d5f 160:4753"WH
    4520 4e45 5457 4f52 4b5f 454c 454d ERA NETWORK_ELEM 176:4552
    192: 454 545f 4e41 4 d 45 2027 4544 203d 544th ENT_NAME = ' EDTN
    208: 4142 4453 4 C 41 4 30 3327 0101 0000 0000 ABDSLAM03 D '...
    224: 0000 0101 0000 0000 00...

    114 0.01101 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 grow Ack = Seq 3275308588 = Len 3897618255 = 174 Win = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16:00 6 2767 0000 3706 c745 20db cfe5 8eb2 d... " g... 7..E... ...
    32: 1503 a231 f5a1 e850 ef4f c339 5018 3e2c... ¢1.¡. P.O.9 >, P.
    48: 8052 c84a 0000 0000 0600 0000 0000 00ae. R.J............
    64: 3175 787 101d 0000 0003 0000 3ed0 949d c... 1UX|...\235 >...
    80: 786d 080d 30 3900 7400 0000 0201 xm ed27 0d... 09.i't...
    96: 3401-0243-0200, 0116 0000 0000 0000 0000 4.C...
    112:0112 0112 124th 4554 574f 524bis 5f45 4 c 45. . NETWORK_ELE
    128: 4 d 45 4e54 4400 0001 8000 0001 1e00 MENT_ID 5f49...
    144: 0000 0001 1f01 0114 0114 144F 4554 574f... . NETWO
    160: 524bis 5f45 45 4 c 4 d 45 5f4e 4500 RK_ELEMENT_NAME 414d 4e54.
    176: 0001 0707 786 d 080d 1024 1508 0104 04a 7... xm... $...
    192: d5e0 0791 0103 0000 0004 0000 0000 fa02...
    208: 0103 0003 0000 0000 0000 0000 0000 0000...
    224: 0000 0101...

    115 0.00026 ab9imdev01-> 142.178.32.219 Ack TCP D = 41521 S = 62881 push = Seq = Len 3275308588 = 17 Win 49640 = 3897618429

    0: 00 a 0 9193 0014 4f94 0800 4500 884c 8e7e. .~.... ... O L... E.
    16: 0039 2444 4000 4006 0000 cfe5 1503 $8eb2.9 D @. @...
    32: 20 dB a231 c339 e850 5018 effd 3e2c f5a1... ¢ 1.9 >,. . P. P.
    48: c1e8 94a 1 0000 0011 0600 0000 0000 0000... ¡...
    64: 0305-0001-0301 0 has...

    116 0.10217 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 Ack = 3275308605 Seq = 3897618429, Len = 0 Win = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16: 0028 2768 0000 3706 c7f2 8eb2 cfe5 20db. ('h.. 7..ò... ...
    32: 1503 a231 f5a1 e850 effd c339 3e3d 5010... ¢1.¡. P.... 9 > = P.
    48: 8052 2973 0000 0000 0000 0000. R)s........

    117 0.27052 142.178.32.219-> ab9imdev01 TCP D = 62881 S = 41521 grow Ack = Seq 3275308605 = Len 3897618429 = Win 64 = 32850

    0: 0014 4f94 884c 00 a 0 9193 0800 4500 8e7e... ... O L... ~.... E.
    16: 0068 2769 0000 3706 c7b1 8eb2 cfe5 20db. h'i... 7..... ...
    32: 1503 a231 f5a1 e850 effd c339 5018 3e3d... ¢1.¡. P.... 9 > = P.
    48: 8052 d42a 0000 0040 0000 0600 0000 0000. R.*...@........
    64:0400 0205 7 b 00 0001 0300 0300 0120 0000... {........ ..
    80: 0000 0000 0000 0000 0000 0101 194f 5241... ORA
    6e6f 3 a 20 96: 2d 30 3134 3033 2064 6174 6120 - 01403: no data
    112: 666f 756 640 has found.

    Looks like you are saying that the Java source code can control completely if the driver will try to get the ROWID by requested ResultSet settings. Is this true?

    I think it should, Yes. I guarantee you that all versions of the driver in all cases would have a parameter that has ignored the attempt to insert of a ROWID. But I strongly suspect that he does not bother if the result set which had been requested was such that the ROWID would not be beneficial.

    I expect the pilot to understand the complete Oracle SQL grammar, it can at least add "rowid" in the place in the query

    There is a major compromise. It is incredibly difficult to support full SQL grammar correctly. Oracle used to SQL for SQL and PL/SQL engine analyzers and would regularly find bugs where a scanner heard something that does not have the other parser. When you put too much SQL parsing code in the driver, you finish by the two spend more time parsing SQL statements and you end by potentially limiting the set of queries that could be issued to the dialect of SQL that the JDBC driver has been aware of when it was shipped that sucks when you use to connect to a database of the latest drivers.

    I suspect (assuming that is not speaking on behalf of the JDBC driver development team) they thought it better to do the simplest thing possible, throwing the ROWID right after SELECT it. If it worked, great. If this is not the case, they encoururent the cost of a round trip and an analysis of the database which is probably at the same level as the cost of the analysis of the SQL locally and then just downgrade the result set. If you ask an editable ResultSet, for example, Oracle is unable to identify a single line, if you specify also SEPARATE in the query. Rather than trying to understand all of the cases where a query generates a result not set editable intrinsically, it is easier and more accurate to try to get a ROWID and downgrade the result set if the addition of a ROWID generates a syntax error.

    Of course, the costs and benefits of arbitration depend on the proportion of result sets which requires a feature that is not available with the SQL statements, they deliver some. If you have an application that makes 300 000 queries that have SEPARATE and ask a modifiable and capable of scroll cursor, it would potentially put more logic in the JDBC driver. If you have an application that always brings queries that can be changed using simple algorithm of the driver, the simple algorithm is obviously preferable.

    Justin

  • Re: Request for help with Tecra A10-156 (Vista backup media)

    Dear members of the Forum

    I am the owner of a laptop Toshiba Tecra A10-156. As the owners of this model will be aware, the machine is supplied with Windows Vista pre-installed. Also supplied is a recovery of Windows XP Professional disc, which, once loaded on the machine, remove everything on the hard drive, including the operating system Vista and the Vista hard disk recovery partition.

    The documentation that comes with the laptop warns the user if he wants to take the Windows XP program on the computer, it must burn a DVD of backup software vista before you load the XP image because if it loads Windows XP without doing that then he loses everything to do with VISTA on the machine.
    Unfortunately, when I bought my machine, I did exactly this error and load Windows XP without backup Vista Software. Load the XP dvd, hard drive was completely wiped out, including not only the Windows Vista installation, but also the recovery partition.

    Although windows XP is a good operating system, I would like the ability to restore my machine to the factory setting. When I asked what to do with Toshiba, they said that the only way they could help would be to sell me a backup DVD of Vista recovery which would cost me a little money. (more than thirty books).
    They also mentioned that if I could find another owner of A10 - 156 using vista would be ready, they could burn a DVD using their recovery from vista machine and then I would be able to use this DVD to do the job.

    As I know personally of all other owners Tecra A10, I am writing to make a plea to ask if some A10-156 (it takes as the exact model) owner would please that nature to let me have a copy of VISTA backup medium please. Of course, I'd be more than willing to pay a total amount of the Virgin DVD (s) and shipping costs.
    If someone is willing or able to help should I very grateful indeed and hope to hear from a fellow A10-156 owner as soon as possible.

    Yours sincerely
    Ian in the United Kingdom

    I hope someone here can help and maybe you should put your e-mail address for direct contact.

  • How files request for vmdk with location of store data using perl sdk

    Hello

    I need to retrieve a list of (xxx - flat hard) and vmdk files for a virtual machine on an ESX Server.

    The virtual machine I have has two disks that are in different data stores.

    I changed the /usr/lib/vmware-vcli/apps/vm/myvminfo.pl to dump the full data.

    I spilled the $vm_view and found that the data you are looking for do not print.

    I'm new to VMWare and don't know how to go forward.

    Any help will be greatly appreciated.

    Thanks in advance

    Ashwin

    You should be able to use just LayoutEx property of the VirtualMachine.  Keep in mind this property gets refreshed on a schedule, so don't always present not unless you explicitly referesh it yourself.  However, that can add some overhead VI retesting the data store (s).

    The attached script is quite simple, but it can help you get started.  To % disk_parts hash key is the key of the device, you can use this to get configuration-> hardware-> device information.  The string under layoutEx-> disc keys should be descriptor-> measure.  You can query the type of the object file if you need to be sure or want to only print as well.

    You can exit the script in certain functions or map() calls to make it more readable.  You need to work through the key tables nested loop, so it would probably be good to format into something easier to follow.  Another option would be to create a hash of the file of the key values card, so you can do research without expensive loops.

    Samples:

    $ perl ListVmdkForVm.pl - username = administrator - password = VMware1! -Server = 172.16.254.10--vmname=Test\(Renamed\)
    2000: Test [VLAB-ESX-01_LOCAL] (renamed) _1/Test (renamed) hard, [VLAB-ESX-01_LOCAL] Test (renamed) _1/Test (renamed) - flat hard

Maybe you are looking for

  • Qosmio G10 - no sound with external speakers

    When I connect external speakers, no sound coming from them, on the built-in speakers. Could this be a hardware problem?Thanks for your help.

  • Re: Error setenv.ini using form on NB100 recovery USB pen

    HelloI am trying to re - install Windows Xp on my laptop using the recovery disk, but I have a few questions.I have a NB100 without a hard drive, so I created a bootable USB when I copied the recovery with a specific program disk.I put the USB to be

  • Satellite A135-S4527 cooling fan works more efficiently

    Hello I have an A135-S4527 and the cooling fan is having issues.It works at low speed constantly, as it usually does, but almost never, he runs in mode high speed.Clearly, it must be that the air temperature is high enough... about the temperature of

  • want to 5545: printing problem.

    Cannot print from my smartphone Samsung s6. Trying to print but stops with an "out of paper msg. Works very well in a smart phone Apple 5s and the computer. All wireless connections seem to be ok. This is a new installation. Bought the printer yester

  • Have I been blocked Facebook?

    I can not connect to Facebook. Message says that my account is temporary unavailable!