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***

Similar Messages

  • 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

  • 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 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 --

  • DAG - Backup failing on 1 DB only with error - The Microsoft Exchange Replication service VSS Writer instance ID failed with error code 80070020 when preparing for a backup of database 'DB012'

    Hi Board,
    i´ve search across the board, technet and symantec sites but did not found a hint about my problem.
    we drive a 2 node DAG (Location1-Ex1-mb1 
    Location2-exc1-mb1), on SP2 RU4 patchlevel with 40 Databases.
    Since some time the backup of one - and only one DB - is failing with these events, logged on the Mailboxserver on which the passive DB is hosted.
    Log Name:      Application
    Source:        MSExchangeRepl
    Date:          28.09.2012 00:37:17
    Event ID:      2112
    Task Category: Exchange VSS Writer
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Location1-Exc1-MB1
    Description: The Microsoft Exchange Replication service VSS Writer instance 1ab7d204-609a-4aea-b0a7-70afb0db38de failed with error code 80070020 when preparing for a backup of database 'DB012'.
    Followed by
    Log Name:      Application
    Source:        MSExchangeRepl
    Date:         
    01.10.2012 03:33:06
    Event ID:      2024
    Task Category: Exchange VSS Writer
    Level:         Error
    Keywords:      Classic
    User:         
    N/A
    Computer:      Location1-Exc1-MB1
    Description:
    The Microsoft Exchange Replication service VSS Writer (Instance 42916d80-36c1-4f73-86d0-596d30226349) failed with error 80070020 when preparing for a backup.
    The backup Application - Symantec Backup Exec 2010 R3 – states, this error
    Snapshot provider error (0xE000FED1): A failure occurred querying the Writer status.
    Check the Windows Event Viewer for details.
    Writer Name: Exchange Server, Writer ID: {76FE1AC4-15F7-4BCD-987E-8E1ACB462FB7}, Last error: The VSS Writer failed, but the operation can be retried (0x800423f3), State: Stable (1).
    Symatec suggests within http://www.symantec.com/business/support/index?page=content&id=TECH184095
    to restart the MS Exchange Replication Service – BUT the mentioned eventID
    8229 isn´t present on any of the both Mailboxservers.
    The affected Database is active on Location2-Exc1-Mb1 Server and in an overall healthy state. I found during my research, that below Location2-Exc1-Mb1 Server, there are not removed shadow copies present!
    This confuses me, since all Backups are normally taken from the passive copy of a Database.
    So my questions to the board are:
    * Does anyone is facing similar issues?
    * Can someone explain why snapshots are present on the Mailboxserver hosting the Active Database, whilst the errors are logged on the passive one?
    -          * Does someone know the conditions, why shadows copies remain and
    aren´t removed in a proper manner?
    What can cause the circumstance, that only 1 DB is facing such issues?
    Any suggestion is welcome!
    BR
    Markus

    Hi Lenora,
    I´ve encreases VSS / Exchange Backup Log levels to expert, before starting
    those things i´ve all tried now:
    - Backup from passive DB (forced within Symantec Backup Exec)
    - Backup from active DB (forced within Symantec Backup Exec)
    - Backup from passive DB without GRT enabled (forced within Symantec Backup Exec)
    - Backup from active DB without GRT enabled(forced within Symantec Backup Exec)
    All those attempts failed.
    But brought some more details - the backup against the active DB states, that there is still a backup in progress and therefore this backup is cancelled by VSS.
    The Solution was, that i´ve needed to restart the Exchange Replication Service on the Mailbox Server hosting the passive DB.
    Backups are working again on all DBs!
    THX for your replys.
    Best regards
    Markus

  • How to take backup of database on external hard disk

    Hi Team,
    We have a server with three instances SOX,GRC and SM2. We have attached
    a external hard disk to take backup of database. While taking backup of
    any database it gives error as attached. We can take backup of
    transaction log on server's disk but not on external disk. Kindly have
    a look on attached error and advice us.We are taking backup at sql
    server level.
    version: SQL SERVER 2005 64 bit
    Regards,
    Digambar

    Hi Markus,
    >You can´t backup a 210 GB database on a 200 GB disk...
    We learn a lot every day on these Expert Forums !  
    In fact, it could even be possible if it's the database enveloppe which is 210 GB and the actual data is less than 200 GB !
    I dare to hope that it's not a production system which is backed up with an external disk...
    Regards,
    Olivier

  • 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

  • How to backup MSSQL  database in ECC6

    Hi guys, i am doing patching for our internal ECC6 server. So i need to backup the database before run the patches. I have onliy done database backup in Oracle using Brtools. So i am not familiar with Ms Sql Server backup. Can anyone tell me step by step to do this backup and send me link or screen shot or any type of documents or guidence which help me to resolve this issue. I really appreciate a prompt reply from you guys. Would like to thank you in advance.

    Hello,
    you have to ensure that the SQL Server service (which is performing the backup) can access the share. To ensure this, start the SQL Server with an account that has enough rights on the share (domain user with write rights). You then should be able to create a backup device for the network share with
    use master
    exec sp_addumpdevice 'DISK','MyNetworkShare', '
    server\sharename\path\filename.bak'
    Then you should be able to perform a backup via DB13 to this device or directly with TSQL running
    backup database <SID> to MyNetworkShare
    Best regards
      Clas

  • 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

  • Backup of database online

    i am working oracle 8i standard vesion. i want to maintain dual servers for database. if one database goes down the other maintaing the backup of database should start immediately. all the users should automatically conect to this database. this is possible in wiint by maintaining BDC(back up domain server) which will have the users nfo and in case of primary server crash, bdc will start the user services. i would like to know whether this is possible with ORACLE 8i and how?
    one more question also i have, it is
    oracle free down loadable software is providing same features of licenced software or not. how many users are can connect to the oracle standars and enterprise edition(down loaded software). can be used for any software development
    i am available at [email protected]

    Plz check this doc
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/rmanops.htm
    regards,
    Shaan

  • 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

Maybe you are looking for

  • Error using BAPI_PO_CREATE1 to create po with ref to PR

    Hi all,      I am using FM BAPI_PO_CREATE1 to create a PO wrt PR. but while executing getting an error. No instance of object type PurchaseOrder has been created. External reference: Purchase order still contains faulty items Purchase requisition 100

  • How to disable inode-based ETag generation in WebLogic?

    Hello, Can you please suggest me how to do the subject? Thank you before hand! M

  • Making titles longer?

    I dropped a title template on my timeline and have edited the way I want it, and have added an animation that makes the text appear from off screen. My problem is I need to make the text appear longer on the screen at the end. If I drag the right end

  • IWeb won't publish my site, unspecified error

    i've been trying for the whole day now to publish my iweb site every time, it get half way through uploading then simply bums out it says there was an error publishing the site that a certain file couldn't be uploaded it's a different file each time

  • Dialoguer avec un fichier executable

    Salut tout le monde, J'aurais voulu savoir s'il était possible d'appeler un éxecutable (quelconque pas forcément un exe provenant de LabView!) et de récupérer et d'envoyer des données à partir de LV vers ce fichier? Merci, Johan