Downgrade SQL Server Enterprise Edition to Standard Edition

Hi
I came to know in-place edition downgarde from SQL Server Enterprise to SQL Server Standard edition is not possible after seeing couple of questions in the forum, But I find one interesting article in the web which says in-place downgrade is possible and
I tried the same and it works for me, below are the steps
1.    Type regedit.msc
2.    Got to SQL installation section in registry by default it will be here:
 HKLM(HKEY_LOCAL_MACHINE) -> SOFTWARE -> Microsoft -> Microsoft SQL Server ->
3.    Here you have to select the instance you want to downgrade if you have multiple instances.
Expand required instance folder.
MSSQL10_50.MSSQLServer -> Setup
4.    Click on ‘Setup’
5.    Here You need to change one by one all below entries.
AGTGroup
DigitalProductID
Edition
EditionType
ProductCode
ProductID
SQLGroup
FDHostGroup
Checksum
Take these values from any already installed Standard edition instance and replace here.
Make sure from where you are taking these values have the same features installed and same version and all.
6.    Now click on ‘SQL_Engine_Core_Inst’ and change the entries here as well.
         ProductCode
But I am not sure how reliable is that option, Could someone let me know can I use that process for downgrade
Regards
calyan
Kalyan Akula

Hi,
I would ceratinly not do that If I were you, this would surely leave you in unsupported state. You should ask Microsoft whether tweaking registry and replacing just value can actually change enterprise to standard or whether it is supported or not. I guess
you are just fooling the system.
Its better to uninstall Enterprise edition and Install Standard edition and create database using backup restore or attch detach.
I have not tried what you have mentioned. But thank you for the information.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles

