Remove an Instance aka database

During my install of Oracle 10g on mac osx. I created a database via a script that I have found on the net or in one of the forums, (forget which one). Anyway I was wondering how I could remove the instance? I ran dbca but it doesn't pick it up, I guess since I didn't create it with dbca.
Anyone have any ideas?

That's relatively easy, just remove all the files and directories associated with the instance.
I don't know how you've set up your OFA, but the directories would be something like:
<mount point>/oradata/<sid>
$ORACLE_BASE/admin/<sid>
The files would be:
$ORACLE_HOME/dbs/*<sid>*
Then edit /etc/oratab to remove the line containing the SID.
That should be it, I've only done this in 9i on AIX, so I'm not 100% sure this gets all the created files in 10g - perhaps the Administrators Reference would have more info.
HTH,
Steve

Similar Messages

  • How to remove netweaver instance completely?

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    INFO 2007-03-29 13:15:35
    CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO 2007-03-29 13:15:51
    CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
    PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO 2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
    bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO 2007-03-29 13:18:29 [syxxcfile.cpp:523]
    CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO 2007-03-29 13:18:29 [syuxcpath.cpp:369]
    CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    Hi ,
    I removed all the folders of previous Netweaver 2004 installation from aix machine, as there was problem in starting server .
    In new installation I am getting following error:
    ERROR 2007-05-28 10:11:59 [iaxxinscbk.cpp:289]
    abortInstallation MDB-07021 Registry information for database software found in system but the software check failed. The software was not properly removed or installed incorrectly.
    I have already deleted following folders:
    /sapdb
    /usr/sapdb
    /usr/spool/sql
    /sapmnt/
    /home/sqdjet
    /home/jetadm
    Is there any folder remaining to delete?
    Please help.

  • DBCA can´t remove an instance

    Hellos guys, How are you?
    I am having a problem when I try to remove an instance...
    I have an Oracle instance 10gR2 (10.2.0.3.0) on a windows server 2003 R2, and when I try to remove the instance through DBCA the "Next" button is disabled and when I click on "Finish" button, nothing happens.
    If there is anybody that can help me, I will be grateful.
    Thanks.

    Facundo wrote:
    Hellos guys, How are you?
    I am having a problem when I try to remove an instance...
    I have an Oracle instance 10gR2 (10.2.0.3.0) on a windows server 2003 R2, and when I try to remove the instance through DBCA the "Next" button is disabled and when I click on "Finish" button, nothing happens.
    If there is anybody that can help me, I will be grateful.
    Thanks.On *nix, dbca reads the oratab file to get a list of 'deleteable' databases.  if there are no databases listed in oratab (watch for commented out lines) then the 'delete database' option will be greyed out.  Don't know if the same behavior on Windows.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to remove an instance from essbase cluster

    I installed the new Hyperion 11.1.2, and I reconfigure the essbase server, it is added to the EssbaseCluser_1, now I have set up 2 instances for this cluster. Now I want to remove an instance from the cluster, how to do it with MaxL or what ever?

    [url=http://download.oracle.com/docs/cd/B19306_01/serv
    er.102/b14200/statements_8009.htm#i2157988]DROP
    DATABASEInstance and Database are different things, be careful before using this statement after 10g :)
    [from-documentation]
    An Oracle server consists of an Oracle database and an Oracle instance.
    The database consists of physical files such as:
    The control file where the database configuration is stored
    The redo log files, which have information required for database recovery
    The data files where all data is stored
    The parameter file, which contains the parameters that control the size and properties of an instance
    The password file, which contains the superuser (SYSOPER and SYSDBA) passwords
    The instance consists of memory structures such as System Global Area (SGA) and Program Global Area (PGA) and background processes that perform tasks within the database as well as the server processes that are initiated for each user session.
    The size and structure of an Oracle database and instance impact performance. The physical structure of the database impacts the I/O to hard disks. It is therefore important to both size and place the physical files in such a way that I/O across disks is distributed evenly and waits are minimized. The size of the various memory areas of the instance directly impacts the speed of SQL processing.
    [from-documentation]

  • How to setup a Multi-instance standby database?

    I was asked to setup a multi-instance standby database for a multi-instance primary database. I understand that only one of the instance will apply redo logs from the primary database, but how about the other instance? Should I mount that instance just to update the standby control file(the control file is not located in shared file system with the cluster server) even if it isn't going to apply any redo logs?
    I am so confused now. Hope somebody will help me on that. Any document or tutorial will be helpful too.
    Note that I am not using dataguard.
    Thanks in advance

    Hi,
    You can set up multiple instance standby..where in each instance will receive the archive logs from correpsonding primary instance. Keep them on shared location (say ASM) so that one of the instances from where recovery is started can access the archive logs and apply it.
    So basically
    Primary instance A <----- send archive to ---> Standby A
    Primary instance B <----- send archive to ---> Standby B
    Start managed recovery on A
    Standby A --- > Apply archives for instance A and B
    -Amit
    http://askdba.org/weblog/
    Edited by: Amit_DBA on Aug 12, 2009 5:16 PM

  • Removing record from secondary database

    Could soembody please explain - if I'm removing entry from secondary database using a cursor, will that entry be removed from primary database as well, or I need to remove it explicitly?

    looks like it does, as stated in javadocs, so nevermind ;)

  • 10.2.0.4 patch on single instance standby database

    Hi All,
    We have production database 10.2.0.3 running with RAC having 2 nodes on Solaris 10. We have patched this
    databases to 10.2.0.4 (both nodes) on production without any issue.
    We have a physical standby database (10.2.0.3) with 2 nodes on solaris 10. But we have stopped node2 sometime
    back and currently it's a single instance standby database. Whe nwe are trying to apply patch to standby dataabse
    it's showing both node during installation and installation fails when it tries to search for node2.
    What's the solution for this problem? Any document on how to patch the single instance standby database when
    production is running in RAC.

    I think you are basically saying that you have a 2 node RAC cluster with 1 node down (possibly permanently) and you want to just patch 1 of the nodes?
    It's not overly a surprise the installer is trying to patch the other node, when as far as your inventory is concerned you have a 2 node cluster.
    Have you tried running the installer with the -local option?
    This should just patch your local node. Obviously the dictionary changes will get applied via MRP from the primary db.
    jason.
    http://jarneil.wordpress.com

  • Using a function and array to remove stage instances

    I'm trying to figure out the best way to handle this.
    I have an array of items I want to be looked through and removed if a specific function is running and if the stage contains them.
    removalArray = [axScene, bridgeScene];
    public function Removal(event:Event) {
                trace("cheese");
                for (var i:uint = 0; i>removalArray.length; i++) {
                    if (stage.contains(removalArray[i])) {
                        removeChild(removalArray[i]);
                        removeEventListener(Event.ENTER_FRAME, Removal);
                        addEventListener(Event.ENTER_FRAME, CampScene);
                    } else {
                        removeEventListener(Event.ENTER_FRAME, Removal);
                        addEventListener(Event.ENTER_FRAME, CampScene);/**/
    addEventListener(Event.ENTER_FRAME, Removal);
    I'm able to get trace("cheese"); to work at its current position, but the function does not seem to like my "for" and "if" statements because putting trace("cheese") amongst them does not work.
    As always, help is appreciated, and let me know if you need more info.
    EDIT: Perhaps I should also note I am able to get
    if (stage.contains(axScene)) {
                    removeChild(axScene);
                    } else if (stage.contains(bridgeScene)) {
                        removeChild(bridgeScene);
                        } else {
                            null;
    to work correctly in that function.
    EDIT2: Would this have something to do with addChild only being able to remove one instance at a time? I can't imagine that's it since this suppose to be run through a loop.

    You appear to have an unhealthy obsession with using the ENTER_FRAME event. 
    I'm sure you're right, but realize that I'm learning by the seat of my pants and am not great with logic and stuff that doesn't happen chronological. (I'm 26, and graduated with a degree in graphic design.) If I find something that works I'm going to keep using that until I find a better way, and thus far ENTER_FRAME has been all I've had. (I can find tons of AS3 information online, but a lot of it is forum posts seems to be lacking useful context for my purposes.)
    For what it's worth (if you remember another post I did that had a ton of event listeners), I've started using more booleans and gotten rid of a lot of listeners adding and removing.
    What you might try doing instead of creating all manners of them is to have just one and within that one you manage your objects using conditionals.
    So something like this?
    if (campSceneOnStage == true) {
         addChild(campScene)
         } else if (campSceneOnStage == false) {
              removeChild(campScene);
    EDIT: Although this would keep adding a campScene instance, wouldn't it?
    EDIT2: Could I write something like this, have one constant event listener (addEventListener(Event.ENTER_FRAME, Scenes)...
    public function Scenes(event:Event) {
                if (campSceneOn == true) {
                    addChild(campScene);
                    if (stage.contains(campScene)) {
    and use a line to tell the function to temporarily stop listening if campSceneOn = true and campScene is on the stage?
    Would "null" work?
    Also, is there an equivalent to "stage.contains" that looks to see if the stage does not contain?
    That ENTER_FRAME listener is being removed as fast as it was added, whether or not there is something in the array to remove.
    So the even though the intention is to only have the removeEventListener only occur if something is found in the array to remove, the script "skips over" that and removes the event listener even if it doesn't "use" the for loop or if statements?

  • How to remove all instance in a repeatable subform (bis)

    Hi Niall,
    A few years ago, you helped a user who asked "How to remove all instance in a repeatable subform". Please could you do again with approximately the same problem ?
    In a click event, I have the script "_CarteEN.addInstance();". Well ! Many cards appear. To protect them, I put above a mask (it's a button with a background Fill). Now, how can I do to remove all masks with only one click using the resetdata or anything else...
    I try this but it doesn't work.
    while (flowedSubform.CarteEN._CacheCV.count > 2)
         flowedSubform.CarteEN._CacheCV.removeInstance(1);
    Many thanks for your help !

    There is no subform named "flowedSubform"
    The "CacheCV" is not a container object (subform). so you can't access the instanceManger of this object.
    the below lines should work
    while(_CarteEN.count >1)
         _CarteEN.removeInstance(1);
    Nith

  • How to remove previous instance of Netweaver 2004???

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    <b>
    INFO       2007-03-29 13:15:35
               CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO       2007-03-29 13:15:51
               CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
               PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO       2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
               bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO       2007-03-29 13:18:29 [syxxcfile.cpp:523]
               CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const 
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO       2007-03-29 13:18:29 [syuxcpath.cpp:369]
               CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO       2007-03-29 13:18:29
               CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO       2007-03-29 13:18:29
               CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"</b>
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    Yes.
    Do all people visit all forums..?
    I'll not open it in more than one forums then.

  • Javax.ejb.RemoveException: An attemp was made to remove stateful instance

    Hi,
    I am working with a SAP PI 7.1 File adapter without content conversion but attachments. I created an adapter module to change the attachments name and its Mime type. But get following error when i use this module. Even if i just pass the rinputModuleData back without any coding in between i get the same error. (Adapter engine is on the latest SP stack)
    Does anyone know what is wrong and how to solve this problem ?
    Error: javax.ejb.RemoveException: An attemp was made to remove stateful instance while it still participates in a transaction.This is strictly forbidden by the EJB Specification. However the current transaction won't be marked for rollback allowing you to recover from the error.
    Regards,
    Andreas

    Hi Agasthuri,
    thank you for your quick reply. I use exactly the scenario described in following Blog
    /people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module
    The only thing i did is changing the coding a bit so that it fits PI7.1
    Regards,
    Andreas

  • List of instance and databases

    My sql server contains multiple instances and each instance contains multiple databases.
    Now how to list of all the instances and their corresponding databases?
    i used select * from sys.servers for instances and sys.databases for number of databases.
    But how to list of all the instances and databases using single query?

    Hi
    List all Instances
    option 1: Pwershell
    Get-Service | Where-Object {$_.Name -like 'MSSQL$*'}
    Option 2:  query this registry
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server.....
    Option 3: go to regitry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names
    * Here you can find other option like OLTP and not just SQL
    Option 4: RUN -> services.msc
    Find all services named "SQL Server". The instance name is in the brakets
    Option 5: Open sql server configuration manager -> SQL Server Services
    There are more options if you need :-)
    [Personal Site] [Blog] [Facebook]

  • Remove-SPContentDatabase : The content database could not be found

    I am using SharePoint 2010 
    ============================================
    PS C:\Windows\system32> get-spdatabase 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Name                     Id                                   Type
    Managed Metadata Serv... 8fdf806b-6dc8-49b2-8bfc-d574707ea58c Microsoft.SharePo...
    =======================================================
    The  "Managed Metadata Service_e13d38135b8b4f268e0aa0d4c6d408b1" does not exist on the SQL Server.
    When I remove the database, I am getting following error in powershell
    ==========================================================
    PS C:\Windows\system32>  remove-spcontentdatabase -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
    Remove-SPContentDatabase : The content database could not be found.
    At line:1 char:26
    +  remove-spcontentdatabase <<<<  -id 8fdf806b-6dc8-49b2-8bfc-d574707ea58c
        + CategoryInfo          : InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletRemoveContentDatabase) [Remove-SPContentDatabase], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveContentDatabase
    ============================================================
    I dont want to use the DeleteConfigurationObject option as per below blog.
    http://blogs.technet.com/b/nishants/archive/2010/04/14/how-to-delete-orphan-configuration-objects-from-sharepoint-farm.aspx
    Are there any other options to fix this situation.
    Thanks
    Nate

    MMS is not a Content Database, it is a Service Application Database. Run:
    $db = Get-SPDatabase <GUID>$db.Delete()
    That should do it.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to remove netweaver instance on AIX machine completely?

    Hi
    During Netweaver 2004 installation on AIX I got error as Wrong or unsupported SAP DB software installation
    DB startup failed
    To start installation again newly , I deleted /sapdb and /usr/sap./etc/opt/sapdb /usr/spool/sql also all the files in installation folder /local/installsap
    and started installation again in different folder.
    INFO 2007-03-29 13:15:35
    CJSlibModule::writeInfo_impl()
    Looking for SAP system instances installed on this host...
    INFO 2007-03-29 13:15:51
    CJSlibModule::writeInfo_impl()
    Found these instances:
    sid: SUN, number: 01, name: SCS01, host: CTSAIX02
    sid: SUN, number: 00, name: JC00, host: CTSAIX02
    WARNING[E] 2007-03-29 13:15:52 [syxxcnamrs.cpp:128]
    PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    INFO 2007-03-29 13:15:52 [syuxcaccmg.cpp:243]
    bool CSyAccountMgtImpl::isExisting(ISyAccountMgt::eAccountType accountType, iastring sName)
    Account j2eadm does not exist.
    INFO 2007-03-29 13:18:29 [syxxcfile.cpp:523]
    CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
    Copying file /local/sapbinaries/java_dvd/51030724_2/DVD_NW_04_SR1_SAP_Web_AS_JAVA/J2EE_OSINDEP/JDKVersion.xml to: ..
    INFO 2007-03-29 13:18:29 [syuxcpath.cpp:369]
    CSyPath::createFile()
    Creating file /local/NetWeaver2004/JDKVersion.xml.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Directory /usr/java14_64/bin is not a valid JDK directory: the java executable is missing.
    INFO 2007-03-29 13:18:29
    CJSlibModule::writeInfo_impl()
    Execution of the command "/usr/java14_64/bin/java -version" finished with return code 0. Output: java version "1.4.2"
    In new installation it is detecting previous instance as well.
    Which files should I remove so as to remove the instance completely?

    follow Note 599129 - Using SDBUNINST to uninstall MaxDB/SAP DB software
    follow the steps given in the installation guide for uninstall SAP.
    Cheers,
    -Sunil

  • How to remove JFrame instance

    Dear all
    Can someone tell me ho to remove an instance without exit the whole system, the reason is I need to remove a JFrame after the user click the button, the setVisible() is not work in case.
    any advice will be greatest appreciate.

    show de .dispose() method. If this doesn't work, then look in this url and look for more methods:
    http://java.sun.com/j2se/1.3/docs/api/javax/swing/JFrame.html

Maybe you are looking for

  • How to remove en completely newly install a game app

    Hi, I was playing a game, but i want to delete it and reinstall to start all over again from the start. I did al the things on this site discussions (hiding, removing etc.), but to no avail. In the store to download the app there's allways the 'cloud

  • Vendor, trading parner, authorization and corporate group

    Hi experts! Thank you for pay attention to my message! I have a question about the fields in customer master date. What does it mean or what will happen to the customer master if I entry a vendor no. or a company ID for trading partner in the field v

  • Writing file through code

    Hi, I want to write data to a file but it gives security error. AcceccControl Exception file write I used FilePermission f=new FilePErmission(String message,"write"); Please send me suggestions. bye.

  • Gmail not working on Ipad/Iphone but works on Mac

    I am having problems with a gmail on my Ipad and Iphone when i try to send an email I get the following error "Cannot send mail ,the user name or password for gmail is incorrect" I have checked and the username and password are correct The strange pa

  • Remove HTML Tags and parse the text out of it

    Hi All - I had a text file with all the HTML Tags on it. I want to parse text out of it. Is there any package available to remove all the HTML Tags from the text. For example <HTML><BODY bgColor=#ffffff> This is the text i want to parse.</BODY></HTML