点击(此处)折叠或打开
-
[oracle@e1 ~]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.3.0 Production on Fri Oct 24 14:25:44 2014
-
-
Copyright (c) 1982, 2011, Oracle. All rights reserved.
-
-
ERROR:
-
ORA-12162: TNS:net service name is incorrectly specified
-
-
-
Enter user-name:
-
ERROR:
-
ORA-12162: TNS:net service name is incorrectly specified
-
-
-
Enter user-name:
-
ERROR:
-
ORA-12162: TNS:net service name is incorrectly specified
-
-
-
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
- [oracle@e1 ~]$
把ORACLE_SID变量赋值,登录数据库。
点击(此处)折叠或打开
-
[oracle@e1 ~]$ echo $ORACLE_SID
[oracle@e1 ~]$
[oracle@e1 ~]$ export ORACLE_SID=P1
-
[oracle@e1 ~]$ echo $ORACLE_SID
-
P1
-
[oracle@e1 ~]$ sqlplus / as sysdba
-
-
SQL*Plus: Release 11.2.0.3.0 Production on Fri Oct 24 14:28:13 2014
-
-
Copyright (c) 1982, 2011, Oracle. All rights reserved.
-
-
Connected to an idle instance.
-
-
SYS@P1>startup
-
ORACLE instance started.
-
-
Total System Global Area 920678400 bytes
-
Fixed Size 1348720 bytes
-
Variable Size 549456784 bytes
-
Database Buffers 364904448 bytes
-
Redo Buffers 4968448 bytes
-
Database mounted.
-
Database opened.
- SYS@P1>