linux oracle in the use of a simple list and solve

Configure the environment variables ORACLE_HOME (the address is the oracle directory after installation, is to have the oracle bin directory operation command, the full path name) can temporarily set export ORACLE_HOME = full path with export $ ORACLE_HOME can see its output value

Id ORACLE_SID monitor configuration can be added in .bash_profile in export ORACLE_SID = orcl (orcl name when sid is installed) can temporarily set export ORACLE_SID = orcl See similar view ORACLE_HOME

After the restart linux oracle instance whether to start, whether to start listening.

Start the listener:

    If no command oracle environment variable, then the command directly into the bin oracle installation operates, with reference to the following theme:

./lsnrctl status View monitor status

./lsnrctl start start listening, stop listening close

Login oracle, users forget passwords over, all right, no problem as long as the installation, sid no problem

./sqlplus  /nolog

Use dba permission to sign

  connect  / as sysdba

Log-in to do whatever they can successfully operate, and create users, empowerment, etc.

When connected, if other machines, such as the machine can not connect, pay attention to see whether the firewall turned off, do not absolutely believe in yourself remember, I remember off the ah ha ha --------

Yes, there are garbled, you can use the command to set oracle sql oracle of coding, this can be searched on their own, usually set some might say the profile parameters, but to ascend into their own after the oracle with sql command to check what the code is, again line settings, with slq.

 

Guess you like

Origin www.cnblogs.com/wbqcheng/p/11362585.html