Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9002609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:35:36+00:00 2026-06-16T00:35:36+00:00

i am new to shell script. i have a Oracle server which is remote

  • 0

i am new to shell script. i have a Oracle server which is remote say “Oracle1” and listening to port 1521 i am trying to remotely connect to it through shell script. i am facing some issue in setting environment variables. my script is.

ORACLE_SID=wctest98;
export ORACLE_SID
ORACLE_HOME=Oracle1.com:1521/opt/oracle/oracle11g/product/11.2.0;
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH;
export PATH
SQLPATH=$ORACLE_HOME/sqlplus/admin;
export SQLPATH

sqlplus -s /NOLOG << EOF
connect wcadmin/wcadmin@Oracle1.com:1521/wctest98
select * from dual;
exit

EOF

i am getting “sqlplus: not found” error. i am doing it for the first time. i have connected to local Oracle System but not to remote server. feel free to edit…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:35:37+00:00Added an answer on June 16, 2026 at 12:35 am

    Your ORACLE_HOME (below) looks incorrect to me. It should not contain the host and port of your oracle server.

    ORACLE_HOME=Oracle1.com:1521/opt/oracle/oracle11g/product/11.2.0/bin;
    

    ORACLE_HOME is the path to wherever you have installed the Oracle client on the local machine. For example, it might be:

    ORACLE_HOME=/opt/oracle/oracle11g/product/11.2.0
    

    Check if you have the sqplus executable in ${ORACLE_HOME}/bin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a shell script run.sh which is executing a jar file. #!/bin/bash $JAVA_HOME/bin/java
I have shell scripting knowledge. I have written a small shell script which will
I have a simple shell script which looks like this: R --vanilla<myMRjob.R hadoop fs
I have a simple perl script that calls a shell script which always hangs
I have a shell script which I'd like to trigger from a J2EE web
I am new to Shell script. Just have a small question about some script
I am trying write a shell script that does the following: Checks the remote
I have seen below two lines in a shell script. Im new to unix
I have a shell script which contains the following: case $1 in 0 )
I have a java program which is supposed to launch a shell script. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.