DROP a database created with SQL

Hi,
I am a newbe in Oracle administration. Usually I use Oracle as simple developper.
I want to drop a database on a Oracle 10g database.
I tried to connect to Oracle like this
sqlplus /nolog
connect sys as sysdba
shutdown abort;
startup mount exclusive restrict;
I get the message :
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/oracle/product/10.2.0/db_1/dbs/inittest.ora'
There is not any test db in Oracle. Why does it answer this ?
So I modified the query to
startup mount exclusive restrict pfile=/u01/app/oracle/oradata/P44SPRD/u01/pfile/pfileP44SPRD.ora;
I get the message :
ORA-00205: error in identifying control file, check alert log for more info
I checked if the control file defined in pfileP44SPRD.ora exists. It does.
I also tried to drop the database with DBCA. In the step 3 it asks me to select the database. The database is listed as follow :
-e P44SPRD.
I select it, I click on "Finish". It askes me to confirm. And then nothing happends.
Has anybody any solution ? Any help would be appreciated.
Best regards,
Xavier

Hi,
Welcome to OTN forums first of all.
Well , you should have looked at the reference doc for the command first,
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta027.htm#RCMRF190
The drop database command has to be executed from the RMAN prompt.Did you do it from there only?
Here is one reference note from JH explaining the same,
http://www.idevelopment.info/data/Oracle/DBA_tips/RMAN_10g/RMAN10_5.shtml
Can you show us the output of the following commands,
$export ORACLE_SID=<your_sid><<--sid is your db name
$sqlplus /  as sysdbaYou should be over sql prompt after this.Issue the command,
alter system enable restricted session;And then from RMAN , isssue drop database.
Tell us the output of the steps.
HTH
Aman....

