[20171120] About find soft connection question. txt, 20171120.txt
[20171120] find soft connection question .txt
-- // In order to test the oracle parameter filesystemio_options, the database was moved once last week. However, when I used find to query the soft link directory
-- // Make a record for some problems
1. Create a soft link:
$ Cp-a/mnt/ramdisk/book/home/oracle/backup/
$ Cd/mnt/ramdisk
$ Mv book book_00001117
$ Ln-s/home/oracle/backup/book
-- // In this way, a soft link is established to access the file in/mnt/ramdisk/book to actually access the file in the/home/oracle/backup/book directory.
$ Ls-l
Total 0
Lrwxrwxrwx 1 oracle oinstall 24 15:07:33 book->/home/oracle/backup/book
Drwxr-xr-x 2 oracle oinstall 360 11:42:51 book_20171117
2. Use find.
$ Find/mnt/ramdisk/book-name "*. *"-print
-- // No output.
$ Find/mnt/ramdisk/book_00001117-name "*. *"-print | head-2
/Mnt/ramdisk/book_20171117/sysaux01.dbf
/Mnt/ramdisk/book_20171117/tea01.dbf
-- // Directly query the/mnt/ramdisk/book_20171117 directory and the output is normal.
-- // The difference is only one directory, and one is soft link. Information is displayed for the same query I made earlier. Why not? I only use soft links to modify the book directory.
-- // The modification is as follows, and the result is normal. Add a slash (/) to the end of the book, and the execution is normal.
$ Find/mnt/ramdisk/book/-name "*. *"-print | head-2
/Mnt/ramdisk/book/redo03.log
/Mnt/ramdisk/book/system01.dbf
-- // This is an episode that wastes a little time and makes a record. Pay attention to the soft link access problem of the find command in the next work.