How to turn a database status from "in recovery" to "online"?

How to turn a database status from "in recovery" to "online"?
We were trying to turn a datase to offline status using management studio - the operation was closed before it could reach the end.

Hi Brian,
Thanks for your feedback;
I have completed the following actions to solve the issue:
1. Start SQL Server in single user mode.
2. Check database status: there i noticed that it was normal
3. Restart SQL Server in multi-user mode
4. Check database status: normal
5. Check my data: ok
Thank you again
Lulu01
You should have wait for an while or atleaset you need to check in the sql errorlog, what phases it is or if any issues persists that shows in the errorlog messages.
also you would have been used sys.databases, to seewhat's the value for state_desc for your database.
Thanks, Rama Udaya.K (http://rama38udaya.wordpress.com) ---------------------------------------- Please remember to mark the replies as answers if they help and UN-mark them if they provide no help,Vote if they gives you information.

Similar Messages

  • How to get the Database type from weblogic Db connection

    I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
    What my question is how to get the database type from the connection.

    For a normal jdbc driver you can use
    Connection.getMetaData()
    To get the meta data, in particular the getDatabase...() methods.
    That might or might not work.
    However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out.

  • How to check Oracle DB Status from Windows batch file

    Hi,
    I need a script which can be used to check the Oracle Database Status from windows command batch file.
    Thanks,
    Kishore

    Hi Virendra,
    I have followed the steps mentioned in ur reply, But couldn't get the output.
    I am getting the below error
    C:\>db_utility.bat PLPDEV
    ERROR:
    ORA-12560: TNS:protocol adapter error
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_string>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    C:\>
    Below is my bat file
    @echo off
    set ORACLE_SID=%1
    echo sys/ltd1_plp as sysdba
    echo set cmdsep on
    echo set cmdsep '"'; --"
    echo set term on
    echo "select status from v$instance;"
    ) | sqlplus -s
    Thanks

  • How to Import/Export database tables from one server to other in oracle8i

    Hello friend,
    Please can any one tell me how to import/export groups of database tables from one server with oracle to another using VB.net. It would be nice if some one can provide some code of it.
    I am a software developer and I am in middle of a large project development, in which I need to export a large oracle database from one server to another efficiently.
    Its very urgent so please someone help me.

    At command prompt (source db)
    set ORACLE_SID=db_name
    exp system/password@db_name full=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\exp.log filesize=2000M
    Then ftp the export dump files (in binary) to the other server or copy to target server over the network.
    At command prompt (target db)
    set ORACLE_SID=db_name
    imp system/password@db_name full=y ignore=y buffer=104857600 file=(c:\file1.dmp, c:\file2.dmp....) log=c:\imp.log filesize=2000M
    If the path names of the datafiles are going to be different in the target server (as compared to the source), then precreate the tablespaces before import. Set buffer value accordingly.
    Message was edited by:
    FeNiCrC_Neil

  • How to view Work process status from Operating System level???

    Hi,
    How can I check work process status from Operating System in Unix. For example : In Windows, I can see the work process status from SAP MMC in WP Table.
    How can I view from Unix?
    Appreciate your feedback. Thanks.

    Hi,
    You can terminate. Please look into the menu given by DPMON carefully. You can kill the process using the k option.
    Otherwise you can also kill the process kill -9 <PID of the process>.
    Please do not terminate update and ENQ work process. This may lead to data loss. If the condition can not be control by killing some processes and again all the WPs are occupied. I recommend SAP system restart.
    Restart will ensure that all necessary roll backs happen and no data loss.
    With Regards,
    Saurabh

  • How to turn of debug output from the jdriver for Oracle

    We are running our builds with Ant and doing unit-tests with junit/cactus.
    The Weblogic jDriver produces what appears to be debug info on standard out which
    in turn is captured by junit in xml files reporting errors etc. The problem is that
    the WebLogic driver ( WL6.1 SP2) sometimes produces binary 0's ( see below) ending
    up in the result xml files, and that Ant's result xml parser cannot handle - (nor
    should it ).
    This is probably a bug in the c-code for the jdriver , the oci dll ?
    Would much appreciate how to turn off the debug(?) logging that the jDriver does:
    looks like this (look for the string "[6 binary 0's]"):
    Parsing: select length(SYSDATE) from dual
    Executing: select length(SYSDATE) from dual
    Parsing: select VALUE from V$NLS_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS'
    Executing: select VALUE from V$NLS_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS'
    Done logging in at: 60
    Connection: using OCI API: OCI8[6 binary 0's]
    Connection successfully established via plain JDBC
    DriverManager.getDriver("jdbc:weblogic:oracle:LSS_DBSVC_DEV_autobuild")
    trying driver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
    getDriver returning driver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]

    Hi Gunnar,
    I'd check your code for appearances of "DriverManager.setLogWriter" that set
    log writer to System.out. This is the way to get driver's debug output
    to standard out.
    Regards,
    Slava Imeshev
    "Gunnar Skogen" <[email protected]> wrote in message
    news:3d2972bb$[email protected]..
    >
    We are running our builds with Ant and doing unit-tests with junit/cactus.
    The Weblogic jDriver produces what appears to be debug info on standardout which
    in turn is captured by junit in xml files reporting errors etc. Theproblem is that
    the WebLogic driver ( WL6.1 SP2) sometimes produces binary 0's ( seebelow) ending
    up in the result xml files, and that Ant's result xml parser cannothandle - (nor
    should it ).
    This is probably a bug in the c-code for the jdriver , the oci dll ?
    Would much appreciate how to turn off the debug(?) logging that thejDriver does:
    looks like this (look for the string "[6 binary 0's]"):
    Parsing: select length(SYSDATE) from dual
    Executing: select length(SYSDATE) from dual
    Parsing: select VALUE from V$NLS_PARAMETERS wherePARAMETER='NLS_NUMERIC_CHARACTERS'
    Executing: select VALUE from V$NLS_PARAMETERS wherePARAMETER='NLS_NUMERIC_CHARACTERS'
    Done logging in at: 60
    Connection: using OCI API: OCI8[6 binary 0's]
    Connection successfully established via plain JDBC
    DriverManager.getDriver("jdbc:weblogic:oracle:LSS_DBSVC_DEV_autobuild")
    tryingdriver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
    getDriver returningdriver[className=weblogic.jdbc.oci.Driver,weblogic.jdbc.oci.Driver@3383e9]
    >
    >

  • How to change the IDOC Status from 30 to 03

    Hi Friends,
    In the Partner Profiles Collect IDOCS option is Selected and the Output mode is 4.
    In my Custom Program i am Using the Function Module MASTER_IDOC_DISTRIBUTE to generate the IDOCs
    I am getting the IDOCs of Status 30.
    then in my Custom Program, I am Submitting the IDOCs to RSEOUT00 program.
    to change the IDOC status from 30 to 03.
      SUBMIT rseout00 USING SELECTION-SCREEN '1000'
                   WITH docnum  IN  gt_range_idocs
                   WITH p_compl EQ 'Y'
                   AND RETURN.
    but still i am not getting the IDOCs of changed status.
    I need to get the Changed IDOC status and if the IDOC status is not changed then I need to generate an Error file for the IDOCs data and send that data to customers as a mail.
    so my requirment is to call the RSEOUT00 in the Custom Program and Change the IDOCs Status to 03.
      When i am Executing the RSEOUT00 Indidually by giving the IDOCs numbers, then the IDOCs Status is going to change to 03 from 30.
    Kindly Guide me how to proceed furthur
    Thanks in Advance,
    Ganesh

    Thanks Shrishit,
    RC1_IDOC_SET_STATUS changing the Status from 30 to 03.
    Its fine, But my Question is will IDOC Data will be reached to XI Server or not.??
    means is the functionality of this Program is same as the RSEOUT00.
    MY job is to change Status from 30 to 03 only
    and then Check the Status of those IDOCs, and if the IDOC is not sended to XI  i.e.;03 status, then I need to send the Details of IDOC (i.e.; data in filed IDOC) to Customer Mail ID through an Attachement.
    I hope you Understood my AIM, why I need to change the Status in my Custom Program only, by submitting IDOCs to this report .
    Kindly waiting for your reply,
    Thanks in Advance,
    Ganesh

  • How to Read a checkbox status from Controller

    Hi All,
    How can I read the checkbox status from the controller!.
    Note: I am using crm_ic tags
    Thanks, Sudeep..

    thanks.

  • How to change the user status from CJ01 transaction

    Hello All,
    I am doing a BDC in CJ01 transaction where there is a field called "User Status" .
    This field is not editable. However the requirement is to populate this field with some value based on some other entries.
    Is there any Function module / BAPI to update user status from CJ01.
    Thanks in advance.
    Regards
    Indrajit

    Hi Anbu
        Thanks for your kindness.
         I had got the proper badi definition ( RECN_CONTRACT ) before. I have try to implement the badi in my implementation YCL_IM_RECN_CONTRACT and below is my example codes. It can update the user status when the SAVE button is pressed. My example codes are below:
    METHOD if_ex_recn_contract~check_all.
      DATA:
          cl_recn_contract   TYPE REF TO cl_recn_contract.
      DATA: r_status_mngr TYPE REF TO if_reca_status_mngr.
      DATA: lv_status_profile TYPE j_stsma.
      DATA: lt_status TYPE re_t_status,
                ls_status TYPE LINE OF re_t_status.
      DATA: r_message TYPE REF TO if_reca_message_list.
      cl_recn_contract ?= io_object.
      CHECK if_before_store = 'X'.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->get_current_status
        IMPORTING
          ed_status_scheme = lv_status_profile
          et_status        = lt_status.
      lv_status_profile = 'ZBCIA01'.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status_profile
        EXPORTING
          id_status_profile = lv_status_profile.
      READ TABLE lt_status INTO ls_status INDEX 2.
      ls_status-stat = 'E0001'.
      ls_status-inact = ''.
      MODIFY lt_status FROM ls_status INDEX 2.
       CALL METHOD cf_reca_message_list=>create
         RECEIVING
           ro_instance = r_message.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status
        EXPORTING
          it_status           = lt_status
          if_only_user_status = 'X'
          io_msglist          = r_message.
      REFRESH lt_status.
    ENDMETHOD.

  • How to create the database schema from an existing TimesTen database ?

    Hello everybody,
    I'm a newbie to TimesTen database. Before doing complicated sql queries, I would like to obtain the database schema of TimesTen DB. I'm looking for a way to extract the schema of database (tables, keys, links between tables ...). When I was working on other db like postgreSQL, I was able to obtain the sql script of the database (for exemple, in order to re-create the database in an other server). Some software like PowerAMC was able to built the database model from these scripts.
    Do you know a way to obtain the same with TimesTen database ? Or with an other way ?
    Regards

    Hi,
    Take a look in the docs at ttSchema, this might do the trick.
    http://download.oracle.com/docs/cd/E13085_01/doc/timesten.1121/e13069/util.htm#autoId27
    Tim

  • How to access the database tables from application

    Hii all,
    The information in webcenter content, such as meta data fields, users, security groups etc are stored in
    database tables like-      Revisions, SecurityGroups, Users, DocType etc..
    Can we access this tables from an adf application or any webcenter application..
    If yes, then what can be the approach for that..??
    Another things, how can we create custom tables just like the predefined tables...??
    Any information regarding this.??
    Thanks

    Can we access this tables from an adf application or any webcenter application.Yes, you can - like to any other existing database. But I would strongly discourage you from any, but read-only access, or you can easily end up with inconsistent data.
    If yes, then what can be the approach for that..??Just create a database connection and define in your model what tables you want to access.
    Another things, how can we create custom tables just like the predefined tables...
    Actually, WebCenter Content provides functionality of creation of custom tables (see http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#autoId2 ) and these are probably the only good candidates for read-write access. See further in the manual what use cases are supported. Of course, you could do this even externally, but rather than Data Definition Language, I'd use services (if there are some).

  • I cant recieve texts from people with iPhones and I cant figure out how to turn my iMessage off from my Mac.

    How do I turn my iMessage off if I don't have my iPhone anymore?

    Follow the instructions under the heading "How to unlink a phone number" on this page.

  • How to find out Database version from SQLplus ?

    Which command do I have to type in sqlplus in order to get the underlying database version?

    SQL> conn /as sysdba
    Connected.
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    PL/SQL Release 9.2.0.4.0 - Production
    CORE 9.2.0.3.0 Production
    TNS for IBM/AIX RISC System/6000: Version 9.2.0.4.0 - Production
    NLSRTL Version 9.2.0.4.0 - Production
    SQL> select version from v$instance;
    VERSION
    9.2.0.4.0
    Regards,
    Sabdar Syed.
    null

  • How to connect with database 11g from jdk1.6

    Hi
    Actually i am a beginner to java, please provide some documents related to database connectivity and
    explain stepwise for connection to oracle database 11g using jdk1.6.
    Regards
    Dhabas

    Star with the [JDBC tutorial. |http://java.sun.com/docs/books/tutorial/jdbc/].
    LAter you should look up datasources and how to configure and use them.

  • How to change DTP Overall Status from Yellow to Red

    Dear all,
      if I choose "set overall status automatically", how can I change DTP overall status when I want to stop the DTP running? Thanks.

    Folks
    I know how frustrating this problem is even in netweaver 7.0 environment. I found a solution for this problem atlast and it works but a not direct way of resolving this issue.
    When this request is in yellow status and not able to change / delete the request, its actually in a pseudo status and it is a bug in the program. This request sits in table RSBKREQUEST with processing type as 5 in data elements USTATE, TSTATE and this 5 is actually "Active" status which is obviously wrong.
    All we need is, ask your basis person to change the status to 3 in both these data elements and then it allows to reload the delta. Once the delta is successfully loaded, you can delete the previous bad request even though it is still in yellow. Once the request is deleted, the request status gets updated as "4" in table RSBKREQUEST.
    Hope this helps.
    Thanks

Maybe you are looking for