Where am I? linux or Solaris?

hi, does anyone know how you determine, whether you are running a java application in Linux, solaris, or even windows??
how do i get this info while running a java app??? ... using java code... you know, platform independent....
thx

I am not sure if there is a method that will detrmine the platform type, but what I would do ,
test if the dir c:\winnt or c:\windows dose exist, if so, then this is obivously windows, otherwise I will execute the command "uname" and get the OS type on solaris or linux.

Similar Messages

  • Adding the /etc/host.deny file like linux in solaris 10.

    Dears,
    I need to add a file which will works like the file of /etc/hosts.deny of Linux in Solaris.
    If it is possible in the same manner please let me know that, and if it need some other trick to deny a specific host to access the system please tell me the way to do that.
    Eagerly waiting to hear from you.
    BR//
    Sohel.

    IPfilter can deny a specific IP address access to the host - enable IPFilter with svcadm and edit the /etc/ipf/ipf.conf file to add the IP to block. An example could be:
    block in log quick on bnx0 proto tcp from 192.168.1.5/32 to any
    I use IPfilter to pass and block all sorts of specific IP addresses as well as block/allow specific ports (like only specific hosts can use port 22, ssh).

  • Where is LDAP  store in solaris 9?

    I have solaris 9 fully installed in my machine, but I can't find LDAP software in my system.
    can Anyone show me where is LDAP stores in Solaris 9?

    Try the System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) ( http://docs.sun.com/doc/806-4077 ). As mentioned in that doc, you'll need to set up Directory Server before you can use it.
    Hope that helps,
    Mark

  • Development tools on Linux or Solaris

    Any suggestions for integrated development environments to be used in
    conjunction with WebLogic on Linux or Solaris? We consider using using
    Weblogic app server, but don't really know if there are any preferred
    IDEs on unix. Would like support for UML, deploy to WebLogic, JSP, java
    debugger, etc...
    Terje

    Supposedly TogetherSoft Control Center does all this. However,
    I can't confirm. Check it out at http://www.togethersoft.com.
    Mike
    Terje Ostvoll <[email protected]> wrote in message
    news:[email protected]..
    Any suggestions for integrated development environments to be used in
    conjunction with WebLogic on Linux or Solaris? We consider using using
    Weblogic app server, but don't really know if there are any preferred
    IDEs on unix. Would like support for UML, deploy to WebLogic, JSP, java
    debugger, etc...
    Terje

  • Function-Based Indexes (FBI) on Linux and Solaris

    I have a question about FBI on different systems (Linux and Solaris).
    ---- Oracle on Linux -----
    SQL> CREATE TABLE T_DUMMY(NAME VARCHAR(20));
    Table created.
    SQL> CREATE INDEX T_DUMMY_IDX ON T_DUMMY(UPPER(NAME));
    Index created.
    However, when I do the same on the Oracle running on Solaris, I get the following error:
    ---- Oracle on Solaris -----
    SQL> CREATE TABLE T_DUMMY(NAME VARCHAR(20));
    Table created.
    SQL> CREATE INDEX T_DUMMY_IDX ON T_DUMMY(UPPER(NAME));
    CREATE INDEX T_DUMMY_IDX ON T_DUMMY(UPPER(NAME))
    ERROR at line 1:
    ORA-01031: insufficient privileges
    I know that I have to add "QUERY REWRITE" in order to create a FBI. However, why Oracle on Linux behave differently. Would it be any difference/problem if I do NOT add "QUERY REWRITE" for Oracle on Linux (For example, would the EXPLAIN PLAN different)?

    general user settings are the same (privilege, role) Well, the specific settings must be different. I would check to see whether one of the roles has been granted the QUERY REWRITE system privilege on your Linux instance but not on Solaris.
    Cheers, APC

  • Performance (Linux or Solaris)

    Hi folks,
    We have been asked by many clients which performs better / faster (Linux vs Solaris).
    The environment is:
    Intel Xeon Server Hardware
    Local Disk (SAS) - RAID 5
    Single Server install
    Single Location
    VirtualBox as Hypervisor
    I am asking for your feedback / experience with Linux vs Solaris implementing VDI 3.4.1

    Hi,
    we have done some extensive testing on this. One of our clients had some severe issues with performance on Linux after a migration from solaris to linux (on the same hardware) the system load/utilization went up by a factor of 4-5 (server could easily handle 200 sessions with solaris and only 40-50 with linux). We never managed to find the root cause (or a solution) for this and migrated back to solaris.
    But we tried to replicate this issue in the lab (without success). So what we did was this:
    Install Solaris 10 and Linux on one hard drive each and also install SRS 5.3.1 (we also tried this with a few older versions). We set up kiosk sessions to connect to a windows terminal server (we did not bother to compare virtualbox perfoamce) and launch a web browser to a website with loads of flash and moving content. We had about 20 DTUs connect to this server and monitored the system load, utilization and so on of the Xnewt processes. At one point we also automatically started some audio stream to measure the performance of utaudiod. The result (for 2 different servers) was that linux and solaris are really close to each other in performance terms. Solaris showed a little less utilization, about 5-10% maybe. But really quite negligable.
    Long story short: we have seen really poor performance with linux once but in all other cases linux performed almost as well as solaris. And we never compared the virtualbox hypervisors which might be yet another story.
    Bjoern

  • Missing data in server monitor under linux and solaris

    Some metrics are not displayed in our environments, specifically under the statistics tab, request statistics, active coldfusion thread, we always have a zero line.  Also under memory usage, "cf threads by memory usage" is always empty.  I have all three buttons at the top checked so they are monitoring.  Is there something else I'm doing wrong?
    Environment 1 : dell2850->centos5->vmware->centos5->32bitJDK5->tomcat6->coldfusion8
    Environment 2 : sun5120->solaris10->64bitJDK5->tomcat6->coldfusion8
    I'm specifically wanting thread info to check if I should increase the defaults in CFIDE configuration.  Most everything on the server is being delivered faster now that we are using a 64bit JVM and have moved to solaris in production (from windows).  But there are some sections of our cfm logic that are taking much longer now (2000% longer)
    Thanks
    Ahnjoan

    Hi all,
    does anyone can write some info why java Threads are
    recorded in the list of process (ps -ef) when you run
    on a Linux box, but not the same when you run on
    Solaris ? Which Thread support is more
    performant/stable that on Linux or that on Solaris?
    Thanks
    FrancescoLinux treats kernell threads as light weight processes and displays them as if they are actual processes - they of course are not, so the results of 'ps' can be misleading. Solaris fully differentiates between its three concepts of threads, lightweight processes and processes and 'ps' only shows actual processes.
    Both implementations in Linux and Solaris perform well.
    By the way, Solaris 8 has an optional, slightly different thread model than earlier versions of Solaris (in fact it is more like NT's) and that can be more efficient for JVM's or other multithreaded systems running on SMP systems. It can also be worse - your mileage may vary.

  • DatabaseMetaData error when connect to Linux or Solaris Database Server

    I write some code to display table structure of a table,when I connect to sybase,sql server,oracle on Windows or HP or AIX, it works well,but when I connect to Oracle 8.1.7 or Oracle 9.0.1 on Linux and Solaris, these code does not work correctly. My oracle jdbc driver is 9.0.1.

    As a copy of this query has been posted to the CR design forum at 11:21, assuming this is indeed a design question.
    Thus setting this thread as answered.
    - Ludek

  • About init GUI on linux or solaris

    About init GUI on linux or solaris
    Error1.xhost: unable to open display ""
    Possible Solution:
    root@oardc:~# xhost +
    xhost: unable to open display ""
    root@oardc:~# export DISPLAY=localhost:1
    root@oardc:~# xhost +
    access control disabled, clients can connect from any host
    Error2.No protocol specified
    xhost: unable to open display ":1.0"
    Possible Solution:
    Forget about DISPLAY and xhost, that's ancient history!
    Use SSH X-forwarding.
    - On the solaris server make sure SSH server is running and X11
    forwarding is enabled.
    - On the Cygwin-PC, start the X11 environment ("startx" I think), open an xterm and
    ssh -X username@solaris-hostname-or-ip
    sometimes you need -Y instead of -X (don't remember why)
    ssh -Y username@solaris-hostname-or-ip
    That's all. X programs on Solaris should open on Cygwin.)

    Supposedly TogetherSoft Control Center does all this. However,
    I can't confirm. Check it out at http://www.togethersoft.com.
    Mike
    Terje Ostvoll <[email protected]> wrote in message
    news:[email protected]..
    Any suggestions for integrated development environments to be used in
    conjunction with WebLogic on Linux or Solaris? We consider using using
    Weblogic app server, but don't really know if there are any preferred
    IDEs on unix. Would like support for UML, deploy to WebLogic, JSP, java
    debugger, etc...
    Terje

  • Where can I download the Solaris 11 ISO's via wget?

    Where can I download the Solaris 11 ISO's via wget?

    PascalK wrote:
    Please check this thread :
    https://communities.oracle.com/portal/server.pt/community/view_discussion_topic/216?threadid=271855
    Pascal,
    That link requires login credentials to MOS.
    Please find an additional resource for "freebies" to read.

  • Migrating 9i(24x7) on Linux to Solaris

    Hello,
    What would be the best method to migrate a 9i, 24x7, 30gigs database on Linux to Solaris without shutting down the database and without losing any data during and after the move. Thank you in advance.

    You're going to have to have some downtime in order to move from one system to the other. It is possible, though it will probably be quite labor intensive, to make this downtime very small. The question, then, becomes how much effort you're willing to expend to minimize downtime.
    You could create a new database on the Solaris machine and configure replication from the Linux box to the Solaris box. This probably involves creating a bunch of materialized view logs on the Linux box, which will tend to increase the load there. Depending on the volume of changes happening in a given period of time, it may take some time for the Solaris box to get close enough to the Linux box that you can shut off the Linux box, finish replicating the data, and open the Solaris database for transactions.
    Of course, every client will have to be pointed at the new database rather than the old database during this transition. Exactly how this is done will depend on your precise environment. Ideally, it would be as simple as updating an Oracle Internet Directory entry or a DNS entry, but life is rarely that easy.
    Obviously, this sort of procedure takes some time to work out and to test, so if you really want to minimize downtime, you'll be spending many, many, many hours doing dry runs.
    If that is still too much downtime, you generally have to resort to more application-specific solutions, which generally requires some pretty detailed understanding of the application(s) that use the database.
    Justin

  • Linux and solaris version

    Hi all,
    What version of linux and solaris support oracle 11g(weblogic) , what is the difference between older versions and higher versions?
    Regards
    Srinivas kola

    Hi Francis,
    You can find the certification information here:
    http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
    http://www.oracle.com/technetwork/middleware/downloads/fmw-11gr1certmatrix.xls
    Regards Peter

  • Where are the Linux kernel parameters?

    I have successfully installed ORACLE on red hat linux 5.0
    even though I didn't set the kernel parameters.
    On Solaris these parameters can be set in the /etc/system file.
    Where do you set SHMMAX and the kernel parameters in linux?
    I could not find a similar file.
    Please enlighten me.
    Thank You
    Be careful with environment variables!
    run the root.sh script after installation!
    null

    Frank Westheider (guest) wrote:
    : Mark Lee (guest) wrote:
    : : I have successfully installed ORACLE on red hat linux 5.0
    : : even though I didn't set the kernel parameters.
    : : On Solaris these parameters can be set in the /etc/system
    file.
    : : Where do you set SHMMAX and the kernel parameters in linux?
    : : I could not find a similar file.
    : : Please enlighten me.
    : : Thank You
    : : Be careful with environment variables!
    : : run the root.sh script after installation!
    : Hi Mark.
    : You have to install the Kernel-Sources and Include-Files.
    : Just look in
    : /usr/include/asm/*shm*.h
    : and change the parameters. After this re-create the kernel with
    : cd /usr/src/linux
    : make clean && make dep && make && make modules && make
    : modules_install
    : and install the kernel-file (lilo/bootlin....).
    : Ciao
    : Frank Westheider
    You might want to follow this thread (it's on the previous page
    of threads):
    Kernel Parameters?
    From: Bolen Coogler (guest)
    Email: [email protected]
    Date: Mon Oct 26 16:00 CST 1998
    The Oracle install instructions mention setting various kernel
    parameters, such as:
    SHMMAX 4294967296 (0x100000000)
    SHMMIN 1
    SHMMNI 100
    SHMSEG 10
    SEMMNS 200
    SEMMNI 70
    SEMMSL
    While setting these parameters is VERY important in HP/UX or
    Solaris, I haven't the slightest idea if this is really applies
    to Linux. Does anyone know if tweaking these and other kernel
    parameters matters in Linux? If so, where do you make these kind
    of changes? (/usr/src/linux/include/linux/<something>.h ?)
    My initial impression is the Oracle on Linux documentation is
    converted Solaris boilerplate (i.e. %s/Solaris/Linux/g).
    null

  • Adobe Reader 8.1.1 for Linux and Solaris released

    Linux
    * 32-bit Intel Pentium processor or equivalent
    * Red Hat Linux WS 5, SUSE Linux Enterprise Desktop (SLED) 10 and Ubuntu 6.10. For a list of customer-reported working systems see here
    * GNOME or KDE desktop environment
    * 512 MB of RAM (1 GB recommended)
    * Up to 125 MB of available hard-disk space
    * GTK+ (GIMP Toolkit) user interface library, version 2.6 or higher
    * Firefox 1.5 or higher; Mozilla 1.73 or higher
    Solaris
    * UltraSPARC or UltraSPARC IIIi processor
    * Solaris 9 or 10
    * GNOME or KDE desktop environment (GNOME only for Solaris 10)
    * 512 MB of RAM (1 GB recommended)
    * Up to 175 MB of available hard-disk space
    * Firefox 1.5 or higher; Mozilla 1.73 or higher

    Here is the list of changes and bugs I found in AR8.1.1 and ways to fix them (bugs of course :-) ):
    (this is how I fixed these bugs, you may find better ways to fix them)
    The most important fix since AR 7.0.9 is that now AR8 works with new Linux
    distributions which use recent GTK 2.0 libraries. It is known fact that when
    recent GTK 2.0 library was present loading of AR 7.0.9 failed with endless
    loop of messages: "expr: syntax error" on console window and serious CPU
    usage hit silently slowing down computer reactions. Now this is fixed.
    New feature added: Now AR8 scans font pathes inside X config files and adds
    found fonts to its own internal font cache so system wide fonts are used for
    pdf pages rendering in addition to default built-in AR8 package fonts. If
    user will copy font files from Windows/fonts directory to X font locations
    the pdf files outlook in AR8 is identical to the one on Windows.
    When someone uses tar.bz2 or tar.gz installer it will ask for installation
    directory and will show default [ /opt] directory. Do not press enter here!
    If you do this a ?[3~ junk directory will be created in current directory. To
    overcome this manually type /opt or other location.
    Another bug is blank grey window on first run of AR8. Just close it with X and
    provide path to libgtkembedmoz folder. This library is a part of mozilla web
    browser so it can be found in any mozilla program directory:
    /usr/lib/firefox
    /usr/lib/seamonkey
    /usr/lib/thunderbird
    /usr/lib/mozilla
    or other locations where mozilla software is installed.
    Just run AR8, go to Edit->Preferences->Categories->Internet->Select Browser,
    and fill in libgtkembedmoz Folder path with one of these locations or find
    correct one for your system.
    The last bug is AR8 only creates desktop icons on root account.
    AR8 can be run without icon. Just run /usr/bin/acroread

  • Differences between Linux and Solaris command set

    Hi,
    It is complicated to learn Solaris? Is the set of commands the same of Linux?
    It is because is more simple for me to find a Linux Admin book than a Solaris book.
    Thanks.
    Lorenzo

    BTW: You might want to start with this peace if information:
    http://wwws.sun.com/software/whitepapers/linux/linux_overview.pdf
    One remark: this Blue/white paper is written for audience known to Solaris and new to Linux, but usefull the other way around.
    Specially table 1 is very usefull !
    Good luck, and Welcome as new Solaris Administrator.
    Eric.

Maybe you are looking for