Query Regarding LOGFILES In Database

*{color:#993366}Consider the following facts about database:*
*{color}*
{color:#ff00ff}{color:#0000ff}-The database is in NOARCHIVELOG mode
-The database has three redologgroups.
-All the groups have one member each.
-Redolog3 is the current group.{color}
{color}
Now, we had executed the following command:
SQL>ALTER DATABASE DROP LOGFILE MEMBER
2'D:\\ORACLE\\ORADATA\\MYDB\\REDOLOG3.LOG';
The command fails to drop a member. What is the reason displayed for droping of the failure of the command?
A)You cannot drop a member from a group as the database is in NOARCHIVELOG mode.
B)You cannot drop the last member in a group.
C)You cannot drop a member when a database is open.
D)You cannot drop a member until checkpoint completes.

user10182925 wrote:
Hi Guys,
I support with answer B only, Hope D is the correct answer if only two members were there...?Got confused why you are going to support with B?
Yours scenario says that you have 3 redo log group and 3rd group is current..
-The database has three redologgroups.
-All the groups have one member each.
-Redolog3 is the current group.Now according to above scenario
SQL>ALTER DATABASE DROP LOGFILE MEMBER 2'D:\\ORACLE\\ORADATA\\MYDBREDOLOG3.LOG';The command fails to drop a member. What is the reason displayed for droping of the failure of the command?
As yours redo log group 3 file is current which is being used ,unless DBWn writes all of those blocks that contained within this current log file then oracle no longer can reuse it nor can drop it.
As far as concern with B
B)You cannot drop the last member in a group.
According to given scenario B,you can drop last redolog group if you have remaining group not less then 2 you have 3 redo log groups as well this redo log is other then current or active.
Khurram

