Alter database ...

Hi,
alter database backup controlfile to trace
to which trace file the control file is copied ?Is it alert.log in bdump (background dump)?
Is control file backed up to trace automatically or we do need to execute the command ?
if we do need to apply the archive logs then can we backup the control file to trace and start apllying the archive logs?
Thanks,
AUM

to which trace file the control file is copied ?The one with most recent timestamp.
Is it alert.log in bdump (background dump)?Not by default
Is control file backed up to trace automatically no
or we do need to execute the command ?There is no "need" to execute the command. DB runs fine without it.
if we do need to apply the archive logsapply logs to WHAT exactly & WHY?
then can we backup the control file to trace and start apllying the archive logs?no
the file that results is a text file.
What problem are you actually trying to solve.
I suggest you spend some time Reading The Fine Manuals at http://tahiti.oracle.com

Similar Messages

  • What is the use of 'ALTER DATABASE CLOSE'?

    Hello Everybody,
    SQL*Plus: Release 10.1.0.2.0 - Production on Ma Aug 15 21:28:30 2005
    Copyright © 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn / as sysdba
    Connected.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145750508 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> select status from v$instance;
    STATUS
    OPEN
    SQL> alter database close;
    Database altered.
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-16196: database has been previously opened and closed
    If i have to shutdown the instance and database then
    WHAT IS THE USE OF 'ALTER DATABASE CLOSE' ?
    I need explanation. Why should i shutdown?
    Dont give me this answer.
    ORA-16196: database has been previously opened and closed
    Cause: The instance has already opened and closed the database, which is allowed only once in its lifetime.
    Action: Shut down the instance.

    If you read the documentation you will see that there is no ALTER DATABASE CLOSE command.
    This is an undocumented Oracle command, which we are not supposed to use. Consequently we are not allowed to complain about the way that it works. Instead we're supposed to use SHUTDOWN IMMEDIATE.
    Cheers, APC

  • Alter database statement in anonymous pl/sql block

    Is it possible to include an alter database statement in an anonymous pl/sql block?
    When I execute this code to query user_tables for all table names, disable their constraints and drop the table, I got the following error:
    ***MY CODE
    -- DECLARE VARIABLE(S)
    DECLARE
         v_TABLE_NAME TABLE_NAME.USER_TABLE%TYPE;
    -- DECLARE AND DEFINE CURSOR
    CURSOR c_GETTABLES is
         SELECT TABLE_NAME from USER_TABLES;
    BEGIN
    OPEN c_GETTABLES;
    LOOP
    FETCH c_GETTABLES into v_TABLE_NAME;
    EXIT when c_GETTABLES%notfound;     
    ALTER TABLE v_TABLE_NAME DISABLE PRIMARY KEY CASCADE;
    DROP TABLE v_TABLE_NAME;
    END LOOP;
    CLOSE c_GETTABLES;
    END;
    ***RESPONSE FROM SERVER
    ALTER TABLE v_TABLE_NAME DISABLE PRIMARY KEY CASCADE;
    ERROR at line 15:
    ORA-06550: line 15, column 1:
    PLS-00103: Encountered the symbol "ALTER" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge
    <a single-quoted SQL string> pipe
    Thanks

    When you want to perform ddl statements in a (anonymous) PL/SQL block, you have to use dynamic SQL because ddl is not possible in pl/sql.
    Dynamic sql means that you sort of execute ddl statements in a sql manner. To use dynamic sql, two options exist:
    - dbms_sql package : for oracle before 8i. To use this package is not always easy. Read about it carefully first before using.
    - Native Dynamic SQL : implemented in 8i and very easy to use. An example would be :
    declare
    lv_statement varchar2(32676);
    begin
    lv_statement := 'ALTER TABLE MY_TABLE DISABLE CONSTRAINT MY_TABLE_CK1';
    execute immediate lv_statement;
    lv_statement := 'ALTER TABLE MY_TABLE ENABLE CONSTRAINT MY_TABLE_CK1';
    execute immediate lv_statement;
    end;
    Good luck.
    Edwin van Hattem

  • Errors in alert log and listener log and "alter database mount exclusive"

    Hello!
    I need a help.
    Database 11R2 works under MS Windows Server.
    Whwn I start it using Services, according alert log it is started by command "alter database mount exclusive".
    Next - alter database open.
    After this, it seams that program, which should put data into database, can not work with it, because I see errors in alert log: ora-12537, 12560, 12535, 12570, 12547.
    What does itmean and what to do?
    This is extract from alert_log
    ORACLE_BASE from environment = C:\Oracle
    Mon Feb 04 14:54:53 2013
    alter database mount exclusive
    Successful mount of redo thread 1, with mount id 1458539517
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount exclusive
    alter database open
    Thread 1 opened at log sequence 3105
    Current log# 3 seq# 3105 mem# 0: C:\ORACLE\ORADATA\xxx\REDO03.LOG
    Successful open of redo thread 1
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    SMON: enabling cache recovery
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is AL32UTF8
    No Resource Manager plan active
    Mon Feb 04 14:55:04 2013
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Mon Feb 04 14:55:06 2013
    QMNC started with pid=20, OS id=2860
    Completed: alter database open
    Mon Feb 04 14:55:11 2013
    Starting background process CJQ0
    Mon Feb 04 14:55:11 2013
    CJQ0 started with pid=25, OS id=2000
    Mon Feb 04 14:55:11 2013
    db_recovery_file_dest_size of 4977 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Mon Feb 04 15:00:29 2013
    Starting background process SMCO
    Mon Feb 04 15:00:29 2013
    SMCO started with pid=32, OS id=3212
    Edited by: kogotok1 on Feb 4, 2013 4:54 PM

    Thank you.
    But in the same time - when I see in alert log those error messages ora -12560, 12537,12535,12570 and so on - clients programs, whiie try to connect, hang up.
    For sql plus takes 20 minutes to connect.
    lsnrctl status gives the following
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 04-FEB-2013 16:01
    :46
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx-BD.mosxxx
    .elektra.net)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date 01-FEB-2013 10:22:48
    Uptime 3 days 5 hr. 39 min. 54 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\Oracle\listener.ora
    Listener Log File c:\oracle\diag\tnslsnr\xxx-BD\listener\alert\l
    og.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxx-BD.mosxxx.elektra.net)
    (PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XXX" has 2 instance(s).
    Instance "XXX", status UNKNOWN, has 1 handler(s) for this service...
    Instance "xxx", status READY, has 1 handler(s) for this service...
    Service "XXXDB" has 1 instance(s).
    Instance "xxx", status READY, has 1 handler(s) for this service...
    The command completed successfully
    To tell the truth I am confuse - I thought I have only 1 service "XXXDB" and 1 instance - "xxx".
    May be I have wrong entries in tnslsnr.ora?

  • 'alter database open resetlogs' didn't reset one of the datafiles

    I've spent the last three and a half weeks recovering an oracle database (11g 64-bit linux) because of a corrupt block in an online redo log (which I thought was being written to multiple locations). I restored the files, moving some of them around in the process; recovered to the latest possible point; moved files back to their proper location; ran 'alter database open resetlogs'; and one of the datafiles (from a bigfile tablespace) didn't get reset. I checked afterward, and it was marked offline. I do not remember placing the file offline, and cannot find such a statement in my last 300 sqlplus commands, which includes commands well before I renamed this file and the commands surrounding the rename.
    Restoring/recovering the database again will take too long, and is a remarkably poor option. Even if the database had opened correctly, the affected tablespace would not have been touched in the two or three minutes the database was open. Is there any way to force oracle to reset the logs again or otherwise fix this one file to mark it with the same date? Only allowing the resetlogs option after an incomplete recovery seems a poor restriction, especially, if files can slip through like this. I'm suspecting there is someway to just fix the checkpoint values for the tablespace, but I don't know where to begin. This particular file is <5% of the database, so if I have to do some sort of backup/restore with just it, that is probably doable.

    0: 11.1.0.6.0 on SUSE Linux Enterprise Server 10 SP2
    1: rman
    backup format '/opt/oracle/backup/mydatabase_%Y-%M-%D_%s_datafiles_%p' (database);
    backup format '/opt/oracle/backup/mydatabase_%Y-%M-%D_%s_archivelogs_%p' archivelog all delete input;
    backup format '/opt/oracle/backup/mydatabase_%Y-%M-%D_%s_control_%p' current controlfile spfile;
    2:
    restore database; --not sure what datafiles were restored with this
    restore datafile X; --several files were restored individually
    recover database until scn 1137554504; -- I verified that all datafiles were on the same checkpoint after this finished. Not having placed any files offline, I didn't bother checking that.
    3:
    SQL> alter database open resetlogs;
    Database altered.
    Elapsed: 00:04:20.34
    SQL> quit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    4: Nothing in the tablespace has been touched since I ran 'alter database open resetlogs;'. It also appears that oracle placed the file offline (without me telling it to do so) and left it that way through the resetlogs, leaving the tablespace unusable during the time it was opened. The only things that would be out of date are the 'RESETLOGS_CHANGE#', the 'CHECKPOINT_CHANGE#', and associated values. It's still at the last scn before the resetlogs, and the system has been in archivelog mode the entire time. This is all information that Oracle could be tracking, and from a program logic standpoint there is no reason why Oracle cannot tie together the changes before the resetlogs, the resetlogs command and the changes after the resetlogs into a new, continuous string of changes. I assume there is some such feature in a high-caliber program because I'm actually a programmer (who would have included such advanced tracking features), and I've become a DBA out of necessity. I admit to not knowing all of the oracle DBA commands, hence me posting here before doing the work of submitting a request to metalink.
    5: I consider it a poor restriction because it doesn't always reset the logs on all files, and as far as my knowledge goes it has rendered my 3.5 week recovery process WORTHLESS. I suppose it could cause numerous errors, especially if the database wasn't cleanly shut down, but having the ability to do something equivalent to datafiles that oracle skipped the process on seems quite useful in my situation. I guess the more fundamental problem to complain about is that it would apply such changes to only some of the files, while leaving others unusable, instead of just giving me an error that some files weren't going to be reset, but I think I'm done venting my Oracle frustrations for now.
    Am I stuck with a tablespace that I cannot bring online with the database open, or is there some sort of 'alter database datafile' command (or anything else) that I know nothing of that will fix the straggling file?
    Edited by: jbo5112 on Oct 5, 2009 3:33 PM -- obfuscated some file names to secure identity.

  • RMAN-11001: alter database mount standby database

    I'm doing a duplicate for a standby database and I'm getting this error
    Oracle 8i Tru64
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: Duplicate Db
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03006: non-retryable error occurred during execution of command: sql
    RMAN-07004: unhandled exception during command execution on channel clone_defaul
    t
    RMAN-20000: abnormal termination of job step
    RMAN-11003: failure during parse/execution of SQL statement: alter database moun
    t standby database
    RMAN-11001: Oracle Error: ORA-03113: end-of-file on communication channel
    Recovery Manager complete.
    Any help please

    Check for parameter mismatches between parameter file and control file.
    Check your parameter file. Check db_name paramter in paramter file used in the standby database.

  • ORA-1092 signalled during: alter database open...

    When trying to startup the db runnint into following error:
    SMON: enabling cache recovery
    Sat May 16 10:35:12 2009
    Successfully onlined Undo Tablespace 1.
    Sat May 16 10:35:12 2009
    SMON: enabling tx recovery
    Sat May 16 10:35:12 2009
    Database Characterset is UTF8
    Sat May 16 10:35:13 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\udump\vis_ora_2200.trc:
    ORA-00600: internal error code, arguments: [4193], [2391], [2395], [], [], [], [], []
    Doing block recovery for fno: 10 blk: 159
    Sat May 16 10:35:17 2009
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 3 Reading mem 0
    Mem# 0 errs 0: D:\ORACLE\VISDATA\LOG2.DBF
    Doing block recovery for fno: 10 blk: 153
    Sat May 16 10:35:18 2009
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 3 Reading mem 0
    Mem# 0 errs 0: D:\ORACLE\VISDATA\LOG2.DBF
    Sat May 16 10:35:18 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\udump\vis_ora_2200.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    ORA-00600: internal error code, arguments: [4193], [2391], [2395], [], [], [], [], []
    Error 607 happened during db open, shutting down database
    USER: terminating instance due to error 607
    Sat May 16 10:35:19 2009
    Errors in file d:\oracle\visdb\9.2.0\admin\vis_apps\bdump\vis_pmon_2288.trc:
    ORA-00607: Internal error occurred while making a change to a data block
    Instance terminated by USER, pid = 2200
    ORA-1092 signalled during: alter database open...
    Pl. advice to recover from this suitation. New to recovery/bkup.
    Thanks,
    Sashi.

    00607, 00000, "Internal error occurred while making a change to a data block"
    // *Cause:  An internal error or memory exception occurred while Oracle was
    // applying redo to a data block.
    // *Action: call Oracle Support                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ORA-301 Signalled during: ALTER DATABASE ...

    Hi,
    I tried to add 4 standby redologs to our standby setup, and first file went well.
    theothers already got error ORA-301:
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 8 '/export/home/oracle/logs/redo8.log' SIZE 2G
    Fri May 31 15:31:22 2013
    Completed: ALTER DATABASE ADD STANDBY LOGFILE GROUP 8 '/export/home/oracle/logs/redo8.log' SIZE 2G
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 9 '/export/home/oracle/logs/redo9.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 9 '/export/home/oracle/logs/redo9.log' SIZE 2G...
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 10 '/export/home/oracle/logs/redo10.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 10 '/export/home/oracle/logs/redo10.log' SIZE 2G...
    ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 '/export/home/oracle/logs/redo11.log' SIZE 2G
    ORA-301 signalled during: ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 '/export/home/oracle/logs/redo11.log' SIZE 2G...
    Fri May 31 16:33:39 2013
    I tried to track any info in the web and metalink, but it's the first time I encounter an ORA error with no documentation... :(
    Some facts:
    The oracle is 11.2.0 on Linux
    There is no space issue on disk
    Thanks for any help/ideas...

    thanks for the reply.
    first one I stated in the original post. there is tons of storage :)
    for the others 2 -
    user has priviledge... he created the first file succesfully...
    those files do not exist on the disk already.
    Thanks

  • ORA-279 signalled during: ALTER DATABASE RECOVER  automatic standby databas

    Hi,
    oracle server:8.1.7.0.0
    os:solaris 5.9
    we created standby server by taking coldbackup of primary server and we are using rsync to syschronize the archive log files between production and standby servers but every over we recover the standby server by executing
    sql>recover automatic standby database:
    but in alert log file i am getting the following error :
    but when i googled for ora-279 error some people says it is default behaviour and can it be ignored and why it is asking next logfile.
    Media Recovery Log /oratranslog/arch_1_1701118.arc
    Wed Mar 26 21:35:34 2008
    Media Recovery Log /oratranslog/arch_1_1701119.arc
    Wed Mar 26 21:35:54 2008
    Media Recovery Log /oratranslog/arch_1_1701120.arc
    ORA-279 signalled during: ALTER DATABASE RECOVER automatic standby database...
    Wed Mar 26 21:36:24 2008
    ALTER DATABASE RECOVER CANCEL
    Wed Mar 26 21:36:24 2008
    Media Recovery Cancelled
    Completed: ALTER DATABASE RECOVER CANCEL
    Thanks and Regards
    Prakash
    juniour oracle dba

    damorgan,
    He is running 8.1.7.0. "DataGuard" scripts were initially available for 9i and then
    backported (and available as a seperate download) for 8i. Many 8i implementations
    did not and do not use DataGuard.
    Even if it is "Jurassic" {which it certainly is NOT}, they obviously do have a good
    reason for setting up a standby -- they DO have data of value. So, maybe they have
    not upgraded to 9i or 10g. There could be a dozen reasons
    1. Server HW/OS doesn't support 9i/10g, not budgetting for Server upgrade
    2. Application using Forms 2.x or 4.5 and not tested on 9i / 10g (4.5 not certified
    on 9i)
    3. Low end client PCs working perfectly with Character-mode forms, not powerful
    enought to run Jinitiator and Forms 6i / 9i
    Just because someone hasn't upgraded to 10g doesn't mean that they are at fault
    when you do NOT know the reason why they have not upgraded.
    Surely, they do know that 8i is desupported. Don't you think that their management
    has undertaken due diligence / cost-benefit analysis in considering whether they
    should upgrade to 10g ?
    Maybe they have another project implementing 10g in parallel and will be able
    to shutdown this environment soon. Maybe they don't need to do so.
    Do understand that people are intelligent enough to make their own decisions
    considering their particular circumstances and don't go shooting off with your
    assumption that anyone not running 10g is a dinosaur.

  • ORA-1113 signalled during: alter database open...

    Hello,
    Today when I was unable to logon to my Oracle 9i database on Windows machine, I referred to the Alter.log file.
    This file showed me the above error.
    And when I try to logon to database with normal user, I get the error as "Database initialization or shutdown is in progress"
    When I tried to log on using the DBA privileges, I can see that my Database is MOUNTED.
    What should I do next? Do I bring the database down forcefully using the "Shutdown abort" command? and then at the startup when some datafile is shown as required to recovery then, recover the datafile using following command:
    RECOVER AUTOMATIC DATAFILE 'file_Path';
    Please guide
    Thanks in advance
    Himanshu

    ORA-01113 file string needs media recovery
    Cause: An attempt was made to open a datafile that is in need of media recovery.
    Action: First apply media recovery to the datafile identified in the message, then retry the operation.
    media recovery for datafile is required
    log as sys user.
    shutdown the database
    startup mount
    recover datafile <filename>
    alter database open

  • ORA-1109 signalled during: alter database close

    Hi
    i have found the following error in alert log after i shut down my database for cold backup
    alter database close
    ORA-1109 signalled during: alter database close...
    Please advice is there any threat because of this error and whats the reason for the occurence of this error.
    Version of DB: 10.2.0.4.0
    I have DR configured for this db also..
    Regards,
    Arun Kumar

    Thats not the command i am using..
    I just use shutdown immediate.. when i use that command i get the sequnce of steps logged in alert log..
    there i find the error.. see below..(a part of alert log content)
    Shutting down instance: further logons disabled
    Sun Aug  9 19:12:39 2009
    Stopping background process CJQ0
    Sun Aug  9 19:12:39 2009
    Stopping background process MMNL
    Sun Aug  9 19:12:40 2009
    Stopping background process MMON
    Sun Aug  9 19:12:41 2009
    Shutting down instance (immediate)
    License high water mark = 5
    Sun Aug  9 19:12:41 2009
    Stopping Job queue slave processes, flags = 7
    Sun Aug  9 19:12:41 2009
    Job queue slave processes stopped
    Sun Aug  9 19:12:41 2009
    alter database close
    ORA-1109 signalled during: alter database close...*
    Sun Aug  9 19:12:41 2009
    alter database dismount
    Completed: alter database dismount
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes

  • Alter database recover to logical standby is hanging

    Hi,
    when I try to convert my physical standby to logical standby using
    alter database recover to logical standby STANDBYL;
    the command just hangs
    I have seen the usual hit on this which is to create the Redo Dictionary on the Primary using
    execute dbms_logstdby.build;
    which I did but the alter database command still keeps hanging on my Standby
    Any ideas,
    thanks
    Jim

    Hello;
    Does your Standby alert log have any lines like this:
    RECOVER TO LOGICAL ...
    If yes look for the message ( after this )
    Starting datafile conversion
    and post any errors or warnings you have.
    Best Regards
    mseberg

  • What is the Use of  "Alter database activate standby database"

    Hi ,
    I appreciate your time.
    I just wanted to know what is the use of "Alter database activate standby database" command when doing the failover. How different it will act in failover process. Can we use this command in SwitchOver.
    Thanks in advance.

    Hi Uwe Hesse,
    Wonderfull... good info....
    So my understanding is that the use of "ACTIVATE PHYSICAL STANDBY DATABASE" is conditional and depends on the redo log gap and the Database status(Able to mount or not).
    Condition 1: If the Db is in Mount state and Redo log gap is successfully filled.
    1) Flush any unsent redo from the primary database to the target standby database.
    SQL> ALTER SYSTEM FLUSH REDO TO target_db_name;
    Note: If the above Statement Completes successfully without any errors.
    2) Stop Redo Apply.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    3) Finish applying all received redo data.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH;
    4) Verify that the target standby database is ready to become a primary database.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    5) Switch the physical standby database to the primary role.
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN;
    Condition 2: If the DB is not able Mount and Redo Gap can't be filled.
    Important Note: If the the above command in STEP3 gives error, some received redo data was not applied. Try to resolve the cause of the error and re-issue the statement before proceeding.
    If the error condition cannot be resolved, a failover can still be performed (with some data loss) by issuing the following SQL statement on the target standby database:
    SQL> ALTER DATABASE ACTIVATE PHYSICAL STANDBY DATABASE;
    Thanks in advance.

  • How to alter database character set from AL32UTF8 to EE8MSWIN1250

    Hi folks,
    I'm using an Oracle 10g, XE database, which has a database character set set to AL32UTF8, what causes that some characters like "č ť ř ..." are not displayed.
    To fix this issue, I would like to change it to EE8MSWIN1250 character set as it's set on server.
    Unfortunatelly below steps don;t work for me:
    connect sys as sysdba;
    SHUTDOWN IMMEDIATE;
    STARTUP MOUNT;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    ALTER DATABASE NATIONAL CHARACTER SET EE8MSWIN1250;
    ALTER DATABASE CHARACTER SET EE8MSWIN1250;
    SHUTDOWN IMMEDIATE; -- or SHUTDOWN NORMAL;
    STARTUP;Value in regedit: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_XE is set to CZECH_CZECH REPUBLIC.EE8MSWIN1250
    I'm struggling with this issue for hours and unfortunatelly can't make it work. Any advise is more than welcome.
    Thanks,
    Tomas
    I tried to use hints listed here , but always getting some ORA messages.

    Hi Sergiusz,
    Thank you for your reply. You're right, I've probably didn't provide a full details about my issue, but at least now I know, that database encoding(characterset) is correct.
    Here is my issue:
    Within my APEX application I would like to use a JasperReportsIntegration, so to be able to create and run iReports straight from APEX application. Installation, and implementation of JasperReports works fine, I had no issue with it.
    As a second step I've created a simple report using iReport tool, when if preview function is used, all static characters (from report labels) are displayed correctly. Database items are displayed incorectly - some Czech characters are not displayed. Language within report is set to cs_CS, but I've tried also other options. No sucess.
    When I run that report from APEX application (from server) then the same issue - data from database are returned without some czech characters.
    Kind regards,
    Tomas

  • Alter Database Remove File : Partition Files on different folders

    I need to remove partition files, once I switch the partition with staging table and empty/truncate the partition. 
    When I was running the code on my local machine I was passing variable @partition_file_name to following statement:
    Declare @partition_file_name varchar(128)='table_abc_201202',
    @database_name varchar(128)='test'
    Alter Database @database_name Remove File  @partition_file_name
    Note @partition_file_name is the logical name of the partition file.
    I found out partitions are saved in different folders in my Dev env...They are stored in 12 different folders which are named like 1-12.
    E.g:
    C:\DATA\2\table_abc_201202.ndf
    C:\DATA\3\table_abc_201203.ndf
    C:\DATA\4\table_abc_201204.ndf
    C:\DATA\5\table_abc_201205.ndf
    C:\DATA\2\table_abc_201302.ndf
    C:\DATA\3\table_abc_201303.ndf
    C:\DATA\4\table_abc_201304.ndf
    C:\DATA\5\table_abc_201305.ndf
    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    ZK

    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    Yes, SQL Server knows which physical file goes with which logical filename.  (To see that SQL does know this, do a SELECT * FROM sys.sysfiles - you'll see SQL has a row for every logical filename and that row has the corresponding physical file name.)
    And when you do the ALTER DATABASE REMOVE FILE, you must specify the logical filename.  You will get an error if you give the physical path.
    Tom

  • Sql "ALTER DATABASE DATAFILE x OFFLINE" not working??(solved)

    Hi all,
    I'm playing around with RMAN on a test instance, and am trying to just restore and recover a datafile. I can't see what I'm doing wrong.
    I've renamed the users01.dbf file like it is lost...
    I get RMAN going...I do a startup mount;
    When I try:
    RMAN> sql "alter database datafile '/data1/oradata/testdb5/users01.dbf' offline";
    sql statement: alter database datafile '/data1/oradata/testdb5/users01.dbf' offline
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 04/06/2009 16:13:28
    RMAN-10015: error compiling PL/SQL program
    Now....I did this with the number of the datafile, and it let me do the offine that way
    RMAN> sql "alter database datafile 4 offline";
    sql statement: alter database datafile 4 offline
    But, I want to try it with the file name, and I can't understand why it is giving me an error.
    Any suggestions?
    TIA,
    cayenne
    Edited by: cayenne on Apr 6, 2009 2:01 PM

    bigdelboy wrote:
    When I try:
    RMAN> sql "alter database datafile '/data1/oradata/testdb5/users01.dbf' offline";
    Try following, you need to put in the single quotes twice.
    RMAN> sql "alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline";Rgds - bigdelboyWow...ok, that was NOT in the book. This did work with double quotes on the outside " but, the datafile quoting required me to use 2 SINGLE quotes around that.
    RMAN> sql "alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline";
    sql statement: alter database datafile ''/data1/oradata/testdb5/users01.dbf'' offline
    Any explanation for this? Granted the oracle press example was for a windows machine...
    cayenne

Maybe you are looking for

  • [Forum FAQ] Troubleshooting "An error has occurred during report processing" message when viewing SCCM reports

    Symptom: When you view a report with SCCM, you may encounter the following error message: An error has occurred during report processing. Under the details box, you can see the detailed error information as below: System.Web.Services.Protocols.SoapEx

  • Ovi Suite 3.0.0.284 not recognizing my X6

    Hi, I have the same problem just like many users here on forum or another nokia forums around the globe. Ovi Suite kept asking me to change the USB mode on the phone to Ovi suite/PC suite, which it was already in. I have tried almost everything, but

  • Packaging Additional jars with Midlet jar

    How should i package any additional Jar in my Midlet suit. Basically i am using JBuilder 2006 to develop a J2ME applcation and i have installed Nokia Developer suit for Midlet packaging. I thought that by adding the jar files (utility/helping) to res

  • Streaming different music than videos' audio

    Is it possible to have a queue of videos streaming from iTunes to the AppleTV, BUT to play the full iTunes music library in the background?  The issue is that at my company, I want to show the same videos over and over, but not drive my staff crazy b

  • 1130 AP encryption ciphers

    I have the following configured on my 1130 radios: dot11adio0 and dot11radio1 interface Dot11Radio0 no ip address no ip route-cache encryption mode ciphers aes-ccm ssid bld_ap when I attempt to add the key-management to the dot11 ssid: dot11 ssid bld