SHUTDOWN ABORT in ORACLE 10g

Hi,
I wrote a procedure to be run before reinstalling a database. As I am not interested in rolling back, or waiting for transactions to finish, I am using SHUTDOWN ABORT to drop users. Everything works well in ORACLE 9i but it cannot restart in 10g - error:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor.
The procedure looks like:
SHUTDOWN ABORT
STARTUP RESTRICT
declare
cursor cnt_usr is
Select username from dba_users where username in (....some user names);
str_cmd varchar2(400):='';
begin
FOR usr IN cnt_usr LOOP
BEGIN
str_cmd := 'DROP USER '|| usr.username || ' CASCADE ' ;
dbms_output.put_line ('Executing: '|| str_cmd);
EXECUTE IMMEDIATE str_cmd;
EXCEPTION
WHEN OTHERS THEN str_cmd := ' ';
END;
END LOOP;
end;
ALTER SYSTEM DISABLE RESTRICTED SESSION;
exit;
Any idea what may cause the error?
Thank you
Dan

> You do know that Abort means to kill the database.
Incorrect. It simply means that the database is shutdown in an inconsistent state - i.e. with "open" transactions and thus "dirty" data.
However, Oracle is designed as a very robust database and this is not a problem. It simply gets the database into a consistent state again on the next startup.
The risk is that something or someone interferes (mucks up) Oracle data files before the next db start - without the redo logs for example, the instance will have a hard time trying to recover the database and get it into a consistent state.
The danger is thus not Oracle, but the Idiot Factor one tends to get with cowboy-type administrators.
What is questionable though is the OP's script that requires the database to be shutdown and started up for a series of drop schemas. That is using a Very Large Hammer to drive in a Very Small Nail. It is a total overkill - not too mention impacting database availability.. And I do not think that our environment is so special/unique that it the exception to measure Oracle instance uptime in 1000's of hours.

