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

Similar Messages

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

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

  • CPU Requirements for Oracle 10G Rel2 on RH Linux 3 (Linux x86)

    Hi,
    Can anyone tell me how to decide on the CPU (Speend and no. of CPUs) for Oracle 10G Rel2 on RH Linux 3 (Linux x86)?
    Thanks in Advance.
    Prachi

    the more , the better

  • Upgrade path for Oracle XE to Oracle 10G rel2 Standard/Enterprise Edition

    Good day,
    We are currently have application using Oracle 10G XE. Is there a document guide available to assist migration/upgrades from Oracle 10G XE to Oracle 10G Rel2
    Thank you in advance for your guidance

    You can use import/export from within the apex application control to move apex applications, or if you are just interested in moving a database (and don't use apex) you can use exp/imp.
    ~Jer

  • Oracle 10g rel2 Forms on windows Vista (Patches7047034 and Opatch 6880880).

    Hello All,
    I have been trying to apply patch 7047034 by using Opatch Universal Installer (Opatch 6880880). But I have not been able to do this. The main reason of applying this patch is to enable my forms 10.1.2.0.2 to be upgraded to 10.1.2.3., so that it can run on windows vista with Internet explorer 7.
    At the momment it does not run the forms it just show a grey page after trying to run the Test.fmx form.
    If I try to run any other form it comes up with an ORA-12560 :TNS: Protocol Adapter Error.
    When I click on the ok button, it comes up with the login page. When I try to re-login without entring the connect identifier it comes up with thesame error message ORA-12560 :TNS: Protocol Adapter Error.
    But when i try relogin using a connect identifier it comes up with ORA-12154: TNS: Could not resolve connect identifier specified. Then a grey page is all i see on the screen. I found that a bit strange since am already logged on, on forms 10g. Why is is it still asking me for further credentials.
    Having read several literature from the forum i thought the patch was what i needed. And this is what i did to apply the patch.
    After setting environment variable ORACLE_HOME
    C:\DevSuiteHome_1>set ORACLE_HOME=c:\oracle\product\10.2.0\db_1
    C:\DevSuiteHome_1>cd opatch
    C:\DevSuiteHome_1\OPatch>set ACTIVE_STATE__PERL=TRUE
    C:\DevSuiteHome_1\OPatch>opatch apply c:\DevSuiteHome_1\OPatch\p7047034_10105_WI
    NNT
    "OPatch could not detect Perl. Please set PERL5LIB appropriately and invoke Perl
    "OPatch is certified with Perl Version 5.6.1."
    "Invoke OPatch manually using the following command format:"
    " <path to Perl>/perl <path to OPatch>/opatch.pl <patch command> [options]"
    "You can use the following command format to view help information:"
    " <path to Perl>/perl <path to OPatch>/opatch.pl [<patch command>] -help"
    OPatch returns with error code = 0
    I also noticed that the PERL directory has version 5.8.3 instead of the 5.6.1
    I had gone on the perl website to download perl 5.6.1, but i found the following
    Latest stable version of ActivePerl 5.6: 5.6.1 build 638
    Gzipped tarball (Unix)
    Zip file (Windows)
    Patch against Perl 5.6.1 sources
    I do not know which one to download. Is it the zip file for windows or the Patch against perl 5.6.1
    Please does anybody have any idea what i need to do.
    Thanks in advance
    Cheers
    Aj

    Hello Hsawwan,
    Thanks for your reply. It is not part of Oracle E-Business. But this is Oracle Forms Application server release 10.1.2.0.2, and oracle Database 10g. rel2, installed seperatelly. I can connect ok to the database from forms 10g. But when it comes to running the forms, the browser comes up and i can see the java sign on the browser, after that it prompts me for username, password and connect identifier. As mentioned earlier, when i supply 2 criteria ie, the username scott, and password tiger I get ORA-12560: TNS: Protocol Adapter error. However, when i supply all 3 questions, ie username, password and connect identifier- ORCL, I get error message
    ORA- 12154: TNS: Could not resolve the connect identifier specified.
    Also i need to download Perl 5.6.1, does any body knows where i can download this?
    Because the I currently have perl 5.8.3 and opatch is pointing to perl 5.6.1.
    The site i found has error cannot display page.
    Also where is the application env file located, and what should i be setting in this file.
    Sorry for the long explanation. I hope I am making some sense.
    Thanks in advance
    Cheers
    Aj

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

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

  • Oracle 10G rel2 - missing OracleHOME_NAMETNSListener

    Hello All,
    I am installing Oracle Database 10G Rel2 on Windows 2003 (32bit) into a separate Oracle HOME. Before 10g install I already running Oracle 9i in a separate home.
    After the install, OracleHOME_NAMETNSListener has not been created for 10G DB.
    According to the Oracle documentation Oracle recommends to have only 1 listener. ( which I already have up and running for 9i)
    What is the solution?
    Thank you in advance, Sonya

    user8461308 wrote:
    Hello All,
    I am installing Oracle Database 10G Rel2 on Windows 2003 (32bit) into a separate Oracle HOME. Before 10g install I already running Oracle 9i in a separate home.
    After the install, OracleHOME_NAMETNSListener has not been created for 10G DB.
    According to the Oracle documentation Oracle recommends to have only 1 listener. ( which I already have up and running for 9i)
    What is the solution?shutdown V9 listener.
    start V10 listener instead
    FWIW - V9 is obsoleted & unsupported and V10 is no longer under full support.
    Upgrade to V11.2 ASAP

  • Oracle 10g Rel2(10.2.0.3) on Vista ultimate driving me crazy, Please HELP

    Hello Folks and Expert,
    I am Certified Ora DBA and am stuck, thats a shame
    I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options,
    I ready all the documentaiotn and release notes and also read that Oracle 10g(10.2.0.3) is certified on Vita Ultimate.
    I downloaded the DB which is frm the below link:
    Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008
    *** It installs but it justdoesn't work properly, PLEASE HEEEEEEELP I am running out of time.
    steps I have done:
    1. Installed loppback and tested and it works when I ping, both ping computer and ping computer.domain with no error.
    - whic means under windows>system32>driver> etc>host I added the 10.10.10.10 and cmputer name.
    2. Under MMC I added cmputer local policy for local computer
    3. Also Under "Local security setting" under "Local Policies" Under "User right Assignment" Under "Log on as a Batch job" I added the User name which was created when weload the Vista for the first time which is the Computer Admin, ALSO REALOADED THE COMPUTER WITH TH FACTORY SETTING AND AFTER THE FIST BOOT, UNLOCKED THE "ADMINISTRATOR" USER OF THE OS AND TESTED WITH THE ADMIN USER AS WELL WHICH WAS ADDED TO THIS lOG ON AS A BATCH JOB.
    4. Restarted the Computer on all the step that I had to
    5. Downloaded the DB and installed the DB, it installled without any Error
    ******************My Questions are as belooooowww ******************
    When Oracle installd he prduct, usually under the
    Start menu> All programs we should have 4 folders (Application Development, Configuration and Migration, Integrated management tools, Oralce installlation products) and DATABASE CONTROL - ORCL
    a - when installation finishesh it JSUT DOESN't CREATE ------> DATABASE CONTROL - ORCL Whyyyyy ? (It is driving me crazy, I have another xp machine and it has also I had EVEN Vista Home premium and I was able to install on it before to test)
    b - I can loging to the database after i type the adress I remembered manually in the browser, it logs in without any errror, but
    When I want to shutdown the database It passes the host crendential once and I wait and it does nothing and a little windown pops up and says
    *"Enterprise manager stopped working"*
    C - To test and stop Listener also it just doesn't stop it and doest the samething,
    I just wannna CRYYY, it is getting me Crazy,
    PLEASE HELP ME with all THREE QUESTONS A,B,C PLEASE HELLLLLLPPPPP
    Rgrds,

    Hello Folks and Expert,
    I am Certified Ora DBA and am stuck, thats a shame
    I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options,
    I ready all the documentaiotn and release notes and also read that Oracle 10g(10.2.0.3) is certified on Vita Ultimate.
    I downloaded the DB which is frm the below link:
    Oracle Database 10g Release 2 (10.2.0.3/10.2.0.4) for Microsoft Windows Vista and Windows 2008
    *** It installs but it justdoesn't work properly, PLEASE HEEEEEEELP I am running out of time.
    steps I have done:
    1. Installed loppback and tested and it works when I ping, both ping computer and ping computer.domain with no error.
    - whic means under windows>system32>driver> etc>host I added the 10.10.10.10 and cmputer name.
    2. Under MMC I added cmputer local policy for local computer
    3. Also Under "Local security setting" under "Local Policies" Under "User right Assignment" Under "Log on as a Batch job" I added the User name which was created when weload the Vista for the first time which is the Computer Admin, ALSO REALOADED THE COMPUTER WITH TH FACTORY SETTING AND AFTER THE FIST BOOT, UNLOCKED THE "ADMINISTRATOR" USER OF THE OS AND TESTED WITH THE ADMIN USER AS WELL WHICH WAS ADDED TO THIS lOG ON AS A BATCH JOB.
    4. Restarted the Computer on all the step that I had to
    5. Downloaded the DB and installed the DB, it installled without any Error
    ******************My Questions are as belooooowww ******************
    When Oracle installd he prduct, usually under the
    Start menu> All programs we should have 4 folders (Application Development, Configuration and Migration, Integrated management tools, Oralce installlation products) and DATABASE CONTROL - ORCL
    a - when installation finishesh it JSUT DOESN't CREATE ------> DATABASE CONTROL - ORCL Whyyyyy ? (It is driving me crazy, I have another xp machine and it has also I had EVEN Vista Home premium and I was able to install on it before to test)
    b - I can loging to the database after i type the adress I remembered manually in the browser, it logs in without any errror, but
    When I want to shutdown the database It passes the host crendential once and I wait and it does nothing and a little windown pops up and says
    *"Enterprise manager stopped working"*
    C - To test and stop Listener also it just doesn't stop it and doest the samething,
    I just wannna CRYYY, it is getting me Crazy,
    PLEASE HELP ME with all THREE QUESTONS A,B,C PLEASE HELLLLLLPPPPP
    Rgrds,

  • Droping datafiles in oracle 10g r2

    Hi guys.
    I have a 56 GB size tablespace of which on 15GB if data is being used now. (due to DDL).
    I will like to reduce the size of the tablespace by deleting its datafiles. I know that I can resize the datafiles, but there are upto 28 of them and dont want to end up having database of 200M each.
    So my question is deleting a datafile will pushed data (if it contains) to another datafile?
    Is there a down side doing this?
    Thanks for the explanation.
    DID

    Restrictions on Dropping Files To drop a datafile or tempfile, the datafile or tempfile:That was meant for dropping a datafile complete (from data dictionary as well).
    Can you try the following and let me know, whether it works for you or not:
    alter database datafile '/datafilename.dbf' offline drop;
    and drop the datafile from the OS level.
    (What the command really means is that you are offlining the datafile with the intention of dropping the tablespace.)
    I agree that its not technically dropped or deleted, but, logicall, Oracle thinks that the datafile is no more accessable to the database.
    I was just trying to tell you that you can force to delete the data file using the above command.
    Jaffar

  • Dropping tables in Oracle 10g Express

    I have several schemas created in my oracle express db. And I have created 1 user, 'met' that has privs to do anything in any schema.
    If user met drops a table in the acct schema, it does not go in the acct recyclebin like I would think. It is renamed BIN$...... and left in the acct schema.
    If acct drops a table in the acct schema, then it shows up in the acct recyclebin as the same name it had in the schema.
    We have 40+ schemas, and I don't want to login as each individual user to manage there tables, I want one account to manage them all, but do not want to leave alot of BIN$..... tables in the schema when I drop a table.
    I know I can purge them, and remove them for good, but If I want to drop a table, and have a backup for a while, I want it to be in the recyclebin.
    Anyway to fix this, or is this just how it work?

    You may want to use the purge command:
    PURGE recyclebin;
    Or disable the recycle bin parameter, which will diables the flashback feature and won't allow you to recover any mistakenly dropped table:
    RECYCLE_BIN=FALSE;
    Regards.

  • Error while installing Oracle 10g rel2 on FC4 - areasQueries missing

    Hi,
    I keep getting the following error while trying to install Oracle on my FC4:
    "There was an error while loading library. areasQueries".
    I found a thread that said I should delete oraInst.loc file or rename it, since the installation recognises files that are there from previous trials to install Oracle.
    I removed the file, I removed the directories "product and Inventory" - nothing helped.
    Any other sugestions ?
    Thanks

    Suggest you look at Werner Puschitz' install site ... he's posted the instructions on almost all viable combinations of Oracle and RedHat/Fedora
    http://www.puschitz.com/InstallingOracle10g.shtml

Maybe you are looking for

  • REMOTE RECORDINGS OVER THE WAN IN CCX 7

    We have a customer with CCX 7 local agents and recording services ( BUT NO QUALITY MONITORING) Normally records all local agents calls ( colocated with CCX. Now customer has remote agents via WAN and needs to record their conversations. According spe

  • Idoc status 03 in SAP but in XI idoc not showing

    Hi Experts, in my SAP to file scenario, idoc is created successfully with status 03, but idoc  is not coming to PI. It is not happening always. some times, idocs are missing. But not able to find any error in PI. Please guide me how to get the missed

  • How to pass strings when downloading file

    Hi, I have a requirement to pass the below mentioned two string at the start of the file when download. wf_firstline =  '$$ADD ID=HTAUSRF1 BID=FKI4990016797'. wf_secondline = '*03000820000049900167970'. pls.provide me pointers how can this be done. T

  • InvokeScenario operation not found in ODIInvoke.wsdl

    Hi, I ahve installed the ODI11g along with ODIConsole and Public web service also configured the weblogic domain. Able to see the odiconsole and oraclediagent in the deployments folder. And able to view the ODIInvoke web service at http://localhost:1

  • Compairing strings please help

    how would i compare this string to an int: if(response.equals (1))                                         System.out.println("good choice");      else                                         System.out.println("please enter 1 , 2 ,3 as your answer")