[Q?]I am puzzled by a small test on constructor

puzzled by a small test on constructor
the main is the same programme, can anybody tell me why i must pre-decalre the x1 outside the public lee1(),
otherwise the class lee2 cannot compile?
I am still in the basic level of OOM. I guess this is because of encapsulation, but not very afirm or clear.
Wrong Coding
public class lee1
     public lee1()
          int x1;
          x1 = 4;
Right Coding
public class lee1
     int x1;
     public lee1()
          x1 = 4;
Same Main
====================
public class lee2
     public static void main (String args[])
          //declare an object to call components in lee1.java
          lee1 abc = new lee1();
          // retrive variable using inheritance method
          System.out.println(abc.x1);
Why prohibit me declare x1 with public visibility as this
public class lee1
     public lee1()
          public     int x1;
          x1 = 4;
}

In main(), you call the lee1() constructor:
public class lee1
     public lee1()
          int x1;
          x1 = 4;
}with this line:
lee1 abc = new lee1();
After the constructor finishes executing x1 no longer exists. x1 is a local variable, and when the constructor ends it goes out of existence. Then, you do this:
System.out.println(abc.x1);
That line says, grab abc.x1 and display it. However, when you write:
abc.x1
you are saying get the member variable named x1 from the object abc. However, you didn't declare any member variables in your class, so abc doesn't have any member variables and certainly not one named x1.
In this class:
public class lee1
     int x1;
     public lee1()
          x1 = 4;
}you declare the member variable x1. Then, in this line:
lee1 abc = new lee1();
you are telling java to create an object called abc and to use the constructor lee1() to create the object. In turn, the constructor lee1() assigns 4 to the member variable x1. Therefore, when you do this:
System.out.println(abc.x1);
abc.x1 instructs java to grab the member variable x1 from the object abc and display it.

