我設置的 : system /123456html
http://blog.sina.com.cn/s/blog_7c0e26230100t0ci.htmllinux
# listener.ora Network Configuration File: C:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.sqlSID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
(SID_DESC =
(SID_NAME = ORCL)
(ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)
)
)服務器LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = SD-201609021212)(PORT = 1521))
)
)oracleADR_BASE_LISTENER = C:\app\Administratorapp
1.建立賬號- system賬號登入
create user cg identified by cg123; --新建用戶
GRANT CONNECT,RESOURCE,DBA TO cg ; --賦予權限idecreate user drawdh identified by drawdh; grant connect,resource,dba to drawdh;
2. 建立表空間
-- 建立表空間 linux create tablespace JUNHEIT datafile '${ORACLE_HOME}\oradata\notifydb.dbf' size 100M reuse autoextend on next 40M maxsize unlimited default storage(initial 128k next 128k minextents 2 maxextents unlimited); --- 查詢當前用戶所屬的 表空間 select username,default_tablespace from user_users; -- 查看全部的表空間 select tablespace_name from dba_tablespaces;
http://jingyan.baidu.com/article/90bc8fc80c01f2f653640c1f.htmlspa