Script redo migration to asm win2003 10.2.0

I am trying this script for online log migartion to ASM(found on the internet)
my databse name is orcl, asm instance is +ASM using 10.2.0 on win 2003
also i already done the previous steps correctly when i am firing this sql script its show me error:
can somebody tell me where i am wrong.
SQL> @C:\a.sql;
39 /
declare
ERROR at line 1:
ORA-00349: failure obtaining block size for '+TESTDB_DATA1'
ORA-06512: at line 26
here is the script:
set serveroutput on
declare
cursor rlc is
select group# grp, thread# thr, bytes/1024 bytes_k, 'NO' srl
from v$log
union
select group# grp, thread# thr, bytes/1024 bytes_k, 'YES' srl
from v$standby_log
order by 1;
stmt varchar2(2048);
swtstmt varchar2(1024) := 'alter system switch logfile';
ckpstmt varchar2(1024) := 'alter system checkpoint global';
begin
for rlcRec in rlc loop
if (rlcRec.srl = 'YES') then
stmt := 'alter database add standby logfile thread ' ||
rlcRec.thr || ' ''+TEST'' size ' ||
rlcRec.bytes_k || 'K';
execute immediate stmt;
stmt := 'alter database drop standby logfile group ' || rlcRec.grp;
execute immediate stmt;
else
stmt := 'alter database add logfile thread ' ||
rlcRec.thr || ' ''+TEST'' size ' ||
rlcRec.bytes_k || 'K';
execute immediate stmt;
begin
stmt := 'alter database drop logfile group ' || rlcRec.grp;
dbms_output.put_line(stmt);
execute immediate stmt;
exception
when others then
execute immediate swtstmt;
execute immediate ckpstmt;
execute immediate stmt;
end; end if;
end loop;
end;

I can't debug your script, but I can tell you that it is much easier to "migrate" your logfiles to ASM.
You point your DB_CREATE_FILE_DEST parameter to the database area diskgroup (if not already set)
You point your DB_RECOVERY_FILE_DEST parameter to the recovery area (if not already set)
You look at the old logfiles and remember their number
Then you say
alter database add logfile;
as many times as you want to have new loggroups to be on ASM
Then you drop all the old loggroups.
That is done interactively (in about 5 minutes), though.
But you could script that with a .sql script also quiet easily, instead of "breaking your fingers" with PL/SQL, couldn't you? :-)
Kind regards
Uwe
http://uhesse.wordpress.com

Similar Messages

  • Database Migration To ASM

    Hi i am using oracle 10.2 in windows 2003 server in test environment
    when i tried to migrate the database from os file system to ASM
    it give me the following error
    Error
    Examine and correct the following error(s), then retry the operation.
    Remote Operation Error - ERROR: Wrong password for user
    though i have provided the correct details
    thanks & regard

    hi !
    i tried it
    but still same problem.
    Error
    Migrate Database To ASM: ASM Instance
    Database Migrate Host asm
    Logged In As SYS
    An ASM instance should exist on host asm and be managed as an Enterprise Manager target. If the ASM instance already exists, add it as an Enterprise Manager target by providing connection information and clicking the Continue button. Otherwise, please use DBCA to create an ASM instance on this host before adding it as an Enterprise Manager target.
    Add ASM Instance As An EM Target
    * Target Name :+ASM_asm
    * Oracle Home :C:\oracle\product\10.2.0\db_1
    * SYS Username :sys
    * SYS Password :migrate
    * Role :SYSDBA
    * Port :1521
    * SID :+ASM
    Host Credentials
    Enter the credentials of the user who owns the database Oracle server installation.
    * Username :administrator
    * Password :pipl?123
    Save as Preferred Credential
    real error is
    Examine and correct the following error(s), then retry the operation.
    Remote Operation Error - ERROR: Wrong password for user
    thanks & Regard

  • Migrating Non ASM, Non RMAN to New Server with ASM and RMAN - Possible?

    We currently have a database ( Oracle 10g R1 ) on a Sun Solaris server that is NOT using ASM or RMAN. The database is about 300GB. We are getting a new server and we want to install Oracle 10g R2 with ASM and RMAN and migrate the database.
    I have seen the documentation on migrating non ASM to an ASM server but the methods all use RMAN. Is it possible to migrate to an ASM database without using RMAN? Would datapump import/export work if I created a new database on the new server with all the same tablespaces? Or, do I have to bite the bullet, install RMAN on the old server and do the backup?
    Thanks.

    If you're not using RMAN that doesn't mean you can't use it to perform a single backup, rman is contained in every oracle RDBMS installation version 10G or higher.
    this is only a sample of how to do it
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '<file_system_path>/%U.DBF';
    --first we allocate the channel default channel.
    RMAN>RUN
    ALLOCATE CHANNEL DEFAULTCHANNEL TYPE DISK;
    SHUTDOWN IMMEDIATE;
    STARTUP MOUNT;
    BACKUP DATABASE;
    SHUTDOWN
    }then once you have it, you can do what you want.
    It should also be possible to manually restore the database from the original datafiles but it's better to follow the solution involving RMAN.
    Bye Alessandro

  • RAC Migration non ASM to ASM

    Hi
    I have to perform a migration project
    of a 4node RAC cluster to new hardware,
    this RAc cluster has a 2 node DR
    The new hardware will have the same os as
    the current one .The catch is that the database is
    currently using a unix file system and it has to be
    migrated to ASM. Can some1 please guide me with best
    possible way to achieve this....any links or documentations
    appreciated....If any1 has more questions on this please let me know
    Thankyou

    Check metalink note 252219.1
    or
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gASMMigration.pdf

  • Migrating to ASM

    Hi.
    I tried migrate to ASM.
    I used migrate assistant in EM.
    To migrate database files, a working directory is required to store recovery files.
    When I choose directory and click "next", I have this error:
    "Working Directory Location - 153 MB temporary free space under location D:\oracle\product\10.2.0\db_1\database is required to hold all online logs for operation recovery purpose in case of failure."
    On disk, when directory is chosen, there is 60 GB of free space.
    What's wrong?
    Thanx.
    Petr

    The disk space might be an issue. Do you have a tape device on the Linux box? Do you have enough disk space on the Solaris box for a 2nd copy of the DB?
    You may need to do this in several steps.
    1. RMAN CONVERT DATABASE
    2. Finish conversion on Linux to File System
    3. RMAN backup to tape of File System based linux db
    4. Create ASM in place vacated by File System
    5. Restore backup into ASM
    I didn't find it documented, but you may be able to shortcut the step 1 above directly to tape (assuming the tape device works on both platforms). Then it would be step 1, (2&5).

  • Scripting dB migrations and upgrades

    Dear All,
    I need to know if it is possible to completely script a migration from a version 7.x to 8.x including the installation of the 8.x database and datamigration
    I am also looking for info on scripting updates 7.x to 7.y OR 8.x to 8.y
    Any information is welcome.
    Regards,
    Bjoern Steffens
    Tivoli Systems
    null

    [email protected]
    You can upgrade your DB from v7.x to v7.y use orainst command. And use oracle migration tool migrate v7.y to v8.x.
    null

  • Migrate to ASM

    Hi all,
    I am using Oracle 10gR2 on Solaris 10.
    The size of my database is 13TB, I want to migrate to ASM.
    Following is my understanding.
    Stop Application using the DB
    Take complete backup using RMAN.
    Migrate to ASM.
    Restore backup from RMAN.
    Is it right?
    Regards.....

    Hi Tiger's Roar,
    This is the right steps:
    1 - Back up your database files as copies to the ASM disk group.
    2 - Create a copy of the SPFILE in the ASM disk group. In this example, the SPFILE for the migrated database will be stored as +DISK/spfile.
    3 - If this is standby database, stop managed recovery mode.
    4 - At this point, if you want the option of easily returning the database to non-ASM storage later, make copies of your current control file and all online logs. This command backs up the current control file to a non-ASM location:
    5 - Now create an init.ora specifying the location of the new SPFILE, and start the instance with it.
    6 - The next step is to migrate the control file to ASM.
    7 - Now specify the location of the flash recovery area by setting DB_RECOVERY_FILE_DEST and DB_RECOVERY_FILE_DEST_SIZE.
    8 - Shut down and startup in NOMOUNT again, so that the changed parameters take effect.
    9 - Switch database to copy;
    10 -Recover database;
    11 - The next step is to migrate your tempfiles to ASM. You must use a SET NEWNAME command for each tempfile to direct it to ASM, then a SWITCH to make the new names take effect.
    12 - Disable logging for Flashback Database, and then re-enable it again to start creating flashback logs in the new ASM flash recovery area.
    13 - The change tracking file cannot be migrated. You can only disable change tracking, then re-enable it, specifying an ASM disk location for the change tracking file.
    14 - At this point, if the database is a primary database, then open the database.
    More details refer to:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmasm001.htm#i1016547
    Cheers,
    Francisco Munoz Alvarez

  • Rconfig fails for migrate single ASM instance to Oracle RAC 11.2.0.3

    We completed the following steps thus far to migrate single instance with ASM 11.2.0.3 on Oracle Linux to RAC:
    1. Install RAC CRS 11.2.0.3 in GRID_HOME
    2. Install RAC database 11.2.0.3 software in new ORACLE_HOME
    3. Added ASM diskgroups to two node ASM instances
    4. run rconfig from target RAC ORACLE_HOME
    It fails on:
    [RACConvertStep.execute:193] STEP Result=Oracle home is not a cluster database home. Make sure that oracle binary is linked with RAC option and the Oracle home entry in Oracle inventory is updated with cluster node list.
    From rconfig:
    $ rconfig convert.xml
    <?xml version="1.0" ?>
    <RConfig version="1.1" >
    <ConvertToRAC>
    <Convert>
    <Response>
    <Result code="1" >
    Operation Failed
    </Result>
    <ErrorDetails>
    Oracle home is not a cluster database home. Make sure that oracle binary is linked with RAC option and the Oracle home entry in Oracle inventory is updated with cluster node list.
    </ErrorDetails>
    </Response>
    </Convert>
    </ConvertToRAC></RConfig>
    5. the orainventory inventory xml file has:
    6. We have this:
    Source database
    ORACLE_BASE=/oracle
    ORACLE_HOME=/oracle/db/112
    3- target database configuration
    ORACLE_BASE=/oracle/db
    ORACLE_HOME=/oracle/db/11.2.0.3
    4- RAC GRID_HOME
    ORACLE_BASE=/oracle
    GRID_HOME=/oracle/11.2.0/grid
    Has anyone seen this issue before with migrating with rconfig and if so, how did you resolve it?

    good to know. thanks for updating the thread with what was wrong, this will help the community if someone faces this issue.

  • Uninstall or Migrate CA from Win2003 DC

    I have an old Win2003 DC that has a CA running on it.  I think it was installed specifically for RADIUS use with authenticated Wifi clients on a Cisco WLC.  The Win2003 DC is now the last of the Win2003 Servers on the domain and
    am looking at getting everything of value migrated from it so that it can be retired.  In looking at the CA, if I stop the service, I get errors logged on the Win2008 DCs.  So there is something being issued from the Win2003CA in regards to
    replication I guess, but not sure, because the certificate that I can see in the console expired earlier this year.  I know that this domain existed without a CA installed anywhere for several years though. 
    I would like to get the CA off this Server.  Is it possible to just uninstall/decommision the CA and install a new CA on another server or must I migrate this one?  And if I must migrate it, how can I put the CA on a Server
    with a different name? I think the only reason that I need a CA at all is for RADIUS use for WiFi authentication.
    Thanks for any help.

    if your CA is used only for RADIUS (server certificate), then it is easier to uninstall and decommission CA server and install a new one on a separate server. Also, migration procedure exists too, but it is not that simple. Here are docs for:
    CA decommission:
    http://social.technet.microsoft.com/wiki/contents/articles/3527.how-to-decommission-a-windows-enterprise-certification-authority-and-how-to-remove-all-related-objects.aspx
    ADCS migration:
    http://technet.microsoft.com/en-us/library/ee126170(v=WS.10).aspx
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • Script to migrate updates

    Hi,
    Is there away to generate script from APEX development application to migrate the updates/changes to the production application? I don't want to use the application migration nor the rewrite options.
    thanks,
    Fadi.

    Hello Roger and Tony,
    Roger that's really good work but is little bit complicated and time consuming to implement for migration.
    Tony, the reason why I did ask for this script is because we have 20 websites using the same application pages and codes but with different customizations, now when we develop the new release of these websites we move the updated version from development to test for testing purposes then to production and hence we rewrite the application 20 times which is really really cumbersome and time consuming, translation files need to be seeded and translated again! Even when we use different databases still the same issue.
    We hope next releases of APEX will take into consideration simpler migration process (not a very tight link between application ID and pages components, which leads all time to lose breadcrumbs, translations, pages navigations...etc when migrate page/pages to same application but different ID's).
    thanks,
    Fadi.

  • Script to Migrate AD

    Hello,
    I would like to know if it is possible to migrate the on-premise Active Directory to Azure with the help of Powershell script. I have seen the tools like ADConnect and DirSync but i would like to develop a script to accomplish that task. So i need help in
    that purpose like is that possible to migrate using Powershell ? If it is possible can anyone help with the path or like steps how to do that ? or any reference script available for the same.

    It's possible, but you can only set few attributes with the available cmdlets. In most cases, you will have to create the user object first, apply an Exchange license to it and only then import the mail-related attributes, etc.
    Here are some links that can help:
    WAAD PowerShell module (check the manage users section):
    https://msdn.microsoft.com/en-us/library/azure/jj151815.aspx
    Example script:
    https://gallery.technet.microsoft.com/office/Bulk-import-the-user-568abc5f

  • Database Migration using ASM

    Hello All,
    We are using oracle database 10g on AIX. We are using asm for storage on a shared location.
    Now we want to move our database from old servers to new servers.
    I want to know if we could use the same asm based datafiles for new database to avoide database data migration. Can we switch our database from one server to another and use the same datafiles??? or we have to migrate our database by RMAN or expdp etc???

    we want to move 9 Tb database from tru64 and filesystem to solaris and asm on 10.2.0.3, we will be testing RMAN with CONVERT;
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn.htm#sthref1379
    and physical dataguard options.
    so do you have any experience with the source and the target OS different case, like source as Tru64 and destination as Solaris;
    SQL> SELECT a.platform_name, a.endian_format
      2    FROM v$transportable_platform a
      3   WHERE a.platform_id IN (2, 5)
      4  ;
    PLATFORM_NAME                                                                    ENDIAN_FORMAT
    Solaris[tm] OE (64-bit)                                                          Big
    HP Tru64 UNIX                                                                    Littleor is there any similar step by step reference like Howard's article for same OS case?
    Thank you, best regards.

  • Database upgrade, platform migration with ASM

    Hi All
    I have using R12.1.2 with 10.2.0.4 database on HP-PA RISK 64 bit Operating system . I want to upgrade database to 11g r2 with ASM and want to migrate OS to RHEL5 , 64 bit. Kindly suggest me the sequence how we can proceed?
    Thanks
    Krishna

    Hi Krishna;
    I have using R12.1.2 with 10.2.0.4 database on HP-PA RISK 64 bit Operating system . I want to upgrade database to 11g r2 with ASM and want to migrate OS to RHEL5 , 64 bit. Kindly suggest me the sequence how we can proceed?For your issue I suggest just follow below steps:
    1. Upgrade your db from 10.2 to 11.2 on HP
    2. Migrate your 11.2 from HP to linux
    3. Convert your system to ASM
    Please see below notes:
    1. For convert ASM:
    Convert datafile to asm:
    Re: convert to ASM
    How to move a datafile from a file system to ASM [ID 390274.1]
    How to Convert 10g Single-Instance database to 10g RAC using Manual Conversion procedure [ID 747457.1]
    How To Create ASM Diskgroups using NFS/NAS Files? [ID 731775.1]
    How to copy a datafile from ASM to a file system not using RMAN [ID 428893.1]
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/dbxptrn.htm
    convert to ASM
    Re: convert to ASM
    Also check below gooling:
    http://www.google.com.tr/search?hl=tr&q=convert+datafile+to+asm&meta=&aq=f&aqi=&aql=&oq=&gs_rfai=
    RAC for EBS 12.1.1 with DB 11.1.0.7
    2. For 11g upgrade:
    Interoperability Notes Oracle EBS 11i with Oracle Database 11gR2 (11.2.0.2) [ID 881505.1]
    3. For RHEL5:
    DB migration from AIX to Linux
    Export/Import Process for Oracle E-Business Suite Release 12 using 10gR2 [ID 454616.1]
    General Notes For E-Business Suite Release 12 [ID 986673.1]

  • Invalid scripts for migrating ADF11g app Credentials and Policies to WLS

    I following the instructions posted on the OTN to migrate ADF 11g application credential/policies to WLS:
    http://www.oracle.com/technology/products/jdev/tips/muench/credmig111100/index.html
    The instructions were written back on Oct 8, 2008, the following things need to be updated for the provided migration scripts "build.xml" & "jps-config.xml" to work properly:
    1. The "oracle" directory no longer exists in the <DOMAIN_HOME>/config. The scripts reference this directory for cwallet.sso and system-jazn-data.xml.
    For the latest ADF 11g R1 installation, the "fmwconfig" directory is the directory where the credential/policies files are stored.
    2. The "build.xml" script copies the following WLST script files from the "<MIDDLEWARE_INSTALLATION_HOME>/modules/oracle.jps_11.1.1/scripts"
    > migrateSecurityStore.py
    > validate.py
    > cmdHelp.py
    For the latest ADF 11g R1 installation, the "<MIDDLEWARE_INSTALLATION_HOME>/jdeveloper/modules/oracle.jps_11.1.1/scripts" does not exist any more.
    I can find the "migrationSecurityStore.py" under "<MIDDLEWARE_INSTALLATION_HOME>/jdeveloper/modules/oracle.jps_11.1.1/common/wlstscripts" directory.
    But I can't find the "validate.py" and "cmdHelp.py" anywhere.
    When I modify the build.xml to use "migrationSecurityStore.py" in the new directory, it failed with errors that related to what parameters need to be passed.
    I am not familiar with WLST so I am not able to fix the script myself.
    Is there a updated version of the build.xml and jps-config.xml that will work for the latest ADF 11g R1 installation ?
    Where can I find out how to call "migrationSecurityStore.py" properly to make the migration script work?

    This is the current documentation on that topic. It supercedes my whitepaper from the 11.1.1.0.0 timeframe.

  • Is there a delivered script to migrate HR text catalog?

    Hi Guys,
    I would like to migrate text catalog by a script. Does anyone know if there is a delivered script or functionality to do this?
    Thanks,
    Bob

    I dont think there is one delivered, but i had to create one.
    as below.
    SET LOG export_Terms.log;
    set output expDirectdepositterms.dat;
    EXPORT HR_SSTEXT_CFG ;
    EXPORT HR_SSTEXT_TEXT;
    EXPORT HR_SSTEXT_MSGID ;
    EXPORT HR_SSTEXT_EFFDT ;
    Edited by: user13021426 on Jun 10, 2010 7:03 AM

Maybe you are looking for

  • How to run games on ipod nano 2nd generation with firmware 1.1.1

    Does anyone know if you can run games on the 2nd generation ipod nano with the latest firmware of 1.1.1 when the itunes store with games wants the system to have firmware 1.2. This means that the games must only work on 1st generation ipods or that 2

  • Need user exit, BAdI for acc. determination in PO-multiple a/c assignment

    Hi,   I am looking for a user exit in ME21N transaction.   In case of multiple account assignment, I need a user exit where I can calculate the percentage to split the item to post into different G/L accounts. The percentages need to be calculated ba

  • Base value not flowing in the table

    Dear Experts, It is noticed that while creating excise invoices in SAP of exempted goods the base value does not pass into relevant table J_1iexcdtl in transaction type DLFC. Please provide any solution. thanks in advance

  • How to prepare for ABAP certification?

    Hi,     I'm currently pursuing my ABAP certification. I've completed the training course and I've started to prepare for the certification. I've heard from a lot of people that the certification exam is really tricky and difficult to get through. A l

  • AdobeReader11 インストールエラー

    AdobeReader11のインストール中(約76%)にエラーが発生するためインストールできません. エラーの詳細には「プロセスはファイルにアクセスできません.別のプロセスがファイルの一部をロックしています.」と表示されます. ■試したこと ・PCの再起動 ・Adobe Reader および Acrobat 用の Cleaner Tool ■環境 ・Windows8.1 (64bit) ・過去AdobeReader11.0.08をインストールしていたが. 同エラーでアンインストールできなかったた