主机重启后: su - oracle #切换到oracle用户
sqlplus / as sysdba
sqlplus /nolog
connect as sysdba;
system
## password expires
SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
lsnrctl start lsnrctl start #启动
lsnrctl status lsnrctl status #查看listener的状态
sqlplus / as sysdba sqlplus "/as sysdba" #以sysdba的身份登陆
startup……结果: strartup
Database mounted.
Database opened.
成功
du -sh ./*
查看文件夹大小