How to install SqlPlus?











up vote
16
down vote

favorite
15












I tried installing sqlplus by following the instruction from here. I'm still getting :



sqlplus: command not found


when I do sqlplus from my terminal.



I'm an novice in Ubuntu and I use Ubuntu 12.04.










share|improve this question
























  • I think you need to run the alien -i commands with sudo: sudo alien -i
    – Savvas Radevic
    Jul 5 '12 at 12:01















up vote
16
down vote

favorite
15












I tried installing sqlplus by following the instruction from here. I'm still getting :



sqlplus: command not found


when I do sqlplus from my terminal.



I'm an novice in Ubuntu and I use Ubuntu 12.04.










share|improve this question
























  • I think you need to run the alien -i commands with sudo: sudo alien -i
    – Savvas Radevic
    Jul 5 '12 at 12:01













up vote
16
down vote

favorite
15









up vote
16
down vote

favorite
15






15





I tried installing sqlplus by following the instruction from here. I'm still getting :



sqlplus: command not found


when I do sqlplus from my terminal.



I'm an novice in Ubuntu and I use Ubuntu 12.04.










share|improve this question















I tried installing sqlplus by following the instruction from here. I'm still getting :



sqlplus: command not found


when I do sqlplus from my terminal.



I'm an novice in Ubuntu and I use Ubuntu 12.04.







installation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 26 '12 at 16:08









Jorge Castro

35.4k105422617




35.4k105422617










asked Jul 5 '12 at 11:55









Ant's

1,646102947




1,646102947












  • I think you need to run the alien -i commands with sudo: sudo alien -i
    – Savvas Radevic
    Jul 5 '12 at 12:01


















  • I think you need to run the alien -i commands with sudo: sudo alien -i
    – Savvas Radevic
    Jul 5 '12 at 12:01
















I think you need to run the alien -i commands with sudo: sudo alien -i
– Savvas Radevic
Jul 5 '12 at 12:01




I think you need to run the alien -i commands with sudo: sudo alien -i
– Savvas Radevic
Jul 5 '12 at 12:01










4 Answers
4






active

oldest

votes

















up vote
20
down vote













First of all you need to download Instant Client Downloads. Install alien package so you can install rpm packages by typing following command in terminal.



sudo apt-get install alien


Once that is done, go to the folder where the rpm files are located and execute the following:



sudo alien -i oracle-instantclient*-basic*.rpm
sudo alien -i oracle-instantclient*-sqlplus*.rpm
sudo alien -i oracle-instantclient*-devel*.rpm


You need to install libaio.so. Type following command to do it:



sudo apt-get install libaio1


Create Oracle configuration file:



sudo sensible-editor /etc/ld.so.conf.d/oracle.conf


Put this line in that file:



/usr/lib/oracle/<your version>/client/lib/ 


Note - for 64-bit installations, the path will be:



/usr/lib/oracle/<your version>/client64/lib/ 


Update the configuration by running following command:



sudo ldconfig


Try to connect using:



sqlplus username/password@//dbhost:1521/SID


or:



sqlplus testuser/password


Note that if you installed the 64-bit version, the client is called sqlplus64.






share|improve this answer























  • Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
    – lonstar
    Feb 7 '13 at 23:04






  • 1




    ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
    – lonstar
    Feb 7 '13 at 23:08






  • 4




    ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
    – lonstar
    Feb 7 '13 at 23:13








  • 3




    @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
    – Sabyasachi
    Aug 30 '14 at 8:30










  • They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
    – masterxilo
    Nov 22 at 16:51


















up vote
2
down vote













The alien thing didn't work because of:



Error: cannot open Name index using db5 - Permission denied (13)


So I went with the easy solution: Download the zip files from Oracle (basic and sqlplus), extract them, and put the folder where you put program files (e.g. /usr/share). Then create a script that runs the executable after setting the LD_LIBRARY_PATH variable, so that libraries are found:



