Creating ABE on a metadevice?

I set up a new system with the following disk layout (excerpt from JumpStart):
filesys         mirror:d10      c1t0d0s0        c1t1d0s0        14000   /
filesys         mirror:d20      c1t0d0s3        c1t1d0s3        14000   /lupgrade
filesys         mirror:d30      c1t0d0s4        c1t1d0s4        1024    swap
filesys         mirror:d40      c1t0d0s7        c1t1d0s7        free    /varWith the intention of being able to use the /lupgrade slice to do LiveUpgrades
on my system. However, in the LiveUpgrade documentation there's a blurb
that mentions that target boot environments can not be located on metadevices.
Is this still the case? I really want to be able to use my extra mirrored partition
as my ABE. Seems silly that I have to wipe it out and set up my ABE in a
less redundant one partition only solution.
Anyone tried this?

From practice I know that it's possible to have Live Upgrade ABEs on metadevices. You just give correct /dev/md/disk/<name> devices to lucreate.

Similar Messages

  • LU Fails to create ABE

    I have the following filesytems on my fully patched Solaris 10 machine:
    /export/home
    /ZONES/reg-otm3
    /ZONES/reg-otm4
    Note that reg-otm3 and reg-otm4 are whole-root zones, up and running.
    The above filesystems are all part of my SAN network. I want to create an ABE on one of my internal disks, but the lucreate barfs when it sees the zones:
    root@reg-otm2 # lucreate -c "San_Disk" -m /:/dev/dsk/c0t1d0s0:ufs -n "Internal_Disk_1"
    Discovering physical storage devices
    Discovering logical storage devices
    Cross referencing storage devices with boot environment configurations
    Determining types of file systems supported
    Validating file system requests
    Preparing logical storage devices
    Preparing physical storage devices
    Configuring physical storage devices
    Configuring logical storage devices
    Analyzing system configuration.
    No name for current boot environment.
    Current boot environment is named <San_Disk>.
    Creating initial configuration for primary boot environment <San_Disk>.
    The device </dev/dsk/c3t50060E8005B00B14d0s0> is not a root device for any boot environment; cannot get BE ID.
    PBE configuration successful: PBE name <San_Disk> PBE Boot Device </dev/dsk/c3t50060E8005B00B14d0s0>.
    Comparing source boot environment <San_Disk> file systems with the file
    system(s) you specified for the new boot environment. Determining which
    file systems should be in the new boot environment.
    Updating boot environment description database on all BEs.
    Searching /dev for possible boot environment filesystem devices
    Updating system configuration files.
    The device </dev/dsk/c0t1d0s0> is not a root device for any boot environment; cannot get BE ID.
    Creating configuration for boot environment <Internal_Disk_1>.
    Source boot environment is <San_Disk>.
    Creating boot environment <Internal_Disk_1>.
    Creating file systems on boot environment <Internal_Disk_1>.
    Creating <ufs> file system for </> in zone <global> on </dev/dsk/c0t1d0s0>.
    Mounting file systems for boot environment <Internal_Disk_1>.
    Calculating required sizes of file systems for boot environment <Internal_Disk_1>.
    Populating file systems on boot environment <Internal_Disk_1>.
    Checking selection integrity.
    Integrity check OK.
    Populating contents of mount point </>.
    Copying.
    Creating shared file system mount points.
    Copying root of zone <reg-otm3> to </.alt.tmp.b-Nwg.mnt/ZONES/reg-otm3-Internal_Disk_1>.
    ERROR: Internal error: /.alt.tmp.b-Nwg.mnt/ZONES/reg-otm3-Internal_Disk_1 is missing
    Copying root of zone <reg-otm4> to </.alt.tmp.b-Nwg.mnt/ZONES/reg-otm4-Internal_Disk_1>.
    ERROR: Internal error: /.alt.tmp.b-Nwg.mnt/ZONES/reg-otm4-Internal_Disk_1 is missing
    Creating compare databases for boot environment <Internal_Disk_1>.
    Creating compare database for file system </>.
    Updating compare databases on boot environment <Internal_Disk_1>.
    Making boot environment <Internal_Disk_1> bootable.
    ERROR: unable to mount zones:
    zoneadm: /.alt.tmp.b-aMg.mnt/ZONES/reg-otm3-Internal_Disk_1: No such file or directory
    could not verify zonepath /.alt.tmp.b-aMg.mnt/ZONES/reg-otm3-Internal_Disk_1 because of the above errors.
    zoneadm: zone reg-otm3 failed to verify
    ERROR: unable to mount zone <reg-otm3> in </.alt.tmp.b-aMg.mnt>
    ERROR: unmounting partially mounted boot environment file systems
    ERROR: cannot mount boot environment by icf file </etc/lu/ICF.2>
    ERROR: Unable to remount ABE <Internal_Disk_1>: cannot make ABE bootable
    ERROR: no boot environment is mounted on root device </dev/dsk/c0t1d0s0>
    Making the ABE <Internal_Disk_1> bootable FAILED.
    ERROR: Unable to make boot environment <Internal_Disk_1> bootable.
    ERROR: Unable to populate file systems on boot environment <Internal_Disk_1>.
    ERROR: Cannot make file systems for boot environment <Internal_Disk_1>.
    I just want to be able to tell lucreate to ignore the zones, but I get the same results when I use the "-x" qualifiers as well.
    Any ideas?
    TIA
    Rick

    1) I would move the creation of the frame to init. I like to create objects only then when they are needed. And when creating the class it is not needed. But it is needed when the applet starts.
    2) You forgot to create a container that can hold objects. Try to create a JPanel where you can add your Buttons to. Then add the JPanel to the ContentPane.
    public class JAppletExample extends JApplet {
        JFrame jfrmTest;
        JPanel jpnlTest;
        public void init() {
            // initializing objects
            jfrmTest = new JFrame("This is a test");
            jpnlTest = new JPanel();
            // setting parameters
            jpnlTest.setBackground(Color.white);
            jpnlTest.setLayout(new FlowLayout());
            jpnlTest.add(new JButton("Button 1"));
            jpnlTest.add(new JButton("Button 2"));
            jpnlTest.add(new JButton("Button 3"));
            // adding JPanel to ContentPane
            jfrmTest.getContentPane().add( jpnlTest );
            // setting size and visibility
            jfrmTest.setSize(400, 150);
            jfrmTest.setVisible(true);
    }Hope this helps, Rommie.

  • RAID-5 with internal disks

    I'm currently installing a E250 with 6 internal disks of each 18gb. I created a /, /usr, /var and swap each mirrored using Disksuite.Then I would like to create a RAID-5 filesystem with Disksuite, so therefore I created 1 extra slice on every disk with the same size and created the RAID-5 metadevice with
    metainit -r c0t0d0s3 ....
    What should be the best interlace size ? Write performance is not very good (as I expected), so does anyone have good ideas how to make improvements ?
    Please reply to me personally at [email protected]
    Thanks,
    Bruno

    I'm currently installing a E250 with 6 internal disks of each 18gb. I created a /, /usr, /var and swap each mirrored using Disksuite.Then I would like to create a RAID-5 filesystem with Disksuite, so therefore I created 1 extra slice on every disk with the same size and created the RAID-5 metadevice with
    metainit -r c0t0d0s3 ....
    What should be the best interlace size ? Write performance is not very good (as I expected), so does anyone have good ideas how to make improvements ?
    Please reply to me personally at [email protected]
    Thanks,
    Bruno

  • Applying individual patches to a Live Upgrade Environment

    Hi all
    Is it possible to apply individual patches to a Live Upgrade Environment? More specifically, is it possible to apply a kernel patch to the LUE?
    I was thinking that the command would look like this:
    patchadd -R /alt_env_root /location/144500-19
    In the README I don't find anything for patching a LUE and only mention of installing it in single user mode or when the system is close to totally idle.
    Dean

    yes u can apply the individul patches anad kernel patches in the lu enviornment
    for that first u need to create ABE
    luupgrade -n mytestBE -t -s /patchesfolder 166981-17
    you can refer this below link
    http://www.oracle.com/technetwork/server-storage/solaris10/solaris-live-upgrade-wp-167900.pdf
    http://www.oracle.com/technetwork/systems/articles/lu-patch-jsp-139117.html

  • Performance problems with DFSN, ABE and SMB

    Hello,
    We have identified a problem with DFS-Namespace (DFSN), Access Based Enumeration (ABE) and SMB File Service.
    Currently we have two Windows Server 2008 R2 servers providing the domain-based DFSN in functional level Windows Server 2008 R2 with activated ABE.
    The DFSN servers have the most current hotfixes for DFSN and SMB installed, according to http://support.microsoft.com/kb/968429/en-us and http://support.microsoft.com/kb/2473205/en-us
    We have only one AD-site and don't use DFS-Replication.
    Servers have 2 Intel X5550 4 Core CPUs and 32 GB Ram.
    Network is a LAN.
    Our DFSN looks like this:
    \\contoso.com\home
        Contains 10.000 Links
        Drive mapping on clients to subfolder \\contoso.com\home\username
    \\contoso.com\group
        Contains 2500 Links
        Drive mapping on clients directly to \\contoso.com\group
    On \\contoso.com\group we serve different folders for teams, projects and other groups with different access permissions based on AD groups.
    We have to use ABE, so that users see only accessible Links (folders)
    We encounter sometimes multiple times a day enterprise-wide performance problems for 30 seconds when accessing our Namespaces.
    After six weeks of researching and analyzing we were able to identify the exact problem.
    Administrators create a new DFS-Link in our Namespace \\contoso.com\group with correct permissions using the following command line:
    dfsutil.exe link \\contoso.com\group\project123 \\fileserver1\share\project123
    dfsutil.exe property sd grant \\contoso.com\group\project123 CONTOSO\group-project123:RX protect replace
    This is done a few times a day.
    There is no possibility to create the folder and set the permissions in one step.
    DFSN process on our DFSN-servers create the new link and the corresponding folder in C:\DFSRoots.
    At this time, we have for example 2000+ clients having an active session to the root of the namespace \\contoso.com\group.
    Active session means a Windows Explorer opened to the mapped drive or to any subfolder.
    The file server process (Lanmanserver) sends a change notification (SMB-Protocol) to each client with an active session \\contoso.com\group.
    All the clients which were getting the notification now start to refresh the folder listing of \\contoso.com\group
    This was identified by an network trace on our DFSN-servers and different clients.
    Due to ABE the servers have to compute the folder listing for each request.
    DFS-Service on the servers doen't respond for propably 30 seconds to any additional requests. CPU usage increases significantly over this period and went back to normal afterwards. On our hardware from about 5% to 50%.
    Users can't access all DFS-Namespaces during this time and applications using data from DFS-Namespace stop responding.
    Side effect: Windows reports on clients a slow-link detection for \\contoso.com\home, which can be offline available for users (described here for WAN-connections: http://blogs.technet.com/b/askds/archive/2011/12/14/slow-link-with-windows-7-and-dfs-namespaces.aspx)
    Problem doesn't occure when creating a link in \\contoso.com\home, because users have only a mapping to subfolders.
    Currently, the problem doesn't occure also for \\contoso.com\app, because users usually don't use Windows Explorer accessing this mapping.
    Disabling ABE reduces the DFSN freeze time, but doesn't solve the problem.
    Problem also occurs with Windows Server 2012 R2 as DFSN-server.
    There is a registry key available for clients to avoid the reponse to the change notification (NoRemoteChangeNotify, see http://support.microsoft.com/kb/812669/en-us)
    This might fix the problem with DFSN, but results in other problems for the users. For example, they have to press F5 for refreshing every remote directory on change.
    Is there a possibility to disable the SMB change notification on server side ?
    TIA and regards,
    Ralf Gaudes

    Hi,
    Thanks for posting in Microsoft Technet Forums.
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Regards.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Mapping tool creates new columns one at a time

    Hi All,
    I'm using Kodo 3.2.2 with MySql 4.1. I have a fairly large table (over
    2million rows) representing one persistent class. I need to add several
    new fields to the object, which will require a refresh mapping on the
    database to add new columns for the fields.
    It seems when I run refresh mapping on the database, Kodo is adding each
    new field individually in seperate ALTER TABLE statements, rather than
    adding all the columns in one ALTER TABLE statement.
    With MySQL and large tables, this can really increase the time required to
    refresh the mapping - I've tried with MSSQL and that database must handle
    ALTER TABLE commands differently because it doesn't take a fraction of the
    time that MySQL takes.
    Is this a bug (I doubt it), but rather a feature improvement?
    Thoughts?
    Thanks,
    Brendan

    Thanks Abe for the reply - I've been meaning to look at the process of
    creating SQL scripts to perform the refresh mappings on our databases.
    I'll have a look at this process before we talk contracting!
    Thanks,
    Brendan
    Abe White wrote:
    Unfortunately, we don't have any immediate plans to optimize ALTER TABLEsince
    it's not a runtime operation, and as you say most DBs don't have a problemwith
    it. Also, note that the documentation shows how to get Kodo to create SQL
    scripts rather than directly modify the DB; you could easily edit thescripts
    Kodo generates to make them more efficient before piping the SQL to MySQLusing
    its client app. (Note that Kodo 3.3 introduces the ability to generate SQL
    scripts directly from the mapping tool, rather than having to take an extrastep
    through the schema tool).
    If getting Kodo to combine ALTER statements is important to you, you couldalso
    contact [email protected] about contracting us to expedite this work.

  • Unable to access UNC path on 2012 R2 file server with ABE enabled

    Brief Description:
    We have granted access to people via a domain local group on a folder on a file server that is three levels deep from the share, i.e. \\servercluster\share\folder1\folder2\folder3, where folder3 is where the group is granted Read & Execute
    access.  The share has Access-Based Enumeration (ABE) enabled and the Everyone group has Full Control share permissions.  We also use DFS, so the path for that is \\domain\dfsrootname\folderfororganization\share\folder1\folder2\folder3.  People
    in the aforementioned group only have access to folder3, its subfolders, and files.  They do not have any access to folder2 or any of the other folders higher in the tree at all.  Also, consider that folder3 contains a subfolder folder4, which is
    simply inheriting permissions. 
    What we have found is that clients running Windows 7 SP1 have strange access issues when attempting to access the folder via either the DFS or cluster name UNC paths.
    Detailed Testing Results Accessing Folder3 Directly:
    NOTE:  "UNC path" in the following test results means either the DFS or the cluster name share path.  The results are the same regardless which path is used.
    1 - Enter UNC path without trailing backslash in Windows Explorer's address bar:
    Windows Explorer seems to do nothing for about 30 seconds and then displays the following error:
    "Windows cannot access <UNC path>
    Check the spelling of the name.  Otherwise, there might be a problem with your network.  To try to identify and resolve network problems, click Diagnose."
    2 - Enter UNC path with trailing backslash in Windows Explorer's address bar:
    The same error encountered in #1 is displayed immediately.
    3 - Enter UNC path with or without trailing backslash but contained in double quotes in Windows Explorer's address bar:
    Internet Explorer opens and displays the error:
    "Internet Explorer cannot display the webpage"
    4 - Enter UNC path without trailing backslash in Run dialog box:
    An error message immediately appears:
    "<UNC path>
    The specified path does not exist.
    Check the path and then try again."
    5 - Enter UNC path with trailing backslash in Run dialog box:
    Same as #4.
    6 - Enter UNC path without trailing backslash but contained in double quotes in Run dialog box:
    Same as #4.
    7 - Enter UNC path with trailing backslash and contained in double quotes in Run dialog box:
    Windows Explorer opens the correct UNC path location and displays the folder contents.  This is the expected behavior for all of these attempts.
    8 - Create Shortcut to UNC path by performing #7 and then dragging the folder icon in Windows Explorer's address bar to either to the desktop or the Favorites section, and then attempt to access the folder via
    the shortcut.
    Same as #7.
    9 - Attempt to create a shortcut to the UNC path using the New Shortcut wizard:
    Unable to successfully create the shortcut, regardless if you add a backslash at the end or enclose the path in double qutoes.  When you press Next after entering the UNC path, you receive the following error:
    "The file <UNC path> cannot be found."
    10 - Disable ABE on the share and repeat all tests:
    All tests with ABE disabled on the share have the same result as #7.  There is no issue whatsoever accessing the desired folder when ABE is disabled.
    Other Notable Behaviors:
    If the aforementioned folder (folder3) contains one or more subfolders (e.g. folder4), you are able to access those subfolders via UNC path directly and then go up one level to folder3 without issue, even when ABE is enabled.  You just cannot access
    folder3 directly via UNC path unless you attempt to access it via the method used in #7 above or a successfully created shortcut.
    Adding a user account directly to the folder3 ACL rather than using group membership makes no difference.
    If access is granted to folder4 instead of folder3 (the fourth folder deep rather than the third), accessing folder4 directly via UNC path is not an issue regardless of ABE status or attempted access method.
    Windows 8 and 8.1 clients have no trouble directly accessing the folder's UNC path via any method.  The unusual, undesirable behavior seen in Windows 7 is non-existent on Windows 8.x clients.
    Systems Involved:
    Client:  Windows 7 Enterprise SP1 x86
    Server:  Windows Server 2012 R2 Standard in cluster
    Other Details About the Systems:
    Both the client and the file server cluster are in the domain AD DS domain.
    The client and the file server cluster are in different subnets.
    There is no firewall or other packet inspection or compression service/device in between the client and server (not even Windows Firewall).
    Question:
    Is there a way to fix this behavior with Windows 7 clients and ABE enabled on the share so that it works correctly without forcing the clients or server to use SMBv1 or disabling ABE on the shares?

    7-Zip 9.20
    Adobe Flash Player 13 ActiveX
    Cisco WebEx Meetings
    Java 7 Update 51
    It should be noted that I can't repeat the behavior on my test machine again today after some changes were made in our environment.
    Today, I found that someone had modified permissions on the folder to give the group my test account was a member of rights to traverse the folder hierarchy from the root of the share.  Additionally, in testing something with FIPS mode, I ended up reverting
    my virtual machine to an older snapshot.
    After removing the extra permissions that weren't present when I was doing my testing and reverting to the older snapshot, I  am not having issues accessing the real equivalent of folder3 directly in Windows Explorer via DFS UNC path or creating a shortcut
    with the New Shortcut wizard.
    Things have been fundamentally changed and I cannot repeat the behavior on this particular folder.  I will see if I can recreate the same situation on another folder.

  • Creating a database with Sun Java Application Server 9

    I am using a slightly outdated reference book on J2EE programming. It gives 2 methods of creating a database used in its casestudies. The first is an ANT script that gives the following output:
    D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>asant database
    Buildfile: build.xml
    env-user:
    prop-user:
    set-user:
    env-password:
    prop-password:
    read-password:
    set-password:
    set-j2ee:
    create-jdbc:
    set-j2ee:
    asadmin:
    [echo] asadmin.bat create-jdbc-resource user admin password password --
    connectionpoolid PointBasePool --enabled=true jdbc/Agency
    [exec] Usage: create-jdbc-resource [--terse=false] [--echo=false] [--intera
    ctive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_
    user] [--passwordfile file_name] --connectionpoolid id [--enabled=true] [--descr
    iption text] [--target target(Default server)] jndi_name
    [exec] CLI193 Password option "password" is not allowed on the command line
    . Please use --passwordfile option or asadmin login command.
    set-j2ee:
    asadmin:
    [echo] asadmin.bat list-jdbc-resources user admin password password
    [exec] Usage: list-jdbc-resources [--terse=false] [--echo=false] [--interac
    tive=true] [--host localhost] [--port 4848|4849] [--secure | -s] [--user admin_u
    ser] [--passwordfile file_name] [target (Default server)]
    [exec] CLI193 Password option "password" is not allowed on the command line
    . Please use --passwordfile option or asadmin login command.
    set-dbpath:
    BUILD FAILED
    D:\original\CaseStudy-2-5\CaseStudy\common\targets.xml:87: D:\Sun\SDK\pointbase\
    lib not found.
    Total time: 2 seconds
    D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise>
    I've checked and there is no Sun\SDK\pointbase folder. The book was written for SDK 1.4 and I believe another application server. There is also a Java program that attempts to create it with jdbc. Its output looks like this :
    D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise\classes>java CreateAgency
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at CreateAgency.main(Unknown Source)
    D:\original\CaseStudy-2-5\CaseStudy\Day02\exercise\classes>
    I am not conversant enough to discuss the corrections for the ANT script but I'm reasonably certain the Java program could work if I had the right strings in these lines.
    // PointBase
    private static final String driver = "com.pointbase.jdbc.jdbcUniversalDriver";
    private static final String protocol = "jdbc:pointbase:server://localhost/sun-appserv-samples,new";
    private static final String user = "pbPublic";
    private static final String password = "pbPublic";
    Can anyone help me with the correct driver and protocol?
    I am using the latest download version SDK JavaEE5
    the entire java program looks like this:
    import java.sql.*;
    public class CreateAgency {
    // Cloudscape
    //private static final String driver = "COM.cloudscape.core.RmiJdbcDriver";
    //private static final String protocol = "jdbc:cloudscape:rmi:Agency;create=true";
    //private static final String user = "";
    //private static final String password = "";
    // PointBase
    private static final String driver = "com.pointbase.jdbc.jdbcUniversalDriver";
    private static final String protocol = "jdbc:pointbase:server://localhost/sun-appserv-samples,new";
    private static final String user = "pbPublic";
    private static final String password = "pbPublic";
    public static void main(String[] args) {
    Connection conn=null;
    Statement s=null;
    try {
    Class.forName(driver);
    System.out.println("Loaded driver: "+driver);
    conn = DriverManager.getConnection(protocol,user,password);
    System.out.println("Connected to: "+protocol);
    conn.setAutoCommit(false);
    s = conn.createStatement();
    System.out.println("Dropping exisiting BMP tables...");
    try {s.execute("drop table ApplicantSkill");} catch (SQLException ex){}
    try {s.execute("drop table Applicant");} catch (SQLException ex){}
    try {s.execute("drop table JobSkill");} catch (SQLException ex){}
    try {s.execute("drop table Job");} catch (SQLException ex){}
    try {s.execute("drop table Matched");} catch (SQLException ex){}
    try {s.execute("drop table Customer");} catch (SQLException ex){}
    try {s.execute("drop table Location");} catch (SQLException ex){}
    try {s.execute("drop table Skill");} catch (SQLException ex){}
    System.out.println("Dropped tables");
    System.out.println("Creating new tables...");
    s.execute("create table Skill(name varchar(16) CONSTRAINT pk_skill PRIMARY KEY (name), description varchar(64))");
    s.execute("create table Location(name varchar(16)CONSTRAINT pk_location PRIMARY KEY (name), description varchar(64))");
    s.execute("create table Applicant(login varchar(16) CONSTRAINT pk_applicant PRIMARY KEY (login), name varchar(64), email varchar(64), summary varchar(512), location varchar(16), CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name))");
    s.execute("create table ApplicantSkill(applicant varchar(16), skill varchar(16), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
    s.execute("create table Customer(login varchar(16) CONSTRAINT pk_customer PRIMARY KEY (login), name varchar(64), email varchar(64), address1 varchar(64), address2 varchar(64))");
    s.execute("create table Job(ref varchar(16), customer varchar(16), description varchar(512), location varchar(16), CONSTRAINT pk_job PRIMARY KEY (ref,customer), CONSTRAINT fk_customer FOREIGN KEY (customer) REFERENCES Customer(login), CONSTRAINT fk_location FOREIGN KEY (location) REFERENCES Location(name))");
    s.execute("create table JobSkill(job varchar(16), customer varchar(16), skill varchar(16), CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,customer), CONSTRAINT fk_skill FOREIGN KEY (skill) REFERENCES Skill(name))");
    s.execute("create table Matched(applicant varchar(16), job varchar(16), customer varchar(16), exact boolean, CONSTRAINT fk_job FOREIGN KEY (job,customer) REFERENCES Job(ref,customer), CONSTRAINT fk_applicant FOREIGN KEY (applicant) REFERENCES Applicant(login))");
    System.out.println("Created tables");
    System.out.println("Inserting table records...");
    s.execute("insert into Location values ('London','London UK')");
    s.execute("insert into Location values ('Washington','Washington DC, USA')");
    s.execute("insert into Location values ('Verona','Verona, Renaissance Italy')");
    s.execute("insert into Location values ('Wessex','Wessex, Kingdom of England')");
    s.execute("insert into Skill values ('Tree Surgeon','Tree Surgeon')");
    s.execute("insert into Skill values ('Cigar Maker','Cigar Maker')");
    s.execute("insert into Skill values ('Bodyguard','Bodyguard')");
    s.execute("insert into Skill values ('Cook','Cook')");
    s.execute("insert into Skill values ('Lawyer','Lawyer')");
    s.execute("insert into Skill values ('Critic','Critic')");
    s.execute("insert into Applicant values ('juliet','Juliet Capulet', 'juliet@localhost' , 'Dutiful daughter', 'London' )");
    s.execute("insert into Applicant values ('romeo','Romeo Montague', 'romeo@localhost' , 'Dutiful son', 'Wessex' )");
    s.execute("insert into Applicant values ('julius','Julius Caesar', 'julias@localhost' , 'Roman Emperor', 'Washington' )");
    s.execute("insert into Applicant values ('brutus','Marcus Brutus', 'marcus@localhost' , 'Roman Senator', 'Washington' )");
    s.execute("insert into Applicant values ('proteus','Proteus', 'proteus@localhost' , 'Gentleman', 'Verona' )");
    s.execute("insert into Applicant values ('valentine','Valentine', 'valentine@localhost' , 'Gentleman', 'Verona' )");
    s.execute("insert into ApplicantSkill values ('juliet', 'Cook')");
    s.execute("insert into ApplicantSkill values ('romeo', 'Cook')");
    s.execute("insert into ApplicantSkill values ('romeo', 'Bodyguard')");
    s.execute("insert into ApplicantSkill values ('julius', 'Tree Surgeon' )");
    s.execute("insert into ApplicantSkill values ('julius', 'Tree Surgeon' )");
    s.execute("insert into ApplicantSkill values ('brutus', 'Critic' )");
    s.execute("insert into ApplicantSkill values ('brutus', 'Lawyer' )");
    s.execute("insert into ApplicantSkill values ('proteus', 'Lawyer' )");
    s.execute("insert into ApplicantSkill values ('proteus', 'Critic' )");
    s.execute("insert into ApplicantSkill values ('valentine', 'Critic' )");
    s.execute("insert into ApplicantSkill values ('valentine', 'Cigar Maker' )");
    s.execute("insert into Customer values ('george','George Washington', 'george@localhost', 'White House', 'Washington')");
    s.execute("insert into Customer values ('winston','Winston S Churchill', 'winston@localhost', '10 Downing Street', 'London')");
    s.execute("insert into Customer values ('abraham','Abraham Lincoln', 'abe@localhost', 'Springfield', 'Illinois')");
    s.execute("insert into Customer values ('alfred','Alfred the Great', 'alf@localhost', 'Wessex', 'England')");
    s.execute("insert into Job values ('Tree pruner', 'george', 'Must be honest', 'Washington')");
    s.execute("insert into Job values ('Cigar trimmer', 'winston', 'Must like to talk and smoke', 'London')");
    s.execute("insert into Job values ('Theatre goer', 'abraham', 'Should be intelligent and articulate', 'Washington')");
    s.execute("insert into Job values ('Cake maker', 'alfred', 'Should have a good sense of smell', 'Wessex')");
    s.execute("insert into JobSkill values ('Tree pruner','george','Tree Surgeon')");
    s.execute("insert into JobSkill values ('Cigar trimmer', 'winston', 'Cigar Maker')");
    s.execute("insert into JobSkill values ('Cigar trimmer', 'winston', 'Critic')");
    s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Bodyguard')");
    s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Lawyer')");
    s.execute("insert into JobSkill values ('Theatre goer', 'abraham', 'Critic')");
    s.execute("insert into JobSkill values ('Cake maker', 'alfred', 'Cook')");
    System.out.println("Inserted records");
    conn.commit();
    System.out.println("Committed transactions");
    catch (SQLException ex) {
    System.out.println("SQL Exception thrown: "+ex);
    ex.printStackTrace();
    try { conn.rollback(); } catch (Exception e) {}
    catch (ClassNotFoundException ex) {
    System.out.println(ex);
    ex.printStackTrace();
    finally {
    try { s.close(); } catch (Exception ex) {}
    try { conn.close(); } catch (Exception ex) {}
    }

    JavaEE Tutorial has a chapter on security:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    Usually a no-arg InitialContext() is used, rather than InitialContext(props). For more info, see
    Glassfish EJB FAQ:
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
    -cheng

  • Making PAN Number Field MANDATORY while creating a Vendor

    Dear Experts,
    I want to create a Vendor Master with PAN Number Field Mandatory.
    Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
    Regards - Manjunath

    Hi Trivedi,
    I tried the user exit. But it is pulling the values.
    Please find the coding here
    IF j_1imocust-j_1ipanno = ' '.
      MESSAGE e007(zmsg).
    ENDIF.
    We are not abe get the PAN vanue in  j_1ipanno  field.
    Looking for your help .
    Pleas guide.

  • Workflow Does not Start If Created by Another Workflow

    Hi,
    Hope someone can help me here.
    I am using SharePoint 2013 Server and have created two workflows running on two separate lists (workflow 1 runs on list 1 and workflow 2 runs on list 2).
    Workflow 1 creates an item in List 2. The workflow on list 2 does not kick off when the item is created.
    I have tried both SharePoint Designer 2013 workflow and Visual Studio 2013 no code solutions (I have elevated privileges for the workflow app).
    The link below is what I am experiencing, although there doesn't seem to be a solution.
    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/cb7c2537-ec54-4128-abea-aa5a11cddb54/sharepoint-2013-workflow-does-not-start-when-item-is-created-by-another-workflow?forum=sharepointcustomization
    I am in the process of installing the latest CUs too see if this has been rectified.
    Thanks,
    Nigel

    Hi Nigel,
    Yes, this is the default SharePoint behavior that SharePoint 2013 workflow does not start when item is created by another workflow.
    For a workaround, you can create a event receiver on the List 2 to start the workflow 2 when an item is created.
    Reference:https://social.technet.microsoft.com/Forums/sharepoint/en-US/19f71e38-7c04-430e-aa6b-764cbbf18c1c/2013-workflow-does-not-start-on-item-created-by-a-different-worklow?forum=sharepointcustomization
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/6ee7d704-34c0-4bda-8f2d-8a9ba17c2367/sharepoint-2013-workflow-using-create-item-to-add-an-item-to-another-list-and-have-the-workflow?forum=sharepointcustomization
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to create a customized mappings???

    Hi ----,
    I am really new to JDO so I am still learning how to implement Kodo. I want
    to find out how to create customized mappings, like an example will be
    great. I have two tables with a one to one mapping relationship that I need
    to create an outer join between these two tables. How can I accomplish it at
    Kodo?? Here are an example of the two tables:
    First table: Customer
    C_ID (PK)
    C_FNAME
    C_LNAME
    C_PNUMBER
    Second table: Customer_A_Info
    CAI_ID (PK) (FK to Customer's C_ID)
    CAI_INFO_1
    CAI_INFO_2
    Thanks you very much...
    Vivian

    When is 3.0 going to release???
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    We have an example of a custom class mapping in the sampels/customSQL
    directory. Unfortunately, that and the Javadoc are the only available
    docs on custom mapping right now. We're working on improving custom
    mapping in our upcoming 3.0 release. And actually, being able to specify
    that fields in another table should be outer joined should sneak in as a
    standard feature of 3.0.

  • Is newfs needed when creating mirror from existing ufs partition

    I have the root drive of my sparc solaris 10 server mirrored with SVM. In the same machine I have another single partition disk that was mounted /dev/dsk/ct0d0s6 to /home1, and I wanted to mirror it to another disk. This happened without problem.
    While the resync was happening I realized that I did not do a newfs on the target mirror disk (/dev/dsk/c1t2d0s6 partition before doing the metattach. I did not have a problem with reboots or anything after the resync was done. Will the mirror create a UFS partition on the target disk? If the source /home1 disk failed, would I be able to mount the target disk as a regular /dev/dsk partition? Or if I wanted to metaoffline the target half of the /home1 mirror to do a backup, would it recognize it as be a UFS partition?
    I'm thinking I should metadetach the mirror, do a newfs on the target S6 partition and then metattach again.
    Any ideas would be appreciated.

    Your getting a little confused about the difference between a partition/slice and a filesystem.
    Partitioning is the act of breaking the disk up into "slices". You have been referring to c0t0d0s6 which is a slice.
    Partitioning is done with the format program.
    The filesystem is the data that goes onto the slice. This is what newfs does. It creates a filesystem on a slice. So all its doing is writing a particular pattern of data onto a chunk of disk.
    So mirroring filesystems doesnt require a newfs. Since the correct pattern of data already exists. You just need to copy it onto the new slice.
    But the mirroring doesnt do partitioning ie create the slice. You have to do that with format. But it does copy the filesystem.
    So assuming you created a new slice of the correct size.
    You should be able to mirror the existing slice to the new slice. Then mount the virtual device representing the mirror.
    You do have to always use the mirror through the virtual /dev/md device, not the raw slices.
    The raw slices making up the mirror are perfectly ordinary UFS partitions. So yes they will be recognised.
    But if you modify one directly instead of through the virtual device, you changes won't be mirrored to the other.
    But yes, if a disk fails. You can use the other slice directly if necessary. But normally you would just keep using the metadevice.
    And if you metaoffline a disk. You could then back it up.
    But backups are normally more conveniently done with fssnap. That way you don't have to split mirrors and join them again.

  • Metainit error - overlaps with device in metadevice state database

    I have successfully mirrored 3 of 4 partitions on a new install but am having trouble with the last one. It is the swap partition. There are the usual steps I follow:
    SWAP (slice 1):
    1. metainit -f d11 1 1 c0t0d0s1
    2. metainit d12 1 1 c0t8d0s1
    3. metainit d10 -m d11
    4. edit the /etc/vfstab
    5. reboot
    6. metattach d10 d12
    After step #1, I get the following error:
    metainit: tpssol2: c0t0d0s1: overlaps with device in metadevice state database
    I check metastat and all the config files and don't see anything wrong.

    What platform is this? SPARC or X86 and OS version. This normally happens after a rebuild and you get 2 disk devices with the same ID.
    #iostat -Ei
    This will display your disks and IDs. If the match, you will need to do the following (this should applies for physical and virtual servers, but I have only tested it on VMware) in this example c1t0d0 and c1t1d0(secondary) are the disks with matching IDs.
    #iostat -Ei
    this shows 2 disks with the same ID
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected configured unknown
    #cfgadm -c unconfigure c1::dsk/c1t1d0
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected unconfigured unknown
    #iostat -Ei
    this shows now only one disk
    from within VMWare manager remove the secondary disk and add it back again!
    #cfgadm -c configure c1::dsk/c1t1d0
    #cfgadm -al|grep c1t
    c1::dsk/c1t0d0 disk connected configured unknown
    c1::dsk/c1t1d0 disk connected configured unknown
    #iostat -Ei
    this now showed a new disk with a unique disk ID.
    #fdisk /dev/rdsk/c1t1d0p0
    Y to the prompt to create Solaris 100% prompt
    #prtvtoc /dev/rdsk/c1t0d0s2|fmthard -s - /dev/rdsk/c1t1d0s2
    #metadb -af -c4 c1t0d0s7 c1t1d0s7
    Success! You can now setup your mirroring.
    Edited by: readlee on Sep 17, 2008 7:06 AM

  • DFS V2 setting ABE with Powershell

    Hello everybody
    we currently have a stand-alone DFS running on W2K8R2 without replication. Inside our central namespace the access based enumeration is enabled. In former times we create a dfs-share with dfscmd.exe for and used dfsutil.exe for setting the abe. This
    works very fine.
    Now I tried this with powershell:
    new-dfsnfolder creates the share as expected.
    grant-dfsnaccess seems to works without an error.
    But the share itself still has "use inheritance permissions from local filesystem" instead of "set explicit permissions on the dfs Folder" and is viewable for everybody. Switching inside the gui to "explicit permission" shows
    the permissions given with grant-dfsnaccess.
    Has anybody an idea how to switch this Setting?
    Best regards from Germany   Guido

    Hi Guido,
    It seems that you have encounter the issue described in this article:
    The Windows PowerShell cmdlet Grant-DfsnAccess does not change inheritance on DFS links
    This is because although the Grant-DfsnAccess cmdlet successfully configures the view permissions for individual groups or users, the cmdlet does not change the inheritance mode from use inherited to set explicit.
    To work around this problem, use one of the following method:
    dfsutil property sd grant \\Contoso.com\Software\Projects Contoso\SarahJones:RX protect
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • File shares not be re-created when restart the Server (Windows 2012 Std R2)

    Hi Team,
       We are facing below issue whenever restarting my server (windows 2012 R2 STD)
    1. File shares are invisible.
    2. Every time i need to restart server service to make file shares availability
    Please look in to the above issue and revert if any suggestion.
    Regards
    K Sreenivasan

    Hi,
    According to your description, my understanding is that you create a file share under File and Storage Services but the file is invisible. If you restart the server make the file share, then you can see the file share.
    Can you see the file share when you directly create in Windows Explorer? Please check if you have enabled ABE on the file share.
    Access-based Enumeration
    http://technet.microsoft.com/en-us/library/dd772681(v=ws.10).aspx
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • Error in ACTIVATE_CURRENT_USAGES phase of portal upgrade (NW04 to NW04s)

    hello gurus, i am upgrading Netweaver 04 to netweaver 04s (Enterprise Portal) oracle upgrade from 9.2.0.7 to 10.2.0.1 successfully but i am getting error in 78 phase out 100 in java upgrade program management ACTIVATE_CURRENT_USAGES i am unable to tr

  • Problems with the function DBMS_XMLSCHEMA.copyEvolve

    I´m having problems with the evolution of xml-schema. First the function DBMS_XMLSCHEMA.copyEvolve works correctly, but since one week I get only errors. Strangely is the fact that I use the same files (xml-schema, xslt and xml instances) and the sam

  • Export command missing in imovie 11 upgrade?

    In the latest upgrade for iMovie 11' there is no "export to QuickTime" or other way to set your preferred export settings? can anyone explain how to do this now?

  • Remove images from JPanel

    Hi, I have a JPanel called imagePanel and a JTree and every time a node is selected in the tree, a set of images are gonna be displayed on the imagePanel with the loop below. But the next time a node is selected the images that were added via the loo

  • Godaddy or 1and1

    Which one should I go with? I am going to be creating within iWeb and transferring through FTP. GoDaddy or 1and1? Thanks.