1、sqlplus以sysdba的身份登录(本机):sqlplus / as sysdba;
登进去之后,如果你的oracle装了多个实例的话,你可以先查看一下当前连接的实例: select name from V$database;
如果发现不是自己要登录的实例,可以在sqlplus里切换实例:conn username/password@sid
2、sqlplus远程登录数据库以sysdba的身份,必须要知道用户名密码:sqlplus sys/sys@192.168.1.222:1521/db_djksk as sysdba
3、2017-07-26修改(1)sqlplus登录的时候如果不知道sysdba的账号,那么登录的计算机的用户应该必须是超级管理员,然后sqlplus/ as sysdba;
(2)或者知道任意一个用户的用户名和密码后,在sqlplus里用此用户登录,只要这个用户有修改用户,创建表空间等的权限,那么他也可以修改sys用户的密码,也可以创建表空间