微前端架构如何改变企业的开发模式与效率提升
332
2023-12-31
小编给大家分享一下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.sqlspecify password for HR as parameter 1:
Enter value for 1: hrspecify default tablespeace for HR as parameter 2:
Enter value for 2: userspecify temporary tablespace for HR as parameter 3:
Enter value for 3: tempspecify log path as parameter 4:
Enter value for 4: C:\app\Administrator\virtual\product\12.2.0\dbhome_2\logalter session set container=ORCLPDB;
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;CON_IDDBID GUID NAME OPEN_MODE########## ########## 5A872545AC274801A748D0A39B5F513A PDB$SEED READ ONLY
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB MOUNTEDSQL> alter session set container=ORCLPDB
2 ;会话已更改。
SQL> startup
插接式数据库已打开。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;CON_IDDBID 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_IDDBID 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_IDDBID 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_IDDBID GUID NAME OPEN_MODE########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
以上是“ORACLE 12c常见问题有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~