docker错误 docker: Error response from daemon: Conflict. The container name "/oracle11g" is already in use by container "7edb8b99791ff4b298a6fa78a7c57be7cd646ab776883b5e07f670ed3506d7bf". You have to remove (or rename) that container to be able to reuse that name
vi /etc/profile export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=lihao export PATH=$ORACLE_HOME/bin:$PATH 使配置生效 source /etc/profile 创建软连接 ln -s $ORACLE_HOME/bin/sqlplus /usr/bin 切换到oracle 用户 这里还要说一下,一定要写中间的内条 - 必须要,否则软连接无效 su - oracle sqlplus /nolog conn /as sysdba 修改sys、system用户密码: alter user system identified by li1718; alter user sys identified by li1718; alter profile default limit PASSWORD_LIFE_TIME UNLIMITED; 创建用户(可选,根据需要) 用一个具有dba权限的用户登录(sysdba),然后输入以下语句 create user 用户名 identified by 密码; create user lihao identified by li1718; grant connect,resource,dba to test; 过程中出现的报错需要输入以下内容: 输入:alter database mount; 输入 :alter database open;
cd $ORACLE_HOME
find /home/oracle/app/oracle/product/11.2.0 -name listener.ora cd /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin vi listener.ora