Similar Messages

  • Query regarding to sqlite3 Database

    I am new to SQLite. I could not connect to SQLite from a remote
    systerm using Java. If i share the DB file i can connect to the
    database.But as it is not good to share a file, let me know a better
    solution.
    Thank you.

    As far as I know databases have command line utilities for backing up data. You might call them using Runtime.exec()
    Not sure if that's the best way to do...
    ***Annie***

  • Query regarding backup of database

    Dear Developers,
    Greetings Of The Day !!!
    On button click from my swing application I want to take backup of database. How I can proceed with java.
    Any help would be appreciated
    Regards

    As far as I know databases have command line utilities for backing up data. You might call them using Runtime.exec()
    Not sure if that's the best way to do...
    ***Annie***

  • Query regarding Singletons and Database connection pool

    Hi there,
    I am trying to understand the Singleton pattern in relation to a pool of database connections.
    Frankly,I have not fully understood this.
    If my pool of database connections is set to 10, how can a singleton design come into this?
    In what way is this beneficial?
    Please can someone explain this?
    No offence meant

    bhuru_luthria wrote:
    Hi there,
    I am trying to understand the Singleton pattern in relation to a pool of database connections.They are related like a hiccup is related to a wiffle ball.

  • Regarding Generate New Database Job

    Dear All,
    I have a query regarding Generate New Database job while extracting Local DB to developers.
    I got a request from multiple developers to extract Local DB for them. Do I have to run the Generate Database Job multiple times or is it enought if I run it once and then continue with DB extract Job for all the users?
    Please help me out on this query?
    Regards,
    Abi

    Hi,
    As per oracle documentation -> http://docs.oracle.com/cd/B31104_02/books/RRAdm/RRAdmRM_RemoteConcpts12.html
    "The Generate New Database component creates the local database template for a given database schema version. The component reads the database schema definition from the Siebel repository, then creates Siebel tables and indexes in a database template file stored on the Siebel Remote server in the dbtempl subdirectory."
    Basically after any changes in schema you should run "Generate New Database" job again. That was the reason why I mentioned about generating it again.
    GL

  • Query regarding database access segregation using os authentication in windows environment

    Hi ,
    I have a query regarding database access segragation using os authentication (like sqlplus "/ as sysdba") in windows environment.Let me briefly explain my requirement:-
    Suppose you have two DBA`s viz DBA1 and DBA2 and 4 databases resideds in a windows server say A,B,C & D.Now I want to set up such a way if DBA1 logs into the server then he can login to database A and B only using OS authentication and DBA2 can login to database C and D only using OS authentication.
    Please let me know how to do setup for this requirement.
    Database version is 11.2.0.3

    1494629, I am not a Windows person but if there is any way to do this I suspect some additional information is necessary:
    Are the DBA users members of the Administrators Group ?
    Do all 4 database share the same $ORACLE_HOME ?
    I suspect if either answer above is yes then this is not possible, but like I said I am not a Windows person.  I would just ask for two servers and the associated licensing to be acquired.  The requirement to spend money to do something management wants usually elimanates the request in my world.
    HTH -- Mark D Powell --

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • Query regarding App V Deployment - (Deploying DriverMSI in App - V)

    Hi All,
    This is my query regarding deployment of a driver MSI using App V. I have tried sequencing "NMap software" which has Kernel driver as service. I have separated the Kernel driver and wrapped in an MSI and tried deploying the Kernel Driver MSI using
    the DeploymentConfig.xml file but its not happening.
    I have tried writing script in DeploymentConfig.xml in AddPackage Tag as shown in the below commands where I have added driver MSI in sequenced package, and tried deploying the DeploymentConfig.xml in powershell during Add-Package event but the driver
    MSI is not getting installed in Client machine.
    <AddPackage>
            <Path>msiexec.exe</Path>
            <Arguments>/i Nmap_KernelDriver.msi /qb /l*v c:\windows\system32\LogFiles\Install_Nmap.log</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </AddPackage>
          <RemovePackage>
            <Path>msiexec.exe</Path>
            <Arguments>/x {4BAB3E93-716E-4E18-90F0-1DA3876CBEB6} /qn</Arguments>
            <Wait RollbackOnError="false" Timeout="60"/>
          </RemovePackage>
        </MachineScripts>
    The other way I have tried is writing a vbscript for installing the driver MSI, added the vbs in sequenced package and called the same in DeploymentConfig.xml but no luck.Please find the command below.
    <!--
        <MachineScripts>
          <PublishPackage>
            <Path>wscript.exe</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\NMap_Driver_Install.vbs -guid 7c21d1e9-0fc4-4e56-b7bf-49e54d6e523f -name Insecure_Nmap_6.4_APPV</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </PublishPackage>
          <UnpublishPackage>
            <Path>\\server\share\barfoo.exe</Path>
            <Arguments>-WithArgs</Arguments>
            <Wait RollbackOnError="false" Timeout="30"/>
          </UnpublishPackage>
    Please suggest any method to make this successful or kindly let me know if there is any mistake in the script.
    Thanks in advance,
    Vivek V

    Hi Nicke,
    These are the following methods and steps that I have performed for installing Driver MSi.
    Method 1:
    1. Included the driver MSI in Package Files Tab in sequencer and called the same MSI in DeploymentConfig.xml using the below script.
    <AddPackage>
            <Path>msiexec.exe</Path>
            <Arguments>/i Nmap_KernelDriver.msi /qb /l*v c:\windows\system32\LogFiles\Install_Nmap.log</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </AddPackage>
          <RemovePackage>
            <Path>msiexec.exe</Path>
            <Arguments>/x {4BAB3E93-716E-4E18-90F0-1DA3876CBEB6} /qn</Arguments>
            <Wait RollbackOnError="false" Timeout="60"/>
          </RemovePackage>
        </MachineScripts>
    2. After the above steps, deployed the AppV package along with DeploymentConfig.xml in App V Client using the commands mentioned below.
    Set-ExecutionPolicy -Unrestricted
    Import-module Appvclient
    Set-AppVClientConfiguration -EnablePackageScripts 1
    Add-AppvClientPackage -Path "Path of the AppV file" -DynamicDeploymentConfig "Path of DeploymentConfig.xml"
    after trying the above steps the driver MSI is not getting installed.
    Method 2:
    1. Included the driver MSI and a VBS file(VBS contains script for calling the driverMSI)in Package Files tab in sequencer. Commandlines has been provided calling the vbs file in DeploymetConfig.xml as mentioned below.
    <!--
        <MachineScripts>
          <PublishPackage>
            <Path>wscript.exe</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\NMap_Driver_Install.vbs -guid 7c21d1e9-0fc4-4e56-b7bf-49e54d6e523f -name Insecure_Nmap_6.4_APPV</Arguments>
            <Wait RollbackOnError="true" Timeout="30"/>
          </PublishPackage>
          <UnpublishPackage>
            <Path>\\server\share\barfoo.exe</Path>
            <Arguments>-WithArgs</Arguments>
            <Wait RollbackOnError="false" Timeout="30"/>
          </UnpublishPackage>
    2. after executing the above steps, tried deploying the AppV file along with DeploymentConfig.xml using the commands mentioned below,
    Set-ExecutionPolicy -Unrestricted
    Import-module Appvclient
    Set-AppVClientConfiguration -EnablePackageScripts 1
    Add-AppvClientPackage -Path "Path of the AppV file" -DynamicDeploymentConfig "Path of DeploymentConfig.xml"
    evenafter trying the above methods the driver MSI is not getting installed. Hope you can understand my explanations above.
    Regards,
    Vivek V

  • Urgent query regarding performance

    hi
    i have one query regarding performance.iam using interactive reporting and workspace.
    i have all the linsence server,shared services,and Bi services and ui services and oracle9i which has metadata installed in one system(one server).data base which stores relationaldata(DB2) on another system.(i.e 2 systems in total).
    in order to increase performance i made some adjustments
    i installed hyperion BI server services, UI services,license server and shared services server such that all web applications (that used web sphere 5.1) such as shared services and UI services in server1(or computer1).and remaining linsence and bi server services in computer2 and i installed database(db2) on another computer3.(i.e 3 systems in total)
    my query : oracle 9i which has metadata where to install that in ( computer 1 or in computer 2 )
    i want to get best performance.where to install that oracle 9i which has metadata stored in it.
    for any queries please reply mail
    [email protected]
    9930120470

    You should know that executing a query is always slower the first time. Then Oracle can optimise your query and store it temporary for further executions. But passing from 3 minutes to 3 seconds, maybe your original query is really, really slow. Most of the times I only win few milliseconds. If Oracle is able to optimize it to 3 seconds. You must clearly rewrite your query.
    Things you should know to enhance your execution time : try to reduce the number of nested loops, nested loops give your an exponential execution time which is really slow :
    for rec1 in (select a from b) loop
      for  rec2 in (select c from d) loop
      end loop;
    end loop;Anything like that is bad.
    Try to avoid Cartesian products by writing the best where clause possible.
    select a.a,
             b.b
    from  a,
            b
    where b.b > 1This is bad and slow.

  • Frm-40208 from running in query mode. cannot change database fields

    Hi,
    Could some one help me with this.
    I am calling a form from another form. I am passing the parameter list to the calling form and doing a query by setting the block property. But when queries the message
    FRM-40208 Form running in query mode. cannot change database fields .
    I do not want the message to appear when they go the called form . Please some one could help me how could I avoid displaying the message.
    Regards
    Bain

    Hi,
    Good day! I am working with a module that also calls another form. It uses call_form with query mode parameter set to query_only. My problem is, whenever i call the other form using the call_form, it would display the called module and then as it populates the detail block of the called form, it will display frm-40208 from running in query mode. cannot change database fields per record. What I want is for the message to be displayed only once.
    I have tried capturing the error by using on-error trigger, but it doesn't go to that whenever the other form was being called. I think the message has to do with the post-query trigger, because it passes some values on a dbase block objects.
    Do you have any suggested solutions or workarounds to make the message display only once whenever the other form is being invoked by the call_form?
    I would greatly appreciate any suggestions/ideas.
    Thanks and regards,
    ASantiago

  • Tell me select Query that HITs the database Directly  ???

    Hi,
        I have a table, for this table in the Techinical Setttings I selected Buffering allowed, and buffering type is Full Bufferd.Now, I want a Select Query which hits the database directly, without fetching records from the BUFFER.
    Except using SELECT BYPASSING BUFFER query ????
        Regards,
    V.Raghavender.

    hi,
    ·        Any SELECT with a sub query or with joins
    ·        Any set function (COUNT, MIN, MAX, SUM, AVG)
    ·        GROUP BY
    ·        HAVING
    ·        SELECT DISTINCT
    ·        ORDER BY
    Examples:
    SELECT /*@ SAP BYPASSING BUFFER */ * FROM MYTAB
        WHERE KEY1 = ? AND KEY2 = ?
    SELECT * FROM MYTAB WHERE KEY1 = ?
    SELECT * FROM MYTAB
        WHERE KEY1 = ? AND KEY2 = ? OR KEY1 = ?
    SELECT MAX(DATA) FROM MYTAB WHERE KEY1 = ? KEY2 = ?
    SELECT * FROM MYTAB
        WHERE KEY1 = ? AND KEY2 = ? AND DATA =
       (SELECT DATA FROM MYTAB WHERE KEY1 = ? AND KEY2 = ?)
    if helpful pls award points.
    sri

  • Query regarding SCN

    Good day gentleman,
    I have a query regarding SCN, how can I know the current status of SCN(in oracle 9i) database , is there any view for that.
    I will also be grateful if some one will tell me on which events Oracle generates a new SCN number.
    With Regards
    Anshuman

    Sir..
    The current system SCN can be queried using dbms_flashback.get_system_change_number.
    The SCN of the last checkpoint can be found in v$database
    Virtually.. each time a modify takes place the scn is increased.
    Acr

  • DMV quesiton. Can not run the DMV query in non system database.

    As the title .I can run following query when I use  'use master' , But don't work at the DB which be created my myself.
    --Error massage
    Msg 208, Level 16, State 1, Line 1
    Invalid object name 'SYS.DM_EXEC_QUERY_STATS'.
    --SQL Version : 2005
    --compatibility level : 90
    --The query
    SELECT TOP 10
    QT.TEXT AS STATEMENT_TEXT,
    QP.QUERY_PLAN,
    QS.TOTAL_WORKER_TIME AS CPU_TIME
    FROM SYS.DM_EXEC_QUERY_STATS QS
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT
    CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP
    ORDER BY TOTAL_WORKER_TIME DESC

    Yes, you can run the query under none system database.... Make sure that  your db is set 90.....
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Query Regarding Fetching of Maintenance View

    Hi Experts
    I have one query regarding fetching of Maintenance View.
    My Maintenance View is consisting of only one table.
    so i am unable to fetch the data using inner join.i also found
    one FM VIEW_GET_DATA  which fetches entire table with out
    any condition it may lead to performance issue. kindly suggest
    how do i fetch the data from such Maintenance View.
    Thanks
    Nishita G

    Hi,
    You can Direct Use the DML operations on the Underlying Database Table.( example 'SELECT' Statement and use 'WHERE' Condition for required output ).
    Regards
    Pavan Kumar

  • Run query on all connected databases

    Is there a way to run a query across all the databases that you have connections to using a script.

    Fastest way I can think of is changing the connection in the drop-down list (upper right of the worksheet) between runs.
    Regards,
    K.

Maybe you are looking for

  • ESATA/USB Secure Hard Drive is not recongized

    Hi all, I got this cool external hard drive in my work and it have been workin great... until now. I had it connected to my computer and then my wife turn that computer into hibernation (ohh no), and since that I can't get my computer (any computer)

  • Dictation not working. Please help.

    Just bought an iMac. Updated to mountain lion yesterday. Wanted to try Dictation, but doesn't seem to work. Have tried rebooting, changing language preferences, region preferences etc etc. but still not working. Three blue dots appeared and then disa

  • Forgot to create Goodwill asset during asset migration

    Hi In the migration process ,w eforgot to create a goodwill as an asset in asset accounting,but we migrated the balances into the respective GL accounts now we need to create this asset because for local balances we have to post the depreciation plea

  • Oracle 9i Lite for Linux, which Distribution ??

    Hi, which Linux distribution can you recommend running 9i Lite ? I tried SuSE 7.3, and finally succeeded in running the mobile server after quite some problem. However failed to run the mobile server as apache module. So which distribution works with

  • Need Advice on Best Router to Connect to Fios Actiontec M1424WR

    From reading several of the postings I too want to connect a second router to my network to increase my connections speeds.  Currently I have fios 35/35 but of course I never reach such speeds wired or wireless.  So many routers are available but I w