Question about accessing Runtime MBean server

I would like to access the Runtime MBean server, and I've read this link: http://e-docs.bea.com/wls/docs91/jmx/accessWLS.html#1119237
I want to access this from within my EJB application. My WLS 9.1 setup is simple (it's a Single Server Domain), and the class which is attempting to get to the runtime MBean server is from a stateful session bean. The Bean class is in a Jar which is deployed within an Ear as part of an ELB module.
After reading "If the classes for the JMX client are located in a J2EE module, such as an EJB or Web application, then the JNDI name for the Runtime MBeanServer is", I expected to use the JNI name java:comp/jmx/runtime. But this failed.
What worked was the other address specified (java:comp/env/jmx/runtime).
So, apparently this means that "If the classes for the JMX client are located at the top level of an enterprise application (that is, if they are deployed from the application's APP-INF directory)"
So, I'm not sure what this means? Can someone clarify when each address is available and when it's not? The existing explaination in the doco doesn't make sense to me. My application is defined as part of an EJB module, yet I can't use the JNI name for an EJB module?
Thanks for any help,
Ed

It's called DNS registration.
You need to talk with your network engineers or someone who manages your public website.
We did our DNS registration of our Portal site through the telecom company who provides our office with Internet access.
Our portal URL from the Internet is:
https://portal.opnext.com/pls/portal
If you can access it and want to log in using our "demo" ID, please send me an e-mail requesting the password.
Eric
[email protected]

Similar Messages

  • ApplicationLifeCycleListener can't access Runtime MBean Server

    Hi all,
    I have encountered quite a strange behaviour in Weblogic 9.0. I am actually trying to deploy an application originally developed on Weblogic 9.2 to Weblogic 9.0. Everything works fine, except the ApplicationLifeCycleListener. The Post Start method tries to register MBeans to the Runtime MBean Server and deregisteres them when the application stops in Pre Stop. In Weblogic 9.2, it works fine. I can access the MBean Server with a local connection as described here: [url http://e-docs.bea.com/wls/docs90/jmx/accessWLS.html#1119237]
    The documentations on this for WL 9 and WL 9.2 do not differ significantly. Anyway, WL 9 quits any attempt to make local connections to the Runtime MBean Server with an Exception:
    javax.naming.NameNotFoundException: While trying to look up comp/env/jmx/runtime in .; remaining name 'comp/env/jmx/runtime'
    It works when I move the establishment of a connection into an EJB. I suppose that the ApplicationLifeCycleListener just can't see the Runtime MBean Server in Weblogic 9.0.
    What do I do wrong? :-)
    Thanks,
    S?ren

    I too am having problems accessing Directory server from Netscape Console installed on Winxp.
    If I try to open Directory server it doesn't give any error. No windows nothing.
    If I try th same from the machine on which it is installed everything is fine. What is strange is that it did open a couple of times. But at the same time I can open the admin server, Netscape Messaging server from the xp box. Searching all over for a solution. Any help/pointers would be greatly appreciated.
    Config details:
    iDS4.13, iMS 5.0, running on Sol 8 box
    Netscape Console 4.2 on WinXP.
    Thanks

  • Question: about accessing Nik collection through Lightroom

    I have recently purchased and installed Nik collection. I have no problem reaching the plug-ins in Photoshopbut can't in Lightroom (except for HDR)

    Thanks!  Technology senses my fear and always makes it difficult for me! Ha! I can use the Nik programs so if I have to, I'll work on them there.
    Date: Sat, 13 Apr 2013 16:27:45 -0700
    From: [email protected]
    To: [email protected]
    Subject: question: about accessing Nik collection through Lightroom
        Re: question: about accessing Nik collection through Lightroom
        created by trihelm2 in Photoshop Lightroom - View the full discussion
    I suspect there are potential issues on some systems with the Google "combined" version, when I installed it I had recieved a copy of the Google complete version free because of my purchase history. I was advised that I could install over the Individual Plugins I had. I never got as far as trying it with Lightroom, only in Elements. The plugins appeared but the load times were abysmal and I mean realy bad , far longer than the Nik individual Installs, so I dumped it and reverted to the originals. Pity cos I wanted the Sharpen Plugin that I have'nt got. After reverting all was back to normal The Nik individual Plugins load very quickly. It was this that convinced me there is a difference in the Google setup.There are people on here with far more knowledge than me, hopefully one of them can help you, alternatively you might try asking Google for help with this.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5232723#5232723
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5232723#5232723
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5232723#5232723. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Lightroom by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Question about using Runtime.getRuntime();

    hi all
    i have a question about using Runtime.getRuntime(). if i use this to get a runtime reference to run an external program, is it considered as starting a new thread inside the thread that starts it?
    is it safe to do it in the Session EJB? if not, what can you recommand to do it? thanks

    hi all
    i have a question about using Runtime.getRuntime().
    if i use this to get a runtime reference to run an
    external program, is it considered as starting a new
    thread inside the thread that starts it? No. Starting a process, starts a process. Threads have nothing to do with it.
    is it safe to do it in the Session EJB? if not, what
    can you recommand to do it? thanksSo what? Run another process? If you want to run another process in java then your choices are to use Runtime.exec() or use JNI. And using JNI will probably end up doing exactly the same thing as Runtime.exec().
    "Safe" is harder. Typically to correctly use Runtime.exec() you must use threads. And as noted threads ideally should not be used. You can use them but if you do you had better understand why they didn't want you using them in the first place. You had also better be sure that you really want to wait for it to complete.
    Other than that Runtime.exec() is safe because it can't crash the VM like other interfaces can (like JNI.)

  • Questions about mac mini iTunes server, streaming to macbook pro, ipads, etc.

    I'm thinking about getting a mac mini to work with my NAS as a iTunes server. I have a bunch of questions about this. I will have two iPhones, a few iPads, and a laptop that will be accessing the files. I have iTunes match. This is basically to keep an always on computer for hosting the music/movies. My questions are as follows . . .
    #1 Are there any good, comprehensive guides to show you how to do this?
    #2 Can the movies be accessed when not at home on the shared network?
    #3 Can the iPads or the macbook pro download the shared movies to be stored locally?
    #4 Back to #3, how will it work on my macbook pro with listening to music (I have iTunes match)? Say i go to library and I break out my macbook pro and I don't have internet. What happens if I download music while at home onto my macbook pro to listen to it when I go to the library? Will i start a new library on my macbook pro? How will that mesh with the home server when I come back.
    #5 Is there a way to mirror files or folders? So something that I have on my macbook pro will also mirror on the home server.
    Thanks for your help on this. I'll post any follow up questions.

    seanfenton wrote:
    1. I want to replace the Optical drive with a 2TB SATA. can I use this 2.5 inch?
    I do not know if it is the same model number, but this one will work in your MBP:
    http://eshop.macsales.com/item/SEAGATE%20OWC/ST2000LM003M/
    2. I want to replace the HD with a 128GB SSD 840. When I replace these drives, will my OS still be in tact? I have never done this job before.
    No. You will have to format the drives in Disk Utility>Erase to Mac OS Extended (Journaled) and then install the OSX by using the original install disks.
    3.) I want to replace the ram sticks to max capacity. This is 2 2GB sticks, Correct?
    No.  An early 17" 2008 MBP will accept 6GB RAM with the following specifications:  200-pin PC2-5300 (667MHz) DDR2 SO-DIMM.  The best sources of Mac compatible RAM are OWC and Crucial.
    4.) Most difficult...
    I want to extend the monitor wirelessly to a projector. I thought about using Apple TV and Airplay. However, support for airplay is for MacBooks 2011 and newer. I thought of using a PS3 and the media server, but I think this brings on a format compatibility issue. (my library is so large I could not afford to convert all my movies to MP4.) So, how would you recommend I put my extended monitor with VLC player onto a projector?
    Could I possibly connect the MBP to a Mac Mini as an extension? would this work natively? I would rather use a VGA cord than F with 3rd party app BS.
    Cannot help you there.
    5..) I want to Bypass iTunes this time around. I would prefer to use Finder and VLC to manage all of my music. I mostly play all my music on shuffle, so, could I create a playlist on VLC with all of my music and play it randomly? (im sure this is possible but i'd like to organize all my plans with confirmation.)
    You are not obligated to use iTunes.
    6.) Can i upgrade the keyboard to backlit? i've read that this is possible.
    All MBPs have back lighted keyboards.  Your either needs a NVRAM reset or a repair.
    Ciao.

  • Accessing Runtime Mbeans from the command line.

    Hi,
    I just wanted to know if runtime Mbeans can be invoked from the command line.
    I tried accessing the ExecuteQueueRuntime mbean from the command line but nothing ever comes back.I am able to retrieve configuration mbeans without errors.
    Do I need to create the runtime mbeans before I can use them ?
    Or I need to invoke these commands via server code only?
    Thanks.

    Can you post the command you are using? I just tried this and seems to work.
    D:\>java weblogic.Admin -username weblogic -password weblogic get -type ExecuteQueueRuntime -pretty
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.RMI,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 3
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@3eb934
    Name: weblogic.admin.RMI
    ObjectName: weblogic.admin.RMI
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444704
    Registered: false
    ServicedRequestTotalCount: 87
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.System,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 5
    ExecuteThreadTotalCount: 5
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2cfc8c
    Name: weblogic.kernel.System
    ObjectName: weblogic.kernel.System
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444754
    Registered: false
    ServicedRequestTotalCount: 124
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Non-Blocking,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 0
    ExecuteThreadTotalCount: 0
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d125d
    Name: weblogic.kernel.Non-Blocking
    ObjectName: weblogic.kernel.Non-Blocking
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444764
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.admin.HTTP,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 2
    ExecuteThreadTotalCount: 2
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d260e
    Name: weblogic.admin.HTTP
    ObjectName: weblogic.admin.HTTP
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444814
    Registered: false
    ServicedRequestTotalCount: 0
    Type: ExecuteQueueRuntime
    MBeanName: "mydomain:Location=myserver,Name=weblogic.kernel.Default,ServerRuntime=myserver,Type=ExecuteQueueRuntime"
    CachingDisabled: true
    ExecuteThreadCurrentIdleCount: 15
    ExecuteThreadTotalCount: 15
    ExecuteThreads: [Lweblogic.management.runtime.ExecuteThread;@2d3a8c
    Name: weblogic.kernel.Default
    ObjectName: weblogic.kernel.Default
    Parent: myserver
    PendingRequestCurrentCount: 0
    PendingRequestOldestTime: 1129990444854
    Registered: false
    ServicedRequestTotalCount: 7
    Type: ExecuteQueueRuntime
    D:\>
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

  • Questions about Access Manager tutorials available in netbeans site

    Hi
    Thank you for reading my post
    I have some questions about two tutoral which i find in :
    http://www.netbeans.org/kb/55/amsecurity.html and
    http://www.netbeans.org/kb/55/amsecurity-liberty.html
    here is my problem :
    we have some web services, now we want to have authentication applied for consumer who try to access our web services.
    we need to have most possible flexibility because we may deploy the server for a customer with an already established Identity database ( Database Table with user details)
    Also we need to have Transport level security using SSL.
    I read and studied both of them and now i have some questions :
    -I think Securing Web Services Using the SAML or UserNameToken is what we need for authentication and autorization of web service consumers?
    is that right?
    -Does Sun Java System Access Manager provide flexibility to authenticate user/password with a database table content?
    -How we can apply roles in Sun Java System Access Manager when we authenticate users ?
    Thanks

    Imagine that we want to have an end to end security for our web services
    we thought that we could use message level encryption to protect the soap message and also we should protect our web services from un-authenticated acess,
    we will use userName token for this.
    Our customer has large database which contains many user/password and role of those users.
    some of web services should be available to higher role (manager) and not for all users.
    so we should check a user role before we allows him/her to access a web service.
    my question is whether Sun Access manager can help us with this? or there are other configuration or packages that we should apply to have this feature.
    to explain more :
    our client side is a swing application, users enter username/password to login into system. after they loged in, we send user/pass every time user want to request some data from some services. (is it good to send user/pass every time?)
    We want Sun Access Manager to handle users authentication .
    We also need to handle role related authorization, can Sun access manager handle this?
    Thanks

  • Basic question about accessing card reader from browser

    Hi,
    I am very new to card technology. I have a very basic and general question not directly related to java cards.
    I need to write a web application that allows the user to read a card with a card reader.
    For that I maybe need to write an applet that has to access a native DLL and call methods
    to get the card ID. I already have that DLL (written in Delphi) that reads multi-technology cards.
    Then pass that ID to the application server to retrieve complete information
    about the card holder and display them on the user browser.
    Please could someone guide me on useful resources for that kind of development, for example
    already existing developments, personal experience, design solutions ?
    Thanks.
    Adriano

    Hi Joseph,
    One thing I forgot to tell is that I work with contactless cards and readers.
    Contactless cards use radio frequency. Despite this fact, the problem stays the same. I already have a Delphi DLL that reads contactless cards.
    What I need is a way to retrieve card holder information from a client browser. The card contains a unique ID. My idea is to use an applet that reads that ID on the client-side and then calls a servlet on the server-side to retrieve holder information associated with that ID, i.e. first and last names, and finally displays them on the client browser.
    So the card contains only the unique ID, a database on the server-side contains all other related data.
    Technically the applet has to call the DLL via JNI.
    Do you think that using an applet that way is a good solution, do you see simpler solutions, is there security issues ?
    Thanks.

  • Questions about accessing Oracle9i Database Release 2

    Hi
    I'm new to this whole process. My question is how do I access the Application Development portion(SQL+). Do I have to subscribe to the OTN network in order to receive a username, password and host string, in order to log into the SQL Plus application. Is there any documentation that explains how I am able to access the Oracle 9i Database and all of its functions. What do I have to do in order to access The OTN network

    This is fairly basic but it should get you to where you need: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch1.htm
    OTN

  • Question about Sun Java Calendar Server 7

    You downloadable forum, at [http://www.sun.com/software/products/calendar_srvr/get_it.jsp|http://www.sun.com/software/products/calendar_srvr/get_it.jsp],
    leaves one with two questions.
    -What databases are needed/supported by this MessageBoard System for backend storage?
    -What are the licensing details? May the MessageBoard/Communications Suite 7
    be installed and used in a commercial environment, free?
    -May Sun Java Calendar Server 7 be downloaded without the Communications suite?
    -Can it be run off an Apache Tomcat Server with J2SE,J2EE codebases?

    Although... at the top of this forum it says
    This is a forum for new Java developers to get acquainted with the technologies and tools associated with the Java Platform.It doesn't actually say anything about programming, not there nor in what follows. So it isn't surprising that the OP thought this was a suitable forum to ask about that server, which looks as if it might be a "tool associated with the Java platform".

  • Question about accessing CIFS with LUM user (permissions)

    Hi there,
    I have a question related to accessing a CIFS mount throught a user in a linux box.
    First of all, its a system based in OES11 sp2 & SLES 11 SP3. I have a cifs mount
    in /media/nss, with novell cifs, coming from a NSS Filesystem. This mount is mounted
    with a username/password with password policy, etc. I have four users LUM-enabled,
    in the Linux box, which should access the CIFS mount, but I have a permission denied.
    I have set trustees for the primary group for the 4 lum-enabled users and also I have
    addedd permissions for a group in the NSS volume, and add this group to the membership
    of the users, but doesnt works.
    I guess Im missing something or Im doing something wrong. Could anybody give me a pointer?
    Thanks!

    Antoniogutierrez,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Question about writing a web server

    I was asked to write a simple Web server that responds to HTTP requests received on port 808
    It has the following features:
    1.a request for an HTML document or image file should generate a response with the appropriate MIME type
    2.a request for a directory name with a trailing / should return the contents of the index.html file in that directory (if it exists) or else a suitably formatted HTML listing of the directory contents, including information about each file
    3.a request for a directory name without a trailing / should generate an appropriate Redirect response
    4.a request for a non-existent file or directory should generate an appropriate error response
    5/the Web server should be multi-threaded so that it can cope with multiple
    how to do it?
    may anyone help me please?

    As a startert for ten, try this that I had lying around form a previous
    forum response.
    java -cp <whatever> Httpd 808
    and connect to http://localhost:808 to get an eye-full.
    If you should use this for anything approacing a commercial
    purpose, I will, of course, expect sizable sums of money to be
    deposited in my Swiss bank account on a regular basis.
    Darn it! I'm serious!
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class Httpd
         implements Runnable
         private static String HTTP_400=
              "<HTML><BODY><H2>400 Bad Request</H2></BODY></HTML>";
         private static String HTTP_403=
              "<HTML><BODY><H2>403 Forbidden</H2></BODY></HEAD>";
         private static String HTTP_404=
              "HTML><BODY><H2>404 Not Found</H2></BODY></HTML>";
         public static void main(String[] argv)
              throws Exception
              new Thread(new Httpd(Integer.parseInt(argv[0]))).start();
         private int mPort;
         public Httpd(int port) { mPort= port; }
         public void run()
              try {
                   ServerSocket listenSocket= new ServerSocket(mPort);
                   System.err.println("HTTPD listening on port " +mPort);
                   System.setSecurityManager(new SecurityManager() {
                        public void checkConnect(String host, int p) {};
                        public void checkCreateClassLoader() {};
                        public void checkAccess(Thread g) {};
                        public void checkListen(int p) {};
                        public void checkLink(String lib) {};
                        public void checkPropertyAccess(String key) {};
                        public void checkAccept(String host, int p) {};
                        public void checkAccess(ThreadGroup g) {};
                        public void checkRead(FileDescriptor fd) {};
                        public void checkWrite(String f) {};
                        public void checkWrite(FileDescriptor fd) {};
                        // Make sure the client is not attempting to get behind
                        // the root directory of the server
                        public void checkRead(String filename) {
                             if ((filename.indexOf("..") != -1) || (filename.startsWith("/")))
                                  throw new SecurityException("Back off, dude!");
                   while (true) {
                        final Socket client= listenSocket.accept();
                        new Thread(new Runnable() {
                             public void run() {
                                  try {
                                       handleClientConnect(client);
                                  catch (Exception e) {
                                       e.printStackTrace();
                        }).start();
              catch (Exception e) {
                   e.printStackTrace();
         private void handleClientConnect(Socket client)
              throws Exception
              BufferedReader is= new BufferedReader(
                   new InputStreamReader(client.getInputStream()));
              DataOutputStream os= new DataOutputStream(client.getOutputStream());
              // get a request and parse it.
              String request= is.readLine();
              StringTokenizer st= new StringTokenizer(request);
              if (st.countTokens() >= 2) {
                   String szCmd= st.nextToken();
                   String szPath= st.nextToken();
                   if (szCmd.equals("GET")) {
                        try {
                             handleHttpGet(os, szPath);
                        catch (SecurityException se) {
                             os.writeBytes(HTTP_403);
                   else
                        os.writeBytes(HTTP_400);
              else
                   os.writeBytes(HTTP_400);
              os.close();
         private void handleHttpGet(DataOutputStream os, String request)
              throws Exception
              if (request.startsWith("/"))
                   request= request.substring(1);
              String path= request;
              File f;
              if (request.endsWith("/") || request.equals("")) {
                   path= request +"index.html";
                   f= new File(path);
                   if (!f.exists()) {
                        if (request.endsWith("/"))
                             path= request.substring(0, request.length()-1);
                        else if (request.equals(""))
                             path= ".";
                        f= new File(path);
              else
                   f= new File(path);
              if (!f.exists())
                   os.writeBytes(HTTP_404);
              else if (f.isFile())
                   getFile(os, f);
              else if (f.isDirectory())
                   getDirectory(os, f);
         private void getDirectory(DataOutputStream os, File f)
              throws Exception
              getDirectory(os, f, "");
         private void getDirectory(DataOutputStream os, File f, String prefix)
              throws Exception
              StringBuffer szBuf= new StringBuffer();
              String szTitle= "Index of /";
              if (!f.getPath().equals("."))
                   szTitle= "Index of " +f.getPath().substring(prefix.length());
              szBuf.append("<HTML><HEAD><TITLE>");
              szBuf.append(szTitle);
              szBuf.append("</TITLE></HEAD><BODY><H1>");
              szBuf.append(szTitle);
              szBuf.append("</H1><BR><PRE>");
              szBuf.append(
                   "Name                              Last Modified              Size<HR>");
              String dir= "";
              if (!f.getPath().equals(".")) {
                   dir= f.getPath() +"/";
                   szBuf.append("<A HREF=\"..\">Parent Directory</A><BR>");
              java.text.SimpleDateFormat fmt=
                   new java.text.SimpleDateFormat("EEE MMM d yyyy hh:m:ss");
              String[] list= f.list();
              for (int i= 0; i< list.length; i++) {
                   String path= list;
                   File d= new File(dir + path);
                   if (d.isDirectory())
                        path += "/";
                   szBuf.append("<A HREF=\"");
                   szBuf.append(path);
                   szBuf.append("\">");
                   szBuf.append(path);
                   szBuf.append("</A>");
                   for (int j= path.length(); j< 34; j++)
                        szBuf.append(" ");
                   if (d.isDirectory())
                        szBuf.append("[DIR]");
                   else {
                        szBuf.append(fmt.format(new java.util.Date(f.lastModified())));
                        szBuf.append(" ");
                        szBuf.append(formatFileSize(d.length()));
                   szBuf.append("<BR>");
              szBuf.append("</PRE></BODY></HTML>");
              byte[] buf= szBuf.toString().getBytes();
              os.write(buf,0,buf.length);
         private String formatFileSize(long size)
              if (size < 1024)
                   return "" +size;
              if (size < (1024*1024))
                   return (new Float(size/1024).intValue()) +"K";
              if (size < (1024*1024*1024))
                   return (new Float(size/(1024*1024)).intValue()) +"M";
              if (size < (1024*1024*1024*1024))
                   return (new Float(size/(1024*1024*1024)).intValue()) +"G";
              return "Massive!";
         private void getFile(DataOutputStream os, File f)
              throws Exception
              DataInputStream in= new DataInputStream(new FileInputStream(f));
              int len= (int) f.length();
              byte[] buf= new byte[len];
              in.readFully(buf);
              os.write(buf,0,len);
              in.close();

  • Question about RAC 10g on server running AIX and domain name changes

    We have several 10g clusters running on IBM p-Series AIX servers, and our company is changing the domain name for our network. I am concerned that if we do not change the domain names in the TNSNAMES.ora file and also the /etc/hosts file on each server, the cluster will no longer function. We are using CRS (version 10.2.0.3) and ASM within each cluster.
    Does anyone know where I can find information about changing the domain name that was set up as part of the CRS and database installs for RAC? Does anyone have experience doing this, and would be willing to share a few insights? Thanks in advance for any advice you can give!

    You may be able to use the VIPCA utility for RAC to change or modify the public and private settings for your domain names on AIX. Also, the Oracle 10g DBCA "Database Configuration Assistant" should be of use to change your settings for your RAC environment.
    Also, see here for a good IBM Redbook that covers Oracle 10g RAC on AIX platforms:
    http://www.redbooks.ibm.com/redbooks/pdfs/sg247541.pdf
    Regards,
    Ben Prusinski
    http://oracle-magician.blogspot.com/
    Regards,
    Ben Prusinski
    http://oracle-magician.blogspot.com/

  • Question about configurations in Old Server

    Dear All,,
    I have a Question !
    How will you find what are the configuration are in a server.. for example..
    Is the DB configured RAC or DATA guard ?
    Is RMAN configured or not ?
    because at any time we have to face this request for Client who they don't have details regarding their Server,, (in Old Support Projects).
    if i have a plan for a upgradation of database what are the documents i have to prepare and what are the steps i have to take at initial stage !
    Regards
    HAMEED

    Hameed,
    This should be documented and those documents should be provided by the clients.
    You could do some investigation but again this will not be correct or complete without the documentation. For example, for RAC you could query the dynamic views (gv$instance, v$instance on each node) but this assume you already know what servers are configured. Or, you could refer to the RAC/DataGuard/RMAN configuration MOS docs for Oracle E-Business Suite and go through the steps to verify if those configurations are presented or not.
    Thanks,
    Hussein

  • Question about 3750 as dhcp server

    hi,
    With two c3750 switches stacked one customer is  plannig to configure those switches to act as dhcp server for about three thousand clients.
    Can this configuration affect to the normal behaviour of the stack?
    Could come up some problems with this amount of clients?
    Thanks in advance

    uosambela wrote:hi,With two c3750 switches stacked one customer is  plannig to configure those switches to act as dhcp server for about three thousand clients.Can this configuration affect to the normal behaviour of the stack?Could come up some problems with this amount of clients?Thanks in advance
    Personally with that many clients i would look to use something like Microsoft Windows DHCP server. Using switches/routers as DHCP servers is fine for a few vlans or clients but for 3000 it is much easier to manage with a dedicated server.
    Jon

Maybe you are looking for