Chinese New Year at home no matter, also because oneself is small white, in order to review, tidy up a bit sqlplus use method, usually use Sqlplus there are two cases, is nothing more than local link and remote connection. When the local link is the time, in the installation of the Oracle,sqlplus tool is their own, do not need to install, of course, I am the installation of Oracle 11g, other unclear, it should be the same! Sqlplus/as SYSDBA [Linux] This command is logged to the instance with the SYS user, executing this command locally, the execution succeeds, and does not mean that you can use the database, because Sqlplus is only a link to the local user and the database Link, you log in, you also need to start the database startup to execute a variety of SQL statements. Sqlplus username/[email protected]:port/sid/as sysdba Port if not changed, it is 1521; if modified, forget the port, in the Oracle user's
*********************************** I'm a split line. &NBSP, ************************ ***************
by the way, the installation method of Sqlplus under Linux The first step: Oracle is to provide sqlplus tools, find the official website, registered users, download three package, devel, Basic, Sqlplus. Preferably the latest version, compatibility is strong, preferably RPM package, installation is relatively simple; the second step:
-
1. installation of 3 software basic devel sqlplus 2. configuration .bash_profile files [[email Protected] ~]# cat ~/.bash_profile # .bash_profile# get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User Specific environment and startup programspath= $PATH: $HOME/binexport oracle_home=/usr/ Lib/oracle/12.2/client64export ld_library_path= $ORACLE _home/lib: $LD _library_pathexport path= $ORACLE _ Home/bin: $PATH
3. Install the Rlwrap software, the main purpose of this software is, in the use of sqlplus, can not be able to scroll up and down their executed statements, install the software, can be flipped up and down
Source installation./configure Make;make Install dependent: gcc* ReadLine
HTTP://BLOG.CSDN.NET/WEEKND/ARTICLE/DETAILS/71037499 can refer to this for installation
Installation and use of Sqlplus