tnsping test110
linux中
启动oracle 服务
root用户不需要输入密码,拥有绝对权限
sqlplus / as sysdba
若不认识SQLplus, 可执行命令dbca,netca ,netmgr ...
切换到 /u01/app/oracle/product/12.1./dbhome_1/bin
还找不到,环境变量再执行一次
用户 source ~/.bash_profile
root /etc/profile
切换到oracle用户下
oracle常用管理命令
sqlplus / as sysdba 以sys身份登录
连接之后需要启动
startup 启动服务
shutdown immediate 关闭
查看oracle进程
ps -ef | grep ora
启动监听
lsnrctl start
关闭windows,linux防火墙
systemctl stop firewalld.service 停止 systemctl start firewalld.service#启动firewall
start
status
systemctl disable firewalld.service 禁止防火墙开机启动
在windows中
tnsping 服务名