Similar Messages

  • ORA-00600 when shutdown in an Oracle 10G Database

    Each time we shutdown the database it raises an ORA 600 error.
    We are using ASM, the databases (+ASM, "mercap") startup clean, not when shutdown.
    Regards,
    T.

    Justin,
    Thanks very much for the tip!
    Do you know if Oracle 10g has any kind of built-in tool for editing data? I have heard of "The Vault", but that appears to be a tool for administering database users, reports, etc. I am looking for some kind of tool that shows the data in a grid layout (like Microsoft Excel) and allows someone to edit and save data in that grid. A web-based tool would be best, but a desktop tool (especially if it's already part of Oracle 10g) would also be good.
    Thanks again,
    Rachel

  • Error ora-01033 initialization or shutdown in progress Oracle 10g

    Hello !
    I am a young Gabonese student  and I need your help , it turns out that I have an Oracle database 10g and I am facing the same problem for a month already
    Indeed, my database shows me
    The instance of the database that my application connects (SID = MyApp) fails has started, due to an error with the code:
    ora-01033 initialization or shutdown in progress.
    And here is the list of other error messages that SQLPLUS console displays:
    ORA - 01115: for I / O error reading block from file 2 <# block 926>
    ORA - 01110: data file 2:
    C: \ MyApp \ DATABASE \ ORACLE \ ORADATA \ MyApp \ UNDOTBS01.DBF
    ORA - 27070: Failed to read / write asynchronous
    OSD - 04016: Error queuing of pending asynchronous I / O request.
    O / S - Error: <OS 1117> unable to meet demand due to an error O peripheral I /
    ORA - 01115: I / O error reading block from file 2 <Block # 983>
    ORA - 01110 data file 2
    C: \ MyApp \ DATABASE \ ORACLE \ ORADATA \ MyApp \ UNDOTBS01.DBF
    ORA - 27070: failure to read / write asynchronous
    it 's been days since I research different forum a clear solution for this type of problem but I can not find anything satisfactory and definitive any help for me is precious ... thank you in advance

    c8884db4-2595-4c5e-bd57-a33002f6d13c wrote:
    Hello !
    I am a young Gabonese student  and I need your help , it turns out that I have an Oracle database 10g and I am facing the same problem for a month already
    Indeed, my database shows me
    The instance of the database that my application connects (SID = MyApp) fails has started, due to an error with the code:
    ora-01033 initialization or shutdown in progress.
    And here is the list of other error messages that SQLPLUS console displays:
    ORA - 01115: for I / O error reading block from file 2 <# block 926>
    ORA - 01110: data file 2:
    C: \ MyApp \ DATABASE \ ORACLE \ ORADATA \ MyApp \ UNDOTBS01.DBF
    ORA - 27070: Failed to read / write asynchronous
    OSD - 04016: Error queuing of pending asynchronous I / O request.
    O / S - Error: <OS 1117> unable to meet demand due to an error O peripheral I /
    ORA - 01115: I / O error reading block from file 2 <Block # 983>
    ORA - 01110 data file 2
    C: \ MyApp \ DATABASE \ ORACLE \ ORADATA \ MyApp \ UNDOTBS01.DBF
    ORA - 27070: failure to read / write asynchronous
    it 's been days since I research different forum a clear solution for this type of problem but I can not find anything satisfactory and definitive any help for me is precious ... thank you in advance
    OS/Disk failure external to Oracle.
    Oracle is victim; not the culprit.
    After the disk throwing error is replaced, you will need to restore the DB from most recent backup.

  • I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid

    I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid of this.

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • Transaction abort Entity framework - Oracle 10g

    Hi.
    I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
    Thanks in advance for your help.

    Hi.
    I have a problem using entity framework and Oracle 10g, i m using a transactionScope in my code, but when the transaction is finishing is throwed a exception "Transaction Abort" , it's a problem only when i am using Oracle i don't have any problem with SQL server.
    Thanks in advance for your help.

  • Manually Migrating from Oracle 10g to 11g

    Hello, I'm currently a student in an Oracle DBA class. I'm totally new to the Oracle world.
    One of our final assignments concerns upgrading Oracle instances without the use of DBUA.
    I've currently got Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 and am trying to upgrade to 11.1.0.7.0
    This is all inside of VirtualBox, running Windows Server 2008. I've been using 10g with absolutely no issues for the duration of this class.
    I successfully installed 11g, choosing to install the software only and not use dbua.
    I changed my environment variables to point towards the 10g installation; ORACLE_HOME, ORACLE_SID, PATH, and LD_LIBRARY_PATH.
    Then logged into 10g's SQLPlus and ran utlu111i.sql, which ran successfully. I issued a shutdown immediate and exited SQLPlus.
    Changed my environment variables to point towards the 11g home and set ORACLE_SID as the 10g database name. I was able to log into 11g's SQL plus, was told I was connected to an idle instance, which I expected. I issued a startup upgrade command, and then attempted to run catupgrd.sql, but got an error stating that I had to run the script from 11g.
    If I don't set the environment variables then when I try to log into 11g's sqlplus, I get an ORA-12560: TNS:protocol adapter error... I've tried reinstalling 11g from scratch, but to no avail. My instructor and I have been emailing back and forth frequently over the past few days but we have not been able to reach a solution, so I thought I would see if I could pick your brains.
    Here's all of the terminal output from the process:
    C:\Users\Administrator>sqlplus
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Apr 29 20:15:09 2011
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter user-name: connect /as sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @?
    SP2-0310: unable to open file "C:\270Oracle.sql"
    SQL> @C:\NewCIS270\product\11.1.0\db_1\rdbms\admin\utlu111i
    Oracle Database 11.1 Pre-Upgrade Information Tool 04-29-2011 20:16:16
    Database:
    --> name: KYLMAN
    --> version: 10.2.0.3.0
    --> compatible: 10.2.0.3.0
    --> blocksize: 8192
    --> platform: Microsoft Windows IA (32-bit)
    --> timezone file: V4
    Tablespaces: [make adjustments in the current environment]
    --> SYSTEM tablespace is adequate for the upgrade.
    .... minimum required size: 729 MB
    .... AUTOEXTEND additional space required: 249 MB
    --> UNDOTBS1 tablespace is adequate for the upgrade.
    .... minimum required size: 417 MB
    .... AUTOEXTEND additional space required: 352 MB
    --> SYSAUX tablespace is adequate for the upgrade.
    .... minimum required size: 455 MB
    .... AUTOEXTEND additional space required: 215 MB
    --> TEMP tablespace is adequate for the upgrade.
    .... minimum required size: 61 MB
    .... AUTOEXTEND additional space required: 33 MB
    --> EXAMPLE tablespace is adequate for the upgrade.
    .... minimum required size: 78 MB
    Update Parameters: [Update Oracle Database 11.1 init.ora or spfile]
    -- No update parameter changes are required.
    Renamed Parameters: [Update Oracle Database 11.1 init.ora or spfile]
    -- No renamed parameters found. No changes are required.
    Obsolete/Deprecated Parameters: [Update Oracle Database 11.1 init.ora or spfile]
    --> "background_dump_dest" replaced by "diagnostic_dest"
    --> "user_dump_dest" replaced by "diagnostic_dest"
    --> "core_dump_dest" replaced by "diagnostic_dest"
    Components: [The following database components will be upgraded or installed]
    --> Oracle Catalog Views [upgrade] VALID
    --> Oracle Packages and Types [upgrade] VALID
    --> JServer JAVA Virtual Machine [upgrade] VALID
    --> Oracle XDK for Java [upgrade] VALID
    --> Oracle Workspace Manager [upgrade] VALID
    --> OLAP Analytic Workspace [upgrade] VALID
    --> OLAP Catalog [upgrade] VALID
    --> EM Repository [upgrade] VALID
    --> Oracle Text [upgrade] VALID
    --> Oracle XML Database [upgrade] VALID
    --> Oracle Java Packages [upgrade] VALID
    --> Oracle interMedia [upgrade] VALID
    --> Spatial [upgrade] VALID
    --> Data Mining [upgrade] VALID
    --> Expression Filter [upgrade] VALID
    --> Rule Manager [upgrade] VALID
    --> Oracle OLAP API [upgrade] VALID
    Miscellaneous Warnings
    WARNING: --> Database contains stale optimizer statistics.
    .... Refer to the 11g Upgrade Guide for instructions to update
    .... statistics prior to upgrading the database.
    .... Component Schemas with stale statistics:
    .... SYS
    .... OLAPSYS
    .... SYSMAN
    .... CTXSYS
    .... XDB
    WARNING: --> Database contains schemas with objects dependent on network
    packages.
    .... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs.
    WARNING: --> EM Database Control Repository exists in the database.
    .... Direct downgrade of EM Database Control is not supported. Refer to the
    .... 11g Upgrade Guide for instructions to save the EM data prior to upgrade.
    PL/SQL procedure successfully completed.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Users\Administrator>set ORACLE_HOME=C:\NewCIS270\product\11.1.0\db_1
    C:\Users\Administrator>set ORACLE_SID=KYLMAN
    C:\Users\Administrator>set PATH=%ORACLE_HOME%\bin
    C:\Users\Administrator>sqlplus "/as sysdba"
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Apr 29 20:22:49 2011
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup upgrade;
    ORACLE instance started.
    Total System Global Area 440401920 bytes
    Fixed Size 1291072 bytes
    Variable Size 146803904 bytes
    Database Buffers 289406976 bytes
    Redo Buffers 2899968 bytes
    Database mounted.
    Database opened.
    SQL> @?
    SP2-0310: unable to open file "C:\NewCIS270\product\11.1.0\db_1.sql"
    SQL> @?/rdbms/admin/catupgrd
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>
    DOC> The first time this script is run, there should be no error messages
    DOC> generated; all normal upgrade error messages are suppressed.
    DOC>
    DOC> If this script is being re-run after correcting some problem, then
    DOC> expect the following error which is not automatically suppressed:
    DOC>
    DOC> ORA-00001: unique constraint (<constraint_name>) violated
    DOC> possibly in conjunction with
    DOC> ORA-06512: at "<procedure/function name>", line NN
    DOC>
    DOC> These errors will automatically be suppressed by the Database Upgrade
    DOC> Assistant (DBUA) when it re-runs an upgrade.
    DOC>
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following statement will cause an "ORA-01722: invalid number"
    DOC> error if the user running this script is not SYS. Disconnect
    DOC> and reconnect with AS SYSDBA.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    no rows selected
    DOC>######################################################################
    DOC>######################################################################
    DOC> The following statement will cause an "ORA-01722: invalid number"
    DOC> error if the database server version is not correct for this script.
    DOC> Shutdown ABORT and use a different script or a different server.
    DOC>######################################################################
    DOC>######################################################################
    DOC>#
    SELECT TO_NUMBER('MUST_BE_11_1') FROM v$instance
    ERROR at line 1:
    ORA-01722: invalid number
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Users\Administrator>
    Edited by: 855732 on Apr 29, 2011 6:59 PM

    Hi,
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    Your instance is started from the 10g ORACLE_HOME. You mentioned you started it from the 11g ORACLE_HOME but it's not the case.
    Here is an example with a 10gR2 database started from a 11gR2 ORACLE_HOME :
    SQL> startup upgrade pfile =/u01/app/oracle/product/10.2.0/db_1/dbs/initP102.ora
    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
    ORACLE instance started.
    Total System Global Area  167387136 bytes
    Fixed Size                  1335248 bytes
    Variable Size              88080432 bytes
    Database Buffers           75497472 bytes
    Redo Buffers                2473984 bytes
    Database mounted.
    Database opened.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNotice the Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 part.
    In your case it was Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    To solve the issue follow the official documentation, you have specific actions with oradim etc. to do (it's always a bit more complicated than with Unix/Linux but it's documented) :
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/upgrade.htm#insertedID8
    Best regards
    Phil

  • Loss of all controlfile,database is automatic shutdown abort?

    Your database is configured in NOARCHIVELOG mode. All the control files have been lost due to a hard disk failure but the data files are not lost. You have the closed whole database backup available to you. Which two statements are true in this scenario? (Choose two.)
    A) The instance aborts.
    B) The database cannot be recovered.
    C) The database can be recovered by restoring the control files from the backup.
    D) The database remains opened and you have to shut it down with the ABORT option.
    E) The database can be restored till the point of the last closed whole database backup.
    noarchivelog mode , before open database i had rman backup full database;
    idle> conn / as sysdba
    Connected.
    idle> alter database open;
    Database altered.
    idle> conn anbob/anbob
    Connected.
    anbob@ANBOB> create table testdelctl(id int);
    Table created.
    anbob@ANBOB> insert into testdelctl values(999);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn system/oracle
    Connected.
    system@ANBOB> select * from v$controlfile;
    STATUS
    NAME
    IS_ BLOCK_SIZE FILE_SIZE_BLKS
    /oracle/oradata/anbob/control01.ctl
    NO 16384 430
    /oracle/oradata/anbob/control02.ctl
    NO 16384 430
    /oracle/oradata/anbob/control03.ctl
    NO 16384 430
    system@ANBOB> !rm /oracle/oradata/anbob/control*.ctl
    system@ANBOB> !ls /oracle/oradata/anbob/
    redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbf
    redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    system@ANBOB> select open_mode from v$database;
    select open_mode from v$database
    ERROR at line 1:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    system@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> conn anbob/anbob
    Connected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    anbob@ANBOB> insert into testdelctl values(0);
    1 row created.
    anbob@ANBOB> commit;
    Commit complete.
    anbob@ANBOB> conn / as sysdba
    Connected.
    sys@ANBOB> alter systme checkpoint;
    alter systme checkpoint
    ERROR at line 1:
    ORA-00940: invalid ALTER command
    sys@ANBOB> alter system checkpoint;
    System altered.
    sys@ANBOB> select status from v$instance;
    STATUS
    OPEN
    sys@ANBOB> select * from v$version where rownum=1
    2 ;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    sys@ANBOB> shutdown immediate
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/anbob/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    sys@ANBOB> shutdown abort
    ORACLE instance shut down.
    sys@ANBOB> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1218316 bytes
    Variable Size 96471284 bytes
    Database Buffers 67108864 bytes
    Redo Buffers 2973696 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    sys@ANBOB> select status from v$instance;
    STATUS
    STARTED
    [oracle@aix ~]$ rman target/
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Jul 14 22:32:12 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: anbob (not mounted)
    RMAN> restore controlfile;
    Starting restore at 14-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 07/14/2011 22:32:27
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    RMAN> restore controlfile from autobackup;
    Starting restore at 14-JUL-11
    using channel ORA_DISK_1
    recovery area destination: /oracle/flash_recovery_area
    database name (or database unique name) used for search: ANBOB
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    channel ORA_DISK_1: control file restore from autobackup complete
    output filename=/oracle/oradata/anbob/control01.ctl
    output filename=/oracle/oradata/anbob/control02.ctl
    output filename=/oracle/oradata/anbob/control03.ctl
    Finished restore at 14-JUL-11
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:32:52
    ORA-01507: database not mounted
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:12
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/14/2011 22:33:19
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/oradata/anbob/system01.dbf'
    RMAN> recover database;
    Starting recover at 14-JUL-11
    Starting implicit crosscheck backup at 14-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 14-JUL-11
    Starting implicit crosscheck copy at 14-JUL-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 14-JUL-11
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /oracle/flash_recovery_area/ANBOB/autobackup/2011_07_14/o1_mf_s_756511643_71xy4xjm_.bkp
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 19 is already on disk as file /oracle/oradata/anbob/redo03.log
    archive log thread 1 sequence 20 is already on disk as file /oracle/oradata/anbob/redo01.log
    archive log filename=/oracle/oradata/anbob/redo03.log thread=1 sequence=19
    archive log filename=/oracle/oradata/anbob/redo01.log thread=1 sequence=20
    media recovery complete, elapsed time: 00:00:03
    Finished recover at 14-JUL-11
    RMAN> alter database open resetlogs;
    database opened
    RMAN> exit
    Recovery Manager complete.
    o[oracle@aix ~]$ ora
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jul 14 22:34:23 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    sys@ANBOB> !ls /oracle/oradata/anbob/
    control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf undotbs2.dbf
    control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf users01.dbfconn anbob
    sys@ANBOB> conn anbob
    Enter password:
    Connected.
    anbob@ANBOB> select * from tab;
    TNAME TABTYPE CLUSTERID
    TESTCHAR TABLE
    TT TABLE
    TESTTRUN TABLE
    TESTADDM TABLE
    TEST TABLE
    TESTFUNIDX TABLE
    TEAM TABLE
    MEMB TABLE
    TESTENC TABLE
    TESTREC TABLE
    BIN$p/SuvHy7sn7gQKjA9QF/dQ==$0 TABLE
    DETP TABLE
    TESTDELCTL TABLE
    DEPT TABLE
    TESTFLS TABLE
    15 rows selected.
    anbob@ANBOB> select * from testdelctl;
    ID
    999
    0
    why,loss of all controlfile,the database not abort?

    Satish Kandi wrote:
    The files, which are in use by a process, are not actually deleted when one issues rm command.
    Its only when the process terminates that the locks are released and file is actually deleted at operating system level.I concur!
    This behavior is *NIX only.
    Windows explicitly prevents open files from being deleted.
    Edited by: sb92075 on Jul 14, 2011 9:18 PM

  • Incomplete recovery in Oracle 10g

    hello,
    I have been trying Incomplete recovery in oracle 10g. The steps i did were.
    1. Set the database in archivelog mode.
    2. shutdown immediate
    3. Take physical copies of control files, datafiles and redo files
    4. open the database.
    5. Insert three rows in test table and commit. (and note the time )
    6. shutdown abort
    7. copy the restored datafiles to the desired location
    8. startup mount
    9 recover database until time (the time noted in step 5)
    10. alter database open resetlogs
    After doing this, i still do not get the three records inserted in step 5.
    Can anyone suggest why this is so ? am i missing something. ?
    Thanx.
    Trupti

    Hello,
    Thank you for the prompt reply.
    I did what you suggested. Here are the output.
    16:17:52 SQL> select * from testing.test;
    NO
    1
    2
    3
    4
    17:09:26 SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    *** Here i took a backup of all files.
    17:10:16 SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 788224 bytes
    Variable Size 66058496 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    17:13:45 SQL> alter database open;
    Database altered.
    17:14:07 SQL> alter system switch logfile;
    System altered.
    17:14:17 SQL> select * from testing.test;
    NO
    1
    2
    3
    4
    17:14:25 SQL> insert into testing.test values(5);
    1 row created.
    17:14:40 SQL> insert into testing.test values(6);
    1 row created.
    17:14:43 SQL> insert into testing.test values(7);
    1 row created.
    17:14:45 SQL> commit;
    Commit complete.
    17:14:47 SQL> alter system switch logfile;
    System altered.
    17:14:50 SQL> insert into testing.test values(8);
    1 row created.
    17:14:55 SQL> insert into testing.test values(9);
    1 row created.
    17:14:57 SQL> insert into testing.test values(10);
    1 row created.
    17:15:00 SQL> commit;
    Commit complete.
    17:15:02 SQL> alter system switch logfile;
    System altered.
    17:15:04 SQL> shutdown abort;
    ORACLE instance shut down.
    *** Here i restored the datafiles
    17:15:15 SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 788224 bytes
    Variable Size 66058496 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    17:18:09 SQL> recover database until time '2004-12-05:17:14:45';
    ORA-00279: change 402561 generated at 12/05/2004 17:10:03 needed for thread 1
    ORA-00289: suggestion :
    G:\ORACLE10G\ORADATA\NEWTEST\ARCHIVE\ARC00002_0544119450.001
    ORA-00280: change 402561 for thread 1 is in sequence #2
    17:18:43 Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    Log applied.
    Media recovery complete.
    17:19:20 SQL>
    17:19:51 SQL> alter database open resetlogs;
    Database altered.
    17:20:33 SQL> select * from testing.test;
    NO
    1
    2
    3
    4

  • How to start Oracle 10g RAC database and clusterware?

    I have steps to stop the 10g RAC Database and clusterware but not sure about starting it.
    I have heard executing
    $crsctl stop crs --as root
    on each node
    will start the database,asm,nodeapps .Is that true?
    or we have to do that step by step like we do in stopping the clusterware and database below
    1.Stop the agent:
    cd to $AGENT_HOME/corpng04.amhc.amhealthways.net/bin, then run: ./emctl stop agent
    2.Stop the full database
    $ oracle_home/bin/srvctl stop database -d db_name
    3.Stop the ASM Instances on node1,node2
    $ oracle_home/bin/srvctl stop asm -n node -- I guess you can't give multiple nodes in one command with comma,you need to give this multiple times with diff node name
    4.Stop the NodeApps :vip,listener,oms and gsd
    $ oracle_home/bin/srvctl stop nodeapps -n node -- I guess you can't give multiple nodes in one command with comma,you need to give this multiple times with diff node name
    5.Stop the CRS cluster processes :those bloody 3 evmd,ocssd,crsd
    $su - root
    $CRS_home/bin/crsctl stop crs

    Paul R @ NL wrote:
    before is shutting down crs i tend to stop the instances and services via srvctl then stop crs via crsctl
    just the way i do it. not saying it's the right way but it is the one i am comfortable with.Good -) If we stop CRS, but forgot shutdown oracle instances ... we'll see shutdown abort in alert log file(that mean instances are shutdowned abort).
    We should shutdown instance before stop CRS anyway.

  • How to startup database after shutdown abort

    Hi.
    I had a havy load transaction, coudn't kill, so I run shutdown abort,
    now I can't open database, that is massage I get:
    "ORA-16038: log 3 sequence# 52 cannot be archived
    ORA-19809: limit exceeded for recovery files
    ORA-00312: online log 3 thread 1:
    '/u01/app/oracle/oradata/ORCL/onlinelog/o1_mf_3_48fpv6q1_.log'
    ORA-00312: online log 3 thread 1:
    '/u01/app/oracle/flash_recovery_area/ORCL/onlinelog/o1_mf_3_48fpv95v_.log'
    What to do?

    Upss sorry:
    Check your flashrecovery area directory, it's full and your redo logs cannot be archived
    release the space..
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    Edited by: Kamran Agayev A. on Mar 5, 2009 8:27 PM

  • Error starting up Oracle 10g database.

    Hi,
    (I had shutdown my database by "shutdown abort")
    Now i'm getting the following error while trying to startup Oracle 10g database version :- 10.2.0.1.0.
    SQL> startup nomount
    ORA-07345: The datafile name must not contain the string '..'.
    I get the same error even for startup/ startup mount
    currently i'm using only pfile for startup as there is no spfile in dbs directory.

    Hi Kuljeet,
    This is a very strange error, i know, controlfile contains are not read in "no mount" state of database... still i'm getting the error.
    The contents of my pfile are as follows :-
    ============================================================
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_dest_1='location=/net/nasdbdmp/vl/nasdbdmp/db_dumps/OQF/data/arch'
    #log_archive_format=%t_%s_%r.dbf
    log_archive_format=%t_%s_%r
    ##log_archive_dest='/net/nasdbdmp/vl/nasdbdmp/db_dumps/OQF/data/arch'
    # Cache and I/O
    db_block_size=8192
    # Cluster Database
    cluster_database=FALSE
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=DSOLPROD
    # Diagnostics and Statistics
    background_dump_dest=/vl/dsolprod/oracle/product/admin/DSOLPROD/bdump
    core_dump_dest=/vl/dsolprod/oracle/product/admin/DSOLPROD/cdump
    user_dump_dest=/vl/dsolprod/oracle/product/admin/DSOLPROD/udump
    # Distributed, Replication and Snapshot
    open_links=4
    # File Configuration
    control_files=("/vl/dsolprod/ora2/control/control01.ctl")
    db_recovery_file_dest=/vl/dsolprod/db_dumps
    db_recovery_file_dest_size=2147483648
    # Job Queues
    job_queue_processes=5
    # Miscellaneous
    compatible=10.2.0.1.0
    # NLS
    nls_date_format=dd-mm-yyyy
    # Optimizer
    optimizer_mode=CHOOSE
    # Processes and Sessions
    processes=150
    # Redo Log and Recovery
    log_buffer=22479872
    log_checkpoint_interval=10000
    log_checkpoint_timeout=1800
    # SGA Memory
    sga_max_size=314032288
    sga_target=314032288
    # Security and Auditing
    audit_trail=DB
    os_authent_prefix=OPS$
    remote_os_authent=TRUE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_retained_size=65536
    sort_area_size=65536
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    ===========================================================

  • Stopping the Enterprise Manager Console (Oracle 10g on SuSE 9.1)

    I'm trying to stop the Enterprise Manager Console by issuing the command:
    ${ORACLE_HOME}/bin/emctl stop dbconsole
    Unfortunately, the command fails to stop the EM Console. Here's the output I get:
    TZ set to US/Pacific
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://<hostname>:5505/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    --- Failed to shutdown DBConsole Gracefully ---
    failed.
    The only way I can stop the EM Console (and related services--i.e., emagent) is to kill its process.
    Everything (Listener, DB Instance, EM Console) starts fine. I can stop the Listener and DB Instance without any problems. It's just the EM Console shutdown that doesn't happen cleanly.
    Has anyone else encountered the same condition? If so, what was the solution?
    Here's my operating environment:
    SuSE 9.1 (Kernel 2.6.5-7.108-default)
    Oracle 10g
    Thanks in advance for any help/insight.

    Has anyone else encountered the same condition? If so, what was the solution?Yes. Shutdown/reboot of the system made the error go away.
    Sorry, no better clues,
    Toni

  • Migration from Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 Server

    I am working on migrating Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 from Old server to new server. We have db around 500 GB and 3 schemas. I installed Oracle 10G on new server, created tablespaces, schema's blah blah and now doing export and import at schema level from old server to new server.
    Import is taking more than 4 to 5 hours on new server. My manager is saying, window time is bit longer and he wants me to try possiblities to make this process faster. Can some one help me on this, to use the best possible method to complete this process faster?
    Will below step work, if I try?
    If I install, oracle 9i and 10g both on new server in different home directories and take the hot backup from old machine and restore on new machine in 9i home directory and use the upgrade configuration assistant from 10g and do the upgrade? Pls advice.
    Thanks in advance,
    Hari babu
    Edited by: user6367891 on Mar 2, 2010 5:28 AM

    It looks good.
    I have one question in below steps:
    To migrate an Oracle9i or older database to an Oracle Database 10g Release 1 (10.1) database for 64-bit Windows:
    1 Perform steps 1 - 11 in "Migrating an Oracle Database 10g Release 1 (10.1) Database".
    2 Shut down the database on the 64-bit computer:
    SQL> SHUTDOWN IMMEDIATE;
    3 Start the database migration:
    SQL> STARTUP MIGRATE;
    4 Migrate the database as described in Chapter 3, "Upgrading a Database to the New Oracle Database 10g Release" in Oracle Database Upgrade Guide.
    In step 4, it says, migrate database as described in chapter 3. In chapter 3, it says, to do the upgrade the process using dbca or manually. Pls confirm whether do the upgrade process after issuing startup migrate or not.
    Thanks in advance.

  • Oracle 10g Startup problem on SuSE 9.1

    Hello everyone,
    I am new to Linux. And i have installed oracle 10g on SuSE Linux 9.1. I am able to install it properly, now i want to start my database. So, what steps i need to follow.
    I tried as follows
         1. Login as oracle and start the terminal.
         2. keyin the command as follows
         "sqlplus /nolog"
         but it is giving me the error message:
         "bash: sqlplus: command not found"
    Below it the step i followed at Terminal
    oracle@susepc:/> whoami
    oracle
    oracle@susepc:/> pwd
    oracle@susepc:/> sqlplus /nolog
    bash: sqlplus: command not found
    oracle@susepc:/>
    can anyone tell me how i can
    1. check my DB is runnig in SuSE Linux 9.1?
    2. start and stop my DB in SuSE Linux 9.1>
    Thanks in advance for your help and waiting for reply soon.. as it is urgent to me.
    Regards,

    Hi Ivan,
    Thanks for quick reply, Now i have set the PATH enviroment variable and i can able to start & shutdown my DB.
    But now i want to use Enterprise Manager and isqlplus via it's url(which i get at the end of Oracle Installation). I am not able to run it and it is giving me "Access Denied" error can you please reply me on this soon.
    waiting for your reply and thanks for all your help.
    Regards,
    Akshay Brahmbhatt

  • Oracle 10G RAC - Public & Heartbeat on 1 NIC

    Hello all,
    actually I am installing Oracle 10G RAC on rhel 4 (4 node cluster). But the Cluster Verification Utility aborts with errors. I checked the configToolAllCommands and tried to run the failed commands manually:
    #/opt/oracle/crs/bin/oifcfg setif -global eth0.100/172.18.0.0:cluster_interconnect eth0.728/172.16.128.0:public eth0.498/172.17.1.0:cluster_interconnect
    PRIF-50: duplicate interface is given in the input
    PRIF-50: duplicate interface is given in the input
    PRIF-50: duplicate interface is given in the input
    Question:
    Is it possible to put Public & Heartbeat on one NIC (eth0.728 & eth0.498)
    If not is their any workaround for that issue?
    Output /etc/hosts
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    172.18.253.48 eu0266.[company].net cfmaster
    172.16.128.11 eu0200.[company].net eu0200
    172.16.128.12 eu0201.[company].net eu0201
    172.16.128.13 eu0202.[company].net eu0202
    172.16.128.14 eu0203.[company].net eu0203
    172.18.13.11 eu0200m.[company].net eu0200m
    172.18.13.12 eu0201m.[company].net eu0201m
    172.18.13.13 eu0202m.[company].net eu0202m
    172.18.13.14 eu0203m.[company].net eu0203m
    # Private section
    172.17.1.11 eu0200-priv.[company].net eu0200-priv
    172.17.1.12 eu0201-priv.[company].net eu0201-priv
    172.17.1.13 eu0202-priv.[company].net eu0202-priv
    172.17.1.14 eu0203-priv.[company].net eu0203-priv
    # Virtual section
    172.16.128.16 eu0200-vip.[company].net eu0200-vip
    172.16.128.17 eu0201-vip.l[company].net eu0201-vip
    172.16.128.18 eu0202-vip.[company].net eu0202-vip
    172.16.128.19 eu0203-vip.[company].net eu0203-vip
    Output install log:
    Checking existence of VIP node application (required)
    Check failed.
    Check failed on nodes:
    eu0203,eu0202,eu0201,eu0200
    Checking existence of ONS node application (optional)
    Check ignored.
    Checking existence of GSD node application (optional)
    Check ignored.
    Post-check for cluster services setup was unsuccessful on all the nodes.
    Command = /opt/[company]/oracle/crs/bin/cluvfy has failed
    INFO: Configuration assistant "Oracle Cluster Verification Utility" failed
    *** Starting OUICA ***
    Oracle Home set to /opt/[company]/oracle/crs
    Configuration directory is set to /opt/[company]/oracle/crs/cfgtoollogs. All xml files under the directory will be processed
    INFO: The "/opt/[company]/oracle/crs/cfgtoollogs/configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    Thanks in advance for your help!
    Regards

    Tads wrote:
    Hi all,
    I have a question about Oracle RAC and network interface.
    We're using Oracle 10gR2 RAC with two nodes on Linux Red Hat.
    Let's assume that the public network interface goes down.
    I would like to know what happens with existing connections
    on node with network interface with problems.
    Are connections frozen, actives?
    Can the users continue to use theses existing connections using the another node of RAC?If the interface is down? what do you think? All connections to this node will die. How does your application handle fail-over, does it attempt to reconnect or just have a complete application failure?
    You should spend some time in a test lab where you can test this stuff for yourself. Read the documentation and there are tons of sites out there that purport to have all of your RAC/TAF/FAN/FAF questions. - I would read and trust the documentation first.
    >
    I know that the listener goes down and any other connections is allowed.
    Thank you very much!!!!

