Noarchive mode to archive mode

Hi,
I'm trying to backup my database in online mode. I've 2 instances: BDPROD and BDPROD2. BDPROD is already in archive mode. I'm trying to change BDPROD2, but when I shutdown the database and run startup mount, I received the error:  ORA-12514: TNS:listener does not currently know of service requested in connect descriptor. After trying again, I received 2 new errors: ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
Anyone have any ideia for help me?
Thanks

11abcd94-7f56-4836-a39d-63d0d0de41d9 wrote:
Hi,
My Oracle runs in Linux.
My ORACLE_SID = BDPROD
My ORACLE_HOME = /usr/local/oracle/product/10.2.0/db_1
I've to change the ORACLE_SID?
It depends on how you are connecting to the database to do the shutdown/startup.
You should be doing it as a local connection.  Log on to the linux server using the os account that owns the oracle installation, probably 'oracle'
set your environment variables correctly by using the oraenv utility as this:
oracle: . oraenv
That's "dot" "space" "oraenv"
You will be prompted for the correct ORACLE_SID.
After that you should be able to connect with a simple
oracle: sqlplus / as sysdba

Similar Messages

  • Are we change nonarchive mode to archive mode using rman in enterprislinux

    how can i change nonarchive mode to archive mode using Recovery manager in enterprise linux

    Did you read the other post where you asked this same question: {message:id=3868427}

  • Looking for an advice in changing to archive mode my DB

    Hello buddies!
    I'm going to change a DB from no archive mode to archive mode. It's a RAc with ASM, 2 nodes.
    What I need that somebody verify these steps and give me suggestions.
    1. Login to one of the nodes (i.e. linux1) and disable the cluster instance parameter by setting
    cluster_database to FALSE from the current instance:
    ORACLE_HOME=/home/oracle/product/10.2.0/db
    export ORACLE_HOME
    ORACLE_SID=YAWIDB1
    export ORACLE_SID
    2. sqlplus "/ as sysdba"
    SQL> alter system set cluster_database=false scope=spfile sid='YAWIDB1';
    3. Shutdown all instances accessing the clustered database:
    $ srvctl stop database -d YAWIDB
    Using the local instance, MOUNT the database:
    $ sqlplus "/ as sysdba"
    SQL> startup mount
    Enable archiving:
    SQL> alter database archivelog;
    Re-enable support for clustering by modifying the instance parameter cluster_database to TRUE from the current instance:
    •     SQL> alter system set cluster_database=true scope=spfile sid=’YAWIDB1’;
    •     Shutdown the local instance:
    •     SQL> shutdown immediate
    •     Bring all instance back up using srvctl:
    •     $ srvctl start database -d YAWIDB
    Since the archive destination is pointing to this path: Archive destination /home/oracle/product/10.2.0/db/dbs/arch
    I think I should do the next steps to change that to ASM disk group, but in these steps I'm not sure. Please let me know If I'm wrong or correct? Or if I need to add something else.
    ALTER SYSTEM SET LOG_ARCHIVE_DEST_1='+DG_DB1_ASM' SID='yawidb';
    ALTER SYSTEM SWITCH LOGFILE;
    The order of the complete steps, are correct or shoud be different?
    Thanks for your comments and suggestions ;
    Al

    You do not need to change cluster parameter, see steps below:
    On node1:
    $ srvctl stop database -d <db_name>
    $ srvctl status database -d <db_name>
    Instance <instance1> is not running on node <node1>
    Instance <instance2> is not running on node <node2>
    $ srvctl start instance -d <db_name> -i <instance1> -o mount
    $ srvctl status database -d <db_name>
    Instance <instance1> is running on node <node1>
    Instance <instance2> is not running on node <node2>
    SQL> conn / as sysdba
    Connected.
    SQL> alter database archivelog;
    Database altered.
    SQL> archive log list;
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            <arch_dest>
    Oldest online log sequence     67
    Next log sequence to archive   68
    Current log sequence           68
    SQL> alter database open;
    Database altered.
    $ srvctl start instance -d <db_name> -i <instance2> -o open
    $ srvctl status database -d <db_name>
    Instance <instance1> is running on node <node1>
    Instance <instance2> is running on node <node2>
    SQL> conn / as sysdba
    Connected.
    SQL> select inst_id, log_mode from gv$database;
       INST_ID LOG_MODE
             1 ARCHIVELOG
             2 ARCHIVELOGArchive log destination could be change any time.
    Regards.

  • Oracle 10g ASM converting noarchive log to archive log

    DATABASE Details
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Mode
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 26269
    Current log sequence 26274
    SQL>
    TYPE :
    DW Batch Process
    Redo log groups
    6 groups with 2 files size each 2GB Aprx. 400gb redo log generates per day
    OS : WINDOWS 2008 SERVER
    Current Size
    SQL> select sum(bytes)/(1024*1024*1024) from v$datafile;
    SUM(BYTES)/(1024*1024*1024)
    1003.86945
    ASM Details
    SELECT GROUP_NUMBER,NAME FROM V$ASM_DISKGROUP;
    GROUP_NUMBER NAME
    1 KK_DATA
    SQL> SELECT dg.name AS diskgroup, SUBSTR(c.instance_name,1,12) AS instance,
    2 SUBSTR(c.db_name,1,12) AS dbname, SUBSTR(c.SOFTWARE_VERSION,1,12) AS software,
    3 SUBSTR(c.COMPATIBLE_VERSION,1,12) AS compatible
    4 FROM V$ASM_DISKGROUP dg, V$ASM_CLIENT c
    5 WHERE dg.group_number = c.group_number;
    DISKGROUP INSTANCE DBNAME SOFTWARE COMPATIBLE
    KK_DATA +asm         KK   10.2.0.4.0   10.2.0.0.0
    Currently DB in noarchive mode, Need to put in archive Mode
    What are additional precautions need to take in case of ASM for managing archive mode

    I would recommend creating a new ASM diskgroup and assign Flash recovery area to this group. This is part of ASM best practices as in case your Data diskgroup goes, you can use RMAN backups/archivelogs for recovery purpose.
    -Amit
    http://askdba.org/weblog/

  • Unable to enable archivelog mode and flashback mode

    Hi,
    I have oracle10g installed on Linux machine.
    Everytime i try to enable ARCHIVELOG mode and FLASHBACK through the DB EM console and during the restart of the database, the database just startup and gets mounted, but does not get open. and not able to get the database to archive log mode.
    and when i startup the database through the sqlplus i get this following error:
    ORA-32004: obsolete and/or deprecated parameter(s) specified
    i am not able to enable successfully archive log mode and flashback mode.
    in sqlplus i did the following and got the following:
    SQL> archive log list;
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 13585
    Current log sequence 13587
    so i was thinking maybe it is the archive log start sequence that is creating error.
    because long back i had the database in archive log mode and because the archive log files got filled up, i disabled the archive mode and had to delete the archive log files.
    Can someone help me bring the database in archive log mode which i am not able to successfully execute.
    Thanks in advance,
    Philip.

    Hi,
    yes i looked in to the init.ora file and i got this
    orcl.__db_cache_size=1308622848
    orcl.__java_pool_size=167772160
    orcl.__large_pool_size=16777216
    orcl.__shared_pool_size=167772160
    orcl.__streams_pool_size=16777216
    *.audit_file_dest='/home/oracle/oracle/admin/orcl/adump'
    *.background_dump_dest='/home/oracle/oracle/admin/orcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='/u01/oradata/orcl/control01.ctl','/u01/oradata/orcl/control02.ctl','/u01/oradata/orcl/control03.ctl'
    *.core_dump_dest='/home/oracle/oracle/admin/orcl/cdump'
    *.db_block_size=8192
    *.db_domain='mslabs.noaa.gov'
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_recovery_file_dest='/u02/flash_recovery_area'
    *.db_recovery_file_dest_size=64424509440
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.java_pool_size=159383552
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=562036736
    *.processes=150
    *.log_archive_start=FALSE
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=1687158784
    *.shared_pool_size=157286400
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/home/oracle/oracle/admin/orcl/udump'
    and there is a
    *.log_archive_start=false
    so do i have to delete it?
    Thanks,
    Philip.

  • How to change from archive mode to noarchive mode

    Hi,
    I am running 10gR2 on Windows.
    Does any one know the steps to change the database which is current in archive mode to noarchive mode?
    Thanks

    shutdown immediate
    startup mount
    alter database noarchivelog;
    alter databae open;
    archvie log list -- to check whether the archive mode is turned off or no.
    Make sure you backup the database before and after.
    Jaffar

  • RMAN in non-archive mode

    All,
    My database is running in NOArchive log mode. Few major tablespaces are created with NOLOGGING option. We run ETL process.
    My question is can I use RMAN though my tablespaces are created with NOLOGGING and DB is running in non-archive mode?
    if Yes how?
    Thanks

    user2486753 wrote:
    But as per the document it says I can do the incremental backup also but i have shutdown the DB to do that, is that correct?correct., however, you really need to understand what that means (incremental) and how you would do recovery...
    Again, read the docs and TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST, TEST!!!!

  • Changing of the timestamp in sender file adapter in archive mode

    Hi,
    I have a requirement where in I have to archive a file with timestamp different from that generated by XI.
    Please let me know if this can be done and if so how can we handle the changes to be made to the timestamp in the sender adapter in archive mode.
    regards,
    Srinivas.

    Srinivas,
    Option 1) Create a bat file..to run the perl script you call..
    Perl script..
    #!/usr/bin/perl -w
    print("Starter that you want to change: ");
    chomp($badex = <STDIN>);
    print("Starter that you want added: ");
    chomp($goodex = <STDIN>);
    foreach $file (<$badex*>){
        @fields = split(/$badex/,$file);
        $goodfile = ("$goodex" . "$fields[1]");
        rename("$file","$goodfile");
    Run that on the os
    That should fix it.........
    Option 2) On your local Machine create a java file..add this code to it
    public class Utils
         public static int Randomizer(){
              int randomInt = 0;
              randomInt = (int) (Math.random()*1000);
              return randomInt;
    public static void main(String[] args)
         Randomizer();
    save and compile..
    Create a bat file to add the number returned from the random to your targetFilename
    so it would be something like..
    mv oldFileName Newfilename+randomizer... and also get this command written to a file..helpful later on.........
    Hope that helps
    Regards
    Ravi Raman
    PS:Dont forget the points if helpful

  • How to recover the data from a  dropped table in production/archive mode

    How to recover the data/change on a table that was dropped by accident.
    The database is on archive mode.

    Oracle Version. ? If 10g.
    Try this Way
    SQL> create table taj as select * from all_objects where rownum <= 100;
    Table created.
    SQL> drop table taj ;
    Table dropped.
    SQL> show recyclebin
    ORIGINAL NAME    RECYCLEBIN NAME                OBJECT TYPE  DROP TIME
    TAJ              BIN$b3MmS7kYS9ClMvKm0bu8Vw==$0 TABLE        2006-09-10:16:02:58
    SQL> flashback table taj to before drop;
    Flashback complete.
    SQL> show recyclebin;
    SQL> desc taj;
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL>M.S.Taj

  • Processing Mode = 'Delete'; Archive Faulty Source Files; Add Timestamp ?

    XI3.0 SPS 19
    For FTP Sender adapter, if Processing Mode is Delete, and you want to Archive Faulty Source Files with an added timestamp, it does not work (meaning it does not archive the faulty source file at all).
    Any suggestions?
    If I change the processing mode to Archive, it works. But my requirement is to archive only faulty files after adding timestamp and the source files should be deleted if processed.
    Thanks
    JB

    Hi james
    If you are using FCC or Modules then only Faulty files will be archived.
    The error that works with this should be a permanent error of file like field missing or compulsory field etc.
    if i understand correct you are trying to use Archive faulty messages in delete mode and you have FCC right ?
    I have also seen this behavior in delete mode it File adapter never archive. So it wont archive the faulty file as well.
    Thanks
    Gaurav

  • JSF 1.2 app is deployed only in exploded archive mode if JSF 2.0 facet used

    Hi.
    I'm developing JSF 1.2 + facelets application. The only way to configure eclipse WTP editors to properly handle xhtml pages is to install JSF 2.0 facet (there was facelets plugin before, but it was superseded by JSF 2.0 facet if I'm not mistaken). When application is deployed on WL, OEPE show message that JSF 2.0 applications can be deployed only in exploded archive mode.
    Is there any way to make OEPE to believe that this application is based on JSF 1.2 (as really is)?
    Regards,
    Vadim.

    Hi, Ian.
    You are stating that it's a JSF 2.0 app by selecting that facet - the tooling relies on your facet selection to determine what features are available.Thought as much. Determining which JSF implementation will be active at deployment time looks like very complicated task and facet version is a reliable source of such kind info. Sadly :)
    What "eclipse WTP editors" are you trying to configure?"HTML editor". Without JSF 2.0 facet it doesn't handle JSF taglibs' namespaces and EL expressions content assist/navigation.
    The other option is to install JBoss Tools richfaces support, but for various reasons I'd like not to.
    After using exploded deployment for a week now I see that it is not that slow as I initially thought (at least for a small project): JSP/XHTML changes picked up, class methods reloaded. Manual republishing is still not as fast as in case of the splitsource deployment, but it don't call it often.
    Thanks.
    Edited by: user3269289 on Apr 8, 2011 2:34 AM

  • Test cold backup database in archive mode

    Hello,
    We doing every week a cold backup from Oracle database, us database is in archive mode.
    We would like to test us cold backup in other server but the drive where we have to copy
    the datafiles and logs and rollback are different on this server.
    In the production server the oracle_home and the oracle_sid:
    ORACLE_HOME=E:\oracle\product\10.2.0\db_1
    ORACLE_SID=ENCY
    and on the other server to test the backup are:
    ORACLE_HOME=I:\oracle\product\10.2.0\db_2
    ORACLE_SID=ENCY
    Can somebody help me saying please the steps that I have to follow to restore the database in other server
    to test if the last cold backup is fine?
    My understand is copy the files(datafiles, log files, control files, pfile,...) in the new server, when everything is copied into new server,
    I have to:
    Modify the parameter CONTROL_FILES in the pfile
    Mount the database and rename the datafiles and redolog files
    Thanks.

    user641364 wrote:
    Hello,
    We doing every week a cold backup from Oracle database, us database is in archive mode.
    We would like to test us cold backup in other server but the drive where we have to copy
    the datafiles and logs and rollback are different on this server.
    In the production server the oracle_home and the oracle_sid:
    ORACLE_HOME=E:\oracle\product\10.2.0\db_1
    ORACLE_SID=ENCY
    and on the other server to test the backup are:
    ORACLE_HOME=I:\oracle\product\10.2.0\db_2
    ORACLE_SID=ENCYThe only difference between servers is different ORACLE_HOME path?
    All other directories are the same?
    >
    Can somebody help me saying please the steps that I have to follow to restore the database in other server
    to test if the last cold backup is fine?
    My understand is copy the files(datafiles, log files, control files, pfile,...) in the new server, when everything is copied into new server,
    I have to:
    Modify the parameter CONTROL_FILES in the pfile
    Mount the database and rename the datafiles and redolog filesYou shoud modify and rename only in case if path to datafiles, redologs, controlfiles, dump, archive log directories is different on test server.
    If that will be the same, then no need to rename.
    If it is different, then modify pfile in order to meet correct one paths.

  • Cloning 10g Database in archive mode - How add new created archive files

    Deat all
    I want to clone oracle 10g database using hot backup. database in archive mode.
    Database is running user data entry contifue, during hot backup there are aproximatly 3 to 5 new archive log created. Please guide me how add these new created archive log in cloning process.
    Thanks
    Alter system switch logfile;
    SQL> select max(first_change#) scn from v$archived_log;
    SCN
    8592924
    alter tablespace tablespace1 begin backup;
    alter tablespace tablespace2 begin backup;
    alter tablespace tablespace3 begin backup;
    alter tablespace tablespace1 end backup;
    alter tablespace tablespace2 end backup;
    alter tablespace tablespace3 end backup;
    select name from v$archived_log where first_change# >= 8592924 order by name
    NAME
    F:\ARCHIVELOGS\ARC00390_0664080689.001
    F:\ARCHIVELOGS\ARC00391_0664080689.001
    F:\ARCHIVELOGS\ARC00392_0664080689.001
    create pfile='init<new database sid>.ora' from spfile;
    alter database backup controlfile to trace as '/home/oracle/cr_<new sid>.sql'
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "ORCL" RESETLOGS FORCE LOGGING NOARCHIVELOG
    MAXLOGFILES 50
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 453
    LOGFILE
    GROUP 1 'E:\oracle/oradata/dg9a/redo01.log' SIZE 100M,
    DATAFILE
    Edited by: Naeem Sheeraz on Nov 15, 2008 12:54 PM

    When you attempt to startup the cloned database on the new server you will find that it needs recovery -- because it was taken in hot backup mode.
    That is why you need to copy the archivelogs that are generated from the first archivelog after the first "alter tablespace begin backup" to the first archivelog after the last "alter tablespace end backup".
    I see that you are also including a CREATE CONTROLFILE script.
    You would run that at the cloned environment.
    Then you would issue the RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL command to make the clone consistent.
    You can, of course, use the same method to copy these archivelogs as you use to copy database files -- tar, cpio, tape, etc.

  • CONFIGURE DATABASE  IN ARCHIVE MODE

    Hai
    I am just trying to change the database to archive mode.As part of this I need to set the parameter LOG_ARCHIVE_START to TRUE in the init.ora file.But I am not able to find this parameter in the init.ora file(any of the archive parameter for that matter).Please advise where can I find and set LOG_ARCHIVE_START parameter.
    Thanks
    Jay

    LOG_ARCHIVE_DEST
    Parameter type
    String
    Syntax
    LOG_ARCHIVE_DEST = filespec
    Default value
    Null
    Parameter class
    Dynamic: ALTER SYSTEM
    Range of values
    Any valid path or device name, except raw partitions
    Real Application Clusters
    Multiple instances can have different values.
    Note:
    For Enterprise Edition users, this parameter has been deprecated in favor of the LOG_ARCHIVE_DEST_n parameters. If Oracle Enterprise Edition is not installed or it is installed, but you have not specified any LOG_ARCHIVE_DEST_n parameters, this parameter is valid.
    LOG_ARCHIVE_DEST is applicable only if you are running the database in ARCHIVELOG mode or are recovering a database from archived redo logs. LOG_ARCHIVE_DEST is incompatible with the LOG_ARCHIVE_DEST_n parameters, and must be defined as the null string ("") or (' ') when any LOG_ARCHIVE_DEST_n parameter has a value other than a null string. Use a text string to specify the default location and root of the disk file or tape device when archiving redo log files. (Archiving to tape is not supported on all operating systems.) The value cannot be a raw partition.
    If LOG_ARCHIVE_DEST is not explicitly defined and all the LOG_ARCHIVE_DEST_n parameters have null string values, LOG_ARCHIVE_DEST is set to an operating system-specific default value on instance startup.
    To override the destination that this parameter specifies, either specify a different destination for manual archiving or use the SQL*Plus statement ARCHIVE LOG START filespec for automatic archiving, where filespec is the new archive destination. To permanently change the destination, use the statement ALTER SYSTEM SET LOG_ARCHIVE_DEST = filespec, where filespec is the new archive destination.
    Neither LOG_ARCHIVE_DEST nor LOG_ARCHIVE_FORMAT have to be complete file or directory specifiers themselves; they only need to form a valid file path after the variables are substituted into LOG_ARCHIVE_FORMAT and the two parameters are concatenated together.
    See Also:
    Oracle9i User-Managed Backup and Recovery Guide
    "LOG_ARCHIVE_DUPLEX_DEST", "LOG_ARCHIVE_MIN_SUCCEED_DEST", and "V$ARCHIVE_DEST" for more information on setting this parameter
    Your Oracle operating system-specific documentation for the default value and for an example of how to specify the destination path or filename using LOG_ARCHIVE_DEST
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch191.htm#REFRN10085
    Joel Pérez

  • Recovery in archive mode, but no archived logs

    Hi,
    I hope someone can help me with the following question.
    I have a 9.2 database in archive mode. Suppose on t=t0 I make an online backup. At the end of this run, I will do an "alter system switch logfile" statement to capture the latest transactions (more or less also at t=t0). Later, at t=t1 we do some transaction and more archived redologs are created. At t-t2 I need to restore the complete database, but I have LOST all the archive files as from t=t0. Now the question is, is it still possible to recover (even it means to go back to t=t0)? I have tried it, but always the system suggests to apply the (missing) archived redo's, and it seems I cannot escape this. But, Is it possible to get back to t=t0?
    Thanks a lot, for any clue or pointer !

    If you take a hot backup and you lose the redo logs, you have a fundamentally inconsistent backup. Each tablespace will be internally consistent, but they probably won't have the same SCN as the control files, so you'll get this message.
    Do you have an earlier hot backup and the archived logs that would restore that backup to the point in time (t=0) where you took the latest hot backup? Personally, I generally like to keep at least 2 or 3 old backups, with archived log files, just in case something goes wrong with the most recent backup.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • How to change the interval of a submitted Runnable in a ThreadPoolExecutor

    hi, I use a ScheduledThreadPoolExecutor to run Runnables with various intervals. I'm able to submit Runnables with an interval in minutes like this. scheduler.scheduleWithFixedDelay(task, initDelay, inter, MINUTES); But later I want to change the int

  • How do I lock layers in a fillable pdf when sending via email?

    Hi, I created a form with several layers.  When you click SUBMIT to MANAGER I have it submiting to the manager, but only the text boxs stay visible and not the text in the layer.  Is there any way to lock the visible layer when submitting?

  • DV7-4069wm ACPI table reset/recovery

    I have been unable to reset my acpi tables to factory defaults (firmware, not software). They were modified remotely via rootkit on win7 and BIOS was flashed backwards to F23 from F28. I cannot determine if I am running on flashed bios or a shadow va

  • Output Preview Problems

    Hi All, I have recently been having problems with the Output Preview in Acrobat 11 and it's driving me crazy. The output preview is not reliably showing the correct CMYK Colour values - see below I have created a sign in Illustrator CC 2014 and print

  • Mac Safari to PC Safari

    I am running safai on my mac and have icloud all set up correctly to share bookmarks. I have recently installed Safari on my PC in the hope that all my bookmarks would automatically sync. Unfortunately this does not seem to be happening. I downloaded