Renaming oracle datafiles at the unix level

I have noticed that some of the datafile under /oracle/DV1/sapdata2/ have some strange characters in them
Grrr - DBAs that don't know brtools.....
for example:
drwxr-xr-x   2 oradv1   dba             256 Nov 02 23:22 sr3\177_2
and it shows as sr3_2 unless you use ls -lb which shows the above:
Now can I simply stop the DB and cp -rp sr3\177_2 to sr3_2?
I can actually cp -rp  sr3\177_2 to sr3_X and then copy sr3_X to sr3_2 or an mv.
So can I do this without screwing up Oracle and SAP?
What should I do as the \177 characters should not be there?
Thanks Mikie

Hello Mike,
at first... the naming of the folder is no problem in running SAP ... it is only a "cosmetic" failure.
But to your question.....
1) Shutdown SAP and Oracle (shutdown immediate)
2) Copy (and remove) or move your data files
3) Publish the new file names to oracle the following way:
> startup mount;
> alter database rename file '<OLD_FILENAME>' to '<NEW_FILENAME>';
> shutdown immediate;
> startup ;
After this the database should start "normally" with the new data file names / directory structure. After these steps i would make a backup of the database.
I have done this many times (not only in SAP environment).
For more information of the rename command:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
Regards
Stefan