Similar Messages

  • Some websites have very  small test and others too large.

    When I'm browsing at different websites. Some have the text really small and others have it too big. How can I make every website use the same (my choice) font and size. I've changed the font and size of the fonts in "Preferences-Appearance" and they only change a couple sites. All the others are too big or too small.

    OlsonBW,
    Setting how pages are displayed explains what you can and cannot do regarding the display of text in web pages...You can specify how pages appear when they open in Safari, including which fonts are used, whether or not to display images, and whether to use your own Cascading Style Sheet (CSS).
    Many webpages specify their own fonts. Your font settings affect only pages that do not specify fonts. Webpages may specify style sheets that override your style sheet...;~)

  • QRFC - What to do for a small test report?

    Hi there,
    I wanna to understand how the qRFC works in detail and so I wanna to simulate such a interface via qRFC in an IDES-system.
    Can someone tell me what steps I have to do for creating such an interface.
    In the following I tell you the steps that have to be done from my point of view:
    1. Creating a normal RFC-destination (in my case: forwarding to the same IDES-system for testing purposes) via SM59
    2. Creating a new queue (but how exaxtly?)
    3. Creating a RFC-enabled function module for testing
    4. Writing a dummy-report that calls the created function module using the destination
    5. Take a look at the queue (but where exactly?).
    Thank you for any help...!
    Kind regards
    Markus

    Turn off "Automatic reboot on system failure", and check BSOD code if it comes.
    Do stability testing with >>Memtest86<< & Orthos
    Details: https://forum-en.msi.com/index.php?topic=103598.msg760534#msg760534

  • Could someone please run a small test?

    Hello out there,
    I am getting this compiler error where everything I have read says that what I do should be ok: My interest is to create a 'package level' variable - accessible from any class in the package.
    Could someone please perform the following 3 steps and report the results here?
    1) Paste the following code into a file Dummy.as located in a suitable directory - adapt the name components accordingly.
    package components {
        import flash.display.Sprite;
        var thingies:Array = new Array();          // this is the object of interest
        public class Dummy extends Sprite {}
    Your project should still compile - Dummy is not really used.
    2) In another component (which of course needs to be active in your project) add a variable like
         var dummy:Dummy;
    3) Does it still compile? That's the big question.
    When I do this I get the error message
         A file found in a source-path can not have more than one externally visible definition
              components:thingies;components:Dummy
    Bumm - show stopper.
    BTW the product is Flex Builder 3.0 build (3.0.2.214193)
    Thanks and best regards
    Helmut

    This page indicates the variable should be in the class (and that works for your test code):
    http://www.judahfrangipane.com/blog/?p=60
    If this post answered your question or helped, please mark it as such.

  • [SOLVED] Puzzled: Web site visible on network but not outside network

    Edit: Ok, nevermind . . . somehow the problem has resolved itself. Perhaps my ISP was having a bad hair day or something.
    I'm puzzled by this small problem I'm having. It is NOT a critical problem or anything, just something I'd like to solve.
    I've installed the LAMP packages, set up a small MySQL database and made a very simple web interface for it. The web pages open fine on my main computer and all the other computers on our network, but it is not visible outside our network.
    I am behind a router and I have forwarded port 80 to my local IP. I've set httpd: ALL, http: ALL and (finally) ALL: ALL: ACCEPT in /etc/hosts.
    I got to thinking maybe my ISP (RoadRunner) is blocking port 80 requests to my home, so I changed the port to 9292 and forwarded that to my local IP. Still not visible from the outside.
    I've tinkered with the /etc/httpd/conf/httpd.conf file (pasted in below) but still there is no outside connectivity, changing the listen settings and the server name settings. I can still access it fine from this side of the router. I've restarted the httpd service many times.
    I've done all I can think to do to solve the issue. it is likely I am overlooking something very basic. Any help or ideas are appreciated. Below is my httpd.conf.
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "/var/log/httpd/foo_log"
    # with ServerRoot set to "/etc/httpd" will be interpreted by the
    # server as "/etc/httpd//var/log/httpd/foo_log".
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk. If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    ServerRoot "/etc/httpd"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    Listen 192.168.1.100:9292
    #Listen *:9292
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule php5_module modules/libphp5.so
    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
    AddHandler php5-script php
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User http
    Group http
    </IfModule>
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. [email protected]
    ServerAdmin [email protected]
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    ServerName 192.168.1.100:9292
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/srv/http"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/srv/http">
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    Options Indexes FollowSymLinks
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    AllowOverride None
    # Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "/var/log/httpd/error_log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    <IfModule log_config_module>
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    CustomLog "/var/log/httpd/access_log" common
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #CustomLog "/var/log/httpd/access_log" combined
    </IfModule>
    <IfModule alias_module>
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    # "/srv/http/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value. If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    <IfModule mime_module>
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    TypesConfig conf/mime.types
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #AddType application/x-gzip .tgz
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #AddHandler cgi-script .cgi
    # For type maps (negotiated resources):
    #AddHandler type-map var
    # Filters allow you to process content before it is sent to the client.
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall is used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #EnableMMAP off
    #EnableSendfile off
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    Include conf/extra/php5_module.conf
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    Last edited by Rumor (2009-01-29 15:04:27)

    You could try a factory reset of the home hub, as sometimes the config can get corrupted.
    There is some general help on this page.
    Help with setting up routers, wireless repeaters, TVs and printers, CCTV cameras, VOIP Phones
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Simple multiversion test crashes (db-5.3.15)

    Hi!
    I wrote a small test for a multiversion database (using the C++ API). The test starts a transaction with DB_TXN_SNAPSHOT and reads/writes a key-value pair foo=bar. It then sleeps 10 seconds to allow starting a second instance of the program. The first instance succeeds, with this output:
    $ mvcctest
    get key foo
    put key foo
    successfully wrote key foo=bar
    waiting 10 seconds...
    $
    The second instance which I started in gdb to get the stacktrace produces this output/stacktrace:
    (gdb) r
    Starting program: /home/stefan/src/sandbox/bdb-trans/mvcctest
    [Thread debugging using libthread_db enabled]
    get key foo
    put key foo
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
    at ../src/mp/mp_fput.c:125
    125 infop = &dbmp->reginfo[bhp->region];
    (gdb) bt
    #0 0x00007ffff7b5bd01 in __memp_fput (dbmfp=0x605230, ip=0x0, pgaddr=0x0, priority=DB_PRIORITY_UNCHANGED)
    at ../src/mp/mp_fput.c:125
    #1 0x00007ffff79f3cce in __bam_get_root (dbc=0x605a10, root_pgno=1, slevel=1, flags=12802, stack=0x7fffffffd75c)
    at ../src/btree/bt_search.c:235
    #2 0x00007ffff79f3ed6 in __bam_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=12802, slevel=1, recnop=0x0,
    exactp=0x7fffffffd934) at ../src/btree/bt_search.c:309
    #3 0x00007ffff79dce1c in __bamc_search (dbc=0x605a10, root_pgno=1, key=0x7fffffffdbf0, flags=14, exactp=0x7fffffffd934)
    at ../src/btree/bt_cursor.c:2804
    #4 0x00007ffff79dad0b in __bamc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14, pgnop=0x7fffffffd9b0)
    at ../src/btree/bt_cursor.c:2143
    #5 0x00007ffff7adf03f in __dbc_iput (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
    at ../src/db/db_cam.c:2136
    #6 0x00007ffff7adee8d in __dbc_put (dbc=0x605a10, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=14)
    at ../src/db/db_cam.c:2049
    #7 0x00007ffff7ad78dd in __db_put (dbp=0x604af0, ip=0x0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
    at ../src/db/db_am.c:583
    #8 0x00007ffff7af20c8 in __db_put_pp (dbp=0x604af0, txn=0x605390, key=0x7fffffffdbf0, data=0x7fffffffdc20, flags=0)
    at ../src/db/db_iface.c:1661
    #9 0x00007ffff79bc576 in Db::put (this=0x604a50, txnid=0x605fa0, key=0x7fffffffdbf0, value=0x7fffffffdc20, flags=0)
    at ../lang/cxx/cxx_db.cpp:367
    #10 0x0000000000400caf in main () at mvcctest.cc:60
    I am unsure if this is my fault (because the testcase does something it should not do), or if this is a Berkeley DB bug.
    #include <sys/stat.h>
    #include <sys/types.h>
    #include <assert.h>
    #include <db_cxx.h>
    #include <string.h>
    #include <stdlib.h>
    #include <string>
    using std::string;
    int
    main()
    mkdir ("bdb", 0770);
    DbEnv *db_env = new DbEnv (DB_CXX_NO_EXCEPTIONS);
    int ret = db_env->open ("bdb",
    DB_CREATE | /* on-demand create */
    DB_INIT_MPOOL | /* shared memory buffer subsystem */
    DB_INIT_TXN | /* transactions */
    DB_INIT_LOG | /* logging */
    DB_INIT_LOCK | /* locking */
    DB_MULTIVERSION,
    0);
    assert (ret == 0);
    db_env->set_flags (DB_MULTIVERSION, 1);
    Db *db = new Db (db_env, 0);
    db->set_flags (DB_DUP); // allow duplicate keys
    // Open the database
    u_int32_t oFlags = DB_CREATE | DB_AUTO_COMMIT | DB_MULTIVERSION; // Open flags;
    db->open (NULL, // Transaction pointer
    "db", // Database name
    NULL, // Optional logical database name
    DB_BTREE, // Database access method
    oFlags, // Open flags
    0); // File mode (using defaults)
    DbTxn* transaction;
    ret = db_env->txn_begin (NULL, &transaction, DB_TXN_SNAPSHOT);
    assert (ret == 0);
    char foo[4] = "foo";
    char bar[4] = "bar";
    Dbt key (foo, 3);
    Dbt new_data (bar, 3);
    Dbt data;
    printf ("get key foo\n");
    ret = db->get (transaction, &key, &data, 0);
    if (ret == 0)
    printf ("successfully read key foo\n");
    printf ("put key foo\n");
    ret = db->put (transaction, &key, &new_data, 0);
    if (ret == 0)
    printf ("successfully wrote key foo=bar\n");
    printf ("waiting 10 seconds...\n");
    sleep (10);
    ret = transaction->commit (0);
    assert (ret == 0);
    ret = db->close (0);
    delete db;
    db = NULL;
    assert (ret == 0);
    ret = db_env->close (0);
    delete db_env;
    db_env = NULL;
    assert (ret == 0);
    }

    Yes, we have the same error:
    com.sleepycat.dbxml.XmlException: std::exception thrown from C++ API: bad allocation: Unknown error, errcode = INTERNAL_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
    com.sleepycat.dbxml.XmlException, errcode = NO_MEMORY_ERROR
         at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
         at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:93)
    The version we use is 2.2.13, can anyone give suggestions to resolve it?
    Regards,
    Jane

  • Advice on moving from workgroup to domain for very small network

    Hello all,
    I work for a small company and inherited the part time IT/Operations position and I want to understand the impact of changing from workgroup to domain.  I understand the process and I have set up small test domains before but I want to be certain I
    understand this so I figured I better ask the pros.
    The setup:
    1 Desktop class system, recent i5 quad, 16GB RAM, 1TB HD with Server 2008 R2.  Current roles are File Sharing and WSUS. 
    3 Desktops running Win 7 Home
    1 Desktop with win 7 Pro
    1 Laptop with Vista Home
    1 Laptop with Win 7
    1 Laptop with Win 8 Pro
    I have configured all devices to uses the WSUS for updates as they wanted these managed and this seems to be the easiest way.
    Right now all users have an account on the server that is used to map to their shares.  I know that the home versions cannot join to a domain and with this small of a network I don't want to join any device to a domain as we have only one server and
    it would not be reasonable to add more servers.
    The thing is they want to setup local sharing of calendars and contacts, etc.  I have 2010 exchange server and it is required to be on a domain.
    The Questions:
    Can the domain still "act" as a workgroup and users still connect to the shares and exchange without being joined to the domain?  What is the impact on performance for this server?  Will the home version users still be able to connect to
    the shares (I assume yes) and to the exchange through outlook?  Is there a better way to achieve the workgroup features of exchange without using exchange and not subscribing to Office 365?  We do not have an internet domain name for this business.
    Does this matter for setting up a domain?
    Anything you can think of that I should consider please feel free.
    Thank you all for your advice.

    Hi Paul,
    You are very welcome, I am very glad that my suggestions helped.
    For your first question, in a domain, the Domain Controller clearly has much more tasks to perform than a work group server, while it also has more management options for an administrator to better control his/her client machines.
    In addition, domain acts as a central management solution will reduce the work of the administrator. For an example, under workgroup mode, if we have multiple servers which have shared resources, we need to create the same user
    accounts on each of them, while in a domain, we only need to create accounts once on the DC, then all the accounts can be recognized across the whole domain, no matter how many servers and client machines are within it.
    For the second question, yes, single lable domain name is not recommended, but it is allowed. Single lable domains are supported in
    Exchange Server 2007 Service Pack 1 (SP1) and Exchange 2010, while single label DNS name resolution is also possible.
    However, there are other Microsoft and third-party products which don’t support
    single lable domains. My suggestion is don’t use it while it will cause you trouble.
    More information for you:
    Single-Labeled Domain Names and Exchange 2007 SP1
    http://technet.microsoft.com/en-us/library/cc788134(v=EXCHG.80).aspx
    Microsoft Exchange compatibility with Single Label Domains, Disjointed Namespaces, and Discontiguous Namespaces
    http://support.microsoft.com/kb/2269838
    Help and support for namespaces in Microsoft products including Single Label Domains (SLDs), Disjoint Namespaces, and Discontiguous Namespaces.
    http://support.microsoft.com/gp/gp_namespace_master#tab3
    Providing Single-Label DNS Name Resolution
    http://technet.microsoft.com/en-us/library/cc816610(v=WS.10).aspx
    Regards,
    Amy

  • IPv6 Test Case for LinkSys Routers - Based on Ubuntu + Radvd + DHCPv6 - E1200v2 isn't ready for IPv6

    Hello!
    Here on this guide, you'll learn how to deploy your own Linux IPv6 Router, that can be used in ANY network, to give IPv6 connectivity to ANY ethernet device, including Windows, Mac, Ubuntu Server and Desktop, RedHat and, of course, LinkSys routers like E1200v2 and E2500 for its WAN interfaces.
    I wrote this guide because I found a BUG on E1200v2, which doesn't work with IPv6 yet, already lost some money to figure this out.
    That's it, when you see a E1200v2 box at the store, you can read: "* IPv6 Enabled", but that is not entirely true, since it does not work as expected.
    Here on this post, it is a complete procedure to reproduce the problem.
    NOTE: The model E2500 v1 does not suffer from this problem!
    NOTE: This guide is very usefull if you have a LinkSys E2500 router and want to connect it directly into a Linux Router!
    Who am I?
    A.: I'm Thiago, I work in Brazil, for a company called iG (ig.com.br), I'm working here as a Network Engineer / SysAdmin and I have +10 years of experience with IPv4 networks + 5 years with IPv6.
    * Brief
    1- Install a Ubuntu 12.04.3, to act as your router, on a PC computer with two ethernet cards (eth0 will be Ubuntu's default route, eth1 will be used to connect LinkSys E1200v2);
    2- Prepare your Ubuntu Router (very important step, read it carefully)
    3- Connect E1200v2 directly into Ubuntu's eth1 ethernet card;
    4- Connect a Windows PC at E1200v2 LAN port 1 (used to configure your E1200 with Cisco Connect everytime a reset is desired);
    5- Reset (restore it from factory defaults) your E1200v2 router;
    6- Install Cisco Connect in your Windows PC (LAN port 1);
    7- Configure your E1200v2 as usual;
    8- Browse the Internet (still IPv4);
    9- Open Windows Command Prompt and type: ipconfig, ping, etc;
    10- Open Google Chrome or Firefox and go to your E1200v2 Web Admin Interface at http://192.168.1.1/
    11- Install a Ubuntu 12.04.3 Server connected at E1200v2 LAN port 2 to test IPv6 connectivity in deep, or;
    12- Boot a Ubuntu Desktop 13.04 Live CD connected at E1200v2 LAN port 3 to test IPv6 connectivity in deep;
    IMPORTANT NOTE:
    * This tests will require IPv4 connectivity to the Internet, since the IPv6 blocks used on this example, are blocks used only for documentation (or small tests) porpuses, which means that those IPv6 tests we're about to do, will not reach the Internet (in IPv6), neighter be routed out from your E1200v2. But it is enough to prove that E1200v2 drops its clients IPv6 connectivity. Feel free to replace those IPv6 address with your current / valid IPv6 blocks (if you have a IPv6 /48 block from your ISP, you know what I'm talking about).
    * Network Topology (Ubuntu Linux Router)
    IPv6:
    eth0
    2001:db8:0:1::/64 = uplink allocation
    2001:db8:0:1::1 = upstream router IP (Ubuntu's gateway IPv6)
    2001:db8:0:1::2 = customer configured IP (your WAN uplink interface to provider - Ubuntu's eth0 IPv6 address)
    eth1
    2001:db8:1::/48 = statically routed subnet pointing at 2001:db8:0:1::2 that come from you IPv6-ISP
    2001:db8:1::1 = your first IPv6 within your own infrastructure (Ubuntu's eth1 - E1200v2 directly connected here)
    eth1:0
    2001:db8:1:1::/64 = your first IPv6 /64 with Router Advertisement plus DHCPv6 running on Linux (radvd) (Ubuntu's eth1:0 - E1200v2 gets its WAN IPv6 address from this subnet)
    2001:db8:1:1::1 = IP of your first /64 subnet, Radvd + DHCPv6 running here, Ubuntu as IPv6 router
    IPv4:
    eth0
    192.168.10.0/24 = uplink allocation
    192.168.10.1 = upstream router IP (Ubuntu's gateway IPv4)
    192.168.10.2 = customer configured IP (your WAN uplink interface to provider - Ubuntu's eth0 IPv4 address)
    eth1
    192.168.20.1 = your E1200 will gets its WAN IPv4 address from this subnet - most common scenario for IPv4 wifi routers running inside enterprise environments today
    * Complete procedure
    1- Install a Ubuntu 12.04.3, to act as your router, on a PC computer with two ethernet cards
    Install the following packages in your Ubuntu Router:
    sudo apt-get install radvd isc-dhcp-server
    2- Prepare your Ubuntu Router (very important step, read it carefully)
    2.1- Ubuntu's file /etc/network/interfaces contents:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth0
    # IPv6
    iface eth0 inet6 static
       address 2001:db8:0:1::2
       netmask 64
       gateway 2001:db8:0:1::1
       # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 2001:4860:4860::8888
       dns-search linksys.com
    # IPv4
    iface eth0 inet static
       address 192.168.10.2
       netmask 24
       gateway 192.168.10.1
       # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 8.8.8.8 8.8.4.4
       dns-search linksys.com
    # The secondary network interface, E1200 LinkSys wifi-router is connected here (WAN port)
    auto eth1
    # IPv6
    iface eth1 inet6 static
       address 2001:db8:1::1
       netmask 48
    auto eth1:0
    iface eth1:0 inet6 manual
       up ip -6 address add 2001:db8:1:1::1/64 dev $IFACE
       down ip -6 address del 2001:db8:1:1::1/64 dev $IFACE
       # IPv6 /56 block routed to LinkSys E1200v2, it is delegated to it through Prefix Delegation using DHCPv6
       # Uncomment it later when your E1200v2 gets its own IPv6 Internet IP Address, keep reading this guide
       #up ip -6 route add 2001:db8:1:f00::/56 via 2001:db8:1:1::2000
    # IPv4
    iface eth1 inet static
       address 192.168.20.1
       netmask 24
    2.2- Configure Ubuntu /etc/sysctl.conf file
    Uncomment the following two lines on it:
    net.ipv4.ip_forward=1
    net.ipv6.conf.all.forwarding=1
    After writting, run "sudo sysctl -p" to apply the changes.
    2.3- Configuring Linux Router Advertisement daemon (radvd)
    Your Linux Router Advertisement daemon running on Ubuntu, must have the following content:
    # Ubuntu eth1
    interface eth1
        # Enable RA
        AdvSendAdvert on;
        # Enable clients getting their IPs from DHCPv6
        AdvManagedFlag on;
        AdvOtherConfigFlag on;
        # Enable RA to the following subnet
        prefix 2001:db8:1:1::/64
           AdvOnLink on;
           # When not allowing clients to auto-generate their IPv6 address (SLAAC), DHCPv6 will be used instead
           AdvAutonomous off;
    2.4- Configuring DHCPv6
    Your isc-dhcp-server6 configuration file (/etc/dhcp/dhcpd6.conf) for IPv6 must have the following content:
    ddns-update-style none;
    default-lease-time 600;
    max-lease-time 7200;
    authoritative;
    log-facility local7;
    # Ubuntu eth1
    # This is a very basic subnet declaration with Prefix Delegation enabled.
    subnet6 2001:db8:1:1::/64 {
            # Range for clients
            range6 2001:db8:1:1::2 2001:db8:1:1::2000;
            # Extra DHCP options
            option dhcp6.name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;
            option dhcp6.domain-search "linksys.com";
            # The following line will delegate a subnet to LinkSys E1200v2,
            # using Prefix Delagation standards.
            # You'll be able to see this "Prefix Address" under "Status -> Local Network" E1200v2 menu.
            prefix6 2001:db8:1:100:: 2001:db8:1:f00:: /56;
    # No service will be given on this subnet, but declaring it helps the 
    # DHCP server to understand the network topology.
    # Ubuntu eth0 - no DHCPv6 running but doesn't hurt to declare it here
    subnet6 2001:db8:0:1::/64 {
    Reference: http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/hints-daemons-isc-dhcp.html
    2.5- Configuring DHCPv4
    Your isc-dhcp-server configuration file (/etc/dhcp/dhcpd.conf) for IPv4 must have the following content:
    ddns-update-style none;
    default-lease-time 600;
    max-lease-time 7200;
    authoritative;
    log-facility local7;
    # Ubuntu eth1
    # This is a very basic subnet declaration.
    subnet 192.168.20.0 netmask 255.255.255.0 {
       range 192.168.20.2 192.168.20.200;
       option routers 192.168.20.1;
       option domain-name "linksys.com";
       option domain-name-servers 8.8.8.8, 8.8.4.4;
    # No service will be given on this subnet, but declaring it helps the 
    # DHCP server to understand the network topology.
    # Ubuntu eth0 - no DHCPv4 running but doesn't hurt to declare it here
    subnet 192.168.10.0 netmask 255.255.255.0 {
    * Reboot your Ubuntu Router to apply all the changes
    After rebooting it, try to "ping 8.8.8.8" to make sure your Ubuntu Router have at least, IPv4 Internet connectivity.
    NOTE: From this point, you'll be able to start testing IPv6 from behind your Ubuntu Router (i.e. from its eth1), if you connect a Ubuntu Desktop, a Mac or a Windows on Ubuntu's eth1, it will provide IPv4 and IPv6 address to that devices, including your E1200v2 WAN port...
    3- Connect E1200v2 directly into Ubuntu's eth1 ethernet card;
    Plug a RJ45 cable between Ubuntu eth1 ethernet card and E1200v2 WAN port.
    4- Connect a Windows PC at E1200v2 LAN port 1
    This Windows computer will be used to (re)configure your E1200v2 with Cisco Connect everytime a reset is desired.
    5- Reset (restore it from factory defaults) your E1200v2 router;
    Press and hold the reset button for about 10 seconds.
    6- Install Cisco Connect in your Windows PC (LAN port 1);
    Boot(reboot) Windows and install Cisco Connect on it.
    7- Configure your E1200v2 as usual (by finishing Cisco Connect installation procedure);
    After concluding this step, your Windows PC will have both IPv4 and IPv6 address, that come from E1200v2.
    Windows gets its IPv4 from DHCP and IPv6 from SLAAC (main point of the problem), both provided by E1200v2.
    NOTE: From this point, you'll be able to see the problem with E1200v2 internal RA daemon, you'll lose your IPv6 connectivity that come from E1200v2. But, lets keep testing it...
    8- Browse the Internet (still IPv4);
    That's it, try to browse google.com from your Windows PC, if Ubuntu Router can "ping google.com", Windows PC should be able to do it so.
    9- Open Windows Command Prompt and type: ipconfig, ping, etc;
    Run "ipconfig" to see your IPv4 and IPv6 address...
    Run "ping 8.8.8.8" to see if you can reach the Internet...
    10- Open Google Chrome or Firefox and open your E1200v2 Web Admin Interface at http://192.168.1.1/
    Access your E1200v2 Web Admin and go to the "Status -> Router" menu.
    Write down its Internet IPv6 address, it will be something like this:
    IPv6 - Internet IP Address: 2001:db8:1:1::2000
    NOTE: You can get this address at the Ubuntu Router itself, by reading the file /var/log/syslog (`grep pool' might help), for example:
    # grep pool /var/log/syslog
    Sep 24 00:47:13 ubuntu-router-1 dhcpd: Picking pool address 2001:db8:1:1::2000
    Sep 24 00:47:13 ubuntu-router-1 dhcpd: Picking pool prefix 2001:db8:1:1::/56
    You'll see the above message on your Ubuntu Router, right after turning on your E1200v2. Pool address is the IPv6 Internet IP Address of your E1200v2's WAN port, pool prefix is the delegated subnet to your E1200v2 router. After thatn, it will start to advertiser that block on its LAN ports and WiFi (which doesn't work as expected, there is a problem there, whithin E1200v2 itself.
    11- Install a Ubuntu 12.04.3 Server connected at E1200v2 LAN port 2, to test IPv6 connectivity in deep;
    Here is the most important test:
    * Testing the IPv6 connectivity from E1200v2 LAN ports.
    This test is very simple, we just need to try ping E1200v2's IPv6 Internet IP Address.
    This Ubuntu Server will have the following content on its /etc/network/interfaces file:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # The primary network interface
    auto eth0
    # IPv6 - SLAAC - No DHCPv6 client required - E1200v2 will kicks off this IPv6, and I don't know why...
    iface eth0 inet6 auto
    # IPv4 - Requires DHCPv4
    iface eth0 inet dhcp
    After this, your Ubuntu Server will be able to "ping 8.8.8.8" and "ping6 2001:db8:1:1::2000" (E1200v2 WAN IPv6 Address noted before).
    To prove that E1200v2 have a problem with IPv6, try to ping it, just run:
    mtr -n 2001:db8:1:1::2000
    ...And after a few minutes, Ubuntu Server will lose its IPv6 address, because E1200v2 is kicking it off.
    You'll be able to see a lots of package loss going on "mtr -n 2001:db8:1:1::2000".
    If you connect a Mac OSX on E1200v2 LAN por 3, for example, it will also lose its IPv6 from time to time.
    Wireless clients connected at E1200v2, like Android, iPad, Windows, Mac and Ubuntu laptops, also loses its IPv6 (that come from E1200v2) from time to time.
    You guys must note that the E1200v2 itself, ramdomly becomes unreacheable from its own LAN ports (via IPv6)!! Which is unnaceptable.
    12- Boot a Ubuntu Desktop 13.04 Live CD connected at E1200v2 LAN port 3 to test IPv6 connectivity in deep;
    Boot a Ubuntu Desktop connected at your LinkSys E1200v2 router, and open 2 Terminals, on each of it, you should run:
    Terminal 1:
    mtr -n 2001:db8:1:1::2000
    Terminal 2:
    sudo tail -f /var/log/syslog
    You'll be able to see a lots of package loss going on "mtr -n 2001:db8:1:1::2000" after a few minutes AND at the syslog, you'll be able to see when you lose your IPv6, that come from E1200v2.
    Conclusion
    E1200v2 doesn't have a working IPv6 Router Advertisement service. Please Cisco, fix it!
    The IPv4 from behind E1200v2 is fine, I'm using LinkSys products for about +10 years now... First time with problems like this but, IPv6 is more or like new and, problems are expected... Lets work on it?!
    Best Regards,
    Thiago

    Try to use dhclient perhaps?  Might I also suggest letting systemd deal with the dhcp issue and not NM.  That may seem incongruous but it is possible NM is mis-handling the dhcp hand-off to the network card.  I'm no guru but I got thinking about this when I saw this in your output:
    aug 26 19:15:39 arch_daboka NetworkManager[527]: <info> (enp1s0): device state change: ip-check -> secondaries (reason 'none') [80 90 0]
    aug 26 19:15:39 arch_daboka NetworkManager[527]: <info> (enp1s0): device state change: secondaries -> activated (reason 'none') [90 100 0]
    aug 26 19:15:40 arch_daboka NetworkManager[527]: <info> NetworkManager state is now CONNECTED_LOCAL
    It is very possible that I'm mis-interpreting this information so please take it with a boulder of salt. 

  • Oracle VM 3.2.1 test setup - problems with OVS node evictions

    Hi all
    I am building a small test environment for Oracle VM with the following configuration
    4 boxes, each 1 x AMD 6 core cpu + 32GB RAM + 2 x 1GB ethernet (10.30.32.n, 192.168.20.n networks - I only have 1x16 port GB switch, so all cabling is through the one switch - that may be part of the problem)
    3 boxes are diskless, running Oracle VM Server from 8GB USB flash drive
    1 Box is EL6.3 and set up with:
    1x750GB with (LVM) partitions for /, /u01 (Oracle 11gR2SE + OVM Manager), swap, and a partition for the OVS pool
    4x2TB drives, set up with LVM striping, and 4 LVs - 1 750GB for virtualbox and VMWare VMs, and 3 others for OVS storage repositories (each a bit over 2TB) - all ext4.
    The OVS Pool and OVS Storage file systems are exported via NFS
    VM server and VM manager installs all went smoothly. Servers and storage are discovered OK in the manager.
    I created 2 networks - one on the 10.30.32 subnet for Server Management, Cluster Heartbeat and Live Migrate (also the public network for accessing the machines). The other on the 192.168.20 subnet for Storage and Virtual Machine.
    Created storage pools, and presented to all the servers.
    In creating the Server Pool, just took the default 120 for the cluster timeout
    Now when I try to import an assembly, or a VM template, it gets so far, then then the server doing the actual job reboots.
    My initial thought is that for whatever reason the NFS traffic involved in importing and writing - either network, or I/O on the NFS server - is swamping the cluster heartbeat traffic, and the node just fences itself
    Just wondering if anyone has any ideas or suggestions, or can advise what further diagnostics or troubleshooting I can do

    I suspect it more to do with your storage than anything. Run your import again and sample your I/O performance from your NFS server during the import. Also, if you can... .create LACP bond on your NFS server. I don't know what kind of throughput you expect but remember. A single GB nic can only do a max of 125/MB a sec. That sounds rather good but take into consideration everything you're doing across your environment... its not a lot. I see well over 400 mb/sec network throughput at times on my storage. I run bonded 10GB nics.
    Once you get your templates and such built you shouldn't experience that much NFS I/O. You should allocate enough memory to your guest as to avoid virtual disk paging on your NFS storage.

  • How to create a smaller database

    Hello!
    My production database is quite large, around 700Gb. I need to create a testing environment, but to clone the production database will take up much space ...
    I tried using the parameter "SAMPLE = 50" but the data is randomized. How do I create this database for testing but without using much space? Is there any way to export the latest 500 rows from all tables?
    tnks

    sb92075 wrote:
    post SQL that SELECT latest 500 rows in every table?
    What about PK/FK relationships?
    does not Quality Assurance have a small test bed DB?I tried to use SELECT, but gave up... there is a lot of tables, more like 2000, and I'm not good at PL and tried to look for alternatives ..
    relationship .... it is a problem ... My database uses a different way to save data ... There are few relationships between the tables .. and is not used "drop or update" only insert, I forgot to mention that.
    Quality Assurance? hehehehe... its my dream.. My company believes it is a waste ... is a small company with big clients. The directors, on their holy wisdom, believe that we have fewer employees to make things work...
    andrewmy wrote:
    There is no easy way to do this unless your table relationships are very simple.
    A few systems I have seen use a set of SQL queries to extract a subset of the data but maintaining these queries can be a pain as your system evolves. Besides the need to maintain correct relationships, the other tricky part is coding those extraction queries to select a large enough of a spread of data that you can test for common production situations. Since every application is different you would need to have a good understanding of the table relationships to build those queries. If your database design does not have proper foreign key constraints defined and the relationships are poorly documented elsewhere then you are in a really tough spot.
    The production database is also likely to have things like auditing and statspack that you can elect not to setup in your test environment to save some space.
    If you are looking for a tool to extract subsets, one such example is Databee (google).thanks for your help guys ... I'll look for some software to help me, I will also take a look at databee

  • Include a Test Frequency in Reports and Database

    I'm running a multiple numeric limit test on a product  uisng the TestStand looping function.  On each loop, I change the frequency of a signal generator.  I need to capture the frequency in the test report and data base.  The frequencies are stored in a parameter array and passed to the Labview routine using the loopindex.  The report shows the loopindex, but I need to replace this information with the test frequency.   I do not want to create a limit test for the frequency.  I'm already using the "reporttext" for other infromation.   Any ideas?

    Hi Bill
    I have done a small test programm. Is this what you are looking for.
    Take also a visit to this thread:
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=18374
    If i am wrong, please post an example
    Greetings
    juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Loop.seq ‏7 KB

  • Simulation Test - Help Please

    Hello Everyone,
    I am planning in taking my certification exam in BW3.5 next week and wish to get a feel on the simulation test.
    I downloaded the SAP Tutor player from https://websmp107.sap-ag.de/certification.
    But I am unable to run the player. Do I need to download anything else. If so please let me know.
    In a previous post I read someone asking to change the file extension to '.sim'.  but which file should I change the extension. 
    Your help will be really appreciated with full points.
    Please help its urgent.
    Thanks,
    Raadika.

    Rad
    I don't think that such tutorials exist well in fact I have never seen them. Maybe SAP will think about it.
    What I have eard about is the book called <i>SAP BW Certification : A Business Information Warehouse Study Guide</i>
    here is an extract of its content
    "An introduction to the BW certification exam
    An overview of the exam's topics, including such features as "On the Exam," "Optimization Tips," "Note," "Restrictions," "Unique to SAP," and "New to SAP"
    Exercises that can be performed with a small test-BW server
    Practice test questions and answers that assess the reader's knowledge of current exam topics
    A complete simulated certification exam"
    Otherwise you have the SAP web site providing you with information related to the exam.
    The exam is based on the courses BW305 310 etc... till 370.
    You also have got plenty of posts in the forum.
    hope this could help you
    regards

  • Why is the difference in execution speed of the function "SetCtrlVa​l" between constant and changing values so small ?

    In my large application (1 MB exe-file) I am continuously updating a lot of numeric controls with new values. Most of them do not really change their value. Within my search of improving the performance of my application I noticed, that there is only a small difference of the execution speed between a call of "SetCtrlValue" with constant values and calls with changing values. It runs much faster (25 times on my PC), if I get the actual control value with "GetCtrlVal", compare it with my new value an do a call to "SetCtrlVal" only if the current value and the new value are different.
    My questions to CVI-developers is:
    Isn't it possib
    le to do this compare within the function "SetCtrlVal"
    My question to all CVI-users is:
    Does anyone have similar tips to improve the performance of CVI applications ?
    I developed a small test application for this problem, which I can mail to interested users.

    What takes the extra time is the redraw of the control. When you call SetCtrlVal we ALWAYS redraw the control. We wouldn't want to build in functionality to check if the value was the same because that would add additional time to the SetCtrlVal in every case. If you want to do it outside of the loop you can as you have done above. You have a few options. First, keep a previous value variable for the controls that you can use to determine whether to set the control value. I.E.
    int oldVal = 0;
    int newVal = 0;
    if(newVal!=oldVal) {
    SetCtrlVal(..., newVal);
    oldVal = newVal;
    Also, if you set the value of a control through SetCtrlAttribute instead, there is no built in redraw of the control (which is what takes all the time). Using SetCtrlAttribute
    to set the value is very fast, but remember there isn't a built in redraw on the screen to display the new number.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Testing a SP that returns a CURSOR

    I'm using Oracle 11 and trying to use SQL Developer. However, I cannot seem to get the DEBUG to work to test calling a SP that returns a Cursor.
    I wrote a small test program to test, but it won't compile and I'm not sure why not. Can you assist?
    the first code fragment is a package I have that has a CURTYPE defined. It is used throughout my application when declaring a cursor:
    create or replace
    PACKAGE          "SP_STATE"
    Is
        type     curtype is ref cursor;
    ...now, here is the first part of the SP that I want to test. note that I defined PriceCur as using the package CURTYPE.
    create or replace
    PROCEDURE          "USP_GETL_ACCOUNT_PRICES" (
      AcctNo          in     marketer_account.mka_last_full_css_acct_no%type,
      MktrNo          in     marketer_account.mka_mktr_no%type,
      Status                     in              varchar2 default null,     
      PriceCur          out            sp_state.curtype
    as
    begin
    Open Pricecur For
    Select
    ...Now here is my test procedure:
    Declare
       Price_Cur  Sp_State.Curtype;
       price_rec  price_cur%rowtype;
    Begin
       Usp_Getl_Account_Prices('302189139000026', 11813,'A', price_cur);
       Open Price_Cur;
       Loop
          Fetch Price_Cur Into Price_Rec;
          Exit When Price_Cur%Notfound;
          dbms_output.put_line(price_cur%rowcount || ') ' || price_rec.apr_account_price_id);
       End Loop;
       close price_cur;
    end;It won't compile. All I'm trying to do here is call the SP - pass in the 3 inbound parameters and get back a cursor,
    then I want to loop through the cursor and list out certain fields....
    Where am I going wrong? Any help would be greatly appreciated.
    Sean

    userLynx wrote:
    I had to change my SP to return 4 or 5 columns (before it was returning about 12) just so that I can see if the procedure works.
    I ended up doing this:
    set serveroutput on;
    declare
    V_Rc Sys_Refcursor;
    priceID integer;
    AcctId number;
    Mktrno Number;
    Accountnumber Varchar2(15);
    Errcd Number;
    descrip varchar2(150);
    Begin
    USP_GETL_ACCOUNT_PRICES1('313747128500038', 11536, 'R', v_rc);
    Loop
    fetch v_rc into priceID, acctId, MktrNo, accountNumber, errcd, descrip;
    Exit When V_Rc%Notfound;
    dbms_output.put_line(priceID || ',' || acctId || ','  || MktrNo || ',' || accountNumber || ',' || Errcd || ',' || descrip);
    end loop;
    end;I was able to get data back.
    It just seems odd that I cannot use the cursor directly or FETCH into a RECORD (cur%rowType)You probably can use a record that looks something like (untested)
      type rec_type is record(
       priceID integer,
       AcctId number,
       Mktrno Number,
       Accountnumber Varchar2(15),
       Errcd Number,
       descrip varchar2(150),
      rec rec_type;
      fetch ... into rec;Notice I made the record look exactly like the list of variables you defined and selected into. If not, you still have use of the variables

  • Migrate from Test to New Server - OBIEE

    Hi,
    I have been 'evaluating' OBIEE functinality on a small test server for some time, where I have done a large amount of work on both writing reports. developing dashboards, configuring user security and the necessary data architecture in the physical / business model and presentations layers in BI Adminstration.
    My question is, what is the easiest way to port the solution as it stands to a different server, without needing to perform extensive rework?
    Thanks for any advice,
    Robert.

    Lowest level: copy the RPD and web catalog over to the other server, adjust the NQSConfig.ini and instanceconfig.xml and off you go.
    That's assuming you didn't change any web messages, add custom pictures or files, change the styles and/or skins, you're still pointing to the same data sources etc. etc.
    You should have a look at one of Marks write-ups from a while back: http://www.rittmanmead.com/2008/04/28/migration-obiee-projects-between-dev-and-prod-environments/
    Cheers,
    C.

Maybe you are looking for

  • IPhone 6/iOS 8 email issues with wifi connection

    Hi I have just upgraded from an iPhone 4 (iOS 7) to an iPhone 6 (iOS 8) and am having an issue with my pop email account. I used my iPhone 4 backup to set up new iPhone, so all the settings were as they were in my old phone. I have two email accounts

  • IPhone's calendar week view error

    Hello guys. When i choose the week view on Calendar (IOS 7.03) the Day number marked is wrong. The number 29 is below "Q" when the correct is below "T". But the extense text below shows correct. Does it occurs with you?

  • Calling a method on top object?

    Say I have my top level class, App extends JFrame, and I want to call the getlocation method on it within on of its functions. I cant do super().getLocation. So what do I do?

  • NWBC - SM59 alias can't be resolved - Type 3 and type H def required

    Dear Experts, We are implementing E-recruitment on NWBC. The HR and erec are both in the same instance. E-recruitment links are visible on NWBC but gives following error when clicked on "Recruiting" or any other link. 500 SAP Internal Error For the r

  • I can't get itunes to work because quicktime doesn't install properly

    I just got an ipod nano, which, as the cd reads, needs the newest version of itunes. itunes, from the cd as well as downloaded from the internet, installs perfectly. Quicktime, however, does not. When I try to install it in the itunes/quicktime combo