小编给大家分享一下ORACLE 12c常见问题有哪些,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
成都创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站设计、成都网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的海城网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
服务器sqlnet.ora加上
SQLNET.ALLOWED_LOGON_VERSION=8
重建下密码,新旧版本兼容问题,或升级oracle client
alter user sys identified by "密码"
服务器重启时,pdb默认不启动
SQL> col name format A10
SQL> select name , open_mode from v$pdbs;
NAME OPEN_MODE
ORCLPDB MOUNTED
SQL> alter pluggable database orclpdb open;
插接式数据库已变更。
SQL> select name , open_mode from v$pdbs;
NAME OPEN_MODE
ORCLPDB READ WRITE
创建hr实例
SQL> @C:\app\Administrator\virtual\product\12.2.0\dbhome_2\demo\schema\human_res
ources\hr_main.sql
specify password for HR as parameter 1:
Enter value for 1: hr
specify default tablespeace for HR as parameter 2:
Enter value for 2: user
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify log path as parameter 4:
Enter value for 4: C:\app\Administrator\virtual\product\12.2.0\dbhome_2\log
alter session set container=ORCLPDB;
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 5A872545AC274801A748D0A39B5F513A PDB$SEED READ ONLY
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB MOUNTED
SQL> alter session set container=ORCLPDB
2 ;
会话已更改。
SQL> startup
插接式数据库已打开。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
SQL> alter pluggable database close
2 ;
插接式数据库已变更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB MOUNTED
SQL> alter pluggable database open read only
2 ;
插接式数据库已变更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ ONLY
SQL> alter pluggable database open read write;
alter pluggable database open read write
*
第 1 行出现错误:
ORA-65019: 可插入数据库 ORCLPDB 已打开
SQL> alter pluggable database close;
插接式数据库已变更。
SQL> alter pluggable database open read write;
插接式数据库已变更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
SQL> alter pluggable database open read write RESTRICTED;
插接式数据库已变更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
以上是“ORACLE 12c常见问题有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款