Delete database in unix

Hi,
We have a database DEVDB1 and We do not need it anymore. I want to delete it and all the files related to it.
Is there a process to follow or a command line to do it? aside from using OUI deinstall? because i can not run gui windows.
Can I just rm -r /u01/DEVDB1 folder?
Thanks
Edited by: 843228 on Apr 27, 2011 1:21 AM

connect with SQL plus as SYSDBA
Confirm that you are connected with the right database.
1. shutdown immediate
2. startup restrict mount
3. drop database;
If you also want to remove the oracle software then invoke the OUI and uninstall it. Step 1-3 will only drop your desired database.
Regards
Asif Kabir

Similar Messages

  • How to start a particular database in unix/linux

    Hi,
    Could any one tell me how to start a particular database in Unix/Linux assuming that my server consists of 10 databases.
    Can we use LSNRCTL tool for this??
    Regards,
    Nagarjun.

    > Could any one tell me how to start a particular database in Unix/Linux
    assuming that my server consists of 10 databases.
    There is something very wrong in basic understanding of Oracle RDBMS architecture, when running 10 Oracle instances on a single server.
    10x temp space. 10x redo space. 10x SGA. 10x system processes footprint. This is NOT how one scales Oracle and NOT how one uses Oracle optimally.

  • How to connect oracle database in UNIX OS

    Hi All
    can any one help me on how to connect to oracle database in UNIX system(PUTTY)..
    Generally what i am doing is
    1) login with my user name
    2) trying to connect oracle using the command sqlplus -s username/password
    showing error SQLPLUS: not found
    Do i need to go any path where oracle is install? iF yes, how to find out that? or any other step to connect? Please help me by giving the sequence of steps...
    Regards
    Prem Raj Dasari

    What is your database version?
    can any one help me on how to connect to oracle database in UNIX system(PUTTY)..
    Generally what i am doing is
    1) login with my user name
    2) trying to connect oracle using the command sqlplus -s username/password
    showing error SQLPLUS: not found
    Do i need to go any path where oracle is install? iF yes, how to find out that? or any other step to connect? Please help me by giving the sequence of steps...You need to source the database env file before running sqlplus.
    R12 -- Maintaining Oracle E-Business Suite Documentation Set
    http://docs.oracle.com/cd/B53825_08/current/html/docset.html
    11i -- Maintaining Oracle Applications Documentation Set
    http://docs.oracle.com/cd/B25516_18/current/html/docset.html
    Thanks,
    Hussein

  • Write blob data from database to unix server

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

    Hi all,
    I need to send the attachment file into the mail. I have a header form in which I have implemented Download/Upload functionality using Apex user guide. When ever a user fill all the entries and submit the form then some field information along with attachment I need to send to the user.
    I mean when ever user hit the submit button it should take blob data from my custom table tmp_downlod_files and send to the user as an attachment.
    I have searched the post and got lot information but not able to get succeed.
    I have implemented java stored procedure for sending automatic mail when user is submitting the form but what I need is to take blob content from database and send as an attachment.
    1: So I need to write blob content from custom table to unix server in some location and from there I need to attach that file.
    2: the java store which I have implemented for sending automatic mail is working and one argument is attachment which I am passing null for now. So mail is working how to write the file from database to unix server and send as an attachment.
    What I did for writing file from database to unix server:
    1:
    CREATE OR REPLACE PROCEDURE trx_blob_to_file (l_header_id IN NUMBER)
    IS
    BEGIN
    FOR rec_picture IN (SELECT ID
    FROM TMP.tpx_download_files
    WHERE header_id = l_header_id
    AND mime_type LIKE ('image' || '%'))
    LOOP
    DECLARE
    l_out_file UTL_FILE.file_type;
    l_buffer RAW (32767);
    l_amount BINARY_INTEGER := 32767;
    l_pos INTEGER := 1;
    l_blob_len INTEGER;
    p_data BLOB;
    file_name VARCHAR2 (256);
    BEGIN
    SELECT blob_content, filename
    INTO p_data, file_name
    FROM tpx_download_files
    WHERE ID = rec_picture.ID;
    l_blob_len := DBMS_LOB.getlength (p_data);
    l_out_file :=
    UTL_FILE.fopen ('/home/oracle/interfaces/out/upld',
    file_name,
    'wb',
    32767
    WHILE l_pos < l_blob_len
    LOOP
    DBMS_LOB.READ (p_data, l_amount, l_pos, l_buffer);
    IF l_buffer IS NOT NULL
    THEN
    UTL_FILE.put_raw (l_out_file, l_buffer, TRUE);
    END IF;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_FILE.fclose (l_out_file);
    EXCEPTION
    WHEN OTHERS
    THEN
    IF UTL_FILE.is_open (l_out_file)
    THEN
    UTL_FILE.fclose (l_out_file);
    END IF;
    END;
    END LOOP;
    END;
    2: I have written a PL/SQL process and calling the above procedure on SUBMIT:
    DECLARE
    l_header_id NUMBER;
    l_filename VARCHAR2 (200);
    BEGIN
    SELECT header_id, filename
    INTO l_header_id, l_filename
    FROM tpx_download_files
    WHERE header_id = :p35_sr_header_id;
    trx_blob_to_file (l_header_id);
    END;
    But it is not writing the file from database to unix server.
    If I can get how to make working to write file from database to unix server then I will hopefully can send an attachment.
    3; I have given
    GRANT EXECUTE ON TPX_BLOB_TO_FILE TO PUBLIC.
    And
    GRANT EXECUTE ON UTL_FILE TO PUBLIC.
    Where I am doing wroung can anyone guide me or any other approach is appreciated.
    I am already late so I need soon. Please help.

  • Installing 11g database in Unix

    I was installing 11g database in Unix
    Port number 1521 was not free and I was hit by this issue
    Checking for ip_local_port_range=1024 - 65000;
    found ip_local_port_range=10000 - 65000. Failed <<<<
    In this case if I wanna use some port other than default one (1521) should the parameter LOCAL_LISTENER be set in init.ora file or can I directly make a entry for listener in listener.ora and can I start it ...
    My listener.ora file looks like this
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /SLOTS/slot04/appmgr/Ora11g_Home)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = adorcl)
    (ORACLE_HOME = /SLOTS/slot04/appmgr/Ora11g_Home)
    LISTENER_ADORCL =
    (DESCRIPTION =
    (ADDRESS_LIST=
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ap6305rt.us.oracle.com)(PORT = 1522))
    But when I start the listener I get a error syaing that
    TNS-01150: The address of the specified listener name is incorrect
    Let me know what should be done

    I have installed 11g database in Unix machine .
    After completing my installation I tried executing catalog.sql and catproc.sql but I faced this issue
    ERROR at line 1:
    ORA-06553: PLS-213: package STANDARD not accessible
    So I tried running standard.sql script to resolve the same
    but I faced this error when i executed standard.sql
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 16 bytes of shared memory ("shared pool","select
    obj#,type#,ctime,mtim...","sql area","tmp")
    So I thought of changing parameters in SGA as
    log_buffer = 1048576
    shared_pool_size = 80M
    java_pool_size = 10048576
    db_cache_size = 10M
    workarea_size_policy = AUTO
    pga_aggregate_target = 10M
    in init.ora file . The I did shutdown by db and tried starting it .
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 140365824 bytes
    Fixed Size 1295952 bytes
    Variable Size 103090608 bytes
    Database Buffers 33554432 bytes
    Redo Buffers 2424832 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 13774
    Session ID: 49 Serial number: 5
    So I tried checking the alert.log file to resolve the same , but i was not able to understand what has to be done
    ORA-00704: bootstrap process failure
    ORA-39700: database must be opened with UPGRADE option
    Error 704 happened during db open, shutting down database
    USER (ospid: 15636): terminating the instance due to error 704
    Instance terminated by USER, pid = 15636
    Let me know what has to be done ?

  • How to delete database using sql

    I have to delete some databases from oracle 8i. I tried it using the Database Configuration Assistant and I get stuck indefinately as the message always says connecting but nothing happens.
    How can I delete databases using sql not thru the DCA?
    Thanks

    files related to the database and follow these steps:
    1.- shutdown the database
    2.- Delete all files ( Control Files, .dbf, Redo's, Archive�s, parameter file, password file )
    3.- Delete the entrance of this database from
    listener.ora and from tnsnames.ora files.
    and that's it.
    Joel P�rez

  • Delete database with lost initdb.ora

    Hi guys. How can i delete database with lost init file? I just want to recreate the database (with out any recovery or restoring process)
    1. I can't start it because i don't have init.
    2. I can't drop database because i can't start.
    3. I can't recreate database using dbca because the same name somewhere exists:(
    Edited by: America on Jan 18, 2009 12:03 PM

    1. I can't start it because i don't have init.
    recreate init file... you can copy init.ora to init<SID>.ora and then modify DB_NAME and control_files parameters...
    2. I can't drop database because i can't start.
    You can delete manual by remove datafiles, redo file and control files ... After that use "DBCA" to force remove....
    3. I can't recreate database using dbca because the same name somewhere exist
    On DBCA .... You should delete old database before....
    DBCA can delete your database ... by not start database ... that remove databae name from oracle.... But, You have to manual delete on location PATH... Before start "DBCA" to create new database....

  • Can Grid Control on Windows monitor databases on UNIX?

    If I install Grid Control on a Windows pc can I use it to monitor databases on UNIX?

    There are two reasons I have to reboot the box.
    1.You know, Windows always needs "update and reboot".
    2.Sometimes I got the EM error message "Count of targets not uploading exceeded the critical threshold " from all hosts, but I am sure all hosts and agents were working normally.
    After receiving errors, I found the grid control can't show the right chart on the performance tab.
    Then I reboot the box and everything works fine again.

  • I want to recover the Deleted Database

    We have an accidentally deleted the database, there is no recent backup file for past 5 months. I want to recover the deleted database. Please give an idea/Suggestions to recover the database. And also we tried some third party tools like kernal,SQL Recovery,Steller
    Phenix and those tools are repairing the corrupted database,but it could not find the deleted ".mdf" file for the database. Please give a best steps/suggestions to recover the database.

    Is there any option to recover the ".mdf" and ".ldf" files  of deleted database by using file recovery softwares
    You can try some of the Windows "undelete" tools, but there is no guarantee it will work or that the database files will be in a valid state afterwards.
    The only reliable way is to restore a backup ... which you don't have.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Drop database vs. dbca delete database

    So I'd like to delete this database: control files, datafiles, log files, spfiles, everything. leave no trace.
    I can use good old sqlplus and run "drop database;", or I can use DBCA and do "delete database".
    What is the difference?
    Documentation clearly explains what "drop database" will do, but it does not explain what DBCA is doing (maybe just running drop database behind the curtains?).

    from the book of «OCP - Oracle Database 10g Administration I», Chap 3. -- Using the DBCA to Delete a Database p 3 - 14
    «Dropping a database involves removing its data files, redo log files, control files, and
    initialization parameter files. The DROP DATABASE statement deletes all control files and all
    other database files listed in the control file. To use the DROP DATABASE statement
    successfully, all the following conditions must apply:
    • The database must be mounted and closed.
    • The database must be mounted exclusively—not in shared mode.
    • The database must be mounted as RESTRICTED.
    An example of this statement is:
    DROP DATABASE;
    The DROP DATABASE statement has no effect on archived log files nor does it have any effect
    on copies or backups of the database. It is best to use Recovery Manager (RMAN) to delete such
    files. If the database is on raw disks, then the actual raw disk special files are not deleted.»
    there is no distinction between the DBCA Delete a database and the drop database statement.

  • Delete Database Automatically When Application Uninstalled

    Hi,
    I wrote one application which stores the Contact number as well their personal details.. every thing working well. To run my application i am using SunWTK2.5 Default Color Phone Emulator. I run my application successfully. To store the personal information i am using Perst Lite Data base and i am using perst-jsr75.jar to store the data base in root.
    Here my issue is : i would like to delete Database from the root when we Uninstall the Application
    Can any one Help Me Out.....
    Advance Thanks for Any suggestion or Examples

    I recommend rewriting the database using RMS. It works quite well, and will automatically uninstall itself upon application uninstall.

  • Delete database

    how to delete database? without using dbca
    regards
    neo

    Hi
    Again I have no idea why you'd want to drop your database but I will help you perform the "delete". Before we do this it will be a good idea to take a backup of your db (just in case you want it back later ) :-)
    Assuming its not production, hence not BIG in size, we will go for a cold backup.
    Connect to your db as sysdba
    sqlplus "/ as sysdba"
    Get details about your db files
    SQL>SELECT FILE_NAME FROM DBA_DATA_FILES;
    SQL>SELECT FILE_NAME FROM DBA_TEMP_FILES;
    Note the path and filenames as we will need to backup these files.
    SQL>shutdown immediate;
    Now copy the files that you noted earlier to some other location.
    Also make a copy of your initSID.ora file to the backup location.
    Now run
    C:\>ORADIM - DELETE -SID sid <- yourdbname
    Database "Deleted" as you requested.
    Rgds
    Adnan

  • How to delete database

    hi...i have a problem...may be its a silliy question...but am stuck...
    I have ran the 11g R2 setup for oracle server twice in my local machine without selecting the option CREATE STARTER DATABASE. so no initial schema gets created. Now I want to delete one of the server because it is making my machine slow. When I am running the DBCA to delete that, the DELETE DATABASE option is disabled.
    How can I delete that???
    please help...

    ohhh am very sorry for my misinterpretation....actually i want to delete the server..means I have run the OUI and install the product twice in my machine widout creating a database...So i want to delete those....
    I have tried through running the OUI again and select deinstall products and selected those two db homes...it got deleted successfully....
    thanks a lot... :) :)

  • Free access to R12 Vision Demo including database and unix

    DiligentSolutions presents Oracle E-Buisness Suite 12.1.3 for all the ERP enthusiasts with full access to Applications including Database and Unix access for licensed customers/partners and clients.
    Please note that the Oracle CSI Number is required to gain access to Oracle VISION.
    Registrations can be made at their website http://diligentsolutions.net/?q=pages/form/access-diligentsolutions-oracle-vision-registration
    Thanks and Enjoy

    Pay Oracle for the documentation or attend
    the class conducted by Oracle will do.

  • Deleting database instances of previous Oracle Installations

    How to delete database instances of previous Oracle Installations
    I have Installed new instance of Oracle onto my server but on services window I can still see the older instances of oracle.
    Apart from this I am unable to create database instance with same name as previous instance name.

    Search in the windows registy and delete all occurrence of Oracle

Maybe you are looking for

  • Video imported from iPhone 4 to iPhoto cuts out

    I had a video I took on my iPhone 4 and watched it several times on the phone and it was fine... Accidentally imported it with some photos and selected delete from phone because I thought it was just the pics... Now when I view the video in iPhoto th

  • How to print Current date and time

    In my program I put in java util.Date now = new java.util(Date); the next line is: System.out.println("Today's Date is = " + Date); when I try to compile it, I get "1 Error" what do I do wrong? Thank you for your help: Charles.

  • [Novice Problem] With CharacterFormat

    Hi everybody, I am working with TLF for few days and I don't understand something... I have created a textflow, and I want to apply a style (color, fontFamily...) on selected characters But when I use CharacterFormat, the style is applied on all the

  • RemoteFX not working

    getting the following error when starting the VM with synthetic adapter: 'poc-vdi.contoso.local' Microsoft Synthetic 3D Display Controller (Instance ID {113560EA-48CD-4BD1-8828-FCEC44E2B5D5}): Failed to Power on with Error 'Insufficient system resour

  • Session geting disconnected before IDLE_TIME in profile

    Hi ! My database is : SQL> select * from v$version; BANNER Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production PL/SQL Release 9.2.0.4.0 - Production CORE 9.2.0.3.0 Production TNS for Linux: Version 9.2.0.4.0 - Production NLSRTL Version 9.2.0.4