Socket remains in "established"  state

In the following code, my program listens for input from port 1505. there are 3 PCs to connect to this port. if there is a data from the port there is no problem with thw connection and the sockets are closed and program continues. but when i see one of the computers goes to established state with no data from the port, it does not release the port. although i close sockets and streams in the code, it remains in established state. other computers trying to connect automatically goes to close_wait state and they remain in this state. Please help me solve this problem.
private void makeConnection() throws IOException, ClassNotFoundException, SQLException {
          ServerSocket serverSocket = null;
          Socket clientSocket = null;      
        try {
             serverSocket = new ServerSocket(1505);
        catch(IOException e){
                  System.out.println(" IOException");
                  serverSocket.close();
                  makeConnection();
        try {
              clientSocket = serverSocket.accept();
        } catch (IOException e) {
             System.out.println(" IOException : Accept");
            System.out.println("Accept failed.");
            //System.exit(1);
        BufferedReader in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
        String inputline;
        if((inputline=in.readLine()).equalsIgnoreCase(null)){
     System.out.println(" No Data");
     in.close();
     clientSocket.shutdownInput();
     clientSocket.setTcpNoDelay(true);
     serverSocket.close();
     clientSocket.close();             
             makeConnection();
        else{
             System.out.println(inputline);
             newAnaliz=new AnalizTokenizer2(inputline);
             inputsAndResults.setText(inputline+"\n");
             inputsAndResults.append(newAnaliz.getAnaliz());
             repaint();
             analiz=inputline;
             System.out.println(inputline);
             String analizType=newAnaliz.getAnalizType();
             newSend=new SendAnaliz(analizType, newAnaliz.getUnformattedText(), newAnaliz.getAnaliz());
             int len=newSend.getConnectionStatus().length;
             String[] constat=new String[len];
             constat=newSend.getConnectionStatus();
             setTextArea(constat);           
             in.close();
     //clientSocket.shutdownInput();
     serverSocket.close();
     //clientSocket.setTcpNoDelay(true);
     clientSocket.close();             
             System.out.println("Server Socket Closed"+serverSocket.isClosed());
             //System.gc();
             //new ListenAnaliz();
             //this.dispose();
             makeConnection();
     }

In the following code, my program listens for input
from port 1505. there are 3 PCs to connect to this
port. if there is a data from the port there is no
problem with thw connection and the sockets are
closed and program continues. but when i see one of
the computers goes to established state with no data
from the port, it does not release the port. although
i close sockets and streams in the code, it remains
in established state.You have this back to front. Clearly if the socket is ESTABLISHED nobody has closed it, and it will remain in that state, and your readLine() method will remain blocked, until the client closes the socket.
Other problems:
(a) makeConnection() calls itself endlessly and will eventually run out of stack.
(b) It also closes and reopens the ServerSocket unnecessarily, introducing timing windows during which clients will be unable to connect.
try {
     clientSocket = serverSocket.accept();
} catch (IOException e) {
System.out.println(" IOException :
ception : Accept");
System.out.println("Accept failed.");
//System.exit(1);
}(c) is this really meant to fall through? If you get an IOException here you will get an NPE below.
if((inputline=in.readLine()).equalsIgnoreCase(null)){
(d) How can a null string reference have case?
     in.close();
     clientSocket.shutdownInput();(e) This will do nothing as the socket is already closed by the previous line.
     clientSocket.setTcpNoDelay(true);(f) After the close this throws a SocketException. Clearly you have never executed this line of code.
     serverSocket.close();(g) Bad practice, see above.
     clientSocket.close();(h) Redundant but harmless.
     makeConnection();(i) Infinite recursion, see above.
     in.close();
     //clientSocket.shutdownInput();(j) You were correct to comment this out, it does nothing after the close.
     serverSocket.close();(k) Bad practice, see above.
     //clientSocket.setTcpNoDelay(true);(l) You were correct to comment this out: after the close it throws a SocketException.
     clientSocket.close();(m) Redundant but harmless.
System.out.println("Server Socket Closed"+serverSocket.isClosed());
     //System.gc();
     //new ListenAnaliz();
     //this.dispose();
     makeConnection();(n) Infinite recursion, see above.
Basically you seem to be expecting null from readLine() under the wrong conditions. See what the documentation actually says.
You should also look at some socket coding examples: this is weird.

Similar Messages

  • Most of the time queries remain in suspended state in our production environment.

    Most of the time queries remain in suspended state in our production environment.
    Not getting any solution.
    Thanks

    Wait typeS : PAGEIOLATCH_SH,PAGELATCH_EX is when requested page is in buffer and some other process/request
    is holding the lock in buffer.
    SQL will manage it internally , Have you faced in performance issue if yes the need to check
    1) Fragmentation of indexes. if fragmented the defrag it so that time of execution will less and will also reduce wait time. 
    2) Any missing indexes is there then create it
    3) Update statistics  status of tables.
    4) Check if any table scan is there the create appropriate indexes on that...etc ....

  • Datasource 0UC_SWTMSGDATA - request remains in yellow state

    hi all,
    we are using the datasource 0UC_SWTMSGDATA to extract message data for the switch documents.
    every time we scheduled the infopackage to load data into sap bi, the datasource extracts all data records to the bi.
    but at the end, when all records arrived at bi, the request remains in yellow state.
    do you have the same problem? what's the reason?
    we are already using the datasource 0UC_SWTDOC, it works fine.
    kind regards,
    phil
    Edited by: Philipp Südfeld on Jul 8, 2011 4:49 PM

    Hi,
    You have to check  the job status in SM37 in R/3 system. If it shows "Active mode", then you will be getting Yellow color in BW. You may have to wait till the job gets finished in R/3.
    Sometimes, transferring I-Docs take time.
    Regards,
    Suman

  • Job remains in active state indefinitely

    hello everyone,
    i had a request to create a spool for a background job.
    i was getting numerous spools getting created after my coding.i some how rectified the issue and a single spool is generated now.
    but the job remains in active state only.
    please suggest

    check at workprocess level, if the job doing nothing and showing Active on SM37 cancel it and rerun.
    -SS

  • Task remain in Ready state

    Hi Experts,
    When in am triggering my workflow, its task remains in Ready state. I always have to execute it manually. Could anyone of you please let me know what could be the reason?
    Thanks and Regards,
    Pritam Kunal

    Hi,
    Step is not executing its first step only. Sub workflow step is the alst step.
    Also, There is no need of any action by user. so no one will have to receive the workitem. this task is there to get some data by executing a method. This itself is not getting executing automatically.
    Workflow is active ans task is background task only.
    Thanks and Regards,
    Pritam Kunal

  • XML format reports always remain in running state

    When I fire any report which has text as the default output it finishes (ranging from 1 min to 30 min depending on the ) but when I change the output format to xml the report keeps on running even beyong 24 Hrs.Moreover there are some reports with default xml output format.They also remain in Running state.Can you please suggest what can be the issue?
    Regards

    Hi,
    Please mention the application release, database version, and the OS.
    Has this ever worked? If yes, any changes have been done recently?
    Is the OPP up and running? Can you find any errors in the CM log files?
    Please go through (Note: 364547.1 - Troubleshooting Oracle XML Publisher For The Oracle E-Business Suite) and see if it helps.
    Regards,
    Hussein

  • Ultrasearch schedules always remains in "LAUNCHING" state

    Hi,
    Our schedules always remain in LAUNCHING state and we cannot remove them :
    WKG-10303 : Schedule with LAUNCHING state can not be dropped
    Does anybodies know why our schedules cannot be executed ?
    We are on a Linux machine under VMWare and we have around 3Go RAM.
    Thanks for your help,
    Best Regards

    Hi,
    I'm not sure about the connection with Portal here.
    This forum, "Portal Search", is the best place for questions about Portal Search and Ultra Search integration with Portal.
    For any Ultra Search questions which are not regarding the integration with Portal, you will find Ultra Search specialists on the Ultra Search forum (Ultra Search

  • Sockets remaining open after connection failure

    Hi - I have a multithreaded application that runs as a daemon (always up) and uses OCI (10.2.0, 64-bit client). If a database connection or query fails for any reason, it is coded to keep on retrying on a set schedule until it succeeds. The application runs on RHEL 4 (64-bit) and is compiled with g++ 3.4.6. (It's nominally C++, but is really what I call "C with objects" as it doesn't use a lot of the standard C++-isms, though there are objects -- the OCI code in question is in a C++ object wrapper that I wrote.)
    Anyway, about 5 days ago, the database where most of the queries are run went down (it's a 10g server; I don't remember the exact version, but since it's down, I'm not sure it matters), and it has not come back up, although the hosts it runs on are up. Meanwhile, my application kept failing to connect and retrying, and the number of queries that this was happening to kept on growing as new ones are added every day. Unknown to me, the failed connection attempts were leaving open TCP sockets to the database that was down, until eventually the maximum open files on the system was exceeded and I was forced to reboot. Twice. (It happened again the next day.)
    From what I can tell, I am properly dropping the handles and such when a connection fails, so why are the sockets staying open? Is there anything that can be done to force the socket to close after a failed connect? This morning I changed all the queries to use a different database (that's actually up), but according to lsof, there are still 56 open sockets to the old (non-working) database, even though none of my program threads are actively trying to connect there anymore.
    The sockets do close, by the way, if the application is stopped and restarted. But they remain open as long as the instance that created them is still running. (I added a periodic restart to clean things up, but I'd really like to fix the problem instead of using a stopgap like this!)
    Sample code is below. This first bit is what is used to connect and log in. (Note that I have this mutex-locked -- I know OCI is supposed to be thread-safe if you use the OCI_THREADED attribute, but I've been having so many issues that I thought it was safer.)
    if (check_err(OCIEnvCreate(&env, (OCI_THREADED), (void *) 0, 0, 0, 0, (size_t) 0, (void **) 0)) != 0)
    fprintf(stderr, "Error allocating OCI environment handle\n");
    return;
    // Allocate error handle.
    if (check_err(OCIHandleAlloc((void *) env, (void **) &err, OCI_HTYPE_ERROR, 0, (void **) 0)) != 0)
    fprintf(stderr, "Error creating OCI error handle.\n");
    return;
    // Allocate server handle.
    if (check_err(OCIHandleAlloc((void *) env, (void **) &server, OCI_HTYPE_SERVER, 0, (void **) 0)) != 0)
    fprintf(stderr, "Error allocating OCI server handle.\n");
    return;
    // Allocate service handle.
    if (check_err(OCIHandleAlloc((void *) env, (void **) &svc, OCI_HTYPE_SVCCTX, 0, (void **) 0)) != 0)
    fprintf(stderr, "Error allocating OCI service handle.\n");
    return;
    [Note: these are snippets from two different functions; this is a C++ wrapper that uses OCI, so the above code is in the database object constructor, and below is a separate login function.]
    // Attach to server.
    retcode = OCIServerAttach(server, err, (text *) curDS, strlen(curDS), OCI_DEFAULT);
    if (check_err(retcode))
    fprintf(stderr, "Error attaching to Oracle server.\n");
    return(retcode);
    // Set server attribute in service handle.
    retcode = OCIAttrSet((void *) svc, OCI_HTYPE_SVCCTX, (void *) server, 0, OCI_ATTR_SERVER, err);
    if (check_err(retcode))
    fprintf(stderr, "Error setting OCI server attribute.\n");
    return(retcode);
    // Allocate session handle.
    retcode = OCIHandleAlloc((void *) env, (void **) &sess, OCI_HTYPE_SESSION, 0, (void **) 0);
    if (check_err(retcode))
    fprintf(stderr, "Error allocating OCI session handle.\n");
    return(retcode);
    // Set username attribute in session handle.
    retcode = OCIAttrSet((void *) sess, OCI_HTYPE_SESSION, (void *) curUser, strlen(curUser), OCI_ATTR_USERNAME, err);
    if (check_err(retcode))
    fprintf(stderr, "Error setting OCI username.\n");
    return(retcode);
    // Set password attribute in session handle.
    retcode = OCIAttrSet((void *) sess, OCI_HTYPE_SESSION, (void *) curPass, strlen(curPass), OCI_ATTR_PASSWORD, err);
    if (check_err(retcode))
    fprintf(stderr, "Error setting OCI password.\n");
    return(retcode);
    // Start session.
    retcode = OCISessionBegin(svc, err, sess, OCI_CRED_RDBMS, OCI_DEFAULT);
    if (check_err(retcode) != 0)
    return(retcode);
    // Set session attribute in service handle
    retcode = OCIAttrSet((void *) svc, OCI_HTYPE_SVCCTX, (void *) sess, 0, OCI_ATTR_SESSION, err);
    if (check_err(retcode))
    fprintf(stderr, "Error setting OCI session attribute.\n");
    return(retcode);
    If any of the above calls returns an error, the next call is to the database object destructor (also mutexed), which looks like this:
    if (connected && svc && err && sess && check_err(OCISessionEnd(svc, err, sess, OCI_DEFAULT)))
    fprintf(stderr, "Oracle - Error ending session\n");
    if (connected && server && err && check_err(OCIServerDetach(server, err, OCI_DEFAULT)))
    fprintf(stderr, "Oracle - Error detaching from server\n");
    if (connected && server && check_err(OCIHandleFree((void *) server, OCI_HTYPE_SERVER)))
    fprintf(stderr, "Oracle - Error freeing server handle\n");
    if (connected && svc && check_err(OCIHandleFree((void *) svc, OCI_HTYPE_SVCCTX)))
    fprintf(stderr, "Oracle - Error freeing service handle\n");
    if (connected && err && check_err(OCIHandleFree((void *) err, OCI_HTYPE_ERROR)))
    fprintf(stderr, "Oracle - Error freeing error handle\n");
    if (connected && env && check_err(OCIHandleFree((void *) env, OCI_HTYPE_ENV)))
    fprintf(stderr, "Oracle - Error freeing environment handle\n");
    Anyone else had this happen? Any insights/help would be greatly appreciated!
    Oh, one more note: though the application is multithreaded, none of the database objects or connections is shared -- each thread makes its own connections and maintains database objects separately. I added the mutex locks because Helgrind was reporting race conditions on handle allocations and deallocations.
    Thanks,
    --Tina                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hmm, I believe I did have an OCIHandleFree on the session handle in an earlier version of the code. I can't remember why I took it out, but I do remember that there was a reason -- it was causing a problem. (Yeah, I know, vague enough for ya?) Anyway, the OCI documentation said that when you call OCIHandleFree on the environment handle, any child handles would be implicitly freed, so I assumed it wouldn't be a problem. Still, I'll try putting it back and see what happens. Thanks.
    Oh, and to answer your question (about netstat), it said the processes were ESTABLISHED. But the Oracle server was down (although the hosts it resided on were up). The connection attempt failed with the error message:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Message was edited by:
    user613364

  • How can I get Navigation Menu Button to remain in down state after clicked?

    Hi there,
    I'm messing about with a Navigation Menu and would like to click on the button and once clicked, the button remains in its down state.  I can't seem to find a way of doing this?  Any pointers?
    Cheers

    We would need to see your live page and code to offer more meaningful answers.  But I wonder if what you really want is a "persistent page indicator" on your nav menu?
    HOME  |  PRODUCTS  |  CONTACT US
    When you're on the Home page, the HOME menu is highlighted.
    HOME  |  PRODUCTS  |  CONTACT US
    When you're on the Products page, the PRODUCTS menu is highlighted. And so on...
    See this related discussion -
    http://forums.adobe.com/message/2398026#2398026
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Call remains in "conferenced" state after the call is released

    We have a scenario where a lengthy recorded message is set up through a ICM call routing script.  If we call the number we assigned to the script using our hard phones the call is disconnected as soon as the recorded message is finished playing.
    When we use Cisco Administrator Desktop and the conference feature, the call remains in the "conferenced" state after the call has been released.
    My assumption was that our reports would be smarter than CAD and would get it right.  However, reporting agrees with CAD, it thinks the call remained on a conference call for the whole time.
    In the script we set some variables for the call, play the message through "RunExtScript" node, set a call type, than use the "ReleaseCall" node to disconnect the call. Any ideas how we can configure the script other than this?

    Hi,
    can you tell us more - do you have Translation Routing set up, perhaps?
    Also, can you take a look at the Router Log (on the Distributor server).
    And please swith the script to Monitoring mode to see where it fails.
    G.

  • Workflows remain in starting state

    There is a production sharepoint site and qa sharepoint site. The workflows were made and tested in the qa site. I then made templates of all the list associated and added them to the production sharepoint site. After that I recreated all the workflows because
    they were list workflows, and set them to go off when an item is created. However when ever an item is created all the workflows remain in a starting state and no amount of time changes it, for I still have a workflow starting from 2 days ago. What do I do
    to resolve this problem? As well this will all made using SPD 2010 and sharepoint 2010

    Hi,
    see whether these links helps you -
    http://blogs.msdn.com/b/chaun/archive/2013/05/16/if-your-sp2010-workflows-are-stuck-in-the-starting-state.aspx
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a6e6e83-b59f-4099-a86f-a07723ff2b98/workflow-stuck-in-starting-state-after-applying-sharepoint-2010-cu-december-2012?forum=sharepointadminprevious
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Service Application Remains in Stopping State Between Reboots

    These SharePoint service applications are a real pain!
    I'm trying to stop a service application, but it remains in a hung "stopping" state (even between reboots!). I've also tried to delete the service application from powershell using "Remove-SPServiceApplication $spapp". But it doesn't
    work. Additionally, this service application is associated with a SQL database that no longer exists. Is there a best practice for how to address this?
    Please help.
    Dave

    Hi Dave,
    Please provide more information about the issue service application.
    You could try executing the following command to unprovision the service:
    Get-SPServiceInstance
    $srvc = Get-SPServiceInstance "GUID"
    $srvc.Unprovision()
    More information:
    http://sharepoint.stackexchange.com/questions/16146/deleted-service-application-service-instances-remain
    Regards,
    Rebecca Tu
    TechNet Community Support

  • UltraSearch schedules always remain in "LAUNCHING" state

    Hi,
    We configured ultrasearch in our 10.1.4 portal to search among our portal pages.
    Our problem is that each time we create a new schedule, it always remains in state "LAUNCHING".
    We are under a linux server with 3Go RAM.
    Thanks for your help,
    Best Regards,
    JCA

    Hi,
    I'm not sure about the connection with Portal here.
    This forum, "Portal Search", is the best place for questions about Portal Search and Ultra Search integration with Portal.
    For any Ultra Search questions which are not regarding the integration with Portal, you will find Ultra Search specialists on the Ultra Search forum (Ultra Search

  • Fc Port Remains In "Initializing" State

    First of all, thank you for taking the time to read this.....
    We are trying to add an IBM P770 to our Cisco MDS 9000 Fabric Switch.  We've set the port to Fx mode, trunking off, rate-mode is shared.  For some reason the port remains in the "initializing" state.  The only way that we could get it to come up, is by putting the port into ST state.  Even when the port does come up, in ST mode, when you look at the Flogi database, the port doesn't appear.  Unfortunately, our support isn't through SmartNet, so we have to open support with another vendor.  Unfortunately, they are as stumped as we are.  We have read many online blogs, but nothing seems to help us.  None of us are Storage Network experts, so hopefully someone can help.  Again, thanks for taking the time to read this!            

    OK try this.
    Set the switch port type to auto and then get your unix admin to rmdev the hba (without the -d will be fine), then do a cfgmgr.
    Steven

  • Service remains in "offline*" state - how to reset it?

    Hello.
    Since two days ago, I've got a problem with one of the sevices on a S10 Sparc system.
    --($:~)-- svcs -a | grep \*
    offline*       Jan_08   svc:/application/oracle/database:RACE002
    --($:~)-- svcs -xv svc:/application/oracle/database:RACE002
    svc:/application/oracle/database:RACE002 (Oracle database)
    State: offline since  8. Januar 2008 03:43:55 CET
    Reason: Start method is running.
       See: http://sun.com/msg/SMF-8000-C4
       See: man -M /usr/share/man -s 5 ora-smf
       See: /var/svc/log/application-oracle-database:RACE002.log
    Impact: This service is not running.
    --($:~)-- tail /var/svc/log/application-oracle-database:RACE002.log
    database RACE002 is OPEN.
    [ Jan  7 03:41:45 Method "start" exited with status 0 ]
    [ Jan  8 03:42:52 Stopping because service disabled. ]
    [ Jan  8 03:42:52 Executing stop method ("/lib/svc/method/ora-smf stop database RACE002") ]
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    [ Jan  8 03:43:00 Method "stop" exited with status 0 ]
    [ Jan  8 03:43:54 Enabled. ]
    [ Jan  8 03:43:55 Executing start method ("/lib/svc/method/ora-smf start database RACE002") ]Ie., the service is in "offline*" since Jan 8.
    How do I get the service to change into any other different state, be it "online", "maintenance" or "offline"?
    --($:~)-- svcs -xv svc:/application/oracle/database:RACE002
    svc:/application/oracle/database:RACE002 (Oracle database)
    State: offline since  8. Januar 2008 03:43:55 CET
    Reason: Start method is running.
       See: http://sun.com/msg/SMF-8000-C4
       See: man -M /usr/share/man -s 5 ora-smf
       See: /var/svc/log/application-oracle-database:RACE002.log
    Impact: This service is not running.
    --($:~)-- sudo svcadm disable svc:/application/oracle/database:RACE002
    --($:~)-- svcs -xv svc:/application/oracle/database:RACE002
    svc:/application/oracle/database:RACE002 (Oracle database)
    State: offline since  8. Januar 2008 03:43:55 CET
    Reason: Start method is running.
       See: http://sun.com/msg/SMF-8000-C4
       See: man -M /usr/share/man -s 5 ora-smf
       See: /var/svc/log/application-oracle-database:RACE002.log
    Impact: This service is not running.
    --($:~)-- svcs svc:/application/oracle/database:RACE002
    STATE          STIME    FMRI
    offline*       Jan_08   svc:/application/oracle/database:RACE002
    --($:~)-- sudo svcadm mark maintenance svc:/application/oracle/database:RACE002
    --($:~)-- svcs svc:/application/oracle/database:RACE002
    STATE          STIME    FMRI
    offline*       Jan_08   svc:/application/oracle/database:RACE002
    --($:~)-- sudo svcadm clear svc:/application/oracle/database:RACE002
    svcadm: Instance "svc:/application/oracle/database:RACE002" is not in a maintenance or degraded state.
    --($:~)-- sudo svcadm refresh svc:/application/oracle/database:RACE002
    --($:~)-- svcs svc:/application/oracle/database:RACE002
    STATE          STIME    FMRI
    offline*       Jan_08   svc:/application/oracle/database:RACE002
    --($:~)-- sudo svcadm restart svc:/application/oracle/database:RACE002
    --($:~)-- svcs svc:/application/oracle/database:RACE002
    STATE          STIME    FMRI
    offline*       Jan_08   svc:/application/oracle/database:RACE002 Note: I'm not looking for an answer on how to make the oracle database RACE002 be available again. That can easily be done as "oracle" OS user and using "sqlplus" to send a "startup" command.
    I'm looking for a way to make SMF behave again. Because right now, I cannot use SMF to change the state of the service, which is a problem, as my backup scripts fail because of that :/
    Thanks a lot,
    Michael

    Hello again Michael, would you be able to post the output of the following procedure?
    4:41pm cmdrkeen@crossfire  /research #>svccfg
    svc:> select network/ssh
    svc:/network/ssh> listprop(except obviously with your service rather than SSH)

Maybe you are looking for