Softlink Issue

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Softlink Issue
# 1  
Old 09-21-2011
Softlink Issue


We have a directory /oracle/UD1/sapdata1,since sapdata1 had no space we created a directory under /oracle/UD1/orarch/sapdata1 and soft linked /oracle/UD1/sapdata1 to /oracle/UD1/orarch/sapdata1 . Is there any way I can see if the files are being actually written to /oracle/UD1/orarch/sapdata1 or to /oracle/UD1/sapdata1,since I can see file under both the directory.

# 2  
Old 09-21-2011
And of course you moved the content of /oracle/UD1/sapdata1 to /oracle/UD1/orarch/sapdata1, renamed /oracle/UD1/sapdata1 to e.g. /oracle/UD1/sapdata1_4_history in order to create your link to /oracle/UD1/orarch/sapdata1

So now in /oracle/UD1/ you have a link called sapdata1, and you can [code] cd sapdata1
# 3  
Old 09-21-2011

I am not aware,some one else has done it in the past,Is there any way to check if the files under sapdata1 is being written to /oracle/UD1/sapdata1 or /oracle/UD1/orarch/sapdata1? when I do ls -l on /oracle/UD1 the output is

lrwxrwxrwx 1 oraud1 dba 28 Oct 29 2010 sapdata2 -> /oracle/UD1/oraarch/sapdata2

---------- Post updated at 08:16 AM ---------- Previous update was at 08:14 AM ----------

Please ignore my earlier comment.the out put is

lrwxrwxrwx 1 oraud1 dba 28 Oct 29 2010 sapdata1 -> /oracle/UD1/oraarch/sapdata1
# 4  
Old 09-21-2011
Did you try from /oracle/UD1 to
cd sapdata1

What do you see?

Last edited by vbe; 09-21-2011 at 10:19 AM.. Reason: taking account of last modif...
# 5  
Old 09-22-2011
buddy1 how did you "see file under both the directory"? Did you do something like this:
ls -l /oracle/UD1/sapdata1/
ls -l /oracle/UD1/orarch/sapdata1/

Actually those commands show you the physically same files.
This looks like an SAP-system running against an Oracle-database. The best way to check what files are actually used is within those applications. I do not remember the exact SAP-transactioncode (maybe db03) but the commandline-tools brtools or sapdba should be able to tell you what datafiles your DB uses. Alternatively you can directly connect to the database and query its data-dictionary (the dba_data_files view holds this information).
As a final note: putting archivelogs and datafiles into the same filesystem is usually not recommended (given your database is in archivelog-mode).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Softlink problem

Hi there is a file 'linkk' and i have created a softlink for it in another directory. $ pwd /home/guest/khare $ ln -s linkk /home/guest/khare/AWK/done now under AWk dir i can see that the softlink is created. $ pwd /home/guest/khare/AWK $ ls -lrt *done lrwxr-xr-x 1 khare... (2 Replies)
Discussion started by: scriptor
2 Replies

2. Shell Programming and Scripting

Variable value substitution issue with awk command issue

Hi All, I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command. The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies

3. Shell Programming and Scripting

Softlink directory name not working on SUN

I am facing a peculiar problem on SUN machine. There is a soft link pointing to a directory. And there is a shell script inside this soft link which is trying to get the directory name from where this script is being executed. NAME="$(cd $(dirname $0); pwd)" I want to fetch the... (1 Reply)
Discussion started by: Tirthankar
1 Replies

4. Shell Programming and Scripting

Need assistance with a file issue and a terminal issue

Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies

5. UNIX for Dummies Questions & Answers

How to identify a link whether it is a Hardlink or Softlink

i am new to UNIX environment please tell me how to identify a link whether it is a Hardlink or Softlink ? what is the command? thank you all .......:o:o (2 Replies)
Discussion started by: sasith90
2 Replies

6. UNIX for Dummies Questions & Answers


In LINUX(CentOS, RedHat) is there a way to have the banner statement appear before the logon instead of after the logon? In UNIX and Windows the banner appears before a person actually logs on, what I'm seeing in LINUX is that it appears after the login(ftp, telnet, SSH). Thanks (0 Replies)
Discussion started by: ejjones
0 Replies

7. Shell Programming and Scripting

hi all please help me in this issue.

Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once agian.I want a shell script for this.Please help me... (10 Replies)
Discussion started by: bhas85
10 Replies

8. Solaris

solaris 10- cant create softlink

bash-3.00# ln -s /lib /usr/lib ln: cannot create /usr/lib/lib: File exists bash-3.00# (4 Replies)
Discussion started by: incredible
4 Replies

9. Shell Programming and Scripting

Unix Arithmatic operation issue , datatype issue

Hi, I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ). Eg: 0000001 0000220 0001235 0000022 0000023 ........... ......... ........ Like this i am having around 1500000 records. After adding... (23 Replies)
Discussion started by: thambi
23 Replies

10. UNIX for Dummies Questions & Answers

Questions on PATH env havinf softlink

I have a question regarding the PATH environment on SunOS. I am setting the PATH as - export PATH=$PATH:/bin and /bin has a softlink as lrwxrwxrwx 1 root root 9 Oct 1 2004 /bin -> ./usr/bin So, will this path will work for the bin having the softlink? Thanks for... (1 Reply)
Discussion started by: xgr3
1 Replies
Login or Register to Ask a Question

Featured Tech Videos