Oracle 12c 建立 SCOTT 使用者
--檢視 PDB 情況
[oracle@DB2 admin]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 2 08:47:19 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select dbid, con_id, name, open_mode from v$pdbs;
DBID CON_ID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
1686940507 2 PDB$SEED READ ONLY
3729057642 3 PDB1 READ WRITE
--切換到包所在的目錄
[oracle@DB2 ~]$ cd $ORACLE_HOME/rdbms/admin
--需要在 PDB 下面建立,切換到要建立的 PDB
[oracle@DB2 admin]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 2 20:22:50 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> alter session set container=pdb1;
Session altered.
--建立 SCOTT 使用者
SQL> @utlsampl.sql
--檢視建立的使用者
SQL> select username,ACCOUNT_STATUS,created from dba_users order by created;
USERNAME ACCOUNT_STATUS CREATED
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------- ---------
SCOTT OPEN 02-JAN-16
[oracle@DB2 admin]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 2 08:47:19 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select dbid, con_id, name, open_mode from v$pdbs;
DBID CON_ID NAME OPEN_MODE
---------- ---------- ------------------------------ ----------
1686940507 2 PDB$SEED READ ONLY
3729057642 3 PDB1 READ WRITE
--切換到包所在的目錄
[oracle@DB2 ~]$ cd $ORACLE_HOME/rdbms/admin
--需要在 PDB 下面建立,切換到要建立的 PDB
[oracle@DB2 admin]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 2 20:22:50 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> alter session set container=pdb1;
Session altered.
SQL> @utlsampl.sql
--檢視建立的使用者
SQL> select username,ACCOUNT_STATUS,created from dba_users order by created;
USERNAME ACCOUNT_STATUS CREATED
-------------------------------------------------------------------------------------------------------------------------------- -------------------------------- ---------
SCOTT OPEN 02-JAN-16
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-1970032/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle資料庫scott使用者建立view檢視許可權Oracle資料庫View
- [20181006]建立測試使用者scott.txt
- 恢復oracle的scott使用者初始狀態操作Oracle
- Oracle 12c系列(二)|PDB的建立Oracle
- Oracle 12c 建立與刪除CDB、PDBsOracle
- Oracle通過scott使用者中的emp練習單表操作Oracle
- Oracle-解鎖scott賬戶Oracle
- Oracle 12c 手動建立CDB和非CDBOracle
- Oracle建立只讀使用者Oracle
- 【Oracle】scott使用者下表結構、初始化資料和建表語句Oracle
- Oracle建立使用者和授權Oracle
- Oracle 12c DG管理-分離SYS特權使用者Oracle
- oracle 建立表空間和使用者Oracle
- Oracle建立表空間和使用者Oracle
- Oracle 12c 業務使用者密碼大小寫不敏感Oracle密碼
- Oracle 12c 使用FILE_NAME_CONVERT建立pdb報錯 ORA-01276Oracle
- Oracle 12c Automatic ReoptimizationOracle
- Oracle 12C安裝Oracle
- Oracle建立使用者、角色、授權、建表Oracle
- oracle資料庫使用者建立步驟Oracle資料庫
- 【12c】oracle12c 的SYSBACKUP、SYSDG、SYSKM系統使用者Oracle
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- Oracle 19C 建立使用者&表空間Oracle
- Oracle 建立表空間和使用者指令碼Oracle指令碼
- Oracle 12c升級指南Oracle
- 12C Oracle ASM Filter DriverOracleASMFilter
- Oracle 12C Statistics on Column GroupsOracle
- sysbench壓測Oracle 12COracle
- benchmark 壓測Oracle 12cOracle
- Manage SQL Plan Baselines in Oracle 12cSQLOracle
- Oracle 12c CDB&PDBs管理Oracle
- oracle 12c rman備份pdbOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- oracle 12c release 2 安裝Oracle
- Oracle 12C 官方文件地圖Oracle地圖
- Oracle 12C新特性-History命令Oracle
- Oracle 12C新特性In-MemoryOracle
- Oracle 12c 兩個新特性Oracle