of MSHS - cannot rename the data files

I have a MSHS (encryoted MSH) - 5 last lines in this script - I have a command shell that renames the data files. for example

Shell ren f:\data\abc_morning.txt abc_20100912_morning.txt
Shell ren d:\data\def_afternoon.txt abc_20100912_afternoon.txt
Shell ren t:\data\abc_evening.txt abc_20100912_evening.txt

These commands work fine in the MSH script, but get the "File not found" error in file MSHS. Has anyone else ran into this problem?

MSHS command also asked how to rename the data files as Shell REN does not work?

It's really simple:

MSH scriptname.msh

That's all.

Kind regards

Cameron Lackpour

Edited by: CL, Sep 13, 2010 16:37
Adding an extension to the scriptname.

Tags: Business Intelligence

Similar Questions

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • After you rename the data file, cannot start database

    Oracle 11 g 2
    OEL 5 (ASM)
    Network infrastructure (cluster install) - no CARS yet

    Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.

    I gave a data in ASM file an alias with the following command (the ASM instance):
    SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487';
    
    Diskgroup altered.
    Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?

    I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.

    All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.

    Any ideas?

    Thank you.

    Hello
    When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
    Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.

    concerning
    Peter

  • You cannot change the data file

    Unable to Alter Database Datafile

    Hi all

    Using Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;

    getting this error.

    SQL > Alter database datafile ' C:\Oracle\APP\ORADATA\...\USERS01. DBF' SIZE 100M;
    Error report:
    SQL error: ORA-01237: do not extend datafile 4

    ORA-01110: data file 4: ' C:\Oracle\APP\ORADATA\...\USERS01. DBF'

    ORA-27059: reduce file size

    OSD-04005: SetFilterPointer() failure, unable to read the file

    s/o-error: (OS 112) there is not enough space on the disk.

    01237 00000 - "cannot extend %s datafile.

    * cause: year Operating system error has occurred during resizing.

    * Action: Resolve the cause of the error of operating system and start the command

    I understand that the OS space is full and I guess this isn't specific Oracle error, but certainly an OS level error, someone could suggest me how to deal with the erasure of space, is it possible to erase and reuse the data files? Please suggest.

    Help out me

    Thank you and best regards,
    Cabbage

    You need create more space by deleting unnecessary files or narrowing of the files.

  • Cannot rename the RPD files

    Hello

    I want to replace the file RPD development with RPD production record. Here's what I did:

    1 make a copy of the current production RPD by clicking on "copy as" in the Administration of BI (repository).
    2 moved the copy to the folder of repository development.
    3 rename/remove current file from RPD. This is where I came across the problem. I always get 'cann't delete/rename, the program is used by somesone or program...'.

    I have to be BI admin to rename/delete the RPD? Nobody used the repository at the time.

    Thank you.

    May

    Stop BI servers, servers of presentation, OC4J or application servers and then do it. It will work!

    If helped reward points

  • Rename a data file after restoring

    Hello
    I entered incorrect name for a data file by mistake.

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf


    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database


    How can I return the names after the two data files are restored and renamed.

    Published by: Paul Vidal on May 29, 2012 15:14

    the value of newname for datafile 145 to ' / PATH/datafile1.dbf ';
    the value of newname for datafile 146 to ' / PATH/datafile2.dbf ';

    But that's the real name of the two

    DataFile 145 /PATH/datafile2.dbf
    DataFile 146 /PATH/datafile1.dbf

    Trying hard I did:

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile2.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';

    But I got this error after alter renaming:
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01523: cannot rename the data file ' / PATH/datafile2.dbf '-record already in the database

    How can I return the names after the two data files are restored and renamed.

    His as an example, you have two glasses of water, you want to exchange the water in each glass, then you need extra glass here.
    Thus, rename one of the files with a different name.

    change the database file rename ' / PATH/datafile1.dbf ' to ' / PATH/datafile1_dummy.dbf ';
    change the database file rename ' / PATH/datafile2.dbf ' to ' / PATH/datafile1.dbf ';
    change the database file rename ' / PATH/datafile1_dummy.dbf ' to ' / PATH/datafile2.dbf ';

    But make sure that you have files at the level of the BONE also...

  • ORA-01157: cannot identify/lock data file error in database pending.

    Hello

    I have a back-end database and the base ensures (11.2.0.1.0) that runs in ASM with the names of different diskgroup. I applied an incremental backup on a standby database to solve the gap newspaper archive and generated a controlfile to standby in the primary database and restore the standby database controlfile. But when I started the MRP process his starts not and lift error in the alerts log ORA-01157: cannot identify/lock file. When I questioned the standby database file it shows the location on primary data filenames not the database pending.

    ******************************

    PRIMARY DATABASE

    *****************************

    SQL > select name from v$ datafile;


    NAME

    --------------------------------------------------------------------------------

    +Data/OraDB/datafile/system.256.788911005

    +Data/OraDB/datafile/SYSAUX.257.788911005

    +Data/OraDB/datafile/undotbs1.258.788911005

    +Data/OraDB/datafile/users.259.788911005

    ****************************************

    BACKUP DATABASE

    ****************************************

    SQL > select name from v$ datafile;


    NAME

    --------------------------------------------------------------------------------

    +STDBY/OraDB/datafile/system.256.788911005

    +STDBY/OraDB/datafile/SYSAUX.257.788911005

    +STDBY/OraDB/datafile/undotbs1.258.788911005

    +STDBY/OraDB/datafile/users.259.788911005

    The actual physical location of files of database Eve in ASM in the standby server is shown below

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    ASMCMD >

    ASMCMD > ls

    SYSAUX.259.805921967

    SYSTEM.258.805921881

    UNDOTBS1.260.805922023

    USERS.261.805922029

    ASMCMD >

    ASMCMD > pwd

    + STDBY/11gdb/DATAFILE

    I even tried to rename the data files in the database backup, but it throws error

    ERROR on line 1:

    ORA-01511: Error renaming data/log files

    ORA-01275: RENAME Operation is not allowed if management undo file is

    Automatic.

    Kind regards

    007

    You must specify the complete location

    *.db_file_name_convert='+data/OraDB/datafile/,'+STDBY/11gdb/DATAFILE /'

    and to rename the data file, your standby_file_management parameter must be set to MANUAL.

  • Rename a data file

    One of a tablespace data files received the fake name (deviating naming convention standards established by our Organization). Now, I want to rename it... What are all the options that I have... I don't want to stop the database... The database is running on Oracle 9i on HP Unix... Enjoy your suggestions...

    ALTER database datafile '' in offline mode.
    Rename the data file
    change the database file rename "" to "";
    ALTER database datafile '' online;

    HTH

    Enrique

    PS: If the database has increased, then you must recover the data file before you can put it online:
    RMAN > recover datafile 'new name of datafile.

    Published by: Enrique Orbegozo on October 14, 2008 08:59

  • Cannot rename the file redlog

    Experts!

    We face below exceptions by renaming the log file to roll forward on oracle 10g.

    SQL > the judgment;
    ORACLE instance stops.
    SQL > bootable media.
    ORACLE instance started.

    Total System Global Area 3423965184 bytes
    Bytes of size 2119752 fixed
    1828718520 variable size bytes
    1577058304 of database buffers bytes
    Redo buffers 16068608 bytes
    Mounted database.
    SQL > ALTER DATABASE FILE RENAME ' E:\RMANDB\RMANDB\REDO01. NEWSPAPER 'TO' E:\RMANDB\RMAN
    DB\REDO09. JOURNAL ";
    ALTER DATABASE FILE RENAME ' E:\RMANDB\RMANDB\REDO01. NEWSPAPER 'TO' E:\RMANDB\RMANDB\RE
    DO09. JOURNAL"
    *
    ERROR on line 1:
    ORA-01511: Error renaming data/log files
    ORA-01512: error rename the logfile E:\RMANDB\RMANDB\REDO01. JOURNAL - new file
    E:\RMANDB\RMANDB\REDO09. LOG not found
    ORA-27041: could not open the file
    04002 - OSD: could not open the file
    S/O-error: (OS 2) the system cannot find the file specified.


    Please suggest where we make mistake...

    Thank you

    You cannot rename an online redo log file.
    You must ensure that it is not "ACTIVE" or "CURRENTS" and drop logfile group rightaway without renaming.

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-19846: cannot read the header of the data file of the remote site 21

    Hello

    I have a situation or I can say a scenario. It is purely for testing base. Database is on 12.1.0.1 on a Linux box using ASM (OMF).

    Standby is created on another machine with the same platform and who also uses ASM (OMF) and is in phase with the primary. Now, suppose I have create a PDB file on the primary of the SEED and it is created successfully.

    After that is a couple of log, do it again passes to the waiting, but MRP fails because of naming conventions. Agree with that! Now, on the primary, I remove the newly created PDB (coward the PDB newly created). Once again a couple of switches of newspapers which is passed on to the wait. Of course, the wait is always out of sync.

    Now, how to get back my watch in sync with the primary? I can't roll method until the required data (new PDB) file does not exist on the main site as well. I get the following error:

    RMAN > recover database service prim noredo using backupset compressed;

    To go back to November 8, 15

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 70 = device = DISK stby type instance

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at the 18:55:32 08/11/2015

    ORA-19846: cannot read the header of the data file of the remote site 21

    The clues on how to I go ahead? Of course, recreating the eve is an option as its only based on test, but I don't want recreation.

    Thank you.

    I tried like below:

    1 a incremental backup of the primary of the CNS where off the eve also taken primary backup controlfile as Eve format.

    2 copy the backup of the watch parts, catalogged them on the day before.

    3 recovered Eve with noredo option - it fails here with the same error pointing to the 21 data file.

    OK, understood. Try not to get back the day before first, rather than restore the controlfile and then perform the restoration.

    Make it like:

    1. take incremental backup of primary SNA, also ensures the backup controlfile format.

    2. copy pending, get the location of the data file (names) by querying v$ datafile on the eve. Restore the controlfile ensures from the backup controlfile you took on primary and mount.

    3. Since you are using OMF, the path of primary and standby data file will be different. (/). If you require catalog data from the database files pending.

    (Reason: you restore controlfile from elementary to step 2, which takes place from the main access road). Use the details that you obtained in step 2 and catalog them.

    4. turn the database copy by RMAN. (RMAN > switch database to copy ;))

    5 Catalog backup items that you copied in step 2.

    6. recover the standby database using 'noredo' option.

    7. finally start the MRP. This should solve your problem.

    The reason I say this works is because here, you restore the controlfile to primary first, which will not have details 21, datafile, and then you are recovering. So it must succeed.

    In the previous method, you tried to first collect all the day before, and then restore the controlfile. While remedial classes, always watch seeks datafile 21 as he controlfile is not yet updated.

    HTH

    -Jonathan Rolland

  • How to rename the configuration files store data with downtime

    HI team

    I've renamed the vcenter client name. How to rename the configuration also files in data store with to take the time to stop.

    you have renamed virtual machines, and now you want to also rename the config files (vmdk, vmx and so on)?

    Just do a storage vmotion and the files will be automatically renamed...

  • Moved the folder "Pictures" of Mac and catalog image files shows no images. Cannot navigate to the appropriate folder in 'Files' Panel and cannot rename the folder "Images". How can I reconnect catalog image files?

    Moved the folder "Pictures" of Mac and catalog image files shows no images. Cannot navigate to the appropriate folder in 'Files' Panel and cannot rename the folder "Images". How can I reconnect catalog image files?

    You opened an empty catalog.

    You can try the following two steps to open the appropriate catalog file.

    1. Use the file-> open recent, open the list of all catalogs
    2. If this does not work, you will need to find the appropriate help for your operating system catalog file and double-click it to open it.
  • My after effects CC 2014 and 2015 cannot import the .obj files.  What's up mind dat?

    My after effects CC 2014 and 2015 cannot import the .obj files.  What's up mind dat?

    After Effects has never been able to import these files.

  • c4599 printer cannot find the specified file

    PS_AIO_04_C4500_USW_Full_Win_WW_130_140.exe downloaded and tried to install c4599 printer.  Error system cannot find the specified file "BlockSysUserInstall.exe., which is located in the Temp directory  I noticed that he keeps referring to a coded hard "7zS2F4B."  Have you tried renaming the file in the Temp directory to "7zS2F4B" but still no installation.

    Hi foberg,

    Looks like you have some problems with the operating system installed on this computer. Try the following steps to see if that helps.

    Windows 7 and Windows Vista allows you to have multiple users share the same computer under their own individual accounts. This allows each user to have their own location on the computer where they can store their personal documents, photos, videos, saved games and other personal data. It also allows the owner of the computer assign some accounts the ability to perform administrative tasks such as installing software, while limiting the capabilities of the other user.

    This tutorial will guide you in creating a new account in Windows 7 and Windows Vista.

    1. Click the Start button. It's the small round button () in the lower left corner of your screen that has a Windows flag on it.
    2. Click on the Control Panel menu option.
    3. When Control Panel opens, you will see a screen similar to Figure 1 below.
      Figure 1. Windows 7 Control Panel
  • Rename a data file in a physical standby

    Hi all

    I have the following problem.

    Oracle Enterprise Linux 64-bit 11.2.0.2.0

    Primary and standby are configured with standby_file_management = MANUAL

    I added a tablespace with a primary data file a few days ago.

    Today, I realized sleep did not change due to the following error:


    ORA-01111: name for the data file 13 is unknown - rename it to the correct file

    ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file

    ORA-01111: name for the data file 13 is unknown - rename it to the correct file

    ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

    According to the MOS it says I should rename database in standby mode, but it does not allow me to do so, it is said that dB must be open; but I can't open it because it is a standby DB.

    Even if I want to open read-only, it says:

    SQL > ALTER DATABASE OPEN read-ONLY.

    ALTER DATABASE OPEN READ ONLY

    *

    ERROR on line 1:

    ORA-10458: standby database requires recovery

    ORA-01157: cannot identify/lock data file 13 - see DBWR trace file

    ORA-01111: name for the data file 13 is unknown - rename it to the correct file

    ORA-01110: data file 13: ' / oracle1/11.2.0.2/dbs/UNNAMED00013'

    /Oracle1/11.2.0.2/DBS/UNNAMED00013 data file does not exist

    How can I solve it?

    Thank you very much.

    Hello;

    My friend CKPT has a post on it:

    Without file NAME in standby mode after the addition of new files to primary ORA-01111, ORA-01110

    http://www.Oracle-CKPT.com/unnamed-file-in-standby-after-adding-new-file-to-primary-ora-01111-ora-01110-ora-01157/

    Sound also cover in the book he co-authored:

    Oracle Data Guard 11 GR 2 Administration beginner & #039; s Guide | Packt Publishing

    Best regards

    mseberg

Maybe you are looking for