Professional Documents
Culture Documents
674]
(c) Microsoft Corporation. All rights reserved.
C:\Windows\System32>sqlplus / as sysdba
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
USERNAME
------------------------------
SYS
SYSTEM
ANONYMOUS
APEX_PUBLIC_USER
FLOWS_FILES
APEX_040000
OUTLN
DIP
ORACLE_OCM
XS$NULL
MDSYS
USERNAME
------------------------------
CTXSYS
DBSNMP
XDB
APPQOSSYS
HR
16 rows selected.
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit
Production
C:\Windows\System32>set oracle_sid=test
C:\Windows\System32>sqlplus / as sysdba
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
C:\Windows\System32>set oracle_sid=xe
C:\Windows\System32>sqlplus / as sysdba
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
User created.
Grant succeeded.
Tablespace created.
Tablespace created.
User altered.
User altered.
Grant succeeded.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Table created.
1 row created.
1 row created.
1 row created.
SQL>
SQL> CREATE ROLE SCHOOL_CLERK;
Role created.
Grant succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
System altered.
Profile created.
User altered.
no rows selected
PROFILE
------------------------------
LAKSHMAN
PRIVILEGE
----------------------------------------
CREATE SESSION
CREATE TABLE
GRANTED_ROLE
------------------------------
SCHOOL_CLERK
GRANTED_ROLE DEF
------------------------------ ---
SCHOOL_CLERK YES
SQL>