LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2005, 05:00 AM   #1
sathyguy
Member
 
Registered: Sep 2005
Location: Indian Working in Saudi Arabia
Distribution: Redhat Linux AS 3.0
Posts: 93

Rep: Reputation: 15
File is missing after rebooting the PC


Friends,

I have installed oracle 9i.
When ever I am trying to connect sqlplus. i am getting a shared memory error.
For that what i will do is.....

I will copy the below file from this location

/u01/app/oracle/product/9.2.0.1.0/dbs/init.ora

And i will paste the file in the below location.

/u01/app/oracle/admin/sudhakar/pfile/init.ora

then i can connect to sqlplus. But when i restart my pc the file from the below location is missing how come? I want this file to be in this location always.....

/u01/app/oracle/admin/sudhakar/pfile/init.ora

Thanks
SathyGuy
 
Old 11-23-2005, 01:10 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I don't know why the file is not there after being copied.

My suggestion: try creating a symlink.

From the command line:

ln -s /u01/app/oracle/product/9.2.0.1.0/dbs/init.ora /u01/app/oracle/admin/sudhakar/pfile/init.ora.

Try this BEFORE coping the files. See if Oracle works with the symlink.

However, if the problem still remains after creating a symlink (the symlink is also lost, just as the copied file), you could also write a simple bash script and add its name to your /etc/boot.local file of things to do when booting up.

If Oracle works with the symlink, then try this: create a bash script with this content. Give the file a name. Make it executable. Put it in /etc.

#!/bin/bash
ln -s /u01/app/oracle/product/9.2.0.1.0/dbs/init.ora /u01/app/oracle/admin/sudhakar/pfile/init.ora

and let bash create the symlink while booting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing File Soulful93 Slackware 1 05-13-2005 02:59 AM
MIssing file xlord Linux - Newbie 4 05-17-2004 09:20 AM
Yum Update complains of missing file to do update, but file exists! davidas Linux - Newbie 0 03-28-2004 12:14 PM
Yum update complains missing file (broken dep), but file can be located. davidas Linux - Software 0 03-27-2004 10:11 PM
missing file xquizit Linux - Newbie 7 04-19-2003 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration