Drop logfile group error!

Hi,
I got the following error while executing the statement:
SQL> alter database drop logfile group 3;
alter database drop logfile group 3
ERROR at line 1:
ORA-00350: log 3 of thread 1 needs to be archived
ORA-00312: online log 3 thread 1: 'F:\ORA9I\ORADATA\TESTDB\REDO03.LOG'
Can anybody tell me the reason?
TIA
Aqueel.

switch logs until the active one doesn’t belong to group 3.
alter system switch logfile;
Manually archive group 3
alter system archive log GROUP 3;
then drop group 3.
alter database drop logfile group 3;
Michel.
www.odbtools.com

Similar Messages

  • Drop log group of non existing thread

    How to drop an non-existing thread log group.
    My database doesn't have thread 3; this has been added during cloning from 3 node to 2 node RAC.
    alter database drop logfile group 10
    ERROR at line 1:
    ORA-01623: log 10 is current log for instance UNNAMED_INSTANCE_3 (thread 3) - cannot drop
    ORA-00312: online log 10 thread 3: '+DATA/devdb/onlinelog/group_10.560.811225745'
    ORA-00312: online log 10 thread 3: '+FLASHBACK/devdb/onlinelog/group_10.360.811225745'
    GROUP#    THREAD#     seq#    STATUS
    10                    3               1         ACTIVE             
    11                    3               0         UNUSED

    Hi,
    It seems that Group 10 of Thread 3 is still used as its status is current.
    Please try to do
    alter system switch logfile;
    alter system checkpoint;And see whats the status for thread 3 and also verify if really thread 3 is now required.
    And you can always disable this thread if now required.
    Thanks,
    Navneet

  • Standby logfile missing error

    Hello all,
    I am getting this following error in standby alertlog file.
    ORA-00313: open failed for members of log group 8 of thread 2
    ORA-00312: online log 8 thread 2: '+DG_FLASH/hsstl/onlinelog/group_8.273.779638759'
    ORA-17503: ksfdopn:2 Failed to open file +DG_FLASH/hsstl/onlinelog/group_8.273.779638759
    ORA-15012: ASM file '+DG_FLASH/hsipstl/onlinelog/group_8.273.779638759' does not exist
    ORA-00312: online log 8 thread 2: '+DG_DATA/hsstl/onlinelog/group_8.1766.779638759'
    ORA-17503: ksfdopn:2 Failed to open file +DG_DATA/hsstl/onlinelog/group_8.1766.779638759
    ORA-15012: ASM file '+DG_DATA/hsipstl/onlinelog/group_8.1766.779638759' does not exist
    When i manually check the diskgroup '+DG_FLASH, +DG_DATA, i can see the group_8 file with some other numbers.
    Kindly let me know how to proceed for that. oracle 11g database, standalone standby database in aix box
    My guess is control file is still thinking that the group 8 file is present and looks for it when starting the standby, but actually that file is not there in the diskgroup. instead some other filename is there for the same group.
    Either i want to update the control file about the new log group 8, or drop the log 8 group, delete the log 8 group files from the disgroups +DG_FLASH, +DG_DATA and create a new log 8 group
    Kindly suggest
    Regards,

    Test
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 7 '/u01/app/oracle/oradata//redo07.log' SIZE 50M;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
      7 0 0 52428800 
    ALTER DATABASE CLEAR LOGFILE GROUP 7; 
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE CLEAR LOGFILE GROUP 7;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1327 52428800
      6 1 0 52428800
      7 0 0 52428800
    SQL> /
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 1330 52428800
      5 1 0 52428800
      6 1 0 52428800
      7 0 0 52428800
    What I noticed is no matter how many switches I do the Standby only uses group 4 and 5. If I recreate with a Thread number it seems to work.
    SQL> alter database recover managed standby database cancel;
    Database altered.
    SQL> ALTER DATABASE DROP STANDBY LOGFILE GROUP 7;
    Database altered.
    SQL> !rm /u01/app/oracle/oradata//redo07.log
    SQL> ALTER DATABASE ADD STANDBY LOGFILE THREAD 1 GROUP 7 '/u01/app/oracle/oradata//redo07.log' SIZE 50M;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> Select GROUP#, THREAD#, SEQUENCE#, BYTES from v$standby_log;
      GROUP# THREAD# SEQUENCE# BYTES
      4 1 0 52428800
      5 1 1343 52428800
      6 1 0 52428800
      7 1 0 52428800
    SQL>
    Check
    SQL> select GROUP#,BYTES/1024/1024/1024 , STATUS, FIRST_TIME,NEXT_TIME from v$standby_log;
      GROUP# BYTES/1024/1024/1024 STATUS FIRST_TIM NEXT_TIME
      4 .048828125 UNASSIGNED
      5 .048828125 ACTIVE 29-NOV-13
      6 .048828125 UNASSIGNED
      7 .048828125 UNASSIGNED
    SQL>

  • ORA-01184: logfile group 1 already exists

    After startup nomount, I try to create database as follows:
    CREATE DATABASE SISDEV04
         LOGFILE GROUP 1 '/sisdev04/dbs/log01a.dbf'
    SIZE 10M
         ,     GROUP 1 '/sisdev04/dbs/log01b.dbf'
    SIZE 10M
         ,     GROUP 2 '/sisdev04/dbs/log02a.dbf'
    SIZE 10M
         ,     GROUP 2 '/sisdev04/dbs/log02b.dbf'
    SIZE 10M
         NOARCHIVELOG
         CHARACTER SET ZHT16BIG5
         NATIONAL CHARACTER SET ZHT16BIG5
         DATAFILE '/sisdev04/dbs/system01.dbf'      
              SIZE 210M AUTOEXTEND OFF
         , '/sisdev04/dbs/rbs01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/temp01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/users01.dbf'
    SIZE 1050M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ivr01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ivr01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
    However, I receive such error:
    ORA-01501: CREATE DATABASE failed
    ORA-01184: logfile group 1 already exists
    I have checked that there is no files in '/sisdev04/dbs/' before I issue the command, what can I do?

    Hello...
    Excuse me..
    May be I have same problem..
    I use Oracle Streams to replicate table in one to another database. While i configure setup replication occur this errror.
    How to resolve this problem i have?
    SQL> SQL> Connecting to source database as STRMADMIN
    SQL> Executing ..
    SQL> connect STRMADMIN/******
    SQL> Connected.
    SQL> SQL> SQL> Executing ..
    SQL> DROP DATABASE LINK DBSTG
    SQL>
    Database link dropped.
    SQL> SQL> Executing ..
    SQL> CREATE DATABASE LINK DBSTG connect to strmadmin identified by ****** using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))'
    SQL>
    Database link created.
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbstg,dbsd)' scope=both
    SQL>
    System altered.
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_3='SERVICE="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))" ASYNC NOREGISTER VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=dbstg' scope=both
    SQL>
    System altered.
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=DEFER scope=both
    SQL>
    System altered.
    SQL> CONNECT TO DOWNSTREAM DB AND SETUP LOG PARAMS
    SQL> Executing ..
    SQL> connect strmadmin/******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.4.10.21)(PORT=1521)))(CONNECT_DATA=(SID=dbstg)(server=DEDICATED)))
    SQL> Connected.
    SQL> SQL> Executing ..
    SQL> DROP DATABASE LINK DBSD
    SQL>
    Database link dropped.
    SQL> SQL> SQL> Executing ..
    SQL> CREATE DATABASE LINK DBSD connect to STRMADMIN identified by ****** using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=t0031)(PORT=1521)))(CONNECT_DATA=(SID=dbsd)(server=DEDICATED)))'
    SQL>
    Database link created.
    SQL> Executing ..
    SQL> CREATE OR REPLACE DIRECTORY STANDBY_LOG_LOC AS '/u01/app/oracle/admin/dbstg/srl_dbsd/'
    SQL>
    Directory created.
    SQL> 1* CREATE OR REPLACE DIRECTORY STANDBY_LOG_LOC AS '/u01/app/oracle/admin/dbstg/srl_dbsd/'
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_CONFIG='DG_CONFIG=(dbstg,dbsd)' scope=both
    SQL>
    System altered.
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=ENABLE scope=both
    SQL>
    System altered.
    SQL> Executing ..
    SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_3='LOCATION=/u01/app/oracle/admin/dbstg/srl_dbsd/ VALID_FOR=(STANDBY_LOGFILE,PRIMARY_ROLE)'scope=both
    SQL>
    System altered.
    SQL> Executing ..
    SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 ('/u01/app/oracle/admin/dbstg/srl_dbsd/log4a.rdo', '/u01/app/oracle/admin/dbstg/srl_dbsd/slog4b.rdo') SIZE 104857600
    SQL> ALTER DATABASE ADD STANDBY LOGFILE GROUP 4 ('/u01/app/oracle/admin/dbstg/srl_dbsd/log4a.rdo', '/u01/app/oracle/admin/dbstg/srl_dbsd/slog4b.rdo') SIZE 104857600
    ERROR at line 1:
    ORA-01184: logfile group 4 already exists
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Error from SQLPLUS: 160

  • Drop cache group in timesten 11.2.1

    Hello,
    I am trying to drop an asynchronous cache group in timesten. I follow the below steps to do so:
    a) I use the connection string with the DSN, UID, PWD, OracleID, OraclePWD specified
    b) If replication policy is 'always', change it to 'manual'
    c) Stop replication
    d) Drop the AWT cache group (+drop cache group cachegroupname;+)
    e) Create the modified AWT
    f) Start replication
    g) Set replication policy back to 'always'
    After step (d), I get the following error:
    Command> drop cache group cachegroupname;
    +5219: Temporary Oracle connection failure error in OCIServerAttach(): ORA-12541: TNS:no listener rc = -1+
    +5131: Cannot connect to backend database: OracleNetServiceName = "servicename", uid = "inputuid", pwd is hidden, TNS_ADMIN = "/opt/TT/linux/info", ORACLE_HOME= "/opt/TT/linux/ttoracle_home/instantclient_11_1"+
    +5109: Cache Connect general error: BDB connection not open.+
    The command failed.
    Command>
    Does the error suggest that cache connect has a problem? Should I restart the timesten daemon and try again? Please let me know what the real problem is.
    Let me know if you need information.
    Thanks,
    V

    The SQL*Plus problem is simply because you don't have all the correct directories listed in LD_LIBRARY_PATH. It's likely that your .profile (or equivalenbt) was setting those based on ORACLE_HOME and if this is now unset that could be he problem. Check that LD_LIBRARY_PATH is set properly and this problem will go away.
    The character set issues is potentially more problematic. it is mandatory that the Database character set used by TimesTen exactly matches that of Oracle DB when TT is being used as a cache. If the character sets truly are different then this is very serious and you need to rectify it as many things will fail otherwise. You either need to switch Oracle DB back to US7ASCII (this is probably a big job) or you need to change the TT character set to WE8MSWIN1252.
    To accomplish the latter you would:
    1. Take a backup of the TT datastore using ttBackup (just for safety).
    2. For any non-cache tables (i.e. TT only tables), unload data to flat files using ttBulkCp -o ...
    3. Save the schema for the datastore using ttSchema.
    4. Stop cache and replication agents.
    5. Ensure datastore is unloaded from memory and then destroy the datastore (ttDestroy)
    6. Edit sys.odbc.ini to change Datastore character set.
    7. Connect to datastore as instance administrator (to create datastore). Create all necessary users and grant required privileges.
    8. Set the cahce userid/password (call ttCacheUidPwdSSet(...,...))
    9. Start the cache agent.
    10. Run the SQL script generated by ttSchema to re-create all database objects (tables and cache groups etc.)
    11. Re-populate all non-cache tables from the flat files using ttBulkCp -i
    12. Re-load all cache groups using LOAD CACHE GROUP ...
    13. restart replication agent.
    That's pretty much it (hopefully I have not missed out any vital step).
    Chris

  • Alter database clear unarchived logfile group... who, what?

    I am the sole DBA for our site, all of them running RHEL 5, Oracle 11.2.0.3.
    I recently (within the last hour), received a text message from one of our databases that poll the alert.log...
    ORA-1031 signalled during: ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 3
    Unfortunately, the 'audit database' was not enabled (it is now!), and the trace file generated did not contain anything of use.
    I know someone has been loading data since 1:30pm up until near the time I received this text, and I'm wondering if he is mucking in the system, or if this command can somehow be generated automatically by Oracle. If so, I certainly wouldn't expect an ORA-1031insufficient permissions error....
    I checked my v$log, v$logfile, and did a log switch just to check if any possibility of redo log corruption, but all looks fine.
    Has anyone else ever had random Oracle errors like this?....

    Hi,
    That's someone manually doing something when they really don't know what they are doing. I've only had to run that command once in 16 years as a dba. Oracle wouldn't ever run that itself.
    Cheers,
    Harry

  • I missed to add Standby Logfile groups? What now?

    Hi there
    I have created a Standby database in a test environment using RMAN   (followed the procedure given here -> URL:  Creating a Standby Database with Recovery Manager).
    When I tried to start the recovery on Standby, I got the following error:
    [code]
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT
    ERROR at line 1:
    ORA-38500: USING CURRENT LOGFILE option not available without stand
    SQL> select NAME, OPEN_MODE, GUARD_STATUS, DATABASE_ROLE from v$database;
    NAME      OPEN_MODE  GUARD_S DATABASE_ROLE
    PRIM      MOUNTED    NONE    PHYSICAL STANDBY
    SQL>
    [/code]
    I missed the step to add standby logfile groups. Do I need to recreate the Standby database now? I mean, add standby logfile groups to Primary, then take full RMAN backup and recreate the standby database (following the procedure described in the URL above)?
    I am using Oracle 10gR2 on OEL 5.8.
    Please advise!
    Best regards

    OK thank you both - I have added the standby logfile groups both on Primary and Standby (mounted) database and I was able to successfully issue the following command:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
    I hope this was the right thing to do under the circumstances, right?
    And now there seems to be a gap:
    PRIM_SQL> SELECT MAX(SEQUENCE#) FROM V$ARCHIVED_LOG;
    MAX(SEQUENCE#)
                11
    STDBY_SQL> SELECT MAX(SEQUENCE#) FROM V$LOG_HISTORY;
    MAX(SEQUENCE#)
                 9
    I issued "alter system switch logfile" few times on the Primary but logs don't seem to be shipping? How to check this and fix?
    EDIT: OK I checked the Primary alert log file and see following messages:
    Error 1031 received logging on to the standby
    Tue Jun 25 15:22:43 2013
    Errors in file /u01/app/oracle/admin/prim/bdump/prim_arc0_6880.trc:
    ORA-01031: insufficient privileges
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:27:43 2013
    Error 1031 received logging on to the standby
    Tue Jun 25 15:27:43 2013
    Errors in file /u01/app/oracle/admin/prim/bdump/prim_arc0_6880.trc:
    ORA-01031: insufficient privileges
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:32:43 2013
    I do have password file both on Primary and Standby servers. What is this "ORA-01031: insufficient privileges" referring to?
    EDIT#2:
    I copied the password file from Primary DB server to Standby server (with same name "orapwprim" - previously I used "orapwstan" name for standby password file) and the "login issue" is resolved. But now I see following error in the alert log file on Primary:
    PING[ARC0]: Heartbeat failed to connect to standby 'stan'. Error is 1031.
    Tue Jun 25 15:48:08 2013
    ARCH: Possible network disconnect with primary database
    Any clues here?
    EDIT#3:
    Sorry I was a bit impatient I guess.The logs a re being shipped and applied now.
    Thank you both!
    Best regards
    Message was edited by: user130038 (added alert log file info)
    Message was edited by: user130038 (Added EDIT#2)
    Message was edited by: user130038 (added EDIT#3)

  • Safari keeps dropping down this error message when ever i try to log on to any website safai can't verify the identity of the website ( e.g.. any address ) and the drop down has three choices to click on or else you can't go foward., they are check certif

    Safari keeps dropping down this error message when ever i try to log on to any website safai can't verify the identity of the website ( e.g.. any address ) and the drop down has three choices to click on or else you can't go foward., they are check certificate ______ cancel ______ continue....  This thing is so annoying when trying to go somewhere i just want the error message to go away.

    In your Keychain under 'login' delete the VeriSign certificates and then quit and restart all browsers/itunes/app store.
    http://apple.stackexchange.com/questions/180570/invalid-certificate-after-securi ty-update-2015-004-in-mavericks

  • No checking Group error

    Hi Experts,
    I have a sales order for which when I create delivery I am getting no checking group error but when I check availability check in the material it is there.
    You can see Availability is there in the material master
    Please advise what other items should I check ?
    Thanks in advance for your help !

    This seems to be message VV083. This is raised here:
    Include FV45VF0B_BESTAND_BEDARF_ABGLEI
      IF ( T459K-BEDSD NE SPACE OR T459K-ATPPR NE SPACE ) AND
           VBAP-MTVFP IS INITIAL.
        IF NEUTERMINIERUNG  EQ CHARX.
          MESSAGE ID 'VV' TYPE CHARE NUMBER 083 WITH VBAP-VBELN VBAP-POSNR.
        ELSE.
          MESSAGE ID 'VV' TYPE CHARI NUMBER 083 WITH VBAP-VBELN VBAP-POSNR.
        ENDIF.
        EXIT.
    So according to this, the error is raised if VBAP-MTVFP is initial.
    Please check if VBAP-MTVFP is initial on the database for this sales document.
    VBAP-MTVFP should be filled with the value from the material master when the sales document is created. The following could have happened on your system:
    - Sales Document created: VBAP-MTVFP is filled with a blank value as value in material master was blank.
    - Material Master was updated with a checking group AFTER the sales document was created. This would not automatically update VBAP (See note 1639349). Compare the creation date of the sales document in VBAK with relevant change documents to see if this happened.
    In the above situation, you would have a blank VBAP-MTVFP and the error is justified. You would need to delete the sales document and create again.

  • Rep : 1213 Frequency below  group error

    Hi,
    How can I solve the error in a 6i reports having error ' Rep : 1213 Frequency below group error'.
    It occurs when I am putting a ' field' in to the header part of the report. and the source setting as
    the CREATION_DATE , ie 'AMMI_PO_REQUISITION_ALL_V.CREATION_DATE.
    And same error showing when putting field at footer side also. source as AMMI_PO_TO_PEOPLE_V.NAME.
    How can I solve this problem?
    The query of the report is giving below:
    SELECT ALL AMMI_PO_REQUISITION_ALL_V.REQUISITION_HEADER_ID,
    AMMI_PO_REQUISITION_ALL_V.REQUISITION_NO, AMMI_PO_REQUISITION_ALL_V.REQUISITION_LINE_ID,
    AMMI_PO_REQUISITION_ALL_V.CREATION_DATE, AMMI_PO_REQUISITION_ALL_V.LINE_NUM,
    AMMI_PO_REQUISITION_ALL_V.ITEM_ID, AMMI_PO_REQUISITION_ALL_V.QUANTITY,
    AMMI_PO_REQUISITION_ALL_V.PREPARER_ID, AMMI_PO_REQUISITION_ALL_V.SUPPLIER,
    AMMI_PO_REQUISITION_ALL_V.ITEM_CODE, AMMI_PO_REQUISITION_ALL_V.ORGANIZATION_ID,
    AMMI_PO_REQUISITION_ALL_V.DESCRIPTION, AMMI_PO_REQUISITION_ALL_V.PURPOSE,
    AMMI_PO_REQUISITION_ALL_V.BALANCE, AMMI_PO_TO_PEOPLE_V.NAME
    FROM AMMI_PO_REQUISITION_ALL_V, AMMI_PO_TO_PEOPLE_V
    WHERE (AMMI_PO_REQUISITION_ALL_V.PREPARER_ID = AMMI_PO_TO_PEOPLE_V.PERSON_ID)
    and AMMI_PO_REQUISITION_ALL_V.REQUISITION_NO=:P_requisition_no
    and AMMI_PO_REQUISITION_ALL_V.ORGANIZATION_ID=(select ORGANIZATION_ID from AMMI_ORGANIZATIONS_V where name=:P_organization)
    with regards NASEER.

    Hi
    Thanks to the reply.
    In Data modeler I put one placeholder column in side the group. and write function
    as given below.
    function CF_1Formula return Char is
    X VARCHAR2(30);
    begin
    select name into x from AMMI_PO_REQUISITION_ALL_V where REQUISITION_NO= :p_requisition_no;--from parameter form
    return(x);
    end;
    but it is showing Error like 'identifier AMMI_PO_REQUISITION_ALL_V must be declared'
    AMMI_PO_REQUISITION_ALL_V is a view used in the report.
    1. Why this error ?
    2. Where exactly shall I put this placeholder column in data modeler? in side the group or out side?
    With thanks
    Naseer

  • Add logfile group without shutting down first? (10g R2)

    Can I add a logfile group without first shutting down the instance? I don't see any clear statement about this in my Alapati 10g Admin book or any Oracle 10g R2 docs. Citations appreciated. Maybe this is one of those "too obvious to publish" things. My guess is that Oracle 10g R2 is smart enough to know not to write to new logfile group members until it is fully created and available for use.
    Thanks.

    Hello,
    Is the presumption that any "ALTER DATABASE" operation can be done online in 10g? Not Any, but Some, Yes.
    For instance, the ALTER DATABASE ARCHIVELOG statement cannot be done online ( the Database should be mount ).
    However about the ALTER DATABASE ADD LOGFILE statement, as previously posted, it can be done online. I've already done it on a running Production Database.
    Just be careful to set the same SIZE as for the other Logfile Members.
    Hope this help.
    Best regards,
    Jean-Valentin

  • Drop Table, User, Drop * ORA-00604: error occurred at recursive SQL level 1

    Greetingss,
    Installed 11.2.0.1 several months ago and upgraded to 11.2.0.2 a month ago without issues. However prior to upgrade I was able to drop schema objects. Since upgrade I do not recall specifically dropping any objects. However, now trying to drop a few objects and discovered all drops attempted are failing, i.e. tables, packages, users, function, views, directories, etc. Create or Replace and Alter all appear to still work.
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    5 rows selected.
    SQL> connect sys as sysdba
    Connected.
    SQL> create user drop_test identified by drop_test account unlock;
    User created.
    SQL> alter user drop_test default tablespace users;
    User altered.
    SQL> grant connect, resource, dba to drop_test;
    Grant succeeded.
    SQL> connect drop_test/drop_test
    Connected.
    SQL> create table a (a number);
    Table created.
    SQL> create view av as select * from a;
    View created.
    SQL> create function ac return number as
    2 result number;
    3 begin
    4 select count (*) into result from a;
    5 return result;
    6 end;
    7 /
    Function created.
    SQL> insert into a values (1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select ac from dual;
    AC
    1
    1 row selected.
    SQL> select * from av;
    Enter
    A
    1
    1 row selected.
    SQL> drop function ac;
    drop function ac
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop view av;
    drop view av
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop table a;
    drop table a
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> connect sys as sysdba
    Connected.
    SQL> drop function drop_test.ac;
    drop function drop_test.ac
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop view drop_test.av;
    drop view drop_test.av
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop table drop_test.a;
    drop table drop_test.a
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop user drop_test;
    drop user drop_test
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> drop user drop_test cascade;
    drop user drop_test cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 3, column 83:
    PLS-00302: component 'DBMS_XDBZ' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    SQL> get /x92
    1 select owner, object_name, object_type, status
    2 from dba_objects
    3* where object_name = 'DBMS_XDBZ'
    SQL> /
    OWNER OBJECT_NAME OBJECT_TYPE STATUS
    PUBLIC DBMS_XDBZ SYNONYM VALID
    XDB DBMS_XDBZ PACKAGE VALID
    XDB DBMS_XDBZ PACKAGE BODY VALID
    3 rows selected.
    SQL> @invalid
    no rows selected
    SQL> l
    1 select
    2 owner c1,
    3 object_type c3,
    4 object_name c2
    5 from
    6 dba_objects
    7 where
    8 status != 'VALID'
    9 order by
    10 owner,
    11 object_type
    12*
    Advanced appreciation for any assistence provided.
    best Regards

    Greetings,
    Yes I do use XDB and Application Express. I can also create and delete resources in XDB repository without issue.
    SQL> select schema_url from dba_xml_schemas;
    Enter
    SCHEMA_URL
    http://xmlns.oracle.com/xdb/acl.xsd
    http://xmlns.oracle.com/xdb/dav.xsd
    http://xmlns.oracle.com/xdb/XDBResConfig.xsd
    http://xmlns.oracle.com/xdb/XDBStandard.xsd
    http://xmlns.oracle.com/xdb/log/xdblog.xsd
    http://xmlns.oracle.com/xdb/log/ftplog.xsd
    http://xmlns.oracle.com/xdb/log/httplog.xsd
    http://www.w3.org/2001/xml.xsd
    http://xmlns.oracle.com/xdb/xmltr.xsd
    http://xmlns.oracle.com/xdb/XDBFolderListing.xsd
    http://www.w3.org/1999/xlink.xsd
    http://www.w3.org/1999/csx.xlink.xsd
    http://www.w3.org/2001/XInclude.xsd
    http://www.w3.org/2001/csx.XInclude.xsd
    http://xmlns.oracle.com/xdb/stats.xsd
    http://xmlns.oracle.com/xs/roleset.xsd
    http://xmlns.oracle.com/xs/securityclass.xsd
    http://xmlns.oracle.com/rlmgr/rclsprop.xsd
    http://xmlns.oracle.com/rlmgr/rulecond.xsd
    http://xmlns.oracle.com/ord/meta/dicomImage
    http://xmlns.oracle.com/xdb/xdbconfig.xsd
    http://xmlns.oracle.com/streams/schemas/lcr/streamslcr.xsd
    http://xmlns.oracle.com/xs/dataSecurity.xsd
    http://xmlns.oracle.com/xs/aclids.xsd
    http://xmlns.oracle.com/xs/principal.xsd
    http://xmlns.oracle.com/xdb/XDBSchema.xsd
    http://xmlns.oracle.com/xdb/XDBResource.xsd
    http://www.w3.org/2001/csx.xml.xsd
    http://xmlns.oracle.com/xdb/csx.xmltr.xsd
    http://xmlns.oracle.com/ord/dicom/datatype_1_0
    http://xmlns.oracle.com/ord/dicom/orddicom_1_0
    http://xmlns.oracle.com/ord/dicom/mddatatype_1_0
    http://xmlns.oracle.com/ord/meta/iptc
    http://xmlns.oracle.com/ord/dicom/standardDictionary_1_0
    http://xmlns.oracle.com/ord/meta/xmp
    http://xmlns.oracle.com/ord/dicom/anonymity_1_0
    http://xmlns.oracle.com/ord/dicom/constraint_1_0
    http://xmlns.oracle.com/ord/dicom/metadata_1_0
    http://xmlns.oracle.com/ord/dicom/mapping_1_0
    http://xmlns.oracle.com/ord/dicom/preference_1_0
    http://xmlns.oracle.com/ord/dicom/privateDictionary_1_0
    http://xmlns.oracle.com/ord/meta/exif
    http://xmlns.oracle.com/ord/dicom/rpdatatype_1_0
    http://xmlns.oracle.com/ord/meta/ordimage
    http://www.opengis.net/gml/geometry.xsd
    http://www.opengis.net/gml/feature.xsd
    demo_customer_t.xsd
    http://xmlns.oracle.com/spatial/georaster/georaster.xsd
    http://localhost:8080/source/schemas/poSource/xsd/purchaseOrder.xsd
    http://xmlns.oracle.com/ord/dicom/UIDdefinition_1_0
    http://xmlns.oracle.com/ord/dicom/attributeTag_1_0
    http://xmlns.oracle.com/ord/dicom/manifest_1_0
    http://www.w3.org/1999/xlink/xlinks.xsd
    53 rows selected.
    SQL>
    I will have to review the notes provided via the links. I hope that there is a solution available that is in alternative to re-installing XDB.
    Best Regards
    Edited by: RealDitto on Aug 24, 2011 10:40 AM

  • ALTER DATABASE ADD STANDBY LOGFILE GROUP

    version 10 & 11g
    creating standby logfile groups on primary db is optional or needed? what could be advantages of both?
    I am reading 2 articles one is creating that other not?
    http://www.orafaq.com/node/2030
    & 736863.1 Notes

    DBA2008 wrote:
    version 10 & 11g
    creating standby logfile groups on primary db is optional or needed? what could be advantages of both? at primary database it is optional ,but it would be good candidate for switchover activity , it makes ensure that if you make any planned maintenance activity at primary site and switchover within yours data guard environment from primary database to physcial standby database ,if you create standby redo log at primary database it is not in use right now but it will be used when yours primary database switch to standby database after switching to physical standby databsae as a primary database.
    Khurram

  • DROP COLUMNS CONTINUE error message

    We can issue DROP COLUMNS CONTINUE "to continue the drop column operation from the point at which it was interrupted. Submitting this statement while the table is in a valid state results in an error"
    Would anyone happen to know what this error says?

    SQL> alter table t drop columns continue;
    alter table t drop columns continue
    ERROR at line 1:
    ORA-12995: no columns in partially dropped state

  • Drop LogFile

    Hello I have Oracle 9, and I have a LogFile corrupt, message:ORA-00354 corrupt redo log block header, so I would like to drop this LogFile but i have next error: ORA-00350 log string of thread string needs to be archived, and I can not drop it,
    Could you let me know what i can do?
    Thank you

    Hi..
    alter database clear unarchived logfile '<logilename>';
    Once done, take and keep a new fresh database backup, for recovery in future.If you have a dataguard of it you would need to make it again.
    How many logfile members do you have in the group???
    Anand

Maybe you are looking for

  • Scrolling log window guff

    Hi, I've got an app that executes external processes, monitors the output of each, and puts it in a log window. The problem is, when I append to the contents of the JTextArea, I don't know how to set its preferred size correctly so that the JScrollPa

  • How to change a swatch color without losing the "global" status

    Hiya Forum! AppleScripting-Newbie talking. For an automated EPS-export using AppleScript and Illustrator CS4 on a G5 Mac running Mac OS X I need to change a global swatch's color. It needs to go form black:75 to black:55 and remain global, thereby ch

  • 4S Ringer icon appears on it's own. Is there a fix for this?

    Ringer icon appears on it's own. Is there a fix for this?

  • Trouble restoring iphone 4

    I am having trouble restoring my iphone 4 either through WI-FI or itunes. I keep getting the messages "unable to complete activation at this time" or because the "activation server is temporarily unavailable" Has anyone had this happen to him/her beo

  • Syncing two iphones with one computer

    A co-worker and I share a secretary. We'd like to be able to sync our individual calendars (in Outlook '03) on our secretary's PC. Is this possible?