run script through terminal


 
Thread Tools Search this Thread
Operating Systems Linux run script through terminal
# 1  
Old 05-22-2007
run script through terminal

for all friends

i am using linux enterprise 4. i installed oracle 10g
in user name oracle.at the end of install i got a pop up window
saying that u should run the following scripts(root.sh,orainstRoot.sh) in terminal from root account(cui) without log out oracle account .
how i can run these scrips through terminal for my oracle set up
keeping oracle account as log on(gui)

pls anybody help me
# 2  
Old 05-22-2007
- Just use "su -" (or simply "su" if you want oracle's environment) and "logout" when you finish.
- use su - -c "whatever" (or su -c "whatever").
- Open another terminal.
# 3  
Old 05-23-2007
path name of local bin directory

i run the scrpt root.sh as
su root root.sh i got one message
the following environment variable are set

ORACLE_OWNER=oracle
ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory


here what i can enter ( i can enter /home/oracle/oracle/product/10.2.0/db_1)

or ineed to use another one ? or i can leave

ur valuable advise is highly appreciated
# 4  
Old 05-23-2007
I think it's asking you about the place where you want oracle's binary files to be copyed... You may enter a directory that is already in your PATH variable (/usr/local/bin or whatver)...
# 5  
Old 05-24-2007
afer restart not loggin to oracle

to all friends

i entered the correct path , and i got installation successfully finished.

thanks a lot who helped me.

i can login to oracle through http://localhost.localdomain:1158/em

successfully i login through mozilla.i created table i can insert data

and i can list it. no problem working properly

but after i restrat i can't login. i got one alert message

the connection was refused when attempting to contact localhost.localdomain:1158/em

pls how i can login ?

also from where i get the option sqlplus.

in terminal sqlplus is not getting( from where i get sqlplus>

option like 8i,9i or 10g in windows)

awaiting your valuable advise

sadique
# 6  
Old 09-24-2008
Tools Solve this problem

First u will go to the root user. And then just u put in a

root@192:~]/opt/..../root.sh
then just u ender automatically run the script
root@192:~]/opt/..../orainstRoot.sh
then just u ender automatically run the script
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to run a shell script in background without showing in the terminal?

Hi Guys, i am having a script which checks for ip address is pingable or not,when i execute this script in terminal it keeps on showing the pinging status of every ip address and it takes more time when i check for 100 ip address,How to do run a script in background without showing in the terminal... (4 Replies)
Discussion started by: Meeran Rizvi
4 Replies

2. Shell Programming and Scripting

Run script in new terminal

Hi Guys, I have a script that runs certain simulations in batch mode. I need to schedule some simulations to run over night. For each simulation to complete it should be run in separate terminal. My script is as follows sh run_test.sh <arg1> <arg2> <arg3> ... I need to launch this... (5 Replies)
Discussion started by: aelhosiny
5 Replies

3. Shell Programming and Scripting

Open gnome-terminal with multi tabs and automatically run a script in each tab

Hi All , i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab i am using csh , tried this command gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4" it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies

4. Shell Programming and Scripting

Problem run script inside a gnome-terminal

hi, I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for... (11 Replies)
Discussion started by: jao_madn
11 Replies

5. Linux

How to open a gnome-terminal in specific workspace and run script within it automatically upon login

OK this is a bit messy. I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next... (2 Replies)
Discussion started by: Bashingaway
2 Replies

6. UNIX for Dummies Questions & Answers

Script to run a command in a new terminal

Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Discussion started by: sojo1024
1 Replies

7. Shell Programming and Scripting

Run bash script without terminal

How can I make a bash script that keeps on running after I have closed the terminal? Or a script that runs without having the terminal window open? (1 Reply)
Discussion started by: locoroco
1 Replies

8. UNIX for Dummies Questions & Answers

Script run everytime a new terminal window is opened

I created a script called title #!/bin/sh echo "^0;$*^G" It will change the terminal window titlebar to what ever I type after the script (title BIG would change titlebar to BIG instead of terminal) Is there a way to make it run so it will work on every terminal window that gets opened.... (1 Reply)
Discussion started by: amason0508
1 Replies

9. Shell Programming and Scripting

open terminal to run cmd using shell script

i want the shell script to open the terminal and in that terminal i want to run a command specified in the script... how can it be done... (2 Replies)
Discussion started by: chandrabhushan
2 Replies

10. UNIX for Dummies Questions & Answers

Run the start script from the terminal? Newbie Time!

Hi, How do I "run a script"? I'm trying to start up some software called ElectroServer 3, and was told I just needed to "run the start script from the terminal to get things going". From the terminal, i use cd command to change to the software's directory, and I guess the script in question is... (4 Replies)
Discussion started by: waking_bear
4 Replies
Login or Register to Ask a Question