Maybe you are looking for

  • My Speedgrade display is too dark

    It's so dark, I can't read it.  Does anyone know how to change or lighten the display background?  I searched but could not find a way to do that and it's not in the preferences, at least it's not obviously so.

  • Matrix - SerializeAsXML method

    Hi Pros,    I used the SerializeAsXML method to parse the matrix to an XML.  I also used the xsd.exe create a Matrix Class and deserialize the XML into a Matrix object (as Matrix Class).  From there I can manipulate the data using the Matrix object (

  • Where to store data when you have a single app, users can purchase add-ons for the app, and each such purchase needs new files

    Hi, I have a hub app and need to give users the option to purchase various add-ons. For each such ad-on, I need to download a new set of files. Where would such files be stored, and how does it work when a new purchase is made? I cant seem to find an

  • Availability of real GPS applications for 3G?

    Firstly, I'm not talking about turn-by-turn navigational software. I have no use for that. What I mean by "real" GPS software is software that enables me to get Lat/Longs (or coordinates in other coordinate systems), WAAS availability, parallel chann

  • Vector to String[] Conversion

    Hi All, I am trying to convert Vector to String Array. the problem is when I tried to print the String Array out side the loop I am getting only last value. I want to pass String Array to another function. How to do that? Find the code below:- Vector