Similar Messages

  • Oracle over to the Unixes ?

    I gather that Oracle is stopping its Windoze stay and crossing over to
    the Unixes .
    IS this true ?
    Where does Oracle work better :
    on the Unixes
    or on M$ Windoze ?
    Regards,
    Shyam

    Hi,
    Can you write the issue  and process indetail.
    Regards,
    Kumar

  • Run a RFC from the UNIX level to test if its up.

    We have some RFC's that must run from specfic servers, I would like to setup a UNIX script to test and see if those are up,   I would like it to just work like pushing the test connection in SM59,   Is there a command to do it?

    Hi,
    Please find a interesting code , i used to check my server connection. may this will help you.
    http://www.saptechies.com/check-if-your-sap-servers-are-alive-from-the-command-prompt-2/

  • Killing the process at unix level

    Hi friends,
    I wanted to kill a process at the unixlevel, can any one help me.
    In SMLT i have scheduled a language it is running from last two days, i tried to check in SM66,SM50 and SM04 there is nothing there.
    I have checked in SM37 also there is no job there.
    But in SMLT i can see the tranport icon.
    I want to kill from the unix level . Pl help.
    thanks.

    There is no easy way of "deleting that icon" - various tables are involved in the language import, they apparently contain the wrong state.
    I suggest you either debug the program yourself and "fix" that manually or create an OSS call and let support people have a look on the system.
    Markus

  • How to rename database in oracle 8.0.5 unix?

    how to rename database in oracle 8.0.5 unix? for example from 'DBDEV' to 'DBTEST'

    Dear Amardeep,
    The OP opened 2 threads, one how to clone and other one how to rename a database 8. The article I send show how to clone the DB (one of the steps in the clone article is how to rename the DB from"PROD" to "Test"). ;)
    This is the other thread:
    easy way to clone database
    Cheers,
    Francisco Munoz Alvarez
    www.oraclenz.com

  • Change the default oracle datafile permission from 640 to 644 internally.

    Is there any method available to change the default datafile permission (640-(RW-R-----)) to (644-(RW-R--R--)).Please check the below example which I required.
    existing:
    rw-r----- 1 orasd dba 104865792 Mar 15 01:17 users01.dbf
    Required:
    -rw-r--r-- 1 orasd dba 104865792 Mar 15 01:17 users01.dbf
    we can bring the expected result by setting the value of UMASK to 022, only for OS level files not for oracle datafiles.
    So anyone can help me which method or which parameter we need to set to create datafiles in 644 permission from internally(create tablespace command).
    I know very well oracle software is creating the datafile,controlfile and logfile with 640 file permission, to maintain discretionary access to data (for security purpose).

    Is there a reason for posting duplicates ? Want to change the default datafile permission (640) to (644)

  • How to rename content type on web site level and underneath all the document libraries using powershell?

    Hello
    I wantto rename content type on web site level and underneath all the document libraries using powershell, please let me know how can do this?
    I saw this url
    http://suryapulipati.blogspot.in/2011/08/rename-content-type-name-in-list-using.html, but I want to change everything from Web Site, subsite and underneath document libraries. Because if you try to change on any on document library, it will be applicable
    for that document library, if you change on web level then underneath document libraries content type names not updated automatically.
    Please advise
    Avi

    Not sure with powershell.
    I could help you out with Server Side or Web Services though.
    Brandon James SharePoint Developer/Administrator

  • Recently updated  Contacts details of customer at the Communication tab defined at the Site level in oracle  AR

    Hi Expert,
        Please let me know How to find out recently updated  Contacts details of customer at the Communication tab defined at the Site level in oracle  AR.
    Thanks in advance.

    Hi -
    Please use the below code to get the Contacts at the Account level.
    where Sold to Org id is the Customer Account Id.
    SELECT hp2.person_last_name||', '||hp2.person_first_name
    FROM apps.hz_parties hp,
    apps.hz_parties hp2,
    apps.hz_relationships hr,
    apps.hz_cust_accounts hca
    WHERE 1 = 1
    AND hca.party_id = hp.party_id
    AND hca.cust_account_id = :sold_to_org_id
    AND hr.subject_id = hp.party_id
    AND hr.relationship_type = 'CONTACT'
    AND hp2.party_id = hr.object_id
    AND hr.object_type = 'PERSON'
    AND hp.party_id = hr.subject_id
    Thanks
    Vyaghresh
    Edited by: user11990386 on Jun 20, 2011 2:33 PM

  • Contacts details of customer at the Communication tab defined at the Site level in oracle AR

    Hi Expert,
       Please tell me that how I find out recently updated  Contacts details(Multiple contacts) of customer at the Communication tab defined at the Site level in oracle AR
    Thanks in advance.

    Hi Octavio,
    Thank you for sending me this query. I am working on Customer Interface in R11i. For updating the records I need to check already existing data for a particular customer in a particular site. I am getting all the details except the communication tab details.
    I am writing the below query but it is giving multiple rows and same data. Some phone numbers and email addresses are missing in the communication tab . Please correct me what mistake i am doing.
    SELECT hcp.email_address,
    ,hcp.phone_area_code
    ,hcp.phone_number
    ,hcp.phone_extension
    ,hcp.phone_line_type
    FROM ra_customers rc
    ,ra_addresses_all raa
    ,hz_party_relationships hpr
    ,hz_contact_points hcp
    WHERE rc.party_id = raa.party_id
    AND rc.party_id = hpr.object_id
    AND hcp.owner_table_id = raa.party_site_id
    AND rc.orig_system_reference = 'C100233' -- This I will get from the file for update
    AND raa.orig_system_reference = 'A100961' -- This I will get from the file for update
    AND hcp.orig_system_reference = '<Phone Reference>' -- This I will get from the file for update
    Regards
    Dev

  • Trying to find the correct Oracle version for SCO Unix 5.06

    Please I will appreciate you can help me indicating where can I download the correct Oracle version for SCO Unix 5.06. I have downloaded the Tru64 Compaq version but it is not working with SCO.
    Best regards
    Armando Delgado
    00511 8105860
    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    - Date/Time
    - Browser + Version
    - O/S + Version
    - Error Msg

    This is pretty old. From the certify matrix, you can see the last available versions this platform supported were 9.0.1 and 8.1.7, just for the Intel SCO Open UNIX 8 with LKP. SCO 5.0 last time I used it was with an Oracle7.3 release. In case you don't have software it'll be hard to find, unless you address this to your Oracle Representative.
    Are you absolutely required to run on this version? Otherwise, you could try new software and new oracle releases, unless you want to run unsupported.
    ~ Madrid.

  • Increase the Oracle datafile size or add another datafile

    Someone please explain,
    Is it better to increase the Oracle datafile size or add another datafile to increase the Oracle tablespace size?
    Thanks in advance

    The decision must also includes:
    - the max size of a file in your OS and/or file system
    - how you perform your backup and recovery (eg:do you need to change the file list)
    - how many disks are available and how they are presented to the OS (raw, LVM, striped, ASM, etc.)
    - how many IO channels are available and whether you can balance IO across them
    Personal default is to grow a file to the largest size permitted by OS unless there is a compelling reason otherwise. That fits nicely with the concept of BIGFILE tablespaces (which have their own issues, especially in backup/recovery)

  • Is it possible to use some product on the unix server at the development level which would make it p

    Hello,
    We are generating editable PDF forms from the scratch at the development level on the unix server. Is it possible to use some product on the unix server at the development level which would make it possible to save these editable PDF forms to be saved using acrobat reader? These forms are used by the end users and the edited files are then saved... Kindly help me in this regard..
    Best Regards,
    Deepak

    Dear Aandi,
    I am really thankful to you for this. I will suggest this to the business and then they can contact adobe for this. Thanking you once again for providing me with all the valueable info. You have been instrumental in helping me out in my project.
    Best Regards,
    Deepak Goyal

  • Need suggestion on audit some actions in Unix level

    Hi,
    In a team of 20 people sharing the same oracle password.Is there a possibility to track some unix level access to certain folder like binary folder and mail the team.
    If a person uses 'oracle' unix user and accesses the binaries folder,a mail has to be sent to alert that the folder was accessed at that time.
    Is there is a possbility in shell script.
    Thanks
    Sakthi

    Hello
    Have a look at this
    http://aplawrence.com/Unixart/watchdir.html
    Salman

  • Add a new datafile to the standby database

    Hi,
    i have a standby database in recovery managed mode.
    Now i must add a new datafile on the production database and i would like
    to know how i realized adding the new datafile on the stanby database.
    is it right when i do the follow steps?
    Before i add a datafile to the primary database,
    cancel the recovery on the standby database.
    -> add the new datafile on the primary database
    after all archived redo logs have been applied, cancel managed recovery:
    alter database recover managed standby database cancel;
    startup nomount
    alter database mount standby database;than
    ALTER DATABASE CREATE DATAFILE '/oracle/DB1/db1_9/data9' as '/oracle/DB1/db1_9/data9';
    alter database recover managed standby database disconnect;Thanks

    8.4.1.1 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to AUTO
    The following example shows the steps required to add a new datafile to the primary and standby databases when the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Archive the current redo log so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Verify that the new datafile was added to the standby database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    8.4.1.2 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to MANUAL
    The following example shows the steps required to add a new datafile to the primary and standby database when the STANDBY_FILE_MANAGEMENT initialization parameter is set to MANUAL. You must set the STANDBY_FILE_MANAGEMENT initialization parameter to MANUAL when the standby datafiles reside on raw devices.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Perform the following steps to copy the tablespace to a remote standby location:
    Place the new tablespace offline:
    SQL> ALTER TABLESPACE new_ts OFFLINE;
    Copy the new tablespace to a local temporary location using an operating system utility copy command. Copying the files to a temporary location will reduce the amount of time that the tablespace must remain offline. The following example copies the tablespace using the UNIX cp command:
    % cp t_db2.dbf s2t_db2.dbf
    Place the new tablespace back online:
    SQL> ALTER TABLESPACE new_ts ONLINE;
    Copy the local copy of the tablespace to a remote standby location using an operating system utility command. The following example uses the UNIX rcp command:
    %rcp s2t_db2.dbf standby_location
    Archive the current redo log on the primary database so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Use the following query to make sure that managed recovery is running. If the MRP or MRP0 process is returned, managed recovery is being performed.
    SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
    Verify that the datafile was added to the standby database after the redo log was applied to the standby database.
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    From Oracle Docs...

  • Oracle Calculation Summary on different levels

    Hi Folks,
    I have a little problem with my financial form. I would like to calculate some data on form so when user type some amount, the data will automatically get refreshed. This is easy done with seting calculation on item.
    My form have relationship Master-Detail-Detail (BLOCK1-BLOCK2-BLOCK3).
    On BLOCK2 I am displaying summary from BLOCK3 but I am unable to set summary on level of BLOCK1. Forms doesnt have such property to say reset at BLOCK1 group like reports does.
    I have try to set summary on summarized item on BLOCK2 but Oracle complains and throws an exception.
    I think this kind of calculation is not possible but I hope someone will convice me on the contrary.
    Regards,
    Igor

    It is possible to assign Structural Elements to any Model Type in BPA. If you are not able to make this assignment it is not active in your Method Filter. You can log in with the Entire Method filter to check this out. You can also modify the filter you are using to include this ability.
    The hierarchy you are using is fine and is a commonly used one. Some people use the EPC model, which is specifc to BPA and not a standard, at the level below the value-chain but many use BPMN as you have. If your intent is to use the first BPMN as a pure business process model then you may consider creating a separate custom Model Type, based on the BPMN model, with a scaled down set of allowable objects. This is also done through customizing the filter. If you do this you can also rename the model types in the filter if you wish to have different names at each level.
    Note of caution, modifying a method filter can have impacts and should generally be done by someone with a working knowledge of the meta model. If you chosse to change a filter supplied with the tool, copy it and rename it, then update the copy. Always retain the original filter provided with the tool. If you are doing something as simple as adding the ability to use the assignment between Structural Elements and Value-Added Chain models, that would be no big deal. If you get into reusing object and model types that has more impact on the functionality of the tool.

Maybe you are looking for

  • Data copied from GP master to Ship-To on A/R and A/P

    Copying this from another thread ... really think this has to be reworked in B1: Thank you guys. I'm having a hard time to believe that 'this' really is the out-of-the-box solution from SAP. IMHO, this is far away from any practical experience. The s

  • IPod deleted itself and freezes my computer

    yesterday my computer spontaneously deleted all of it's music and everytime i conenct it to my pc it freezes windows and im forced to restart. If i try restarting the computer into windows with the iPod still attached, windows refuses to load, and my

  • What is the workaround for adjusting the clip length of a background song?

    I read an article about this but I can't seem to find it now.  Does anyone know how to do this?

  • The best way pass a goemetry to a procedure

    I need to pass a geometry to a stored procedure. I first thought of using the mdo.sys_geometry types but the java client cannot pass in this type of object. I then thought of using pl/sql tables to send in the sdo_element_info array and the sdo_ordin

  • Retrieve mail SDK

    I'm looking for a 3rd party application that can retrieve GroupWise mail and save it to disk. I can't seem to find an application that does that, so Im looking around if it is possible to make an application that does that with the SDK. I can't seem