installing Oracle Instantclient on Linux without setting environment variables?

前端 未结 6 925
别那么骄傲
别那么骄傲 2021-02-10 01:37

Oracle\'s instructions specify setting LD_LIBRARY_PATH. This makes my application dependent on random users\' configuration and is very troublesome to set up.

How can I

6条回答
  •  萌比男神i
    2021-02-10 02:12

    or you can try using this command

    Linux

    sqlplus user/pass@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=port_number)))(CONNECT_DATA=(SID=sid)))'
    

    Windows

    sqlplus user/pass@"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=port_number)))(CONNECT_DATA=(SID=sid)))"
    

    so you don't need the tnsnames.ora

提交回复
热议问题