07-17-2010
I am able to solve it by myself..........
I was using export ORACLE_SID statement at the wrong place...
It should have been after i call . /opt/bin/oraenv
like below....
ORACLE_SID = “Y”;
ORAENV_ASK="NO"
. /opt/bin/oraenv
export ORACLE_SID
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I am new to linux and also also to shell scripting.
I have one shell script which unpacks .tgz file and install software on machine.
When this script runs I want to insert id,filename,description(which will be in readme file),log(which will be in log file) and name of unpacked folder... (1 Reply)
Discussion started by: ring
1 Replies
2. Shell Programming and Scripting
Hi
when i am calling the shell script with two parameter like id and date it works fine.But the same shell script is call by java application it gives the error as shown below
Thu Jan 8 04:13:22 EST 2009|The Get Segment Process Failed: SP2-0306:
Invalid option.
Usage: CONN where <logon>... (1 Reply)
Discussion started by: ravi214u
1 Replies
3. Programming
Hi All,
I have to perform some tasks for database maintainace. I am using postgresql on RHEL 4.4.
1) I have to run "vacuumedb" on the database as postgres user.
2) I have to reindex the database as postgres user.
Now i want to write shell script to do these tasks one... (3 Replies)
Discussion started by: ashokkumar.p
3 Replies
4. Shell Programming and Scripting
Hi Experts,
I'm trying to write a shell script to stop few things where i have to use another user to execute a command. Otherwise it will not work.
Your help is really appreciated
Thanks, (16 Replies)
Discussion started by: Afi_Linux
16 Replies
5. Shell Programming and Scripting
Hi,
I am trying to create one script where I have to login as another user inside the script to exeute some commands
How can i achieve this?
Many thanks in advance. (4 Replies)
Discussion started by: prarat
4 Replies
6. Shell Programming and Scripting
Hi,
script1.sh
script2.sh
script3.sh
From above, script1.sh is the main script which is executed from root user, creates installation directory, changing ownership and execution rights etc..etc.. and finally calls scripot2.sh and script3.sh to create the database as well as for post... (1 Reply)
Discussion started by: milink
1 Replies
7. UNIX for Advanced & Expert Users
I need a script to change server automatically after performing some operations.
The command for changing server is ssh username@servername . Then a prompt comes to enter a password. Then i need to perform some opertaions on the other server. How can i do this in a script? (1 Reply)
Discussion started by: pratikm23
1 Replies
8. UNIX for Dummies Questions & Answers
hi,
i want to execute a shell script as a different user. the flow is like this.
there is a html web page from which i have to call a shell script. web server is apache. to call the shell script from html page, a perl script is required.
so the html page calls the perl script and the perl... (2 Replies)
Discussion started by: Little
2 Replies
9. Shell Programming and Scripting
Hello all I am writing a shell script for unix, and I am trying to get it to ask me if instances are stopped, and then if the version of java running is correct, if not I want it to ask me to switch to the other bit version. I am newish to shell and not clear on how to to input prompts for yes/no... (3 Replies)
Discussion started by: bigbenn
3 Replies
10. UNIX for Beginners Questions & Answers
HI
in a server we can't login with root user directly but i can login with different user and then i can switch to root user by su command
Requirement
is there anyway where i can write a script without mentioning password in file as mentioning the root password is not the... (3 Replies)
Discussion started by: scriptor
3 Replies
LEARN ABOUT SUNOS
soldelapp
soldelapp(1M) System Administration Commands soldelapp(1M)
NAME
soldelapp - remove an application from the Solstice application registry
SYNOPSIS
/usr/snadm/bin/soldelapp [-r registry] -n name
DESCRIPTION
soldelapp removes an application from the Solstice application registry. After removal, the application is no longer displayed in the Sol-
stice Launcher main window (see solstice(1M)).
OPTIONS
-r registry Define the full path name of the Solstice registry file.
-n name Define the name of the tool to be removed.
When executed without options, soldelapp uses /opt/SUNWadm/etc/.solstice_registry (the default registry path).
RETURN VALUES
0 on success
1 on failure
2 if the registry is locked
3 if name is not found in the registry
4 if the named registry or default registry is not found
EXAMPLES
Example 1: A sample display of the soldelapp command.
The following removes an application called Disk Manager from the Solstice application registry and the Solstice Launcher main window.
# soldelapp -r /opt/SUNWadm/etc/.solstice_registry -n "Disk Manager"
FILES
/opt/SUNWadm/etc/.solstice_registry The default registry file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsadml |
+-----------------------------+-----------------------------+
SEE ALSO
soladdapp(1M), solstice(1M), attributes(5)
NOTES
Globally registered applications are used by local and remote users sharing the software in a particular /opt directory. They can be
removed only using soldelapp.
SunOS 5.10 15 Sep 1995 soldelapp(1M)