How to drop datafiles in oracle 10g r2

Hi all,
Db :oracle 10.2.0.3
os:solaris 10
tablespace name: jllp_tabs01
datafile:
/ora/data001/jllp/jllp_tbs01_tbl_1.dbf
/ora/data001/jllp/jllp_tbs01_tbl_2.dbf
/ora/data001/jllp/jllp_tbs01_tbl_3.dbf
/ora/data001/jllp/jllp_tbs01_tbl_4.dbf
its has consisting of 4 datafiles, I need to drop the 2 of them perminently.
the datafile are having data.
how to drop the datafiles.
please suggest me.

There is no way to drop the datafiles once they are added to the tablespace. The command given by Asif , offline drop won't actually drop the datafile but would be an indication only to Oracle that you would be dropping the entire tablespace after issuing this command. In 11g, there is a command to drop the datafile but only if it's completely empty.
HTH
Aman....

Similar Messages

  • How to recreate datafile in oracle 10g.

    pls tell me how to recreate datafile in oracle 10g...
    what are situation to recreate datafile
    Edited by: 898085 on Nov 18, 2011 9:16 PM

    898085 wrote:
    pls tell me how to recreate datafile in oracle 10g...
    what are situation to recreate datafile
    Edited by: 898085 on Nov 18, 2011 9:16 PMDid u mean create or recreate?
    if datafie is deleted then you may add it into existing tablespace.
    Try this : -
    1.)sqlplus sys/xx as sysdba
    2.)alter tablespace <tablespace_name> add datafile <datafile_name> size <give size>;
    HTH:-)

  • DROP DATAFILE in Oracle 10g Rel2

    Hi,
    I have dropped my test tablespace and forgot to include:
    'INCLUDING CONTENTS AND DATAFILES;'
    Now the tablespace is gone but the data file is ofcourse there.
    If I do following:
    ALTER DATABASE DATAFILE 'C:\ORACLE\ORADATA\ORABASE\TOOLS02.TOM'
    OFFLINE DROP;
    I get the error message:
    ORA-01516: nonexistent log file, datafile, or tempfile "C:\temp\ts_test.dbf"
    I checked the dba_data_files view and can not see the file.
    Can I just delete the file manually or do I need to
    to create a new tablespace and move the datafile to the new tablespace.
    And than drop the new tablespace including datafile and contents?
    Thanks

    Hi,
    >>Can I just delete the file manually ...
    Yes, you can
    Cheers

  • How to delete client from oracle 10g ASM

    Hi,
    I would like to know how to delete client from oracle 10g ASM, while configuring Dataguard in same windows os i have by mistake created the standby in ASM.
    However later i have corrected the datafile destination. My Primary database is in ASM and the standby in disk.
    Could anyone please tell me how do i delete the client from ASM. On view from asmcmd it shows db_unknown and from v$asm_client
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    Thanks and regards,
    shaan

    Hi Deepak,
    Pls see the result from the view, i wanted to delete stby
    SQL> select * from v$asm_client;
    GROUP_NUMBER INSTANCE_NAME
    DB_NAME STATUS
    SOFTWARE_VERSION
    COMPATIBLE_VERSION
    1 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    2 prim
    prim CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    1 stby
    stby CONNECTED
    10.2.0.1.0
    10.2.0.1.0
    regards,
    shaan

  • How to drop datafiles and contents

    how to drop datafiles and contents without dropping tablespace?

    May be this helps,
    http://www.mydigitallife.info/2007/08/04/how-to-rename-or-move-oracle-tablespace-datafile-to-another-location/

  • How to export AWM in Oracle 10g

    Hi All,
    Im doing export of my Analytical Workspace with option tables=AW$TEST, this command failed and thrown EXP-00055: CALLDETAIL_TEST.AW$TEST is marked not exportable, i checked NOEXP$ table and i can find my AW name in it, according to table definition i cann't perform export of those objects listed in NOEXP$ table right, I want to know from you pals how can i export AW and then import it ?
    Need your feedback asap.
    Thanking you pals in advance
    Hassan khan

    Abhii wrote:
    How to store image in Oracle 10g?
    any example ?http://www.google.co.in/search?rlz=1C1GGLS_enIN321IN321&sourceid=chrome&ie=UTF-8&q=How+to+store+image+in+Oracle
    HTH
    Aman....

  • Dropped sequences in oracle 10g

    Hi All,
    Can we get back the dropped sequences in oracle 10g?
    Command?
    Thanks.
    Edited by: user545846 on Apr 9, 2009 7:32 AM

    Thanks. Oracle site is accessible.
    This user has the dba previleges to select all tables. but still getting this error message:
    SQL> SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24;
    SELECT * FROM dba_sequences AS OF TIMESTAMP systimestamp - 1/24
    ORA-01031: insufficient privileges
    Please give your comment.

  • How to use iframes in oracle 10g

    I have to load two jsp pages in a single html . I have done that thru iframes. But i have to dynamically load the second jsp page in the frame 2 , when the user clicks upon certain details in the frame 1 jsp page. I have wriiten the code of document.iframe in format trigger attribute. It doesn't work. Is there any other way to achieve this. I want to load the frame 2 jsp page dynamically , according to the input i get from frame 1 jsp page.

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to Send mail in oracle 10g

    I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
    Thanks in advance

    This question have been asked many times on this forum, see if you get help from following:
    https://forums.oracle.com/message/5395438#5395438
    Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
    Check this out as well:
    http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
    You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
    Aneel

  • How to Use Profiler in ORACLE 10g

    Hi all,
    Anybody know how to use profiler in oracle 10g and also i couldn't able to install the enterprise manager console.is there any tools available for that.because i need to trace the execution of a stored procedure.waiting the reply.
    Sathish

    Hi,
    >>Anybody know how to use profiler in oracle 10g
    What do you mean "profiler". About Resource Limits/Create Profiles ?
    >>i couldn't able to install the enterprise manager console.
    What OS ?
    >>because i need to trace the execution of a stored procedure.waiting the reply.
    Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
    Cheers

  • How to Configure Webutil in Oracle 10g Developer Suit

    Dear All,
    How to Configure Webutil in Oracle 10g Developer Suit.
    Please give me the step by step solution.
    Thanks and Regards,
    Fazil

    This is a very frequently asked question. Searching the Forum or the Forms Help system would have given you your answer! Search Forms Help on "Configure WebUtil" and read the configuration guide and checklist articles.
    Craig...

  • Appropriate size for Autoextending datafile in oracle 10g

    Hi,
    I am using Oracle 10g 10.2.0.3.0 on linux 64 bit with 16GB RAM, one thing i want to find out that i have my schema datafile, which set on autoextend, i have set next size to 100mb, if the file reaches to its full does it make us wait for long to create a place of 100mb or should i reduce the size from 100mb to 10mb.
    What should be the appropriate Next size in Autoextend for oracle database in my case, if there is a performance problem like login delay in schema due to increasing in size of datafile then how do i find out because i do not have database diagnostic tools.
    Because today there was a delay in login to the schema and EM was showing wait, but i could not find out that why the wait was there, when i check the datafile size it was 1203 MB , i thought it may be due to the extension of data file but how do i confirm this thing.
    In the table DBA_ADVISOR_FINDINGS it is giving following problem
    Problem PL/SQL execution consumed significant database time.
    Symptom Wait class "Network" was consuming significant database time.
    Problem Wait event "TCP Socket (KGAS)" in wait class "Network" was consuming significant database time.

    Slow connect is not related with datafile extension.
    Regarding Wait event "TCP Socket (KGAS)"
    Please read Metalink note 416451.1
    How fast is tnsping to database, ping to database server?

  • How to install and configure Oracle 10g Express Edition on Fedora 11?

    Hi everyone!
    I have recently installed Oracle 10g XE on my Laptop Gateway T-1625, which has Fedora 11.
    I followed the install instructions on [http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm] , and configured the server as explained, but something is wrong... When I try to go to the database home page http://127.0.0.1:8080/apex, I get "Failed to Connect" on Firefox 3.5b4... I don't think it's because of the Firefox version because it's proved to be very stable (for a beta).
    I've search for similar issues on GNU/Linux and I found this thread in these forums: [ http://forums.oracle.com/forums/thread.jspa?threadID=915218&tstart=0] , but the solution is for Ubuntu 9.04, and if it's possible I would like to know a specific solution for Fedora 11.
    I also tried to see the oracle server status with:
    # /etc/init.d/oracle-xe status
    And I got this....
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 25-JUN-2009 22:10:31
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=talos)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    I hope someone can help me out and guide me on the right direction. Thanks a lot!

    Hi again!
    After your last post I realized that the dba group and the oracle user already existed.
    #groupadd dba
    groupadd: group dba exists
    #useradd oracle -d /home/oracle -s /bin/bash -g dba
    useradd: user oracle existsHowever, I finally assigned a password for that account and changed the ownership of the /usr/lib/oracle/xe
    with the commands you suggested:
    passwd oracle
    chown -R oracle:dba /usr/lib/oracle/xeAfter this, I can log in as the oracle user but the SELinux showed a warning and the /usr/lib/oracle/xe
    is treated as the oracle home, and no .bashrc file is located on this home. This is the SELinux warning:
    SELinux is preventing gdm-session-wor (xdm_t) "write" to /usr/lib/oracle/xe (lib_t).
    Details:
    SELinux denied access requested by gdm-session-wor. /usr/lib/oracle/xe may
    be a mislabeled. /usr/lib/oracle/xe default SELinux type is user_home_dir_t, but its
    current type is lib_t. Changing this file back to the default type, may fix your problem.
    File contexts can be assigned to a file in the following ways.
      * Files created in a directory receive the file context of the parent
        directory by default.
      * The SELinux policy might override the default label inherited from the parent directory
    by specifying a process running in context A which creates a file in a directory
    labeled B will instead create the file with label C.
        An example of this would be the dhcp client running with the dhclient_t type and
    creates a file in the directory /etc. This file would normally receive the etc_t type due
    to parental inheritance but instead the file is labeled with the net_conf_t type
    because the SELinux policy specifies this.
      * Users can change the file context on a file using tools such as chcon, or restorecon.
    This file could have been mislabeled either by user error, or if an normally confined
    application was run under the wrong domain.
    However, this might also indicate a bug in SELinux because the file should not have
    been labeled with this type.
    If you believe this is a bug, please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
    against this package.
    Allowing Acces:
    You can restore the default system context to this file by executing the restorecon command.
    restorecon '/usr/lib/oracle/xe', if this file is a directory, you can recursively restore using
    restorecon -R '/usr/lib/oracle/xe'.
    Fix command:
    restorecon '/usr/lib/oracle/xe'I suppose the command #useradd oracle -d /home/oracle -s /bin/bash -g dba is where I can define the user's home, but if this user already exists how can I modify its settings?
    is SELinux preventing the .bashrc file to be created? or what could be causing this?.
    I hope you know how much I appreciate your help and want to thank you for your time.

  • Can we Restore a Dropped Package in oracle 10g

    Hello,
    I have dropped a pl/sql package accidantly.The database is Oracle 10g R2. Is there any way to recover it.?
    Thanx.

    And if you don't already have source control for the code, make sure to implement it right now.
    At least I now have the answer to [this question|http://forums.oracle.com/forums/thread.jspa?messageID=3370251#3370251] I was asked a while back.
    Surely nobody in their right mind would ever work directly on source code saved in the database?

  • Error in Drop Table in Oracle 10G

    Hi All,
    When I try to drop any of the table in one of the oracle 10G database schema
    I am getting the following error.
    As for I know this error will come in PL/SQL cursor block if the exact fetch returns more than one row.
    Can any one explained the reason for this...
    Error on line 0
    DROP TABLE "TMP_GL_DATA2"
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01422: exact fetch returns more than requested number of rows
    Thanks in advance..
    Regards
    Karthik...

    Fix the error in your DDL trigger.

Maybe you are looking for

  • Complete Recovery from HOT BACKUP

    One of our server had media failuer. We are rebuilding new server and reinstalling oracle on it. I have hot backup of instance which I would like to recover. Can I have steps please. I will appreciate your help...!

  • Camera connection kit doesn't work...help

    I bought the camera connection kit and tried using 2 different SD cards to load my pictures onto my ipad and nothing happens when i plug it in. the USB piece works fine when i hook it up to my other camera but why can't i get the memory card piece to

  • Open new tab by right click

    in old firefox (3.6) when clicking the right click on a link , the " open link in new tab" was the second option. but now in the new firefox (4.0) it is the first option. is there is a way to make it the second option because this annoying me a lot .

  • How do I get iCloud onto my MacBook for free?

    Is there a way I can get iCloud onto my MacBook for free?

  • How to move printer setups from Panther to Tiger on another machine?

    I've got one G5 running Panther on which a whole bunch of network printers are set up. Setting them up from scratch is a hassle... I'm now installing Tiger on another machine and would like to import all the printer settings. Can this be done? Are th