Oracle12C_____处理数据库01033连接错误问题.sql



image

  1 Microsoft Windows [版本 6.1.7601]
  2 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
  3 
  4 C:\Users\Administrator>sqlplus /nolog
  5 
  6 SQL*Plus: Release 12.1.0.2.0 Production on 星期一 7月 25 00:10:15 2016
  7 
  8 Copyright (c) 1982, 2014, Oracle.  All rights reserved.
  9 
 10 SQL> conn /  as sysdba;
 11 已连接。
 12 SQL> select * from v$version;
 13 
 14 BANNER
 15 --------------------------------------------------------------------------------
 16 
 17     CON_ID
 18 ----------
 19 Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
 20          0
 21 
 22 PL/SQL Release 12.1.0.2.0 - Production
 23          0
 24 
 25 CORE    12.1.0.2.0      Production
 26          0
 27 
 28 
 29 BANNER
 30 --------------------------------------------------------------------------------
 31 
 32     CON_ID
 33 ----------
 34 TNS for 64-bit Windows: Version 12.1.0.2.0 - Production
 35          0
 36 
 37 NLSRTL Version 12.1.0.2.0 - Production
 38          0
 39 
 40 
 41 SQL> select sys_context ('USERENV', 'CON_NAME') from dual;
 42 
 43 SYS_CONTEXT('USERENV','CON_NAME')
 44 --------------------------------------------------------------------------------
 45 
 46 CDB$ROOT
 47 
 48 SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
 49 
 50     CON_ID       DBID NAME                           OPEN_MODE
 51 ---------- ---------- ------------------------------ ----------
 52          2 1902492643 PDB$SEED                       READ ONLY
 53          3 3763780899 PDBORCL                        MOUNTED
 54 
 55 SQL>  alter pluggable database pdborcl open;
 56 
 57 插接式数据库已变更。
 58 
 59 SQL> select con_id,dbid,NAME,OPEN_MODE from v$pdbs;
 60 
 61     CON_ID       DBID NAME                           OPEN_MODE
 62 ---------- ---------- ------------------------------ ----------
 63          2 1902492643 PDB$SEED                       READ ONLY
 64          3 3763780899 PDBORCL                        READ WRITE
 65 
 66 SQL> select sys_context ('USERENV', 'CON_NAME') from dual;
 67 
 68 SYS_CONTEXT('USERENV','CON_NAME')
 69 --------------------------------------------------------------------------------
 70 
 71 CDB$ROOT
 72 
 73 SQL> alter session set container=PDBORCL;
 74 
 75 会话已更改。
 76 
 77 SQL> select sys_context ('USERENV', 'CON_NAME') from dual;
 78 
 79 SYS_CONTEXT('USERENV','CON_NAME')
 80 --------------------------------------------------------------------------------
 81 
 82 PDBORCL
 83 
 84 SQL>
 85 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值