Similar Messages

  • Database Adapter with sql server connection cannot import user tables

    Hi,
    In jdeveloper 11g, I tried to create a sql server database connection, i could create the connection, i could see the tables and navigate through the data in
    Database navigator section. But while trying to import the tables in the Database adapter to do polling operation, It displays only the system tables like this
    syscolumns (dbo)
    syscomments (dbo)
    sysdepends (dbo)
    sysfilegroups (dbo)
    sysfiles (dbo)
    sysforeignkeys (dbo)
    sysfulltextcatalogs (dbo)
    sysindexes (dbo)
    sysindexkeys (dbo)
    sysmembers (dbo)
    sysobjects (dbo)
    syspermissions (dbo)
    sysprotects (dbo)
    sysreferences (dbo)
    systypes (dbo)
    sysusers (dbo)
    I am not understanding this wierd bahaviour of jdeveloper.
    please advise.
    -Chaitu
    Edited by: chaitu123 on May 13, 2010 9:16 AM

    This is NOT related solely to the SOA Suite. The same behavior appears in the Connections Navigator.
    IMHO, this is related to how JDeveloper is parsing the .getMetaData() response.
    Scott
    Edited by: user8951683 on May 21, 2010 8:08 AM

  • SCOM database compatibility with SQL 2014

    Hello Experts,
    We are finally upgrading from SCOM 2007 R2 to SCOM 2012 R2. Currently we have our DB's on SQL 2008 R2. I would like to know if the SCOM DB is compatibility with SQL 2014.
    Thanks in Advance.
    Regards,
    Prajul Nambiar

    Hi,
    With UR5 SQL2014 is now supported
    Support for SQL Server 2014 with System Center 2012 R2 Update Rollup 5
    http://blogs.technet.com/b/systemcenter/archive/2015/02/23/support-for-sql-server-2014-with-system-center-2012-r2-update-rollup-5.aspx
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • A Conduit, a Palm database created with a MIDlet ... HELP!!!

    Using a MIDlet I created a database called "Customers-VM00", with creator ID "VM00", this database has two records:
    1) 48476472\Luis\Bello Ortega\201398400000\
    2) 00000000\Jana\Hajkova\144288000000\
    Ok, my goal is to get those two lines in my Conduit, but all I am able to get is this:
    AbstractRecord: {
    record id: 3
    record index: 0
    is deleted: false
    is new: false
    is archived: false
    isPrivate: false
    AbstractRecord: {
    record id: 4
    record index: 1
    is deleted: false
    is new: false
    is archived: false
    isPrivate: false
    That is ... just info about the two records but ... WHERE IS THE STRING I NEED!?!?!?!?!?!?!?!
    This is the code I use in my Conduit to (try to) get the records:
    count = SyncManager.getDBRecordCount(db);
    rec = new RMSRecord();
    // Loop over all records
    for (i = 0; i < count; i++) {
    rec.setIndex(i);
    SyncManager.readRecordByIndex(db, rec);
    // Print it out to file
    out.write((rec.toFormattedString() + "\n").getBytes());
    and now part of the code for RMSRecord:
    private byte[] bytes = null;
    public void readData(DataInputStream in) throws IOException {
              bytes = new byte[in.available()];
              in.read(bytes);
    As you can see, the code is quite simple. HELP ME!!!!!

    ops! I've just found a way to do it!!! heheheeh, sorry all the duke dollars are for me X))))
    (I've done it using a PalmRecord and its method .getRawData();)

  • Error using Database addons with SQL query.

    I get a LabVIEW error when I provide the following SQL query to the NI database VI: ..vi.lib\addons\database\Connection.llb\Conn Execute.vi. 
    declare @SR_ID table ( script_result_id uniqueidentifier )
    insert into @SR_ID
    select script_result_id from SCRIPT_RESULT
    where script_result.software_name = '%s'
    SELECT distinct STEP_RESULT.STEP_TYPE
    FROM STEP_RESULT INNER JOIN @SR_ID s ON
    STEP_RESULT.SCRIPT_RESULT_ID = s.script_result_id
    The error is:
    Error -2146824584 occurred at NI_Database_API.lvlib:Rec Destroy - Connection.vi->Database_Query Database with flattened string reply.vi->ADUTS-RPT Query DB.vi->ADUTS-RPT Get Step Names.vi->ADUTS-RPT Top.vi
    Possible Reason(s): Exception occured in ADODB.Recordset: Operation is not allowed when the object is closed.
    The query works fine when given directly to my SQL server.
    Any ideas on this problem would be most appreciated.

    It looks like the bug is related to ADODB objects. I found a related KnowledgeBase article that was written about the same issue, but never published for some reason. Here's what it has to say about your error:
    "This error occurs when a query is run on the database that does not return any recordset data, such as a delete command.  In this case, when you encounter the DB Tools Fetch Recordset Data VI, the state of the recordset is "closed" and produces the error.
    To avoid the error, you can check for the state of the recordset and make sure that it isn't closed. To do this, use the DB Tools Get Properties VI and check the state from the properties cluster.  An additional, or alternate, check would be to check for the beginning of file and end of file properties.  If both BOF and EOF are both true, there is no data in the recordset.  
    If you open the example program, Database Fetching, you can see that they are using both of these checks.
    In versions of the toolset prior to version 1.0.2, these checks were built in.  This causes code without the checks to return this error if the toolset is updated from a previous version."
    Tim W.
    Applications Engineering
    National Instruments
    http://www.ni.com/support 

  • Multibyte issue in database link with sql server

    Hi Gurus,
    Greetings!!!
    I need to transfer data from Microsoft SQL Server 2005 to Oracle DAtabase 10g(AL32UTF8 characterset). I achieved it using Heterogeneous Connectivity. I can now issue queries but unfortunately i got an issue in displaying multibyte characters. I thought of using another Tool that can display multibyte data but it did not help. I even tried setting the initialization parameter HS_LANGUAGE to different characterset but still not able to display. Kindly help and advise how to resolve the said issue.
    Many Thanks in Advance,
    Benjie

    What is the exact issue you're talking about?
    Can you explain it or show us a sort of it with a sample output?
    MS SQL Server is not our daily bread so we may not know how it works with Oracle and what problems are there in their interconnectivity, but we may tell you what may be the reason of a behavior that causes the issues for your purpose.
    Bye Alessandro

  • Database mullticonnect with SQL Server 2000

    Hi ¡!!
    I’m working in a proyect, that consist in send data to other db server that is not on  the r3 database server, 
    both database server are running on SQL Server 2000.
    The version of sap is 46b.
    S.O.  Windows 2000 SERVER
    Any ideas are welcome!
      Thanks !!
    Message was edited by: Noemi Huerta
    Message was edited by: Noemi Huerta

    Hi Rich !!!!
      Thanks by your suggestions,
      i follow the notes, but i couldn't connect now the system send a message:
    <i>ABAP/4 Program ZMX_BC_IN_CONEXION                      .    
    Source ZMX_BC_IN_CONEXION  Line 38.    
    Error Code DBIF_DSQL2_OBJ_UNKNOWN.                          
    Module  $Id: //bas/46D/src/krn/runt/abexsql.c#8 $ SAP.      
    Function ExecuteCall Line 806.                              
    Table does not exist in database..               </i>           
      The table exist,  but i don't know where is the problem !!!

  • UCCX 8.0 database integration with SQL Server 2005 Express

    Dear Support Community,
    I need to set up a script to read SQL Server 2005 Express records.
    The SQL Server 2005 Express is compatible with the UCCX 8.0?
    Let me know if you need more information

    Nope, SQL Express is not supported. Please refer the comp matrix here http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_compatibility/matrix/crscomtx.pdf
    Supported Enterprise DBs with UCCX 8.0 are
    Oracle 10g R2, Oracle 10g XE
    Sybase Adaptive Server 12
    IBM DB2 8.2
    MS SQL Server 2000
    MS SQL Server 2005
    MS SQL Server 2008
    HTH
    GP.
    Pls rate helpful posts !!

  • Merge Two Access Databases created with Test Stand

    Hello All,
    I am trying to merge 2 databases using LabVIEW.
    When I read the values from the first database some of the numeric fields in the table are NULL.
    When I try to write to the second database, those values are being written as 0 if integers and 0.0000 if doubles.
    Is there a way to write those values as NULL in the second database if they are Null numeric fields in the first database?
    Thank you in advance,
    Stoimen

    Hi Stoimen,
    I am not sure how the flow of your program goes, but you could use the Database Variant to Data to cast the database variant to another type.  This will accept the NULL values from the database and from there you can manipulate them how you wish.  This tutorial may also be helpful in explaining the Database Variant to Data function in LabVIEW, specifically this section: "The null type arises naturally when working with databases (fields in a record are allowed to have null values), so Database Connectivity Toolkit has a special Database Variant to Data function that handles null values, but detecting them requires several steps."
    I hope this helps!
    Kim
    Applications Engineer
    National Instruments

  • No way to drop dynamic topic created with JMSHelper classes ?

    I just want to know if there is any trick to drop such topic without
              using the administration
              For information for test we could have more than 100,000 topics
              created
              Thanks
              

    Tom Barnes <[email protected]> wrote in message news:<[email protected]>...
              > Consult the JMX guide for information on how to use the mbean APIs to
              > manage WebLogic. This is how one would delete a topic.
              >
              > However, 100,000 topics is off the charts for a single server. A few
              > thousand, perhaps
              > 10000, is the most I have heard of in my experience. Perhaps someone
              > else on the
              > newsgroup has tried this? Note that once the number of configured
              > destinations
              > gets high, some customers have found it better performing to manipulate
              > the config.xml
              > file directly rather than use the APIs. (Note that destinations were
              > not intended to be
              > highly dynamic objects...)
              >
              > Tom
              >
              > cri_tophe wrote:
              >
              > > I just want to know if there is any trick to drop such topic without
              > > using the administration
              > > For information for test we could have more than 100,000 topics
              > > created
              > >
              > > Thanks
              Thanks a lot
              and last question: is there any easy way to get name of my JMSServer
              without using MBean ?
              Thanks
              

  • View jobs with SQL Developer and export to file with delimiter

    Hi,
    is there a way to view, create and alter my database jobs with SQL developer?
    And is it possible to export tables, views or simple queries to file delimited different from the CSV standard?
    Diego.

    Hi and Welcome to the Forum!!
    To select data from a table or a view you must use the SELECT sql command. Example to get the data from your view you can
    select ZMATNUM,ZMATCUR,ZMATATTR from ZMATERIALAs you have said you are using SQL Developer just execute the above query in your sql developer and it will show the data. Right click the grid and export the data to excel file.

  • Get started with sql expres

    hi,
    1-how many data bases can you create with sql express
    2-can you also create data bases in sql 2012 through GUI ,so whitout any knowledge of  command line?
    3-how many GB support has SQL express?
    4- I think this edition is free!
    thanks
    johan
    h.david

    1-I see you are limited to 1GB per instance ,what if you need more ,is there a way to manipulate it?
    I hope you are talking about memotry.To be correct SQL server 2012 and onwards Database engine of Express edition can use MORE THAN 1G memory. Its incorrectly written in books online I tried getting this changed but MS pays little attention on petty things.
    If you read this support article
    "Starting with SQL Server 2012, these memory limits are enforced only for the database cache (buffer pool). The rest of the caches in the SQL Server memory manager can use much more memory than is specified by these edition limits. For example,
    a SQL Server 2012 Express edition can use only a maximum size of 1.4 GB for its database cache. Other caches (such as the procedure cache, the metadata cache, and so on) can consume memory up to the size specified by the "max server memory" configuration."
    No you cannot manipulate more than what is provided by Microsoft. Plus we have not put limitation its MS which has put it.
    2- in which circumstances  you need more than 1GB per instance ,can you give me a little example?
    You *might be* able to manage things with just more than 1 G but if you run many queries which does select * and many alter index rebuild this will require excessive memory then your queries will become super slow. What could have finished in 20 mins might
    end up taking 3-4 hrs or even give you Out of memory condition
    3-I see also you have 10 GB per data base can you manipulate 10 GB and make it more when nedeed?
    10 G limit is only for data files the log files can grow much greater than 10 G. In express edition you can have database with 9.9 G data file and 30 G log file. If you need more switch to developer edition it costs just 50 $
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Help with creating a sql file that will capture any database table changes.

    We are in the process of creating DROP/Create tables, and using exp/imp data into the tables (the data is in flat files).
    Our client is bit curious to work with. They do the alterations to their database (change the layout, change the datatype, drops tables) without our knowing. This has created a hell lot of issues with us.
    Is there a way that we can create a sql script which can capture any table changes on the database, so that when the client trys to execute imp batch file, the sql file should first check to see if any changes are made. If made, then it should stop execution and give an error message.
    Any help/suggestions would be highly appreciable.
    Thanks,

    Just to clarify...
    1. DDL commands are like CREATE, DROP, ALTER. (These are different than DML commands - INSERT, UPDATE, DELETE).
    2. The DDL trigger is created at the database level, not on each table. You only need one DDL trigger.
    3. You can choose the DDL commands for which you want the trigger to fire (probably, you'll want CREATE, DROP, ALTER, at a minimum).
    4. The DDL trigger only fires when one of these DDL commands is run.
    Whether you have 50 tables or 50,000 tables is not significant to performance in this context.
    What's signficant is how often you'll be executing the DDL commands on which the trigger is set to fire and whether the DDL commands execute in acceptable time with the trigger in place.

  • Create new MySQL Database with SQL

    I have a simple question, :-)
    how can I create a new MySQL Database with SQL - (JDBC)
    can you show me a code example?
    tank you ...

    okay ... but how do I use the URL ??? that's the problem
    I tried this:
    Connection con   = null;
            Vector vct       = new Vector();
            try{
                String drv = "org.gjt.mm.mysql.Driver";
                String url = "jdbc:mysql://111.222.333.444:3306";
                String name = "myname";
                String pass = "mypass";
                Class.forName(drv);
                con = DriverManager.getConnection(url,name,pass);
                String statement = "CREATE DATABASE TestDB_Don1";
                Statement stm = con.createStatement();
                stm.execute(statement);
                stm.close();
                con.close();                         
            catch(Exception e){ e.printStackTrace(); }but it doesen't work ............. what is wrong ?

  • How to Create a Temporary Table with SQL Server

    I know you can create a temporary table in SQL Server 2000, but not quite sure how to do it in CFMX 7, i.e., does the SQL go inside a <CFQUERY dbtype="query"> tag?
    I'm pulling the main set of records from an Oracle server (1st data source), but it does not contain employee names, only employee IDs.  Since I need to show the employee name along with the Emp ID, I'm then pulling a list of "current" employee names from a SQL Server (2nd data source), which is the main database on our CF server.
    I've got a QofQ that works fine, except it only matches EmpIDs that exist in both result sets.  Employees who are no longer employed, don't match, and don't display.  Since I can't do a LEFT OUTER JOIN with a QofQ, what I need to do is get the records from the Oracle server into the SQL Server.  Preferably in a temporary table.
    I was hoping if I could get those Oracle records written to a temp table on the main SQL Server, in same database as the Employee Name table, I could then write a normal <CFQUERY> that uses a LEFT OUTER JOIN.
    I think I could probably write a Stored Procedure that would execute the SQL to create the temporary table, but am trying to avoid having to write the SP, and do it the simplest way.
    This query will be a program that can be run hundreds of times per day, with a form that allows users to select date ranges, locations, and other options.  That starts the queries, which creates the report.  So I just need the temp table to exist only until all the SQL has run, and the <CFOUTPUT> has generated a report.
    If the premise is right, I just need some help with the syntax for creating a SQL Server temp table, when you want to write records to it from an external data source.  I'm trying the following, but getting an error:
    <CFQUERY name="ITE_Temp" datasource="SkynetSQL">
    CREATE TABLE #MyTemp
    (   INSERT INTO #MyTemp
    ITE2.TrueFile char (7) NOT NULL,
    ITE2.CountOfEmployee int NULL,
    ITE2.DTL_SUBTOT decimal NULL,
    ITE2.EMPTYPE char (3) NULL,
    ITE2.ARPT_CD char (3) NULL
    </CFQUERY>
    So I actually created a permanent table on the SQL Server, and wrote the below SQL, which does work, and does write the records to table.  I can then write another CFQUERY with a LEFT OUTER JOIN, and get all the records, including those that don't have matching employee name:
    <CFQUERY datasource="SkynetSQL">
    <CFLOOP index="i" from="1" to = "#ITE2.RecordCount#">
    INSERT INTO ITE_Temp
       (FullFile,
       EmployeeCount,
       DTL_Amount,
       EmployeeType,
       station)
    VALUES  ('#ITE2.TrueFile[i]#',
       #ITE2.CountOfEmployee[i]#,
       #ITE2.DTL_SUBTOT[i]#,
       '#ITE2.EMPTYPE[i]#',
       '#ITE2.ARPT_CD[i]#')
    </CFLOOP>
    </CFQUERY>
    But, I hate to have to create a table and physically write to it.  For one, it seems slower, and doing it in temp would be in memory, and probably much faster, correct?  Is there some way to code the above, so that it does something similar, but in a TEMPORARY TABLE?   If I can figure out how to do this, I can pull data from multiple data sources and servers, and using SQL Server temp tables, work with the data as if it was all on the same SQL Server, and do some cool reports.
    Everything I've done for the past few years, has all been from data from a single source, whether SQL Server, or another server.  Now I need to start writing reports where data can come from 3 or 4 different servers, and be able to do joins (inner and outer).  Thanks for any advice/help.  Much appreciated.
    Gary

    While waiting to hear back, I was able to write the query results from an outside Oracle server, to a table on the local SQL Server, and do the LEFT OUTER JOIN required for the final query and report to work.  That was with this syntax:
    <CFQUERY name="AddTableRecords" datasource="MyTable">
    TRUNCATE TABLE ITE_Temp
    <CFOUTPUT query="ITE2">
    INSERT INTO ITE_Temp
    (FullFile,EmployeeCount,DTL_Amount,EmployeeType,station)
    VALUES
    ('#TrueFile#', #CountOfEmployee#, #DTL_SUBTOT#, '#EMPTYPE#', '#ARPT_CD#')
    </CFOUTPUT>
    </CFQUERY>
    However, I was not able to write to a temporary table AND read the results. I got the syntax to run to write the above results to a temporary table.  But when I tried to read and output the results from the temp table, I got an error.  Also, it wouldn't take the single "#" (local) only the global "##" table var, using this syntax.  Note that if I didn't have the DROP TABLE in the beginning, the 2nd time you run this query, you get an error telling you the table already exists.
    <CFQUERY name="ITE_Temp2" datasource="MyTable">
    DROP TABLE ##MyTemp2
    CREATE TABLE ##MyTemp2
    FullFile char (7) NOT NULL,
    EmployeeCount int NULL,
    DTL_Amount decimal NULL,
    EmployeeType char (3) NULL,
    station char (3) NULL
    <CFOUTPUT query="ITE2">
    INSERT INTO ##MyTemp2 VALUES
    '#ITE2.TrueFile#',
    #ITE2.CountOfEmployee#,
    #ITE2.DTL_SUBTOT#,
    '#ITE2.EMPTYPE#',
    '#ITE2.ARPT_CD#'
    </CFOUTPUT>
    </CFQUERY>
    So even though the above works, I could use some help in reading/writing the output.  I've tried several things similar to below, but they don't work.  It't telling me ITE_Temp2 does not exist.  It's not easy to find good examples of creating temporary tables in SQL Server.
    <CFQUERY name="QueryTest2" datasource="SkynetSQL">
    SELECT *
    FROM ITE_Temp2
    </CFQUERY>
    <CFOUTPUT query="ITE_Temp2">
    Output from Temp Table<br>
    <p>FullFile: #FullFile#, EmployeeCount: #EmployeeCount#</p>
    </CFOUTPUT>
    Thanks for any help/advice.
    Gary.

Maybe you are looking for

  • How to hide sidebar in mail in landscape view on iPad

    Every time I rotate to landscape mail the side bar appears and shrinks the size of the message. You can view the message full size in portrait mode but not in landscape mode.... am I missing something here? I have looked for ways to hide the sidebar

  • Can't see some WebDAV folders

    Hi All, We have a file server and Sharepoint intranet in our office. On Windows XP, I can connect to the web share and see and browse all the folders. On Mac OS X, I able able to connect to the server just fine (using http://server) and login into th

  • No More Chipmunks?

    Theodore..? Simon..? Alvin..? Alvin? ALVIN! I just discovered one more new and great enhancement to GarageBand 08. I inadvertently imported a 22khz AIFF file. As HangTime was quick to answer, this used to lead to chipmunk audio. Not any more! GarageB

  • Elements 9 organizer problem

    I am unable to get a menu bar in Organizer ....need to do this in order to import photos from my scanner. Was able to do this before.  Also can only access Organizer through Editor.   Wondering if I should uninstall and then reinstall or is there a q

  • Music List doesn't show some songs

    I go to use artists and composers to look for a sopecific group, although, it only displays songs with an album. So the songs with no albums are not displayed. I checked in my itunes playlists and see that the songs really are there and when i look f