Similar Messages

  • Downgrade SQL Server Enterprise 2008 edition to the Developer 2008 edition

    Can we downgrade SQL Server Enterprise 2008 edition to the Developer 2008 edition? If yes, then can this be done in-place?

    No there is no in-place downgrade.
    check these blog -
    http://www.mssqltips.com/sqlservertip/3079/downgrade-from-sql-server-enterprise-edition-to-standard-edition/
    http://sqlserverstore.blogspot.co.uk/2013/12/how-to-downgrade-sql-server-2008-r2.html
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • SQL Server 2000 and 2008 Standard Edition

    Hi,
    I was wondering if anyone knows if there are any auditing limitations in the standard editions of SQL server 2000 and 2008 R2.
    I'm interested to know if there are audit functions for user auditing like creation, deletion and logons
    Can't seem to find any information about this.

    In addition to Shanky notes, please  have a look at these article:
    DML Trigger Status Alerts
    Implementing generic audit trail trigger in sql server
    Saeid Hasani [sqldevelop]

  • SQL Server Enterprise Edition installation and V3

    Hi Team,
    Our trial evaluation version of the SQL Server has expired. We already have a SQL Server Enterprise edition DVD which was shipped along with the SAP ECC 6.0 (2004S) software (which we purchased from SAP).
    1. Can we install this DVD on the Discovery system?
    2. If yes, what are the steps please?
    3. If no then, what are the steps to install the demo license again?
    4. What do we have to do to upgrade to Version 3 of Discovery system? Is there any cost involved?
    Please respond. Your help and guidance would be of tremendous value to us. Points would be awarded for helpful answers.
    Thanks much for your time.

    Hi Suresh,
    Microsoft SQL server is an evaluation version for 180 days.
    you need to have a regular database license ready after that timeframe.
    That licence you get from microsoft.
    Try these steps for reinstalling DB server.
    Detach the databases,
    Uninstall the SQL eval version,
    Reinstall a fully licensed Enterprise addition of SQL and then
    Re-attach the db's (using the script attach_dbs.bat, step 5,in
    the Quick Guide).
    This should be all that is needed.
    Please make sure you back-up the system before going through all
    the steps.
    You are free to upgrade your v2.0 system by downloading patches
    and service packs from SAP's Service MarketPlace and applying
    them to the system.  As the DS is an appliance - bundled hardware
    and software , there is no automatic upgrade from v2.0 to v3.0.But
    we cant assure you about the compatiability of  new scenarios
    developed for V3.0 for this upgrade version of V2.0.
    I suggest you  easiest way of using  a full configured V3 is
    buying new Hardware.Then you will have new scenarios.
    yes, you are right DS V3.0 is packed with MAX DB5.5.
    Hope this information will help you,
    Best Regards,
    Sanam

  • Difference between Enterprise Edition and Standard Edition for Oracle RAC

    Hi,
    In our current setup we have RAC on standard edition and client is now planning to go for Enterprise Edition but not yet decide because of cost.
    Is there any difference between Grid Infrastructure 11gR3 Enterprise edition and Standard Edition ?
    They told me to first install Enterprise Edition and then will move to Standard Edition if they can't get the EE license so in that case do i have to re-install Grid infrastructure for standard edition?
    Regards,
    Chirag

    994551 wrote:
    Hi,
    In our current setup we have RAC on standard edition and client is now planning to go for Enterprise Edition but not yet decide because of cost.
    Is there any difference between Grid Infrastructure 11gR3 Enterprise edition and Standard Edition ?
    They told me to first install Enterprise Edition and then will move to Standard Edition if they can't get the EE license so in that case do i have to re-install Grid infrastructure for standard edition?Hi,
    There is no "Grid Infrastructure 11gR3 Enterprise edition and Standard Edition", is only Grid Infrastructure 11gR2.
    About Oracle Clusterware (Grid Infrastructure) licensing.
    At least one of the servers in the cluster is licensed for Oracle Database (SE1, SE, or EE)
    A cluster is defined to include all the machines that share the same Oracle Cluster Registry (OCR) and Voting Disk.
    http://docs.oracle.com/cd/E11882_01/license.112/e10594/editions.htm#CJAHFHBJ
    About Database licensing.
    http://www.oracle.com/us/products/database/enterprise-edition/comparisons/index.html
    Note : Oracle Real Application Clusters (Oracle RAC), is an option to Oracle Database 11g Enterprise Edition and included with Oracle Database 11g Standard Edition (on clusters with a maximum of 4 sockets).
    If you move to Oracle EE you must purchase a separate licence to use RAC option
    About Installation:
    Nothing changes on your current setup of Grid Infrastructure 11.2
    Just install a new fresh installation of Oracle Database (On current clusterware) chosing E.E during Install. Configure the database/services to start from this new ORACLE HOME. Nothing change on Database all previous backup and features used still unchanged. Using this new Oracle Home new features are enabled to be used by your databases.
    About Downgrade:
    Step by Step Procedure to Convert from Enterprise Edition to Standard Edition [ID 465189.1]

  • Standard Edition vs Standard Edition 1 vs Enterprise Edition

    Hello All,
    I am using Oracle 11g R2 and I want to know what is the difference technically between Standard Edition, Standard Edition 1 and Enterprise Edition?
    is it as below ? anything else?
    Standard edition: It is Single Instance database with all it is features ? up to 4 sockets, what is socket ? is it processor ?
    Standard edition one: It come with RAC and ASM?
    Enterprise edition: RAC + ASM + Dataguard?
    any other technical differences.
    Please your feedback....
    Regards,

    NB wrote:
    Thank you so much Girish, it is helpful !NB,
    The link that Girish Sharma provided to you will be very helpful, but the information in that documentation page does not fully describe the potential performance differences between Standard Edition (or Standard Edition One) and Enterprise Edition. The term potential performance could mean that Standard Edition is either faster or slower than Enterprise Edition for certain operations. A year ago I put together a four part article series that explores some of the potential performance differences between Standard Edition and Enterprise Edition:
    Part 1 http://hoopercharles.wordpress.com/2010/11/21/different-performance-from-standard-edition-and-enterprise-edition-1/
    The Enterprise Edition of Oracle Database 11.2 supports deferred segment creation, while the Standard Edition does not. Somewhat oddly, this feature may result in different execution plans on the Enterprise Edition and Standard Edition, as may be seen in one of the final comments in this blog article:
    http://hoopercharles.wordpress.com/2012/02/13/will-enabling-a-10046-trace-make-my-query-slower-or-faster/
    Charles Hooper
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Features&Pricing difference Ora10g Enterprise Edition and Standard Edition

    Hi All,
    I want to know the "Features&Pricing difference between Oracle 10g Enterprise Edition and Standard Edition"
    Kindly share if anybody have.
    Thanks and regards,
    Muhammad Shakeel Azeem

    Please see,
    http://www.oracle.com/us/products/database/product-editions-066501.html
    For listed pricing, check https://shop.oracle.com/pls/ostore/f?p=dstore:home:0::::: .
    Aman....

  • Enterprise edition and standard edition

    ORACLE 10.2.0.1.0 /REDHAT 5.1 - Enterprise linux 2.6.18
    we would like to MIGRATE from enterprise edition to standard edition .
    can we use dataguard,partitioning,flashback in standard edition .
    santhanam.

    Hi,
    Yes, there are so many options not available with standard edition. like as you said dataguard and flashback database
    like
    1)online rebuilding/reorganization of tables
    2)multiple channels in RMAN
    3)only basic materialized view..
    4)tuning&diagnostic packs
    there are so many..
    read http://www.dba-oracle.com/art_so_oracle_standard_enterprise_edition.htm
    http://searchoracle.techtarget.com/answer/Standard-vs-Enterprise-Editions-of-Oracle

  • Microsoft SQL Server 2008 R2 SP2 - Express Edition

    Hi,
    I am not able to install Microsoft SQL Server 2008 R2 SP2 - Express Edition on my Windows 8.1 Single Language OS.
    I get the following error.
    "Your SQL Server 2008 R2 installation completed with failures.
    is not a valid login or you do not have permission."
    My email id is [email protected]
    Kindly revert at your earliest.
    Regards
    Nikhil Betala
    +91 9790942304

    I get the following error.
    "Your SQL Server 2008 R2 installation completed with failures.
    is not a valid login or you do not have permission."
    Hi Nikhil Betala,
    According to your error message, the error occurs when Computer name and account name are the same, and this may cause the problem. If so, you could change the computer name, then try to install SQL Server Express 2008R2 SP2 again and check if it can install
    successfully. In addition, you can also login in two another windows login account and install, or you do not add account , if you add account which name is different from system name.
    There is an article about setup error, you can review the following article.
    http://www.sequalserver.com/2010/08/sql-2008-r2-setup-error-is-not-valid.html
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Migration from Enterprise edition to Standard Edition

    Hi,
    DB version :10.2.0.4 (production database)
    OS version :windows 2003 Std edition 64 bit.
    how to migrate database from enterprise edition to standard edition.
    1)cold backup will be sufficient?
    or any way to migrate with best way> will be any impact after migrating.
    will be appreciated fro right answers.
    Thanks

    hi sb,
    Thanks for your response.
    1)i did clone database from enterprise edition to standard edition, no invalid objects found ( from production to development)
    2) i did restoration using RMAN backupsets from ENterprise edition to standard edition , no invalid objects found (from production to development)
    3) i did cold backup from enterprise edition to standard edition , no invalid objects found ( test machine)
    i already checked this before, but here mentioned as to use traditional export / import instead of expdp/impdp. ?
    Thanks

  • How to detect whether a database was created by Restoring (from SQL Server Enterprise Manager) or by Attaching (from SQL Server Enterprise Manager)

    Ours is a SQL Server Express Edition 2008-R2 - Windows Forms based application. We have a backup/restore utility provided with our software which performs some logical checks before restoring a backup to ensure that the backup is functionally valid.
    However, our clients often use the SQL Server Enterprise Manager utility to 1) Restore backups or 2) Attach data files (kept aside before formatting) directly. This type of action bypasses all our functional checks and allows the user to restore an invalid
    backup.
    We want to detect that a database was restored/attached and may be we will stop the software from loading if such a thing happened. We think that this information (attach/restore) should be available within some table of SQL Server itself but don't know the
    right location/query.
    If any change is required in our software to achieve the above, we are ready to do the same too, e.g. may be we need to store some data at some point of time to make the detection happen, please advise.
    So, how can we detect that
    A database backup was restored using SQL Server Management Utility
    (Note: MSDB.Restorehistory may not be a good option as we have often found this table blank for unknown reasons even after backup was restored and just in case user restores the MSDB from MSDB backup or MSDB template due to a data corruption, may be due to
    abnormal shutdown of system, then the RestoreHistory table data is gone)
    A database was created by attaching a data/log file using SQL Server Management Utility
    Any help in this regard is highly appreciated.
    Rajarshi
    ProjectServer 2007 Beginner

    Hi,
    For Enterprise edition, we can enable Auditing to audit BACKUP_RESTORE_GROUP in a server audit specification. However, SQL Server audit (fine-grained auditing) feature is not available for the SQL Server Express.
    Features Supported by the Editions of SQL Server 2008 R2
    http://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
    When a database is attached, SQL Server ERRORLOG will record “Starting up database 'DBNAME'.”
    Using ALTER DATABASE OFFLINE and ONLINE will re-open the database files under the SQL Server, the SQL Server error log also contains the following informational message: “Setting database option ONLINE to ON for database 'DBNAME'.”
    Additional information:
    SQL Server Audit (Database Engine)
    http://msdn.microsoft.com/en-us/library/cc280386.aspx
    Tracy Cai
    TechNet Community Support

  • Standby db-EE edition and Standard edition

    Dear friends,
    10g on solaris 10.
    What are the differences in standby db when using a enterprise edition and standard edition ?..
    Any input will be of great help
    Kai

    Niall and team
    I have read your presentation - "You Probably Don't need dataguard" and I tried it out on test database. I setup a manual standby database, archivelog is manually copied to standby db.
    Maybe you have an idea on regarding SCN or archivelog that is not present but Oracle is asking/suggestion during recovery procedure..
    environment:
    2 virtual box - Solaris 10 Virtual Machine host on Windows XP
    Oracle 10.2.0 Standard Edition
    Primary DB host name: SE
    Standby DB host name: SE2
    archive dest = /export/home/oracle/archive (same on both machine)
    db file = /export/home/oracle/oradata/se , /export/home/oracle/oradata/se2 --> so I used db_file convert parameter in init.ora
    Steps:
    On the newly created database, create a test table and insert values.
    SQL> create table test(a number) tablespace users;
    Table created.
    SQL> insert into test values(&a);
    Enter value for a: 1
    old 1: insert into test values(&a)
    new 1: insert into test values(1)
    1 row created.
    SQL> /
    Enter value for a: 21
    old 1: insert into test values(&a)
    new 1: insert into test values(21)
    1 row created.
    SQL> /
    Enter value for a: 31
    old 1: insert into test values(&a)
    new 1: insert into test values(31)
    1 row created.
    SQL> /
    Enter value for a: 41
    old 1: insert into test values(&a)
    new 1: insert into test values(41)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL>
    $ ls -lrt
    total 41808
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    $
    Again, insert some values to test table,
    SQL> insert into test values(&a);
    Enter value for a: 33
    old 1: insert into test values(&a)
    new 1: insert into test values(33)
    1 row created.
    SQL> /
    Enter value for a: 44
    old 1: insert into test values(&a)
    new 1: insert into test values(44)
    1 row created.
    SQL> /
    Enter value for a: 55
    old 1: insert into test values(&a)
    new 1: insert into test values(55)
    1 row created.
    SQL> /
    Enter value for a: 11
    old 1: insert into test values(&a)
    new 1: insert into test values(11)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    8 rows selected.
    check archivelog dir,
    $ ls -lrt
    total 41816
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    $
    Then,
    1. shutdown immediate (primary)
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    2. copy datafile, redo, archive log to SE2 node.
    $ pwd
    /export/home/oracle/oradata/se
    $ ls
    control01.ctl control03.ctl redo02.log sysaux01.dbf temp01.dbf users01.dbf
    control02.ctl redo01.log redo03.log system01.dbf undotbs01.dbf
    $ scp * [email protected]:/export/home/oracle/oradata/se2
    Password:
    control01.ctl 100% |******************************************************| 6896 KB 00:01
    control02.ctl 100% |******************************************************| 6896 KB 00:01
    control03.ctl 100% |******************************************************| 6896 KB 00:00
    redo01.log 100% |******************************************************| 51200 KB 00:09
    redo02.log 100% |******************************************************| 51200 KB 00:11
    redo03.log 100% |******************************************************| 51200 KB 00:08
    sysaux01.dbf 100% |******************************************************| 240 MB 00:54
    system01.dbf 100% |******************************************************| 480 MB 01:35
    temp01.dbf 100% |******************************************************| 20488 KB 00:04
    undotbs01.dbf 100% |******************************************************| 25608 KB 00:05
    users01.dbf 100% |******************************************************| 5128 KB 00:01
    $
    $ ls -lrt
    total 41816
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    $ scp 1_2_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_2_711819574.dbf 100% |******************************************************| 20877 KB 00:04
    $
    3. startup (primary)
    4. create standby control file
    SQL> startup
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    Database mounted.
    Database opened.
    SQL> alter database create standby controlfile as '/export/home/oracle/standby.ctl';
    Database altered.
    5. copy standby control file to SE2
    $ pwd
    /export/home/oracle
    $ scp standby.ctl [email protected]:/export/home/oracle
    Password:
    standby.ctl 100% |******************************************************| 6896 KB 00:01
    $
    6. edit init.ora, specify location of control file - use standby control file
    *.control_files='/export/home/oracle/standby.ctl'
    7. SE2,
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    8. alter database mount standby database;
    SQL> alter database mount standby database;
    Database altered.
    SQL>
    9. we'll try to open as read only without recovery,
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    10. then, we recover by - recover standby database;
    SQL> recover standby database;
    ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
    ORA-00280: change 540274 for thread 1 is in sequence #4
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    auto
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    <observation> notice that archive log 4 is not yet present in Primary DB and STBY DB.
    Question: Why Oracle is asking archivelog that does not exist? I noticed in other exercise that you can use the redo log instead of archive log that does not exist. Is this because when we create the standby control file, the SCN is in sync with redo log.
    10. Now, we will copy archive log 3 to STDB,
    $ cd archive
    $ ls
    1_2_711819574.dbf 1_3_711819574.dbf
    $ scp 1_3_*711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_3_711819574.dbf 100% |******************************************************| 4096 00:00
    $
    11. on SE2, recover
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 540274 generated at 02/24/2010 15:58:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_4_711819574.dbf
    ORA-00280: change 540274 for thread 1 is in sequence #4
    ORA-00278: log file '/export/home/oracle/archive/1_4_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_4_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/export/home/oracle/oradata/se2/system01.dbf'
    ORA-01112: media recovery not started
    12. Now, to generate the archivelog 4 and get the SCN that is indicated above, from one of our redo log. we will go to PRIMARY DB, and insert some rows to TEST TABLE and switch log file.
    SQL>
    SQL> insert into test values(&a);
    Enter value for a: 99
    old 1: insert into test values(&a)
    new 1: insert into test values(99)
    1 row created.
    SQL> /
    Enter value for a: 100
    old 1: insert into test values(&a)
    new 1: insert into test values(100)
    1 row created.
    SQL> /
    Enter value for a: 101
    old 1: insert into test values(&a)
    new 1: insert into test values(101)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system switch logfile;
    System altered.
    $ ls -lrt
    total 42568
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    13. We will again, switch logfile, to generate archive 5, before we copied archive 4 to STBY, we are sure that arch 5 is the active archivelog.
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42570
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    $
    14. copy archive log 4 to STBY (SE2)
    $ scp 1_4_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_4_711819574.dbf 100% |********************************************| 368 KB 00:00
    $
    15. In SE2, recover
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 540985 generated at 02/24/2010 16:28:36 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_5_711819574.dbf
    ORA-00280: change 540985 for thread 1 is in sequence #5
    ORA-00278: log file '/export/home/oracle/archive/1_5_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_5_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    15. Now let's see if we can open as read only and check test table.
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    11 rows selected.
    16. Now shutdown STBY database,
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    17. On SE (PRIMARY), insert some records to TEST table, please take note that current archivelog is no. 5. We want to generate archivelog 6 and archivelog 7. Then only archivelog 5 and 6 will be copied to STBY.
    SQL> insert into test values(&a);
    Enter value for a: 1000
    old 1: insert into test values(&a)
    new 1: insert into test values(1000)
    1 row created.
    SQL> /
    Enter value for a: 1001
    old 1: insert into test values(&a)
    new 1: insert into test values(1001)
    1 row created.
    SQL> /
    Enter value for a: 1002
    old 1: insert into test values(&a)
    new 1: insert into test values(1002)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42632
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    we will do, log switch to create archive log 7,
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ ls -lrt
    total 42634
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
    Then copy, arc 5 and arc 6 to SE2 (STBY)
    $ scp 1_5_711819574.dbf 1_6_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_5_711819574.dbf 100% |*********************************************************| 1024 00:00
    1_6_711819574.dbf 100% |*********************************************************| 31744 00:00
    $
    17. in SE2, recover
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 541270 generated at 02/24/2010 16:41:26 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_7_711819574.dbf
    ORA-00280: change 541270 for thread 1 is in sequence #7
    ORA-00278: log file '/export/home/oracle/archive/1_7_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_7_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    18. open as read only, to check if the newly inserted records can be view,
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    14 rows selected.
    OK, that means that archive log 5 and archivelog 6 are applied to STBY database.
    Question. Why Oracle is asking the arc 7 , is it correct to say that last SCN is based on arc 5 and arc 6. Or is it Oracle behavior to ask the "next" SCN, after the arc 6. when performing recovery? ... that's why we have CANCEL.
    Appreciate your response on this..
    Thanks..
    19. For the sake of curiosity, lets try if we can use - recover managed standby database; (archivelog is still manually copied)
    on SE2, we will put it on "recovery mode"
    shutdown immediate,
    startup nomount pfile =
    alter database mount standby database
    recover managed standby database; (though the archivelogs are still copied manually )
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover managed standby database; (it will "hang", if you need to CANCEL open new session and use - recover managed standby database cancel)
    our current arch is 7, we will insert records to test table, and generate arch 8 and arch 9, then we will transfer arch 7 and arch 8 to SE2,
    on SE,
    Connected to:
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL> insert into test values(&a);
    Enter value for a: 2000
    old 1: insert into test values(&a)
    new 1: insert into test values(2000)
    1 row created.
    SQL> /
    Enter value for a: 2001
    old 1: insert into test values(&a)
    new 1: insert into test values(2001)
    1 row created.
    SQL> /
    Enter value for a: 2003
    old 1: insert into test values(&a)
    new 1: insert into test values(2003)
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> alter system archive log current;
    System altered.
    SQL> alter system switch logfile;
    System altered.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.2.0 - Production
    $ pwd
    /export/home/oracle/archive
    $ ls -lrt
    total 45758
    -rw-r----- 1 oracle oinstall 21378048 Feb 24 15:52 1_2_711819574.dbf
    -rw-r----- 1 oracle oinstall 4096 Feb 24 15:55 1_3_711819574.dbf
    -rw-r----- 1 oracle oinstall 376832 Feb 24 16:28 1_4_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:31 1_5_711819574.dbf
    -rw-r----- 1 oracle oinstall 31744 Feb 24 16:41 1_6_711819574.dbf
    -rw-r----- 1 oracle oinstall 1024 Feb 24 16:42 1_7_711819574.dbf
    -rw-r----- 1 oracle oinstall 1584640 Feb 24 17:02 1_8_711819574.dbf
    -rw-r----- 1 oracle oinstall 2048 Feb 24 17:02 1_9_711819574.dbf
    $
    $ scp 1_7_711819574.dbf 1_8_711819574.dbf [email protected]:/export/home/oracle/archive
    Password:
    1_7_711819574.dbf 100% |*********************************************************| 1024 00:00
    1_8_711819574.dbf 100% |*********************************************************| 1547 KB 00:00
    $
    Please take note that in SE2 initse.ora file, we also set standby_control_file = /export/home/oracle/archive parameter.
    19. On SE2, open new session, and cancel recovery,
    session 2,
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL>
    session 1,
    SQL> recover managed standby database;
    ORA-16043: managed recovery session canceled
    ORA-16037: user requested cancel of managed recovery operation
    Lets check if archivelog is applied, by checking test table,
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    14 rows selected.
    Notice that 2000, 2001, 2002 are not added in TEST table.
    Lets do manual recovery,
    SQL> startup nomount pfile=/export/home/oracle/product/10.2.0/db_1/dbs/initse.ora
    ORACLE instance started.
    Total System Global Area 167772160 bytes
    Fixed Size 1279120 bytes
    Variable Size 62917488 bytes
    Database Buffers 100663296 bytes
    Redo Buffers 2912256 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> recover automatic standby database until cancel;
    ORA-00279: change 541804 generated at 02/24/2010 17:02:34 needed for thread 1
    ORA-00289: suggestion : /export/home/oracle/archive/1_9_711819574.dbf
    ORA-00280: change 541804 for thread 1 is in sequence #9
    ORA-00278: log file '/export/home/oracle/archive/1_9_711819574.dbf' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    '/export/home/oracle/archive/1_9_711819574.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    Media recovery cancelled.
    SQL> select * from test;
    select * from test
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open read only;
    Database altered.
    SQL> select * from test;
    A
    1
    21
    31
    41
    33
    44
    55
    11
    99
    100
    101
    A
    1000
    1001
    1002
    2000
    2001
    2003
    17 rows selected.

  • Shrink database is not active in SQL SERVER Enterpriser manager

    Dear guru
    Shrink database is not active in SQL SERVER Enterpriser manager what to do
    Rupesh
    SAP BASIS Consultant

    Hi,
    >Thank you very much for not supporting i have solved the problem by reading some other documents
    That's exactly what I wanted you to do : With a little personal work, you can actually learn to do your own work ! "Don't give fish to hungry people. Teach them how to go fishing !"
    Regards,
    Olivier

  • How to Connect SQL Server enterprises Manager Version 8.0 with Form 6i

    Dear experts
    I want to know that How can I connect SQL server Enterprise Manager Version 8.0 with Forms/reprots 6i.
    currently I have oracle 9i database at server windows 2003 and I also connected with client (my PC) I work on server.
    I also have SQL server in that server 2003 machine and this SQL Server also work with other clients that have VB program.
    I want to know that can I connect with this SQL server with Form 6i?

    You can't. The closest thing would be to create links in an oracle database to the SQL Server database using Heteregeneous Services and connect forms to the that.
    This forum is for the SQLDeveloper tool. You will get more complete answers in the "Database General", or "Heterogeneous Services" forums

  • Best procedure to downgrade a SQL Server 2012 SP2 installation from Enterprise edition to Standard edition

    Hi,
    following a purpose change for a database server, I need to downgrade the SQL Server 2012 SP 2 installation from Enterprise to Standard edition.
    Does it exist the best procedure to do it in a secure manner with a low impact?
    Many thanks

    Please note that while you are downgrading by uninstalling and reinstalling and then restoring backup  taken from 2012 enterprise to standard , if backup contains data about used enterprise features you would not be able to restore the backup so BE
    CAREFUL.
    You should , if possible, get a new box install SQL Server standard and try restoring backup if it fails disable enterprise features and again take backup and then you would be able to restore.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

Maybe you are looking for