AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  RINT for a file

    Posted Thu December 16, 2010 06:59 AM

    Originally posted by: big


    Hi,
    on AIX 6.1 I have :

    -rwx------ 1 oracle dba 1263 Dec 8 02:43 initMYDB.ora
    -rwx------ 1 oracle dba 1263 Dec 16 10:44 initOURDB.ora
    RINT------ 1 oracle dba 1263 Dec 16 10:42 initMYDB.ora
    I havr never seen
    RINT------

    Do you know and understand that ?
    Thank you.


  • 2.  Re: RINT for a file

    Posted Thu December 16, 2010 09:26 AM

    Originally posted by: big


    also I have :

    
    ls -li 69219 -rwx------    1 oracle   dba            1263 Dec  8 02:43 initMYDB.ora 69233 -rwx------    1 oracle   dba            1263 Dec 16 10:44 initOURDB.ora 69231 -rwx------    1 oracle   dba            1263 Dec 16 10:42 initMYDB.ora RINT 58737 -rw-r--r--    1 oracle   dba           12920 May  3 2001  initdw.ora
    


  • 3.  Re: RINT for a file

    Posted Thu December 16, 2010 02:24 PM

    Originally posted by: SystemAdmin


    looks like someone (like many before) has accidentally created a file with control characters in its name. you might get a clue by using a hexeditor or od(1) on ls's output.


  • 4.  Re: RINT for a file

    Posted Fri December 17, 2010 01:37 AM

    Originally posted by: big


    thank you.

    Can you please explain :"od(1) on ls's output" ??

    How to get read of RINT and how to find the good file ?

    Regards.


  • 5.  Re: RINT for a file

    Posted Wed December 22, 2010 05:17 PM

    Originally posted by: Runevitki


    There should also be an option to ls to display non-printable characters, -b

    except from ls man page

    -b Displays nonprintable characters in an octal (\nnn) notation.

    Try ls -b in the directory those database files are in and see if there are non-printable characters..


  • 6.  Re: RINT for a file

    Posted Thu December 23, 2010 09:14 AM

    Originally posted by: big


    Thank you.
    I have something like this :
    ls -lb
    -rwx------ 1 oracle dba 1263 Dec 16 10:44 initMYDB.ora\033[D\033[D\033[D\033[D\033[D\033[D\033[Dx\033[DINT\033[C\033[C\033[C
    But I can not delete :
    rm: initMYDB.ora033[D033[D033[D033[D033[D033[D033[Dx033[DINT033[C033[C033[C: No such file or directory
    How can I get rid of this file ??

    Regards.


  • 7.  Re: RINT for a file

    Posted Thu December 23, 2010 12:50 PM

    Originally posted by: SystemAdmin


    Hi

    With the inode number
    verification by
    find . -inum 69231 -exec ls -lia {} \;
    and if correct
    find . -inum 69231 -exec rm {} \;

    best regards

    rw


  • 8.  Re: RINT for a file

    Posted Sun December 26, 2010 01:21 PM

    Originally posted by: ColombianJoker


    Be sure to add the -xdev option to your find command. It is very probable and possible to have another file in another file system with same inode number and you will erase that file too.
    Thus, use find ... -exec rm {} \; -xdev
    The -xdev option prevents the find command to navigate to a different file system.