#!/bin/bash
DIR=/usr/share/instantclient_12_2 # <------- adjust this to the path you use
export LD_LIBRARY_PATH="$DIR"
"$DIR"/sqlplus "$@"


Call it sqlplus, make it executable (chmod 755 sqlplus) and put it into a directory on your PATH (e.g. /usr/bin/), so that bash finds it.



Run it like



sqlplus user/password@host:port/service


If you get



error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


install the library with sudo apt-get install libaio1






share|improve this answer






























    up vote
    1
    down vote













    I think this link would help. It is pretty descriptive. Make sure you follow all the steps. Still if you have any problems, don't hesitate to comment.






    share|improve this answer



















    • 6




      Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
      – Eliah Kagan
      Jul 5 '12 at 12:17












    • That what even I have done.. But it doesn't seem to be working.!
      – Ant's
      Jul 5 '12 at 12:41










    • I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
      – Vinit Kumar
      Jul 5 '12 at 14:38






    • 1




      @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
      – Savvas Radevic
      Jul 5 '12 at 22:12




















    up vote
    0
    down vote













    Of course the correct installation is from official packages like above (download Instant Client Downloads), but you can get a full working sqlplus just by copying these files (you can found it in any computer with oracle client installed), and some msb are optitional:



    ./sqlplus
    ./sqlplus/mesg
    ./sqlplus/mesg/sp1zhs.msb
    ./sqlplus/mesg/sp2zhs.msb
    ./sqlplus/mesg/sp2ptb.msb
    ./sqlplus/mesg/sp2us.msb
    ./sqlplus/mesg/sp1us.msb
    ./sqlplus/mesg/sp1ptb.msb
    ./sqlplus/mesg/cpyja.msb
    ./sqlplus/mesg/sp1ja.msb
    ./sqlplus/mesg/cpyus.msb
    ./sqlplus/mesg/cpyzhs.msb
    ./sqlplus/mesg/cpyptb.msb
    ./sqlplus/mesg/sp2ja.msb
    ./sqlplus/sqlplus
    ./README
    ./lib
    ./lib/libaio.so.1
    ./lib/libclntsh.so.11.1
    ./lib/libsqlplus.so
    ./lib/libnnz11.so
    ./lib/libociei.so


    As aditional dependency, I did include libaio.so - it can be installed with sudo apt-get install libaio1



    So, a sample use can be:



    cd <PATH_OF_FILES>
    ORACLE_HOME=$PWD LD_LIBRARY_PATH=$PWD/lib ./sqlplus/sqlplus user/pw@server:PORT/





    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f159939%2fhow-to-install-sqlplus%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      20
      down vote













      First of all you need to download Instant Client Downloads. Install alien package so you can install rpm packages by typing following command in terminal.



      sudo apt-get install alien


      Once that is done, go to the folder where the rpm files are located and execute the following:



      sudo alien -i oracle-instantclient*-basic*.rpm
      sudo alien -i oracle-instantclient*-sqlplus*.rpm
      sudo alien -i oracle-instantclient*-devel*.rpm


      You need to install libaio.so. Type following command to do it:



      sudo apt-get install libaio1


      Create Oracle configuration file:



      sudo sensible-editor /etc/ld.so.conf.d/oracle.conf


      Put this line in that file:



      /usr/lib/oracle/<your version>/client/lib/ 


      Note - for 64-bit installations, the path will be:



      /usr/lib/oracle/<your version>/client64/lib/ 


      Update the configuration by running following command:



      sudo ldconfig


      Try to connect using:



      sqlplus username/password@//dbhost:1521/SID


      or:



      sqlplus testuser/password


      Note that if you installed the 64-bit version, the client is called sqlplus64.






      share|improve this answer























      • Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
        – lonstar
        Feb 7 '13 at 23:04






      • 1




        ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
        – lonstar
        Feb 7 '13 at 23:08






      • 4




        ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
        – lonstar
        Feb 7 '13 at 23:13








      • 3




        @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
        – Sabyasachi
        Aug 30 '14 at 8:30










      • They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
        – masterxilo
        Nov 22 at 16:51















      up vote
      20
      down vote













      First of all you need to download Instant Client Downloads. Install alien package so you can install rpm packages by typing following command in terminal.



      sudo apt-get install alien


      Once that is done, go to the folder where the rpm files are located and execute the following:



      sudo alien -i oracle-instantclient*-basic*.rpm
      sudo alien -i oracle-instantclient*-sqlplus*.rpm
      sudo alien -i oracle-instantclient*-devel*.rpm


      You need to install libaio.so. Type following command to do it:



      sudo apt-get install libaio1


      Create Oracle configuration file:



      sudo sensible-editor /etc/ld.so.conf.d/oracle.conf


      Put this line in that file:



      /usr/lib/oracle/<your version>/client/lib/ 


      Note - for 64-bit installations, the path will be:



      /usr/lib/oracle/<your version>/client64/lib/ 


      Update the configuration by running following command:



      sudo ldconfig


      Try to connect using:



      sqlplus username/password@//dbhost:1521/SID


      or:



      sqlplus testuser/password


      Note that if you installed the 64-bit version, the client is called sqlplus64.






      share|improve this answer























      • Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
        – lonstar
        Feb 7 '13 at 23:04






      • 1




        ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
        – lonstar
        Feb 7 '13 at 23:08






      • 4




        ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
        – lonstar
        Feb 7 '13 at 23:13








      • 3




        @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
        – Sabyasachi
        Aug 30 '14 at 8:30










      • They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
        – masterxilo
        Nov 22 at 16:51













      up vote
      20
      down vote










      up vote
      20
      down vote









      First of all you need to download Instant Client Downloads. Install alien package so you can install rpm packages by typing following command in terminal.



      sudo apt-get install alien


      Once that is done, go to the folder where the rpm files are located and execute the following:



      sudo alien -i oracle-instantclient*-basic*.rpm
      sudo alien -i oracle-instantclient*-sqlplus*.rpm
      sudo alien -i oracle-instantclient*-devel*.rpm


      You need to install libaio.so. Type following command to do it:



      sudo apt-get install libaio1


      Create Oracle configuration file:



      sudo sensible-editor /etc/ld.so.conf.d/oracle.conf


      Put this line in that file:



      /usr/lib/oracle/<your version>/client/lib/ 


      Note - for 64-bit installations, the path will be:



      /usr/lib/oracle/<your version>/client64/lib/ 


      Update the configuration by running following command:



      sudo ldconfig


      Try to connect using:



      sqlplus username/password@//dbhost:1521/SID


      or:



      sqlplus testuser/password


      Note that if you installed the 64-bit version, the client is called sqlplus64.






      share|improve this answer














      First of all you need to download Instant Client Downloads. Install alien package so you can install rpm packages by typing following command in terminal.



      sudo apt-get install alien


      Once that is done, go to the folder where the rpm files are located and execute the following:



      sudo alien -i oracle-instantclient*-basic*.rpm
      sudo alien -i oracle-instantclient*-sqlplus*.rpm
      sudo alien -i oracle-instantclient*-devel*.rpm


      You need to install libaio.so. Type following command to do it:



      sudo apt-get install libaio1


      Create Oracle configuration file:



      sudo sensible-editor /etc/ld.so.conf.d/oracle.conf


      Put this line in that file:



      /usr/lib/oracle/<your version>/client/lib/ 


      Note - for 64-bit installations, the path will be:



      /usr/lib/oracle/<your version>/client64/lib/ 


      Update the configuration by running following command:



      sudo ldconfig


      Try to connect using:



      sqlplus username/password@//dbhost:1521/SID


      or:



      sqlplus testuser/password


      Note that if you installed the 64-bit version, the client is called sqlplus64.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 22 at 19:55

























      answered Oct 27 '12 at 12:10









      Ketan Patel

      9,96094365




      9,96094365












      • Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
        – lonstar
        Feb 7 '13 at 23:04






      • 1




        ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
        – lonstar
        Feb 7 '13 at 23:08






      • 4




        ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
        – lonstar
        Feb 7 '13 at 23:13








      • 3




        @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
        – Sabyasachi
        Aug 30 '14 at 8:30










      • They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
        – masterxilo
        Nov 22 at 16:51


















      • Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
        – lonstar
        Feb 7 '13 at 23:04






      • 1




        ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
        – lonstar
        Feb 7 '13 at 23:08






      • 4




        ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
        – lonstar
        Feb 7 '13 at 23:13








      • 3




        @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
        – Sabyasachi
        Aug 30 '14 at 8:30










      • They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
        – masterxilo
        Nov 22 at 16:51
















      Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
      – lonstar
      Feb 7 '13 at 23:04




      Thanks for the details. It helped me get the installation completed, especially the part about installing the lib.
      – lonstar
      Feb 7 '13 at 23:04




      1




      1




      ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
      – lonstar
      Feb 7 '13 at 23:08




      ...until I tried to run sqlplus testuser/password and got "sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory"
      – lonstar
      Feb 7 '13 at 23:08




      4




      4




      ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
      – lonstar
      Feb 7 '13 at 23:13






      ...and it was because I just touched the oracle.conf file and it turns out you need to add this to it: /usr/lib/oracle/11.2/client/lib/ (make sure to check that you actually have that path, and thanks to marcelozambranav.blogspot.com/2012/08/…). Once I did that, all was well.
      – lonstar
      Feb 7 '13 at 23:13






      3




      3




      @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
      – Sabyasachi
      Aug 30 '14 at 8:30




      @K .K Patel I followed your instructions but after typing sqlplus in command line, it prompts to enter a username and password. And i do not know the username and password. What should i do?
      – Sabyasachi
      Aug 30 '14 at 8:30












      They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
      – masterxilo
      Nov 22 at 16:51




      They have oracle-instantclient* basic,devel,jdbc,odbc,sqlplus,tools,basiclite. Can't I just install the sqlplus one and be done with it?
      – masterxilo
      Nov 22 at 16:51












      up vote
      2
      down vote













      The alien thing didn't work because of:



      Error: cannot open Name index using db5 - Permission denied (13)


      So I went with the easy solution: Download the zip files from Oracle (basic and sqlplus), extract them, and put the folder where you put program files (e.g. /usr/share). Then create a script that runs the executable after setting the LD_LIBRARY_PATH variable, so that libraries are found:



      #!/bin/bash
      DIR=/usr/share/instantclient_12_2 # <------- adjust this to the path you use
      export LD_LIBRARY_PATH="$DIR"
      "$DIR"/sqlplus "$@"


      Call it sqlplus, make it executable (chmod 755 sqlplus) and put it into a directory on your PATH (e.g. /usr/bin/), so that bash finds it.



      Run it like



      sqlplus user/password@host:port/service


      If you get



      error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


      install the library with sudo apt-get install libaio1






      share|improve this answer



























        up vote
        2
        down vote













        The alien thing didn't work because of:



        Error: cannot open Name index using db5 - Permission denied (13)


        So I went with the easy solution: Download the zip files from Oracle (basic and sqlplus), extract them, and put the folder where you put program files (e.g. /usr/share). Then create a script that runs the executable after setting the LD_LIBRARY_PATH variable, so that libraries are found:



        #!/bin/bash
        DIR=/usr/share/instantclient_12_2 # <------- adjust this to the path you use
        export LD_LIBRARY_PATH="$DIR"
        "$DIR"/sqlplus "$@"


        Call it sqlplus, make it executable (chmod 755 sqlplus) and put it into a directory on your PATH (e.g. /usr/bin/), so that bash finds it.



        Run it like



        sqlplus user/password@host:port/service


        If you get



        error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


        install the library with sudo apt-get install libaio1






        share|improve this answer

























          up vote
          2
          down vote










          up vote
          2
          down vote









          The alien thing didn't work because of:



          Error: cannot open Name index using db5 - Permission denied (13)


          So I went with the easy solution: Download the zip files from Oracle (basic and sqlplus), extract them, and put the folder where you put program files (e.g. /usr/share). Then create a script that runs the executable after setting the LD_LIBRARY_PATH variable, so that libraries are found:



          #!/bin/bash
          DIR=/usr/share/instantclient_12_2 # <------- adjust this to the path you use
          export LD_LIBRARY_PATH="$DIR"
          "$DIR"/sqlplus "$@"


          Call it sqlplus, make it executable (chmod 755 sqlplus) and put it into a directory on your PATH (e.g. /usr/bin/), so that bash finds it.



          Run it like



          sqlplus user/password@host:port/service


          If you get



          error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


          install the library with sudo apt-get install libaio1






          share|improve this answer














          The alien thing didn't work because of:



          Error: cannot open Name index using db5 - Permission denied (13)


          So I went with the easy solution: Download the zip files from Oracle (basic and sqlplus), extract them, and put the folder where you put program files (e.g. /usr/share). Then create a script that runs the executable after setting the LD_LIBRARY_PATH variable, so that libraries are found:



          #!/bin/bash
          DIR=/usr/share/instantclient_12_2 # <------- adjust this to the path you use
          export LD_LIBRARY_PATH="$DIR"
          "$DIR"/sqlplus "$@"


          Call it sqlplus, make it executable (chmod 755 sqlplus) and put it into a directory on your PATH (e.g. /usr/bin/), so that bash finds it.



          Run it like



          sqlplus user/password@host:port/service


          If you get



          error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory


          install the library with sudo apt-get install libaio1







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 4 at 13:28

























          answered May 14 '17 at 16:28









          Moritz Ringler

          213




          213






















              up vote
              1
              down vote













              I think this link would help. It is pretty descriptive. Make sure you follow all the steps. Still if you have any problems, don't hesitate to comment.






              share|improve this answer



















              • 6




                Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
                – Eliah Kagan
                Jul 5 '12 at 12:17












              • That what even I have done.. But it doesn't seem to be working.!
                – Ant's
                Jul 5 '12 at 12:41










              • I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
                – Vinit Kumar
                Jul 5 '12 at 14:38






              • 1




                @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
                – Savvas Radevic
                Jul 5 '12 at 22:12

















              up vote
              1
              down vote













              I think this link would help. It is pretty descriptive. Make sure you follow all the steps. Still if you have any problems, don't hesitate to comment.






              share|improve this answer



















              • 6




                Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
                – Eliah Kagan
                Jul 5 '12 at 12:17












              • That what even I have done.. But it doesn't seem to be working.!
                – Ant's
                Jul 5 '12 at 12:41










              • I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
                – Vinit Kumar
                Jul 5 '12 at 14:38






              • 1




                @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
                – Savvas Radevic
                Jul 5 '12 at 22:12















              up vote
              1
              down vote










              up vote
              1
              down vote









              I think this link would help. It is pretty descriptive. Make sure you follow all the steps. Still if you have any problems, don't hesitate to comment.






              share|improve this answer














              I think this link would help. It is pretty descriptive. Make sure you follow all the steps. Still if you have any problems, don't hesitate to comment.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 24 '16 at 16:45









              procrastinate_later

              1033




              1033










              answered Jul 5 '12 at 12:12









              Vinit Kumar

              5282516




              5282516








              • 6




                Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
                – Eliah Kagan
                Jul 5 '12 at 12:17












              • That what even I have done.. But it doesn't seem to be working.!
                – Ant's
                Jul 5 '12 at 12:41










              • I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
                – Vinit Kumar
                Jul 5 '12 at 14:38






              • 1




                @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
                – Savvas Radevic
                Jul 5 '12 at 22:12
















              • 6




                Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
                – Eliah Kagan
                Jul 5 '12 at 12:17












              • That what even I have done.. But it doesn't seem to be working.!
                – Ant's
                Jul 5 '12 at 12:41










              • I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
                – Vinit Kumar
                Jul 5 '12 at 14:38






              • 1




                @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
                – Savvas Radevic
                Jul 5 '12 at 22:12










              6




              6




              Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
              – Eliah Kagan
              Jul 5 '12 at 12:17






              Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
              – Eliah Kagan
              Jul 5 '12 at 12:17














              That what even I have done.. But it doesn't seem to be working.!
              – Ant's
              Jul 5 '12 at 12:41




              That what even I have done.. But it doesn't seem to be working.!
              – Ant's
              Jul 5 '12 at 12:41












              I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
              – Vinit Kumar
              Jul 5 '12 at 14:38




              I found this thread unix.com/ubuntu/157848-sqlplus-command-not-found.html.Try if this would help you any better. I don't have the net speed to download it, else i would have tried it myself and give a better solution.
              – Vinit Kumar
              Jul 5 '12 at 14:38




              1




              1




              @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
              – Savvas Radevic
              Jul 5 '12 at 22:12






              @Ant's "it's not working" does not provide us with clues. Show us the output of each command. Then we'll have a general picture of what's going on and where the problem is.
              – Savvas Radevic
              Jul 5 '12 at 22:12












              up vote
              0
              down vote













              Of course the correct installation is from official packages like above (download Instant Client Downloads), but you can get a full working sqlplus just by copying these files (you can found it in any computer with oracle client installed), and some msb are optitional:



              ./sqlplus
              ./sqlplus/mesg
              ./sqlplus/mesg/sp1zhs.msb
              ./sqlplus/mesg/sp2zhs.msb
              ./sqlplus/mesg/sp2ptb.msb
              ./sqlplus/mesg/sp2us.msb
              ./sqlplus/mesg/sp1us.msb
              ./sqlplus/mesg/sp1ptb.msb
              ./sqlplus/mesg/cpyja.msb
              ./sqlplus/mesg/sp1ja.msb
              ./sqlplus/mesg/cpyus.msb
              ./sqlplus/mesg/cpyzhs.msb
              ./sqlplus/mesg/cpyptb.msb
              ./sqlplus/mesg/sp2ja.msb
              ./sqlplus/sqlplus
              ./README
              ./lib
              ./lib/libaio.so.1
              ./lib/libclntsh.so.11.1
              ./lib/libsqlplus.so
              ./lib/libnnz11.so
              ./lib/libociei.so


              As aditional dependency, I did include libaio.so - it can be installed with sudo apt-get install libaio1



              So, a sample use can be:



              cd <PATH_OF_FILES>
              ORACLE_HOME=$PWD LD_LIBRARY_PATH=$PWD/lib ./sqlplus/sqlplus user/pw@server:PORT/





              share|improve this answer

























                up vote
                0
                down vote













                Of course the correct installation is from official packages like above (download Instant Client Downloads), but you can get a full working sqlplus just by copying these files (you can found it in any computer with oracle client installed), and some msb are optitional:



                ./sqlplus
                ./sqlplus/mesg
                ./sqlplus/mesg/sp1zhs.msb
                ./sqlplus/mesg/sp2zhs.msb
                ./sqlplus/mesg/sp2ptb.msb
                ./sqlplus/mesg/sp2us.msb
                ./sqlplus/mesg/sp1us.msb
                ./sqlplus/mesg/sp1ptb.msb
                ./sqlplus/mesg/cpyja.msb
                ./sqlplus/mesg/sp1ja.msb
                ./sqlplus/mesg/cpyus.msb
                ./sqlplus/mesg/cpyzhs.msb
                ./sqlplus/mesg/cpyptb.msb
                ./sqlplus/mesg/sp2ja.msb
                ./sqlplus/sqlplus
                ./README
                ./lib
                ./lib/libaio.so.1
                ./lib/libclntsh.so.11.1
                ./lib/libsqlplus.so
                ./lib/libnnz11.so
                ./lib/libociei.so


                As aditional dependency, I did include libaio.so - it can be installed with sudo apt-get install libaio1



                So, a sample use can be:



                cd <PATH_OF_FILES>
                ORACLE_HOME=$PWD LD_LIBRARY_PATH=$PWD/lib ./sqlplus/sqlplus user/pw@server:PORT/





                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Of course the correct installation is from official packages like above (download Instant Client Downloads), but you can get a full working sqlplus just by copying these files (you can found it in any computer with oracle client installed), and some msb are optitional:



                  ./sqlplus
                  ./sqlplus/mesg
                  ./sqlplus/mesg/sp1zhs.msb
                  ./sqlplus/mesg/sp2zhs.msb
                  ./sqlplus/mesg/sp2ptb.msb
                  ./sqlplus/mesg/sp2us.msb
                  ./sqlplus/mesg/sp1us.msb
                  ./sqlplus/mesg/sp1ptb.msb
                  ./sqlplus/mesg/cpyja.msb
                  ./sqlplus/mesg/sp1ja.msb
                  ./sqlplus/mesg/cpyus.msb
                  ./sqlplus/mesg/cpyzhs.msb
                  ./sqlplus/mesg/cpyptb.msb
                  ./sqlplus/mesg/sp2ja.msb
                  ./sqlplus/sqlplus
                  ./README
                  ./lib
                  ./lib/libaio.so.1
                  ./lib/libclntsh.so.11.1
                  ./lib/libsqlplus.so
                  ./lib/libnnz11.so
                  ./lib/libociei.so


                  As aditional dependency, I did include libaio.so - it can be installed with sudo apt-get install libaio1



                  So, a sample use can be:



                  cd <PATH_OF_FILES>
                  ORACLE_HOME=$PWD LD_LIBRARY_PATH=$PWD/lib ./sqlplus/sqlplus user/pw@server:PORT/





                  share|improve this answer












                  Of course the correct installation is from official packages like above (download Instant Client Downloads), but you can get a full working sqlplus just by copying these files (you can found it in any computer with oracle client installed), and some msb are optitional:



                  ./sqlplus
                  ./sqlplus/mesg
                  ./sqlplus/mesg/sp1zhs.msb
                  ./sqlplus/mesg/sp2zhs.msb
                  ./sqlplus/mesg/sp2ptb.msb
                  ./sqlplus/mesg/sp2us.msb
                  ./sqlplus/mesg/sp1us.msb
                  ./sqlplus/mesg/sp1ptb.msb
                  ./sqlplus/mesg/cpyja.msb
                  ./sqlplus/mesg/sp1ja.msb
                  ./sqlplus/mesg/cpyus.msb
                  ./sqlplus/mesg/cpyzhs.msb
                  ./sqlplus/mesg/cpyptb.msb
                  ./sqlplus/mesg/sp2ja.msb
                  ./sqlplus/sqlplus
                  ./README
                  ./lib
                  ./lib/libaio.so.1
                  ./lib/libclntsh.so.11.1
                  ./lib/libsqlplus.so
                  ./lib/libnnz11.so
                  ./lib/libociei.so


                  As aditional dependency, I did include libaio.so - it can be installed with sudo apt-get install libaio1



                  So, a sample use can be:



                  cd <PATH_OF_FILES>
                  ORACLE_HOME=$PWD LD_LIBRARY_PATH=$PWD/lib ./sqlplus/sqlplus user/pw@server:PORT/






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 16 '16 at 23:19









                  ton

                  1012




                  1012






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f159939%2fhow-to-install-sqlplus%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How did Captain America manage to do this?

                      迪纳利

                      南乌拉尔铁路局